aboutsummaryrefslogtreecommitdiffstats
path: root/backend/CastOptimproof.v
diff options
context:
space:
mode:
authorxleroy <xleroy@fca1b0fc-160b-0410-b1d3-a4f43f01ea2e>2011-04-09 16:59:13 +0000
committerxleroy <xleroy@fca1b0fc-160b-0410-b1d3-a4f43f01ea2e>2011-04-09 16:59:13 +0000
commitabe2bb5c40260a31ce5ee27b841bcbd647ff8b88 (patch)
treeae109a136508da283a9e2be5f039c5f9cca4f95c /backend/CastOptimproof.v
parentffd6080f9e1e742c73ac38354b31c6fc4e3963ba (diff)
downloadcompcert-abe2bb5c40260a31ce5ee27b841bcbd647ff8b88.tar.gz
compcert-abe2bb5c40260a31ce5ee27b841bcbd647ff8b88.zip
Merge of branch "unsigned-offsets":
- In pointer values "Vptr b ofs", interpret "ofs" as an unsigned int. (Fixes issue with wrong comparison of pointers across 0x8000_0000) - Revised Stacking pass to not use negative SP offsets. - Add pointer validity checks to Cminor ... Mach to support the use of memory injections in Stacking. - Cleaned up Stacklayout modules. - IA32: improved code generation for Mgetparam. - ARM: improved code generation for op-immediate instructions. git-svn-id: https://yquem.inria.fr/compcert/svn/compcert/trunk@1632 fca1b0fc-160b-0410-b1d3-a4f43f01ea2e
Diffstat (limited to 'backend/CastOptimproof.v')
-rw-r--r--backend/CastOptimproof.v10
1 files changed, 5 insertions, 5 deletions
diff --git a/backend/CastOptimproof.v b/backend/CastOptimproof.v
index b04e061a..ab04d0eb 100644
--- a/backend/CastOptimproof.v
+++ b/backend/CastOptimproof.v
@@ -168,9 +168,9 @@ Proof.
Qed.
Lemma approx_operation_correct:
- forall app rs (ge: genv) sp op args v,
+ forall app rs (ge: genv) sp op args m v,
regs_match_approx app rs ->
- eval_operation ge sp op rs##args = Some v ->
+ eval_operation ge sp op rs##args m = Some v ->
val_match_approx (approx_operation op (approx_regs app args)) v.
Proof.
intros. destruct op; simpl; try (exact I).
@@ -324,10 +324,10 @@ Qed.
(** Correctness of [transf_operation]. *)
Lemma transf_operation_correct:
- forall (ge: genv) app rs sp op args v,
+ forall (ge: genv) app rs sp op args m v,
regs_match_approx app rs ->
- eval_operation ge sp op rs##args = Some v ->
- eval_operation ge sp (transf_operation op (approx_regs app args)) rs##args = Some v.
+ eval_operation ge sp op rs##args m = Some v ->
+ eval_operation ge sp (transf_operation op (approx_regs app args)) rs##args m = Some v.
Proof.
intros until v. intro RMA.
assert (A: forall a r, Approx.bge a (approx_reg app r) = true -> val_match_approx a rs#r).