@@ -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
@@ -635,10 +632,7 @@ void dfcc_wrapper_programt::encode_ensures_clauses()
635
632
636
633
// this also rewrites ID_old expressions to fresh variables
637
634
generate_history_variables_initialization (
638
- goto_model.symbol_table ,
639
- ensures,
640
- language_mode,
641
- history_snapshot_program);
635
+ goto_model.symbol_table , ensures, language_mode, history);
642
636
643
637
source_locationt sl (e.source_location ());
644
638
if (statement_type == ID_assert)
@@ -671,9 +665,6 @@ void dfcc_wrapper_programt::encode_ensures_clauses()
671
665
addr_of_ensures_write_set,
672
666
function_pointer_contracts);
673
667
674
- // add the snapshot program in the history section
675
- history.destructive_append (history_snapshot_program);
676
-
677
668
// add the ensures program to the postconditions section
678
669
postconditions.destructive_append (ensures_program);
679
670
}
0 commit comments