Skip to content

Commit

Permalink
Fix not detecting terminal states when Boolean literals are present (#…
Browse files Browse the repository at this point in the history
…427)

PR #422 introduced an error where for formulas like, e.g., `P=? [true U "a"]` the "a" was no longer detected as terminal label.
  • Loading branch information
tquatmann authored Nov 15, 2023
1 parent 618df88 commit 6a7f786
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/storm/builder/TerminalStatesGetter.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ namespace builder {
void getTerminalStatesFromFormula(storm::logic::Formula const& formula,
std::function<void(storm::expressions::Expression const&, bool)> const& terminalExpressionCallback,
std::function<void(std::string const&, bool)> const& terminalLabelCallback) {
auto isAtomic = [](auto const& f) { return f.isAtomicExpressionFormula() || f.isAtomicLabelFormula(); };
auto isAtomic = [](auto const& f) { return f.isAtomicExpressionFormula() || f.isAtomicLabelFormula() || f.isBooleanLiteralFormula(); };
if (formula.isAtomicExpressionFormula()) {
terminalExpressionCallback(formula.asAtomicExpressionFormula().getExpression(), true);
} else if (formula.isAtomicLabelFormula()) {
Expand Down

0 comments on commit 6a7f786

Please sign in to comment.