File tree Expand file tree Collapse file tree 4 files changed +23
-8
lines changed Expand file tree Collapse file tree 4 files changed +23
-8
lines changed Original file line number Diff line number Diff line change 1
1
2
2
3
- add_executable (bmc_api call_bmc.cpp )
3
+ add_executable (bmc_api call_bmc.cpp api.cpp )
4
4
5
5
target_link_libraries (bmc_api goto-programs util langapi ansi-c )
Original file line number Diff line number Diff line change
1
+ #include < goto-programs/goto_model.h>
2
+ #include < goto-programs/initialize_goto_model.h>
3
+
4
+ #include < util/message.h>
5
+
6
+ goto_modelt load_model_from_files (
7
+ const std::vector<std::string> &files,
8
+ const optionst &options)
9
+ {
10
+ null_message_handlert null_msg_hnd;
11
+ return initialize_goto_model (files, null_msg_hnd, options);
12
+ }
Original file line number Diff line number Diff line change
1
+ #include < vector>
2
+
3
+ #include < goto-programs/goto_model.h>
4
+
5
+ goto_modelt load_model_from_files (
6
+ const std::vector<std::string> &files,
7
+ const optionst &options);
Original file line number Diff line number Diff line change 14
14
#include < util/message.h>
15
15
#include < util/options.h>
16
16
17
+ #include " api.h"
18
+
17
19
int main (int argc, char *argv[])
18
20
{
19
21
try {
@@ -35,13 +37,7 @@ int main(int argc, char *argv[])
35
37
// Initialise C language mode
36
38
register_language (new_ansi_c_language);
37
39
38
- std::cout << " [DEBUG] arguments is " ;
39
- for (auto opt : arguments) {
40
- std::cout << " [] " << opt << std::endl;
41
- }
42
-
43
- // Assume that argv[] is a list of files passed
44
- goto_modelt model = initialize_goto_model (arguments, null_msg_hnd, opts);
40
+ auto model = load_model_from_files (arguments, opts);
45
41
46
42
std::cout << " Successfully initialised goto_model" << std::endl;
47
43
return 0 ;
You can’t perform that action at this time.
0 commit comments