#include "storm/logic/BinaryPathFormula.h" namespace storm { namespace logic { BinaryPathFormula::BinaryPathFormula(std::shared_ptr const& leftSubformula, std::shared_ptr const& rightSubformula) : leftSubformula(leftSubformula), rightSubformula(rightSubformula) { // Intentionally left empty. } bool BinaryPathFormula::isBinaryPathFormula() const { return true; } Formula const& BinaryPathFormula::getLeftSubformula() const { return *leftSubformula; } Formula const& BinaryPathFormula::getRightSubformula() const { return *rightSubformula; } void BinaryPathFormula::gatherAtomicExpressionFormulas(std::vector>& atomicExpressionFormulas) const { this->getLeftSubformula().gatherAtomicExpressionFormulas(atomicExpressionFormulas); this->getRightSubformula().gatherAtomicExpressionFormulas(atomicExpressionFormulas); } void BinaryPathFormula::gatherAtomicLabelFormulas(std::vector>& atomicLabelFormulas) const { this->getLeftSubformula().gatherAtomicLabelFormulas(atomicLabelFormulas); this->getRightSubformula().gatherAtomicLabelFormulas(atomicLabelFormulas); } void BinaryPathFormula::gatherReferencedRewardModels(std::set& referencedRewardModels) const { this->getLeftSubformula().gatherReferencedRewardModels(referencedRewardModels); this->getRightSubformula().gatherReferencedRewardModels(referencedRewardModels); } void BinaryPathFormula::gatherUsedVariables(std::set& usedVariables) const { this->getLeftSubformula().gatherUsedVariables(usedVariables); this->getRightSubformula().gatherUsedVariables(usedVariables); } bool BinaryPathFormula::hasQualitativeResult() const { return false; } bool BinaryPathFormula::hasQuantitativeResult() const { return true; } } }