STORM_LOG_THROW(encounteredTemplateEdges.find(edge.getTemplateEdge())==encounteredTemplateEdges.end(),storm::exceptions::NotSupportedException,"Pushing location assignments to edges is only supported for automata with unique template edges.");
// If the element is contained in this set of assignment, nothing needs to be added.
if(this->contains(assignment)){
returnfalse;
@ -27,18 +27,22 @@ namespace storm {
autoit=lowerBound(assignment,allAssignments);
if(it!=allAssignments.end()){
STORM_LOG_THROW(assignment.getExpressionVariable()!=(*it)->getExpressionVariable(),storm::exceptions::InvalidArgumentException,"Cannot add assignment ('"<<assignment.getAssignedExpression()<<"') as an assignment ('"<<(*it)->getAssignedExpression()<<"') to variable '"<<(*it)->getVariable().getName()<<"' already exists.");
}
// Finally, insert the new element in the correct vectors.
STORM_LOG_THROW(assignment.getExpressionVariable()!=(*it)->getExpressionVariable(),storm::exceptions::InvalidArgumentException,"Cannot add assignment ('"<<assignment.getAssignedExpression()<<"') as an assignment ('"<<(*it)->getAssignedExpression()<<"') to variable '"<<(*it)->getVariable().getName()<<"' already exists.");