Browse Source

Fix assertion

tempestpy_adaptions
Jip Spel 6 years ago
parent
commit
8df0a05ab8
  1. 2
      src/storm-pars/analysis/MonotonicityChecker.cpp

2
src/storm-pars/analysis/MonotonicityChecker.cpp

@ -556,7 +556,7 @@ namespace storm {
for (auto j = initialStates.getNextSetIndex(0); j < model->getNumberOfStates(); j = initialStates.getNextSetIndex(j+1)) {
initial += values[j];
}
assert (initial >= precision && initial <= 1+precision);
assert (initial >= 0-precision && initial <= 1+precision);
double diff = previous - initial;
assert (previous == -1 || diff >= -1-precision && diff <= 1 + precision);
if (previous != -1 && (diff > precision || diff < -precision)) {

Loading…
Cancel
Save