@@ -617,9 +617,6 @@ void dfcc_wrapper_programt::encode_ensures_clauses()
617
617
const auto &statement_type =
618
618
(contract_mode == dfcc_contract_modet::CHECK) ? ID_assert : ID_assume;
619
619
620
- // goto program where all history variable snapshots are added
621
- goto_programt history_snapshot_program;
622
-
623
620
// goto program where all requires are added
624
621
goto_programt ensures_program;
625
622
@@ -634,10 +631,7 @@ void dfcc_wrapper_programt::encode_ensures_clauses()
634
631
635
632
// this also rewrites ID_old expressions to fresh variables
636
633
generate_history_variables_initialization (
637
- goto_model.symbol_table ,
638
- ensures,
639
- language_mode,
640
- history_snapshot_program);
634
+ goto_model.symbol_table , ensures, language_mode, history);
641
635
642
636
source_locationt sl (e.source_location ());
643
637
if (statement_type == ID_assert)
@@ -672,9 +666,6 @@ void dfcc_wrapper_programt::encode_ensures_clauses()
672
666
address_of_ensures_write_set,
673
667
function_pointer_contracts);
674
668
675
- // add the snapshot program in the history section
676
- history.destructive_append (history_snapshot_program);
677
-
678
669
// add the ensures program to the postconditions section
679
670
postconditions.destructive_append (ensures_program);
680
671
}
0 commit comments