Skip to content

Commit

Permalink
pin expressions to fix unsound behavior
Browse files Browse the repository at this point in the history
  • Loading branch information
NikolajBjorner committed Dec 19, 2023
1 parent 5d4c18d commit dff419a
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions src/solver/simplifier_solver.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -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);
Expand Down

0 comments on commit dff419a

Please sign in to comment.