@@ -114,7 +114,7 @@ exprt field_sensitivityt::apply(
114114 if (
115115 l2_size.id () == ID_constant &&
116116 numeric_cast_v<mp_integer>(to_constant_expr (l2_size)) <=
117- MAX_FIELD_SENSITIVITY_ARRAY_SIZE )
117+ max_field_sensitivity_array_size )
118118 {
119119 if (l2_index.get ().id () == ID_constant)
120120 {
@@ -183,7 +183,7 @@ exprt field_sensitivityt::get_fields(
183183 to_array_type (ssa_expr.type ()).size ().id () == ID_constant &&
184184 numeric_cast_v<mp_integer>(
185185 to_constant_expr (to_array_type (ssa_expr.type ()).size ())) <=
186- MAX_FIELD_SENSITIVITY_ARRAY_SIZE )
186+ max_field_sensitivity_array_size )
187187 {
188188 const array_typet &type = to_array_type (ssa_expr.type ());
189189 const std::size_t array_size =
@@ -305,7 +305,7 @@ void field_sensitivityt::field_assignments_rec(
305305 numeric_cast_v<std::size_t >(to_constant_expr (type->size ()));
306306 PRECONDITION (lhs_fs.operands ().size () == array_size);
307307
308- if (array_size > MAX_FIELD_SENSITIVITY_ARRAY_SIZE )
308+ if (array_size > max_field_sensitivity_array_size )
309309 return ;
310310
311311 exprt::operandst::const_iterator fs_it = lhs_fs.operands ().begin ();
@@ -339,7 +339,7 @@ void field_sensitivityt::field_assignments_rec(
339339 }
340340}
341341
342- bool field_sensitivityt::is_divisible (const ssa_exprt &expr)
342+ bool field_sensitivityt::is_divisible (const ssa_exprt &expr) const
343343{
344344 if (expr.type ().id () == ID_struct || expr.type ().id () == ID_struct_tag)
345345 return true ;
@@ -349,7 +349,7 @@ bool field_sensitivityt::is_divisible(const ssa_exprt &expr)
349349 expr.type ().id () == ID_array &&
350350 to_array_type (expr.type ()).size ().id () == ID_constant &&
351351 numeric_cast_v<mp_integer>(to_constant_expr (
352- to_array_type (expr.type ()).size ())) <= MAX_FIELD_SENSITIVITY_ARRAY_SIZE )
352+ to_array_type (expr.type ()).size ())) <= max_field_sensitivity_array_size )
353353 {
354354 return true ;
355355 }
0 commit comments