Skip to content

Commit c3ba7e0

Browse files
committed
Format
1 parent 49ae248 commit c3ba7e0

File tree

2 files changed

+11
-8
lines changed

2 files changed

+11
-8
lines changed

src/goto-instrument/code_contracts.cpp

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -98,7 +98,10 @@ void code_contractst::check_apply_invariants(
9898
return;
9999

100100
// Add quantified variables in contracts to the symbol map
101-
//TODO improve the structure below
101+
// TODO improve the structure below wrt the replace_symbolt object
102+
// In the current implementation, the add_quantified_variable
103+
// function requires a replace_symbolt object as input, which is
104+
// irrelevant in the context of loop contracts.
102105
replace_symbolt replace;
103106
code_contractst::add_quantified_variable(invariant, replace, mode);
104107

src/goto-instrument/code_contracts.h

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -18,9 +18,9 @@ Date: February 2016
1818
#include <string>
1919
#include <unordered_set>
2020

21+
#include <goto-programs/goto_convert_class.h>
2122
#include <goto-programs/goto_functions.h>
2223
#include <goto-programs/goto_model.h>
23-
#include <goto-programs/goto_convert_class.h>
2424

2525
#include <goto-instrument/loop_utils.h>
2626

@@ -185,12 +185,12 @@ class code_contractst
185185
irep_idt mode);
186186

187187
void check_apply_invariants(
188-
goto_functionst::goto_functiont &goto_function,
189-
goto_convertt &converter,
190-
const local_may_aliast &local_may_alias,
191-
const goto_programt::targett loop_head,
192-
const loopt &loop,
193-
const irep_idt &mode);
188+
goto_functionst::goto_functiont &goto_function,
189+
goto_convertt &converter,
190+
const local_may_aliast &local_may_alias,
191+
const goto_programt::targett loop_head,
192+
const loopt &loop,
193+
const irep_idt &mode);
194194
};
195195

196196
#define FLAG_REPLACE_CALL "replace-call-with-contract"

0 commit comments

Comments
 (0)