aboutsummaryrefslogtreecommitdiffhomepage
path: root/proofs/redexpr.ml
diff options
context:
space:
mode:
authorGravatar Pierre-Marie Pédrot <pierre-marie.pedrot@inria.fr>2016-11-04 14:13:08 +0100
committerGravatar Pierre-Marie Pédrot <pierre-marie.pedrot@inria.fr>2017-02-14 17:23:00 +0100
commit2db085e62f7797cc999518eb58983ac059763e1f (patch)
tree885b5748612763950bb64085e838f31305004fbd /proofs/redexpr.ml
parent8f6aab1f4d6d60842422abc5217daac806eb0897 (diff)
Vnorm API using EConstr.
Diffstat (limited to 'proofs/redexpr.ml')
-rw-r--r--proofs/redexpr.ml7
1 files changed, 2 insertions, 5 deletions
diff --git a/proofs/redexpr.ml b/proofs/redexpr.ml
index 40a8077a7..348cd1bcb 100644
--- a/proofs/redexpr.ml
+++ b/proofs/redexpr.ml
@@ -24,11 +24,8 @@ open Misctypes
(* call by value normalisation function using the virtual machine *)
let cbv_vm env sigma c =
- let c = EConstr.Unsafe.to_constr c in
- let ctyp = Retyping.get_type_of env sigma c in
- if Termops.occur_meta_or_existential sigma (EConstr.of_constr c) then
- error "vm_compute does not support existential variables.";
- Vnorm.cbv_vm env sigma c ctyp
+ let ctyp = Retyping.get_type_of env sigma (EConstr.Unsafe.to_constr c) in
+ Vnorm.cbv_vm env sigma c (EConstr.of_constr ctyp)
let warn_native_compute_disabled =
CWarnings.create ~name:"native-compute-disabled" ~category:"native-compiler"