Skip to content

Commit 5300a73

Browse files
author
Daniel Kroening
committed
add a complete constructor for multi_ary_exprt
1 parent 6e085d2 commit 5300a73

File tree

1 file changed

+12
-2
lines changed

1 file changed

+12
-2
lines changed

src/util/std_expr.h

Lines changed: 12 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -973,22 +973,32 @@ template<> inline bool can_cast_expr<binary_relation_exprt>(const exprt &base)
973973
class multi_ary_exprt:public exprt
974974
{
975975
public:
976-
DEPRECATED("use multi_ary_exprt(id, type) instead")
976+
DEPRECATED("use multi_ary_exprt(id, op, type) instead")
977977
multi_ary_exprt()
978978
{
979979
}
980980

981-
DEPRECATED("use multi_ary_exprt(id, type) instead")
981+
DEPRECATED("use multi_ary_exprt(id, op, type) instead")
982982
explicit multi_ary_exprt(const irep_idt &_id):exprt(_id)
983983
{
984984
}
985985

986+
DEPRECATED("use multi_ary_exprt(id, op, type) instead")
986987
multi_ary_exprt(
987988
const irep_idt &_id,
988989
const typet &_type):exprt(_id, _type)
989990
{
990991
}
991992

993+
multi_ary_exprt(
994+
const irep_idt &_id,
995+
operandst &&_operands,
996+
const typet &_type)
997+
: exprt(_id, _type)
998+
{
999+
operands() = std::move(_operands);
1000+
}
1001+
9921002
multi_ary_exprt(
9931003
const exprt &_lhs,
9941004
const irep_idt &_id,

0 commit comments

Comments
 (0)