mirror of
https://github.com/Z3Prover/z3
synced 2025-04-06 09:34:08 +00:00
ctx_simplify: simplify ite if then/else values become equal
This commit is contained in:
parent
8fc58e1ace
commit
96f6bf7028
|
@ -430,7 +430,10 @@ struct ctx_simplify_tactic::imp {
|
||||||
simplify(e, new_e);
|
simplify(e, new_e);
|
||||||
pop(scope_level() - old_lvl);
|
pop(scope_level() - old_lvl);
|
||||||
if (c == new_c && t == new_t && e == new_e) {
|
if (c == new_c && t == new_t && e == new_e) {
|
||||||
r = ite;
|
r = ite;
|
||||||
|
}
|
||||||
|
else if (new_t == new_e) {
|
||||||
|
r = new_t;
|
||||||
}
|
}
|
||||||
else {
|
else {
|
||||||
expr * args[3] = { new_c.get(), new_t.get(), new_e.get() };
|
expr * args[3] = { new_c.get(), new_t.get(), new_e.get() };
|
||||||
|
|
Loading…
Reference in a new issue