File tree 2 files changed +5
-5
lines changed
src/goto-instrument/contracts/dynamic-frames
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
209
209
return {};
210
210
}
211
211
212
- void dfcc_libraryt::get_missing_funs ( std::set<irep_idt> &missing )
212
+ std::set<irep_idt> dfcc_libraryt::get_missing_funs ( )
213
213
{
214
- missing. clear () ;
214
+ std::set<irep_idt> missing;
215
215
216
216
// add `malloc` since it is needed used by the `is_fresh` function
217
217
missing.insert (" malloc" );
@@ -243,6 +243,7 @@ void dfcc_libraryt::get_missing_funs(std::set<irep_idt> &missing)
243
243
missing.insert (pair.second );
244
244
}
245
245
}
246
+ return missing;
246
247
}
247
248
248
249
bool dfcc_libraryt::loaded = false ;
@@ -283,8 +284,7 @@ void dfcc_libraryt::load(std::set<irep_idt> &to_instrument)
283
284
to_load, tmp_symbol_table, message_handler);
284
285
285
286
// 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 ();
288
288
289
289
// copy all loaded symbols to the main symbol table
290
290
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
173
173
174
174
// / Collects the names of all library functions currently missing from the
175
175
// / goto_model into `missing`.
176
- void get_missing_funs ( std::set<irep_idt> &missing );
176
+ std::set<irep_idt> get_missing_funs ( );
177
177
178
178
// / Inlines library functions that need to be inlined before use
179
179
void inline_functions ();
You can’t perform that action at this time.
0 commit comments