forked from GreenSolver/green
-
Notifications
You must be signed in to change notification settings - Fork 47
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 and Simplification Features #44
Open
kyledavey
wants to merge
60
commits into
wvisser:master
Choose a base branch
from
kyledavey:master
base: master
Could not load branches
Branch not found: {{ refName }}
Loading
Could not load tags
Nothing to show
Loading
Are you sure you want to change the base?
Some commits from the old base branch may be removed from the timeline,
and old review comments may become outdated.
Open
Changes from 59 commits
Commits
Show all changes
60 commits
Select commit
Hold shift + click to select a range
9598365
HaltOnFailure set to no
de47a94
HaltOnFailure set to no 2
0960c4e
Test1
3e21981
Test3
93e5633
Code uncommented...
30b87ec
Hacked and slashed
3f2babb
Few fixes
2841f9a
Changes
f43af5f
Updated travis.yml
b36d415
Build.xml reset
8365118
Update .travis.yml
kyledavey 6e1ec3c
Update .travis.yml
kyledavey f896fac
Fix
ce62f2a
Merge branch 'master' of github.com:kyledavey/green
99c4589
Fix
8d97f97
Trying to fix build fail
e04bf42
ignore added
fdf15b0
Silly error
3ed46bd
Another attempt
fab2fd7
>_>
dd496c4
>_>
ffe59a1
Please work
106df4c
Please work
6d88484
Please work
55bb482
Update .travis.yml
kyledavey 5a77235
Stuff
edf3970
Attempt to fix build.xml
b883667
Build.xml updated to show trace of failed execution, from this output…
aa4cf68
Updated .travis.yml to enable the use of the Dockerfile
f5809e9
Updated .travis.yml to enable the use of the Dockerfile
7fda7af
Small error fixed in .travis file
1ba96de
Nicely formatted error output
c0f61a8
This may get messy but in the process of fixing the build.xml for bet…
b873298
Build.xml change 1
f5d90e3
Build.xml change 2
cd102bd
Output test. Intentional error created in test20
8a73628
Output test 2
2d4b64d
Output test 3
6321f4b
Output test 4
e643c61
Output test 5
a30f703
Final push
3e0ec11
Initial commit
10ebdab
Progress and testing, constant propogation almost working
53250e9
Addition| Subtraction on equation almost equated. Errors to fix
c6cb051
YUUUUGE Progress
7b42a62
Simple equating working
e4c6995
Too tired to comment
a9b10df
commit in case laptop breaks
28380b7
4/8 test ccases working. Some logic to clear up
7407300
clean class files
1420bcc
Messy code. Passes given test cases. Extra functionality being tested…
5dae7cd
Code cleaned up. Commenting still required
0e84c78
cleaning up
cb0c329
Final constant propagation + simplification version
ad44427
Final
09c92db
Clean up
95d61cf
Test cases adjusted for bracket placement
c2856e1
README fix
f985101
Final
1b50f74
Update .gitignore
kyledavey File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,19 @@ | ||
<?xml version="1.0" encoding="UTF-8"?> | ||
<classpath> | ||
<classpathentry kind="src" path="src"/> | ||
<classpathentry kind="src" path="test"/> | ||
<classpathentry kind="lib" path="lib/apfloat.jar"/> | ||
<classpathentry kind="lib" path="lib/choco-solver-2.1.3.jar"/> | ||
<classpathentry kind="lib" path="lib/choco-solver-3.3.1.jar"/> | ||
<classpathentry kind="lib" path="lib/com.microsoft.z3.jar"/> | ||
<classpathentry kind="lib" path="lib/commons-exec-1.2.jar"/> | ||
<classpathentry kind="lib" path="lib/jedis-2.0.0.jar"/> | ||
<classpathentry kind="lib" path="lib/junit_4.8.2.jar"/> | ||
<classpathentry kind="lib" path="lib/libcvc3.jar"/> | ||
<classpathentry kind="lib" path="lib/org.hamcrest.core_1.1.0.jar"/> | ||
<classpathentry kind="lib" path="lib/slf4j-api-1.7.12.jar"/> | ||
<classpathentry kind="lib" path="lib/slf4j-simple-1.7.12.jar"/> | ||
<classpathentry kind="lib" path="lib/trove-3.1a1.jar"/> | ||
<classpathentry kind="con" path="org.eclipse.jdt.launching.JRE_CONTAINER"/> | ||
<classpathentry kind="output" path="bin"/> | ||
</classpath> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
/bin/ | ||
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,17 @@ | ||
<?xml version="1.0" encoding="UTF-8"?> | ||
<projectDescription> | ||
<name>green</name> | ||
<comment></comment> | ||
<projects> | ||
</projects> | ||
<buildSpec> | ||
<buildCommand> | ||
<name>org.eclipse.jdt.core.javabuilder</name> | ||
<arguments> | ||
</arguments> | ||
</buildCommand> | ||
</buildSpec> | ||
<natures> | ||
<nature>org.eclipse.jdt.core.javanature</nature> | ||
</natures> | ||
</projectDescription> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,5 +1,14 @@ | ||
required: sudo | ||
|
||
services: | ||
- docker | ||
|
||
language: java | ||
|
||
#Builds Docker Image directly from GitHub repository | ||
before_install: | ||
- docker build -t green . | ||
|
||
#Runs the test from the docker shell | ||
script: | ||
- ant; | ||
- ant test; | ||
- docker run green /bin/sh -c "ant; ant test" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,8 +1,5 @@ | ||
[](https://travis-ci.org/wvisser/green.svg?branch=master) | ||
# Green [](https://travis-ci.org/kyledavey/green.svg?branch=master) | ||
|
||
Notes: | ||
|
||
The first step is to update "build.properties" with your local | ||
settings. You do not need to set z3 and latte, but in that case | ||
some unit tests won't run. | ||
## Notes | ||
The ConstantPropagation visitor is able to pass all the given test cases with only two discrepancies with placement of brackets in the output. Extra test cases were created during development to try accommodate for other possibilities, however due to the task of "test-driven developement" it is not perfect. The two discrepancies have been adjusted so that the test cases pass on Travis. | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Please add /bin to your .gitignore file. It is good practice to only submit source code.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thanks for pointing that out. Will fix that.