@@ -306,7 +306,7 @@ static exprt conditional_cast_floatbv_to_unsignedbv(const exprt &value)
306306}
307307
308308// TODO: doxygen?
309- static void or_over_bytes (
309+ static void extract_bytes_of_bv (
310310 const exprt &value,
311311 const typet &type,
312312 const typet &field_type,
@@ -322,7 +322,7 @@ static void or_over_bytes(
322322}
323323
324324// TODO: doxygen?
325- static void or_elements (
325+ static void extract_bytes_of_expr (
326326 exprt element,
327327 const typet &field_type,
328328 const namespacet &ns,
@@ -336,7 +336,7 @@ static void or_elements(
336336 exprt value = element;
337337 if (is_union)
338338 {
339- or_over_bytes (value, element.type (), field_type, values);
339+ extract_bytes_of_bv (value, element.type (), field_type, values);
340340 }
341341 else
342342 {
@@ -345,7 +345,7 @@ static void or_elements(
345345 }
346346 else
347347 {
348- exprt value = compute_or_over_cells (element, field_type, ns, log, is_union);
348+ exprt value = compute_or_over_bytes (element, field_type, ns, log, is_union);
349349 values.push_back (typecast_exprt::conditional_cast (value, field_type));
350350 }
351351}
@@ -366,7 +366,7 @@ static exprt or_values(const exprt::operandst &values, const typet &field_type)
366366 return multi_ary_exprt (ID_bitor, values, field_type);
367367}
368368
369- exprt compute_or_over_cells (
369+ exprt compute_or_over_bytes (
370370 const exprt &expr,
371371 const typet &field_type,
372372 const namespacet &ns,
@@ -384,7 +384,7 @@ exprt compute_or_over_cells(
384384 {
385385 continue ;
386386 }
387- or_elements (
387+ extract_bytes_of_expr (
388388 member_exprt (expr, component), field_type, ns, log, is_union, values);
389389 }
390390 return or_values (values, field_type);
@@ -399,7 +399,7 @@ exprt compute_or_over_cells(
399399 numeric_cast_v<mp_integer>(to_constant_expr (array_type.size ()));
400400 for (mp_integer index = 0 ; index < size; ++index)
401401 {
402- or_elements (
402+ extract_bytes_of_expr (
403403 index_exprt (expr, from_integer (index, index_type ())),
404404 field_type,
405405 ns,
@@ -419,7 +419,7 @@ exprt compute_or_over_cells(
419419 exprt::operandst values;
420420 if (is_union)
421421 {
422- or_over_bytes (
422+ extract_bytes_of_bv (
423423 conditional_cast_floatbv_to_unsignedbv (expr), type, field_type, values);
424424 }
425425 else
@@ -515,7 +515,7 @@ static exprt create_max_expr(const std::vector<exprt> &values)
515515 return combine_condition_and_max_values (rows);
516516}
517517
518- exprt compute_max_over_cells (
518+ exprt compute_max_over_bytes (
519519 const exprt &expr,
520520 const typet &field_type,
521521 const namespacet &ns)
@@ -815,14 +815,14 @@ std::vector<std::pair<exprt, exprt>> get_shadow_dereference_candidates(
815815 {
816816 // Value is of bool type, so aggregate with or.
817817 value = typecast_exprt::conditional_cast (
818- compute_or_over_cells (
818+ compute_or_over_bytes (
819819 shadow_dereference.value , field_type, ns, log, is_union),
820820 lhs_type);
821821 }
822822 else
823823 {
824824 // Value is of other (bitvector) type, so aggregate with max
825- value = compute_max_over_cells (shadow_dereference.value , field_type, ns);
825+ value = compute_max_over_bytes (shadow_dereference.value , field_type, ns);
826826 }
827827
828828 const exprt base_cond = get_matched_base_cond (
@@ -922,7 +922,7 @@ normalize(const object_descriptor_exprt &expr, const namespacet &ns)
922922 return result;
923923}
924924
925- bool set_field_check_null (
925+ bool check_value_set_contains_only_null_ptr (
926926 const namespacet &ns,
927927 const messaget &log,
928928 const std::vector<exprt> &value_set,
0 commit comments