Browse Source

fixed check for presence of shielding expressions

tempestpy_adaptions
Stefan Pranger 4 years ago
parent
commit
076a0ce77b
  1. 2
      src/storm/storage/jani/Property.cpp
  2. 2
      src/storm/storage/jani/Property.h

2
src/storm/storage/jani/Property.cpp

@ -87,7 +87,7 @@ namespace storm {
}
bool Property::isShieldingProperty() const {
return shieldingExpression.is_initialized();
return shieldingExpression != boost::none && shieldingExpression.get() != nullptr;
}
std::shared_ptr<storm::logic::ShieldExpression const> Property::getShieldingExpression() const {

2
src/storm/storage/jani/Property.h

@ -156,7 +156,7 @@ namespace storm {
std::set<storm::expressions::Variable> undefinedConstants;
// TODO might need refactoring, this cannot be expressed by JANI yet, so this is totally wrong here.
boost::optional<std::shared_ptr<storm::logic::ShieldExpression const>> shieldingExpression;
boost::optional<std::shared_ptr<storm::logic::ShieldExpression const>> shieldingExpression = boost::none;
};

Loading…
Cancel
Save