Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
25 changes: 25 additions & 0 deletions regression/cbmc/Local_out_of_scope2/main.c
Original file line number Diff line number Diff line change
@@ -0,0 +1,25 @@
inline void foo(int x)
{
}

void bar()
{
foo(0);
}

void foobar()
{
// different argument values must not cause an inconsistency in the
// equation system
foo(0);
bar();
foo(1);
}

int main()
{
foobar();
foobar();
__CPROVER_assert(0, "");
return 0;
}
8 changes: 8 additions & 0 deletions regression/cbmc/Local_out_of_scope2/test.desc
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
CORE
main.c

^EXIT=10$
^SIGNAL=0$
^VERIFICATION FAILED$
--
^warning: ignoring
2 changes: 1 addition & 1 deletion src/goto-symex/symex_function_call.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -501,9 +501,9 @@ void goto_symext::locality(
while(state.l1_history.find(l1_name)!=state.l1_history.end())
{
state.level1.increase_counter(l0_name);
++offset;
ssa.set_level_1(frame_nr+offset);
l1_name=ssa.get_identifier();
++offset;
}

// now unique -- store
Expand Down