3
0
Fork 0
mirror of https://github.com/Z3Prover/z3 synced 2025-04-08 10:25:18 +00:00

fix #3068: unsound cache of exprs in or expression

this tactic has a quite broken caching mechanism (needs a stack).. :S
This commit is contained in:
Nuno Lopes 2020-02-21 18:48:54 +00:00
parent 1aea0d2c8b
commit 7d8b56027f

View file

@ -348,6 +348,9 @@ expr_ref dom_simplify_tactic::simplify_and_or(bool is_and, app * e) {
}
pop(scope_level() - old_lvl);
// TODO: add stack for cache rather than destroy it completely everywhere
if (!is_and)
reset_cache();
return { is_and ? mk_and(args) : mk_or(args), m };
}