aboutsummaryrefslogtreecommitdiffhomepage
path: root/stm/stm.ml
diff options
context:
space:
mode:
authorGravatar Pierre-Marie Pédrot <pierre-marie.pedrot@inria.fr>2017-07-13 18:26:44 +0200
committerGravatar Pierre-Marie Pédrot <pierre-marie.pedrot@inria.fr>2017-07-13 19:36:20 +0200
commit0411c7e08b58edc4785c2be396fad0a037056a11 (patch)
tree83ed6ba9164ebca35aa802fe27973ae12816bc43 /stm/stm.ml
parenta59bdc4144476c0794ff24fc6180e21671842395 (diff)
Removing a use of AUContext.instance in the STM.
We only delay monomorphic proofs in quick mode, so that their universe context will always be empty.
Diffstat (limited to 'stm/stm.ml')
-rw-r--r--stm/stm.ml3
1 files changed, 2 insertions, 1 deletions
diff --git a/stm/stm.ml b/stm/stm.ml
index d38491fec..7c9620854 100644
--- a/stm/stm.ml
+++ b/stm/stm.ml
@@ -1576,7 +1576,8 @@ end = struct (* {{{ *)
let uc =
Option.get
(Opaqueproof.get_constraints (Global.opaque_tables ()) o) in
- let map (c, ctx) = Vars.subst_instance_constr (Univ.AUContext.instance ctx) c in
+ (** We only manipulate monomorphic terms here. *)
+ let map (c, ctx) = assert (Univ.AUContext.is_empty ctx); c in
let pr =
Future.from_val (map (Option.get (Global.body_of_constant_body c))) in
let uc =