-
Notifications
You must be signed in to change notification settings - Fork 12
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
c74bd63
commit 89a7310
Showing
7 changed files
with
461 additions
and
7 deletions.
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 |
---|---|---|
|
@@ -180,4 +180,5 @@ fabric.properties | |
*.eprime.infor | ||
*.eprime.minion | ||
*.eprime.solution | ||
*.eprime.solution.* | ||
*.eprime.info |
1 change: 1 addition & 0 deletions
1
conjure_oxide/tests/integration/eprime-minion/bool/literals-to-wlit-1/config.toml
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 @@ | ||
extra_rewriter_asserts=["vector_operators_have_partially_evaluated"] |
12 changes: 12 additions & 0 deletions
12
conjure_oxide/tests/integration/eprime-minion/bool/literals-to-wlit-1/input.eprime
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,12 @@ | ||
$ top level variables in and's and or's should be converted to wlit(x,1). | ||
$ negations should be converted to wlit(x,0) | ||
|
||
language ESSENCE' 1.0 | ||
|
||
find a,b,c,d: bool | ||
such that | ||
a \/ b, | ||
!c \/ (b /\ d), | ||
b, | ||
d \/ c | ||
|
26 changes: 26 additions & 0 deletions
26
...ts/integration/eprime-minion/bool/literals-to-wlit-1/input.expected-minion.solutions.json
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,26 @@ | ||
[ | ||
{ | ||
"UserName(a)": 0, | ||
"UserName(b)": 1, | ||
"UserName(c)": 0, | ||
"UserName(d)": 1 | ||
}, | ||
{ | ||
"UserName(a)": 0, | ||
"UserName(b)": 1, | ||
"UserName(c)": 1, | ||
"UserName(d)": 1 | ||
}, | ||
{ | ||
"UserName(a)": 1, | ||
"UserName(b)": 1, | ||
"UserName(c)": 0, | ||
"UserName(d)": 1 | ||
}, | ||
{ | ||
"UserName(a)": 1, | ||
"UserName(b)": 1, | ||
"UserName(c)": 1, | ||
"UserName(d)": 1 | ||
} | ||
] |
183 changes: 183 additions & 0 deletions
183
...ts/integration/eprime-minion/bool/literals-to-wlit-1/input.expected-parse.serialised.json
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,183 @@ | ||
{ | ||
"constraints": { | ||
"And": [ | ||
{ | ||
"clean": false, | ||
"etype": null | ||
}, | ||
[ | ||
{ | ||
"Or": [ | ||
{ | ||
"clean": false, | ||
"etype": null | ||
}, | ||
[ | ||
{ | ||
"Reference": [ | ||
{ | ||
"clean": false, | ||
"etype": null | ||
}, | ||
{ | ||
"UserName": "a" | ||
} | ||
] | ||
}, | ||
{ | ||
"Reference": [ | ||
{ | ||
"clean": false, | ||
"etype": null | ||
}, | ||
{ | ||
"UserName": "b" | ||
} | ||
] | ||
} | ||
] | ||
] | ||
}, | ||
{ | ||
"Or": [ | ||
{ | ||
"clean": false, | ||
"etype": null | ||
}, | ||
[ | ||
{ | ||
"Not": [ | ||
{ | ||
"clean": false, | ||
"etype": null | ||
}, | ||
{ | ||
"Reference": [ | ||
{ | ||
"clean": false, | ||
"etype": null | ||
}, | ||
{ | ||
"UserName": "c" | ||
} | ||
] | ||
} | ||
] | ||
}, | ||
{ | ||
"And": [ | ||
{ | ||
"clean": false, | ||
"etype": null | ||
}, | ||
[ | ||
{ | ||
"Reference": [ | ||
{ | ||
"clean": false, | ||
"etype": null | ||
}, | ||
{ | ||
"UserName": "b" | ||
} | ||
] | ||
}, | ||
{ | ||
"Reference": [ | ||
{ | ||
"clean": false, | ||
"etype": null | ||
}, | ||
{ | ||
"UserName": "d" | ||
} | ||
] | ||
} | ||
] | ||
] | ||
} | ||
] | ||
] | ||
}, | ||
{ | ||
"Reference": [ | ||
{ | ||
"clean": false, | ||
"etype": null | ||
}, | ||
{ | ||
"UserName": "b" | ||
} | ||
] | ||
}, | ||
{ | ||
"Or": [ | ||
{ | ||
"clean": false, | ||
"etype": null | ||
}, | ||
[ | ||
{ | ||
"Reference": [ | ||
{ | ||
"clean": false, | ||
"etype": null | ||
}, | ||
{ | ||
"UserName": "d" | ||
} | ||
] | ||
}, | ||
{ | ||
"Reference": [ | ||
{ | ||
"clean": false, | ||
"etype": null | ||
}, | ||
{ | ||
"UserName": "c" | ||
} | ||
] | ||
} | ||
] | ||
] | ||
} | ||
] | ||
] | ||
}, | ||
"next_var": 0, | ||
"variables": [ | ||
[ | ||
{ | ||
"UserName": "a" | ||
}, | ||
{ | ||
"domain": "BoolDomain" | ||
} | ||
], | ||
[ | ||
{ | ||
"UserName": "b" | ||
}, | ||
{ | ||
"domain": "BoolDomain" | ||
} | ||
], | ||
[ | ||
{ | ||
"UserName": "c" | ||
}, | ||
{ | ||
"domain": "BoolDomain" | ||
} | ||
], | ||
[ | ||
{ | ||
"UserName": "d" | ||
}, | ||
{ | ||
"domain": "BoolDomain" | ||
} | ||
] | ||
] | ||
} |
Oops, something went wrong.