@@ -11,27 +11,30 @@ Author: Daniel Kroening, kroening@kroening.com
1111
1212#include " link_to_library.h"
1313
14- #include < util/config.h>
15-
16- #include < ansi-c/cprover_library.h>
17-
1814#include " compute_called_functions.h"
1915#include " goto_convert_functions.h"
2016
2117void link_to_library (
2218 goto_modelt &goto_model,
23- message_handlert &message_handler)
19+ message_handlert &message_handler,
20+ const std::function<
21+ void (const std::set<irep_idt> &, symbol_tablet &, message_handlert &)>
22+ &library)
2423{
2524 link_to_library (
2625 goto_model.symbol_table ,
2726 goto_model.goto_functions ,
28- message_handler);
27+ message_handler,
28+ library);
2929}
3030
3131void link_to_library (
3232 symbol_tablet &symbol_table,
3333 goto_functionst &goto_functions,
34- message_handlert &message_handler)
34+ message_handlert &message_handler,
35+ const std::function<
36+ void (const std::set<irep_idt> &, symbol_tablet &, message_handlert &)>
37+ &library)
3538{
3639 // this needs a fixedpoint, as library functions
3740 // may depend on other library functions
@@ -69,7 +72,7 @@ void link_to_library(
6972 if (missing_functions.empty ())
7073 break ;
7174
72- add_cprover_library (missing_functions, symbol_table, message_handler);
75+ library (missing_functions, symbol_table, message_handler);
7376
7477 // convert to CFG
7578 for (const auto &id : missing_functions)
0 commit comments