Browse Source

Fixed possible infinite recursion

Former-commit-id: 5fdbae4203
tempestpy_adaptions
Mavo 9 years ago
parent
commit
5fc36c291c
  1. 4
      src/logic/BinaryStateFormula.cpp

4
src/logic/BinaryStateFormula.cpp

@ -43,7 +43,7 @@ namespace storm {
}
bool BinaryStateFormula::containsNestedRewardOperators() const {
return this->containsNestedRewardOperators() || this->getRightSubformula().containsNestedRewardOperators();
return this->getLeftSubformula().containsNestedRewardOperators() || this->getRightSubformula().containsNestedRewardOperators();
}
Formula const& BinaryStateFormula::getLeftSubformula() const {
@ -69,4 +69,4 @@ namespace storm {
this->getRightSubformula().gatherReferencedRewardModels(referencedRewardModels);
}
}
}
}
Loading…
Cancel
Save