forked from sarsko/CreuSAT
-
Notifications
You must be signed in to change notification settings - Fork 0
/
NewDB.mlcfg
5493 lines (5203 loc) · 285 KB
/
NewDB.mlcfg
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
module NewDb_Assignments_Pos_Stub
use prelude.Int
use prelude.UInt8
function pos [#"../NewDB/src/assignments.rs" 11 0 11 25] (_1' : ()) : uint8
end
module NewDb_Assignments_Pos_Interface
use prelude.Int
use prelude.UInt8
function pos [#"../NewDB/src/assignments.rs" 11 0 11 25] (_1' : ()) : uint8
end
module NewDb_Assignments_Pos
use prelude.Int
use prelude.UInt8
function pos [#"../NewDB/src/assignments.rs" 11 0 11 25] (_1' : ()) : uint8 =
[#"../NewDB/src/assignments.rs" 12 4 12 7] (1 : uint8)
val pos [#"../NewDB/src/assignments.rs" 11 0 11 25] (_1' : ()) : uint8
ensures { result = pos _1' }
end
module NewDb_Assignments_Neg_Stub
use prelude.Int
use prelude.UInt8
function neg [#"../NewDB/src/assignments.rs" 16 0 16 25] (_1' : ()) : uint8
end
module NewDb_Assignments_Neg_Interface
use prelude.Int
use prelude.UInt8
function neg [#"../NewDB/src/assignments.rs" 16 0 16 25] (_1' : ()) : uint8
end
module NewDb_Assignments_Neg
use prelude.Int
use prelude.UInt8
function neg [#"../NewDB/src/assignments.rs" 16 0 16 25] (_1' : ()) : uint8 =
[#"../NewDB/src/assignments.rs" 17 4 17 7] (0 : uint8)
val neg [#"../NewDB/src/assignments.rs" 16 0 16 25] (_1' : ()) : uint8
ensures { result = neg _1' }
end
module NewDb_Assignments_Unset_Stub
use prelude.Int
use prelude.UInt8
predicate unset [#"../NewDB/src/assignments.rs" 21 0 21 38] (v : uint8)
end
module NewDb_Assignments_Unset_Interface
use prelude.Int
use prelude.UInt8
predicate unset [#"../NewDB/src/assignments.rs" 21 0 21 38] (v : uint8)
end
module NewDb_Assignments_Unset
use prelude.Int
use prelude.UInt8
predicate unset [#"../NewDB/src/assignments.rs" 21 0 21 38] (v : uint8) =
[#"../NewDB/src/assignments.rs" 22 16 22 23] UInt8.to_int v >= 2
val unset [#"../NewDB/src/assignments.rs" 21 0 21 38] (v : uint8) : bool
ensures { result = unset v }
end
module Core_Ptr_NonNull_NonNull_Type
use prelude.Opaque
type t_nonnull 't =
| C_NonNull opaque_ptr
end
module Core_Marker_PhantomData_Type
type t_phantomdata 't =
| C_PhantomData
end
module Core_Ptr_Unique_Unique_Type
use Core_Marker_PhantomData_Type as Core_Marker_PhantomData_Type
use Core_Ptr_NonNull_NonNull_Type as Core_Ptr_NonNull_NonNull_Type
type t_unique 't =
| C_Unique (Core_Ptr_NonNull_NonNull_Type.t_nonnull 't) (Core_Marker_PhantomData_Type.t_phantomdata 't)
end
module Alloc_RawVec_RawVec_Type
use prelude.Int
use prelude.UIntSize
use Core_Ptr_Unique_Unique_Type as Core_Ptr_Unique_Unique_Type
type t_rawvec 't 'a =
| C_RawVec (Core_Ptr_Unique_Unique_Type.t_unique 't) usize 'a
end
module Alloc_Vec_Vec_Type
use prelude.Int
use prelude.UIntSize
use Alloc_RawVec_RawVec_Type as Alloc_RawVec_RawVec_Type
type t_vec 't 'a =
| C_Vec (Alloc_RawVec_RawVec_Type.t_rawvec 't 'a) usize
end
module Alloc_Alloc_Global_Type
type t_global =
| C_Global
end
module NewDb_Assignments_Assignments_Type
use prelude.Int
use prelude.UInt8
use Alloc_Alloc_Global_Type as Alloc_Alloc_Global_Type
use Alloc_Vec_Vec_Type as Alloc_Vec_Vec_Type
type t_assignments =
| C_Assignments (Alloc_Vec_Vec_Type.t_vec uint8 (Alloc_Alloc_Global_Type.t_global))
let function assignments_0 (self : t_assignments) : Alloc_Vec_Vec_Type.t_vec uint8 (Alloc_Alloc_Global_Type.t_global)
= [@vc:do_not_keep_trace] [@vc:sp]
match (self) with
| C_Assignments a -> a
end
end
module Alloc_Vec_Impl11_Clone_Interface
type t
type a
use prelude.Borrow
use Alloc_Vec_Vec_Type as Alloc_Vec_Vec_Type
val clone' (self : Alloc_Vec_Vec_Type.t_vec t a) : Alloc_Vec_Vec_Type.t_vec t a
ensures { result = self }
end
module NewDb_Assignments_Impl2_Clone_Interface
use prelude.Borrow
use NewDb_Assignments_Assignments_Type as NewDb_Assignments_Assignments_Type
val clone' [#"../NewDB/src/assignments.rs" 25 9 25 14] (self : NewDb_Assignments_Assignments_Type.t_assignments) : NewDb_Assignments_Assignments_Type.t_assignments
ensures { [#"../NewDB/src/assignments.rs" 25 9 25 14] result = self }
end
module NewDb_Assignments_Impl2_Clone
use prelude.Borrow
use prelude.Int
use prelude.UInt8
use Alloc_Vec_Vec_Type as Alloc_Vec_Vec_Type
use Alloc_Alloc_Global_Type as Alloc_Alloc_Global_Type
clone Alloc_Vec_Impl11_Clone_Interface as Clone0 with
type t = uint8,
type a = Alloc_Alloc_Global_Type.t_global
use NewDb_Assignments_Assignments_Type as NewDb_Assignments_Assignments_Type
let rec cfg clone' [#"../NewDB/src/assignments.rs" 25 9 25 14] [@cfg:stackify] [@cfg:subregion_analysis] (self : NewDb_Assignments_Assignments_Type.t_assignments) : NewDb_Assignments_Assignments_Type.t_assignments
ensures { [#"../NewDB/src/assignments.rs" 25 9 25 14] result = self }
= [@vc:do_not_keep_trace] [@vc:sp]
var _0 : NewDb_Assignments_Assignments_Type.t_assignments;
var self_1 : NewDb_Assignments_Assignments_Type.t_assignments;
var _3 : Alloc_Vec_Vec_Type.t_vec uint8 (Alloc_Alloc_Global_Type.t_global);
var _4 : Alloc_Vec_Vec_Type.t_vec uint8 (Alloc_Alloc_Global_Type.t_global);
{
self_1 <- self;
goto BB0
}
BB0 {
_4 <- NewDb_Assignments_Assignments_Type.assignments_0 self_1;
_3 <- ([#"../NewDB/src/assignments.rs" 26 23 26 45] Clone0.clone' _4);
goto BB1
}
BB1 {
_0 <- NewDb_Assignments_Assignments_Type.C_Assignments _3;
goto BB2
}
BB2 {
return _0
}
end
module Core_Num_Impl11_Max_Stub
use prelude.Int
use prelude.UIntSize
val constant mAX' : usize
end
module Core_Num_Impl11_Max
use prelude.Int
use prelude.UIntSize
let constant mAX' : usize = [@vc:do_not_keep_trace] [@vc:sp]
(18446744073709551615 : usize)
end
module CreusotContracts_Std1_Vec_Impl0_ShallowModel_Stub
type t
type a
use seq.Seq
use prelude.UIntSize
use prelude.Int
use Alloc_Vec_Vec_Type as Alloc_Vec_Vec_Type
clone Core_Num_Impl11_Max_Stub as Max0
function shallow_model (self : Alloc_Vec_Vec_Type.t_vec t a) : Seq.seq t
end
module CreusotContracts_Std1_Vec_Impl0_ShallowModel_Interface
type t
type a
use seq.Seq
use prelude.UIntSize
use prelude.Int
use Alloc_Vec_Vec_Type as Alloc_Vec_Vec_Type
clone Core_Num_Impl11_Max_Stub as Max0
function shallow_model (self : Alloc_Vec_Vec_Type.t_vec t a) : Seq.seq t
axiom shallow_model_spec : forall self : Alloc_Vec_Vec_Type.t_vec t a . Seq.length (shallow_model self) <= UIntSize.to_int Max0.mAX'
end
module CreusotContracts_Std1_Vec_Impl0_ShallowModel
type t
type a
use seq.Seq
use prelude.UIntSize
use prelude.Int
use Alloc_Vec_Vec_Type as Alloc_Vec_Vec_Type
clone Core_Num_Impl11_Max_Stub as Max0
function shallow_model (self : Alloc_Vec_Vec_Type.t_vec t a) : Seq.seq t
val shallow_model (self : Alloc_Vec_Vec_Type.t_vec t a) : Seq.seq t
ensures { result = shallow_model self }
axiom shallow_model_spec : forall self : Alloc_Vec_Vec_Type.t_vec t a . Seq.length (shallow_model self) <= UIntSize.to_int Max0.mAX'
end
module NewDb_Assignments_Impl0_ShallowModel_Stub
use seq.Seq
use prelude.Int
use prelude.UInt8
use NewDb_Assignments_Assignments_Type as NewDb_Assignments_Assignments_Type
function shallow_model [#"../NewDB/src/assignments.rs" 33 4 33 50] (self : NewDb_Assignments_Assignments_Type.t_assignments) : Seq.seq uint8
end
module NewDb_Assignments_Impl0_ShallowModel_Interface
use seq.Seq
use prelude.Int
use prelude.UInt8
use NewDb_Assignments_Assignments_Type as NewDb_Assignments_Assignments_Type
function shallow_model [#"../NewDB/src/assignments.rs" 33 4 33 50] (self : NewDb_Assignments_Assignments_Type.t_assignments) : Seq.seq uint8
end
module NewDb_Assignments_Impl0_ShallowModel
use seq.Seq
use prelude.Int
use prelude.UInt8
use Alloc_Alloc_Global_Type as Alloc_Alloc_Global_Type
use Alloc_Vec_Vec_Type as Alloc_Vec_Vec_Type
clone Core_Num_Impl11_Max_Stub as Max0
clone CreusotContracts_Std1_Vec_Impl0_ShallowModel_Stub as ShallowModel0 with
type t = uint8,
type a = Alloc_Alloc_Global_Type.t_global,
val Max0.mAX' = Max0.mAX',
axiom .
use NewDb_Assignments_Assignments_Type as NewDb_Assignments_Assignments_Type
function shallow_model [#"../NewDB/src/assignments.rs" 33 4 33 50] (self : NewDb_Assignments_Assignments_Type.t_assignments) : Seq.seq uint8
=
[#"../NewDB/src/assignments.rs" 32 4 32 12] ShallowModel0.shallow_model (NewDb_Assignments_Assignments_Type.assignments_0 self)
val shallow_model [#"../NewDB/src/assignments.rs" 33 4 33 50] (self : NewDb_Assignments_Assignments_Type.t_assignments) : Seq.seq uint8
ensures { result = shallow_model self }
end
module NewDb_Assignments_Impl1_Invariant_Stub
use NewDb_Assignments_Assignments_Type as NewDb_Assignments_Assignments_Type
predicate invariant' [#"../NewDB/src/assignments.rs" 40 4 40 34] (self : NewDb_Assignments_Assignments_Type.t_assignments)
end
module NewDb_Assignments_Impl1_Invariant_Interface
use NewDb_Assignments_Assignments_Type as NewDb_Assignments_Assignments_Type
predicate invariant' [#"../NewDB/src/assignments.rs" 40 4 40 34] (self : NewDb_Assignments_Assignments_Type.t_assignments)
end
module NewDb_Assignments_Impl1_Invariant
use prelude.Int
use seq.Seq
use prelude.UInt8
use NewDb_Assignments_Assignments_Type as NewDb_Assignments_Assignments_Type
clone NewDb_Assignments_Impl0_ShallowModel_Stub as ShallowModel0
predicate invariant' [#"../NewDB/src/assignments.rs" 40 4 40 34] (self : NewDb_Assignments_Assignments_Type.t_assignments)
=
[#"../NewDB/src/assignments.rs" 41 8 44 9] forall i : int . 0 <= i /\ i < Seq.length (ShallowModel0.shallow_model self) -> UInt8.to_int (Seq.get (ShallowModel0.shallow_model self) i) < 2
val invariant' [#"../NewDB/src/assignments.rs" 40 4 40 34] (self : NewDb_Assignments_Assignments_Type.t_assignments) : bool
ensures { result = invariant' self }
end
module NewDb_Assignments_CompleteInner_Stub
use seq.Seq
use prelude.Int
use prelude.UInt8
predicate complete_inner [#"../NewDB/src/assignments.rs" 49 0 49 52] (a : Seq.seq uint8)
end
module NewDb_Assignments_CompleteInner_Interface
use seq.Seq
use prelude.Int
use prelude.UInt8
predicate complete_inner [#"../NewDB/src/assignments.rs" 49 0 49 52] (a : Seq.seq uint8)
end
module NewDb_Assignments_CompleteInner
use seq.Seq
use prelude.Int
use prelude.UInt8
clone NewDb_Assignments_Unset_Stub as Unset0
predicate complete_inner [#"../NewDB/src/assignments.rs" 49 0 49 52] (a : Seq.seq uint8) =
[#"../NewDB/src/assignments.rs" 50 4 52 5] forall i : int . 0 <= i /\ i < Seq.length a -> not Unset0.unset (Seq.get a i)
val complete_inner [#"../NewDB/src/assignments.rs" 49 0 49 52] (a : Seq.seq uint8) : bool
ensures { result = complete_inner a }
end
module NewDb_Lit_Lit_Type
use prelude.Int
use prelude.UInt32
type t_lit =
| C_Lit uint32
let function lit_code (self : t_lit) : uint32 = [@vc:do_not_keep_trace] [@vc:sp]
match (self) with
| C_Lit a -> a
end
end
module CreusotContracts_Logic_Fset_Impl0_Contains_Stub
type t
use set.Fset
predicate contains [@inline:trivial] (self : Fset.fset t) (e : t)
end
module CreusotContracts_Logic_Fset_Impl0_Contains_Interface
type t
use set.Fset
predicate contains [@inline:trivial] (self : Fset.fset t) (e : t)
end
module CreusotContracts_Logic_Fset_Impl0_Contains
type t
use set.Fset
predicate contains [@inline:trivial] (self : Fset.fset t) (e : t) =
[#"../NewDB/src/cref_manager.rs" 11 15 12 1] Fset.mem e self
val contains [@inline:trivial] (self : Fset.fset t) (e : t) : bool
ensures { result = contains self e }
end
module NewDb_Lit_Impl0_IndexLogic_Stub
use prelude.Int
use NewDb_Lit_Lit_Type as NewDb_Lit_Lit_Type
function index_logic [@inline:trivial] [#"../NewDB/src/lit.rs" 17 4 17 35] (self : NewDb_Lit_Lit_Type.t_lit) : int
end
module NewDb_Lit_Impl0_IndexLogic_Interface
use prelude.Int
use NewDb_Lit_Lit_Type as NewDb_Lit_Lit_Type
function index_logic [@inline:trivial] [#"../NewDB/src/lit.rs" 17 4 17 35] (self : NewDb_Lit_Lit_Type.t_lit) : int
end
module NewDb_Lit_Impl0_IndexLogic
use prelude.Int
use prelude.UInt32
use NewDb_Lit_Lit_Type as NewDb_Lit_Lit_Type
function index_logic [@inline:trivial] [#"../NewDB/src/lit.rs" 17 4 17 35] (self : NewDb_Lit_Lit_Type.t_lit) : int =
[#"../NewDB/src/lit.rs" 18 8 18 36] div (UInt32.to_int (NewDb_Lit_Lit_Type.lit_code self)) 2
val index_logic [@inline:trivial] [#"../NewDB/src/lit.rs" 17 4 17 35] (self : NewDb_Lit_Lit_Type.t_lit) : int
ensures { result = index_logic self }
end
module NewDb_Lit_Impl0_IsPositiveLogic_Stub
use NewDb_Lit_Lit_Type as NewDb_Lit_Lit_Type
function is_positive_logic [@inline:trivial] [#"../NewDB/src/lit.rs" 23 4 23 42] (self : NewDb_Lit_Lit_Type.t_lit) : bool
end
module NewDb_Lit_Impl0_IsPositiveLogic_Interface
use NewDb_Lit_Lit_Type as NewDb_Lit_Lit_Type
function is_positive_logic [@inline:trivial] [#"../NewDB/src/lit.rs" 23 4 23 42] (self : NewDb_Lit_Lit_Type.t_lit) : bool
end
module NewDb_Lit_Impl0_IsPositiveLogic
use prelude.UInt32
use prelude.Int
use NewDb_Lit_Lit_Type as NewDb_Lit_Lit_Type
function is_positive_logic [@inline:trivial] [#"../NewDB/src/lit.rs" 23 4 23 42] (self : NewDb_Lit_Lit_Type.t_lit) : bool
=
[#"../NewDB/src/lit.rs" 24 20 24 39] mod (UInt32.to_int (NewDb_Lit_Lit_Type.lit_code self)) 2 = 0
val is_positive_logic [@inline:trivial] [#"../NewDB/src/lit.rs" 23 4 23 42] (self : NewDb_Lit_Lit_Type.t_lit) : bool
ensures { result = is_positive_logic self }
end
module NewDb_LogicUtil_BoolAsU8_Stub
use prelude.Int
use prelude.UInt8
function bool_as_u8 [@inline:trivial] [#"../NewDB/src/logic_util.rs" 10 0 10 39] (b : bool) : uint8
end
module NewDb_LogicUtil_BoolAsU8_Interface
use prelude.Int
use prelude.UInt8
function bool_as_u8 [@inline:trivial] [#"../NewDB/src/logic_util.rs" 10 0 10 39] (b : bool) : uint8
end
module NewDb_LogicUtil_BoolAsU8
use prelude.Int
use prelude.UInt8
function bool_as_u8 [@inline:trivial] [#"../NewDB/src/logic_util.rs" 10 0 10 39] (b : bool) : uint8 =
[#"../NewDB/src/logic_util.rs" 12 7 15 8] if b then (1 : uint8) else (0 : uint8)
val bool_as_u8 [@inline:trivial] [#"../NewDB/src/logic_util.rs" 10 0 10 39] (b : bool) : uint8
ensures { result = bool_as_u8 b }
end
module NewDb_Lit_Impl1_Sat_Stub
use seq.Seq
use prelude.Int
use prelude.UInt8
use NewDb_Lit_Lit_Type as NewDb_Lit_Lit_Type
predicate sat [@inline:trivial] [#"../NewDB/src/lit.rs" 47 4 47 58] (self : NewDb_Lit_Lit_Type.t_lit) (a : Seq.seq uint8)
end
module NewDb_Lit_Impl1_Sat_Interface
use seq.Seq
use prelude.Int
use prelude.UInt8
use NewDb_Lit_Lit_Type as NewDb_Lit_Lit_Type
predicate sat [@inline:trivial] [#"../NewDB/src/lit.rs" 47 4 47 58] (self : NewDb_Lit_Lit_Type.t_lit) (a : Seq.seq uint8)
end
module NewDb_Lit_Impl1_Sat
use seq.Seq
use prelude.Int
use prelude.UInt8
clone NewDb_LogicUtil_BoolAsU8_Stub as BoolAsU80
use NewDb_Lit_Lit_Type as NewDb_Lit_Lit_Type
clone NewDb_Lit_Impl0_IsPositiveLogic_Stub as IsPositiveLogic0
clone NewDb_Lit_Impl0_IndexLogic_Stub as IndexLogic0
predicate sat [@inline:trivial] [#"../NewDB/src/lit.rs" 47 4 47 58] (self : NewDb_Lit_Lit_Type.t_lit) (a : Seq.seq uint8)
=
[#"../NewDB/src/lit.rs" 49 12 49 73] Seq.get a (IndexLogic0.index_logic self) = BoolAsU80.bool_as_u8 (IsPositiveLogic0.is_positive_logic self)
val sat [@inline:trivial] [#"../NewDB/src/lit.rs" 47 4 47 58] (self : NewDb_Lit_Lit_Type.t_lit) (a : Seq.seq uint8) : bool
ensures { result = sat self a }
end
module NewDb_Clause_ClauseSat_Stub
use set.Fset
use seq.Seq
use prelude.Int
use prelude.UInt8
use NewDb_Lit_Lit_Type as NewDb_Lit_Lit_Type
predicate clause_sat [#"../NewDB/src/clause.rs" 8 0 8 84] (clause : Fset.fset (NewDb_Lit_Lit_Type.t_lit)) (assignments : Seq.seq uint8)
end
module NewDb_Clause_ClauseSat_Interface
use set.Fset
use seq.Seq
use prelude.Int
use prelude.UInt8
use NewDb_Lit_Lit_Type as NewDb_Lit_Lit_Type
predicate clause_sat [#"../NewDB/src/clause.rs" 8 0 8 84] (clause : Fset.fset (NewDb_Lit_Lit_Type.t_lit)) (assignments : Seq.seq uint8)
end
module NewDb_Clause_ClauseSat
use set.Fset
use seq.Seq
use prelude.Int
use prelude.UInt8
use NewDb_Lit_Lit_Type as NewDb_Lit_Lit_Type
clone NewDb_Lit_Impl1_Sat_Stub as Sat0
clone CreusotContracts_Logic_Fset_Impl0_Contains_Stub as Contains0 with
type t = NewDb_Lit_Lit_Type.t_lit
predicate clause_sat [#"../NewDB/src/clause.rs" 8 0 8 84] (clause : Fset.fset (NewDb_Lit_Lit_Type.t_lit)) (assignments : Seq.seq uint8)
=
[#"../NewDB/src/clause.rs" 9 4 11 5] exists l : NewDb_Lit_Lit_Type.t_lit . Contains0.contains clause l /\ Sat0.sat l assignments
val clause_sat [#"../NewDB/src/clause.rs" 8 0 8 84] (clause : Fset.fset (NewDb_Lit_Lit_Type.t_lit)) (assignments : Seq.seq uint8) : bool
ensures { result = clause_sat clause assignments }
end
module NewDb_Lit_Impl1_VarInRange_Stub
use prelude.Int
use NewDb_Lit_Lit_Type as NewDb_Lit_Lit_Type
predicate var_in_range [#"../NewDB/src/lit.rs" 30 4 30 52] (self : NewDb_Lit_Lit_Type.t_lit) (n : int)
end
module NewDb_Lit_Impl1_VarInRange_Interface
use prelude.Int
use NewDb_Lit_Lit_Type as NewDb_Lit_Lit_Type
predicate var_in_range [#"../NewDB/src/lit.rs" 30 4 30 52] (self : NewDb_Lit_Lit_Type.t_lit) (n : int)
end
module NewDb_Lit_Impl1_VarInRange
use prelude.Int
use NewDb_Lit_Lit_Type as NewDb_Lit_Lit_Type
clone NewDb_Lit_Impl0_IndexLogic_Stub as IndexLogic0
predicate var_in_range [#"../NewDB/src/lit.rs" 30 4 30 52] (self : NewDb_Lit_Lit_Type.t_lit) (n : int) =
[#"../NewDB/src/lit.rs" 32 12 32 34] IndexLogic0.index_logic self < n
val var_in_range [#"../NewDB/src/lit.rs" 30 4 30 52] (self : NewDb_Lit_Lit_Type.t_lit) (n : int) : bool
ensures { result = var_in_range self n }
end
module NewDb_Clause_ClauseInvariant_Stub
use set.Fset
use prelude.Int
use NewDb_Lit_Lit_Type as NewDb_Lit_Lit_Type
predicate clause_invariant [#"../NewDB/src/clause.rs" 15 0 15 72] (clause : Fset.fset (NewDb_Lit_Lit_Type.t_lit)) (num_vars : int)
end
module NewDb_Clause_ClauseInvariant_Interface
use set.Fset
use prelude.Int
use NewDb_Lit_Lit_Type as NewDb_Lit_Lit_Type
predicate clause_invariant [#"../NewDB/src/clause.rs" 15 0 15 72] (clause : Fset.fset (NewDb_Lit_Lit_Type.t_lit)) (num_vars : int)
end
module NewDb_Clause_ClauseInvariant
use set.Fset
use prelude.Int
use NewDb_Lit_Lit_Type as NewDb_Lit_Lit_Type
clone NewDb_Lit_Impl1_VarInRange_Stub as VarInRange0
clone CreusotContracts_Logic_Fset_Impl0_Contains_Stub as Contains0 with
type t = NewDb_Lit_Lit_Type.t_lit
predicate clause_invariant [#"../NewDB/src/clause.rs" 15 0 15 72] (clause : Fset.fset (NewDb_Lit_Lit_Type.t_lit)) (num_vars : int)
=
[#"../NewDB/src/clause.rs" 16 4 18 5] forall l : NewDb_Lit_Lit_Type.t_lit . Contains0.contains clause l -> VarInRange0.var_in_range l num_vars
val clause_invariant [#"../NewDB/src/clause.rs" 15 0 15 72] (clause : Fset.fset (NewDb_Lit_Lit_Type.t_lit)) (num_vars : int) : bool
ensures { result = clause_invariant clause num_vars }
end
module NewDb_Clause_ClauseInvariantSeq_Stub
use seq.Seq
use prelude.Int
use NewDb_Lit_Lit_Type as NewDb_Lit_Lit_Type
predicate clause_invariant_seq [#"../NewDB/src/clause.rs" 22 0 22 75] (clause : Seq.seq (NewDb_Lit_Lit_Type.t_lit)) (num_vars : int)
end
module NewDb_Clause_ClauseInvariantSeq_Interface
use seq.Seq
use prelude.Int
use NewDb_Lit_Lit_Type as NewDb_Lit_Lit_Type
predicate clause_invariant_seq [#"../NewDB/src/clause.rs" 22 0 22 75] (clause : Seq.seq (NewDb_Lit_Lit_Type.t_lit)) (num_vars : int)
end
module NewDb_Clause_ClauseInvariantSeq
use seq.Seq
use prelude.Int
use NewDb_Lit_Lit_Type as NewDb_Lit_Lit_Type
clone NewDb_Lit_Impl1_VarInRange_Stub as VarInRange0
predicate clause_invariant_seq [#"../NewDB/src/clause.rs" 22 0 22 75] (clause : Seq.seq (NewDb_Lit_Lit_Type.t_lit)) (num_vars : int)
=
[#"../NewDB/src/clause.rs" 23 4 26 5] forall i : int . 0 <= i /\ i < Seq.length clause -> VarInRange0.var_in_range (Seq.get clause i) num_vars
val clause_invariant_seq [#"../NewDB/src/clause.rs" 22 0 22 75] (clause : Seq.seq (NewDb_Lit_Lit_Type.t_lit)) (num_vars : int) : bool
ensures { result = clause_invariant_seq clause num_vars }
end
module NewDb_Clause_NoDuplicateIndexesInner_Stub
use seq.Seq
use NewDb_Lit_Lit_Type as NewDb_Lit_Lit_Type
predicate no_duplicate_indexes_inner [#"../NewDB/src/clause.rs" 30 0 30 66] (clause : Seq.seq (NewDb_Lit_Lit_Type.t_lit))
end
module NewDb_Clause_NoDuplicateIndexesInner_Interface
use seq.Seq
use NewDb_Lit_Lit_Type as NewDb_Lit_Lit_Type
predicate no_duplicate_indexes_inner [#"../NewDB/src/clause.rs" 30 0 30 66] (clause : Seq.seq (NewDb_Lit_Lit_Type.t_lit))
end
module NewDb_Clause_NoDuplicateIndexesInner
use seq.Seq
use prelude.Int
use NewDb_Lit_Lit_Type as NewDb_Lit_Lit_Type
clone NewDb_Lit_Impl0_IndexLogic_Stub as IndexLogic0
predicate no_duplicate_indexes_inner [#"../NewDB/src/clause.rs" 30 0 30 66] (clause : Seq.seq (NewDb_Lit_Lit_Type.t_lit))
=
[#"../NewDB/src/clause.rs" 31 4 34 5] forall k : int . forall j : int . 0 <= j /\ j < Seq.length clause /\ 0 <= k /\ k < j -> not IndexLogic0.index_logic (Seq.get clause k) = IndexLogic0.index_logic (Seq.get clause j)
val no_duplicate_indexes_inner [#"../NewDB/src/clause.rs" 30 0 30 66] (clause : Seq.seq (NewDb_Lit_Lit_Type.t_lit)) : bool
ensures { result = no_duplicate_indexes_inner clause }
end
module NewDb_ClauseAllocator_ClauseAllocator_Type
use prelude.Int
use prelude.UIntSize
use Alloc_Alloc_Global_Type as Alloc_Alloc_Global_Type
use NewDb_Lit_Lit_Type as NewDb_Lit_Lit_Type
use Alloc_Vec_Vec_Type as Alloc_Vec_Vec_Type
type t_clauseallocator =
| C_ClauseAllocator (Alloc_Vec_Vec_Type.t_vec (NewDb_Lit_Lit_Type.t_lit) (Alloc_Alloc_Global_Type.t_global)) usize
let function clauseallocator_buffer (self : t_clauseallocator) : Alloc_Vec_Vec_Type.t_vec (NewDb_Lit_Lit_Type.t_lit) (Alloc_Alloc_Global_Type.t_global)
= [@vc:do_not_keep_trace] [@vc:sp]
match (self) with
| C_ClauseAllocator a _ -> a
end
let function clauseallocator_num_vars (self : t_clauseallocator) : usize = [@vc:do_not_keep_trace] [@vc:sp]
match (self) with
| C_ClauseAllocator _ a -> a
end
end
module NewDb_ClauseAllocator_Impl2_ShallowModel_Stub
use seq.Seq
use NewDb_Lit_Lit_Type as NewDb_Lit_Lit_Type
use NewDb_ClauseAllocator_ClauseAllocator_Type as NewDb_ClauseAllocator_ClauseAllocator_Type
function shallow_model [#"../NewDB/src/clause_allocator.rs" 101 4 101 50] (self : NewDb_ClauseAllocator_ClauseAllocator_Type.t_clauseallocator) : Seq.seq (NewDb_Lit_Lit_Type.t_lit)
end
module NewDb_ClauseAllocator_Impl2_ShallowModel_Interface
use seq.Seq
use NewDb_Lit_Lit_Type as NewDb_Lit_Lit_Type
use NewDb_ClauseAllocator_ClauseAllocator_Type as NewDb_ClauseAllocator_ClauseAllocator_Type
function shallow_model [#"../NewDB/src/clause_allocator.rs" 101 4 101 50] (self : NewDb_ClauseAllocator_ClauseAllocator_Type.t_clauseallocator) : Seq.seq (NewDb_Lit_Lit_Type.t_lit)
end
module NewDb_ClauseAllocator_Impl2_ShallowModel
use seq.Seq
use Alloc_Alloc_Global_Type as Alloc_Alloc_Global_Type
use NewDb_Lit_Lit_Type as NewDb_Lit_Lit_Type
use Alloc_Vec_Vec_Type as Alloc_Vec_Vec_Type
clone Core_Num_Impl11_Max_Stub as Max0
clone CreusotContracts_Std1_Vec_Impl0_ShallowModel_Stub as ShallowModel0 with
type t = NewDb_Lit_Lit_Type.t_lit,
type a = Alloc_Alloc_Global_Type.t_global,
val Max0.mAX' = Max0.mAX',
axiom .
use NewDb_ClauseAllocator_ClauseAllocator_Type as NewDb_ClauseAllocator_ClauseAllocator_Type
function shallow_model [#"../NewDB/src/clause_allocator.rs" 101 4 101 50] (self : NewDb_ClauseAllocator_ClauseAllocator_Type.t_clauseallocator) : Seq.seq (NewDb_Lit_Lit_Type.t_lit)
=
[#"../NewDB/src/clause_allocator.rs" 100 4 100 12] ShallowModel0.shallow_model (NewDb_ClauseAllocator_ClauseAllocator_Type.clauseallocator_buffer self)
val shallow_model [#"../NewDB/src/clause_allocator.rs" 101 4 101 50] (self : NewDb_ClauseAllocator_ClauseAllocator_Type.t_clauseallocator) : Seq.seq (NewDb_Lit_Lit_Type.t_lit)
ensures { result = shallow_model self }
end
module NewDb_ClauseAllocator_HeaderLen_Stub
use prelude.Int
use prelude.UIntSize
val constant hEADER_LEN' [#"../NewDB/src/clause_allocator.rs" 106 0 106 27] : usize
end
module NewDb_ClauseAllocator_HeaderLen
use prelude.Int
use prelude.UIntSize
let constant hEADER_LEN' [#"../NewDB/src/clause_allocator.rs" 106 0 106 27] : usize
= [@vc:do_not_keep_trace] [@vc:sp]
[#"../NewDB/src/clause_allocator.rs" 106 0 106 27] (1 : usize)
end
module NewDb_ClauseAllocator_Impl1_GetClauseLogic_Stub
use prelude.Int
use seq.Seq
use NewDb_Lit_Lit_Type as NewDb_Lit_Lit_Type
use NewDb_ClauseAllocator_ClauseAllocator_Type as NewDb_ClauseAllocator_ClauseAllocator_Type
function get_clause_logic [#"../NewDB/src/clause_allocator.rs" 66 4 66 63] (self : NewDb_ClauseAllocator_ClauseAllocator_Type.t_clauseallocator) (cref : int) : Seq.seq (NewDb_Lit_Lit_Type.t_lit)
end
module NewDb_ClauseAllocator_Impl1_GetClauseLogic_Interface
use prelude.Int
use seq.Seq
use NewDb_Lit_Lit_Type as NewDb_Lit_Lit_Type
use NewDb_ClauseAllocator_ClauseAllocator_Type as NewDb_ClauseAllocator_ClauseAllocator_Type
function get_clause_logic [#"../NewDB/src/clause_allocator.rs" 66 4 66 63] (self : NewDb_ClauseAllocator_ClauseAllocator_Type.t_clauseallocator) (cref : int) : Seq.seq (NewDb_Lit_Lit_Type.t_lit)
end
module NewDb_ClauseAllocator_Impl1_GetClauseLogic
use prelude.Int
use seq.Seq
use prelude.UIntSize
use prelude.UInt32
use seq_ext.SeqExt
clone NewDb_ClauseAllocator_HeaderLen_Stub as HeaderLen0
use NewDb_Lit_Lit_Type as NewDb_Lit_Lit_Type
use NewDb_ClauseAllocator_ClauseAllocator_Type as NewDb_ClauseAllocator_ClauseAllocator_Type
clone NewDb_ClauseAllocator_Impl2_ShallowModel_Stub as ShallowModel0
function get_clause_logic [#"../NewDB/src/clause_allocator.rs" 66 4 66 63] (self : NewDb_ClauseAllocator_ClauseAllocator_Type.t_clauseallocator) (cref : int) : Seq.seq (NewDb_Lit_Lit_Type.t_lit)
=
[#"../NewDB/src/clause_allocator.rs" 67 8 69 9] SeqExt.subsequence (ShallowModel0.shallow_model self) (cref + UIntSize.to_int HeaderLen0.hEADER_LEN') (cref + UIntSize.to_int HeaderLen0.hEADER_LEN' + UInt32.to_int (NewDb_Lit_Lit_Type.lit_code (Seq.get (ShallowModel0.shallow_model self) cref)))
val get_clause_logic [#"../NewDB/src/clause_allocator.rs" 66 4 66 63] (self : NewDb_ClauseAllocator_ClauseAllocator_Type.t_clauseallocator) (cref : int) : Seq.seq (NewDb_Lit_Lit_Type.t_lit)
ensures { result = get_clause_logic self cref }
end
module NewDb_ClauseAllocator_CrefInvariant_Stub
use prelude.Int
use NewDb_ClauseAllocator_ClauseAllocator_Type as NewDb_ClauseAllocator_ClauseAllocator_Type
predicate cref_invariant [#"../NewDB/src/clause_allocator.rs" 16 0 16 97] (cref : int) (clause_allocator : NewDb_ClauseAllocator_ClauseAllocator_Type.t_clauseallocator) (num_vars : int)
end
module NewDb_ClauseAllocator_CrefInvariant_Interface
use prelude.Int
use NewDb_ClauseAllocator_ClauseAllocator_Type as NewDb_ClauseAllocator_ClauseAllocator_Type
predicate cref_invariant [#"../NewDB/src/clause_allocator.rs" 16 0 16 97] (cref : int) (clause_allocator : NewDb_ClauseAllocator_ClauseAllocator_Type.t_clauseallocator) (num_vars : int)
end
module NewDb_ClauseAllocator_CrefInvariant
use prelude.Int
use seq.Seq
use prelude.UInt32
use prelude.UIntSize
use NewDb_Lit_Lit_Type as NewDb_Lit_Lit_Type
clone NewDb_Clause_ClauseInvariantSeq_Stub as ClauseInvariantSeq0
use NewDb_ClauseAllocator_ClauseAllocator_Type as NewDb_ClauseAllocator_ClauseAllocator_Type
clone NewDb_ClauseAllocator_Impl1_GetClauseLogic_Stub as GetClauseLogic0
clone NewDb_ClauseAllocator_HeaderLen_Stub as HeaderLen0
clone NewDb_ClauseAllocator_Impl2_ShallowModel_Stub as ShallowModel0
predicate cref_invariant [#"../NewDB/src/clause_allocator.rs" 16 0 16 97] (cref : int) (clause_allocator : NewDb_ClauseAllocator_ClauseAllocator_Type.t_clauseallocator) (num_vars : int)
=
[#"../NewDB/src/clause_allocator.rs" 18 8 21 82] cref < Seq.length (ShallowModel0.shallow_model clause_allocator) /\ UInt32.to_int (NewDb_Lit_Lit_Type.lit_code (Seq.get (ShallowModel0.shallow_model clause_allocator) cref)) + cref + UIntSize.to_int HeaderLen0.hEADER_LEN' <= Seq.length (ShallowModel0.shallow_model clause_allocator) /\ ClauseInvariantSeq0.clause_invariant_seq (GetClauseLogic0.get_clause_logic clause_allocator cref) num_vars
val cref_invariant [#"../NewDB/src/clause_allocator.rs" 16 0 16 97] (cref : int) (clause_allocator : NewDb_ClauseAllocator_ClauseAllocator_Type.t_clauseallocator) (num_vars : int) : bool
ensures { result = cref_invariant cref clause_allocator num_vars }
end
module CreusotContracts_Logic_Fset_Impl0_Insert_Stub
type t
use set.Fset
function insert [@inline:trivial] (self : Fset.fset t) (e : t) : Fset.fset t
end
module CreusotContracts_Logic_Fset_Impl0_Insert_Interface
type t
use set.Fset
function insert [@inline:trivial] (self : Fset.fset t) (e : t) : Fset.fset t
end
module CreusotContracts_Logic_Fset_Impl0_Insert
type t
use set.Fset
function insert [@inline:trivial] (self : Fset.fset t) (e : t) : Fset.fset t =
[#"../NewDB/src/cref_manager.rs" 25 12 26 13] Fset.add e self
val insert [@inline:trivial] (self : Fset.fset t) (e : t) : Fset.fset t
ensures { result = insert self e }
end
module NewDb_ClauseAllocator_Impl1_GetClauseFsetInternal_Stub
use prelude.Int
use seq.Seq
use set.Fset
use NewDb_Lit_Lit_Type as NewDb_Lit_Lit_Type
use NewDb_ClauseAllocator_ClauseAllocator_Type as NewDb_ClauseAllocator_ClauseAllocator_Type
clone NewDb_ClauseAllocator_Impl2_ShallowModel_Stub as ShallowModel0
function get_clause_fset_internal [#"../NewDB/src/clause_allocator.rs" 84 4 84 83] (self : NewDb_ClauseAllocator_ClauseAllocator_Type.t_clauseallocator) (cref : int) (idx : int) (upper : int) : Fset.fset (NewDb_Lit_Lit_Type.t_lit)
end
module NewDb_ClauseAllocator_Impl1_GetClauseFsetInternal_Interface
use prelude.Int
use seq.Seq
use set.Fset
use NewDb_Lit_Lit_Type as NewDb_Lit_Lit_Type
use NewDb_ClauseAllocator_ClauseAllocator_Type as NewDb_ClauseAllocator_ClauseAllocator_Type
clone NewDb_ClauseAllocator_Impl2_ShallowModel_Stub as ShallowModel0
function get_clause_fset_internal [#"../NewDB/src/clause_allocator.rs" 84 4 84 83] (self : NewDb_ClauseAllocator_ClauseAllocator_Type.t_clauseallocator) (cref : int) (idx : int) (upper : int) : Fset.fset (NewDb_Lit_Lit_Type.t_lit)
end
module NewDb_ClauseAllocator_Impl1_GetClauseFsetInternal
use prelude.Int
use seq.Seq
use set.Fset
use NewDb_Lit_Lit_Type as NewDb_Lit_Lit_Type
clone CreusotContracts_Logic_Fset_Impl0_Insert_Stub as Insert0 with
type t = NewDb_Lit_Lit_Type.t_lit
use NewDb_ClauseAllocator_ClauseAllocator_Type as NewDb_ClauseAllocator_ClauseAllocator_Type
clone NewDb_ClauseAllocator_Impl2_ShallowModel_Stub as ShallowModel0
function get_clause_fset_internal [#"../NewDB/src/clause_allocator.rs" 84 4 84 83] (self : NewDb_ClauseAllocator_ClauseAllocator_Type.t_clauseallocator) (cref : int) (idx : int) (upper : int) : Fset.fset (NewDb_Lit_Lit_Type.t_lit)
val get_clause_fset_internal [#"../NewDB/src/clause_allocator.rs" 84 4 84 83] (self : NewDb_ClauseAllocator_ClauseAllocator_Type.t_clauseallocator) (cref : int) (idx : int) (upper : int) : Fset.fset (NewDb_Lit_Lit_Type.t_lit)
requires {[#"../NewDB/src/clause_allocator.rs" 83 15 83 47] idx >= 0 /\ upper <= Seq.length (ShallowModel0.shallow_model self)}
ensures { result = get_clause_fset_internal self cref idx upper }
axiom def : forall self : NewDb_ClauseAllocator_ClauseAllocator_Type.t_clauseallocator, cref : int, idx : int, upper : int . get_clause_fset_internal self cref idx upper = ([#"../NewDB/src/clause_allocator.rs" 85 8 92 9] if idx < upper then
let set = get_clause_fset_internal self cref (idx + 1) upper in Insert0.insert set (Seq.get (ShallowModel0.shallow_model self) (cref + idx))
else
Fset.empty
)
end
module NewDb_ClauseAllocator_Impl1_GetClauseFsetInternal_Impl
use prelude.Int
use seq.Seq
use set.Fset
use Alloc_Alloc_Global_Type as Alloc_Alloc_Global_Type
use NewDb_Lit_Lit_Type as NewDb_Lit_Lit_Type
use Alloc_Vec_Vec_Type as Alloc_Vec_Vec_Type
clone Core_Num_Impl11_Max as Max0
clone CreusotContracts_Std1_Vec_Impl0_ShallowModel as ShallowModel1 with
type t = NewDb_Lit_Lit_Type.t_lit,
type a = Alloc_Alloc_Global_Type.t_global,
val Max0.mAX' = Max0.mAX',
axiom .
clone CreusotContracts_Logic_Fset_Impl0_Insert as Insert0 with
type t = NewDb_Lit_Lit_Type.t_lit
use NewDb_ClauseAllocator_ClauseAllocator_Type as NewDb_ClauseAllocator_ClauseAllocator_Type
clone NewDb_ClauseAllocator_Impl2_ShallowModel as ShallowModel0 with
function ShallowModel0.shallow_model = ShallowModel1.shallow_model,
val Max0.mAX' = Max0.mAX'
let rec Snapshot function get_clause_fset_internal [#"../NewDB/src/clause_allocator.rs" 84 4 84 83] (self : NewDb_ClauseAllocator_ClauseAllocator_Type.t_clauseallocator) (cref : int) (idx : int) (upper : int) : Fset.fset (NewDb_Lit_Lit_Type.t_lit)
requires {[#"../NewDB/src/clause_allocator.rs" 83 15 83 47] idx >= 0 /\ upper <= Seq.length (ShallowModel0.shallow_model self)}
variant {[#"../NewDB/src/clause_allocator.rs" 82 14 82 25] upper - idx}
= [@vc:do_not_keep_trace] [@vc:sp]
[#"../NewDB/src/clause_allocator.rs" 85 8 92 9] if pure {idx < upper} then
let set = get_clause_fset_internal self cref (idx + 1) upper in let b' = let a' = ShallowModel0.shallow_model self in Seq.get a' (cref + idx) in Insert0.insert set b'
else
Fset.empty
end
module NewDb_ClauseAllocator_Impl1_GetClauseFset_Stub
use prelude.Int
use set.Fset
use NewDb_Lit_Lit_Type as NewDb_Lit_Lit_Type
use NewDb_ClauseAllocator_ClauseAllocator_Type as NewDb_ClauseAllocator_ClauseAllocator_Type
function get_clause_fset [#"../NewDB/src/clause_allocator.rs" 74 4 74 63] (self : NewDb_ClauseAllocator_ClauseAllocator_Type.t_clauseallocator) (cref : int) : Fset.fset (NewDb_Lit_Lit_Type.t_lit)
end
module NewDb_ClauseAllocator_Impl1_GetClauseFset_Interface
use prelude.Int
use set.Fset
use NewDb_Lit_Lit_Type as NewDb_Lit_Lit_Type
use NewDb_ClauseAllocator_ClauseAllocator_Type as NewDb_ClauseAllocator_ClauseAllocator_Type
function get_clause_fset [#"../NewDB/src/clause_allocator.rs" 74 4 74 63] (self : NewDb_ClauseAllocator_ClauseAllocator_Type.t_clauseallocator) (cref : int) : Fset.fset (NewDb_Lit_Lit_Type.t_lit)
end
module NewDb_ClauseAllocator_Impl1_GetClauseFset
use prelude.Int
use set.Fset
use prelude.UIntSize
use seq.Seq
use prelude.UInt32
use NewDb_Lit_Lit_Type as NewDb_Lit_Lit_Type
use NewDb_ClauseAllocator_ClauseAllocator_Type as NewDb_ClauseAllocator_ClauseAllocator_Type
clone NewDb_ClauseAllocator_Impl2_ShallowModel_Stub as ShallowModel0
clone NewDb_ClauseAllocator_Impl1_GetClauseFsetInternal_Stub as GetClauseFsetInternal0 with
function ShallowModel0.shallow_model = ShallowModel0.shallow_model,
axiom .
clone NewDb_ClauseAllocator_HeaderLen_Stub as HeaderLen0
function get_clause_fset [#"../NewDB/src/clause_allocator.rs" 74 4 74 63] (self : NewDb_ClauseAllocator_ClauseAllocator_Type.t_clauseallocator) (cref : int) : Fset.fset (NewDb_Lit_Lit_Type.t_lit)
=
[#"../NewDB/src/clause_allocator.rs" 76 12 76 107] GetClauseFsetInternal0.get_clause_fset_internal self cref (cref + UIntSize.to_int HeaderLen0.hEADER_LEN') (cref + UIntSize.to_int HeaderLen0.hEADER_LEN' + UInt32.to_int (NewDb_Lit_Lit_Type.lit_code (Seq.get (ShallowModel0.shallow_model self) cref)))
val get_clause_fset [#"../NewDB/src/clause_allocator.rs" 74 4 74 63] (self : NewDb_ClauseAllocator_ClauseAllocator_Type.t_clauseallocator) (cref : int) : Fset.fset (NewDb_Lit_Lit_Type.t_lit)
ensures { result = get_clause_fset self cref }
end
module NewDb_ClauseAllocator_CrefInvariantFset_Stub
use prelude.Int
use NewDb_ClauseAllocator_ClauseAllocator_Type as NewDb_ClauseAllocator_ClauseAllocator_Type
predicate cref_invariant_fset [#"../NewDB/src/clause_allocator.rs" 26 0 26 102] (cref : int) (clause_allocator : NewDb_ClauseAllocator_ClauseAllocator_Type.t_clauseallocator) (num_vars : int)
end
module NewDb_ClauseAllocator_CrefInvariantFset_Interface
use prelude.Int
use NewDb_ClauseAllocator_ClauseAllocator_Type as NewDb_ClauseAllocator_ClauseAllocator_Type
predicate cref_invariant_fset [#"../NewDB/src/clause_allocator.rs" 26 0 26 102] (cref : int) (clause_allocator : NewDb_ClauseAllocator_ClauseAllocator_Type.t_clauseallocator) (num_vars : int)
end
module NewDb_ClauseAllocator_CrefInvariantFset
use prelude.Int
use seq.Seq
use prelude.UInt32
use prelude.UIntSize
use NewDb_Lit_Lit_Type as NewDb_Lit_Lit_Type
clone NewDb_Clause_ClauseInvariant_Stub as ClauseInvariant0
use NewDb_ClauseAllocator_ClauseAllocator_Type as NewDb_ClauseAllocator_ClauseAllocator_Type
clone NewDb_ClauseAllocator_Impl1_GetClauseFset_Stub as GetClauseFset0
clone NewDb_ClauseAllocator_HeaderLen_Stub as HeaderLen0
clone NewDb_ClauseAllocator_Impl2_ShallowModel_Stub as ShallowModel0
predicate cref_invariant_fset [#"../NewDB/src/clause_allocator.rs" 26 0 26 102] (cref : int) (clause_allocator : NewDb_ClauseAllocator_ClauseAllocator_Type.t_clauseallocator) (num_vars : int)
=
[#"../NewDB/src/clause_allocator.rs" 28 8 30 77] cref < Seq.length (ShallowModel0.shallow_model clause_allocator) /\ UInt32.to_int (NewDb_Lit_Lit_Type.lit_code (Seq.get (ShallowModel0.shallow_model clause_allocator) cref)) + cref + UIntSize.to_int HeaderLen0.hEADER_LEN' <= Seq.length (ShallowModel0.shallow_model clause_allocator) /\ ClauseInvariant0.clause_invariant (GetClauseFset0.get_clause_fset clause_allocator cref) num_vars
val cref_invariant_fset [#"../NewDB/src/clause_allocator.rs" 26 0 26 102] (cref : int) (clause_allocator : NewDb_ClauseAllocator_ClauseAllocator_Type.t_clauseallocator) (num_vars : int) : bool
ensures { result = cref_invariant_fset cref clause_allocator num_vars }
end
module NewDb_ClauseAllocator_Impl0_Push_Stub
use NewDb_Lit_Lit_Type as NewDb_Lit_Lit_Type
use NewDb_ClauseAllocator_ClauseAllocator_Type as NewDb_ClauseAllocator_ClauseAllocator_Type
function push [#"../NewDB/src/clause_allocator.rs" 44 4 44 46] (self : NewDb_ClauseAllocator_ClauseAllocator_Type.t_clauseallocator) (lit : NewDb_Lit_Lit_Type.t_lit) : NewDb_ClauseAllocator_ClauseAllocator_Type.t_clauseallocator
end
module NewDb_ClauseAllocator_Impl0_Push_Interface
use NewDb_Lit_Lit_Type as NewDb_Lit_Lit_Type
use NewDb_ClauseAllocator_ClauseAllocator_Type as NewDb_ClauseAllocator_ClauseAllocator_Type
function push [#"../NewDB/src/clause_allocator.rs" 44 4 44 46] (self : NewDb_ClauseAllocator_ClauseAllocator_Type.t_clauseallocator) (lit : NewDb_Lit_Lit_Type.t_lit) : NewDb_ClauseAllocator_ClauseAllocator_Type.t_clauseallocator
end
module NewDb_ClauseAllocator_Impl0_Push
use NewDb_Lit_Lit_Type as NewDb_Lit_Lit_Type
use NewDb_ClauseAllocator_ClauseAllocator_Type as NewDb_ClauseAllocator_ClauseAllocator_Type
function push [#"../NewDB/src/clause_allocator.rs" 44 4 44 46] (self : NewDb_ClauseAllocator_ClauseAllocator_Type.t_clauseallocator) (lit : NewDb_Lit_Lit_Type.t_lit) : NewDb_ClauseAllocator_ClauseAllocator_Type.t_clauseallocator
=
[#"../NewDB/src/clause_allocator.rs" 45 8 45 12] self
val push [#"../NewDB/src/clause_allocator.rs" 44 4 44 46] (self : NewDb_ClauseAllocator_ClauseAllocator_Type.t_clauseallocator) (lit : NewDb_Lit_Lit_Type.t_lit) : NewDb_ClauseAllocator_ClauseAllocator_Type.t_clauseallocator
ensures { result = push self lit }
end
module NewDb_ClauseAllocator_Impl0_Extended_Stub
use NewDb_ClauseAllocator_ClauseAllocator_Type as NewDb_ClauseAllocator_ClauseAllocator_Type
predicate extended [#"../NewDB/src/clause_allocator.rs" 49 4 49 62] (self : NewDb_ClauseAllocator_ClauseAllocator_Type.t_clauseallocator) (new : NewDb_ClauseAllocator_ClauseAllocator_Type.t_clauseallocator)
end
module NewDb_ClauseAllocator_Impl0_Extended_Interface
use NewDb_ClauseAllocator_ClauseAllocator_Type as NewDb_ClauseAllocator_ClauseAllocator_Type
predicate extended [#"../NewDB/src/clause_allocator.rs" 49 4 49 62] (self : NewDb_ClauseAllocator_ClauseAllocator_Type.t_clauseallocator) (new : NewDb_ClauseAllocator_ClauseAllocator_Type.t_clauseallocator)
end
module NewDb_ClauseAllocator_Impl0_Extended
use prelude.Int
use seq.Seq
use prelude.UIntSize
use Alloc_Alloc_Global_Type as Alloc_Alloc_Global_Type
use NewDb_Lit_Lit_Type as NewDb_Lit_Lit_Type
use Alloc_Vec_Vec_Type as Alloc_Vec_Vec_Type
clone Core_Num_Impl11_Max_Stub as Max0
clone CreusotContracts_Std1_Vec_Impl0_ShallowModel_Stub as ShallowModel0 with
type t = NewDb_Lit_Lit_Type.t_lit,
type a = Alloc_Alloc_Global_Type.t_global,
val Max0.mAX' = Max0.mAX',
axiom .
use NewDb_ClauseAllocator_ClauseAllocator_Type as NewDb_ClauseAllocator_ClauseAllocator_Type
predicate extended [#"../NewDB/src/clause_allocator.rs" 49 4 49 62] (self : NewDb_ClauseAllocator_ClauseAllocator_Type.t_clauseallocator) (new : NewDb_ClauseAllocator_ClauseAllocator_Type.t_clauseallocator)
=
[#"../NewDB/src/clause_allocator.rs" 50 8 54 9] forall i : int . 0 <= i /\ i < Seq.length (ShallowModel0.shallow_model (NewDb_ClauseAllocator_ClauseAllocator_Type.clauseallocator_buffer self)) -> Seq.get (ShallowModel0.shallow_model (NewDb_ClauseAllocator_ClauseAllocator_Type.clauseallocator_buffer self)) i = Seq.get (ShallowModel0.shallow_model (NewDb_ClauseAllocator_ClauseAllocator_Type.clauseallocator_buffer new)) i /\ UIntSize.to_int (NewDb_ClauseAllocator_ClauseAllocator_Type.clauseallocator_num_vars self) = UIntSize.to_int (NewDb_ClauseAllocator_ClauseAllocator_Type.clauseallocator_num_vars new) /\ Seq.length (ShallowModel0.shallow_model (NewDb_ClauseAllocator_ClauseAllocator_Type.clauseallocator_buffer self)) <= Seq.length (ShallowModel0.shallow_model (NewDb_ClauseAllocator_ClauseAllocator_Type.clauseallocator_buffer new))
val extended [#"../NewDB/src/clause_allocator.rs" 49 4 49 62] (self : NewDb_ClauseAllocator_ClauseAllocator_Type.t_clauseallocator) (new : NewDb_ClauseAllocator_ClauseAllocator_Type.t_clauseallocator) : bool
ensures { result = extended self new }
end
module Core_U32_Max_Stub
use prelude.Int
use prelude.UInt32
val constant mAX' : uint32
end
module Core_U32_Max
use prelude.Int
use prelude.UInt32
let constant mAX' : uint32 = [@vc:do_not_keep_trace] [@vc:sp]
(4294967295 : uint32)
end
module NewDb_ClauseAllocator_Impl1_Invariant_Stub
use NewDb_ClauseAllocator_ClauseAllocator_Type as NewDb_ClauseAllocator_ClauseAllocator_Type
predicate invariant' [#"../NewDB/src/clause_allocator.rs" 60 4 60 41] (self : NewDb_ClauseAllocator_ClauseAllocator_Type.t_clauseallocator)
end
module NewDb_ClauseAllocator_Impl1_Invariant_Interface
use NewDb_ClauseAllocator_ClauseAllocator_Type as NewDb_ClauseAllocator_ClauseAllocator_Type
predicate invariant' [#"../NewDB/src/clause_allocator.rs" 60 4 60 41] (self : NewDb_ClauseAllocator_ClauseAllocator_Type.t_clauseallocator)
end
module NewDb_ClauseAllocator_Impl1_Invariant
use seq.Seq
use prelude.UInt32
use prelude.Int
use NewDb_Lit_Lit_Type as NewDb_Lit_Lit_Type
clone Core_U32_Max_Stub as Max0
use NewDb_ClauseAllocator_ClauseAllocator_Type as NewDb_ClauseAllocator_ClauseAllocator_Type
clone NewDb_ClauseAllocator_Impl2_ShallowModel_Stub as ShallowModel0
predicate invariant' [#"../NewDB/src/clause_allocator.rs" 60 4 60 41] (self : NewDb_ClauseAllocator_ClauseAllocator_Type.t_clauseallocator)
=
[#"../NewDB/src/clause_allocator.rs" 61 20 61 44] Seq.length (ShallowModel0.shallow_model self) <= UInt32.to_int Max0.mAX'
val invariant' [#"../NewDB/src/clause_allocator.rs" 60 4 60 41] (self : NewDb_ClauseAllocator_ClauseAllocator_Type.t_clauseallocator) : bool
ensures { result = invariant' self }
end
module CreusotContracts_Model_ShallowModel_ShallowModelTy_Type
type self
type shallowModelTy
end
module CreusotContracts_Model_ShallowModel_ShallowModel_Stub
type self
clone CreusotContracts_Model_ShallowModel_ShallowModelTy_Type as ShallowModelTy0 with
type self = self
function shallow_model (self : self) : ShallowModelTy0.shallowModelTy
end
module CreusotContracts_Model_ShallowModel_ShallowModel_Interface
type self
clone CreusotContracts_Model_ShallowModel_ShallowModelTy_Type as ShallowModelTy0 with
type self = self
function shallow_model (self : self) : ShallowModelTy0.shallowModelTy
end
module CreusotContracts_Model_ShallowModel_ShallowModel
type self
clone CreusotContracts_Model_ShallowModel_ShallowModelTy_Type as ShallowModelTy0 with
type self = self
function shallow_model (self : self) : ShallowModelTy0.shallowModelTy
val shallow_model (self : self) : ShallowModelTy0.shallowModelTy
ensures { result = shallow_model self }
end
module CreusotContracts_Model_Impl1_ShallowModel_Stub
type t
use prelude.Borrow
clone CreusotContracts_Model_ShallowModel_ShallowModelTy_Type as ShallowModelTy0 with
type self = t
function shallow_model (self : t) : ShallowModelTy0.shallowModelTy
end
module CreusotContracts_Model_Impl1_ShallowModel_Interface
type t
use prelude.Borrow
clone CreusotContracts_Model_ShallowModel_ShallowModelTy_Type as ShallowModelTy0 with
type self = t
function shallow_model (self : t) : ShallowModelTy0.shallowModelTy
end
module CreusotContracts_Model_Impl1_ShallowModel
type t
use prelude.Borrow
clone CreusotContracts_Model_ShallowModel_ShallowModelTy_Type as ShallowModelTy0 with
type self = t
clone CreusotContracts_Model_ShallowModel_ShallowModel_Stub as ShallowModel0 with
type self = t,
type ShallowModelTy0.shallowModelTy = ShallowModelTy0.shallowModelTy
function shallow_model (self : t) : ShallowModelTy0.shallowModelTy =
ShallowModel0.shallow_model self
val shallow_model (self : t) : ShallowModelTy0.shallowModelTy
ensures { result = shallow_model self }
end
module CreusotContracts_Model_Impl3_ShallowModel_Stub
type t
use prelude.Borrow
clone CreusotContracts_Model_ShallowModel_ShallowModelTy_Type as ShallowModelTy0 with
type self = t
function shallow_model (self : borrowed t) : ShallowModelTy0.shallowModelTy
end
module CreusotContracts_Model_Impl3_ShallowModel_Interface
type t
use prelude.Borrow
clone CreusotContracts_Model_ShallowModel_ShallowModelTy_Type as ShallowModelTy0 with
type self = t
function shallow_model (self : borrowed t) : ShallowModelTy0.shallowModelTy
end