STORM_LOG_ASSERT(likelihoodExpression.containsVariables()||likelihoodExpression.evaluateAsRational()>=0,"Negative likelihood expressions are not allowed.");
STORM_LOG_THROW(likelihoodExpression.containsVariables()||likelihoodExpression.evaluateAsRational()>=0,storm::exceptions::IllegalArgumentException,"Substitution yielding negative probabilities in '"<<this->getLikelihoodExpression()<<"' are not allowed.");
// FIXME: The expression could be simplified, but 1/K (where K is an int) is then resolved to 0, which is incorrect (for probabilities).