@ -183,10 +183,16 @@ namespace storm {
std : : vector < std : : pair < ADD , std : : string > > variableNamePairs ;
for ( auto const & nameMetaVariablePair : this - > metaVariableMap ) {
DdMetaVariable < DdType : : CUDD > const & metaVariable = nameMetaVariablePair . second ;
// If the meta variable is of type bool, we don't need to suffix it with the bit number.
if ( metaVariable . getType ( ) = = DdMetaVariable < storm : : dd : : DdType : : CUDD > : : MetaVariableType : : Bool ) {
variableNamePairs . emplace_back ( metaVariable . getDdVariables ( ) . front ( ) . getCuddAdd ( ) , metaVariable . getName ( ) ) ;
} else {
// For integer-valued meta variables, we, however, have to add the suffix.
for ( uint_fast64_t variableIndex = 0 ; variableIndex < metaVariable . getNumberOfDdVariables ( ) ; + + variableIndex ) {
variableNamePairs . emplace_back ( metaVariable . getDdVariables ( ) [ variableIndex ] . getCuddAdd ( ) , metaVariable . getName ( ) + " . " + std : : to_string ( variableIndex ) ) ;
}
}
}
// Then, we sort this list according to the indices of the ADDs.
std : : sort ( variableNamePairs . begin ( ) , variableNamePairs . end ( ) , [ ] ( std : : pair < ADD , std : : string > const & a , std : : pair < ADD , std : : string > const & b ) { return a . first . NodeReadIndex ( ) < b . first . NodeReadIndex ( ) ; } ) ;