@@ -1642,16 +1642,16 @@ inline void validate_expr(const array_of_exprt &value)
16421642
16431643
16441644// / \brief Array constructor from list of elements
1645- class array_exprt : public exprt
1645+ class array_exprt : public multi_ary_exprt
16461646{
16471647public:
16481648 DEPRECATED (" use array_exprt(type) instead" )
1649- array_exprt ():exprt (ID_array)
1649+ array_exprt () : multi_ary_exprt (ID_array)
16501650 {
16511651 }
16521652
1653- explicit array_exprt (const array_typet &_type):
1654- exprt (ID_array, _type)
1653+ explicit array_exprt (const array_typet &_type)
1654+ : multi_ary_exprt (ID_array, _type)
16551655 {
16561656 }
16571657};
@@ -1682,11 +1682,11 @@ template<> inline bool can_cast_expr<array_exprt>(const exprt &base)
16821682
16831683// / Array constructor from a list of index-element pairs
16841684// / Operands are index/value pairs, alternating.
1685- class array_list_exprt : public exprt
1685+ class array_list_exprt : public multi_ary_exprt
16861686{
16871687public:
16881688 explicit array_list_exprt (const array_typet &_type)
1689- : exprt (ID_array_list, _type)
1689+ : multi_ary_exprt (ID_array_list, _type)
16901690 {
16911691 }
16921692};
@@ -1703,16 +1703,16 @@ inline void validate_expr(const array_list_exprt &value)
17031703}
17041704
17051705// / \brief Vector constructor from list of elements
1706- class vector_exprt : public exprt
1706+ class vector_exprt : public multi_ary_exprt
17071707{
17081708public:
17091709 DEPRECATED (" use vector_exprt(type) instead" )
1710- vector_exprt ():exprt (ID_vector)
1710+ vector_exprt () : multi_ary_exprt (ID_vector)
17111711 {
17121712 }
17131713
1714- explicit vector_exprt (const vector_typet &_type):
1715- exprt (ID_vector, _type)
1714+ explicit vector_exprt (const vector_typet &_type)
1715+ : multi_ary_exprt (ID_vector, _type)
17161716 {
17171717 }
17181718};
@@ -1823,16 +1823,15 @@ inline void validate_expr(const union_exprt &value)
18231823
18241824
18251825// / \brief Struct constructor from list of elements
1826- class struct_exprt : public exprt
1826+ class struct_exprt : public multi_ary_exprt
18271827{
18281828public:
18291829 DEPRECATED (" use struct_exprt(component_name, value, type) instead" )
1830- struct_exprt ():exprt (ID_struct)
1830+ struct_exprt () : multi_ary_exprt (ID_struct)
18311831 {
18321832 }
18331833
1834- explicit struct_exprt (const typet &_type):
1835- exprt(ID_struct, _type)
1834+ explicit struct_exprt (const typet &_type) : multi_ary_exprt(ID_struct, _type)
18361835 {
18371836 }
18381837
0 commit comments