3
0
Fork 0
mirror of https://github.com/Z3Prover/z3 synced 2025-04-05 17:14:07 +00:00

ctx_simplify: simplify ite if then/else values become equal

This commit is contained in:
Nuno Lopes 2016-02-15 12:06:20 +00:00
parent 8fc58e1ace
commit 96f6bf7028

View file

@ -430,7 +430,10 @@ struct ctx_simplify_tactic::imp {
simplify(e, new_e);
pop(scope_level() - old_lvl);
if (c == new_c && t == new_t && e == new_e) {
r = ite;
r = ite;
}
else if (new_t == new_e) {
r = new_t;
}
else {
expr * args[3] = { new_c.get(), new_t.get(), new_e.get() };