Browse Source

Fix fall-through by using assert

tempestpy_adaptions
Matthias Volk 5 years ago
parent
commit
6355e07a0c
  1. 3
      src/storm/adapters/Z3ExpressionAdapter.cpp

3
src/storm/adapters/Z3ExpressionAdapter.cpp

@ -150,7 +150,8 @@ namespace storm {
} else { } else {
STORM_LOG_THROW(false, storm::exceptions::ExpressionEvaluationException, "Failed to convert Z3 expression. Expression is constant integer and value does not fit into 64-bit integer."); STORM_LOG_THROW(false, storm::exceptions::ExpressionEvaluationException, "Failed to convert Z3 expression. Expression is constant integer and value does not fit into 64-bit integer.");
} }
} else if (expr.is_real() && expr.is_const()) {
} else {
STORM_LOG_ASSERT(expr.is_real() && expr.is_const(), "Cannot handle numerical expression");
Z3_SIGNED_INTEGER num; Z3_SIGNED_INTEGER num;
Z3_SIGNED_INTEGER den; Z3_SIGNED_INTEGER den;
if (Z3_get_numeral_rational_int64(expr.ctx(), expr, &num, &den)) { if (Z3_get_numeral_rational_int64(expr.ctx(), expr, &num, &den)) {

Loading…
Cancel
Save