Browse Source

ToPrefixStringVisitor: Added missing case for GameFormula

tempestpy_adaptions
Tim Quatmann 4 years ago
committed by Stefan Pranger
parent
commit
3a769b3149
  1. 4
      src/storm/logic/ToPrefixStringVisitor.cpp
  2. 1
      src/storm/logic/ToPrefixStringVisitor.h

4
src/storm/logic/ToPrefixStringVisitor.cpp

@ -85,6 +85,10 @@ namespace storm {
return std::string("G ") + subexpression;
}
boost::any ToPrefixStringVisitor::visit(GameFormula const&, boost::any const&) const {
STORM_LOG_THROW(false, storm::exceptions::InvalidOperationException, "Can not convert to prefix string");
}
boost::any ToPrefixStringVisitor::visit(InstantaneousRewardFormula const&, boost::any const&) const {
STORM_LOG_THROW(false, storm::exceptions::InvalidOperationException, "Can not convert to prefix string");
}

1
src/storm/logic/ToPrefixStringVisitor.h

@ -22,6 +22,7 @@ namespace storm {
virtual boost::any visit(EventuallyFormula const& f, boost::any const& data) const override;
virtual boost::any visit(TimeOperatorFormula const& f, boost::any const& data) const override;
virtual boost::any visit(GloballyFormula const& f, boost::any const& data) const override;
virtual boost::any visit(GameFormula const& f, boost::any const& data) const override;
virtual boost::any visit(InstantaneousRewardFormula const& f, boost::any const& data) const override;
virtual boost::any visit(LongRunAverageOperatorFormula const& f, boost::any const& data) const override;
virtual boost::any visit(LongRunAverageRewardFormula const& f, boost::any const& data) const override;

Loading…
Cancel
Save