@@ -64,6 +64,7 @@ SCENARIO("Constructing write stacks",
64
64
THEN (" The constructed stack should be &x" )
65
65
{
66
66
auto stack=write_stackt (in_expr, environment, ns);
67
+ REQUIRE_FALSE (stack.is_top_value ());
67
68
const exprt &out_expr=stack.to_expression ();
68
69
69
70
CAPTURE (expr2c (out_expr, ns));
@@ -86,6 +87,7 @@ SCENARIO("Constructing write stacks",
86
87
THEN (" The constructed stack should be &a[0]" )
87
88
{
88
89
auto stack=write_stackt (in_expr, environment, ns);
90
+ REQUIRE_FALSE (stack.is_top_value ());
89
91
const exprt &out_expr=stack.to_expression ();
90
92
91
93
CAPTURE (expr2c (out_expr, ns));
@@ -103,6 +105,7 @@ SCENARIO("Constructing write stacks",
103
105
THEN (" The constructed stack should be &a" )
104
106
{
105
107
auto stack=write_stackt (in_expr, environment, ns);
108
+ REQUIRE_FALSE (stack.is_top_value ());
106
109
const exprt &out_expr=stack.to_expression ();
107
110
108
111
CAPTURE (expr2c (out_expr, ns));
@@ -120,6 +123,7 @@ SCENARIO("Constructing write stacks",
120
123
THEN (" The constructed stack should be &a[0]" )
121
124
{
122
125
auto stack=write_stackt (in_expr, environment, ns);
126
+ REQUIRE_FALSE (stack.is_top_value ());
123
127
const exprt &out_expr=stack.to_expression ();
124
128
125
129
CAPTURE (expr2c (out_expr, ns));
@@ -139,6 +143,7 @@ SCENARIO("Constructing write stacks",
139
143
THEN (" The constructed stack should be &a[1]" )
140
144
{
141
145
auto stack=write_stackt (in_expr, environment, ns);
146
+ REQUIRE_FALSE (stack.is_top_value ());
142
147
const exprt &out_expr=stack.to_expression ();
143
148
144
149
CAPTURE (expr2c (out_expr, ns));
@@ -157,6 +162,7 @@ SCENARIO("Constructing write stacks",
157
162
THEN (" The constructed stack should be &a[1]" )
158
163
{
159
164
auto stack=write_stackt (in_expr, environment, ns);
165
+ REQUIRE_FALSE (stack.is_top_value ());
160
166
const exprt &out_expr=stack.to_expression ();
161
167
162
168
CAPTURE (expr2c (out_expr, ns));
@@ -176,6 +182,7 @@ SCENARIO("Constructing write stacks",
176
182
THEN (" The constructed stack should be &a[2]" )
177
183
{
178
184
auto stack=write_stackt (in_expr, environment, ns);
185
+ REQUIRE_FALSE (stack.is_top_value ());
179
186
const exprt &out_expr=stack.to_expression ();
180
187
181
188
CAPTURE (expr2c (out_expr, ns));
@@ -195,6 +202,7 @@ SCENARIO("Constructing write stacks",
195
202
THEN (" The constructed stack should be &a[0]" )
196
203
{
197
204
auto stack=write_stackt (in_expr, environment, ns);
205
+ REQUIRE_FALSE (stack.is_top_value ());
198
206
const exprt &out_expr=stack.to_expression ();
199
207
200
208
CAPTURE (expr2c (out_expr, ns));
@@ -214,6 +222,7 @@ SCENARIO("Constructing write stacks",
214
222
THEN (" The constructed stack should be &a[2]" )
215
223
{
216
224
auto stack=write_stackt (in_expr, environment, ns);
225
+ REQUIRE_FALSE (stack.is_top_value ());
217
226
const exprt &out_expr=stack.to_expression ();
218
227
219
228
CAPTURE (expr2c (out_expr, ns));
@@ -239,6 +248,7 @@ SCENARIO("Constructing write stacks",
239
248
THEN (" The constructed stack should be &a[TOP]" )
240
249
{
241
250
auto stack=write_stackt (in_expr, environment, ns);
251
+ REQUIRE_FALSE (stack.is_top_value ());
242
252
const exprt &out_expr=stack.to_expression ();
243
253
244
254
CAPTURE (expr2c (out_expr, ns));
@@ -265,6 +275,7 @@ SCENARIO("Constructing write stacks",
265
275
THEN (" The constructed stack should be &a[2]" )
266
276
{
267
277
auto stack=write_stackt (in_expr, environment, ns);
278
+ REQUIRE_FALSE (stack.is_top_value ());
268
279
const exprt &out_expr=stack.to_expression ();
269
280
270
281
CAPTURE (expr2c (out_expr, ns));
@@ -308,6 +319,7 @@ SCENARIO("Constructing write stacks",
308
319
THEN (" The constructed stack should be &s.comp" )
309
320
{
310
321
auto stack=write_stackt (in_expr, environment, ns);
322
+ REQUIRE_FALSE (stack.is_top_value ());
311
323
const exprt &out_expr=stack.to_expression ();
312
324
313
325
CAPTURE (expr2c (out_expr, ns));
@@ -327,6 +339,7 @@ SCENARIO("Constructing write stacks",
327
339
THEN (" The constructed stack should be &s.comp2" )
328
340
{
329
341
auto stack=write_stackt (in_expr, environment, ns);
342
+ REQUIRE_FALSE (stack.is_top_value ());
330
343
const exprt &out_expr=stack.to_expression ();
331
344
332
345
CAPTURE (expr2c (out_expr, ns));
@@ -384,6 +397,7 @@ SCENARIO("Constructing write stacks",
384
397
THEN (" The constructed stack should be &arr_s[1].comp" )
385
398
{
386
399
auto stack=write_stackt (in_expr, environment, ns);
400
+ REQUIRE_FALSE (stack.is_top_value ());
387
401
const exprt &out_expr=stack.to_expression ();
388
402
389
403
CAPTURE (expr2c (out_expr, ns));
@@ -424,6 +438,7 @@ SCENARIO("Constructing write stacks",
424
438
THEN (" The constructed stack should be &arr_s[TOP].comp" )
425
439
{
426
440
auto stack=write_stackt (in_expr, environment, ns);
441
+ REQUIRE_FALSE (stack.is_top_value ());
427
442
const exprt &out_expr=stack.to_expression ();
428
443
429
444
CAPTURE (expr2c (out_expr, ns));
0 commit comments