Skip to content

Commit 7c0fbd7

Browse files
author
Remi Delmas
committed
CONTRACTS: erase CPROVER start before regenerating
1 parent b25d6e5 commit 7c0fbd7

File tree

1 file changed

+4
-0
lines changed
  • src/goto-instrument/contracts/dynamic-frames

1 file changed

+4
-0
lines changed

src/goto-instrument/contracts/dynamic-frames/dfcc.cpp

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -483,6 +483,10 @@ void dfcct::transform_goto_model(
483483

484484
// Define harness as the entry point, overriding any preexisting one.
485485
log.status() << "Setting entry point to " << harness_id << messaget::eom;
486+
// remove the CPROVER start function
487+
goto_model.symbol_table.erase(
488+
goto_model.symbol_table.symbols.find(goto_functionst::entry_point()));
489+
// regenerate the CPROVER start function
486490
generate_ansi_c_start_function(
487491
utils.get_function_symbol(harness_id),
488492
goto_model.symbol_table,

0 commit comments

Comments
 (0)