File tree Expand file tree Collapse file tree 2 files changed +6
-1
lines changed Expand file tree Collapse file tree 2 files changed +6
-1
lines changed Original file line number Diff line number Diff line change @@ -306,6 +306,8 @@ let app ?uid f ~arg =
306
306
let comp_unit ?uid s =
307
307
{ uid; desc = Comp_unit s; hash = Hashtbl. hash (hash_comp_unit, uid, s) }
308
308
309
+ let no_fuel_left ?uid s = { s with uid }
310
+
309
311
let decompose_abs t =
310
312
match t.desc with
311
313
| Abs (x , t ) -> Some (x, t)
@@ -591,7 +593,7 @@ end) = struct
591
593
proj ?uid t item
592
594
| NLeaf -> leaf' uid
593
595
| NComp_unit s -> comp_unit ?uid s
594
- | NoFuelLeft t -> { t with uid }
596
+ | NoFuelLeft t -> no_fuel_left ? uid t
595
597
596
598
let reduce global_env t =
597
599
let fuel = ref Params. fuel in
Original file line number Diff line number Diff line change @@ -88,6 +88,9 @@ val app : ?uid:Uid.t -> t -> arg:t -> t
88
88
val str : ?uid : Uid .t -> t Item.Map .t -> t
89
89
val proj : ?uid : Uid .t -> t -> Item .t -> t
90
90
val leaf : Uid .t -> t
91
+ val leaf' : Uid .t option -> t
92
+ val no_fuel_left : ?uid : Uid .t -> t -> t
93
+ val comp_unit : ?uid : Uid .t -> string -> t
91
94
92
95
val decompose_abs : t -> (var * t ) option
93
96
You can’t perform that action at this time.
0 commit comments