#include "src/logic/UntilFormula.h" namespace storm { namespace logic { UntilFormula::UntilFormula(std::shared_ptr const& leftSubformula, std::shared_ptr const& rightSubformula) : BinaryPathFormula(leftSubformula, rightSubformula) { // Intentionally left empty. } bool UntilFormula::isUntilFormula() const { return true; } bool UntilFormula::isValidProbabilityPathFormula() const { return true; } std::shared_ptr UntilFormula::substitute(std::map const& substitution) const { return std::make_shared(this->getLeftSubformula().substitute(substitution), this->getRightSubformula().substitute(substitution)); } std::ostream& UntilFormula::writeToStream(std::ostream& out) const { this->getLeftSubformula().writeToStream(out); out << " U "; this->getRightSubformula().writeToStream(out); return out; } } }