aboutsummaryrefslogtreecommitdiffstats
path: root/extraction/Linearize.ml.patch
diff options
context:
space:
mode:
authorxleroy <xleroy@fca1b0fc-160b-0410-b1d3-a4f43f01ea2e>2006-02-09 14:55:48 +0000
committerxleroy <xleroy@fca1b0fc-160b-0410-b1d3-a4f43f01ea2e>2006-02-09 14:55:48 +0000
commit2ae43be7b9d4118335c9d2cef6e098f9b9f807fe (patch)
treebbb5e49ccbf7e3614966571acc317f8d318fecad /extraction/Linearize.ml.patch
downloadcompcert-2ae43be7b9d4118335c9d2cef6e098f9b9f807fe.tar.gz
compcert-2ae43be7b9d4118335c9d2cef6e098f9b9f807fe.zip
Initial import of compcert
git-svn-id: https://yquem.inria.fr/compcert/svn/compcert/trunk@1 fca1b0fc-160b-0410-b1d3-a4f43f01ea2e
Diffstat (limited to 'extraction/Linearize.ml.patch')
-rw-r--r--extraction/Linearize.ml.patch22
1 files changed, 22 insertions, 0 deletions
diff --git a/extraction/Linearize.ml.patch b/extraction/Linearize.ml.patch
new file mode 100644
index 00000000..47b6cc9b
--- /dev/null
+++ b/extraction/Linearize.ml.patch
@@ -0,0 +1,22 @@
+*** Linearize.ml.orig 2006-02-09 11:47:55.000000000 +0100
+--- Linearize.ml 2006-02-09 11:58:42.000000000 +0100
+***************
+*** 28,35 ****
+ (** val enumerate : LTL.coq_function -> node list **)
+
+ let enumerate f =
+ positive_rec Coq_nil (fun pc nodes ->
+! match Maps.PMap.get pc (reachable f) with
+ | true -> Coq_cons (pc, nodes)
+ | false -> nodes) (coq_Psucc f.fn_entrypoint)
+
+--- 28,36 ----
+ (** val enumerate : LTL.coq_function -> node list **)
+
+ let enumerate f =
++ let reach = reachable f in
+ positive_rec Coq_nil (fun pc nodes ->
+! match Maps.PMap.get pc reach with
+ | true -> Coq_cons (pc, nodes)
+ | false -> nodes) (coq_Psucc f.fn_entrypoint)
+