mirror of
https://github.com/Z3Prover/z3
synced 2025-04-14 21:08:46 +00:00
avoid rewriting if reduces to tautology
Signed-off-by: Nikolaj Bjorner <nbjorner@microsoft.com>
This commit is contained in:
parent
dc932a93e2
commit
dfbd285dae
|
@ -1373,8 +1373,10 @@ public:
|
|||
expr_ref atom1(m);
|
||||
proof_ref atomp(m);
|
||||
ctx().get_rewriter()(atom, atom1, atomp);
|
||||
atom = to_app(atom1);
|
||||
TRACE("arith", tout << atom << "\n";
|
||||
if (!m.is_false(atom1) && !m.is_true(atom1)) {
|
||||
atom = to_app(atom1);
|
||||
}
|
||||
TRACE("arith", tout << t << ": " << atom << "\n";
|
||||
m_solver->print_term(term, tout << "bound atom: "); tout << " <= " << k << "\n";);
|
||||
ctx().internalize(atom, true);
|
||||
ctx().mark_as_relevant(atom.get());
|
||||
|
|
Loading…
Reference in a new issue