File tree 2 files changed +11
-1
lines changed 2 files changed +11
-1
lines changed Original file line number Diff line number Diff line change @@ -18,7 +18,7 @@ bvt boolbvt::convert_array_of(const array_of_exprt &expr)
18
18
DATA_INVARIANT (
19
19
expr.type ().id () == ID_array, " array_of expression shall have array type" );
20
20
21
- const array_typet &array_type= to_array_type ( expr.type () );
21
+ const array_typet &array_type = expr.type ();
22
22
23
23
if (is_unbounded_array (array_type))
24
24
return conversion_failed (expr);
Original file line number Diff line number Diff line change @@ -1580,6 +1580,16 @@ class array_of_exprt:public unary_exprt
1580
1580
{
1581
1581
}
1582
1582
1583
+ const array_typet &type () const
1584
+ {
1585
+ return static_cast <const array_typet &>(unary_exprt::type ());
1586
+ }
1587
+
1588
+ array_typet &type ()
1589
+ {
1590
+ return static_cast <array_typet &>(unary_exprt::type ());
1591
+ }
1592
+
1583
1593
exprt &what ()
1584
1594
{
1585
1595
return op0 ();
You can’t perform that action at this time.
0 commit comments