3
0
Fork 0
mirror of https://github.com/Z3Prover/z3 synced 2025-04-15 13:28:47 +00:00

add an assert in add_abs_bound

Signed-off-by: Lev Nachmanson <levnach@hotmail.com>
This commit is contained in:
Lev Nachmanson 2019-04-08 15:19:50 -07:00
parent c7dec3ef4d
commit 5c949d74d8

View file

@ -2902,6 +2902,7 @@ struct solver::imp {
}
void add_abs_bound(lpvar v, llc cmp, rational const& bound) {
SASSERT(!vvr(v).is_zero());
lp::lar_term t; // t = abs(v)
t.add_coeff_var(rrat_sign(vvr(v)), v);