Browse Source

re-enabled omitting unused variables from PRISM models when converting to JANI

Former-commit-id: 4803b32ad3
tempestpy_adaptions
dehnert 9 years ago
parent
commit
d84ae34cc6
  1. 4
      src/storage/prism/Program.cpp

4
src/storage/prism/Program.cpp

@ -1560,7 +1560,7 @@ namespace storm {
automaton.addBoundedIntegerVariable(newIntegerVariable);
storm::expressions::Expression variableInitialExpression = variable.getExpressionVariable() == variable.getInitialValueExpression();
initialStatesExpression = initialStatesExpression.isInitialized() ? initialStatesExpression && variableInitialExpression : variableInitialExpression;
} else { // if (!accessingModuleIndices.empty()) {
} else if (!accessingModuleIndices.empty()) {
// Otherwise, we need to make it global.
janiModel.addBoundedIntegerVariable(newIntegerVariable);
storm::expressions::Expression variableInitialExpression = variable.getExpressionVariable() == variable.getInitialValueExpression();
@ -1575,7 +1575,7 @@ namespace storm {
automaton.addBooleanVariable(newBooleanVariable);
storm::expressions::Expression variableInitialExpression = storm::expressions::iff(variable.getExpressionVariable(), variable.getInitialValueExpression());
initialStatesExpression = initialStatesExpression.isInitialized() ? initialStatesExpression && variableInitialExpression : variableInitialExpression;
} else { //if (!accessingModuleIndices.empty()) {
} else if (!accessingModuleIndices.empty()) {
// Otherwise, we need to make it global.
janiModel.addBooleanVariable(newBooleanVariable);
storm::expressions::Expression variableInitialExpression = storm::expressions::iff(variable.getExpressionVariable(), variable.getInitialValueExpression());

Loading…
Cancel
Save