Skip to content

Commit 69ec03b

Browse files
committed
Separate out function_name varable
So that the code explains what is being written to file without the need for the `// name` comment.
1 parent aa61489 commit 69ec03b

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

src/goto-programs/write_goto_binary.cpp

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -123,7 +123,8 @@ static void write_goto_functions_binary(
123123
// Since version 2, goto functions are not converted to ireps,
124124
// instead they are saved in a custom binary format
125125

126-
write_gb_string(out, id2string(fct.first)); // name
126+
const auto function_name = id2string(fct.first);
127+
write_gb_string(out, function_name);
127128
write_instructions_binary(out, irepconverter, fct);
128129
}
129130
}

0 commit comments

Comments
 (0)