@ -843,7 +843,7 @@ namespace storm {
if ( observable ) {
this - > observables . erase ( renamingPair - > second ) ;
}
booleanVariables . push_back ( storm : : prism : : BooleanVariable ( manager - > getVariable ( renamingPair - > second ) , variable . hasInitialValue ( ) ? variable . getInitialValueExpression ( ) . substitute ( expressionRenaming ) : variable . getInitialValueExpression ( ) , observable , this - > getFilename ( ) , get_line ( qi : : _1 ) ) ) ;
booleanVariables . push_back ( storm : : prism : : BooleanVariable ( manager - > getVariable ( renamingPair - > second ) , variable . hasInitialValue ( ) ? variable . getInitialValueExpression ( ) . substitute ( expressionRenaming ) : variable . getInitialValueExpression ( ) , observable , this - > getFilename ( ) ) ) ;
}
// Rename the integer variables.
@ -855,7 +855,7 @@ namespace storm {
if ( observable ) {
this - > observables . erase ( renamingPair - > second ) ;
}
integerVariables . push_back ( storm : : prism : : IntegerVariable ( manager - > getVariable ( renamingPair - > second ) , variable . getLowerBoundExpression ( ) . substitute ( expressionRenaming ) , variable . getUpperBoundExpression ( ) . substitute ( expressionRenaming ) , variable . hasInitialValue ( ) ? variable . getInitialValueExpression ( ) . substitute ( expressionRenaming ) : variable . getInitialValueExpression ( ) , observable , this - > getFilename ( ) , get_line ( qi : : _1 ) ) ) ;
integerVariables . push_back ( storm : : prism : : IntegerVariable ( manager - > getVariable ( renamingPair - > second ) , variable . getLowerBoundExpression ( ) . substitute ( expressionRenaming ) , variable . getUpperBoundExpression ( ) . substitute ( expressionRenaming ) , variable . hasInitialValue ( ) ? variable . getInitialValueExpression ( ) . substitute ( expressionRenaming ) : variable . getInitialValueExpression ( ) , observable , this - > getFilename ( ) ) ) ;
}
// Rename the clock variables.
@ -867,7 +867,7 @@ namespace storm {
if ( observable ) {
this - > observables . erase ( renamingPair - > second ) ;
}
clockVariables . push_back ( storm : : prism : : ClockVariable ( manager - > getVariable ( renamingPair - > second ) , observable , this - > getFilename ( ) , get_line ( qi : : _1 ) ) ) ;
clockVariables . push_back ( storm : : prism : : ClockVariable ( manager - > getVariable ( renamingPair - > second ) , observable , this - > getFilename ( ) ) ) ;
}
// Rename invariant (if present)
@ -885,12 +885,12 @@ namespace storm {
for ( auto const & assignment : update . getAssignments ( ) ) {
auto const & renamingPair = renaming . find ( assignment . getVariableName ( ) ) ;
if ( renamingPair ! = renaming . end ( ) ) {
assignments . emplace_back ( manager - > getVariable ( renamingPair - > second ) , assignment . getExpression ( ) . substitute ( expressionRenaming ) , this - > getFilename ( ) , get_line ( qi : : _1 ) ) ;
assignments . emplace_back ( manager - > getVariable ( renamingPair - > second ) , assignment . getExpression ( ) . substitute ( expressionRenaming ) , this - > getFilename ( ) ) ;
} else {
assignments . emplace_back ( assignment . getVariable ( ) , assignment . getExpression ( ) . substitute ( expressionRenaming ) , this - > getFilename ( ) , get_line ( qi : : _1 ) ) ;
assignments . emplace_back ( assignment . getVariable ( ) , assignment . getExpression ( ) . substitute ( expressionRenaming ) , this - > getFilename ( ) ) ;
}
}
updates . emplace_back ( globalProgramInformation . currentUpdateIndex , update . getLikelihoodExpression ( ) . substitute ( expressionRenaming ) , assignments , this - > getFilename ( ) , get_line ( qi : : _1 ) ) ;
updates . emplace_back ( globalProgramInformation . currentUpdateIndex , update . getLikelihoodExpression ( ) . substitute ( expressionRenaming ) , assignments , this - > getFilename ( ) ) ;
+ + globalProgramInformation . currentUpdateIndex ;
}
@ -910,7 +910,7 @@ namespace storm {
actionIndex = nameIndexPair - > second ;
}
commands . emplace_back ( globalProgramInformation . currentCommandIndex , command . isMarkovian ( ) , actionIndex , newActionName , command . getGuardExpression ( ) . substitute ( expressionRenaming ) , updates , this - > getFilename ( ) , get_line ( qi : : _1 ) ) ;
commands . emplace_back ( globalProgramInformation . currentCommandIndex , command . isMarkovian ( ) , actionIndex , newActionName , command . getGuardExpression ( ) . substitute ( expressionRenaming ) , updates , this - > getFilename ( ) ) ;
+ + globalProgramInformation . currentCommandIndex ;
}