Browse Source

Fix assertion. assert(x < y < z) is not the same as assert(x < y and y < z).

tempestpy_adaptions
sjunges 6 years ago
parent
commit
d417c9ecbe
  1. 3
      src/storm/utility/shortestPaths.h

3
src/storm/utility/shortestPaths.h

@ -235,7 +235,8 @@ namespace storm {
// only non-zero entries (i.e. true transitions) are added to the map
if (probEntry != 0) {
assert(0 < probEntry <= 1);
assert(0 < probEntry);
assert(probEntry <= 1);
stateProbMap.emplace(i, probEntry);
}
}

Loading…
Cancel
Save