mirror of
https://github.com/Z3Prover/z3
synced 2025-04-07 18:05:21 +00:00
purify non-constant terms by default to enforce theory #1820
Signed-off-by: Nikolaj Bjorner <nbjorner@microsoft.com>
This commit is contained in:
parent
e818b7bd27
commit
18bec88a8a
|
@ -1084,11 +1084,7 @@ namespace opt {
|
|||
}
|
||||
term = m_arith.mk_add(args.size(), args.c_ptr());
|
||||
}
|
||||
else if (m_arith.is_arith_expr(term) && !is_mul_const(term)) {
|
||||
TRACE("opt", tout << "Purifying " << term << "\n";);
|
||||
term = purify(fm, term);
|
||||
}
|
||||
else if (m.is_ite(term)) {
|
||||
else if (m.is_ite(term) || !is_mul_const(term)) {
|
||||
TRACE("opt", tout << "Purifying " << term << "\n";);
|
||||
term = purify(fm, term);
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue