mirror of
https://github.com/Z3Prover/z3
synced 2025-06-06 14:13:23 +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
1 changed files with 4 additions and 2 deletions
|
@ -1373,8 +1373,10 @@ public:
|
||||||
expr_ref atom1(m);
|
expr_ref atom1(m);
|
||||||
proof_ref atomp(m);
|
proof_ref atomp(m);
|
||||||
ctx().get_rewriter()(atom, atom1, atomp);
|
ctx().get_rewriter()(atom, atom1, atomp);
|
||||||
atom = to_app(atom1);
|
if (!m.is_false(atom1) && !m.is_true(atom1)) {
|
||||||
TRACE("arith", tout << atom << "\n";
|
atom = to_app(atom1);
|
||||||
|
}
|
||||||
|
TRACE("arith", tout << t << ": " << atom << "\n";
|
||||||
m_solver->print_term(term, tout << "bound atom: "); tout << " <= " << k << "\n";);
|
m_solver->print_term(term, tout << "bound atom: "); tout << " <= " << k << "\n";);
|
||||||
ctx().internalize(atom, true);
|
ctx().internalize(atom, true);
|
||||||
ctx().mark_as_relevant(atom.get());
|
ctx().mark_as_relevant(atom.get());
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue