Browse Source

JaniTraverser: Only traverse lower/upper bound expressions of BoundedIntegerVariables, if these bounds exists.

tempestpy_adaptions
Tim Quatmann 4 years ago
parent
commit
20d424e289
  1. 4
      src/storm/storage/jani/FunctionEliminator.cpp
  2. 8
      src/storm/storage/jani/traverser/JaniTraverser.cpp

4
src/storm/storage/jani/FunctionEliminator.cpp

@ -334,9 +334,13 @@ namespace storm {
if (variable.hasInitExpression()) {
variable.setInitExpression(functionEliminationVisitor->eliminate(variable.getInitExpression()));
}
if (variable.hasLowerBound()) {
variable.setLowerBound(functionEliminationVisitor->eliminate(variable.getLowerBound()));
}
if (variable.hasUpperBound()) {
variable.setUpperBound(functionEliminationVisitor->eliminate(variable.getUpperBound()));
}
}
void traverse(UnboundedIntegerVariable& variable, boost::any const& data) override {
if (variable.hasInitExpression()) {

8
src/storm/storage/jani/traverser/JaniTraverser.cpp

@ -95,9 +95,13 @@ namespace storm {
if (variable.hasInitExpression()) {
traverse(variable.getInitExpression(), data);
}
if (variable.hasLowerBound()) {
traverse(variable.getLowerBound(), data);
}
if (variable.hasUpperBound()) {
traverse(variable.getUpperBound(), data);
}
}
void JaniTraverser::traverse(UnboundedIntegerVariable& variable, boost::any const& data) {
if (variable.hasInitExpression()) {
@ -276,9 +280,13 @@ namespace storm {
if (variable.hasInitExpression()) {
traverse(variable.getInitExpression(), data);
}
if (variable.hasLowerBound()) {
traverse(variable.getLowerBound(), data);
}
if (variable.hasUpperBound()) {
traverse(variable.getUpperBound(), data);
}
}
void ConstJaniTraverser::traverse(UnboundedIntegerVariable const& variable, boost::any const& data) {
if (variable.hasInitExpression()) {

Loading…
Cancel
Save