mirror of
https://github.com/Z3Prover/z3
synced 2025-04-24 09:35:32 +00:00
update for int return value
Signed-off-by: Nikolaj Bjorner <nbjorner@microsoft.com>
This commit is contained in:
parent
fad1e611aa
commit
13413d0529
2 changed files with 5 additions and 3 deletions
|
@ -178,11 +178,12 @@ private:
|
|||
if (m_bv.is_bv_mul(p)) {
|
||||
expr_ref rest(m);
|
||||
for (expr* arg : *to_app(p)) {
|
||||
if (arg != v)
|
||||
if (arg != v) {
|
||||
if (rest)
|
||||
rest = m_bv.mk_bv_mul(rest, arg);
|
||||
else
|
||||
rest = arg;
|
||||
}
|
||||
}
|
||||
if (!rest) return false;
|
||||
|
||||
|
@ -251,11 +252,12 @@ private:
|
|||
if (m_arith.is_mul(p) && m_arith.is_real(p)) {
|
||||
expr_ref rest(m);
|
||||
for (expr* arg : *to_app(p)) {
|
||||
if (arg != v)
|
||||
if (arg != v) {
|
||||
if (rest)
|
||||
rest = m_arith.mk_mul(rest, arg);
|
||||
else
|
||||
rest = arg;
|
||||
}
|
||||
}
|
||||
if (!rest) return false;
|
||||
expr_ref zero(m_arith.mk_real(0), m);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue