File tree Expand file tree Collapse file tree 2 files changed +9
-13
lines changed Expand file tree Collapse file tree 2 files changed +9
-13
lines changed Original file line number Diff line number Diff line change @@ -742,9 +742,7 @@ void interpretert::execute_assert()
742
742
{
743
743
if (!evaluate_boolean (pc->get_condition ()))
744
744
{
745
- if ((target_assert==pc) || stop_on_assertion)
746
- throw " program assertion reached" ;
747
- else if (show)
745
+ if (show)
748
746
error () << " assertion failed at " << pc->location_number
749
747
<< " \n " << eom;
750
748
}
Original file line number Diff line number Diff line change @@ -30,14 +30,13 @@ class interpretert:public messaget
30
30
interpretert (
31
31
const symbol_tablet &_symbol_table,
32
32
const goto_functionst &_goto_functions,
33
- message_handlert &_message_handler):
34
- messaget (_message_handler),
35
- symbol_table (_symbol_table),
36
- ns (_symbol_table),
37
- goto_functions (_goto_functions),
38
- stack_pointer (0 ),
39
- done (false ),
40
- stop_on_assertion(false )
33
+ message_handlert &_message_handler)
34
+ : messaget(_message_handler),
35
+ symbol_table (_symbol_table),
36
+ ns(_symbol_table),
37
+ goto_functions(_goto_functions),
38
+ stack_pointer(0 ),
39
+ done(false )
41
40
{
42
41
show=true ;
43
42
}
@@ -265,11 +264,10 @@ class interpretert:public messaget
265
264
list_input_varst function_input_vars;
266
265
267
266
goto_functionst::function_mapt::const_iterator function;
268
- goto_programt::const_targett pc, next_pc, target_assert ;
267
+ goto_programt::const_targett pc, next_pc;
269
268
goto_tracet steps;
270
269
bool done;
271
270
bool show;
272
- bool stop_on_assertion;
273
271
static const size_t npos;
274
272
size_t num_steps;
275
273
size_t total_steps;
You can’t perform that action at this time.
0 commit comments