-
-
Notifications
You must be signed in to change notification settings - Fork 0
/
lxr.mli
1649 lines (1030 loc) · 35.1 KB
/
lxr.mli
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
val negb : bool -> bool
type nat =
| O
| S of nat
val fst : ('a1 * 'a2) -> 'a1
val snd : ('a1 * 'a2) -> 'a2
val length : 'a1 list -> nat
val app : 'a1 list -> 'a1 list -> 'a1 list
type comparison =
| Eq
| Lt
| Gt
val add : nat -> nat -> nat
val eqb : nat -> nat -> bool
val leb : nat -> nat -> bool
type positive =
| XI of positive
| XO of positive
| XH
type n =
| N0
| Npos of positive
type z =
| Z0
| Zpos of positive
| Zneg of positive
module type EqLtLe =
sig
type t
end
module MakeOrderTac :
functor (O:EqLtLe) ->
functor (P:sig
end) ->
sig
end
module Pos :
sig
type mask =
| IsNul
| IsPos of positive
| IsNeg
end
module Coq_Pos :
sig
val succ : positive -> positive
val add : positive -> positive -> positive
val add_carry : positive -> positive -> positive
val pred_double : positive -> positive
type mask = Pos.mask =
| IsNul
| IsPos of positive
| IsNeg
val succ_double_mask : mask -> mask
val double_mask : mask -> mask
val double_pred_mask : positive -> mask
val sub_mask : positive -> positive -> mask
val sub_mask_carry : positive -> positive -> mask
val mul : positive -> positive -> positive
val compare_cont : comparison -> positive -> positive -> comparison
val compare : positive -> positive -> comparison
val min : positive -> positive -> positive
val max : positive -> positive -> positive
val eqb : positive -> positive -> bool
val iter_op : ('a1 -> 'a1 -> 'a1) -> positive -> 'a1 -> 'a1
val to_nat : positive -> nat
val of_nat : nat -> positive
val of_succ_nat : nat -> positive
end
module N :
sig
val succ_double : n -> n
val double : n -> n
val add : n -> n -> n
val sub : n -> n -> n
val mul : n -> n -> n
val compare : n -> n -> comparison
val eqb : n -> n -> bool
val leb : n -> n -> bool
val ltb : n -> n -> bool
val pos_div_eucl : positive -> n -> n * n
val div_eucl : n -> n -> n * n
val div : n -> n -> n
val to_nat : n -> nat
val of_nat : nat -> n
end
val removelast : 'a1 list -> 'a1 list
val rev : 'a1 list -> 'a1 list
val map : ('a1 -> 'a2) -> 'a1 list -> 'a2 list
val fold_left : ('a1 -> 'a2 -> 'a1) -> 'a2 list -> 'a1 -> 'a1
val fold_right : ('a2 -> 'a1 -> 'a1) -> 'a1 -> 'a2 list -> 'a1
val filter : ('a1 -> bool) -> 'a1 list -> 'a1 list
val seq : nat -> nat -> nat list
val compare0 : char -> char -> comparison
val compare1 : string -> string -> comparison
module Conversion :
sig
val pos2N : positive -> n
val nat2N : nat -> n
val i2p : int -> positive
val p2i : positive -> int
val i2z : int -> z
val z2i : z -> int
val i2n : int -> n
val n2i : n -> int
val i2s : int -> string
end
module Nchunks :
sig
val max_n : positive
val min_n : positive
module Private :
sig
type t = positive
val from_positive : positive -> t
val from_int : int -> t
val to_positive : t -> positive
val to_N : t -> n
end
type t = Private.t
val from_positive : positive -> Private.t
val from_int : int -> Private.t
val to_positive : Private.t -> positive
val to_N : Private.t -> n
end
module Cstdio :
sig
type coq_EncryptionState =
| Plain
| Encrypted
val coq_EncryptionState_rect : 'a1 -> 'a1 -> coq_EncryptionState -> 'a1
val coq_EncryptionState_rec : 'a1 -> 'a1 -> coq_EncryptionState -> 'a1
type cstdio_buffer = Mlcpp_cstdio.Cstdio.File.Buffer.ta
type mode = string
val read_mode : mode
val write_mode : mode
val write_new_mode : mode
val append_mode : mode
type fptr = Mlcpp_cstdio.Cstdio.File.file
val fopen : string -> mode -> fptr option
val fclose : fptr -> unit option
val fflush : fptr -> fptr option
val fread : fptr -> n -> (n * cstdio_buffer) option
val fwrite : fptr -> n -> cstdio_buffer -> n option
val ftell : fptr -> n option
val fseek : fptr -> n -> fptr option
module type BUF =
sig
type buffer_t
val buffer_create : n -> buffer_t
val buffer_len : buffer_t -> n
val calc_checksum : buffer_t -> string
val copy_sz_pos : buffer_t -> n -> n -> buffer_t -> n -> n
val from_buffer : cstdio_buffer -> buffer_t
val to_buffer : buffer_t -> cstdio_buffer
val state : coq_EncryptionState
end
module BufferEncrypted :
BUF
module BufferPlain :
BUF
val cpp_encrypt_buffer :
BufferPlain.buffer_t -> string -> string -> BufferEncrypted.buffer_t
val encrypt :
BufferPlain.buffer_t -> string -> string -> BufferEncrypted.buffer_t
val cpp_decrypt_buffer :
BufferEncrypted.buffer_t -> string -> string -> BufferPlain.buffer_t
val decrypt :
BufferEncrypted.buffer_t -> string -> string -> BufferPlain.buffer_t
val cpp_ranbuf128 : unit -> cstdio_buffer
val ranbuf128 : unit -> BufferPlain.buffer_t
end
module Tracer :
sig
type loglevel =
| Coq_debug
| Coq_info
| Coq_warning
| Coq_error
val loglevel_rect : 'a1 -> 'a1 -> 'a1 -> 'a1 -> loglevel -> 'a1
val loglevel_rec : 'a1 -> 'a1 -> 'a1 -> 'a1 -> loglevel -> 'a1
type tracer = { logDebug : (string -> unit option);
logInfo : (string -> unit option);
logWarning : (string -> unit option);
logError : (string -> unit option) }
val logDebug : tracer -> string -> unit option
val logInfo : tracer -> string -> unit option
val logWarning : tracer -> string -> unit option
val logError : tracer -> string -> unit option
val ignore : 'a1 -> unit option
val nullTracer : tracer
val output_stdout : loglevel -> string -> unit option
val stdoutTracerDebug : tracer
val stdoutTracerInfo : tracer
val stdoutTracerWarning : tracer
val stdoutTracerError : tracer
val log : tracer -> loglevel -> string -> unit option
val conditionalTrace :
tracer -> bool -> loglevel -> string option -> (unit -> 'a1 option) ->
loglevel -> string option -> (unit -> 'a1 option) -> 'a1 option
val optionalTrace :
tracer -> 'a2 option -> loglevel -> string option -> (unit -> 'a1 option)
-> loglevel -> string option -> ('a2 -> 'a1 option) -> 'a1 option
end
module Configuration :
sig
type configuration = { config_nchunks : Nchunks.t; path_chunks : string;
path_db : string; my_id : string;
trace : Tracer.tracer }
val config_nchunks : configuration -> Nchunks.t
val path_chunks : configuration -> string
val path_db : configuration -> string
val my_id : configuration -> string
val trace : configuration -> Tracer.tracer
end
module Filesystem :
sig
type path = Mlcpp_filesystem.Filesystem.path
module Path :
sig
val to_string : path -> string
val from_string : string -> path
val append : path -> path -> path
val temp_directory : unit -> path
val file_exists : path -> bool
val file_size : path -> n
val filename : path -> path
val extension : path -> path
val parent : path -> path
val root : path -> path
val absolute : path -> path option
val relative : path -> path option
val proximate : path -> path option
val canonical : path -> path option
val weakly_canonical : path -> path option
val path_type : path -> string
val is_regular_file : path -> bool
val is_directory : path -> bool
val is_fifo : path -> bool
val is_block_file : path -> bool
val is_character_file : path -> bool
val is_socket : path -> bool
val is_symlink : path -> bool
val is_other : path -> bool
end
module Permissions :
sig
type permissions = Mlcpp_filesystem.Filesystem.Permissions.permissions
val get : path -> permissions option
val set : path -> permissions -> bool
val add : path -> permissions -> bool
val remove : path -> permissions -> bool
val to_string : permissions -> string
val to_dec : permissions -> positive
val to_oct : permissions -> positive
val from_oct : positive -> permissions
end
val get_cwd : unit -> path
val set_cwd : path -> bool
val copy : path -> path -> bool
val copy_file : path -> path -> bool
val copy_symlink : path -> path -> bool
val create_directory : path -> bool
val create_directories : path -> bool
val create_hard_link : path -> path -> bool
val create_symlink : path -> path -> bool
val create_directory_symlink : path -> path -> bool
val equivalent : path -> path -> bool
val hard_link_count : path -> positive
val read_symlink : path -> path option
val remove : path -> bool
val remove_all : path -> positive
val rename : path -> path -> bool
val resize_file : path -> n -> bool
val space : path -> n list
type direntry = Mlcpp_filesystem.Filesystem.direntry
module Direntry :
sig
val as_path : direntry -> path
val as_string : direntry -> string
val direntry_exists : direntry -> bool
val is_regular_file : direntry -> bool
val is_block_file : direntry -> bool
val is_character_file : direntry -> bool
val is_directory : direntry -> bool
val is_fifo : direntry -> bool
val is_other : direntry -> bool
val is_socket : direntry -> bool
val is_symlink : direntry -> bool
val file_size : direntry -> n
val hard_link_count : direntry -> n
end
val list_directory : path -> 'a1 -> (direntry -> 'a1 -> 'a1) -> 'a1
end
module Utilities :
sig
val make_list : positive -> positive list
val drop_list : nat -> 'a1 list -> 'a1 list
val take_list : nat -> 'a1 list -> 'a1 list
val rnd : n -> n
val rnd256 : string -> string
val sha3_256 : string -> string
end
module Assembly :
sig
val chunkwidth : positive
val chunklength : positive
val chunksize : positive
val chunksize_N : n
val assemblysize : Nchunks.Private.t -> n
type aid_t = string
val mkaid : Configuration.configuration -> aid_t
type snapshot_t = positive
type assemblyinformation = { nchunks : Nchunks.Private.t; aid : aid_t;
apos : n }
val nchunks : assemblyinformation -> Nchunks.Private.t
val aid : assemblyinformation -> aid_t
val apos : assemblyinformation -> n
type keyinformation = { ivec : string; pkey : string;
localnchunks : positive }
val ivec : keyinformation -> string
val pkey : keyinformation -> string
val localnchunks : keyinformation -> positive
type blockinformation = { blockid : positive; bchecksum : string;
blocksize : n; filepos : n; blockaid : aid_t;
blockapos : n }
val blockid : blockinformation -> positive
val bchecksum : blockinformation -> string
val blocksize : blockinformation -> n
val filepos : blockinformation -> n
val blockaid : blockinformation -> aid_t
val blockapos : blockinformation -> n
module type ASS =
sig
type coq_B
val create : Configuration.configuration -> assemblyinformation * coq_B
val buffer_len : coq_B -> n
val calc_checksum : coq_B -> string
end
module AssemblyPlainWritable :
ASS
module AssemblyEncrypted :
ASS
module AssemblyPlainFull :
ASS
val set_apos : assemblyinformation -> n -> assemblyinformation
val id_assembly_full_ainfo_from_writable :
assemblyinformation -> assemblyinformation
val id_assembly_full_buffer_from_writable :
AssemblyPlainWritable.coq_B -> AssemblyPlainFull.coq_B
val finish :
assemblyinformation -> AssemblyPlainWritable.coq_B ->
assemblyinformation * AssemblyPlainFull.coq_B
val assembly_add_content :
Cstdio.BufferPlain.buffer_t -> n -> n -> AssemblyPlainWritable.coq_B -> n
val backup :
assemblyinformation -> AssemblyPlainWritable.coq_B -> n ->
Cstdio.BufferPlain.buffer_t -> assemblyinformation * blockinformation
val id_buffer_t_from_full :
AssemblyPlainFull.coq_B -> Cstdio.BufferPlain.buffer_t
val id_assembly_enc_buffer_t_from_buf :
Cstdio.BufferEncrypted.buffer_t -> AssemblyEncrypted.coq_B
val encrypt :
assemblyinformation -> AssemblyPlainFull.coq_B -> keyinformation ->
(assemblyinformation * AssemblyEncrypted.coq_B) option
val assembly_get_content :
AssemblyPlainFull.coq_B -> n -> n -> Cstdio.BufferPlain.buffer_t -> n
val restore :
AssemblyPlainFull.coq_B -> blockinformation ->
Cstdio.BufferPlain.buffer_t option
val id_buffer_t_from_enc :
AssemblyEncrypted.coq_B -> Cstdio.BufferEncrypted.buffer_t
val id_assembly_plain_buffer_t_from_buf :
Cstdio.BufferPlain.buffer_t -> AssemblyPlainFull.coq_B
val decrypt :
assemblyinformation -> AssemblyEncrypted.coq_B -> keyinformation ->
(assemblyinformation * AssemblyPlainFull.coq_B) option
val chunk_identifier :
Configuration.configuration -> aid_t -> positive -> string
val chunk_identifier_path :
Configuration.configuration -> aid_t -> positive -> string
val load_chunk_from_path : string -> Cstdio.BufferEncrypted.buffer_t option
val id_enc_from_buffer_t :
Cstdio.BufferEncrypted.buffer_t -> AssemblyEncrypted.coq_B
val recall :
Configuration.configuration -> assemblyinformation ->
(assemblyinformation * AssemblyEncrypted.coq_B) option
val store_chunk_to_path :
string -> n -> n -> Cstdio.BufferEncrypted.buffer_t -> n
val extract :
Configuration.configuration -> assemblyinformation ->
AssemblyEncrypted.coq_B -> n
end
module Filesupport :
sig
type filename = string
type fileinformation = { fname : filename; fhash : string; fsize :
n; fowner : string; fpermissions : n;
fmodified : string; fchecksum : string }
val fname : fileinformation -> filename
val fhash : fileinformation -> string
val fsize : fileinformation -> n
val fowner : fileinformation -> string
val fpermissions : fileinformation -> n
val fmodified : fileinformation -> string
val fchecksum : fileinformation -> string
val get_file_information :
Configuration.configuration -> filename -> fileinformation
end
module Store :
sig
type 'kVs store = { sconfig : Configuration.configuration; entries : 'kVs }
val sconfig : 'a1 store -> Configuration.configuration
val entries : 'a1 store -> 'a1
val rec_find : string -> (string * 'a1) list -> 'a1 option
val rec_find_all : string -> (string * 'a1) list -> 'a1 list -> 'a1 list
module type STORE =
sig
type coq_K
type coq_V
type coq_KVs
type coq_R
val init : Configuration.configuration -> coq_R
val add : coq_K -> coq_V -> coq_R -> coq_R
val find : coq_K -> coq_R -> coq_V option
val find_all : coq_K -> coq_R -> coq_V list
end
module KeyListStore :
sig
type coq_K = Assembly.aid_t
type coq_V = Assembly.keyinformation
type coq_KVs = (coq_K * coq_V) list
type coq_R = coq_KVs store
val init : Configuration.configuration -> coq_R
val add : coq_K -> coq_V -> coq_R -> coq_R
val find : coq_K -> coq_R -> coq_V option
val find_all : coq_K -> coq_R -> coq_V list
end
module FBlockListStore :
sig
type coq_K = string
type coq_V = Assembly.blockinformation
type coq_KVs = (coq_K * coq_V) list
type coq_R = coq_KVs store
val init : Configuration.configuration -> coq_R
val add : coq_K -> coq_V -> coq_R -> coq_R
val find : coq_K -> coq_R -> coq_V option
val find_all : coq_K -> coq_R -> coq_V list
end
module FileinformationStore :
sig
type coq_K = string
type coq_V = Filesupport.fileinformation
type coq_KVs = (coq_K * coq_V) list
type coq_R = coq_KVs store
val init : Configuration.configuration -> coq_R
val add : coq_K -> coq_V -> coq_R -> coq_R
val find : coq_K -> coq_R -> coq_V option
val find_all : coq_K -> coq_R -> coq_V list
end
end
module Environment :
sig
type 'aB environment = { cur_assembly : Assembly.assemblyinformation;
cur_buffer : 'aB;
econfig : Configuration.configuration }
val cur_assembly : 'a1 environment -> Assembly.assemblyinformation
val cur_buffer : 'a1 environment -> 'a1
val econfig : 'a1 environment -> Configuration.configuration
val cpp_mk_key256 : unit -> string
val cpp_mk_key128 : unit -> string
module type ENV =
sig
type coq_AB
type coq_E = coq_AB environment
val initial_environment : Configuration.configuration -> coq_E
end
module EnvironmentWritable :
sig
type coq_AB = Assembly.AssemblyPlainWritable.coq_B
type coq_E = coq_AB environment
val initial_environment : Configuration.configuration -> coq_E
val recreate_assembly : coq_AB environment -> coq_AB environment
val finalise_assembly :
coq_AB environment -> (Assembly.aid_t * Assembly.keyinformation) option
val finalise_and_recreate_assembly :
coq_AB environment -> (coq_AB
environment * (Assembly.aid_t * Assembly.keyinformation)) option
val backup :
coq_AB environment -> string -> n -> Cstdio.BufferPlain.buffer_t ->
coq_AB
environment * (Assembly.blockinformation * (Assembly.aid_t * Assembly.keyinformation)
option)
end
module EnvironmentReadable :
sig
type coq_AB = Assembly.AssemblyPlainFull.coq_B
type coq_E = coq_AB environment
val initial_environment : Configuration.configuration -> coq_E
val restore_assembly :
coq_AB environment -> Assembly.aid_t -> Assembly.keyinformation ->
coq_AB environment option
end
end
module AssemblyCache :
sig
type readqueueentity = { rqaid : Assembly.aid_t; rqapos : n; rqrlen :
n; rqfpos : n }
val rqaid : readqueueentity -> Assembly.aid_t
val rqapos : readqueueentity -> n
val rqrlen : readqueueentity -> n
val rqfpos : readqueueentity -> n
type readqueueresult = { readrequest : readqueueentity;
rresult : Cstdio.BufferPlain.buffer_t }
val readrequest : readqueueresult -> readqueueentity
val rresult : readqueueresult -> Cstdio.BufferPlain.buffer_t
type writequeueentity = { qfhash : string; qfpos : n;
qbuffer : Cstdio.BufferPlain.buffer_t }
val qfhash : writequeueentity -> string
val qfpos : writequeueentity -> n
val qbuffer : writequeueentity -> Cstdio.BufferPlain.buffer_t
val qsize : positive
type readqueue = { rqueue : readqueueentity list; rqueuesz : positive }
val rqueue : readqueue -> readqueueentity list
val rqueuesz : readqueue -> positive
type writequeue = { wqueue : writequeueentity list; wqueuesz : positive }
val wqueue : writequeue -> writequeueentity list
val wqueuesz : writequeue -> positive
type assemblycache = { acenvs : Environment.EnvironmentReadable.coq_E list;
acsize : nat;
acwriteenv : Environment.EnvironmentWritable.coq_E;
acconfig : Configuration.configuration;
acwriteq : writequeue; acreadq : readqueue;
acfbstore : Store.FBlockListStore.coq_R;
ackstore : Store.KeyListStore.coq_R;
acfistore : Store.FileinformationStore.coq_R }
val acenvs : assemblycache -> Environment.EnvironmentReadable.coq_E list
val acsize : assemblycache -> nat
val acwriteenv : assemblycache -> Environment.EnvironmentWritable.coq_E
val acconfig : assemblycache -> Configuration.configuration
val acwriteq : assemblycache -> writequeue
val acreadq : assemblycache -> readqueue
val acfbstore : assemblycache -> Store.FBlockListStore.coq_R
val ackstore : assemblycache -> Store.KeyListStore.coq_R
val acfistore : assemblycache -> Store.FileinformationStore.coq_R
val prepare_assemblycache :
Configuration.configuration -> positive -> assemblycache
val enqueue_write_request :
assemblycache -> writequeueentity -> bool * assemblycache
val enqueue_read_request :
assemblycache -> readqueueentity -> bool * assemblycache
val try_restore_assembly :
assemblycache -> Assembly.aid_t -> Environment.EnvironmentReadable.coq_E
option
val set_envs :
assemblycache -> Environment.EnvironmentReadable.coq_E list ->
assemblycache
val add_fileinformation :
assemblycache -> Filesupport.fileinformation -> assemblycache
val add_fileblockinformation :
assemblycache -> string -> Assembly.blockinformation -> assemblycache
val ensure_assembly :
assemblycache -> Assembly.aid_t ->
(Environment.EnvironmentReadable.coq_E * assemblycache) option
val run_read_requests :
assemblycache -> readqueueentity list -> readqueueresult list ->
readqueueresult list * assemblycache
val run_write_requests :
assemblycache -> writequeueentity list -> assemblycache
val iterate_read_queue :
assemblycache -> readqueueresult list * assemblycache
val iterate_write_queue : assemblycache -> assemblycache
val flush : assemblycache -> assemblycache
val close : assemblycache -> assemblycache
val add_key :
assemblycache -> Assembly.aid_t -> Assembly.keyinformation ->
assemblycache
end
type 'x compare2 =
| LT
| EQ
| GT
module type OrderedType =
sig
type t
val compare : t -> t -> t compare2
val eq_dec : t -> t -> bool
end
module OrderedTypeFacts :
functor (O:OrderedType) ->
sig
module TO :
sig
type t = O.t
end
module IsTO :
sig
end
module OrderTac :
sig
end
val eq_dec : O.t -> O.t -> bool
val lt_dec : O.t -> O.t -> bool
val eqb : O.t -> O.t -> bool
end
module KeyOrderedType :
functor (O:OrderedType) ->
sig
module MO :
sig
module TO :
sig
type t = O.t
end