We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 69404d6 commit a795035Copy full SHA for a795035
src/goto-programs/interpreter_class.h
@@ -15,10 +15,11 @@ Author: Daniel Kroening, [email protected]
15
#include <stack>
16
17
#include <util/arith_tools.h>
18
+#include <util/exception_utils.h>
19
#include <util/invariant.h>
-#include <util/std_types.h>
20
-#include <util/sparse_vector.h>
21
#include <util/message.h>
+#include <util/sparse_vector.h>
22
+#include <util/std_types.h>
23
24
#include "goto_functions.h"
25
#include "goto_trace.h"
@@ -279,8 +280,9 @@ class interpretert:public messaget
279
280
{
281
mp_vectort v;
282
evaluate(expr, v);
283
+ // FIXME not sure if this can happen
284
if(v.size()!=1)
- throw "invalid boolean value";
285
+ throw analysis_exceptiont("invalid boolean value");
286
return v.front()!=0;
287
}
288
0 commit comments