STORM_LOG_THROW(this->getLeftSubformula().isStateFormula()||this->getLeftSubformula().isPathFormula(),storm::exceptions::InvalidPropertyException,"Boolean path formula must have either path or state subformulas");
STORM_LOG_THROW(this->getRightSubformula().isStateFormula()||this->getRightSubformula().isPathFormula(),storm::exceptions::InvalidPropertyException,"Boolean path formula must have either path or state subformulas");
STORM_LOG_THROW(context==FormulaContext::Probability,storm::exceptions::InvalidPropertyException,"Invalid context for formula.");
STORM_LOG_THROW(this->getSubformula().isStateFormula()||this->getSubformula().isPathFormula(),storm::exceptions::InvalidPropertyException,"Boolean path formula must have either path or state subformulas");
STORM_LOG_THROW(context==FormulaContext::Probability,storm::exceptions::InvalidPropertyException,"Invalid context for formula.");