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) { 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 << "(";

Loading…
Cancel
Save