cprover
Toggle main menu visibility
Loading...
Searching...
No Matches
loop_utils.h
Go to the documentation of this file.
1
/*******************************************************************\
2
3
Module: Helper functions for k-induction and loop invariants
4
5
Author: Daniel Kroening, kroening@kroening.com
6
7
\*******************************************************************/
8
11
12
#ifndef CPROVER_GOTO_INSTRUMENT_LOOP_UTILS_H
13
#define CPROVER_GOTO_INSTRUMENT_LOOP_UTILS_H
14
15
#include <
analyses/natural_loops.h
>
16
17
class
local_may_aliast
;
18
19
typedef
std::set<exprt>
assignst
;
20
typedef
natural_loops_mutablet::natural_loopt
loopt
;
21
22
void
get_assigns
(
23
const
local_may_aliast
&local_may_alias,
24
const
loopt
&loop,
25
assignst
&assigns);
26
28
void
get_assigns
(
29
const
local_may_aliast
&local_may_alias,
30
const
loopt
&loop,
31
assignst
&assigns,
32
std::function<
bool
(
const
exprt
&)> predicate);
33
34
void
get_assigns_lhs
(
35
const
local_may_aliast
&local_may_alias,
36
goto_programt::const_targett
t,
37
const
exprt
&lhs,
38
assignst
&assigns);
39
41
void
get_assigns_lhs
(
42
const
local_may_aliast
&local_may_alias,
43
goto_programt::const_targett
t,
44
const
exprt
&lhs,
45
assignst
&assigns,
46
std::function<
bool
(
const
exprt
&)> predicate);
47
48
goto_programt::targett
get_loop_exit
(
const
loopt
&);
49
50
#endif
// CPROVER_GOTO_INSTRUMENT_LOOP_UTILS_H
exprt
Base class for all expressions.
Definition
expr.h:57
goto_programt::targett
instructionst::iterator targett
Definition
goto_program.h:613
goto_programt::const_targett
instructionst::const_iterator const_targett
Definition
goto_program.h:614
local_may_aliast
Definition
local_may_alias.h:25
natural_loops_templatet< goto_programt, goto_programt::targett, goto_programt::target_less_than >::natural_loopt
parentt::loopt natural_loopt
Definition
natural_loops.h:53
assignst
std::set< exprt > assignst
Definition
havoc_utils.h:24
loopt
natural_loops_mutablet::natural_loopt loopt
Definition
loop_utils.h:20
get_assigns_lhs
void get_assigns_lhs(const local_may_aliast &local_may_alias, goto_programt::const_targett t, const exprt &lhs, assignst &assigns)
Definition
loop_utils.cpp:39
get_loop_exit
goto_programt::targett get_loop_exit(const loopt &)
Definition
loop_utils.cpp:21
get_assigns
void get_assigns(const local_may_aliast &local_may_alias, const loopt &loop, assignst &assigns)
Definition
loop_utils.cpp:142
natural_loops.h
Compute natural loops in a goto_function.
goto-instrument
loop_utils.h
Generated by
1.17.0