Skip to content

Commit

Permalink
revisiting issue #490; eta expand after unrefining and removing ascri…
Browse files Browse the repository at this point in the history
…ptions
  • Loading branch information
nikswamy committed Nov 7, 2024
1 parent b41ea17 commit 163c615
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 3 deletions.
4 changes: 3 additions & 1 deletion ocaml/fstar-lib/generated/FStarC_Extraction_ML_Modul.ml

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

4 changes: 2 additions & 2 deletions src/extraction/FStarC.Extraction.ML.Modul.fst
Original file line number Diff line number Diff line change
Expand Up @@ -360,8 +360,8 @@ let extract_typ_abbrev env quals attrs lb
in
tcenv, as_pair def_typ
in
let lbtyp = FStarC.TypeChecker.Normalize.normalize [Env.Beta;Env.UnfoldUntil delta_constant; Env.ForExtraction] tcenv lbtyp in
//eta expansion is important; see issue #490
let lbtyp = FStarC.TypeChecker.Normalize.normalize [Env.Beta;Env.UnfoldUntil delta_constant; Env.ForExtraction; Env.Unrefine; Env.Unascribe ] tcenv lbtyp in
//eta expansion is important; see issue #490, including unrefining and unascribing
let lbdef = FStarC.TypeChecker.Normalize.eta_expand_with_type tcenv lbdef lbtyp in
let fv = right lb.lbname in
let lid = fv.fv_name.v in
Expand Down

0 comments on commit 163c615

Please sign in to comment.