STORM_LOG_THROW(false,storm::exceptions::WrongFormatException,"Parsing error in "<<this->getFilename()<<", line "<<get_line(qi::_3)<<": Duplicate identifier '"<<variableName<<"'.");
}else{
STORM_LOG_THROW(false,storm::exceptions::WrongFormatException,"Parsing error in "<<this->getFilename()<<", line "<<get_line(qi::_3)<<": illegal identifier '"<<variableName<<"'.");
STORM_LOG_THROW(renamingPair!=renaming.end(),storm::exceptions::WrongFormatException,"Parsing error in "<<this->getFilename()<<", line "<<get_line(qi::_3)<<": Clock variable '"<<variable.getName()<<" was not renamed.");
STORM_LOG_THROW(renamingPair!=renaming.end(),storm::exceptions::WrongFormatException,"Parsing error in "<<this->getFilename()<<", line "<<get_line(qi::_3)<<": Clock variable '"<<variable.getName()<<" was not renamed.");
STORM_LOG_THROW(isValid,storm::exceptions::WrongFormatException,"Error in "<<module.getFilename()<<", line "<<module.getLineNumber()<<": invariant "<<module.getInvariant()<<" refers to unknown identifiers: "<<boost::algorithm::join(illegalVariableNames,",")<<".");
}
STORM_LOG_THROW(module.getInvariant().hasBooleanType(),storm::exceptions::WrongFormatException,"Error in "<<module.getFilename()<<", line "<<module.getLineNumber()<<": invariant "<<module.getInvariant()<<" must evaluate to type 'bool'.");
}
for(auto&command:module.getCommands()){
// Check the guard.
@ -1189,7 +1216,7 @@ namespace storm {
}
}
STORM_LOG_THROW(alreadyAssignedVariables.find(assignedVariable)==alreadyAssignedVariables.end(),storm::exceptions::WrongFormatException,"Error in "<<command.getFilename()<<", line "<<command.getLineNumber()<<": duplicate assignment to variable '"<<assignment.getVariableName()<<"'.");
STORM_LOG_THROW(assignedVariable.getType()==assignment.getExpression().getType(),storm::exceptions::WrongFormatException,"Error in "<<command.getFilename()<<", line "<<command.getLineNumber()<<": illegally assigning a value of type '"<<assignment.getExpression().getType()<<"' to variable '"<<assignment.getVariableName()<<"' of type '"<<assignedVariable.getType()<<"'.");
STORM_LOG_THROW(assignedVariable.getType()==assignment.getExpression().getType()||(assignedVariable.getType().isRationalType()&&assignment.getExpression().getType().isNumericalType()),storm::exceptions::WrongFormatException,"Error in "<<command.getFilename()<<", line "<<command.getLineNumber()<<": illegally assigning a value of type '"<<assignment.getExpression().getType()<<"' to variable '"<<assignment.getVariableName()<<"' of type '"<<assignedVariable.getType()<<"'.");