Skip to content

Commit

Permalink
Improve some comments in the residualizer
Browse files Browse the repository at this point in the history
  • Loading branch information
hirrolot committed Dec 25, 2024
1 parent 706d296 commit 972aa02
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions lib/mechanics/residualizer.ml
Original file line number Diff line number Diff line change
Expand Up @@ -143,15 +143,14 @@ end = struct
let node_id = Gensym.emit node_gensym in
match Symbol_map.find_opt node_id graph_metadata.symbol_table with
| Some (f, params) ->
(* This will be the body of [f]; do not make any substitution. *)
let t_res = k Symbol_map.empty in
(* [params] contains all free variables in [t_res]. *)
f_rules
:= Postprocessor.handle_rule
~fresh_to_source_vars:graph_metadata.fresh_to_source_vars
([], f, params, t_res)
:: !f_rules;
(* Some parameters may refer to bound variables; substitute. *)
(* Some parameters may refer to bound environment variables; we must therefore
replace them with their definitions. *)
Raw_term.Call (f, List.map (query_env ~env) params)
| None -> k env
;;
Expand Down

0 comments on commit 972aa02

Please sign in to comment.