-
Notifications
You must be signed in to change notification settings - Fork 2
Expand file tree
/
Copy pathFunc.lean
More file actions
1896 lines (1543 loc) · 97.9 KB
/
Copy pathFunc.lean
File metadata and controls
1896 lines (1543 loc) · 97.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
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
668
669
670
671
672
673
674
675
676
677
678
679
680
681
682
683
684
685
686
687
688
689
690
691
692
693
694
695
696
697
698
699
700
701
702
703
704
705
706
707
708
709
710
711
712
713
714
715
716
717
718
719
720
721
722
723
724
725
726
727
728
729
730
731
732
733
734
735
736
737
738
739
740
741
742
743
744
745
746
747
748
749
750
751
752
753
754
755
756
757
758
759
760
761
762
763
764
765
766
767
768
769
770
771
772
773
774
775
776
777
778
779
780
781
782
783
784
785
786
787
788
789
790
791
792
793
794
795
796
797
798
799
800
801
802
803
804
805
806
807
808
809
810
811
812
813
814
815
816
817
818
819
820
821
822
823
824
825
826
827
828
829
830
831
832
833
834
835
836
837
838
839
840
841
842
843
844
845
846
847
848
849
850
851
852
853
854
855
856
857
858
859
860
861
862
863
864
865
866
867
868
869
870
871
872
873
874
875
876
877
878
879
880
881
882
883
884
885
886
887
888
889
890
891
892
893
894
895
896
897
898
899
900
901
902
903
904
905
906
907
908
909
910
911
912
913
914
915
916
917
918
919
920
921
922
923
924
925
926
927
928
929
930
931
932
933
934
935
936
937
938
939
940
941
942
943
944
945
946
947
948
949
950
951
952
953
954
955
956
957
958
959
960
961
962
963
964
965
966
967
968
969
970
971
972
973
974
975
976
977
978
979
980
981
982
983
984
985
986
987
988
989
990
991
992
993
994
995
996
997
998
999
1000
import EvmEquivalence.KEVM2Lean.Inj
import EvmEquivalence.KEVM2Lean.ScheduleOrdering
def _53fc758 : SortBool → Option SortBool
| true => some false
| _ => none
def _17ebc68 : SortBool → Option SortBool
| false => some true
| _ => none
axiom _AccountCellMap_ (x0 : SortAccountCellMap) (x1 : SortAccountCellMap) : Option SortAccountCellMap
def _7174452 : SortBool → SortBool → Option SortBool
| true, _Gen0 => some true
| _, _ => none
def _61fbef3 : SortBool → SortBool → Option SortBool
| false, _Gen0 => some false
| _, _ => none
def _991a329 : SortBool → SortBool → Option SortBool
| false, B => some B
| _, _ => none
def _5b9db8d : SortBool → SortBool → Option SortBool
| true, B => some B
| _, _ => none
def _cb4e96d : SortBool → Option SortInt
| false => some 0
| _ => none
def _4bd3e13 : SortBool → Option SortInt
| true => some 1
| _ => none
axiom «_==K_» (x0 : SortK) (x1 : SortK) : Option SortBool
def SCHEDULE_GhasshiftDefault : SortScheduleFlag → SortSchedule → Option SortBool
| SortScheduleFlag.Ghasshift_SCHEDULE_ScheduleFlag, SortSchedule.DEFAULT_EVM => some false
| _, _ => none
def SCHEDULE_GhasbasefeeDefault : SortScheduleFlag → SortSchedule → Option SortBool
| SortScheduleFlag.Ghasbasefee_SCHEDULE_ScheduleFlag, SortSchedule.DEFAULT_EVM => some false
| _, _ => none
def SCHEDULE_GhasaccesslistDefault : SortScheduleFlag → SortSchedule → Option SortBool
| SortScheduleFlag.Ghasaccesslist_SCHEDULE_ScheduleFlag, SortSchedule.DEFAULT_EVM => some false
| _, _ => none
def _432e4e6 : SortSet → SortInt → Option SortBool
| _Gen0, _Gen1 => some false
axiom «Set:in» (x0 : SortKItem) (x1 : SortSet) : Option SortBool
def SCHEDULE_GlogdataDefault : SortScheduleConst → SortSchedule → Option SortInt
| SortScheduleConst.Glogdata_SCHEDULE_ScheduleConst, SortSchedule.DEFAULT_EVM => some 8
| _, _ => none
axiom «_<<Int_» (x0 : SortInt) (x1 : SortInt) : Option SortInt
axiom «_>>Int_» (x0 : SortInt) (x1 : SortInt) : Option SortInt
def SCHEDULE_GwarmstoragedirtystoreDefault : SortScheduleConst → SortSchedule → Option SortInt
| SortScheduleConst.Gwarmstoragedirtystore_SCHEDULE_ScheduleConst, SortSchedule.DEFAULT_EVM => some 0
| _, _ => none
def SCHEDULE_GhasstaticcallDefault : SortScheduleFlag → SortSchedule → Option SortBool
| SortScheduleFlag.Ghasstaticcall_SCHEDULE_ScheduleFlag, SortSchedule.DEFAULT_EVM => some false
| _, _ => none
def SCHEDULE_GselfdestructDefault : SortScheduleConst → SortSchedule → Option SortInt
| SortScheduleConst.Gselfdestruct_SCHEDULE_ScheduleConst, SortSchedule.DEFAULT_EVM => some 0
| _, _ => none
def SCHEDULE_GcallstipendDefault : SortScheduleConst → SortSchedule → Option SortInt
| SortScheduleConst.Gcallstipend_SCHEDULE_ScheduleConst, SortSchedule.DEFAULT_EVM => some 2300
| _, _ => none
def SCHEDULE_GsloadIstanbul : SortScheduleConst → SortSchedule → Option SortInt
| SortScheduleConst.Gsload_SCHEDULE_ScheduleConst, SortSchedule.ISTANBUL_EVM => some 800
| _, _ => none
def SCHEDULE_GinitcodewordcostShanghai : SortScheduleConst → SortSchedule → Option SortInt
| SortScheduleConst.Ginitcodewordcost_SCHEDULE_ScheduleConst, SortSchedule.SHANGHAI_EVM => some 2
| _, _ => none
def SCHEDULE_GcallDefault : SortScheduleConst → SortSchedule → Option SortInt
| SortScheduleConst.Gcall_SCHEDULE_ScheduleConst, SortSchedule.DEFAULT_EVM => some 40
| _, _ => none
def SCHEDULE_GcoldsloadDefault : SortScheduleConst → SortSchedule → Option SortInt
| SortScheduleConst.Gcoldsload_SCHEDULE_ScheduleConst, SortSchedule.DEFAULT_EVM => some 0
| _, _ => none
def SCHEDULE_GsloadDefault : SortScheduleConst → SortSchedule → Option SortInt
| SortScheduleConst.Gsload_SCHEDULE_ScheduleConst, SortSchedule.DEFAULT_EVM => some 50
| _, _ => none
def SCHEDULE_GwarmstoragereadDefault : SortScheduleConst → SortSchedule → Option SortInt
| SortScheduleConst.Gwarmstorageread_SCHEDULE_ScheduleConst, SortSchedule.DEFAULT_EVM => some 0
| _, _ => none
def SCHEDULE_RbDefault : SortScheduleConst → SortSchedule → Option SortInt
| SortScheduleConst.Rb_SCHEDULE_ScheduleConst, SortSchedule.DEFAULT_EVM => some 5000000000000000000
| _, _ => none
def SCHEDULE_GzeroDefault : SortScheduleConst → SortSchedule → Option SortInt
| SortScheduleConst.Gzero_SCHEDULE_ScheduleConst, SortSchedule.DEFAULT_EVM => some 0
| _, _ => none
def SCHEDULE_GextcodecopyDefault : SortScheduleConst → SortSchedule → Option SortInt
| SortScheduleConst.Gextcodecopy_SCHEDULE_ScheduleConst, SortSchedule.DEFAULT_EVM => some 20
| _, _ => none
def SCHEDULE_GquaddivisorBerlin : SortScheduleConst → SortSchedule → Option SortInt
| SortScheduleConst.Gquaddivisor_SCHEDULE_ScheduleConst, SortSchedule.BERLIN_EVM => some 3
| _, _ => none
def SCHEDULE_GcopyDefault : SortScheduleConst → SortSchedule → Option SortInt
| SortScheduleConst.Gcopy_SCHEDULE_ScheduleConst, SortSchedule.DEFAULT_EVM => some 3
| _, _ => none
def SCHEDULE_GtxdatanonzeroDefault : SortScheduleConst → SortSchedule → Option SortInt
| SortScheduleConst.Gtxdatanonzero_SCHEDULE_ScheduleConst, SortSchedule.DEFAULT_EVM => some 68
| _, _ => none
def SCHEDULE_GcodedepositDefault : SortScheduleConst → SortSchedule → Option SortInt
| SortScheduleConst.Gcodedeposit_SCHEDULE_ScheduleConst, SortSchedule.DEFAULT_EVM => some 200
| _, _ => none
def SCHEDULE_maxCodeSizeDragon : SortScheduleConst → SortSchedule → Option SortInt
| SortScheduleConst.maxCodeSize_SCHEDULE_ScheduleConst, SortSchedule.SPURIOUS_DRAGON_EVM => some 24576
| _, _ => none
def SCHEDULE_GpointevalCancun : SortScheduleConst → SortSchedule → Option SortInt
| SortScheduleConst.Gpointeval_SCHEDULE_ScheduleConst, SortSchedule.CANCUN_EVM => some 50000
| _, _ => none
def SCHEDULE_GextcodesizeDefault : SortScheduleConst → SortSchedule → Option SortInt
| SortScheduleConst.Gextcodesize_SCHEDULE_ScheduleConst, SortSchedule.DEFAULT_EVM => some 20
| _, _ => none
def SCHEDULE_GblockhashDefault : SortScheduleConst → SortSchedule → Option SortInt
| SortScheduleConst.Gblockhash_SCHEDULE_ScheduleConst, SortSchedule.DEFAULT_EVM => some 20
| _, _ => none
def SCHEDULE_Gsha3Default : SortScheduleConst → SortSchedule → Option SortInt
| SortScheduleConst.Gsha3_SCHEDULE_ScheduleConst, SortSchedule.DEFAULT_EVM => some 30
| _, _ => none
def SCHEDULE_GselfdestructTangerine : SortScheduleConst → SortSchedule → Option SortInt
| SortScheduleConst.Gselfdestruct_SCHEDULE_ScheduleConst, SortSchedule.TANGERINE_WHISTLE_EVM => some 5000
| _, _ => none
def SCHEDULE_GecpaircoeffDefault : SortScheduleConst → SortSchedule → Option SortInt
| SortScheduleConst.Gecpaircoeff_SCHEDULE_ScheduleConst, SortSchedule.DEFAULT_EVM => some 80000
| _, _ => none
def SCHEDULE_RbMerge : SortScheduleConst → SortSchedule → Option SortInt
| SortScheduleConst.Rb_SCHEDULE_ScheduleConst, SortSchedule.MERGE_EVM => some 0
| _, _ => none
def SCHEDULE_GcoldsloadBerlin : SortScheduleConst → SortSchedule → Option SortInt
| SortScheduleConst.Gcoldsload_SCHEDULE_ScheduleConst, SortSchedule.BERLIN_EVM => some 2100
| _, _ => none
def SCHEDULE_GjumpdestDefault : SortScheduleConst → SortSchedule → Option SortInt
| SortScheduleConst.Gjumpdest_SCHEDULE_ScheduleConst, SortSchedule.DEFAULT_EVM => some 1
| _, _ => none
def SCHEDULE_GbalanceDefault : SortScheduleConst → SortSchedule → Option SortInt
| SortScheduleConst.Gbalance_SCHEDULE_ScheduleConst, SortSchedule.DEFAULT_EVM => some 20
| _, _ => none
def SCHEDULE_RsstoreclearDefault : SortScheduleConst → SortSchedule → Option SortInt
| SortScheduleConst.Rsstoreclear_SCHEDULE_ScheduleConst, SortSchedule.DEFAULT_EVM => some 15000
| _, _ => none
def SCHEDULE_GsstoreresetDefault : SortScheduleConst → SortSchedule → Option SortInt
| SortScheduleConst.Gsstorereset_SCHEDULE_ScheduleConst, SortSchedule.DEFAULT_EVM => some 5000
| _, _ => none
def SCHEDULE_GsloadTangerine : SortScheduleConst → SortSchedule → Option SortInt
| SortScheduleConst.Gsload_SCHEDULE_ScheduleConst, SortSchedule.TANGERINE_WHISTLE_EVM => some 200
| _, _ => none
def SCHEDULE_GbaseDefault : SortScheduleConst → SortSchedule → Option SortInt
| SortScheduleConst.Gbase_SCHEDULE_ScheduleConst, SortSchedule.DEFAULT_EVM => some 2
| _, _ => none
def SCHEDULE_GlogDefault : SortScheduleConst → SortSchedule → Option SortInt
| SortScheduleConst.Glog_SCHEDULE_ScheduleConst, SortSchedule.DEFAULT_EVM => some 375
| _, _ => none
def SCHEDULE_GinitcodewordcostDefault : SortScheduleConst → SortSchedule → Option SortInt
| SortScheduleConst.Ginitcodewordcost_SCHEDULE_ScheduleConst, SortSchedule.DEFAULT_EVM => some 0
| _, _ => none
def SCHEDULE_RselfdestructLondon : SortScheduleConst → SortSchedule → Option SortInt
| SortScheduleConst.Rselfdestruct_SCHEDULE_ScheduleConst, SortSchedule.LONDON_EVM => some 0
| _, _ => none
def SCHEDULE_GmemoryDefault : SortScheduleConst → SortSchedule → Option SortInt
| SortScheduleConst.Gmemory_SCHEDULE_ScheduleConst, SortSchedule.DEFAULT_EVM => some 3
| _, _ => none
def SCHEDULE_GecpairconstDefault : SortScheduleConst → SortSchedule → Option SortInt
| SortScheduleConst.Gecpairconst_SCHEDULE_ScheduleConst, SortSchedule.DEFAULT_EVM => some 100000
| _, _ => none
def SCHEDULE_GverylowDefault : SortScheduleConst → SortSchedule → Option SortInt
| SortScheduleConst.Gverylow_SCHEDULE_ScheduleConst, SortSchedule.DEFAULT_EVM => some 3
| _, _ => none
def SCHEDULE_GhighDefault : SortScheduleConst → SortSchedule → Option SortInt
| SortScheduleConst.Ghigh_SCHEDULE_ScheduleConst, SortSchedule.DEFAULT_EVM => some 10
| _, _ => none
def SCHEDULE_GcallvalueDefault : SortScheduleConst → SortSchedule → Option SortInt
| SortScheduleConst.Gcallvalue_SCHEDULE_ScheduleConst, SortSchedule.DEFAULT_EVM => some 9000
| _, _ => none
def SCHEDULE_GwarmstoragereadBerlin : SortScheduleConst → SortSchedule → Option SortInt
| SortScheduleConst.Gwarmstorageread_SCHEDULE_ScheduleConst, SortSchedule.BERLIN_EVM => some 100
| _, _ => none
def SCHEDULE_GextcodecopyTangerine : SortScheduleConst → SortSchedule → Option SortInt
| SortScheduleConst.Gextcodecopy_SCHEDULE_ScheduleConst, SortSchedule.TANGERINE_WHISTLE_EVM => some 700
| _, _ => none
def SCHEDULE_GtxdatazeroDefault : SortScheduleConst → SortSchedule → Option SortInt
| SortScheduleConst.Gtxdatazero_SCHEDULE_ScheduleConst, SortSchedule.DEFAULT_EVM => some 4
| _, _ => none
def SCHEDULE_maxInitCodeSizeDefault : SortScheduleConst → SortSchedule → Option SortInt
| SortScheduleConst.maxInitCodeSize_SCHEDULE_ScheduleConst, SortSchedule.DEFAULT_EVM => some 0
| _, _ => none
def SCHEDULE_RselfdestructDefault : SortScheduleConst → SortSchedule → Option SortInt
| SortScheduleConst.Rselfdestruct_SCHEDULE_ScheduleConst, SortSchedule.DEFAULT_EVM => some 24000
| _, _ => none
def SCHEDULE_GtxcreateDefault : SortScheduleConst → SortSchedule → Option SortInt
| SortScheduleConst.Gtxcreate_SCHEDULE_ScheduleConst, SortSchedule.DEFAULT_EVM => some 53000
| _, _ => none
def SCHEDULE_GecpaircoeffIstanbul : SortScheduleConst → SortSchedule → Option SortInt
| SortScheduleConst.Gecpaircoeff_SCHEDULE_ScheduleConst, SortSchedule.ISTANBUL_EVM => some 34000
| _, _ => none
def SCHEDULE_GextcodesizeTangerine : SortScheduleConst → SortSchedule → Option SortInt
| SortScheduleConst.Gextcodesize_SCHEDULE_ScheduleConst, SortSchedule.TANGERINE_WHISTLE_EVM => some 700
| _, _ => none
def SCHEDULE_GcallTangerine : SortScheduleConst → SortSchedule → Option SortInt
| SortScheduleConst.Gcall_SCHEDULE_ScheduleConst, SortSchedule.TANGERINE_WHISTLE_EVM => some 700
| _, _ => none
def SCHEDULE_GcreateDefault : SortScheduleConst → SortSchedule → Option SortInt
| SortScheduleConst.Gcreate_SCHEDULE_ScheduleConst, SortSchedule.DEFAULT_EVM => some 32000
| _, _ => none
def SCHEDULE_GaccessliststoragekeyDefault : SortScheduleConst → SortSchedule → Option SortInt
| SortScheduleConst.Gaccessliststoragekey_SCHEDULE_ScheduleConst, SortSchedule.DEFAULT_EVM => some 0
| _, _ => none
def SCHEDULE_GbalanceIstanbul : SortScheduleConst → SortSchedule → Option SortInt
| SortScheduleConst.Gbalance_SCHEDULE_ScheduleConst, SortSchedule.ISTANBUL_EVM => some 700
| _, _ => none
def SCHEDULE_GecaddDefault : SortScheduleConst → SortSchedule → Option SortInt
| SortScheduleConst.Gecadd_SCHEDULE_ScheduleConst, SortSchedule.DEFAULT_EVM => some 500
| _, _ => none
def SCHEDULE_GaccesslistaddressBerlin : SortScheduleConst → SortSchedule → Option SortInt
| SortScheduleConst.Gaccesslistaddress_SCHEDULE_ScheduleConst, SortSchedule.BERLIN_EVM => some 2400
| _, _ => none
def SCHEDULE_GlogtopicDefault : SortScheduleConst → SortSchedule → Option SortInt
| SortScheduleConst.Glogtopic_SCHEDULE_ScheduleConst, SortSchedule.DEFAULT_EVM => some 375
| _, _ => none
def SCHEDULE_Gsha3wordDefault : SortScheduleConst → SortSchedule → Option SortInt
| SortScheduleConst.Gsha3word_SCHEDULE_ScheduleConst, SortSchedule.DEFAULT_EVM => some 6
| _, _ => none
def SCHEDULE_GquadcoeffDefault : SortScheduleConst → SortSchedule → Option SortInt
| SortScheduleConst.Gquadcoeff_SCHEDULE_ScheduleConst, SortSchedule.DEFAULT_EVM => some 512
| _, _ => none
def SCHEDULE_GaccessliststoragekeyBerlin : SortScheduleConst → SortSchedule → Option SortInt
| SortScheduleConst.Gaccessliststoragekey_SCHEDULE_ScheduleConst, SortSchedule.BERLIN_EVM => some 1900
| _, _ => none
def SCHEDULE_GnewaccountDefault : SortScheduleConst → SortSchedule → Option SortInt
| SortScheduleConst.Gnewaccount_SCHEDULE_ScheduleConst, SortSchedule.DEFAULT_EVM => some 25000
| _, _ => none
def SCHEDULE_GbalanceTangerine : SortScheduleConst → SortSchedule → Option SortInt
| SortScheduleConst.Gbalance_SCHEDULE_ScheduleConst, SortSchedule.TANGERINE_WHISTLE_EVM => some 400
| _, _ => none
def SCHEDULE_GaccesslistaddressDefault : SortScheduleConst → SortSchedule → Option SortInt
| SortScheduleConst.Gaccesslistaddress_SCHEDULE_ScheduleConst, SortSchedule.DEFAULT_EVM => some 0
| _, _ => none
def SCHEDULE_GcoldaccountaccessDefault : SortScheduleConst → SortSchedule → Option SortInt
| SortScheduleConst.Gcoldaccountaccess_SCHEDULE_ScheduleConst, SortSchedule.DEFAULT_EVM => some 0
| _, _ => none
def SCHEDULE_GexpbyteDefault : SortScheduleConst → SortSchedule → Option SortInt
| SortScheduleConst.Gexpbyte_SCHEDULE_ScheduleConst, SortSchedule.DEFAULT_EVM => some 10
| _, _ => none
def SCHEDULE_maxCodeSizeDefault : SortScheduleConst → SortSchedule → Option SortInt
| SortScheduleConst.maxCodeSize_SCHEDULE_ScheduleConst, SortSchedule.DEFAULT_EVM => some 4294967295
| _, _ => none
def SCHEDULE_RmaxquotientLondon : SortScheduleConst → SortSchedule → Option SortInt
| SortScheduleConst.Rmaxquotient_SCHEDULE_ScheduleConst, SortSchedule.LONDON_EVM => some 5
| _, _ => none
def SCHEDULE_GecpairconstIstanbul : SortScheduleConst → SortSchedule → Option SortInt
| SortScheduleConst.Gecpairconst_SCHEDULE_ScheduleConst, SortSchedule.ISTANBUL_EVM => some 45000
| _, _ => none
def SCHEDULE_GmidDefault : SortScheduleConst → SortSchedule → Option SortInt
| SortScheduleConst.Gmid_SCHEDULE_ScheduleConst, SortSchedule.DEFAULT_EVM => some 8
| _, _ => none
def SCHEDULE_GpointevalDefault : SortScheduleConst → SortSchedule → Option SortInt
| SortScheduleConst.Gpointeval_SCHEDULE_ScheduleConst, SortSchedule.DEFAULT_EVM => some 0
| _, _ => none
def SCHEDULE_GquaddivisorDefault : SortScheduleConst → SortSchedule → Option SortInt
| SortScheduleConst.Gquaddivisor_SCHEDULE_ScheduleConst, SortSchedule.DEFAULT_EVM => some 20
| _, _ => none
def SCHEDULE_GtxdatanonzeroIstanbul : SortScheduleConst → SortSchedule → Option SortInt
| SortScheduleConst.Gtxdatanonzero_SCHEDULE_ScheduleConst, SortSchedule.ISTANBUL_EVM => some 16
| _, _ => none
def SCHEDULE_GecmulDefault : SortScheduleConst → SortSchedule → Option SortInt
| SortScheduleConst.Gecmul_SCHEDULE_ScheduleConst, SortSchedule.DEFAULT_EVM => some 40000
| _, _ => none
def SCHEDULE_GtransactionDefault : SortScheduleConst → SortSchedule → Option SortInt
| SortScheduleConst.Gtransaction_SCHEDULE_ScheduleConst, SortSchedule.DEFAULT_EVM => some 21000
| _, _ => none
def SCHEDULE_GfroundDefault : SortScheduleConst → SortSchedule → Option SortInt
| SortScheduleConst.Gfround_SCHEDULE_ScheduleConst, SortSchedule.DEFAULT_EVM => some 1
| _, _ => none
def SCHEDULE_GexpDefault : SortScheduleConst → SortSchedule → Option SortInt
| SortScheduleConst.Gexp_SCHEDULE_ScheduleConst, SortSchedule.DEFAULT_EVM => some 10
| _, _ => none
def SCHEDULE_RmaxquotientDefault : SortScheduleConst → SortSchedule → Option SortInt
| SortScheduleConst.Rmaxquotient_SCHEDULE_ScheduleConst, SortSchedule.DEFAULT_EVM => some 2
| _, _ => none
def SCHEDULE_GecaddIstanbul : SortScheduleConst → SortSchedule → Option SortInt
| SortScheduleConst.Gecadd_SCHEDULE_ScheduleConst, SortSchedule.ISTANBUL_EVM => some 150
| _, _ => none
def SCHEDULE_GcoldaccountaccessBerlin : SortScheduleConst → SortSchedule → Option SortInt
| SortScheduleConst.Gcoldaccountaccess_SCHEDULE_ScheduleConst, SortSchedule.BERLIN_EVM => some 2600
| _, _ => none
def SCHEDULE_GsstoresetDefault : SortScheduleConst → SortSchedule → Option SortInt
| SortScheduleConst.Gsstoreset_SCHEDULE_ScheduleConst, SortSchedule.DEFAULT_EVM => some 20000
| _, _ => none
def SCHEDULE_GlowDefault : SortScheduleConst → SortSchedule → Option SortInt
| SortScheduleConst.Glow_SCHEDULE_ScheduleConst, SortSchedule.DEFAULT_EVM => some 5
| _, _ => none
def SCHEDULE_GecmulIstanbul : SortScheduleConst → SortSchedule → Option SortInt
| SortScheduleConst.Gecmul_SCHEDULE_ScheduleConst, SortSchedule.ISTANBUL_EVM => some 6000
| _, _ => none
def SCHEDULE_GexpbyteDragon : SortScheduleConst → SortSchedule → Option SortInt
| SortScheduleConst.Gexpbyte_SCHEDULE_ScheduleConst, SortSchedule.SPURIOUS_DRAGON_EVM => some 50
| _, _ => none
def SCHEDULE_GtxcreateFrontier : SortScheduleConst → SortSchedule → Option SortInt
| SortScheduleConst.Gtxcreate_SCHEDULE_ScheduleConst, SortSchedule.FRONTIER_EVM => some 21000
| _, _ => none
def _75897fa : SortWordStack → SortInt → Option SortInt
| SortWordStack.«.WordStack_EVM-TYPES_WordStack», SIZE => some SIZE
| _, _ => none
def SCHEDULE_GhasreturndataDefault : SortScheduleFlag → SortSchedule → Option SortBool
| SortScheduleFlag.Ghasreturndata_SCHEDULE_ScheduleFlag, SortSchedule.DEFAULT_EVM => some false
| _, _ => none
axiom «Set:difference» (x0 : SortSet) (x1 : SortSet) : Option SortSet
axiom _Set_ (x0 : SortSet) (x1 : SortSet) : Option SortSet
def SCHEDULE_GhassstorestipendDefault : SortScheduleFlag → SortSchedule → Option SortBool
| SortScheduleFlag.Ghassstorestipend_SCHEDULE_ScheduleFlag, SortSchedule.DEFAULT_EVM => some false
| _, _ => none
def SCHEDULE_GhasbasefeeLondon : SortScheduleFlag → SortSchedule → Option SortBool
| SortScheduleFlag.Ghasbasefee_SCHEDULE_ScheduleFlag, SortSchedule.LONDON_EVM => some true
| _, _ => none
def SCHEDULE_GhastransientDefault : SortScheduleFlag → SortSchedule → Option SortBool
| SortScheduleFlag.Ghastransient_SCHEDULE_ScheduleFlag, SortSchedule.DEFAULT_EVM => some false
| _, _ => none
def SCHEDULE_GselfdestructnewaccountTangerine : SortScheduleFlag → SortSchedule → Option SortBool
| SortScheduleFlag.Gselfdestructnewaccount_SCHEDULE_ScheduleFlag, SortSchedule.TANGERINE_WHISTLE_EVM => some true
| _, _ => none
def SCHEDULE_GhasbeaconrootDefault : SortScheduleFlag → SortSchedule → Option SortBool
| SortScheduleFlag.Ghasbeaconroot_SCHEDULE_ScheduleFlag, SortSchedule.DEFAULT_EVM => some false
| _, _ => none
def SCHEDULE_hasaccesslistBerlin : SortScheduleFlag → SortSchedule → Option SortBool
| SortScheduleFlag.Ghasaccesslist_SCHEDULE_ScheduleFlag, SortSchedule.BERLIN_EVM => some true
| _, _ => none
def SCHEDULE_GhasmaxinitcodesizeShanghai : SortScheduleFlag → SortSchedule → Option SortBool
| SortScheduleFlag.Ghasmaxinitcodesize_SCHEDULE_ScheduleFlag, SortSchedule.SHANGHAI_EVM => some true
| _, _ => none
def SCHEDULE_GhasrevertDefault : SortScheduleFlag → SortSchedule → Option SortBool
| SortScheduleFlag.Ghasrevert_SCHEDULE_ScheduleFlag, SortSchedule.DEFAULT_EVM => some false
| _, _ => none
def SCHEDULE_GstaticcalldepthDefault : SortScheduleFlag → SortSchedule → Option SortBool
| SortScheduleFlag.Gstaticcalldepth_SCHEDULE_ScheduleFlag, SortSchedule.DEFAULT_EVM => some true
| _, _ => none
def SCHEDULE_GhasdirtysstoreDefault : SortScheduleFlag → SortSchedule → Option SortBool
| SortScheduleFlag.Ghasdirtysstore_SCHEDULE_ScheduleFlag, SortSchedule.DEFAULT_EVM => some false
| _, _ => none
def SCHEDULE_GhasblobhashCancun : SortScheduleFlag → SortSchedule → Option SortBool
| SortScheduleFlag.Ghasblobhash_SCHEDULE_ScheduleFlag, SortSchedule.CANCUN_EVM => some true
| _, _ => none
def SCHEDULE_Ghascreate2Default : SortScheduleFlag → SortSchedule → Option SortBool
| SortScheduleFlag.Ghascreate2_SCHEDULE_ScheduleFlag, SortSchedule.DEFAULT_EVM => some false
| _, _ => none
def SCHEDULE_GhasblobhashDefault : SortScheduleFlag → SortSchedule → Option SortBool
| SortScheduleFlag.Ghasblobhash_SCHEDULE_ScheduleFlag, SortSchedule.DEFAULT_EVM => some false
| _, _ => none
def SCHEDULE_GhasselfbalanceIstanbul : SortScheduleFlag → SortSchedule → Option SortBool
| SortScheduleFlag.Ghasselfbalance_SCHEDULE_ScheduleFlag, SortSchedule.ISTANBUL_EVM => some true
| _, _ => none
def SCHEDULE_GhasrejectedfirstbyteLondon : SortScheduleFlag → SortSchedule → Option SortBool
| SortScheduleFlag.Ghasrejectedfirstbyte_SCHEDULE_ScheduleFlag, SortSchedule.LONDON_EVM => some true
| _, _ => none
def SCHEDULE_GhasrevertByzantium : SortScheduleFlag → SortSchedule → Option SortBool
| SortScheduleFlag.Ghasrevert_SCHEDULE_ScheduleFlag, SortSchedule.BYZANTIUM_EVM => some true
| _, _ => none
def SCHEDULE_GhasblobbasefeeCancun : SortScheduleFlag → SortSchedule → Option SortBool
| SortScheduleFlag.Ghasblobbasefee_SCHEDULE_ScheduleFlag, SortSchedule.CANCUN_EVM => some true
| _, _ => none
def SCHEDULE_GhasshiftConstantinople : SortScheduleFlag → SortSchedule → Option SortBool
| SortScheduleFlag.Ghasshift_SCHEDULE_ScheduleFlag, SortSchedule.CONSTANTINOPLE_EVM => some true
| _, _ => none
def SCHEDULE_GemptyisnonexistentDragon : SortScheduleFlag → SortSchedule → Option SortBool
| SortScheduleFlag.Gemptyisnonexistent_SCHEDULE_ScheduleFlag, SortSchedule.SPURIOUS_DRAGON_EVM => some true
| _, _ => none
def SCHEDULE_GhasrejectedfirstbyteDefault : SortScheduleFlag → SortSchedule → Option SortBool
| SortScheduleFlag.Ghasrejectedfirstbyte_SCHEDULE_ScheduleFlag, SortSchedule.DEFAULT_EVM => some false
| _, _ => none
def SCHEDULE_GhasmcopyDefault : SortScheduleFlag → SortSchedule → Option SortBool
| SortScheduleFlag.Ghasmcopy_SCHEDULE_ScheduleFlag, SortSchedule.DEFAULT_EVM => some false
| _, _ => none
def SCHEDULE_GhaspushzeroShanghai : SortScheduleFlag → SortSchedule → Option SortBool
| SortScheduleFlag.Ghaspushzero_SCHEDULE_ScheduleFlag, SortSchedule.SHANGHAI_EVM => some true
| _, _ => none
def SCHEDULE_GzerovaluenewaccountgasDragon : SortScheduleFlag → SortSchedule → Option SortBool
| SortScheduleFlag.Gzerovaluenewaccountgas_SCHEDULE_ScheduleFlag, SortSchedule.SPURIOUS_DRAGON_EVM => some false
| _, _ => none
def SCHEDULE_GhasdirtysstorePetersburg : SortScheduleFlag → SortSchedule → Option SortBool
| SortScheduleFlag.Ghasdirtysstore_SCHEDULE_ScheduleFlag, SortSchedule.PETERSBURG_EVM => some false
| _, _ => none
def SCHEDULE_Ghaseip6780Default : SortScheduleFlag → SortSchedule → Option SortBool
| SortScheduleFlag.Ghaseip6780_SCHEDULE_ScheduleFlag, SortSchedule.DEFAULT_EVM => some false
| _, _ => none
def SCHEDULE_GhasdirtysstoreConstantinople : SortScheduleFlag → SortSchedule → Option SortBool
| SortScheduleFlag.Ghasdirtysstore_SCHEDULE_ScheduleFlag, SortSchedule.CONSTANTINOPLE_EVM => some true
| _, _ => none
def SCHEDULE_GhasstaticcallByzantium : SortScheduleFlag → SortSchedule → Option SortBool
| SortScheduleFlag.Ghasstaticcall_SCHEDULE_ScheduleFlag, SortSchedule.BYZANTIUM_EVM => some true
| _, _ => none
def SCHEDULE_GhaswithdrawalsShanghai : SortScheduleFlag → SortSchedule → Option SortBool
| SortScheduleFlag.Ghaswithdrawals_SCHEDULE_ScheduleFlag, SortSchedule.SHANGHAI_EVM => some true
| _, _ => none
def SCHEDULE_GhaswarmcoinbaseDefault : SortScheduleFlag → SortSchedule → Option SortBool
| SortScheduleFlag.Ghaswarmcoinbase_SCHEDULE_ScheduleFlag, SortSchedule.DEFAULT_EVM => some false
| _, _ => none
def SCHEDULE_GhasdirtysstoreIstanbul : SortScheduleFlag → SortSchedule → Option SortBool
| SortScheduleFlag.Ghasdirtysstore_SCHEDULE_ScheduleFlag, SortSchedule.ISTANBUL_EVM => some true
| _, _ => none
def SCHEDULE_GzerovaluenewaccountgasDefault : SortScheduleFlag → SortSchedule → Option SortBool
| SortScheduleFlag.Gzerovaluenewaccountgas_SCHEDULE_ScheduleFlag, SortSchedule.DEFAULT_EVM => some true
| _, _ => none
def SCHEDULE_GemptyisnonexistentDefault : SortScheduleFlag → SortSchedule → Option SortBool
| SortScheduleFlag.Gemptyisnonexistent_SCHEDULE_ScheduleFlag, SortSchedule.DEFAULT_EVM => some false
| _, _ => none
def SCHEDULE_GhasselfbalanceDefault : SortScheduleFlag → SortSchedule → Option SortBool
| SortScheduleFlag.Ghasselfbalance_SCHEDULE_ScheduleFlag, SortSchedule.DEFAULT_EVM => some false
| _, _ => none
def SCHEDULE_Ghaseip6780Cancun : SortScheduleFlag → SortSchedule → Option SortBool
| SortScheduleFlag.Ghaseip6780_SCHEDULE_ScheduleFlag, SortSchedule.CANCUN_EVM => some true
| _, _ => none
def SCHEDULE_GhasprevrandaoMerge : SortScheduleFlag → SortSchedule → Option SortBool
| SortScheduleFlag.Ghasprevrandao_SCHEDULE_ScheduleFlag, SortSchedule.MERGE_EVM => some true
| _, _ => none
def SCHEDULE_GhasprevrandaoDefault : SortScheduleFlag → SortSchedule → Option SortBool
| SortScheduleFlag.Ghasprevrandao_SCHEDULE_ScheduleFlag, SortSchedule.DEFAULT_EVM => some false
| _, _ => none
def SCHEDULE_GstaticcalldepthTangerine : SortScheduleFlag → SortSchedule → Option SortBool
| SortScheduleFlag.Gstaticcalldepth_SCHEDULE_ScheduleFlag, SortSchedule.TANGERINE_WHISTLE_EVM => some false
| _, _ => none
def SCHEDULE_GhaswithdrawalsDefault : SortScheduleFlag → SortSchedule → Option SortBool
| SortScheduleFlag.Ghaswithdrawals_SCHEDULE_ScheduleFlag, SortSchedule.DEFAULT_EVM => some false
| _, _ => none
def SCHEDULE_GhaspushzeroDefault : SortScheduleFlag → SortSchedule → Option SortBool
| SortScheduleFlag.Ghaspushzero_SCHEDULE_ScheduleFlag, SortSchedule.DEFAULT_EVM => some false
| _, _ => none
def SCHEDULE_GhasblobbasefeeDefault : SortScheduleFlag → SortSchedule → Option SortBool
| SortScheduleFlag.Ghasblobbasefee_SCHEDULE_ScheduleFlag, SortSchedule.DEFAULT_EVM => some false
| _, _ => none
def SCHEDULE_GhasbeaconrootCancun : SortScheduleFlag → SortSchedule → Option SortBool
| SortScheduleFlag.Ghasbeaconroot_SCHEDULE_ScheduleFlag, SortSchedule.CANCUN_EVM => some true
| _, _ => none
def SCHEDULE_Ghascreate2Constantinople : SortScheduleFlag → SortSchedule → Option SortBool
| SortScheduleFlag.Ghascreate2_SCHEDULE_ScheduleFlag, SortSchedule.CONSTANTINOPLE_EVM => some true
| _, _ => none
def SCHEDULE_GhaschainidIstanbul : SortScheduleFlag → SortSchedule → Option SortBool
| SortScheduleFlag.Ghaschainid_SCHEDULE_ScheduleFlag, SortSchedule.ISTANBUL_EVM => some true
| _, _ => none
def SCHEDULE_GhaswarmcoinbaseShanghai : SortScheduleFlag → SortSchedule → Option SortBool
| SortScheduleFlag.Ghaswarmcoinbase_SCHEDULE_ScheduleFlag, SortSchedule.SHANGHAI_EVM => some true
| _, _ => none
def SCHEDULE_GhasmaxinitcodesizeDefault : SortScheduleFlag → SortSchedule → Option SortBool
| SortScheduleFlag.Ghasmaxinitcodesize_SCHEDULE_ScheduleFlag, SortSchedule.DEFAULT_EVM => some false
| _, _ => none
def SCHEDULE_GhasmcopyCancun : SortScheduleFlag → SortSchedule → Option SortBool
| SortScheduleFlag.Ghasmcopy_SCHEDULE_ScheduleFlag, SortSchedule.CANCUN_EVM => some true
| _, _ => none
def SCHEDULE_GselfdestructnewaccountDefault : SortScheduleFlag → SortSchedule → Option SortBool
| SortScheduleFlag.Gselfdestructnewaccount_SCHEDULE_ScheduleFlag, SortSchedule.DEFAULT_EVM => some false
| _, _ => none
def SCHEDULE_GhassstorestipendIstanbul : SortScheduleFlag → SortSchedule → Option SortBool
| SortScheduleFlag.Ghassstorestipend_SCHEDULE_ScheduleFlag, SortSchedule.ISTANBUL_EVM => some true
| _, _ => none
def SCHEDULE_GhasreturndataByzantium : SortScheduleFlag → SortSchedule → Option SortBool
| SortScheduleFlag.Ghasreturndata_SCHEDULE_ScheduleFlag, SortSchedule.BYZANTIUM_EVM => some true
| _, _ => none
def SCHEDULE_GhasextcodehashConstantinople : SortScheduleFlag → SortSchedule → Option SortBool
| SortScheduleFlag.Ghasextcodehash_SCHEDULE_ScheduleFlag, SortSchedule.CONSTANTINOPLE_EVM => some true
| _, _ => none
def SCHEDULE_GhastransientCancun : SortScheduleFlag → SortSchedule → Option SortBool
| SortScheduleFlag.Ghastransient_SCHEDULE_ScheduleFlag, SortSchedule.CANCUN_EVM => some true
| _, _ => none
def SCHEDULE_GhasextcodehashDefault : SortScheduleFlag → SortSchedule → Option SortBool
| SortScheduleFlag.Ghasextcodehash_SCHEDULE_ScheduleFlag, SortSchedule.DEFAULT_EVM => some false
| _, _ => none
def SCHEDULE_GhaschainidDefault : SortScheduleFlag → SortSchedule → Option SortBool
| SortScheduleFlag.Ghaschainid_SCHEDULE_ScheduleFlag, SortSchedule.DEFAULT_EVM => some false
| _, _ => none
axiom «_&Int_» (x0 : SortInt) (x1 : SortInt) : Option SortInt
def _50d266e : SortInt → SortInt → Option SortInt
| I1, 1 => some I1
| _, _ => none
def _5321d80 : SortInt → SortInt → Option SortInt
| _I1, 0 => some 0
| _, _ => none
axiom _WithdrawalCellMap_ (x0 : SortWithdrawalCellMap) (x1 : SortWithdrawalCellMap) : Option SortWithdrawalCellMap
axiom «Map:update» (x0 : SortMap) (x1 : SortKItem) (x2 : SortKItem) : Option SortMap
def _6bb6445 : SortInt → SortInt → Option SortInt
| _Gen0, _Gen1 => some 0
def _9aad883 : SortInt → SortInt → Option SortInt
| _Gen0, _Gen1 => some 0
def _1ff8f4d {SortSort : Type} : SortBool → SortSort → SortSort → Option SortSort
| C, B1, _Gen0 => do
guard C
return B1
axiom «_|Int_» (x0 : SortInt) (x1 : SortInt) : Option SortInt
axiom «_%Int_» (x0 : SortInt) (x1 : SortInt) : Option SortInt
axiom «_in_keys(_)_MAP_Bool_KItem_Map» (x0 : SortKItem) (x1 : SortMap) : Option SortBool
axiom «Map:lookupOrDefault» (x0 : SortMap) (x1 : SortKItem) (x2 : SortKItem) : Option SortKItem
axiom «_^Int_» (x0 : SortInt) (x1 : SortInt) : Option SortInt
def _105572a : SortK → Option SortBool
| K => some false
def _92664aa : SortK → Option SortBool
| SortK.kseq (SortKItem.inj_SortInt Int) SortK.dotk => some true
| _ => none
axiom «_|->_» (x0 : SortKItem) (x1 : SortKItem) : Option SortMap
axiom _Map_ (x0 : SortMap) (x1 : SortMap) : Option SortMap
axiom «.Set» : Option SortSet
axiom AccountCellMapItem (x0 : SortAcctIDCell) (x1 : SortAccountCell) : Option SortAccountCellMap
axiom MessageCellMapItem (x0 : SortMsgIDCell) (x1 : SortMessageCell) : Option SortMessageCellMap
def _da5d3b6 : SortInt → SortInt → Option SortInt
| _Gen0, _Gen1 => some 0
def _a3e3b07 : SortKItem → SortInt → Option SortBool
| _Gen0, _Gen1 => some false
axiom _xorInt_ (x0 : SortInt) (x1 : SortInt) : Option SortInt
def _0e7f507 : SortK → Option SortSet
| SortK.kseq (SortKItem.inj_SortSet K) SortK.dotk => some K
| _ => none
axiom «.AccountCellMap» : Option SortAccountCellMap
axiom «.Map» : Option SortMap
axiom «Map:lookup» (x0 : SortMap) (x1 : SortKItem) : Option SortKItem
axiom «.MessageCellMap» : Option SortMessageCellMap
axiom _MessageCellMap_ (x0 : SortMessageCellMap) (x1 : SortMessageCellMap) : Option SortMessageCellMap
axiom «.WithdrawalCellMap» : Option SortWithdrawalCellMap
axiom WithdrawalCellMapItem (x0 : SortWithdrawalIDCell) (x1 : SortWithdrawalCell) : Option SortWithdrawalCellMap
def _8d90a32 : SortMap → SortAccount → SortInt → Option SortBool
| _Gen0, _Gen1, _Gen2 => some false
axiom ListItem (x0 : SortKItem) : Option SortList
axiom SetItem (x0 : SortKItem) : Option SortSet
axiom «.List» : Option SortList
axiom _List_ (x0 : SortList) (x1 : SortList) : Option SortList
def notBool_ (x0 : SortBool) : Option SortBool := (_17ebc68 x0) <|> (_53fc758 x0)
def EVM_TYPES_powmod_zero : SortInt → SortInt → SortInt → Option SortInt
| _Gen0, _Gen1, W2 => do
let _Val0 <- «_==Int_» W2 0
guard _Val0
return 0
def _952a14b : SortInt → SortInt → Option SortInt
| _Gen0, W1 => do
let _Val0 <- «_==Int_» W1 0
guard _Val0
return 0
def _72d6664 : SortInt → SortInt → Option SortInt
| _Gen0, W1 => do
let _Val0 <- «_==Int_» W1 0
guard _Val0
return 0
def _9bb4fc4 : SortInt → Option SortBool
| W => do
let _Val0 <- «_==Int_» W 0
guard _Val0
return false
def _85aa67b : SortInt → Option SortInt
| I => do
let _Val0 <- _modInt_ I 115792089237316195423570985008687907853269984665640564039457584007913129639936
return _Val0
def _orBool_ (x0 : SortBool) (x1 : SortBool) : Option SortBool := (_7174452 x0 x1) <|> (_991a329 x0 x1)
def _091b7da : SortInt → SortInt → Option SortInt
| _I1, I2 => do
let _Val0 <- «_<=Int_» I2 0
guard _Val0
return 0
def _andBool_ (x0 : SortBool) (x1 : SortBool) : Option SortBool := (_5b9db8d x0 x1) <|> (_61fbef3 x0 x1)
def bool2Word (x0 : SortBool) : Option SortInt := (_4bd3e13 x0) <|> (_cb4e96d x0)
noncomputable def _42ba953 : SortSet → SortInt → Option SortBool
| KEYS, KEY => do
let _Val0 <- «Set:in» ((@inj SortInt SortKItem) KEY) KEYS
guard _Val0
return true
noncomputable def _666287e : SortInt → Option SortInt
| N => do
let _Val0 <- «_>=Int_» N 0
let _Val1 <- «_<<Int_» 1 N
let _Val2 <- «_-Int_» _Val1 1
guard _Val0
return _Val2
def SCHEDULE_RbByzantium : SortScheduleConst → SortSchedule → Option SortInt
| SortScheduleConst.Rb_SCHEDULE_ScheduleConst, SortSchedule.BYZANTIUM_EVM => do
let _Val0 <- «_*Int_» 3 1000000000000000000
return _Val0
| _, _ => none
def SCHEDULE_RbConstantinople : SortScheduleConst → SortSchedule → Option SortInt
| SortScheduleConst.Rb_SCHEDULE_ScheduleConst, SortSchedule.CONSTANTINOPLE_EVM => do
let _Val0 <- «_*Int_» 2 1000000000000000000
return _Val0
| _, _ => none
noncomputable def _9fa39ea : SortInt → SortInt → Option SortInt
| N, M => do
let _Val0 <- «_*Int_» 8 M
let _Val1 <- «_<<Int_» N _Val0
return _Val1
noncomputable def _147fc15 : SortInt → SortInt → SortInt → Option SortInt
| I, IDX, LEN => do
let _Val0 <- «_>>Int_» I IDX
let _Val1 <- «_<<Int_» 1 LEN
let _Val2 <- _modInt_ _Val0 _Val1
return _Val2
mutual
def _432555e : SortWordStack → SortInt → Option SortInt
| SortWordStack.«_:__EVM-TYPES_WordStack_Int_WordStack» _Gen0 WS, SIZE => do
let _Val0 <- «_+Int_» SIZE 1
let _Val1 <- sizeWordStackAux WS _Val0
return _Val1
| _, _ => none
def sizeWordStackAux (x0 : SortWordStack) (x1 : SortInt) : Option SortInt := (_432555e x0 x1) <|> (_75897fa x0 x1)
end
def _524eb33 : SortInt → SortInt → Option SortBytes
| _SIZE, _Gen0 => do
let _Val0 <- «.Bytes_BYTES-HOOKED_Bytes»
return _Val0
def _ea9648a : SortInt → SortEndianness → SortSignedness → Option SortBytes
| I, _Gen0, _Gen1 => do
let _Val0 <- «_==Int_» I 0
let _Val1 <- «.Bytes_BYTES-HOOKED_Bytes»
guard _Val0
return _Val1
def _a656ca7 : SortBytes → SortInt → SortBytes → Option SortBytes
| _Gen0, START, _Gen1 => do
let _Val0 <- «_<Int_» START 0
let _Val1 <- «.Bytes_BYTES-HOOKED_Bytes»
guard _Val0
return _Val1
def _f005287 : SortBytes → SortInt → SortInt → Option SortBytes
| _Gen0, _Gen1, WIDTH => do
let _Val0 <- «.Bytes_BYTES-HOOKED_Bytes»
let _Val1 <- «padRightBytes(_,_,_)_BYTES-HOOKED_Bytes_Bytes_Int_Int» _Val0 WIDTH 0
return _Val1
def _e985b28 : SortInt → SortInt → Option SortInt
| I1, I2 => do
let _Val0 <- «_<Int_» 1 I2
let _Val1 <- «_-Int_» I2 1
let _Val2 <- «_+Int_» I1 _Val1
let _Val3 <- «_/Int_» _Val2 I2
guard _Val0
return _Val3
def _43f856e : SortInt → SortEndianness → SortSignedness → Option SortBytes
| I, E, SortSignedness.signedBytes => do
let _Val0 <- «_<Int_» I (-1)
let _Val1 <- «~Int_» I
let _Val2 <- «log2Int(_)_INT-COMMON_Int_Int» _Val1
let _Val3 <- «_+Int_» _Val2 9
let _Val4 <- «_/Int_» _Val3 8
let _Val5 <- «Int2Bytes(_,_,_)_BYTES-HOOKED_Bytes_Int_Int_Endianness» _Val4 I E
guard _Val0
return _Val5
| _, _, _ => none
def _6c109c0 : SortInt → SortEndianness → SortSignedness → Option SortBytes
| I, E, SortSignedness.signedBytes => do
let _Val0 <- «_==Int_» I (-1)
let _Val1 <- «Int2Bytes(_,_,_)_BYTES-HOOKED_Bytes_Int_Int_Endianness» 1 (-1) E
guard _Val0
return _Val1
| _, _, _ => none
def _e9743d5 : SortInt → SortEndianness → SortSignedness → Option SortBytes
| I, E, SortSignedness.unsignedBytes => do
let _Val0 <- «_>Int_» I 0
let _Val1 <- «log2Int(_)_INT-COMMON_Int_Int» I
let _Val2 <- «_+Int_» _Val1 8
let _Val3 <- «_/Int_» _Val2 8
let _Val4 <- «Int2Bytes(_,_,_)_BYTES-HOOKED_Bytes_Int_Int_Endianness» _Val3 I E
guard _Val0
return _Val4
| _, _, _ => none
def _20f05d9 : SortInt → SortEndianness → SortSignedness → Option SortBytes
| I, E, SortSignedness.signedBytes => do
let _Val0 <- «_>Int_» I 0
let _Val1 <- «log2Int(_)_INT-COMMON_Int_Int» I
let _Val2 <- «_+Int_» _Val1 9
let _Val3 <- «_/Int_» _Val2 8
let _Val4 <- «Int2Bytes(_,_,_)_BYTES-HOOKED_Bytes_Int_Int_Endianness» _Val3 I E
guard _Val0
return _Val4
| _, _, _ => none
noncomputable def _c384edb : SortSet → SortSet → Option SortSet
| S1, S2 => do
let _Val0 <- «Set:difference» S2 S1
let _Val1 <- _Set_ S1 _Val0
return _Val1
def _ebfe294 : SortInt → SortBytes → Option SortBytes
| N, BS => do
let _Val0 <- «_<=Int_» 0 N
let _Val1 <- «padLeftBytes(_,_,_)_BYTES-HOOKED_Bytes_Bytes_Int_Int» BS N 0
guard _Val0
return _Val1
def isInt (x0 : SortK) : Option SortBool := (_92664aa x0) <|> (_105572a x0)
noncomputable def «EVM_TYPES_#lookup_some» : SortMap → SortInt → Option SortInt
| _Pat0, KEY => match (MapHook SortKItem SortKItem).split _Pat0.coll [SortKItem.inj_SortInt KEY] with
| some ([SortKItem.inj_SortInt VAL], _M) => do
let _Val0 <- _modInt_ VAL 115792089237316195423570985008687907853269984665640564039457584007913129639936
return _Val0
| _ => none
def «project:Set» (x0 : SortK) : Option SortSet := _0e7f507 x0
def _2f3f58a {SortSort : Type} : SortBool → SortSort → SortSort → Option SortSort
| C, _Gen0, B2 => do
let _Val0 <- notBool_ C
guard _Val0
return B2
def _4de6e05 : SortInt → SortInt → Option SortBool
| I1, I2 => do
let _Val0 <- «_==Int_» I1 I2
let _Val1 <- notBool_ _Val0
return _Val1
def _67678cd : SortInt → SortBytes → Option SortBytes
| N, BS => do
let _Val0 <- «_<=Int_» 0 N
let _Val1 <- notBool_ _Val0
guard _Val1
return BS
noncomputable def _bccaba7 : SortK → SortK → Option SortBool
| K1, K2 => do
let _Val0 <- «_==K_» K1 K2
let _Val1 <- notBool_ _Val0
return _Val1
noncomputable def «EVM_TYPES_#lookup_none» : SortMap → SortInt → Option SortInt
| M, KEY => do
let _Val0 <- «_in_keys(_)_MAP_Bool_KItem_Map» ((@inj SortInt SortKItem) KEY) M
let _Val1 <- notBool_ _Val0
guard _Val1
return 0
def _8096892 : SortInt → SortInt → SortInt → Option SortInt
| MU, _Gen0, WIDTH => do
let _Val0 <- «_<Int_» 0 WIDTH
let _Val1 <- notBool_ _Val0
guard _Val1
return MU
def chop (x0 : SortInt) : Option SortInt := _85aa67b x0
-- Necessary to have the following `mutual` block passing without a `decreasing_by` proof
attribute [local simp] SortScheduleFlag.toNat SortSchedule.toNat
mutual
noncomputable def SCHEDULE_SCHEDFLAGTangerine : SortScheduleFlag → SortSchedule → Option SortBool
| SCHEDFLAG, SortSchedule.TANGERINE_WHISTLE_EVM => do
let _Val0 <- «_==K_» (SortK.kseq ((@inj SortScheduleFlag SortKItem) SCHEDFLAG) SortK.dotk) (SortK.kseq ((@inj SortScheduleFlag SortKItem) SortScheduleFlag.Gselfdestructnewaccount_SCHEDULE_ScheduleFlag) SortK.dotk)
let _Val1 <- «_==K_» (SortK.kseq ((@inj SortScheduleFlag SortKItem) SCHEDFLAG) SortK.dotk) (SortK.kseq ((@inj SortScheduleFlag SortKItem) SortScheduleFlag.Gstaticcalldepth_SCHEDULE_ScheduleFlag) SortK.dotk)
let _Val2 <- _orBool_ _Val0 _Val1
let _Val3 <- notBool_ _Val2
let _Val4 <- «_<<_>>_SCHEDULE_Bool_ScheduleFlag_Schedule» SCHEDFLAG SortSchedule.HOMESTEAD_EVM
guard _Val3
return _Val4
| _, _ => none
termination_by sc s => (s.toNat, sc.toNat)
noncomputable def SCHEDULE_SCHEDFLAGConstantinople : SortScheduleFlag → SortSchedule → Option SortBool
| SCHEDFLAG, SortSchedule.CONSTANTINOPLE_EVM => do
let _Val0 <- «_==K_» (SortK.kseq ((@inj SortScheduleFlag SortKItem) SCHEDFLAG) SortK.dotk) (SortK.kseq ((@inj SortScheduleFlag SortKItem) SortScheduleFlag.Ghasshift_SCHEDULE_ScheduleFlag) SortK.dotk)
let _Val1 <- «_==K_» (SortK.kseq ((@inj SortScheduleFlag SortKItem) SCHEDFLAG) SortK.dotk) (SortK.kseq ((@inj SortScheduleFlag SortKItem) SortScheduleFlag.Ghasdirtysstore_SCHEDULE_ScheduleFlag) SortK.dotk)
let _Val2 <- _orBool_ _Val0 _Val1
let _Val3 <- «_==K_» (SortK.kseq ((@inj SortScheduleFlag SortKItem) SCHEDFLAG) SortK.dotk) (SortK.kseq ((@inj SortScheduleFlag SortKItem) SortScheduleFlag.Ghascreate2_SCHEDULE_ScheduleFlag) SortK.dotk)
let _Val4 <- _orBool_ _Val2 _Val3
let _Val5 <- «_==K_» (SortK.kseq ((@inj SortScheduleFlag SortKItem) SCHEDFLAG) SortK.dotk) (SortK.kseq ((@inj SortScheduleFlag SortKItem) SortScheduleFlag.Ghasextcodehash_SCHEDULE_ScheduleFlag) SortK.dotk)
let _Val6 <- _orBool_ _Val4 _Val5
let _Val7 <- notBool_ _Val6
let _Val8 <- «_<<_>>_SCHEDULE_Bool_ScheduleFlag_Schedule» SCHEDFLAG SortSchedule.BYZANTIUM_EVM
guard _Val7
return _Val8
| _, _ => none
termination_by sc s => (s.toNat, sc.toNat)
noncomputable def SCHEDULE_SCHEDFLAGHomestead : SortScheduleFlag → SortSchedule → Option SortBool
| SCHEDFLAG, SortSchedule.HOMESTEAD_EVM => do
let _Val0 <- «_<<_>>_SCHEDULE_Bool_ScheduleFlag_Schedule» SCHEDFLAG SortSchedule.DEFAULT_EVM
return _Val0
| _, _ => none
termination_by sc s => (s.toNat, sc.toNat)
noncomputable def SCHEDULE_SCHEDFLAGShanghai : SortScheduleFlag → SortSchedule → Option SortBool
| SCHEDFLAG, SortSchedule.SHANGHAI_EVM => do
let _Val0 <- «_==K_» (SortK.kseq ((@inj SortScheduleFlag SortKItem) SCHEDFLAG) SortK.dotk) (SortK.kseq ((@inj SortScheduleFlag SortKItem) SortScheduleFlag.Ghasmaxinitcodesize_SCHEDULE_ScheduleFlag) SortK.dotk)
let _Val1 <- «_==K_» (SortK.kseq ((@inj SortScheduleFlag SortKItem) SCHEDFLAG) SortK.dotk) (SortK.kseq ((@inj SortScheduleFlag SortKItem) SortScheduleFlag.Ghaspushzero_SCHEDULE_ScheduleFlag) SortK.dotk)
let _Val2 <- _orBool_ _Val0 _Val1
let _Val3 <- «_==K_» (SortK.kseq ((@inj SortScheduleFlag SortKItem) SCHEDFLAG) SortK.dotk) (SortK.kseq ((@inj SortScheduleFlag SortKItem) SortScheduleFlag.Ghaswarmcoinbase_SCHEDULE_ScheduleFlag) SortK.dotk)
let _Val4 <- _orBool_ _Val2 _Val3
let _Val5 <- «_==K_» (SortK.kseq ((@inj SortScheduleFlag SortKItem) SCHEDFLAG) SortK.dotk) (SortK.kseq ((@inj SortScheduleFlag SortKItem) SortScheduleFlag.Ghaswithdrawals_SCHEDULE_ScheduleFlag) SortK.dotk)
let _Val6 <- _orBool_ _Val4 _Val5
let _Val7 <- notBool_ _Val6
let _Val8 <- «_<<_>>_SCHEDULE_Bool_ScheduleFlag_Schedule» SCHEDFLAG SortSchedule.MERGE_EVM
guard _Val7
return _Val8
| _, _ => none
termination_by sc s => (s.toNat, sc.toNat)
noncomputable def SCHEDULE_SCHEDFLAGPetersburg : SortScheduleFlag → SortSchedule → Option SortBool
| SCHEDFLAG, SortSchedule.PETERSBURG_EVM => do
let _Val0 <- «_==K_» (SortK.kseq ((@inj SortScheduleFlag SortKItem) SCHEDFLAG) SortK.dotk) (SortK.kseq ((@inj SortScheduleFlag SortKItem) SortScheduleFlag.Ghasdirtysstore_SCHEDULE_ScheduleFlag) SortK.dotk)
let _Val1 <- notBool_ _Val0
let _Val2 <- «_<<_>>_SCHEDULE_Bool_ScheduleFlag_Schedule» SCHEDFLAG SortSchedule.CONSTANTINOPLE_EVM
guard _Val1
return _Val2