File tree 4 files changed +8
-10
lines changed
src/goto-instrument/contracts/dynamic-frames
4 files changed +8
-10
lines changed Original file line number Diff line number Diff line change @@ -522,16 +522,15 @@ dfcc_cfg_infot::dfcc_cfg_infot(
522
522
: function_id(function_id),
523
523
goto_function(goto_function),
524
524
top_level_write_set(top_level_write_set),
525
- log(message_handler),
526
525
ns(symbol_table)
527
526
{
528
527
dfcc_loop_nesting_grapht loop_nesting_graph;
529
528
goto_programt &goto_program = goto_function.body ;
530
- messaget log (message_handler);
531
529
if (loop_contract_mode != dfcc_loop_contract_modet::NONE)
532
530
{
531
+ messaget log (message_handler);
533
532
dfcc_check_loop_normal_form (goto_program, log );
534
- loop_nesting_graph = build_loop_nesting_graph (goto_program, log );
533
+ loop_nesting_graph = build_loop_nesting_graph (goto_program);
535
534
536
535
const auto head = check_inner_loops_have_contracts (loop_nesting_graph);
537
536
if (head.has_value ())
Original file line number Diff line number Diff line change @@ -17,7 +17,6 @@ Date: March 2023
17
17
#ifndef CPROVER_GOTO_INSTRUMENT_CONTRACTS_DYNAMIC_FRAMES_DFCC_CFG_INFO_H
18
18
#define CPROVER_GOTO_INSTRUMENT_CONTRACTS_DYNAMIC_FRAMES_DFCC_CFG_INFO_H
19
19
20
- #include < util/message.h>
21
20
#include < util/namespace.h>
22
21
#include < util/std_expr.h>
23
22
#include < util/symbol_table.h>
@@ -33,6 +32,7 @@ Date: March 2023
33
32
class dfcc_utilst ;
34
33
class dfcc_libraryt ;
35
34
class goto_functiont ;
35
+ class message_handlert ;
36
36
37
37
// / \brief Describes a single loop for the purpose of DFCC loop contract
38
38
// / instrumentation.
@@ -297,7 +297,6 @@ class dfcc_cfg_infot
297
297
const irep_idt &function_id;
298
298
goto_functiont &goto_function;
299
299
const exprt &top_level_write_set;
300
- messaget log;
301
300
const namespacet ns;
302
301
303
302
// / True iff \p id is in the valid range for a loop id or is equal to
Original file line number Diff line number Diff line change @@ -12,12 +12,12 @@ Date: March 2023
12
12
13
13
#include " dfcc_loop_nesting_graph.h"
14
14
15
- #include < util/invariant .h>
15
+ #include < analyses/natural_loops .h>
16
16
17
17
dfcc_loop_nesting_graph_nodet::dfcc_loop_nesting_graph_nodet (
18
18
const goto_programt::targett &head,
19
19
const goto_programt::targett &latch,
20
- const loopt &instructions)
20
+ const loop_templatet<goto_programt::targett> &instructions)
21
21
: head(head), latch(latch), instructions(instructions)
22
22
{
23
23
}
Original file line number Diff line number Diff line change @@ -18,7 +18,7 @@ Date: March 2023
18
18
19
19
#include < util/graph.h>
20
20
21
- #include < goto-instrument/loop_utils .h>
21
+ #include < analyses/loop_analysis .h>
22
22
23
23
class messaget ;
24
24
@@ -29,7 +29,7 @@ struct dfcc_loop_nesting_graph_nodet : public graph_nodet<empty_edget>
29
29
dfcc_loop_nesting_graph_nodet (
30
30
const goto_programt::targett &head,
31
31
const goto_programt::targett &latch,
32
- const loopt &instructions);
32
+ const loop_templatet<goto_programt::targett> &instructions);
33
33
34
34
// / Loop head instruction
35
35
goto_programt::targett head;
@@ -38,7 +38,7 @@ struct dfcc_loop_nesting_graph_nodet : public graph_nodet<empty_edget>
38
38
goto_programt::targett latch;
39
39
40
40
// / Set of loop instructions
41
- loopt instructions;
41
+ loop_templatet<goto_programt::targett> instructions;
42
42
};
43
43
44
44
typedef grapht<dfcc_loop_nesting_graph_nodet> dfcc_loop_nesting_grapht;
You can’t perform that action at this time.
0 commit comments