// Only compute the result if the model has a state-based reward this->getModel().
// Only compute the result if the model has a state-based reward this->getModel().
STORM_LOG_THROW(rewardModel.hasStateRewards()||rewardModel.hasStateActionRewards(),storm::exceptions::InvalidPropertyException,"Missing reward model for formula. Skipping formula.");
STORM_LOG_THROW(rewardModel.hasStateRewards(),storm::exceptions::InvalidPropertyException,"Missing reward model for formula. Skipping formula.");
// Initialize result to state rewards of the model.
// Initialize result to state rewards of the model.