We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 55d3203 commit ff43526Copy full SHA for ff43526
1 file changed
spectec/src/il2al/transpile.ml
@@ -1166,8 +1166,9 @@ let handle_unframed_algo instrs =
1166
1167
let post_instr instr =
1168
let ret =
1169
- match !frame_arg with
1170
- | Some { it = ExpA f; _ } ->
+ match instr.it, !frame_arg with
+ | IfI _, _ -> [instr]
1171
+ | _, Some { it = ExpA f; _ } -> (* Ignore if current instr is IfI *)
1172
let zeroE = natE Z.zero ~note:natT in
1173
let frame = frameE (zeroE, postprocess_frame f) ~at:f.at ~note:evalctxT in
1174
let _f = frameE (zeroE, varE "_f" ~note:f.note) ~note:evalctxT in
0 commit comments