mirror of
https://github.com/Z3Prover/z3
synced 2025-04-24 09:35:32 +00:00
debug benchmarks, theory_pb
Signed-off-by: Nikolaj Bjorner <nbjorner@microsoft.com>
This commit is contained in:
parent
cff0e0fc6c
commit
26237a3727
5 changed files with 108 additions and 30 deletions
|
@ -211,6 +211,9 @@ public:
|
|||
else if (a.is_mul(x, z, y) && is_numeral(y, r)) {
|
||||
ok = get_pb_sum(z, r*mul, args, coeffs, coeff);
|
||||
}
|
||||
else if (a.is_to_real(x, y)) {
|
||||
ok = get_pb_sum(y, mul, args, coeffs, coeff);
|
||||
}
|
||||
else if (m.is_ite(x, y, z, u) && is_numeral(z, r) && is_numeral(u, q)) {
|
||||
insert_arg(r*mul, y, args, coeffs, coeff);
|
||||
// q*(1-y) = -q*y + q
|
||||
|
@ -235,6 +238,9 @@ public:
|
|||
r.neg();
|
||||
return true;
|
||||
}
|
||||
if (a.is_to_real(e, e)) {
|
||||
return is_numeral(e, r);
|
||||
}
|
||||
return a.is_numeral(e, r);
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue