Browse Source

export of compressed states to json with negative values fixed

tempestpy_adaptions
Sebastian Junges 4 years ago
parent
commit
922d6f6572
  1. 3
      src/storm/generator/CompressedState.cpp

3
src/storm/generator/CompressedState.cpp

@ -168,7 +168,8 @@ namespace storm {
if (onlyObservable && !integerVariable.observable) {
continue;
}
result[integerVariable.getName()] = state.getAsInt(integerVariable.bitOffset, integerVariable.bitWidth) + integerVariable.lowerBound;
STORM_LOG_ASSERT(integerVariable.bitWidth <= 63, "Only integer variables with at most 63 bits are supported");
result[integerVariable.getName()] = static_cast<int64_t>(state.getAsInt(integerVariable.bitOffset, integerVariable.bitWidth)) + integerVariable.lowerBound;
}
return result;
}

Loading…
Cancel
Save