Skip to content

Commit 74e9535

Browse files
committed
Ensure globally unique location numbers after reading binary
Location numbers are not stored in v3 goto binaries. Reading from binaries up to now only invoked update() on a per-function level. The additional goto_functionst::compute_location_numbers() ensures globally unique location numbers. Fixes #313.
1 parent e49c7cb commit 74e9535

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

src/goto-programs/read_bin_goto_object.cpp

+2
Original file line numberDiff line numberDiff line change
@@ -160,6 +160,8 @@ bool read_bin_goto_object_v3(
160160
if(hidden) f.make_hidden();
161161
}
162162

163+
functions.compute_location_numbers();
164+
163165
return false;
164166
}
165167

0 commit comments

Comments
 (0)