Skip to content

Commit 25f2b86

Browse files
committed
Fix analysis test
1 parent 3cd436f commit 25f2b86

1 file changed

Lines changed: 4 additions & 2 deletions

File tree

analysis/reanalyze/src/Arnold.ml

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -970,9 +970,11 @@ module Compile = struct
970970
| Texp_try (e, cases, finally_expr) ->
971971
let cE = e |> expression ~ctx in
972972
let cCases = cases |> List.map (case ~ctx) |> Command.nondet in
973-
let cFinally = finally_expr |> expressionOpt ~ctx in
974973
let open Command in
975-
cE +++ cCases +++ cFinally
974+
begin match finally_expr with
975+
| Some finally -> cE +++ cCases +++ (finally |> expression ~ctx)
976+
| None -> cE +++ cCases
977+
end
976978
| Texp_variant (_label, eOpt) -> eOpt |> expressionOpt ~ctx
977979
| Texp_while _ ->
978980
notImplemented "Texp_while";

0 commit comments

Comments
 (0)