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)
40  : symbol_table(_symbol_table),
41  goto_functions(_goto_functions),
42  goto_program(_goto_program),
43  loop(_loop),
44  loop_header(_loop_header),
46  path_limit(_path_limit),
49  message_handler,
53  loop,
54  loop_header))
55  {
56  }
57 
58  bool accelerate(path_acceleratort &accelerator);
59 
60 protected:
68 
69  std::unique_ptr<path_enumeratort> path_enumerator;
70 };
71 
72 #endif // CPROVER_GOTO_INSTRUMENT_ACCELERATE_ENUMERATING_LOOP_ACCELERATION_H
std::unique_ptr< path_enumeratort > path_enumerator
natural_loops_mutablet::natural_loopt & loop
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)
Loop Acceleration.
instructionst::iterator targett
Definition: goto_program.h:414
Loop Acceleration.
The symbol table.
Definition: symbol_table.h:19
A collection of goto functions.
bool accelerate(path_acceleratort &accelerator)
A generic container class for the GOTO intermediate representation of one function.
Definition: goto_program.h:72
std::unique_ptr< T > util_make_unique(Ts &&... ts)
Definition: make_unique.h:19
Compute natural loops in a goto_function.
Loop Acceleration.
Concrete Goto Program.