Skip to content

Commit e484846

Browse files
authored
Merge pull request #7167 from tautschnig/cleanup/ini
Nondet static: fix up name of C++ initialisation procedure
2 parents b0c09e3 + 96fa0f9 commit e484846

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)