Skip to content

Commit

Permalink
fix (my own) bug in reading off an assignment
Browse files Browse the repository at this point in the history
  • Loading branch information
quickbeam123 committed Jul 29, 2024
1 parent 2e1fce3 commit 97edbcf
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions FMB/Monotonicity.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -74,8 +74,8 @@ DArray<signed char>* Monotonicity::check() {
DArray<signed char>* res = new DArray<signed char>(env.signature->predicates());
(*res)[0] = 0; // pick a value for the 0-th = predicate (we don't really care here)
for(unsigned p=1;p<env.signature->predicates();p++){
bool trueExt = _solver->getAssignment(_pT.get(p).var());
bool falseExt = _solver->getAssignment(_pF.get(p).var());
bool trueExt = _solver->trueInAssignment(_pT.get(p));
bool falseExt = _solver->trueInAssignment(_pF.get(p));
ASS(!trueExt || !falseExt)
(*res)[p] = trueExt ? 1 : (falseExt ? -1 : 0);
}
Expand Down

0 comments on commit 97edbcf

Please sign in to comment.