Skip to content

Commit

Permalink
debug
Browse files Browse the repository at this point in the history
  • Loading branch information
msprotz committed Feb 5, 2025
1 parent f24deef commit 87fe978
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion lib/OptimizeMiniRust.ml
Original file line number Diff line number Diff line change
Expand Up @@ -101,7 +101,8 @@ let distill ts =
(* Get the type of the arguments of `name`, based on the current state of
`valuation` *)
let lookup env valuation name =
(* KPrint.bprintf "lookup: %a\n" PrintMiniRust.pname name; *)
if not (NameMap.mem name env.signatures) then
KPrint.bprintf "ERROR looking up: %a\n" PrintMiniRust.pname name;
let ts = NameMap.find name env.signatures in
adjust ts (valuation name)

Expand Down

0 comments on commit 87fe978

Please sign in to comment.