Skip to content

Commit 6647399

Browse files
committed
Add comment to the change in symbol-factory
will be squashed.
1 parent 1299a54 commit 6647399

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

src/ansi-c/c_nondet_symbol_factory.cpp

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -56,6 +56,9 @@ void symbol_factoryt::gen_nondet_init(
5656

5757
if(subtype.id() == ID_code)
5858
{
59+
// Handle the pointer-to-code case separately:
60+
// leave as nondet_ptr to allow `remove_function_pointers`
61+
// to replace the pointer.
5962
assignments.add(
6063
code_assignt{expr, side_effect_expr_nondett{pointer_type, loc}});
6164
return;

0 commit comments

Comments
 (0)