File tree Expand file tree Collapse file tree 1 file changed +6
-6
lines changed Expand file tree Collapse file tree 1 file changed +6
-6
lines changed Original file line number Diff line number Diff line change @@ -97,21 +97,21 @@ exprt field_sensitivityt::apply(
97
97
// SSA expression
98
98
ssa_exprt tmp = to_ssa_expr (index.array ());
99
99
bool was_l2 = !tmp.get_level_2 ().empty ();
100
-
101
- exprt array_size_expr = to_array_type (l2_array. get ().type ()).size ();
102
- if (array_size_expr .is_nil () && index.array ().id () == ID_symbol)
100
+ exprt l2_size =
101
+ state. rename ( to_array_type (index. array ().type ()).size (), ns). get ();
102
+ if (l2_size .is_nil () && index.array ().id () == ID_symbol)
103
103
{
104
104
// In case the array type was incomplete, attempt to retrieve it from
105
105
// the symbol table.
106
106
const symbolt *array_from_symbol_table = ns.get_symbol_table ().lookup (
107
107
to_symbol_expr (index.array ()).get_identifier ());
108
108
if (array_from_symbol_table != nullptr )
109
- array_size_expr = to_array_type (array_from_symbol_table->type ).size ();
109
+ l2_size = to_array_type (array_from_symbol_table->type ).size ();
110
110
}
111
111
112
112
if (
113
- array_size_expr .id () == ID_constant &&
114
- numeric_cast_v<mp_integer>(to_constant_expr (array_size_expr )) <=
113
+ l2_size .id () == ID_constant &&
114
+ numeric_cast_v<mp_integer>(to_constant_expr (l2_size )) <=
115
115
max_field_sensitive_array_size &&
116
116
index.id () == ID_constant)
117
117
{
You can’t perform that action at this time.
0 commit comments