mirror of
https://github.com/Z3Prover/z3
synced 2025-04-23 17:15:31 +00:00
var_eqs compiles but broken
This commit is contained in:
parent
f828dc9451
commit
09152013b3
10 changed files with 407 additions and 47 deletions
|
@ -2092,7 +2092,7 @@ public:
|
|||
for (auto const& mon : poly) {
|
||||
SASSERT(!mon.empty());
|
||||
if (mon.size() == 1) {
|
||||
term.add_coeff_var(mon.get_coeff(), mon[0]);
|
||||
term.add_var(mon[0]);
|
||||
}
|
||||
else {
|
||||
// create the expression corresponding to the product.
|
||||
|
@ -2107,7 +2107,7 @@ public:
|
|||
app_ref t(a.mk_mul(mul.size(), mul.c_ptr()), m);
|
||||
VERIFY(internalize_term(t));
|
||||
theory_var w = ctx().get_enode(t)->get_th_var(get_id());
|
||||
term.add_coeff_var(mon.get_coeff(), lp().external_to_local(w));
|
||||
term.add_var(lp().external_to_local(w));
|
||||
}
|
||||
}
|
||||
return term;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue