forked from AU-COBRA/ConCert
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathAllTests.v
667 lines (486 loc) · 20.8 KB
/
AllTests.v
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
577
578
579
580
581
582
583
584
585
586
587
588
589
590
591
592
593
594
595
596
597
598
599
600
601
602
603
604
605
606
607
608
609
610
611
612
613
614
615
616
617
618
619
620
621
622
623
624
625
626
627
628
629
630
631
632
633
634
635
636
637
638
639
640
641
642
643
644
645
646
647
648
649
650
651
652
653
654
655
656
657
658
659
660
661
662
663
664
665
666
667
Set Warnings "-extraction-inside-module".
From Coq Require Import BinNat.
From ConCert.Execution Require Import Blockchain.
From ConCert.Execution.Test Require Import QCTest.
From ConCert.Examples.Congress Require CongressTests.
From ConCert.Examples.Congress Require Congress_BuggyTests.
From ConCert.Examples.ExchangeBuggy Require ExchangeBuggyTests.
From ConCert.Examples.Dexter Require DexterTests.
From ConCert.Examples.Dexter2 Require Dexter2Tests.
From ConCert.Examples.EIP20 Require EIP20TokenTests.
From ConCert.Examples.Escrow Require EscrowTests.
From ConCert.Examples.FA2 Require FA2TokenTests.
From ConCert.Examples.iTokenBuggy Require iTokenBuggyTests.
From ConCert.Examples.BAT Require BATTestCommon.
From ConCert.Examples.BAT Require BATTests.
From ConCert.Examples.BAT Require BATFixedTests.
From ConCert.Examples.BAT Require BATAltFixTests.
Module Congress.
Import CongressTests.
Import TN.
Time QuickChick (
{{fun _ _ => true}}
congress_caddr
{{receive_state_well_behaved_P}}
).
(* +++ Passed 10000 tests (0 discards) *)
Time QuickChick (forAllBlocks state_proposals_proposed_in_valid).
(* +++ Passed 10000 tests (0 discards) *)
Time QuickChick (chain5 ~~> congress_has_votes_on_some_proposal).
(* Success - found witness satisfying the predicate!
+++ Failed (as expected) after 4 tests and 0 shrinks. (0 discards) *)
Time QuickChick (chain5 ~~> congress_finished_a_vote).
(* Success - found witness satisfying the predicate!
+++ Failed (as expected) after 11 tests and 0 shrinks. (0 discards) *)
End Congress.
Module Congress_Buggy.
Import Congress_BuggyTests.
Import TN.
Time QuickChick (expectFailure (
{{fun _ _ => true}}
congress_caddr
{{receive_state_well_behaved_P}}
)).
(* *** Failed (as expected) after 10 tests and 1 shrinks. (0 discards) *)
End Congress_Buggy.
Module ExchangeBuggy.
Import ExchangeBuggyTests.
Time QuickChick (expectFailure tokens_to_asset_correct).
(* *** Failed (as expected) after 1 tests and 1 shrinks. (0 discards) *)
End ExchangeBuggy.
Module Dexter.
Import DexterTests.
Extract Constant DepthFirst => "false".
Time QuickChick (expectFailure tokens_to_asset_correct).
(* +++ Failed (as expected) after 26 tests and 2 shrinks. (0 discards) *)
Extract Constant DepthFirst => "true".
Time QuickChick (tokens_to_asset_correct).
(* +++ Passed 10000 tests (0 discards) *)
End Dexter.
Module Dexter2.
Import Dexter2Tests.
Import TestInfo.
Import TN.
(* Run tests in breadth-first execution model *)
Extract Constant DepthFirst => "false".
Time QuickChick ({{msg_is_balance_of_callback}} cpmm_contract_base_addr {{callback_safe}}).
(* +++ Passed 10000 tests (0 discards) *)
Time QuickChick ({{is_syncing}} cpmm_contract_base_addr {{only_callbacks}}).
(* +++ Passed 10000 tests (0 discards) *)
Time QuickChick (forAllBlocks token_reserve_safe).
(* +++ Passed 10000 tests (0 discards) *)
(* Run tests in depth-first execution model *)
Extract Constant DepthFirst => "true".
Time QuickChick ({{msg_is_balance_of_callback}} cpmm_contract_base_addr {{callback_safe}}).
(* +++ Passed 10000 tests (0 discards) *)
Time QuickChick ({{is_syncing}} cpmm_contract_base_addr {{only_callbacks}}).
(* +++ Passed 10000 tests (0 discards) *)
Time QuickChick (forAllBlocks token_reserve_safe).
(* +++ Passed 10000 tests (0 discards) *)
End Dexter2.
Module EIP20Token.
Import EIP20TokenTests.
Import TestInfo.
Import TN.
Time QuickChick (
{{fun _ _ => true}}
contract_addr
{{post_not_payable}}
).
(* +++ Passed 10000 tests (0 discards) *)
Time QuickChick (
{{fun _ _ => true}}
contract_addr
{{post_no_new_acts}}
).
(* +++ Passed 10000 tests (0 discards) *)
Time QuickChick (
{{fun _ _ => true}}
contract_addr
{{post_total_supply_constant}}
).
(* +++ Passed 10000 tests (0 discards) *)
Time QuickChick (
{{msg_is_transfer}}
contract_addr
{{post_transfer_correct}}
).
(* +++ Passed 10000 tests (0 discards) *)
Time QuickChick (
{{msg_is_transfer_from}}
contract_addr
{{post_transfer_from_correct}}
).
(* +++ Passed 10000 tests (0 discards) *)
Time QuickChick (
{{msg_is_approve}}
contract_addr
{{post_approve_correct}}
).
(* +++ Passed 10000 tests (0 discards) *)
Time QuickChick (forAllBlocks (checker_get_state sum_balances_eq_total_supply)).
(* Passed 10000 tests (0 discards) *)
Time QuickChick (forAllBlocks (checker_get_state init_supply_eq_total_supply)).
(* +++ Passed 10000 tests (0 discards) *)
Time QuickChick (expectFailure (sum_allowances_le_init_supply_P)).
(* *** Failed (as expected) after 21 tests and 8 shrinks. (0 discards) *)
Time QuickChick (token_cb ~~> (person_has_tokens person_3 12)).
(* Success - found witness satisfying the predicate!
+++ Failed (as expected) after 1 tests and 0 shrinks. (0 discards) *)
Time QuickChick (token_cb ~~> person_has_tokens creator 0).
(* Success - found witness satisfying the predicate!
+++ Failed (as expected) after 1 tests and 0 shrinks. (0 discards)*)
Time QuickChick (expectFailure (
token_cb
~~~> (fun cs => if person_has_tokens creator 5 cs.(chain_state_env) then Some tt else None)
===> (fun _ _ post_trace => person_has_tokens creator 10 (last post_trace empty_state))
)).
(* *** Failed after 1 tests and 9 shrinks. (0 discards) *)
Time QuickChick (expectFailure reapprove_transfer_from_safe_P).
(* *** Failed (as expected) after 1 tests and 4 shrinks. (14 discards) *)
End EIP20Token.
Module Escrow.
Import EscrowTests.
Import MG.
Time QuickChick (forAllEscrowChainBuilder gEscrowTrace 7 escrow_chain escrow_correct_P).
(* *** Gave up! Passed only 8529 tests
Discarded: 20000 *)
Time QuickChick (forAllEscrowChainBuilder gEscrowTraceBetter 7 escrow_chain escrow_correct_P).
(* +++ Passed 10000 tests (0 discards) *)
Time QuickChick escrow_valid_steps_P.
(* +++ Passed 10000 tests (0 discards) *)
End Escrow.
Module FA2Token.
Import FA2TokenTests.
Import TestInfo.
Import TN.
Time QuickChick (
{{ msg_is_transfer }}
token_contract_base_addr
{{ post_transfer_correct }}
chain_without_transfer_hook).
(* +++ Passed 10000 tests (0 discards) *)
Time QuickChick (forAllChainStatePairs transfer_balances_correct).
(* +++ Passed 10000 tests (0 discards) *)
Time QuickChick (forAllChainStatePairs transfer_satisfies_policy_P).
(* +++ Passed 10000 tests (0 discards) *)
Time QuickChick (
{{msg_is_update_operator}}
token_contract_base_addr
{{post_last_update_operator_occurrence_takes_effect}}
chain_without_transfer_hook
).
(* +++ Passed 10000 tests (0 discards) *)
End FA2Token.
Module iTokenBuggy.
Import iTokenBuggyTests.
Import TN.
Time QuickChick (expectFailure token_supply_preserved).
(* *** Failed (as expected) after 5 tests and 1000 shrinks. (0 discards) *)
Time QuickChick (expectFailure (forAllBlocks (checker_get_state sum_balances_eq_init_supply_checker))).
(* *** Failed (as expected) after 1 tests and 7 shrinks. (0 discards) *)
Time QuickChick (expectFailure (
{{msg_is_not_mint_or_burn}}
token_caddr
{{sum_balances_unchanged}}
)).
(* *** Failed (as expected) after 3 tests and 8 shrinks. (0 discards) *)
End iTokenBuggy.
Module BAT.
Import BATTests.
Import TestInfo.
Import MG TN.
Import BATTestCommon.
Time QuickChick (
{{fun state msg => negb (msg_is_create_tokens state msg)}}
contract_addr
{{amount_is_zero}}
).
(* +++ Passed 10000 tests (0 discards) *)
Time QuickChick (
{{msg_is_create_tokens}}
contract_addr
{{amount_is_positive}}
).
(* +++ Passed 10000 tests (0 discards) *)
Time QuickChick (
{{msg_is_eip_msg ||| msg_is_create_tokens}}
contract_addr
{{produces_no_actions}}
).
(* +++ Passed 10000 tests (0 discards) *)
Time QuickChick (
{{msg_is_refund ||| msg_is_finalize}}
contract_addr
{{produces_one_action}}
).
(* +++ Passed 10000 tests (0 discards) *)
Time QuickChick (
{{fun state msg => true}}
contract_addr
{{constants_unchanged}}
).
(* +++ Passed 10000 tests (0 discards) *)
Time QuickChick ({{msg_is_create_tokens}} contract_addr {{post_create_tokens_update_correct}}).
(* +++ Passed 10000 tests (0 discards) *)
Time QuickChick ({{msg_is_create_tokens}} contract_addr {{create_tokens_valid}}).
(* +++ Passed 10000 tests (0 discards) *)
Time QuickChick ({{msg_is_create_tokens}} contract_addr {{post_create_tokens_safe}}).
(* +++ Passed 10000 tests (0 discards) *)
Time QuickChick ({{msg_is_finalize}} contract_addr {{post_finalize_update_correct}}).
(* +++ Passed 10000 tests (0 discards) *)
Time QuickChick ({{msg_is_finalize}} contract_addr {{finalize_valid}}).
(* +++ Passed 10000 tests (0 discards) *)
Time QuickChick ({{msg_is_finalize}} contract_addr {{post_finalize_safe}}).
(* +++ Passed 10000 tests (0 discards) *)
Time QuickChick ({{msg_is_refund}} contract_addr {{post_refund_update_correct}}).
(* +++ Passed 10000 tests (0 discards) *)
Time QuickChick ({{msg_is_refund}} contract_addr {{refund_valid}}).
(* +++ Passed 10000 tests (0 discards) *)
Time QuickChick ({{msg_is_refund}} contract_addr {{post_refund_safe}}).
(* +++ Passed 10000 tests (0 discards) *)
Time QuickChick ({{msg_is_transfer}} contract_addr {{post_transfer_update_correct}}).
(* +++ Passed 10000 tests (0 discards) *)
Time QuickChick ({{msg_is_transfer}} contract_addr {{transfer_valid}}).
(* +++ Passed 10000 tests (0 discards) *)
Time QuickChick ({{msg_is_transfer}} contract_addr {{post_transfer_safe}}).
(* +++ Passed 10000 tests (0 discards) *)
Time QuickChick ({{msg_is_transfer_from}} contract_addr {{post_transfer_from_update_correct}}).
(* +++ Passed 10000 tests (0 discards) *)
Time QuickChick ({{msg_is_transfer_from}} contract_addr {{transfer_from_valid}}).
(* +++ Passed 10000 tests (0 discards) *)
Time QuickChick ({{msg_is_transfer_from}} contract_addr {{post_transfer_from_safe}}).
(* +++ Passed 10000 tests (0 discards) *)
Time QuickChick ({{msg_is_approve}} contract_addr {{post_approve_update_correct}}).
(* +++ Passed 10000 tests (0 discards) *)
Time QuickChick ({{msg_is_approve}} contract_addr {{approve_valid}}).
(* +++ Passed 10000 tests (0 discards) *)
Time QuickChick ({{msg_is_approve}} contract_addr {{post_approve_safe}}).
(* +++ Passed 10000 tests (0 discards) *)
Time QuickChick ({{contract_balance_lower_bound}}).
(* +++ Passed 10000 tests (0 discards) *)
Time QuickChick (expectFailure ({{contract_balance_lower_bound'}})).
(* +++ Failed (as expected) after 2 tests and 7 shrinks. (0 discards) *)
Time QuickChick (partially_funded_cb ~~> is_fully_refunded).
(* Success - found witness satisfying the predicate!
+++ Failed (as expected) after 140 tests and 0 shrinks. (0 discards) *)
Time QuickChick (expectFailure ({{can_always_fully_refund}})).
(* +++ Failed (as expected) after 6 tests and 7 shrinks. (0 discards) *)
Time QuickChick (token_cb ~~> is_finalized).
(* Success - found witness satisfying the predicate!
+++ Failed (as expected) after 6 tests and 0 shrinks. (0 discards) *)
Time QuickChick final_is_final.
(* +++ Passed 10000 tests (6329 discards) *)
Time QuickChick can_only_finalize_once.
(* +++ Passed 10000 tests (0 discards) *)
Time QuickChick final_implies_total_supply_in_range.
(* +++ Passed 10000 tests (6125 discards) *)
Time QuickChick final_implies_total_supply_constant.
(* +++ Passed 10000 tests (6246 discards) *)
Time QuickChick final_implies_contract_balance_is_zero.
(* +++ Passed 10000 tests (6179 discards) *)
Time QuickChick (expectFailure ({{total_supply_bounds}})).
(* +++ Failed (as expected) after 3 tests and 7 shrinks. (0 discards) *)
Time QuickChick ({{total_supply_eq_sum_balances}}).
(* +++ Passed 10000 tests (0 discards) *)
Time QuickChick ({{paid_tokens_modulo_exchange_rate}}).
(* +++ Passed 10000 tests (0 discards) *)
End BAT.
Module BATFixed.
Import BATFixedTests.
Import TestInfo.
Import MG TN.
Import BATTestCommon.
Time QuickChick (
{{fun state msg => negb (msg_is_create_tokens state msg)}}
contract_addr
{{amount_is_zero}}
).
(* +++ Passed 10000 tests (0 discards) *)
Time QuickChick (
{{msg_is_create_tokens}}
contract_addr
{{amount_is_positive}}
).
(* +++ Passed 10000 tests (0 discards) *)
Time QuickChick (
{{msg_is_eip_msg ||| msg_is_create_tokens}}
contract_addr
{{produces_no_actions}}
).
(* +++ Passed 10000 tests (0 discards) *)
Time QuickChick (
{{msg_is_refund ||| msg_is_finalize}}
contract_addr
{{produces_one_action}}
).
(* +++ Passed 10000 tests (0 discards) *)
Time QuickChick (
{{fun state msg => true}}
contract_addr
{{constants_unchanged}}
).
(* +++ Passed 10000 tests (0 discards) *)
Time QuickChick ({{msg_is_create_tokens}} contract_addr {{post_create_tokens_update_correct}}).
(* +++ Passed 10000 tests (0 discards) *)
Time QuickChick ({{msg_is_create_tokens}} contract_addr {{create_tokens_valid}}).
(* +++ Passed 10000 tests (0 discards) *)
Time QuickChick ({{msg_is_create_tokens}} contract_addr {{post_create_tokens_safe}}).
(* +++ Passed 10000 tests (0 discards) *)
Time QuickChick ({{msg_is_finalize}} contract_addr {{post_finalize_update_correct}}).
(* +++ Passed 10000 tests (0 discards) *)
Time QuickChick ({{msg_is_finalize}} contract_addr {{finalize_valid}}).
(* +++ Passed 10000 tests (0 discards) *)
Time QuickChick ({{msg_is_finalize}} contract_addr {{post_finalize_safe}}).
(* +++ Passed 10000 tests (0 discards) *)
Time QuickChick ({{msg_is_refund}} contract_addr {{post_refund_update_correct}}).
(* +++ Passed 10000 tests (0 discards) *)
Time QuickChick ({{msg_is_refund}} contract_addr {{refund_valid}}).
(* +++ Passed 10000 tests (0 discards) *)
Time QuickChick ({{msg_is_refund}} contract_addr {{post_refund_safe}}).
(* +++ Passed 10000 tests (0 discards) *)
Time QuickChick ({{msg_is_transfer}} contract_addr {{post_transfer_update_correct}}).
(* +++ Passed 10000 tests (0 discards) *)
Time QuickChick ({{msg_is_transfer}} contract_addr {{transfer_valid}}).
(* +++ Passed 10000 tests (0 discards) *)
Time QuickChick ({{msg_is_transfer}} contract_addr {{post_transfer_safe}}).
(* +++ Passed 10000 tests (0 discards) *)
Time QuickChick ({{msg_is_transfer_from}} contract_addr {{post_transfer_from_update_correct}}).
(* +++ Passed 10000 tests (0 discards) *)
Time QuickChick ({{msg_is_transfer_from}} contract_addr {{transfer_from_valid}}).
(* +++ Passed 10000 tests (0 discards) *)
Time QuickChick ({{msg_is_transfer_from}} contract_addr {{post_transfer_from_safe}}).
(* +++ Passed 10000 tests (0 discards) *)
Time QuickChick ({{msg_is_approve}} contract_addr {{post_approve_update_correct}}).
(* +++ Passed 10000 tests (0 discards) *)
Time QuickChick ({{msg_is_approve}} contract_addr {{approve_valid}}).
(* +++ Passed 10000 tests (0 discards) *)
Time QuickChick ({{msg_is_approve}} contract_addr {{post_approve_safe}}).
(* +++ Passed 10000 tests (0 discards) *)
Time QuickChick ({{contract_balance_lower_bound}}).
(* +++ Passed 10000 tests (0 discards) *)
Time QuickChick ({{contract_balance_lower_bound'}}).
(* +++ Passed 10000 tests (0 discards) *)
Time QuickChick (partially_funded_cb ~~> is_fully_refunded).
(* Success - found witness satisfying the predicate!
+++ Failed (as expected) after 140 tests and 0 shrinks. (0 discards) *)
Time QuickChick ({{can_always_fully_refund}}).
(* +++ Passed 10000 tests (0 discards) *)
Time QuickChick (token_cb ~~> is_finalized).
(* Success - found witness satisfying the predicate!
+++ Failed (as expected) after 6 tests and 0 shrinks. (0 discards) *)
Time QuickChick final_is_final.
(* +++ Passed 10000 tests (4310 discards) *)
Time QuickChick can_only_finalize_once.
(* +++ Passed 10000 tests (0 discards) *)
Time QuickChick final_implies_total_supply_in_range.
(* +++ Passed 10000 tests (4281 discards) *)
Time QuickChick final_implies_total_supply_constant.
(* +++ Passed 10000 tests (4223 discards)) *)
Time QuickChick final_implies_contract_balance_is_zero.
(* +++ Passed 10000 tests (4153 discards) *)
Time QuickChick ({{total_supply_bounds}}).
(* +++ Passed 10000 tests (0 discards) *)
Time QuickChick ({{total_supply_eq_sum_balances}}).
(* +++ Passed 10000 tests (0 discards) *)
Time QuickChick ({{paid_tokens_modulo_exchange_rate}}).
(* +++ Passed 10000 tests (0 discards) *)
End BATFixed.
Module BATAltFix.
Import BATAltFixTests.
Import TestInfo.
Import MG TN.
Import BATTestCommon.
Time QuickChick (
{{fun state msg => negb (msg_is_create_tokens state msg)}}
contract_addr
{{amount_is_zero}}
).
(* +++ Passed 10000 tests (0 discards) *)
Time QuickChick (
{{msg_is_create_tokens}}
contract_addr
{{amount_is_positive}}
).
(* +++ Passed 10000 tests (0 discards) *)
Time QuickChick (
{{msg_is_eip_msg ||| msg_is_create_tokens}}
contract_addr
{{produces_no_actions}}
).
(* +++ Passed 10000 tests (0 discards) *)
Time QuickChick (
{{msg_is_refund ||| msg_is_finalize}}
contract_addr
{{produces_one_action}}
).
(* +++ Passed 10000 tests (0 discards) *)
Time QuickChick (
{{fun state msg => true}}
contract_addr
{{constants_unchanged}}
).
(* +++ Passed 10000 tests (0 discards) *)
Time QuickChick ({{msg_is_create_tokens}} contract_addr {{post_create_tokens_update_correct}}).
(* +++ Passed 10000 tests (0 discards) *)
Time QuickChick ({{msg_is_create_tokens}} contract_addr {{create_tokens_valid}}).
(* +++ Passed 10000 tests (0 discards) *)
Time QuickChick ({{msg_is_create_tokens}} contract_addr {{post_create_tokens_safe}}).
(* +++ Passed 10000 tests (0 discards) *)
Time QuickChick ({{msg_is_finalize}} contract_addr {{post_finalize_update_correct}}).
(* +++ Passed 10000 tests (0 discards) *)
Time QuickChick ({{msg_is_finalize}} contract_addr {{finalize_valid}}).
(* +++ Passed 10000 tests (0 discards) *)
Time QuickChick ({{msg_is_finalize}} contract_addr {{post_finalize_safe}}).
(* +++ Passed 10000 tests (0 discards) *)
Time QuickChick ({{msg_is_refund}} contract_addr {{post_refund_update_correct}}).
(* +++ Passed 10000 tests (0 discards) *)
Time QuickChick ({{msg_is_refund}} contract_addr {{refund_valid}}).
(* +++ Passed 10000 tests (0 discards) *)
Time QuickChick ({{msg_is_refund}} contract_addr {{post_refund_safe}}).
(* +++ Passed 10000 tests (0 discards) *)
Time QuickChick ({{msg_is_transfer}} contract_addr {{post_transfer_update_correct}}).
(* +++ Passed 10000 tests (0 discards) *)
Time QuickChick ({{msg_is_transfer}} contract_addr {{transfer_valid}}).
(* +++ Passed 10000 tests (0 discards) *)
Time QuickChick ({{msg_is_transfer}} contract_addr {{post_transfer_safe}}).
(* +++ Passed 10000 tests (0 discards) *)
Time QuickChick ({{msg_is_transfer_from}} contract_addr {{post_transfer_from_update_correct}}).
(* +++ Passed 10000 tests (0 discards) *)
Time QuickChick ({{msg_is_transfer_from}} contract_addr {{transfer_from_valid}}).
(* +++ Passed 10000 tests (0 discards) *)
Time QuickChick ({{msg_is_transfer_from}} contract_addr {{post_transfer_from_safe}}).
(* +++ Passed 10000 tests (0 discards) *)
Time QuickChick ({{msg_is_approve}} contract_addr {{post_approve_update_correct}}).
(* +++ Passed 10000 tests (0 discards) *)
Time QuickChick ({{msg_is_approve}} contract_addr {{approve_valid}}).
(* +++ Passed 10000 tests (0 discards) *)
Time QuickChick ({{msg_is_approve}} contract_addr {{post_approve_safe}}).
(* +++ Passed 10000 tests (0 discards) *)
Time QuickChick ({{contract_balance_lower_bound}}).
(* +++ Passed 10000 tests (0 discards) *)
Time QuickChick (partially_funded_cb ~~> is_fully_refunded).
(* Success - found witness satisfying the predicate!
+++ Failed (as expected) after 13 tests and 0 shrinks. (0 discards) *)
Time QuickChick ({{can_always_fully_refund}}).
(* +++ Passed 10000 tests (0 discards) *)
Time QuickChick (token_cb ~~> is_finalized).
(* Success - found witness satisfying the predicate!
+++ Failed (as expected) after 7 tests and 0 shrinks. (0 discards) *)
Time QuickChick final_is_final.
(* +++ Passed 10000 tests (4517 discards) *)
Time QuickChick can_only_finalize_once.
(* +++ Passed 10000 tests (0 discards) *)
Time QuickChick final_implies_total_supply_in_range.
(* +++ Passed 10000 tests (4529 discards) *)
Time QuickChick final_implies_total_supply_constant.
(* +++ Passed 10000 tests (4662 discards) *)
Time QuickChick final_implies_contract_balance_is_zero.
(* +++ Passed 10000 tests (4424 discards) *)
Time QuickChick ({{total_supply_bounds}}).
(* +++ Passed 10000 tests (0 discards) *)
Time QuickChick ({{total_supply_eq_sum_balances}}).
(* +++ Passed 10000 tests (0 discards) *)
Time QuickChick ({{paid_tokens_modulo_exchange_rate}}).
(* +++ Passed 10000 tests (0 discards) *)
End BATAltFix.