diff --git a/src/main/scala/leon/synthesis/Rules.scala b/src/main/scala/leon/synthesis/Rules.scala index 1af93b194f195836539e0dcb51bd260055be6922..fc711b1e717eb570da1e25023e9db4cac55deb03 100644 --- a/src/main/scala/leon/synthesis/Rules.scala +++ b/src/main/scala/leon/synthesis/Rules.scala @@ -144,18 +144,9 @@ class Assert(synth: Synthesizer) extends Rule("Assert", synth, 200) { if (others.isEmpty) { RuleSuccess(Solution(And(exprsA), Tuple(p.xs.map(id => simplestValue(Variable(id)))))) } else { - /* - * Disable for now, it is not that useful anyway - val onSuccess: List[Solution] => Solution = { - 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 + val sub = p.copy(c = And(p.c +: exprsA), phi = And(others)) + + RuleStep(List(sub), forward) } } else { RuleInapplicable