@@ -105,13 +105,13 @@ class exprt:public irept
105
105
void reserve_operands (operandst::size_type n)
106
106
{ operands ().reserve (n) ; }
107
107
108
- DEPRECATED (" use copy_to_operands (expr) instead" )
108
+ DEPRECATED (" use add_to_operands (expr) instead" )
109
109
void move_to_operands (exprt &expr);
110
110
111
- DEPRECATED (" use copy_to_operands (e1, e2) instead" )
111
+ DEPRECATED (" use add_to_operands (e1, e2) instead" )
112
112
void move_to_operands (exprt &e1 , exprt &e2 );
113
113
114
- DEPRECATED (" use copy_to_operands (e1, e2, e3) instead" )
114
+ DEPRECATED (" use add_to_operands (e1, e2, e3) instead" )
115
115
void move_to_operands (exprt &e1 , exprt &e2 , exprt &e3 );
116
116
117
117
// / Copy the given argument to the end of `exprt`'s operands.
@@ -121,9 +121,16 @@ class exprt:public irept
121
121
operands ().push_back (expr);
122
122
}
123
123
124
- // / Copy the given argument to the end of `exprt`'s operands.
124
+ // / Add the given argument to the end of `exprt`'s operands.
125
+ // / \param expr: `exprt` to append to the operands
126
+ void add_to_operands (const exprt &expr)
127
+ {
128
+ copy_to_operands (expr);
129
+ }
130
+
131
+ // / Add the given argument to the end of `exprt`'s operands.
125
132
// / \param expr: `exprt` to append to the operands
126
- void copy_to_operands (exprt &&expr)
133
+ void add_to_operands (exprt &&expr)
127
134
{
128
135
operands ().push_back (std::move (expr));
129
136
}
@@ -141,10 +148,18 @@ class exprt:public irept
141
148
op.push_back (e2 );
142
149
}
143
150
144
- // / Copy the given arguments to the end of `exprt`'s operands.
151
+ // / Add the given arguments to the end of `exprt`'s operands.
152
+ // / \param e1: first `exprt` to append to the operands
153
+ // / \param e2: second `exprt` to append to the operands
154
+ void add_to_operands (const exprt &e1 , const exprt &e2 )
155
+ {
156
+ copy_to_operands (e1 , e2 );
157
+ }
158
+
159
+ // / Add the given arguments to the end of `exprt`'s operands.
145
160
// / \param e1: first `exprt` to append to the operands
146
161
// / \param e2: second `exprt` to append to the operands
147
- void copy_to_operands (exprt &&e1 , exprt &&e2 )
162
+ void add_to_operands (exprt &&e1 , exprt &&e2 )
148
163
{
149
164
operandst &op = operands ();
150
165
#ifndef USE_LIST
@@ -154,6 +169,15 @@ class exprt:public irept
154
169
op.push_back (std::move (e2 ));
155
170
}
156
171
172
+ // / Add the given arguments to the end of `exprt`'s operands.
173
+ // / \param e1: first `exprt` to append to the operands
174
+ // / \param e2: second `exprt` to append to the operands
175
+ // / \param e3: third `exprt` to append to the operands
176
+ void add_to_operands (const exprt &e1 , const exprt &e2 , const exprt &e3 )
177
+ {
178
+ copy_to_operands (e1 , e2 , e3 );
179
+ }
180
+
157
181
// / Copy the given arguments to the end of `exprt`'s operands.
158
182
// / \param e1: first `exprt` to append to the operands
159
183
// / \param e2: second `exprt` to append to the operands
@@ -169,11 +193,11 @@ class exprt:public irept
169
193
op.push_back (e3 );
170
194
}
171
195
172
- // / Copy the given arguments to the end of `exprt`'s operands.
196
+ // / Add the given arguments to the end of `exprt`'s operands.
173
197
// / \param e1: first `exprt` to append to the operands
174
198
// / \param e2: second `exprt` to append to the operands
175
199
// / \param e3: third `exprt` to append to the operands
176
- void copy_to_operands (exprt &&e1 , exprt &&e2 , exprt &&e3 )
200
+ void add_to_operands (exprt &&e1 , exprt &&e2 , exprt &&e3 )
177
201
{
178
202
operandst &op = operands ();
179
203
#ifndef USE_LIST
0 commit comments