Skip to content

Commit

Permalink
Minor change to ID assignment.
Browse files Browse the repository at this point in the history
  • Loading branch information
DavidFangWJ committed Feb 7, 2025
1 parent cb0f870 commit 81675d3
Showing 1 changed file with 2 additions and 7 deletions.
9 changes: 2 additions & 7 deletions src/haz3lcore/statics/Statics.re
Original file line number Diff line number Diff line change
Expand Up @@ -438,14 +438,9 @@ and uexp_to_info_map =
| Let(p, def, body) =>
switch (check_annotated_function(p)) {
| Some((f_name, f_args, f_type)) =>
let def: UExp.t = {
ids: p.ids, // the ID of the original application statement
term: UExp.Fun(f_args, def, None, None),
copied: false,
};
let def: UExp.t = UExp.Fun(f_args, def, None, None) |> UExp.fresh;
let p: UPat.t =
UPat.Cast(f_name, f_type, Typ.temp(Unknown(Internal)))
|> IdTagged.fresh;
UPat.Cast(f_name, f_type, Typ.temp(Unknown(Internal))) |> UPat.fresh;
let new_binding: UExp.t = {
ids,
copied: false,
Expand Down

0 comments on commit 81675d3

Please sign in to comment.