Skip to content

Commit

Permalink
CPROVER library linking: move status message to front-end
Browse files Browse the repository at this point in the history
  • Loading branch information
tautschnig committed Jun 8, 2018
1 parent c471f72 commit c8702ab
Show file tree
Hide file tree
Showing 5 changed files with 5 additions and 5 deletions.
2 changes: 2 additions & 0 deletions src/cbmc/cbmc_parse_options.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -711,6 +711,8 @@ bool cbmc_parse_optionst::process_goto_program(
remove_asm(goto_model);

// add the library
log.status() << "Adding CPROVER library (" << config.ansi_c.arch << ")"
<< eom;
link_to_library(goto_model, log.get_message_handler());

if(options.get_bool_option("string-abstraction"))
Expand Down
1 change: 1 addition & 0 deletions src/goto-analyzer/goto_analyzer_parse_options.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -724,6 +724,7 @@ bool goto_analyzer_parse_optionst::process_goto_program(
remove_asm(goto_model);

// add the library
status() << "Adding CPROVER library (" << config.ansi_c.arch << ")" << eom;
link_to_library(goto_model, ui_message_handler);
#endif

Expand Down
1 change: 1 addition & 0 deletions src/goto-diff/goto_diff_parse_options.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -394,6 +394,7 @@ bool goto_diff_parse_optionst::process_goto_program(
remove_asm(goto_model);

// add the library
status() << "Adding CPROVER library (" << config.ansi_c.arch << ")" << eom;
link_to_library(goto_model, get_message_handler());

// remove function pointers
Expand Down
1 change: 1 addition & 0 deletions src/goto-instrument/goto_instrument_parse_options.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -957,6 +957,7 @@ void goto_instrument_parse_optionst::instrument_goto_program()
config.ansi_c.defines.push_back("__CPROVER_CUSTOM_BITVECTOR_ANALYSIS");

// add the library
status() << "Adding CPROVER library (" << config.ansi_c.arch << ")" << eom;
link_to_library(goto_model, get_message_handler());
}

Expand Down
5 changes: 0 additions & 5 deletions src/goto-programs/link_to_library.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -36,11 +36,6 @@ void link_to_library(
// this needs a fixedpoint, as library functions
// may depend on other library functions

messaget message(message_handler);

message.status() << "Adding CPROVER library ("
<< config.ansi_c.arch << ")" << messaget::eom;

std::set<irep_idt> added_functions;

while(true)
Expand Down

0 comments on commit c8702ab

Please sign in to comment.