Skip to content

Commit

Permalink
implement not(x) ~> w-lit(x,0)
Browse files Browse the repository at this point in the history
  • Loading branch information
niklasdewally committed Oct 12, 2024
1 parent c74bd63 commit 89a7310
Show file tree
Hide file tree
Showing 7 changed files with 461 additions and 7 deletions.
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -180,4 +180,5 @@ fabric.properties
*.eprime.infor
*.eprime.minion
*.eprime.solution
*.eprime.solution.*
*.eprime.info
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
extra_rewriter_asserts=["vector_operators_have_partially_evaluated"]
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

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
}
]
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"
}
]
]
}
Loading

0 comments on commit 89a7310

Please sign in to comment.