Skip to content
Snippets Groups Projects
Commit 71ad4bf8 authored by Etienne Kneuss's avatar Etienne Kneuss
Browse files

Re-implement Assert using C

parent de7ad5b8
No related branches found
No related tags found
No related merge requests found
...@@ -144,18 +144,9 @@ class Assert(synth: Synthesizer) extends Rule("Assert", synth, 200) { ...@@ -144,18 +144,9 @@ class Assert(synth: Synthesizer) extends Rule("Assert", synth, 200) {
if (others.isEmpty) { if (others.isEmpty) {
RuleSuccess(Solution(And(exprsA), Tuple(p.xs.map(id => simplestValue(Variable(id)))))) RuleSuccess(Solution(And(exprsA), Tuple(p.xs.map(id => simplestValue(Variable(id))))))
} else { } else {
/* val sub = p.copy(c = And(p.c +: exprsA), phi = And(others))
* Disable for now, it is not that useful anyway
val onSuccess: List[Solution] => Solution = { RuleStep(List(sub), forward)
case List(s) => Solution(And(s.pre +: exprsA), s.term)
case _ => Solution.none
}
val sub = p.copy(phi = And(others))
RuleStep(List(sub), onSuccess)
*/
RuleInapplicable
} }
} else { } else {
RuleInapplicable RuleInapplicable
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment