|
@ -154,18 +154,11 @@ namespace storm { |
|
|
boost::any ToDiceStringVisitor::visit(BinaryRelationExpression const& expression, boost::any const& data) { |
|
|
boost::any ToDiceStringVisitor::visit(BinaryRelationExpression const& expression, boost::any const& data) { |
|
|
switch (expression.getRelationType()) { |
|
|
switch (expression.getRelationType()) { |
|
|
case BinaryRelationExpression::RelationType::Equal: |
|
|
case BinaryRelationExpression::RelationType::Equal: |
|
|
if (expression.getFirstOperand()->isBinaryNumericalFunctionExpression()) { |
|
|
|
|
|
if (expression.getFirstOperand()->asBinaryNumericalFunctionExpression().getOperatorType() == BinaryNumericalFunctionExpression::OperatorType::Modulo) { |
|
|
|
|
|
expression.getFirstOperand()->accept(*this, data); |
|
|
|
|
|
} |
|
|
|
|
|
} else { |
|
|
|
|
|
stream << "("; |
|
|
stream << "("; |
|
|
expression.getFirstOperand()->accept(*this, data); |
|
|
expression.getFirstOperand()->accept(*this, data); |
|
|
stream << "=="; |
|
|
stream << "=="; |
|
|
expression.getSecondOperand()->accept(*this, data); |
|
|
expression.getSecondOperand()->accept(*this, data); |
|
|
stream << ")"; |
|
|
stream << ")"; |
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
break; |
|
|
break; |
|
|
case BinaryRelationExpression::RelationType::NotEqual: |
|
|
case BinaryRelationExpression::RelationType::NotEqual: |
|
|
stream << "("; |
|
|
stream << "("; |
|
|