3
0
Fork 0
mirror of https://github.com/Z3Prover/z3 synced 2025-04-06 17:44:08 +00:00

pin expressions to fix unsound behavior

This commit is contained in:
Nikolaj Bjorner 2023-12-18 13:51:29 -08:00
parent 5d4c18dde2
commit dff419a7cb

View file

@ -80,8 +80,10 @@ class simplifier_solver : public solver {
void flatten_suffix() override {
expr_mark seen;
unsigned j = qhead();
expr_ref_vector pinned(s.m);
for (unsigned i = qhead(); i < qtail(); ++i) {
expr* f = s.m_fmls[i].fml(), *g = nullptr;
pinned.push_back(f);
if (seen.is_marked(f))
continue;
seen.mark(f, true);