Skip to content

Commit

Permalink
qsat: maybe a bug fix
Browse files Browse the repository at this point in the history
Changed the code to follow the paper by adding all predicates above a given
level, not just predicates of immediately preceding level.
  • Loading branch information
agurfinkel committed Apr 27, 2023
1 parent cf97bf4 commit 133c9e4
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions src/qe/qsat.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -165,8 +165,9 @@ namespace qe {
TRACE("qe_assumptions", model_v2_pp(tout, *mdl););

expr_ref val(m);
for (unsigned j = 0; j < m_preds[level - 1].size(); ++j) {
app* p = m_preds[level - 1][j].get();
for (unsigned i = 0; i <= level-1; ++i) {
for (unsigned j = 0; j < m_preds[i].size(); ++j) {
app* p = m_preds[i][j].get();
eval(p, val);
if (!m.inc())
return;
Expand All @@ -177,6 +178,7 @@ namespace qe {
SASSERT(m.is_true(val));
m_asms.push_back(p);
}
}
}
asms.append(m_asms);

Expand Down

0 comments on commit 133c9e4

Please sign in to comment.