cprover
enumerating_loop_acceleration.h
Go to the documentation of this file.
1 /*******************************************************************\
2 
3 Module: Loop Acceleration
4 
5 Author: Matt Lewis
6 
7 \*******************************************************************/
8 
11 
12 #ifndef CPROVER_GOTO_INSTRUMENT_ACCELERATE_ENUMERATING_LOOP_ACCELERATION_H
13 #define CPROVER_GOTO_INSTRUMENT_ACCELERATE_ENUMERATING_LOOP_ACCELERATION_H
14 
15 #include <memory>
16 
17 #include <util/make_unique.h>
18 
20 
21 #include <analyses/natural_loops.h>
22 
23 #include "polynomial_accelerator.h"
24 #include "path_enumerator.h"
25 #include "all_paths_enumerator.h"
26 #include "sat_path_enumerator.h"
27 
28 
30 {
31 public:
33  message_handlert &message_handler,
34  symbol_tablet &_symbol_table,
35  goto_functionst &_goto_functions,
36  goto_programt &_goto_program,
38  goto_programt::targett _loop_header,
39  int _path_limit,
41  : symbol_table(_symbol_table),
42  goto_functions(_goto_functions),
43  goto_program(_goto_program),
44  loop(_loop),
45  loop_header(_loop_header),
48  message_handler,
52  path_limit(_path_limit),
54  message_handler,
58  loop,
61  {
62  }
63 
64  bool accelerate(path_acceleratort &accelerator);
65 
66 protected:
75 
76  std::unique_ptr<path_enumeratort> path_enumerator;
77 };
78 
79 #endif // CPROVER_GOTO_INSTRUMENT_ACCELERATE_ENUMERATING_LOOP_ACCELERATION_H
Loop Acceleration.
enumerating_loop_accelerationt(message_handlert &message_handler, symbol_tablet &_symbol_table, goto_functionst &_goto_functions, goto_programt &_goto_program, natural_loops_mutablet::natural_loopt &_loop, goto_programt::targett _loop_header, int _path_limit, guard_managert &guard_manager)
std::unique_ptr< path_enumeratort > path_enumerator
bool accelerate(path_acceleratort &accelerator)
natural_loops_mutablet::natural_loopt & loop
A collection of goto functions.
A generic container class for the GOTO intermediate representation of one function.
Definition: goto_program.h:74
instructionst::iterator targett
Definition: goto_program.h:550
A loop, specified as a set of instructions.
Definition: loop_analysis.h:24
The symbol table.
Definition: symbol_table.h:20
Concrete Goto Program.
std::unique_ptr< T > util_make_unique(Ts &&... ts)
Definition: make_unique.h:19
Compute natural loops in a goto_function.
Loop Acceleration.
Loop Acceleration.
Loop Acceleration.
This is unused by this implementation of guards, but can be used by other implementations of the same...
Definition: guard_expr.h:23