You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

28 lines
869 B

  1. #ifndef STORM_LOGIC_LABELSUBSTITUTIONVISITOR_H_
  2. #define STORM_LOGIC_LABELSUBSTITUTIONVISITOR_H_
  3. #include <map>
  4. #include "src/logic/CloneVisitor.h"
  5. #include "src/storage/expressions/Expression.h"
  6. namespace storm {
  7. namespace logic {
  8. class LabelSubstitutionVisitor : public CloneVisitor {
  9. public:
  10. LabelSubstitutionVisitor(std::map<std::string, storm::expressions::Expression> const& labelToExpressionMapping);
  11. std::shared_ptr<Formula> substitute(Formula const& f) const;
  12. virtual boost::any visit(AtomicLabelFormula const& f, boost::any const& data) const override;
  13. private:
  14. std::map<std::string, storm::expressions::Expression> const& labelToExpressionMapping;
  15. };
  16. }
  17. }
  18. #endif /* STORM_LOGIC_FORMULAINFORMATIONVISITOR_H_ */