Skip to content

Commit 96fa0f9

Browse files
committed
Nondet static: fix up name of C++ initialisation procedure
In 2f9e6ff the prefix `#ini#` was replaced by `#cpp_dynamic_initialization#`, which therefore is the prefix to check for.
1 parent 8f4a19a commit 96fa0f9

File tree

1 file changed

+5
-1
lines changed

1 file changed

+5
-1
lines changed

src/goto-instrument/nondet_static.cpp

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -108,8 +108,12 @@ static void nondet_static(
108108
{
109109
const symbol_exprt &fsym = to_symbol_expr(instruction.call_function());
110110

111-
if(has_prefix(id2string(fsym.get_identifier()), "#ini#"))
111+
// see cpp/cpp_typecheck.cpp, which creates initialization functions
112+
if(has_prefix(
113+
id2string(fsym.get_identifier()), "#cpp_dynamic_initialization#"))
114+
{
112115
nondet_static(ns, goto_functions, fsym.get_identifier());
116+
}
113117
}
114118
}
115119

0 commit comments

Comments
 (0)