Skip to content

Commit 3e12789

Browse files
committed
transt: add a non-deprecated constructor
The only existing constructor relied on a constructor of ternary_exprt that is marked deprecated. Thus mark the existing one deprecated and add one that will survive removal of deprecated functions.
1 parent 49ac569 commit 3e12789

File tree

1 file changed

+11
-0
lines changed

1 file changed

+11
-0
lines changed

src/util/std_expr.h

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -93,10 +93,21 @@ class ternary_exprt : public exprt
9393
class transt : public ternary_exprt
9494
{
9595
public:
96+
DEPRECATED("use transt(op0, op1, op2) instead")
9697
transt() : ternary_exprt(ID_trans)
9798
{
9899
}
99100

101+
transt(
102+
const irep_idt &_id,
103+
const exprt &_op0,
104+
const exprt &_op1,
105+
const exprt &_op2,
106+
const typet &_type)
107+
: ternary_exprt(_id, _op0, _op1, _op2, _type)
108+
{
109+
}
110+
100111
exprt &invar() { return op0(); }
101112
exprt &init() { return op1(); }
102113
exprt &trans() { return op2(); }

0 commit comments

Comments
 (0)