Browse Source

To dice translation, remove hack for modulo

tempestpy_adaptions
Sebastian Junges 4 years ago
parent
commit
2cd25d069c
  1. 7
      src/storm/storage/expressions/ToDiceStringVisitor.cpp

7
src/storm/storage/expressions/ToDiceStringVisitor.cpp

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

Loading…
Cancel
Save