Browse Source

upon preserving a new formula, the builders now do not apply terminal states

Former-commit-id: b6a5d04cd0
tempestpy_adaptions
dehnert 9 years ago
parent
commit
d4cd58e9c6
  1. 5
      src/builder/DdPrismModelBuilder.cpp
  2. 5
      src/builder/ExplicitPrismModelBuilder.cpp

5
src/builder/DdPrismModelBuilder.cpp

@ -217,6 +217,11 @@ namespace storm {
template <storm::dd::DdType Type> template <storm::dd::DdType Type>
void DdPrismModelBuilder<Type>::Options::preserveFormula(storm::logic::Formula const& formula) { void DdPrismModelBuilder<Type>::Options::preserveFormula(storm::logic::Formula const& formula) {
// If we already had terminal states, we need to erase them.
if (terminalStates) {
terminalStates.reset();
}
// If we are not required to build all reward models, we determine the reward models we need to build. // If we are not required to build all reward models, we determine the reward models we need to build.
if (!buildAllRewardModels) { if (!buildAllRewardModels) {
if (formula.containsRewardOperator()) { if (formula.containsRewardOperator()) {

5
src/builder/ExplicitPrismModelBuilder.cpp

@ -156,6 +156,11 @@ namespace storm {
template <typename ValueType, typename IndexType> template <typename ValueType, typename IndexType>
void ExplicitPrismModelBuilder<ValueType, IndexType>::Options::preserveFormula(storm::logic::Formula const& formula) { void ExplicitPrismModelBuilder<ValueType, IndexType>::Options::preserveFormula(storm::logic::Formula const& formula) {
// If we already had terminal states, we need to erase them.
if (terminalStates) {
terminalStates.reset();
}
// If we are not required to build all reward models, we determine the reward models we need to build. // If we are not required to build all reward models, we determine the reward models we need to build.
if (!buildAllRewardModels) { if (!buildAllRewardModels) {
if (formula.containsRewardOperator()) { if (formula.containsRewardOperator()) {

Loading…
Cancel
Save