From 6355e07a0c2e11af1a679d902b0955560ef17477 Mon Sep 17 00:00:00 2001 From: Matthias Volk Date: Wed, 6 May 2020 17:45:35 +0200 Subject: [PATCH] Fix fall-through by using assert --- src/storm/adapters/Z3ExpressionAdapter.cpp | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/storm/adapters/Z3ExpressionAdapter.cpp b/src/storm/adapters/Z3ExpressionAdapter.cpp index bb9afb6f3..34dea0fa3 100644 --- a/src/storm/adapters/Z3ExpressionAdapter.cpp +++ b/src/storm/adapters/Z3ExpressionAdapter.cpp @@ -150,7 +150,8 @@ namespace storm { } 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."); } - } 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 den; if (Z3_get_numeral_rational_int64(expr.ctx(), expr, &num, &den)) {