Skip to content

Commit

Permalink
Alternative fix for Closure
Browse files Browse the repository at this point in the history
  • Loading branch information
lthls committed Oct 5, 2021
1 parent 2a3ba07 commit 00dce89
Showing 1 changed file with 2 additions and 4 deletions.
6 changes: 2 additions & 4 deletions middle_end/closure/closure.ml
Expand Up @@ -527,8 +527,6 @@ let simplif_prim ~backend fpc p (args, approxs as args_approxs) dbg =

let approx_ulam = function
Uconst c -> Value_const c
| Uprim (P.Pmakeblock (_, _, _), l, _) ->
Value_tuple (Array.make (List.length l) Value_unknown)
| _ -> Value_unknown

let find_action idxs acts tag =
Expand Down Expand Up @@ -669,8 +667,8 @@ let rec substitute loc ((backend, fpc) as st) sb rn ulam =
substitute loc st sb rn u2
else
substitute loc st sb rn u3
| Uprim(P.Pmakeblock _, _, _) ->
substitute loc st sb rn u2
| Uprim(P.Pisint, [Uprim (P.Pmakeblock _, _, _)], _) ->
substitute loc st sb rn u3
| su1 ->
Uifthenelse(su1, substitute loc st sb rn u2,
substitute loc st sb rn u3)
Expand Down

0 comments on commit 00dce89

Please sign in to comment.