Fixes #8712.
atomu = l;
originLit[l] = l;
}
+ atomu = rewrite(atomu);
+ Trace("learned-rewrite-ll")
+ << "Add atom (rewritten): " << atomu << std::endl;
binfer.add(atomu);
}
Trace("learned-rewrite-ll") << "- " << l << std::endl;
}
else
{
- return RewriteResponse(REWRITE_DONE, t);
+ Node ret = nm->mkNode(t.getKind(), left, right);
+ return RewriteResponse(REWRITE_DONE, ret);
}
}
Assert(den != Rational(0));
regress0/nl/issue8691-msum-subtypes.smt2
regress0/nl/issue8691-3-msum-subtypes.smt2
regress0/nl/issue8692-idem-flatten.smt2
+ regress0/nl/issue8712-div-toreal-rew.smt2
regress0/nl/lazard-spurious-root.smt2
regress0/nl/magnitude-wrong-1020-m.smt2
regress0/nl/mult-po.smt2
--- /dev/null
+; COMMAND-LINE: --learned-rewrite -q
+; EXPECT: sat
+(set-logic ALL)
+(set-info :status sat)
+(declare-const a Real)
+(declare-const b Int)
+(assert (> a (/ (to_real b) (to_real 0))))
+(check-sat)