Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Constant propagation #38

Open
wants to merge 77 commits into
base: master
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from 73 commits
Commits
Show all changes
77 commits
Select commit Hold shift + click to select a range
0fcdc27
Update SATCanonizerTest.java
20289472 Jul 24, 2018
aab379a
Update README.md
20289472 Jul 24, 2018
0212e7f
Update build.xml
20289472 Jul 24, 2018
6d1a265
Update build.xml
20289472 Jul 24, 2018
d160fd9
Update build.xml
20289472 Jul 24, 2018
7baece2
Update SATCanonizerTest.java
20289472 Jul 24, 2018
ae509e1
Update SATCanonizerTest.java
20289472 Jul 24, 2018
dee78b5
Update build.xml
20289472 Jul 24, 2018
c6869cd
Update build.xml
20289472 Jul 24, 2018
0884364
Update build.xml
20289472 Jul 24, 2018
96e59cf
Update build.xml
20289472 Jul 24, 2018
99e88fd
Update
20289472 Jul 24, 2018
61186d9
Update SATCanonizerTest.java
20289472 Jul 24, 2018
9473b8a
Update .travis.yml
20289472 Jul 24, 2018
fdf7f4e
Update Dockerfile
20289472 Jul 24, 2018
b799c60
Update .travis.yml
20289472 Jul 24, 2018
55ad0f2
Update .travis.yml
20289472 Jul 24, 2018
b150e61
Update .travis.yml
20289472 Jul 24, 2018
62f43f9
Update .travis.yml
20289472 Jul 24, 2018
f4a10c7
Update .travis.yml
20289472 Jul 24, 2018
a37f673
Deliverable 2
20289472 Jul 24, 2018
af44e93
Deliverable 1
20289472 Jul 24, 2018
24e6b20
Update .travis.yml
20289472 Jul 31, 2018
4136307
Update README.md
20289472 Jul 31, 2018
e400b13
Update README.md
20289472 Jul 31, 2018
40069f2
Update README.md
20289472 Jul 31, 2018
ba91c76
Update README.md
20289472 Jul 31, 2018
9214de4
Update SATCanonizerTest.java
20289472 Jul 31, 2018
3ced2dd
added files
20289472 Aug 11, 2018
1929f40
Added test files
20289472 Aug 11, 2018
58d8f2a
Try
20289472 Aug 11, 2018
8dad034
Update Dockerfile
20289472 Aug 13, 2018
17e4e8c
Check
20289472 Aug 13, 2018
d78772c
Retry
20289472 Aug 13, 2018
da9fede
Update ConstantPropagation.java
20289472 Aug 13, 2018
8ff5f8a
Update Instance.java
20289472 Aug 13, 2018
6cd785c
Update ConstantPropagation.java
20289472 Aug 13, 2018
e4e9261
Update ConstantPropagation.java
20289472 Aug 13, 2018
b6e6d2a
Update ConstantPropagation.java
20289472 Aug 13, 2018
d50c290
Update ConstantPropagation.java
20289472 Aug 13, 2018
85ce58c
Update ConstantPropagationTest.java
20289472 Aug 13, 2018
8fedbf0
Update ConstantPropagationTest2.java
20289472 Aug 13, 2018
27555fc
Update ConstantPropagation.java
20289472 Aug 13, 2018
88aa002
Update ConstantPropagation.java
20289472 Aug 13, 2018
fd0b71d
Update Instance.java
20289472 Aug 13, 2018
64c384d
Prop constant
20289472 Aug 13, 2018
d765dc1
Prop constant 2
20289472 Aug 13, 2018
034d9ae
Prop constant 3
20289472 Aug 13, 2018
c25956c
Update EntireSuite.java
20289472 Aug 13, 2018
0292cec
Update EntireSuite.java
20289472 Aug 13, 2018
c940033
Update EntireSuite.java
20289472 Aug 13, 2018
53e01c9
Update ConstantPropagationTest.java
20289472 Aug 13, 2018
95ccadd
Update EntireSuite.java
20289472 Aug 13, 2018
255d606
Test 1 prop
20289472 Aug 13, 2018
5deb4d2
Test 1 prop1
20289472 Aug 13, 2018
e287866
Test 1 prop2
20289472 Aug 13, 2018
a4339a0
Test booleans
20289472 Aug 13, 2018
c11cb14
Update README.md
20289472 Aug 13, 2018
f32b433
Update ConstantPropagationTest2.java
20289472 Aug 13, 2018
9b6b2e9
Equility
20289472 Aug 13, 2018
da031d2
Simplify
20289472 Aug 13, 2018
3c09e65
Simplify2
20289472 Aug 13, 2018
441af4a
Simplify3
20289472 Aug 13, 2018
26ca378
Simplify4
20289472 Aug 13, 2018
c6e0f0e
One constant
20289472 Aug 13, 2018
ae251d4
Update README.md
20289472 Aug 13, 2018
bfa9fc9
Simplify try
20289472 Aug 13, 2018
b727038
Simplify try
20289472 Aug 13, 2018
5cec406
Simplify try1
20289472 Aug 13, 2018
d51dc06
Simplify try2
20289472 Aug 13, 2018
a72796d
Simplify try3
20289472 Aug 13, 2018
022244d
Simplify try4
20289472 Aug 13, 2018
8958b84
Simplify try5
20289472 Aug 13, 2018
f690a44
Simplify try6
20289472 Aug 13, 2018
98f5620
Simplify simple
20289472 Aug 13, 2018
cf413f7
Update ConstantPropagationTest.java
20289472 Aug 14, 2018
6e4b89c
Update EntireSuite.java
20289472 Aug 14, 2018
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
15 changes: 13 additions & 2 deletions .travis.yml
Original file line number Diff line number Diff line change
@@ -1,5 +1,16 @@
sudo: required
language: java

services:
- docker

before_install:
- docker build -t green .
# create docker image from Dockerfile

script:
- ant;
- ant test;
- docker run green /bin/sh -c "ant; ant test;"
# search for docker image to run ant and ant test in.



4 changes: 4 additions & 0 deletions Deliverable 1.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
- build.xml: used formatter tag to set usefile to false
- <formatter type ="plain" usefile="false"/>
- Used this output to find which Oracle was incorrect
- change test20's Orcale to check(o3, "(2<=2)&&(aa<2)", "1*v+-1<=0")
15 changes: 15 additions & 0 deletions Deliverable 2.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1,15 @@
sudo: required

language: java

services:
- docker

before_install:
- docker build -t green .
# create docker image from Dockerfile

script:
- docker run green /bin/sh -c "ant; ant test;"
# search for docker image to run ant and ant test in.

8 changes: 7 additions & 1 deletion Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,13 @@ RUN apt install patchelf -y
RUN apt install libgomp1

# Clone down the GreenSolver repository
RUN git clone https://github.com/wvisser/green
RUN git clone https://github.com/20289472/green

# Checkout the constant propagation branch
WORKDIR /green
RUN git fetch
RUN git checkout constant-propagation
WORKDIR /

# Download and extract Z3
RUN mkdir z3
Expand Down
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
[![Build Status](https://travis-ci.org/wvisser/green.svg?branch=master)](https://travis-ci.org/wvisser/green.svg?branch=master)
[![Build Status](https://travis-ci.org/20289472/green.svg?branch=constant-propagation)](https://travis-ci.org/20289472/green?branch=constant-propagation)

Notes:

Expand Down
3 changes: 2 additions & 1 deletion build.xml
Original file line number Diff line number Diff line change
Expand Up @@ -95,13 +95,14 @@
<target name="test">
<echo message="java.library.path = ${z3lib};${cvc3lib}"/>
<mkdir dir="${junit.dir}"/>
<junit fork="yes" printsummary="withOutAndErr" haltonfailure = "yes">
<junit fork="yes" haltonfailure = "yes">
<formatter type="xml"/>
<test name="za.ac.sun.cs.green.EntireSuite" todir="${junit.dir}"/>
<env key="DYLD_LIBRARY_PATH" value="lib"/>
<env key="LD_LIBRARY_PATH" value="lib"/>
<sysproperty key="java.library.path" value="${z3lib}:${cvc3lib}"/>
<classpath refid="green.classpath"/>
<formatter type ="plain" usefile="false"/>
</junit>
<junitreport todir="${junit.dir}">
<fileset dir="${junit.dir}">
Expand Down
3 changes: 2 additions & 1 deletion src/za/ac/sun/cs/green/Instance.java
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@

import za.ac.sun.cs.green.expr.Expression;
import za.ac.sun.cs.green.expr.Operation;
import za.ac.sun.cs.green.service.simplify.ConstantPropagation;

public class Instance {

Expand Down Expand Up @@ -46,7 +47,7 @@ public Instance getParent() {
return parent;
}

public Expression getExpression() {
public Expression getExpression() {
return expression;
}

Expand Down
2 changes: 1 addition & 1 deletion src/za/ac/sun/cs/green/expr/Operation.java
Original file line number Diff line number Diff line change
Expand Up @@ -128,7 +128,7 @@ public Fix getFix() {

private final Expression[] operands;

public Operation(final Operator operator, Expression... operands) {
public Operation(final Operator operator, Expression... operands) {
this.operator = operator;
this.operands = operands;
}
Expand Down
Loading