Skip to content

Commit

Permalink
up
Browse files Browse the repository at this point in the history
  • Loading branch information
guillaumeduhamel committed Nov 23, 2023
1 parent 5beea17 commit 2523240
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion src/gen_michelson.ml
Original file line number Diff line number Diff line change
Expand Up @@ -1934,7 +1934,7 @@ let rec instruction_to_code env (i : T.instruction) : T.code * env =
match b with
| [] -> []
| hd::t -> begin
let nhd = assign_last_seq debug [hd] in
let nhd = if (match ids with | [id] -> String.equal (String.sub id 0 1) "_" | _ -> false) then [hd] else assign_last_seq debug [hd] in
nhd @ t
end
in
Expand All @@ -1947,6 +1947,11 @@ let rec instruction_to_code env (i : T.instruction) : T.code * env =
| 1 -> b @ (if si.populated then [T.cswap (); T.cdrop 1 ] else [])
| _ -> b @ (if si.populated then [T.cdip (idx, [T.cdrop 1])] else [])
in
let c =
if (match ids with | [id] -> String.equal (String.sub id 0 1) "_" | _ -> false)
then let debug = process_debug ?loc:i.loc env in assign_last_seq debug c
else c
in
(* print_env ~str:("IletIn " ^ id ^ " final") nenv; *)
c, env
end ) ([v; b], env) ids
Expand Down

0 comments on commit 2523240

Please sign in to comment.