cprover
expr_util.h
Go to the documentation of this file.
1 /*******************************************************************\
2 
3 Module:
4 
5 Author: Daniel Kroening, kroening@kroening.com
6 
7 \*******************************************************************/
8 
9 
10 #ifndef CPROVER_UTIL_EXPR_UTIL_H
11 #define CPROVER_UTIL_EXPR_UTIL_H
12 
20 #include "irep.h"
21 
22 class exprt;
23 class symbol_exprt;
24 class update_exprt;
25 class with_exprt;
26 class if_exprt;
27 class symbolt;
28 class typet;
29 class namespacet;
30 
33 
34 void make_next_state(exprt &);
35 
37 exprt make_binary(const exprt &);
38 
41 
43 exprt is_not_zero(const exprt &, const namespacet &ns);
44 
47 exprt boolean_negate(const exprt &);
48 
50 bool has_subexpr(const exprt &, const irep_idt &);
51 
53 if_exprt lift_if(const exprt &, std::size_t operand_number);
54 
55 #endif // CPROVER_UTIL_EXPR_UTIL_H
The type of an expression.
Definition: type.h:20
exprt boolean_negate(const exprt &)
negate a Boolean expression, possibly removing a not_exprt, and swapping false and true ...
Definition: expr_util.cpp:120
Operator to update elements in structs and arrays.
Definition: std_expr.h:3039
exprt make_binary(const exprt &)
splits an expression with >=3 operands into nested binary expressions
Definition: expr_util.cpp:29
The trinary if-then-else operator.
Definition: std_expr.h:2771
Symbol table entry.This is a symbol in the symbol table, stored in an object of type symbol_tablet...
Definition: symbol.h:33
if_exprt lift_if(const exprt &, std::size_t operand_number)
lift up an if_exprt one level
Definition: expr_util.cpp:144
void make_next_state(exprt &)
Definition: expr_util.cpp:20
with_exprt make_with_expr(const update_exprt &)
converts an update expr into a (possibly nested) with expression
Definition: expr_util.cpp:60
TO_BE_DOCUMENTED.
Definition: namespace.h:62
Base class for all expressions.
Definition: expr.h:46
Operator to update elements in structs and arrays.
Definition: std_expr.h:2861
bool has_subexpr(const exprt &, const irep_idt &)
returns true if the expression has a subexpression with given ID
Definition: expr_util.cpp:132
Expression to hold a symbol (variable)
Definition: std_expr.h:82
exprt is_not_zero(const exprt &, const namespacet &ns)
converts a scalar/float expression to C/C++ Booleans
Definition: expr_util.cpp:91