mirror of
https://github.com/Z3Prover/z3
synced 2025-07-19 19:02:02 +00:00
add an assert in add_abs_bound
Signed-off-by: Lev Nachmanson <levnach@hotmail.com>
This commit is contained in:
parent
c7dec3ef4d
commit
5c949d74d8
1 changed files with 1 additions and 0 deletions
|
@ -2902,6 +2902,7 @@ struct solver::imp {
|
||||||
}
|
}
|
||||||
|
|
||||||
void add_abs_bound(lpvar v, llc cmp, rational const& bound) {
|
void add_abs_bound(lpvar v, llc cmp, rational const& bound) {
|
||||||
|
SASSERT(!vvr(v).is_zero());
|
||||||
lp::lar_term t; // t = abs(v)
|
lp::lar_term t; // t = abs(v)
|
||||||
t.add_coeff_var(rrat_sign(vvr(v)), v);
|
t.add_coeff_var(rrat_sign(vvr(v)), v);
|
||||||
|
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue