File tree Expand file tree Collapse file tree 2 files changed +5
-5
lines changed
src/goto-instrument/contracts/dynamic-frames Expand file tree Collapse file tree 2 files changed +5
-5
lines changed Original file line number Diff line number Diff line change @@ -209,9 +209,9 @@ dfcc_libraryt::get_havoc_hook(const irep_idt &function_id) const
209209 return {};
210210}
211211
212- void dfcc_libraryt::get_missing_funs ( std::set<irep_idt> &missing )
212+ std::set<irep_idt> dfcc_libraryt::get_missing_funs ( )
213213{
214- missing. clear () ;
214+ std::set<irep_idt> missing;
215215
216216 // add `malloc` since it is needed used by the `is_fresh` function
217217 missing.insert (" malloc" );
@@ -243,6 +243,7 @@ void dfcc_libraryt::get_missing_funs(std::set<irep_idt> &missing)
243243 missing.insert (pair.second );
244244 }
245245 }
246+ return missing;
246247}
247248
248249bool dfcc_libraryt::loaded = false ;
@@ -283,8 +284,7 @@ void dfcc_libraryt::load(std::set<irep_idt> &to_instrument)
283284 to_load, tmp_symbol_table, message_handler);
284285
285286 // compute missing library functions before modifying the symbol table
286- std::set<irep_idt> missing;
287- get_missing_funs (missing);
287+ std::set<irep_idt> missing = get_missing_funs ();
288288
289289 // copy all loaded symbols to the main symbol table
290290 for (const auto &symbol_pair : tmp_symbol_table.symbols )
Original file line number Diff line number Diff line change @@ -173,7 +173,7 @@ class dfcc_libraryt
173173
174174 // / Collects the names of all library functions currently missing from the
175175 // / goto_model into `missing`.
176- void get_missing_funs ( std::set<irep_idt> &missing );
176+ std::set<irep_idt> get_missing_funs ( );
177177
178178 // / Inlines library functions that need to be inlined before use
179179 void inline_functions ();
You can’t perform that action at this time.
0 commit comments