Skip to content

Commit

Permalink
Reduction functions based on CClosure should take an env
Browse files Browse the repository at this point in the history
This is because the env contains typing flags (such as sharing
strategy).
  • Loading branch information
Maxime Dénès committed Oct 30, 2018
1 parent 365f14b commit 0f7462c
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
4 changes: 2 additions & 2 deletions pretyping/tacred.ml
Original file line number Diff line number Diff line change
Expand Up @@ -1135,8 +1135,8 @@ let fold_commands cl env sigma c =
let cbv_norm_flags flags env sigma t =
cbv_norm (create_cbv_infos flags env sigma) t

let cbv_beta = cbv_norm_flags beta empty_env
let cbv_betaiota = cbv_norm_flags betaiota empty_env
let cbv_beta = cbv_norm_flags beta
let cbv_betaiota = cbv_norm_flags betaiota
let cbv_betadeltaiota env sigma = cbv_norm_flags all env sigma

let compute = cbv_betadeltaiota
Expand Down
4 changes: 2 additions & 2 deletions pretyping/tacred.mli
Original file line number Diff line number Diff line change
Expand Up @@ -69,8 +69,8 @@ val pattern_occs : (occurrences * constr) list -> e_reduction_function

(** Call by value strategy (uses Closures) *)
val cbv_norm_flags : CClosure.RedFlags.reds -> reduction_function
val cbv_beta : local_reduction_function
val cbv_betaiota : local_reduction_function
val cbv_beta : reduction_function
val cbv_betaiota : reduction_function
val cbv_betadeltaiota : reduction_function
val compute : reduction_function (** = [cbv_betadeltaiota] *)

Expand Down

0 comments on commit 0f7462c

Please sign in to comment.