1414
1515module FunctionArgs = struct
1616 type arg = {label : string ; functionName : FunctionName .t }
17-
1817 type t = arg list
1918
2019 let empty = []
21-
2220 let argToString {label; functionName} = label ^ " :" ^ functionName
2321
2422 let toString functionArgs =
@@ -82,17 +80,11 @@ module FunctionCallSet = Set.Make (FunctionCall)
8280
8381module Stats = struct
8482 let nCacheChecks = ref 0
85-
8683 let nCacheHits = ref 0
87-
8884 let nFiles = ref 0
89-
9085 let nFunctions = ref 0
91-
9286 let nHygieneErrors = ref 0
93-
9487 let nInfiniteLoops = ref 0
95-
9688 let nRecursiveBlocks = ref 0
9789
9890 let print ppf () =
@@ -107,7 +99,6 @@ module Stats = struct
10799 Format. fprintf ppf " @]"
108100
109101 let dump ~ppf = Format. fprintf ppf " %a@." print ()
110-
111102 let newFile () = incr nFiles
112103
113104 let newRecursiveFunctions ~numFunctions =
@@ -246,7 +237,6 @@ module Trace = struct
246237 | _ -> Tseq [t1; t2]
247238
248239 let some = Toption Rsome
249-
250240 let none = Toption Rnone
251241
252242 let retOptionToString r =
@@ -273,21 +263,15 @@ module Values : sig
273263 type t
274264
275265 val getNone : t -> Progress .t option
276-
277266 val getSome : t -> Progress .t option
278-
279267 val nd : t -> t -> t
280-
281268 val none : progress :Progress .t -> t
282-
283269 val some : progress :Progress .t -> t
284-
285270 val toString : t -> string
286271end = struct
287272 type t = {none : Progress .t option ; some : Progress .t option }
288273
289274 let getNone {none} = none
290-
291275 let getSome {some} = some
292276
293277 let toString x =
@@ -299,7 +283,6 @@ end = struct
299283 |> String. concat " , "
300284
301285 let none ~progress = {none = Some progress; some = None }
302-
303286 let some ~progress = {none = None ; some = Some progress}
304287
305288 let nd (v1 : t ) (v2 : t ) : t =
384367
385368module Command = struct
386369 type progress = Progress .t
387-
388370 type retOption = Trace .retOption
389371
390372 type t =
450432
451433module Kind = struct
452434 type t = entry list
453-
454435 and entry = {label : string ; k : t }
455436
456437 let empty = ([] : t )
@@ -502,7 +483,6 @@ module FunctionTable = struct
502483 Format. fprintf ppf " @]"
503484
504485 let dump tbl = Format. fprintf Format. std_formatter " %a@." print tbl
505-
506486 let initialFunctionDefinition () = {kind = Kind. empty; body = None }
507487
508488 let getFunctionDefinition ~functionName (tbl : t ) =
@@ -1034,7 +1014,6 @@ end
10341014
10351015module CallStack = struct
10361016 type frame = {frameNumber : int ; pos : Lexing .position }
1037-
10381017 type t = {tbl : (FunctionCall .t , frame ) Hashtbl .t ; mutable size : int }
10391018
10401019 let create () = {tbl = Hashtbl. create 1 ; size = 0 }
@@ -1072,7 +1051,6 @@ end
10721051
10731052module Eval = struct
10741053 type progress = Progress .t
1075-
10761054 type cache = (FunctionCall .t , State .t ) Hashtbl .t
10771055
10781056 let createCache () : cache = Hashtbl. create 1
0 commit comments