Browse Source

print predicate expressions added

tempestpy_adaptions
Sebastian Junges 4 years ago
parent
commit
4c350b3e2d
  1. 11
      src/storm/storage/expressions/PredicateExpression.cpp

11
src/storm/storage/expressions/PredicateExpression.cpp

@ -94,7 +94,16 @@ namespace storm {
} }
void PredicateExpression::printToStream(std::ostream& stream) const { void PredicateExpression::printToStream(std::ostream& stream) const {
switch (this->getPredicateType()) {
case PredicateExpression::PredicateType::AtMostOneOf: stream << "atMostOneOf(";
case PredicateExpression::PredicateType::AtLeastOneOf: stream << "atLeastOneOf(";
case PredicateExpression::PredicateType::ExactlyOneOf: stream << "exactlyOneOf(";
}
stream << *operands[0];
for (uint64_t i = 1; i < operands.size(); i++) {
stream << ", " << *operands[i];
}
stream << ")";
} }
} }
} }
Loading…
Cancel
Save