mirror of
https://github.com/Z3Prover/z3
synced 2025-04-23 17:15:31 +00:00
fix regression with mainintaing signs for monotonicity lemmas
Signed-off-by: Nikolaj Bjorner <nbjorner@microsoft.com>
This commit is contained in:
parent
cd833e892f
commit
d352c61e01
2 changed files with 6 additions and 0 deletions
|
@ -53,6 +53,8 @@ void monotone::monotonicity_lemma_gt(const monic& m) {
|
|||
for (lpvar j : m.vars()) {
|
||||
auto v = c().val(j);
|
||||
lemma |= ineq(j, v.is_neg() ? llc::LT : llc::GT, v);
|
||||
if (v.is_neg())
|
||||
lemma |= ineq(j, llc::GT, 0);
|
||||
product *= v;
|
||||
}
|
||||
lemma |= ineq(m.var(), product.is_neg() ? llc::GE : llc::LE, product);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue