diff --git a/src/storm/storage/jani/Automaton.cpp b/src/storm/storage/jani/Automaton.cpp index 88f5f0489..060ae4e9b 100644 --- a/src/storm/storage/jani/Automaton.cpp +++ b/src/storm/storage/jani/Automaton.cpp @@ -328,7 +328,7 @@ namespace storm { storm::expressions::Expression result; // Add initial state restriction if there is one. - if (this->hasInitialStatesRestriction()) { + if (this->hasInitialStatesRestriction() && !this->getInitialStatesRestriction().isTrue()) { result = this->getInitialStatesRestriction(); } diff --git a/src/storm/storage/jani/Model.cpp b/src/storm/storage/jani/Model.cpp index 8da333cb7..bec06e9b3 100644 --- a/src/storm/storage/jani/Model.cpp +++ b/src/storm/storage/jani/Model.cpp @@ -929,7 +929,7 @@ namespace storm { } bool Model::hasTrivialInitialStatesExpression() const { - if (this->hasInitialStatesRestriction()) { + if (this->hasInitialStatesRestriction() && !this->getInitialStatesRestriction().isTrue()) { return false; }