Skip to content

Commit

Permalink
wip
Browse files Browse the repository at this point in the history
  • Loading branch information
artoy committed Mar 20, 2024
1 parent 3d5a9b8 commit bcdd83e
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/ownershipInference.ml
Original file line number Diff line number Diff line change
Expand Up @@ -794,8 +794,8 @@ let rec process_expr ~output ((e_id,_),expr) ~o_arity =
split_loop r (o1 :: ol1) (o2 :: ol2)
in
let%bind (ol1, ol2) = split_loop ol [] [] in
let%bind o_copied = alloc_ovar (SBind e_id) (P.var v) in
constrain_eq ~src:o_copied ~dst:List.hd @@ List.rev ol2 >>
let%bind o_copied = alloc_ovar (MGen e_id) (P.var v) in
add_constraint (Eq (o_copied, List.hd @@ List.rev ol1)) >>
return (IntList ol1, Ref(IntList((List.tl ol2) @ [o_copied]), List.hd ol2))
| _ -> failwith "The value pattern matched must be IntList"
in
Expand Down

0 comments on commit bcdd83e

Please sign in to comment.