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:
parent
1aea0d2c8b
commit
7d8b56027f
|
@ -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 };
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in a new issue