summaryrefslogtreecommitdiff
path: root/driver
diff options
context:
space:
mode:
authorGravatar xleroy <xleroy@fca1b0fc-160b-0410-b1d3-a4f43f01ea2e>2012-06-28 11:23:52 +0000
committerGravatar xleroy <xleroy@fca1b0fc-160b-0410-b1d3-a4f43f01ea2e>2012-06-28 11:23:52 +0000
commit7a614ea53948423b0266eefd98ea5714559c3cfc (patch)
treeb590210c9db8a450bd16cece9311ca47f68d0b89 /driver
parent5312915c1b29929f82e1f8de80609a277584913f (diff)
Changelog: updated
driver/Interp.ml: clean up dead code lib/Integers.v: add shifted_or_is_add lib/Floats.v: add from_words_eq .depend: updated git-svn-id: https://yquem.inria.fr/compcert/svn/compcert/trunk@1940 fca1b0fc-160b-0410-b1d3-a4f43f01ea2e
Diffstat (limited to 'driver')
-rw-r--r--driver/Interp.ml25
1 files changed, 1 insertions, 24 deletions
diff --git a/driver/Interp.ml b/driver/Interp.ml
index 0c19673..abd28ac 100644
--- a/driver/Interp.ml
+++ b/driver/Interp.ml
@@ -147,32 +147,9 @@ let mem_of_state = function
(* Comparing memory states *)
-let compare_mem m1 m2 =
+let compare_mem m1 m2 = (* should permissions be taken into account? *)
Pervasives.compare (m1.Mem.nextblock, m1.Mem.mem_contents)
(m2.Mem.nextblock, m1.Mem.mem_contents)
-(* FIXME: should permissions be taken into account? *)
-
-(*
-let rec compare_Z_range lo hi f =
- if coq_Zcompare lo hi = Lt then begin
- let c = f lo in if c <> 0 then c else compare_Z_range (coq_Zsucc lo) hi f
- end else 0
-
-let compare_mem m1 m2 =
- if m1 == m2 then 0 else
- let c = compare m1.Mem.nextblock m2.Mem.nextblock in if c <> 0 then c else
- compare_Z_range Z0 m1.Mem.nextblock (fun b ->
-
- let ((lo, hi) as bnds) = m1.Mem.bounds b in
- let c = compare bnds (m2.Mem.bounds b) in if c <> 0 then c else
- let contents1 = m1.Mem.mem_contents b and contents2 = m2.Mem.mem_contents b in
- if contents1 == contents2 then 0 else
- let c = compare_Z_range lo hi (fun ofs ->
- compare (contents1 ofs) (contents2 ofs)) in if c <> 0 then c else
- let access1 = m1.Mem.mem_access b and access2 = m2.Mem.mem_access b in
- if access1 == access2 then 0 else
- compare_Z_range lo hi (fun ofs -> compare (access1 ofs) (access2 ofs)))
-*)
(* Comparing continuations *)