diff options
author | Matthieu Sozeau <mattam@mattam.org> | 2017-07-24 15:09:33 +0200 |
---|---|---|
committer | Matthieu Sozeau <matthieu.sozeau@inria.fr> | 2018-06-15 11:56:52 +0200 |
commit | 994f869496b3edd76a903cac16b13e8b6f247d63 (patch) | |
tree | b2bf14d15f2faf8df7a5c6a81be7e55c76248982 /engine/evd.ml | |
parent | 31e13998542941040343cb81787a1d7c865d5b65 (diff) |
evd/evarutil: safe [add_unification_pb] interface, taking EConstr's
Avoid adding the same unification problem twice, module evar instantiation.
Diffstat (limited to 'engine/evd.ml')
-rw-r--r-- | engine/evd.ml | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/engine/evd.ml b/engine/evd.ml index 0c9c3a29b..2226193cb 100644 --- a/engine/evd.ml +++ b/engine/evd.ml @@ -621,10 +621,11 @@ let set_universe_context evd uctx' = { evd with universes = uctx' } let add_conv_pb ?(tail=false) pb d = - (** MS: we have duplicates here, why? *) if tail then {d with conv_pbs = d.conv_pbs @ [pb]} else {d with conv_pbs = pb::d.conv_pbs} +let conv_pbs d = d.conv_pbs + let evar_source evk d = (find d evk).evar_source let evar_ident evk evd = EvNames.ident evk evd.evar_names |