Skip to content

Commit 4fb6e45

Browse files
committed
Remove unnecessary rec in MCP.inner_ctx
1 parent 9a40c79 commit 4fb6e45

File tree

1 file changed

+8
-11
lines changed

1 file changed

+8
-11
lines changed

src/analyses/mCP.ml

Lines changed: 8 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -328,17 +328,14 @@ struct
328328
| Some splits -> (fun d es -> splits := (n,(repr d,es)) :: !splits)
329329
| None -> (fun _ _ -> failwith ("Cannot \"split\" in " ^ tfname ^ " context."))
330330
in
331-
let rec ctx' =
332-
{ ctx with
333-
local = obj d
334-
; context = (fun () -> ctx.context () |> assoc n |> obj)
335-
; postsub= assoc_sub post_all
336-
; global = (fun v -> ctx.global (v_of n v) |> g_to n |> obj)
337-
; split
338-
; sideg = (fun v g -> ctx.sideg (v_of n v) (g_of n g))
339-
}
340-
in
341-
ctx'
331+
{ ctx with
332+
local = obj d
333+
; context = (fun () -> ctx.context () |> assoc n |> obj)
334+
; postsub= assoc_sub post_all
335+
; global = (fun v -> ctx.global (v_of n v) |> g_to n |> obj)
336+
; split
337+
; sideg = (fun v g -> ctx.sideg (v_of n v) (g_of n g))
338+
}
342339

343340
and assign (ctx:(D.t, G.t, C.t, V.t) ctx) l e =
344341
let spawns = ref [] in

0 commit comments

Comments
 (0)