Skip to content

Commit

Permalink
Merge pull request #3607 from FStarLang/_nik_490_revisited
Browse files Browse the repository at this point in the history
Substitution must be fully applied in extraction
  • Loading branch information
nikswamy authored Nov 7, 2024
2 parents 37eca61 + 35dc462 commit e1d9990
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 e1d9990

Please sign in to comment.