From f4a6a6aaa928e7a6c8d360c45268cb82c020c2dc Mon Sep 17 00:00:00 2001 From: ppedrot Date: Sun, 25 Aug 2013 22:34:08 +0000 Subject: Added a more efficient way to recover the domain of a map. The extended signature is defined in CMap, and should be compatible with the old one, except that module arguments have to be explicitely named. The implementation itself is quite unsafe, as it relies on the current implementation of OCaml maps, even though that should not be a problem (it has not changed in ages). git-svn-id: svn+ssh://scm.gforge.inria.fr/svn/coq/trunk@16735 85f007b7-540e-0410-9357-904b9bb8a0f7 --- toplevel/obligations.ml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'toplevel') diff --git a/toplevel/obligations.ml b/toplevel/obligations.ml index ed315bcf5d..d8f08cafd0 100644 --- a/toplevel/obligations.ml +++ b/toplevel/obligations.ml @@ -440,7 +440,7 @@ let subst_deps_obl obls obl = let t' = subst_deps true obls obl.obl_deps obl.obl_type in { obl with obl_type = t' } -module ProgMap = Map.Make(struct type t = Id.t let compare = Id.compare end) +module ProgMap = Map.Make(Id) let map_replace k v m = ProgMap.add k v (ProgMap.remove k m) -- cgit v1.2.3