Skip to content

Commit

Permalink
Fix counting of arrow solutions
Browse files Browse the repository at this point in the history
  • Loading branch information
FardaleM committed Aug 30, 2024
1 parent 29010f2 commit 829678b
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/unification/Unification.ml
Original file line number Diff line number Diff line change
Expand Up @@ -109,12 +109,12 @@ and solve_arrow_problem env0 { ArrowTerm.left; right } =
]
in
potentials |> Iter.of_list
|> Trace.wrap_arrow_sol
|> Iter.flat_map (fun (desc, f) ->
Trace.wrap_iter ~__FUNCTION__ ~__FILE__ ~__LINE__
("Solve_arrow sub problem: " ^ desc )
~data:(fun () -> [ ("case", `String desc); "pb", `String pb ])
(try_with_solution env0 f ()))
|> Trace.wrap_arrow_sol

and try_with_solution : type a. _ -> (Env.t -> a -> return) -> a -> _ =
fun env f sol k ->
Expand Down

0 comments on commit 829678b

Please sign in to comment.