cprover
boolbv.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_SOLVERS_FLATTENING_BOOLBV_H
11 #define CPROVER_SOLVERS_FLATTENING_BOOLBV_H
12 
13 //
14 // convert expression to boolean formula
15 //
16 
17 #include <util/byte_operators.h>
18 #include <util/expr.h>
19 #include <util/mp_arith.h>
20 #include <util/optional.h>
21 
23 
24 #include "bv_utils.h"
25 #include "boolbv_width.h"
26 #include "boolbv_map.h"
27 #include "arrays.h"
28 
29 class extractbit_exprt;
30 class extractbits_exprt;
32 class member_exprt;
33 
34 class boolbvt:public arrayst
35 {
36 public:
38  const namespacet &_ns,
39  propt &_prop,
40  message_handlert &message_handler)
41  : arrayst(_ns, _prop, message_handler),
43  boolbv_width(_ns),
44  bv_utils(_prop),
45  functions(*this),
46  map(_prop, boolbv_width)
47  {
48  }
49 
50  virtual const bvt &convert_bv( // check cache
51  const exprt &expr,
52  const optionalt<std::size_t> expected_width = nullopt);
53 
54  virtual bvt convert_bitvector(const exprt &expr); // no cache
55 
56  // overloading
57  exprt get(const exprt &expr) const override;
58  void set_to(const exprt &expr, bool value) override;
59  void print_assignment(std::ostream &out) const override;
60 
61  void clear_cache() override
62  {
64  bv_cache.clear();
65  }
66 
67  void post_process() override
68  {
72  }
73 
74  // get literals for variables/expressions, if available
75  virtual bool literal(
76  const exprt &expr,
77  std::size_t bit,
78  literalt &literal) const;
79 
80  enum class unbounded_arrayt { U_NONE, U_ALL, U_AUTO };
82 
84  {
85  return get_value(bv, 0, bv.size());
86  }
87 
88  mp_integer get_value(const bvt &bv, std::size_t offset, std::size_t width);
89 
90  const boolbv_mapt &get_map() const
91  {
92  return map;
93  }
94 
96 
97 protected:
99 
100  // uninterpreted functions
102 
103  // the mapping from identifiers to literals
105 
106  // overloading
107  literalt convert_rest(const exprt &expr) override;
108  virtual bool boolbv_set_equality_to_true(const equal_exprt &expr);
109 
110  // NOLINTNEXTLINE(readability/identifiers)
111  typedef arrayst SUB;
112 
113  void conversion_failed(const exprt &expr, bvt &bv)
114  {
115  bv=conversion_failed(expr);
116  }
117 
118  bvt conversion_failed(const exprt &expr);
119 
120  typedef std::unordered_map<const exprt, bvt, irep_hash> bv_cachet;
122 
123  bool type_conversion(
124  const typet &src_type, const bvt &src,
125  const typet &dest_type, bvt &dest);
126 
128  virtual literalt convert_typecast(const typecast_exprt &expr);
129  virtual literalt convert_reduction(const unary_exprt &expr);
130  virtual literalt convert_onehot(const unary_exprt &expr);
131  virtual literalt convert_extractbit(const extractbit_exprt &expr);
132  virtual literalt convert_overflow(const exprt &expr);
133  virtual literalt convert_equality(const equal_exprt &expr);
135  const binary_relation_exprt &expr);
137  virtual literalt convert_quantifier(const quantifier_exprt &expr);
138 
139  virtual bvt convert_index(const exprt &array, const mp_integer &index);
140  virtual bvt convert_index(const index_exprt &expr);
141  virtual bvt convert_bswap(const bswap_exprt &expr);
142  virtual bvt convert_byte_extract(const byte_extract_exprt &expr);
143  virtual bvt convert_byte_update(const byte_update_exprt &expr);
144  virtual bvt convert_constraint_select_one(const exprt &expr);
145  virtual bvt convert_if(const if_exprt &expr);
146  virtual bvt convert_struct(const struct_exprt &expr);
147  virtual bvt convert_array(const exprt &expr);
148  virtual bvt convert_vector(const vector_exprt &expr);
149  virtual bvt convert_complex(const complex_exprt &expr);
150  virtual bvt convert_complex_real(const complex_real_exprt &expr);
151  virtual bvt convert_complex_imag(const complex_imag_exprt &expr);
153  virtual bvt convert_let(const let_exprt &);
154  virtual bvt convert_array_of(const array_of_exprt &expr);
155  virtual bvt convert_union(const union_exprt &expr);
156  virtual bvt convert_bv_typecast(const typecast_exprt &expr);
157  virtual bvt convert_add_sub(const exprt &expr);
158  virtual bvt convert_mult(const mult_exprt &expr);
159  virtual bvt convert_div(const div_exprt &expr);
160  virtual bvt convert_mod(const mod_exprt &expr);
161  virtual bvt convert_floatbv_op(const ieee_float_op_exprt &);
163  virtual bvt convert_member(const member_exprt &expr);
164  virtual bvt convert_with(const with_exprt &expr);
165  virtual bvt convert_update(const update_exprt &);
166  virtual bvt convert_case(const exprt &expr);
167  virtual bvt convert_cond(const cond_exprt &);
168  virtual bvt convert_shift(const binary_exprt &expr);
169  virtual bvt convert_bitwise(const exprt &expr);
170  virtual bvt convert_unary_minus(const unary_minus_exprt &expr);
171  virtual bvt convert_abs(const abs_exprt &expr);
172  virtual bvt convert_concatenation(const concatenation_exprt &expr);
173  virtual bvt convert_replication(const replication_exprt &expr);
174  virtual bvt convert_bv_literals(const exprt &expr);
175  virtual bvt convert_constant(const constant_exprt &expr);
176  virtual bvt convert_extractbits(const extractbits_exprt &expr);
177  virtual bvt convert_symbol(const exprt &expr);
178  virtual bvt convert_bv_reduction(const unary_exprt &expr);
179  virtual bvt convert_not(const not_exprt &expr);
180  virtual bvt convert_power(const binary_exprt &expr);
182  const function_application_exprt &expr);
183 
184  virtual exprt make_bv_expr(const typet &type, const bvt &bv);
185  virtual exprt make_free_bv_expr(const typet &type);
186 
187  void convert_with(
188  const typet &type,
189  const exprt &op1,
190  const exprt &op2,
191  const bvt &prev_bv,
192  bvt &next_bv);
193 
194  void convert_with_bv(
195  const exprt &op1,
196  const exprt &op2,
197  const bvt &prev_bv,
198  bvt &next_bv);
199 
200  void convert_with_array(
201  const array_typet &type,
202  const exprt &op1,
203  const exprt &op2,
204  const bvt &prev_bv,
205  bvt &next_bv);
206 
207  void convert_with_union(
208  const union_typet &type,
209  const exprt &op2,
210  const bvt &prev_bv,
211  bvt &next_bv);
212 
213  void convert_with_struct(
214  const struct_typet &type,
215  const exprt &op1,
216  const exprt &op2,
217  const bvt &prev_bv,
218  bvt &next_bv);
219 
220  void convert_update_rec(
221  const exprt::operandst &designator,
222  std::size_t d,
223  const typet &type,
224  std::size_t offset,
225  const exprt &new_value,
226  bvt &bv);
227 
228  virtual exprt bv_get_unbounded_array(const exprt &) const;
229 
230  virtual exprt bv_get_rec(
231  const exprt &expr,
232  const bvt &bv,
233  const std::vector<bool> &unknown,
234  std::size_t offset,
235  const typet &type) const;
236 
237  exprt bv_get(const bvt &bv, const typet &type) const;
238  exprt bv_get_cache(const exprt &expr) const;
239 
240  // unbounded arrays
241  bool is_unbounded_array(const typet &type) const override;
242 
243  // quantifier instantiations
245  {
246  public:
248  : expr(std::move(_expr)), l(std::move(_l))
249  {
250  }
251 
254  };
255 
256  typedef std::list<quantifiert> quantifier_listt;
258 
260 
261  typedef std::vector<std::size_t> offset_mapt;
263 
264  // strings
266 };
267 
268 #endif // CPROVER_SOLVERS_FLATTENING_BOOLBV_H
with_exprt
Operator to update elements in structs and arrays.
Definition: std_expr.h:3050
boolbvt::convert_bv_typecast
virtual bvt convert_bv_typecast(const typecast_exprt &expr)
Definition: boolbv_typecast.cpp:20
boolbvt::convert_overflow
virtual literalt convert_overflow(const exprt &expr)
Definition: boolbv_overflow.cpp:15
boolbvt::unbounded_array
unbounded_arrayt unbounded_array
Definition: boolbv.h:81
boolbvt::convert_with_array
void convert_with_array(const array_typet &type, const exprt &op1, const exprt &op2, const bvt &prev_bv, bvt &next_bv)
Definition: boolbv_with.cpp:86
boolbvt::map
boolbv_mapt map
Definition: boolbv.h:104
boolbvt::convert_member
virtual bvt convert_member(const member_exprt &expr)
Definition: boolbv_member.cpp:11
boolbvt::bv_cachet
std::unordered_map< const exprt, bvt, irep_hash > bv_cachet
Definition: boolbv.h:120
boolbvt::convert_bv_rel
virtual literalt convert_bv_rel(const binary_relation_exprt &)
Flatten <, >, <= and >= expressions.
Definition: boolbv_bv_rel.cpp:18
boolbvt::convert_byte_update
virtual bvt convert_byte_update(const byte_update_exprt &expr)
Definition: boolbv_byte_update.cpp:20
byte_update_exprt
Expression corresponding to op() where the bytes starting at position offset (given in number of byte...
Definition: byte_operators.h:81
boolbvt::post_process_quantifiers
void post_process_quantifiers()
Definition: boolbv_quantifier.cpp:220
mp_arith.h
boolbvt::convert_array_of
virtual bvt convert_array_of(const array_of_exprt &expr)
Flatten arrays constructed from a single element.
Definition: boolbv_array_of.cpp:16
boolbvt::convert_reduction
virtual literalt convert_reduction(const unary_exprt &expr)
Definition: boolbv_reduction.cpp:12
functionst::post_process
virtual void post_process()
Definition: functions.h:36
boolbvt::type_conversion
bool type_conversion(const typet &src_type, const bvt &src, const typet &dest_type, bvt &dest)
Definition: boolbv_typecast.cpp:33
boolbvt::convert_cond
virtual bvt convert_cond(const cond_exprt &)
Definition: boolbv_cond.cpp:13
boolbvt::convert_bitvector
virtual bvt convert_bitvector(const exprt &expr)
Converts an expression into its gate-level representation and returns a vector of literals correspond...
Definition: boolbv.cpp:174
boolbvt::is_unbounded_array
bool is_unbounded_array(const typet &type) const override
Definition: boolbv.cpp:632
typet
The type of an expression, extends irept.
Definition: type.h:29
bvt
std::vector< literalt > bvt
Definition: literal.h:201
boolbvt::quantifier_listt
std::list< quantifiert > quantifier_listt
Definition: boolbv.h:256
optional.h
boolbvt::set_to
void set_to(const exprt &expr, bool value) override
For a Boolean expression expr, add the constraint 'expr' if value is true, otherwise add 'not expr'.
Definition: boolbv.cpp:601
boolbvt::convert_complex
virtual bvt convert_complex(const complex_exprt &expr)
Definition: boolbv_complex.cpp:13
mp_integer
BigInt mp_integer
Definition: mp_arith.h:19
if_exprt
The trinary if-then-else operator.
Definition: std_expr.h:2964
boolbvt::bv_get_rec
virtual exprt bv_get_rec(const exprt &expr, const bvt &bv, const std::vector< bool > &unknown, std::size_t offset, const typet &type) const
Definition: boolbv_get.cpp:71
template_numberingt
Definition: numbering.h:22
boolbvt::convert_with_struct
void convert_with_struct(const struct_typet &type, const exprt &op1, const exprt &op2, const bvt &prev_bv, bvt &next_bv)
Definition: boolbv_with.cpp:179
complex_real_exprt
Real part of the expression describing a complex number.
Definition: std_expr.h:1740
boolbvt::convert_mod
virtual bvt convert_mod(const mod_exprt &expr)
Definition: boolbv_mod.cpp:12
union_exprt
Union constructor from single element.
Definition: std_expr.h:1567
bv_utils.h
boolbvt::convert_vector
virtual bvt convert_vector(const vector_exprt &expr)
Definition: boolbv_vector.cpp:12
boolbvt::convert_symbol
virtual bvt convert_symbol(const exprt &expr)
Definition: boolbv.cpp:381
boolbvt::convert_index
virtual bvt convert_index(const exprt &array, const mp_integer &index)
index operator with constant index
Definition: boolbv_index.cpp:283
exprt
Base class for all expressions.
Definition: expr.h:53
unary_exprt
Generic base class for unary expressions.
Definition: std_expr.h:269
boolbvt::literal
virtual bool literal(const exprt &expr, std::size_t bit, literalt &literal) const
Definition: boolbv.cpp:32
binary_exprt
A base class for binary expressions.
Definition: std_expr.h:601
boolbvt::convert_onehot
virtual literalt convert_onehot(const unary_exprt &expr)
Definition: boolbv_onehot.cpp:12
boolbvt::convert_abs
virtual bvt convert_abs(const abs_exprt &expr)
Definition: boolbv_abs.cpp:17
concatenation_exprt
Concatenation of bit-vector operands.
Definition: std_expr.h:4067
quantifier_exprt
A base class for quantifier expressions.
Definition: mathematical_expr.h:271
boolbvt::convert_union
virtual bvt convert_union(const union_exprt &expr)
Definition: boolbv_union.cpp:16
vector_exprt
Vector constructor from list of elements.
Definition: std_expr.h:1531
functions.h
Uninterpreted Functions.
div_exprt
Division.
Definition: std_expr.h:1031
boolbvt::convert_case
virtual bvt convert_case(const exprt &expr)
Definition: boolbv_case.cpp:13
equal_exprt
Equality.
Definition: std_expr.h:1190
boolbvt::functions
functionst functions
Definition: boolbv.h:101
boolbvt::convert_add_sub
virtual bvt convert_add_sub(const exprt &expr)
Definition: boolbv_add_sub.cpp:16
boolbvt::unbounded_arrayt::U_AUTO
@ U_AUTO
replication_exprt
Bit-vector replication.
Definition: std_expr.h:3999
boolbvt::convert_constant
virtual bvt convert_constant(const constant_exprt &expr)
Definition: boolbv_constant.cpp:13
boolbvt::convert_extractbit
virtual literalt convert_extractbit(const extractbit_exprt &expr)
Definition: boolbv_extractbit.cpp:19
boolbvt::convert_concatenation
virtual bvt convert_concatenation(const concatenation_exprt &expr)
Definition: boolbv_concatenation.cpp:13
functionst
Definition: functions.h:23
boolbvt::quantifiert::quantifiert
quantifiert(exprt _expr, literalt _l)
Definition: boolbv.h:247
expr.h
struct_exprt
Struct constructor from list of elements.
Definition: std_expr.h:1633
bv_utilst
Definition: bv_utils.h:27
boolbvt::convert_mult
virtual bvt convert_mult(const mult_exprt &expr)
Definition: boolbv_mult.cpp:13
boolbvt::convert_shift
virtual bvt convert_shift(const binary_exprt &expr)
Definition: boolbv_shift.cpp:15
namespacet
A namespacet is essentially one or two symbol tables bound together, to allow for symbol lookups in t...
Definition: namespace.h:92
arrayst::post_process
void post_process() override
Definition: arrays.h:38
boolbvt::convert_byte_extract
virtual bvt convert_byte_extract(const byte_extract_exprt &expr)
Definition: boolbv_byte_extract.cpp:39
boolbvt::boolbv_set_equality_to_true
virtual bool boolbv_set_equality_to_true(const equal_exprt &expr)
Definition: boolbv.cpp:570
byte_operators.h
Expression classes for byte-level operators.
boolbvt::convert_array
virtual bvt convert_array(const exprt &expr)
Flatten array.
Definition: boolbv_array.cpp:16
boolbvt::boolbv_width
boolbv_widtht boolbv_width
Definition: boolbv.h:95
boolbvt::unbounded_arrayt
unbounded_arrayt
Definition: boolbv.h:80
boolbvt::conversion_failed
void conversion_failed(const exprt &expr, bvt &bv)
Definition: boolbv.h:113
boolbvt::bv_cache
bv_cachet bv_cache
Definition: boolbv.h:121
boolbvt::convert_bv_literals
virtual bvt convert_bv_literals(const exprt &expr)
Definition: boolbv.cpp:360
prop_conv_solvert::clear_cache
virtual void clear_cache()
Definition: prop_conv_solver.h:79
boolbvt::string_numbering
numbering< irep_idt > string_numbering
Definition: boolbv.h:265
boolbvt::convert_extractbits
virtual bvt convert_extractbits(const extractbits_exprt &expr)
Definition: boolbv_extractbits.cpp:13
floatbv_typecast_exprt
Semantic type conversion from/to floating-point formats.
Definition: std_expr.h:2067
boolbvt::convert_floatbv_typecast
virtual bvt convert_floatbv_typecast(const floatbv_typecast_exprt &expr)
Definition: boolbv_floatbv_op.cpp:18
boolbvt::convert_verilog_case_equality
virtual literalt convert_verilog_case_equality(const binary_relation_exprt &expr)
Definition: boolbv_equality.cpp:60
array_of_exprt
Array constructor from single element.
Definition: std_expr.h:1367
boolbvt::convert_if
virtual bvt convert_if(const if_exprt &expr)
Definition: boolbv_if.cpp:12
boolbvt::convert_complex_real
virtual bvt convert_complex_real(const complex_real_exprt &expr)
Definition: boolbv_complex.cpp:41
boolbvt::make_bv_expr
virtual exprt make_bv_expr(const typet &type, const bvt &bv)
Definition: boolbv.cpp:611
boolbvt::convert_ieee_float_rel
virtual literalt convert_ieee_float_rel(const binary_relation_exprt &)
Definition: boolbv_ieee_float_rel.cpp:17
function_application_exprt
Application of (mathematical) function.
Definition: mathematical_expr.h:191
mult_exprt
Binary multiplication Associativity is not specified.
Definition: std_expr.h:986
boolbvt::convert_update_rec
void convert_update_rec(const exprt::operandst &designator, std::size_t d, const typet &type, std::size_t offset, const exprt &new_value, bvt &bv)
Definition: boolbv_update.cpp:34
boolbvt::post_process
void post_process() override
Definition: boolbv.h:67
unary_minus_exprt
The unary minus expression.
Definition: std_expr.h:378
boolbvt::bv_get_cache
exprt bv_get_cache(const exprt &expr) const
Definition: boolbv_get.cpp:305
boolbvt::convert_bv_reduction
virtual bvt convert_bv_reduction(const unary_exprt &expr)
Definition: boolbv_reduction.cpp:53
boolbvt::convert_with_union
void convert_with_union(const union_typet &type, const exprt &op2, const bvt &prev_bv, bvt &next_bv)
Definition: boolbv_with.cpp:226
message_handlert
Definition: message.h:28
exprt::operandst
std::vector< exprt > operandst
Definition: expr.h:55
complex_exprt
Complex constructor from a pair of numbers.
Definition: std_expr.h:1672
abs_exprt
Absolute value.
Definition: std_expr.h:334
union_typet
The union type.
Definition: std_types.h:393
boolbvt::convert_constraint_select_one
virtual bvt convert_constraint_select_one(const exprt &expr)
Definition: boolbv_constraint_select_one.cpp:12
boolbvt::convert_bv
virtual const bvt & convert_bv(const exprt &expr, const optionalt< std::size_t > expected_width=nullopt)
Convert expression to vector of literalts, using an internal cache to speed up conversion if availabl...
Definition: boolbv.cpp:119
boolbvt::clear_cache
void clear_cache() override
Definition: boolbv.h:61
boolbvt::convert_bswap
virtual bvt convert_bswap(const bswap_exprt &expr)
Definition: boolbv_bswap.cpp:13
optionalt
nonstd::optional< T > optionalt
Definition: optional.h:35
boolbvt::get_value
mp_integer get_value(const bvt &bv)
Definition: boolbv.h:83
boolbvt::make_free_bv_expr
virtual exprt make_free_bv_expr(const typet &type)
Definition: boolbv.cpp:622
boolbvt::unbounded_arrayt::U_NONE
@ U_NONE
update_exprt
Operator to update elements in structs and arrays.
Definition: std_expr.h:3234
boolbvt::quantifier_list
quantifier_listt quantifier_list
Definition: boolbv.h:257
boolbvt::bv_get_unbounded_array
virtual exprt bv_get_unbounded_array(const exprt &) const
Definition: boolbv_get.cpp:317
boolbvt::quantifiert::expr
exprt expr
Definition: boolbv.h:252
boolbvt::quantifiert::l
literalt l
Definition: boolbv.h:253
extractbit_exprt
Extracts a single bit of a bit-vector operand.
Definition: std_expr.h:2629
boolbvt::SUB
arrayst SUB
Definition: boolbv.h:111
member_exprt
Extract member of struct or union.
Definition: std_expr.h:3405
boolbvt::convert_let
virtual bvt convert_let(const let_exprt &)
Definition: boolbv_let.cpp:15
boolbv_widtht
Definition: boolbv_width.h:17
boolbvt::convert_bitwise
virtual bvt convert_bitwise(const exprt &expr)
Definition: boolbv_bitwise.cpp:12
boolbvt::get_map
const boolbv_mapt & get_map() const
Definition: boolbv.h:90
boolbvt::convert_floatbv_op
virtual bvt convert_floatbv_op(const ieee_float_op_exprt &)
Definition: boolbv_floatbv_op.cpp:82
arrays.h
Theory of Arrays with Extensionality.
propt
TO_BE_DOCUMENTED.
Definition: prop.h:25
cond_exprt
this is a parametric version of an if-expression: it returns the value of the first case (using the o...
Definition: std_expr.h:4359
struct_typet
Structure type, corresponds to C style structs.
Definition: std_types.h:226
array_typet
Arrays with given size.
Definition: std_types.h:965
boolbvt::convert_struct
virtual bvt convert_struct(const struct_exprt &expr)
Definition: boolbv_struct.cpp:13
boolbvt::quantifiert
Definition: boolbv.h:245
boolbv_width.h
boolbvt::bv_get
exprt bv_get(const bvt &bv, const typet &type) const
Definition: boolbv_get.cpp:298
boolbvt::bv_utils
bv_utilst bv_utils
Definition: boolbv.h:98
boolbvt::convert_with_bv
void convert_with_bv(const exprt &op1, const exprt &op2, const bvt &prev_bv, bvt &next_bv)
Definition: boolbv_with.cpp:149
boolbvt::unbounded_arrayt::U_ALL
@ U_ALL
binary_relation_exprt
A base class for relations, i.e., binary predicates whose two operands have the same type.
Definition: std_expr.h:725
complex_imag_exprt
Imaginary part of the expression describing a complex number.
Definition: std_expr.h:1785
literalt
Definition: literal.h:26
byte_extract_exprt
Expression of type type extracted from some object op starting at position offset (given in number of...
Definition: byte_operators.h:29
boolbvt
Definition: boolbv.h:35
boolbvt::convert_equality
virtual literalt convert_equality(const equal_exprt &expr)
Definition: boolbv_equality.cpp:16
boolbv_mapt
Definition: boolbv_map.h:24
ieee_float_op_exprt
IEEE floating-point operations These have two data operands (op0 and op1) and one rounding mode (op2)...
Definition: std_expr.h:3790
boolbvt::convert_unary_minus
virtual bvt convert_unary_minus(const unary_minus_exprt &expr)
Definition: boolbv_unary_minus.cpp:20
bswap_exprt
The byte swap expression.
Definition: std_expr.h:471
boolbvt::convert_replication
virtual bvt convert_replication(const replication_exprt &expr)
Definition: boolbv_replication.cpp:13
boolbvt::convert_quantifier
virtual literalt convert_quantifier(const quantifier_exprt &expr)
Definition: boolbv_quantifier.cpp:205
extractbits_exprt
Extracts a sub-range of a bit-vector operand.
Definition: std_expr.h:2697
boolbvt::convert_array_comprehension
virtual bvt convert_array_comprehension(const array_comprehension_exprt &)
Definition: boolbv.cpp:318
index_exprt
Array index operator.
Definition: std_expr.h:1293
boolbvt::convert_not
virtual bvt convert_not(const not_exprt &expr)
Definition: boolbv_not.cpp:12
typecast_exprt
Semantic type conversion.
Definition: std_expr.h:2013
boolbvt::convert_typecast
virtual literalt convert_typecast(const typecast_exprt &expr)
conversion from bitvector types to boolean
Definition: boolbv_typecast.cpp:614
boolbvt::offset_mapt
std::vector< std::size_t > offset_mapt
Definition: boolbv.h:261
boolbvt::build_offset_map
offset_mapt build_offset_map(const struct_typet &src)
Definition: boolbv.cpp:660
arrayst
Definition: arrays.h:31
array_comprehension_exprt
Expression to define a mapping from an argument (index) to elements.
Definition: std_expr.h:4422
boolbvt::convert_rest
literalt convert_rest(const exprt &expr) override
Definition: boolbv.cpp:427
boolbvt::convert_power
virtual bvt convert_power(const binary_exprt &expr)
Definition: boolbv_power.cpp:12
constant_exprt
A constant literal expression.
Definition: std_expr.h:3906
boolbvt::boolbvt
boolbvt(const namespacet &_ns, propt &_prop, message_handlert &message_handler)
Definition: boolbv.h:37
boolbvt::convert_function_application
virtual bvt convert_function_application(const function_application_exprt &expr)
Definition: boolbv.cpp:416
boolbvt::convert_div
virtual bvt convert_div(const div_exprt &expr)
Definition: boolbv_div.cpp:13
boolbvt::print_assignment
void print_assignment(std::ostream &out) const override
Print satisfying assignment to out.
Definition: boolbv.cpp:653
boolbvt::get
exprt get(const exprt &expr) const override
Return expr with variables replaced by values from satisfying assignment if available.
Definition: boolbv_get.cpp:22
let_exprt
A let expression.
Definition: std_expr.h:4165
boolbv_map.h
mod_exprt
Modulo.
Definition: std_expr.h:1100
boolbvt::convert_update
virtual bvt convert_update(const update_exprt &)
Definition: boolbv_update.cpp:13
not_exprt
Boolean negation.
Definition: std_expr.h:2843
boolbvt::convert_with
virtual bvt convert_with(const with_exprt &expr)
Definition: boolbv_with.cpp:18
boolbvt::convert_complex_imag
virtual bvt convert_complex_imag(const complex_imag_exprt &expr)
Definition: boolbv_complex.cpp:55