3
0
Fork 0
mirror of https://github.com/Z3Prover/z3 synced 2025-04-29 11:55:51 +00:00

fixes in cross_nested, vargrind finds error : wrong pointer operations in update_front_with_split_with_non_empty_b

Signed-off-by: Lev Nachmanson <levnach@hotmail.com>
This commit is contained in:
Lev Nachmanson 2019-07-21 17:08:48 -07:00
parent 46f8159926
commit 9cb8077a17
3 changed files with 81 additions and 48 deletions

View file

@ -105,7 +105,7 @@ public:
for (auto &e : m_children) {
n += e;
}
*this = n;
m_children = n.m_children;
}
} else if (is_mul()) {
bool has_mul = false;
@ -118,7 +118,7 @@ public:
for (auto &e : m_children) {
n *= e;
}
*this = n;
m_children = n.m_children;
}
TRACE("nla_cn_details", tout << "simplified " << *this << "\n";);
}
@ -320,7 +320,6 @@ public:
for (; i < children().size(); i++, k++) {
auto & e = children()[i];
if (!e.is_var()) {
SASSERT(e.is_scalar());
continue;
}
lpvar j = e.var();