Skip to content

Commit

Permalink
stack depth instrumentation: __CPROVER_initialize may be empty
Browse files Browse the repository at this point in the history
Do not attempt to use information from the first instruction in
__CPROVER_initialize as there need not be any such instruction.
  • Loading branch information
tautschnig committed May 17, 2018
1 parent a7690ba commit 1a79a11
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/goto-instrument/stack_depth.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -107,8 +107,8 @@ void stack_depth(
goto_programt::targett it=init.insert_before(first);
it->make_assignment();
it->code=code_assignt(sym, from_integer(0, sym.type()));
it->source_location=first->source_location;
it->function=first->function;
// no suitable value for source location -- omitted
it->function = INITIALIZE_FUNCTION;

// update counters etc.
goto_model.goto_functions.update();
Expand Down

0 comments on commit 1a79a11

Please sign in to comment.