Skip to content
Snippets Groups Projects
Commit d4560551 authored by Régis Blanc's avatar Régis Blanc
Browse files

simplify integer equation synthesis

parent e562b86f
No related branches found
No related tags found
No related merge requests found
......@@ -81,7 +81,7 @@ class IntegerEquation(synth: Synthesizer) extends Rule("Integer Equation", synth
val id2res: Map[Expr, Expr] =
freshsubxs.zip(subproblemxs).map{case (id1, id2) => (Variable(id1), Variable(id2))}.toMap ++
neqxs.map(id => (Variable(id), eqSubstMap(Variable(id)))).toMap
Solution(And(eqPre, pre), defs, LetTuple(subproblemxs, term, replace(id2res, Tuple(problem.xs.map(Variable(_))))))
Solution(And(eqPre, pre), defs, simplify(simplifyLets(LetTuple(subproblemxs, term, replace(id2res, Tuple(problem.xs.map(Variable(_))))))))
}
case _ => Solution.none
}
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment