-
Notifications
You must be signed in to change notification settings - Fork 10
Expand file tree
/
Copy pathtest_typechecker.cpp
More file actions
576 lines (531 loc) · 21.9 KB
/
test_typechecker.cpp
File metadata and controls
576 lines (531 loc) · 21.9 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
443
444
445
446
447
448
449
450
451
452
453
454
455
456
457
458
459
460
461
462
463
464
465
466
467
468
469
470
471
472
473
474
475
476
477
478
479
480
481
482
483
484
485
486
487
488
489
490
491
492
493
494
495
496
497
498
499
500
501
502
503
504
505
506
507
508
509
510
511
512
513
514
515
516
517
518
519
520
521
522
523
524
525
526
527
528
529
530
531
532
533
534
535
536
537
538
539
540
541
542
543
544
545
546
547
548
549
550
551
552
553
554
555
556
557
558
559
560
561
562
563
564
565
566
567
568
569
570
571
572
573
574
575
576
// -*- mode: C++; c-file-style: "stroustrup"; c-basic-offset: 4; indent-tabs-mode: nil; -*-
/* libutap - Uppaal Timed Automata Parser.
Copyright (C) 2020-2022 Aalborg University.
This library is free software; you can redistribute it and/or
modify it under the terms of the GNU Lesser General Public License
as published by the Free Software Foundation; either version 2.1 of
the License, or (at your option) any later version.
This library is distributed in the hope that it will be useful, but
WITHOUT ANY WARRANTY; without even the implied warranty of
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
Lesser General Public License for more details.
You should have received a copy of the GNU Lesser General Public
License along with this library; if not, write to the Free Software
Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307
USA
*/
#include "document_fixture.h"
#include <doctest/doctest.h>
TEST_SUITE("Quantifier sum")
{
TEST_CASE("sum expression")
{
auto df = document_fixture{};
df.add_system_decl("int x = sum (index : int[0, 5]) index;");
auto doc = df.add_default_process().parse();
auto warns = doc->get_warnings();
CHECK(warns.size() == 0);
auto errs = doc->get_errors();
CHECK(errs.size() == 0);
}
TEST_CASE("sum over array")
{
auto df = document_fixture{};
df.add_system_decl("int a[3] = {1,4,9};");
df.add_system_decl("int x = sum(i : int[0, 2]) a[i];");
auto doc = df.add_default_process().parse();
auto warns = doc->get_warnings();
CHECK(warns.size() == 0);
auto errs = doc->get_errors();
REQUIRE(errs.size() == 1);
CHECK(errs[0].msg == "$Must_be_computable_at_compile_time");
}
TEST_CASE("sum over const array")
{
auto df = document_fixture{};
df.add_system_decl("const int a[3] = {1,4,9};");
df.add_system_decl("int x = sum(i : int[0, 2]) a[i];");
auto doc = df.add_default_process().parse();
auto warns = doc->get_warnings();
CHECK(warns.size() == 0);
auto errs = doc->get_errors();
CHECK(errs.size() == 0);
}
}
TEST_SUITE("Quantifier forall")
{
TEST_CASE("forall expression")
{
auto df = document_fixture{};
df.add_system_decl("bool x = forall(index : int[0, 5]) index > 3;");
auto doc = df.add_default_process().parse();
auto warns = doc->get_warnings();
CHECK(warns.size() == 0);
auto errs = doc->get_errors();
CHECK(errs.size() == 0);
}
TEST_CASE("forall over array")
{
auto df = document_fixture{};
df.add_system_decl("bool b[3] = {1,1,1};");
df.add_system_decl("bool x = forall(i : int[0,2]) b[i];");
auto doc = df.add_default_process().parse();
CHECK_MESSAGE(doc->get_warnings().size() == 0, doc->get_warnings()[0].msg);
const auto errors = doc->get_errors();
REQUIRE(errors.size() == 1);
CHECK(errors[0].msg == "$Must_be_computable_at_compile_time");
}
TEST_CASE("forall over const array")
{
auto df = document_fixture{};
df.add_system_decl("const bool b[3]={1,1,1};");
df.add_system_decl("bool x = forall(i : int[0,2]) b[i];");
auto doc = df.add_default_process().parse();
auto warns = doc->get_warnings();
CHECK(warns.size() == 0);
auto errs = doc->get_errors();
CHECK(errs.size() == 0);
}
}
TEST_SUITE("Quantifier exists")
{
TEST_CASE("exists expression")
{
auto df = document_fixture{};
df.add_system_decl("bool x = exists(index : int[0, 5]) index > 3;");
auto doc = df.add_default_process().parse();
auto warns = doc->get_warnings();
CHECK(warns.size() == 0);
auto errs = doc->get_errors();
CHECK(errs.size() == 0);
}
TEST_CASE("exists over array")
{
auto df = document_fixture{};
df.add_system_decl("bool b[3] = {0,0,1};");
df.add_system_decl("bool x = exists(i : int[0,2]) b[i];");
auto doc = df.add_default_process().parse();
auto warns = doc->get_warnings();
CHECK(warns.size() == 0);
auto errs = doc->get_errors();
REQUIRE(errs.size() == 1);
CHECK(errs[0].msg == "$Must_be_computable_at_compile_time");
}
TEST_CASE("exists over const array")
{
auto df = document_fixture{};
df.add_system_decl("const bool b[3]={0,0,1};");
df.add_system_decl("bool x = exists(i : int[0,2]) b[i];");
auto doc = df.add_default_process().parse();
auto warns = doc->get_warnings();
CHECK(warns.size() == 0);
auto errs = doc->get_errors();
CHECK(errs.size() == 0);
}
}
TEST_SUITE("Error positions for unbound parameters")
{
TEST_CASE("Bounded const int parameter")
{
auto df = document_fixture{};
df.add_template(template_fixture{"T"}.add_parameter("const int[1,4] test").str());
df.add_process("T");
auto text = df.str();
auto doc = df.parse();
auto warns = doc->get_warnings();
CHECK(warns.size() == 0);
auto errs = doc->get_errors();
CHECK(errs.size() == 0);
}
TEST_CASE("Bounded int parameter")
{
auto df = document_fixture{};
df.add_template(template_fixture{"T"}.add_parameter("int[1,4] test").str());
df.add_process("T");
auto text = df.str();
auto doc = df.parse();
auto warns = doc->get_warnings();
CHECK(warns.size() == 0);
auto errs = doc->get_errors();
CHECK(errs.size() == 0);
}
TEST_CASE("Unbounded int parameter")
{
auto df = document_fixture{};
df.add_template(template_fixture{"T"}.add_parameter("int test").str());
df.add_process("T");
auto text = df.str();
auto doc = df.parse();
auto warns = doc->get_warnings();
CHECK(warns.size() == 0);
auto errs = doc->get_errors();
CHECK(errs.size() == 1);
auto pos = errs.front().position;
CHECK(pos.start != pos.unknown_pos);
CHECK(pos.end != pos.unknown_pos);
}
TEST_CASE("Reference parameter")
{
auto df = document_fixture{};
df.add_template(template_fixture{"T"}.add_parameter("int& test").str());
df.add_process("T");
auto text = df.str();
auto doc = df.parse();
auto warns = doc->get_warnings();
CHECK(warns.size() == 0);
auto errs = doc->get_errors();
CHECK(errs.size() == 1);
auto pos = errs.front().position;
CHECK(pos.start != pos.unknown_pos);
CHECK(pos.end != pos.unknown_pos);
}
}
TEST_CASE("Ternary operator with clock and double")
{
auto doc = document_fixture{}
.add_global_decl("clock c; double x; void f(bool b) { x = b ? c : 1.0; }")
.add_default_process()
.parse();
CHECK_MESSAGE(doc->get_errors().size() == 0, doc->get_errors()[0].msg);
CHECK_MESSAGE(doc->get_warnings().size() == 0, doc->get_warnings()[0].msg);
}
TEST_CASE("Ternary operator with double and clock")
{
auto doc = document_fixture{}
.add_global_decl("clock c; double x; void f(bool b) { x = b ? 1.0 : c; }")
.add_default_process()
.parse();
CHECK_MESSAGE(doc->get_errors().size() == 0, doc->get_errors()[0].msg);
CHECK_MESSAGE(doc->get_warnings().size() == 0, doc->get_warnings()[0].msg);
}
TEST_CASE("Ternary operator with clock and integer")
{
auto doc = document_fixture{}
.add_global_decl("clock c; double x; void f(bool b) { x = b ? c : 1; }")
.add_default_process()
.parse();
CHECK_MESSAGE(doc->get_errors().size() == 0, doc->get_errors()[0].msg);
CHECK_MESSAGE(doc->get_warnings().size() == 0, doc->get_warnings()[0].msg);
}
TEST_CASE("Ternary operator with clock and bool")
{
auto doc = document_fixture{}
.add_global_decl("clock c; double x; void f(bool b) { x = b ? c : true; };")
.add_default_process()
.parse();
CHECK(doc->get_errors().size() == 1);
CHECK_MESSAGE(doc->get_warnings().size() == 0, doc->get_warnings()[0].msg);
}
TEST_CASE("Ternary operator with clock and clock")
{
auto doc = document_fixture{}
.add_global_decl("clock c; double x; void f(bool b) { x = b ? c : c; }")
.add_default_process()
.parse();
CHECK_MESSAGE(doc->get_errors().size() == 0, doc->get_errors()[0].msg);
CHECK_MESSAGE(doc->get_warnings().size() == 0, doc->get_warnings()[0].msg);
}
TEST_CASE("Ternary operator with constant double")
{
auto doc = document_fixture{}
.add_global_decl("const double VAL = 2;")
.add_global_decl("double x; void f(bool b) { x = b ? -VAL : VAL; }")
.add_default_process()
.parse();
CHECK_MESSAGE(doc->get_errors().size() == 0, doc->get_errors()[0].msg);
CHECK_MESSAGE(doc->get_warnings().size() == 0, doc->get_warnings()[0].msg);
}
TEST_CASE("Ternary operator with constant double and clock")
{
auto doc = document_fixture{}
.add_global_decl("const double VAL = 2;")
.add_global_decl("clock c;")
.add_global_decl("double x; void f(bool b) { x = b ? -VAL : c; }")
.add_default_process()
.parse();
CHECK_MESSAGE(doc->get_errors().size() == 0, doc->get_errors()[0].msg);
CHECK_MESSAGE(doc->get_warnings().size() == 0, doc->get_warnings()[0].msg);
}
TEST_CASE("Ternary operator with boolean and clock")
{
auto doc = document_fixture{}
.add_global_decl("clock c;")
.add_global_decl("double x; void f(bool b) { x = b? true : c; }")
.add_default_process()
.parse();
CHECK_MESSAGE(doc->get_errors().size() == 0, doc->get_errors()[0].msg);
CHECK_MESSAGE(doc->get_warnings().size() == 0, doc->get_warnings()[0].msg);
}
TEST_CASE("Ternary operator with struct and double")
{
auto doc = document_fixture{}
.add_global_decl("struct { int x; } s;")
.add_global_decl("double x; void f(bool b) { x = b? s : 0.5; }")
.add_default_process()
.parse();
CHECK(doc->get_errors().size() == 1);
CHECK_MESSAGE(doc->get_warnings().size() == 0, doc->get_warnings()[0].msg);
}
TEST_CASE("Ternary operator with struct and double")
{
auto doc = document_fixture{}
.add_global_decl("struct { int x; } s;")
.add_global_decl("double x; void f(bool b) { x = b? s : 0.5; }")
.add_default_process()
.parse();
CHECK(doc->get_errors().size() == 1);
CHECK_MESSAGE(doc->get_warnings().size() == 0, doc->get_warnings()[0].msg);
}
TEST_CASE("Ternary operator with struct and struct")
{
auto doc = document_fixture{}
.add_global_decl("typedef struct { int x; } S;")
.add_global_decl("S s; S x = {5}; S y = {2};")
.add_global_decl("void f(bool b) { s = b? x : y; }")
.add_default_process()
.parse();
CHECK_MESSAGE(doc->get_errors().size() == 0, doc->get_errors()[0].msg);
CHECK_MESSAGE(doc->get_warnings().size() == 0, doc->get_warnings()[0].msg);
}
TEST_CASE("Ternary operator with reference to integer array")
{
auto doc = document_fixture{}
.add_global_decl("int x[2]; int y[2]; int z[2];")
.add_global_decl("void f(bool b) { z = (b?x:y); }")
.add_default_process()
.parse();
CHECK_MESSAGE(doc->get_errors().size() == 0, doc->get_errors()[0].msg);
CHECK_MESSAGE(doc->get_warnings().size() == 0, doc->get_warnings()[0].msg);
}
TEST_CASE("Ternary operator with arrays clock and double")
{
auto doc = document_fixture{}
.add_global_decl("clock c; double x[2]; void f(bool b) { x[0] = b ? c : x[1]; }")
.add_default_process()
.parse();
CHECK_MESSAGE(doc->get_errors().size() == 0, doc->get_errors()[0].msg);
CHECK_MESSAGE(doc->get_warnings().size() == 0, doc->get_warnings()[0].msg);
}
TEST_CASE("Ternary operator with int and int expression 1")
{
auto doc =
document_fixture{}.add_global_decl("int x; void f(bool b) { x = b ? 0 : 1+1; }").add_default_process().parse();
CHECK_MESSAGE(doc->get_errors().size() == 0, doc->get_errors()[0].msg);
CHECK_MESSAGE(doc->get_warnings().size() == 0, doc->get_warnings()[0].msg);
}
TEST_CASE("Ternary operator with int and int expression 2")
{
auto doc =
document_fixture{}.add_global_decl("int x; void f(bool b) { x = b ? 1+1 : 0; }").add_default_process().parse();
CHECK_MESSAGE(doc->get_errors().size() == 0, doc->get_errors()[0].msg);
CHECK_MESSAGE(doc->get_warnings().size() == 0, doc->get_warnings()[0].msg);
}
TEST_CASE("Ternary operator with int expressions")
{
auto doc = document_fixture{}
.add_global_decl("int x; void f(bool b) { x = b ? 1+1 : 1+1; }")
.add_default_process()
.parse();
CHECK_MESSAGE(doc->get_errors().size() == 0, doc->get_errors()[0].msg);
CHECK_MESSAGE(doc->get_warnings().size() == 0, doc->get_warnings()[0].msg);
}
TEST_CASE("Ternary operator with int expressions")
{
auto doc = document_fixture{}
.add_global_decl("int x; void f(bool b) { x = b ? 1+1 : 1.0+1.0; }")
.add_default_process()
.parse();
CHECK(doc->get_errors().size() == 1);
CHECK_MESSAGE(doc->get_warnings().size() == 0, doc->get_warnings()[0].msg);
}
TEST_CASE("Ternary operator with int expressions and clocks")
{
auto doc = document_fixture{}
.add_global_decl("int x; clock c; void f(bool b) { x = b ? 1+1 : c; }")
.add_default_process()
.parse();
CHECK(doc->get_errors().size() == 1);
CHECK_MESSAGE(doc->get_warnings().size() == 0, doc->get_warnings()[0].msg);
}
TEST_CASE("Ternary operator with double expressions and clocks")
{
auto doc = document_fixture{}
.add_global_decl("clock x; clock c; void f(bool b) { x = b ? 1+1 : c; }")
.add_default_process()
.parse();
CHECK_MESSAGE(doc->get_errors().size() == 0, doc->get_errors()[0].msg);
CHECK_MESSAGE(doc->get_warnings().size() == 0, doc->get_warnings()[0].msg);
}
TEST_CASE("Ternary operator with struct clock and double")
{
auto doc = document_fixture{}
.add_global_decl("struct{ clock c; double x; }z; void f(bool b) { z.x = b ? z.c : 1.0; }")
.add_default_process()
.parse();
CHECK_MESSAGE(doc->get_errors().size() == 0, doc->get_errors()[0].msg);
CHECK_MESSAGE(doc->get_warnings().size() == 0, doc->get_warnings()[0].msg);
}
TEST_CASE("Ternary operator returning c++ reference to doubles with assignment")
{
auto doc = document_fixture{}
.add_global_decl("clock c; double x[2]; void f(bool b) { (b?x[0]:x[1]) = c; }")
.add_default_process()
.parse();
CHECK_MESSAGE(doc->get_errors().size() == 0, doc->get_errors()[0].msg);
CHECK_MESSAGE(doc->get_warnings().size() == 0, doc->get_warnings()[0].msg);
}
TEST_CASE("Ternary operator with two conversions into clock")
{
auto doc = document_fixture{}
.add_global_decl("clock c; double x; void f(bool b) { c = b ? 1 : x+2.0; }")
.add_default_process()
.parse();
CHECK_MESSAGE(doc->get_errors().size() == 0, doc->get_errors()[0].msg);
CHECK_MESSAGE(doc->get_warnings().size() == 0, doc->get_warnings()[0].msg);
}
TEST_CASE("Ternary operator with two conversions into double")
{
auto doc = document_fixture{}
.add_global_decl("clock c; double x; void f(bool b) { x = b ? 1 : c+2.0; }")
.add_default_process()
.parse();
CHECK_MESSAGE(doc->get_errors().size() == 0, doc->get_errors()[0].msg);
CHECK_MESSAGE(doc->get_warnings().size() == 0, doc->get_warnings()[0].msg);
}
TEST_CASE("Double in struct")
{
auto doc = document_fixture{}.add_default_process().add_global_decl("struct { double x; } my_struct;").parse();
auto warns = doc->get_warnings();
CHECK(warns.size() == 0);
auto errs = doc->get_errors();
CHECK(errs.size() == 0);
}
TEST_CASE("Clock in struct")
{
auto doc = document_fixture{}.add_default_process().add_global_decl("struct { clock x; } my_struct;").parse();
auto warns = doc->get_warnings();
CHECK(warns.size() == 0);
auto errs = doc->get_errors();
CHECK(errs.size() == 0);
}
TEST_CASE("Nested structs")
{
auto doc = document_fixture{}
.add_default_process()
.add_global_decl("struct { struct { clock x; } nested; } my_struct;")
.parse();
auto warns = doc->get_warnings();
CHECK(warns.size() == 0);
auto errs = doc->get_errors();
CHECK(errs.size() == 0);
}
TEST_CASE("Nested structs")
{
auto doc = document_fixture{}
.add_default_process()
.add_global_decl("struct { int x; double y; } my_struct = {1.0, 1.0};")
.parse();
auto warns = doc->get_warnings();
CHECK(warns.size() == 0);
auto errs = doc->get_errors();
CHECK(errs.size() == 1);
}
TEST_CASE("Function calls in queries")
{
auto doc = read_document("function_calls.xml");
const auto& errs = doc->get_errors();
REQUIRE_MESSAGE(errs.empty(), errs.front().msg);
auto builder = std::make_unique<UTAP::TigaPropertyBuilder>(*doc);
const auto& queries = doc->get_queries();
REQUIRE(queries.size() == 5);
SUBCASE("Correct")
{
const auto& query = *queries.begin();
builder->parse(query.formula.c_str(), query.location, query.options);
REQUIRE_MESSAGE(errs.empty(), errs.front().msg);
/*
REQUIRE_MESSAGE(props.size() == prop_count + 1, "Should contain one more property");
const auto& expr = std::next(props.begin(), prop_count)->intermediate;
REQUIRE(expr.get_size() == 7);
CHECK(expr.get(0).get_value() == 3); ///< max runs
CHECK(expr.get(1).get_value() == 1); ///< bound kind of time
CHECK(expr.get(2).get_value() == 5); ///< time bound
// CHECK(expr.get(3));
// CHECK(expr.get(4));
// CHECK(expr.get(5));
CHECK(expr.get(6).get_value() == 2); ///< number of satisfying runs
*/
}
SUBCASE("Predicate misses argument")
{
const auto& query = *std::next(queries.begin(), 1);
builder->parse(query.formula.c_str(), query.location, query.options);
CHECK_MESSAGE(errs.empty(), errs.front().msg);
/*
REQUIRE_MESSAGE(props.size() == prop_count + 1, "Should contain one more property");
const auto& expr = std::next(props.begin(), prop_count)->intermediate;
REQUIRE(expr.get_size() == 7);
CHECK(expr.get(0).get_value() == 3); ///< max runs
CHECK(expr.get(1).get_value() == 1); ///< bound kind of time
CHECK(expr.get(2).get_value() == 5); ///< time bound
// CHECK(expr.get(3));
// CHECK(expr.get(4));
// CHECK(expr.get(5));
CHECK(expr.get(6).get_value() == 2); ///< number of satisfying runs
*/
}
SUBCASE("Monitored expression misses argument")
{
const auto& query = *std::next(queries.begin(), 2);
builder->parse(query.formula.c_str(), query.location, query.options);
CHECK_MESSAGE(errs.empty(), errs.front().msg);
/*
REQUIRE_MESSAGE(props.size() == prop_count + 1, "Should contain one more property");
const auto& expr = std::next(props.begin(), prop_count)->intermediate;
REQUIRE(expr.get_size() == 7);
CHECK(expr.get(0).get_value() == 3); ///< max runs
CHECK(expr.get(1).get_value() == 1); ///< bound kind of time
CHECK(expr.get(2).get_value() == 5); ///< time bound
// CHECK(expr.get(3));
// CHECK(expr.get(4));
// CHECK(expr.get(5));
CHECK(expr.get(6).get_value() == 2); ///< number of satisfying runs
*/
}
SUBCASE("Missing arguments in both calls")
{
const auto& query = *std::next(queries.begin(), 3);
builder->parse(query.formula.c_str(), query.location, query.options);
CHECK_MESSAGE(errs.empty(), errs.front().msg);
/*
REQUIRE_MESSAGE(props.size() == prop_count + 1, "Should contain one more property");
const auto& expr = std::next(props.begin(), prop_count)->intermediate;
REQUIRE(expr.get_size() == 7);
CHECK(expr.get(0).get_value() == 3); ///< max runs
CHECK(expr.get(1).get_value() == 1); ///< bound kind of time
CHECK(expr.get(2).get_value() == 5); ///< time bound
// CHECK(expr.get(3));
// CHECK(expr.get(4));
// CHECK(expr.get(5));
CHECK(expr.get(6).get_value() == 2); ///< number of satisfying runs
*/
}
SUBCASE("Non-existent fn")
{
const auto& query = *std::next(queries.begin(), 4);
builder->parse(query.formula.c_str(), query.location, query.options);
CHECK_MESSAGE(errs.empty(), errs.front().msg);
/*
REQUIRE_MESSAGE(props.size() == prop_count + 1, "Should contain one more property");
const auto& expr = std::next(props.begin(), prop_count)->intermediate;
REQUIRE(expr.get_size() == 7);
CHECK(expr.get(0).get_value() == 3); ///< max runs
CHECK(expr.get(1).get_value() == 1); ///< bound kind of time
CHECK(expr.get(2).get_value() == 5); ///< time bound
// CHECK(expr.get(3));
// CHECK(expr.get(4));
// CHECK(expr.get(5));
CHECK(expr.get(6).get_value() == 2); ///< number of satisfying runs
*/
}
}