Skip to content

Commit

Permalink
Fixed assert in SMG model checker
Browse files Browse the repository at this point in the history
  • Loading branch information
TheGreatfpmK committed Dec 6, 2024
1 parent 45b863e commit daae260
Showing 1 changed file with 6 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -30,8 +30,8 @@ namespace synthesis {
}
}

bool epsilonGreaterOrEqual(double x, double y, double eps=1e-8) {
return (x>=y) || (abs(x - y) <= eps);
bool epsilonGreaterOrEqual(double x, double y, double eps=1e-6) {
return (x>=y) || (fabs(x - y) <= eps);
}

template<typename ValueType>
Expand Down Expand Up @@ -178,8 +178,11 @@ namespace synthesis {
}
}

// double check if all states have a choice
//double check if all states have a choice
for (uint64_t state = 0; state < stateCount; state++) {
if (!relevantStates.get(state)) {
continue;
}
assert(optimalChoiceSet.get(state));
}

Expand Down

0 comments on commit daae260

Please sign in to comment.