diff options
author | David Monniaux <david.monniaux@univ-grenoble-alpes.fr> | 2020-10-19 19:08:09 +0200 |
---|---|---|
committer | David Monniaux <david.monniaux@univ-grenoble-alpes.fr> | 2020-10-19 19:08:09 +0200 |
commit | 38f808a4b2a26d1ae71d9a0866e49a5207385e23 (patch) | |
tree | 5fc5c5c1a960b9d3e6c86ddbbd29d585c48d3eff /x86 | |
parent | 8595aa32b35ef18c2124c9147173f366e5d14f86 (diff) | |
download | compcert-kvx-38f808a4b2a26d1ae71d9a0866e49a5207385e23.tar.gz compcert-kvx-38f808a4b2a26d1ae71d9a0866e49a5207385e23.zip |
op_valid_pointer_eq x86
Diffstat (limited to 'x86')
-rw-r--r-- | x86/Op.v | 14 |
1 files changed, 14 insertions, 0 deletions
@@ -1037,6 +1037,20 @@ Proof. auto. Qed. +Lemma op_valid_pointer_eq: + forall (F V: Type) (ge: Genv.t F V) sp op args m1 m2, + (forall b z, Mem.valid_pointer m1 b z = Mem.valid_pointer m2 b z) -> + eval_operation ge sp op args m1 = eval_operation ge sp op args m2. +Proof. + intros until m2. destruct op eqn:OP; simpl; try congruence. + - intros MEM; destruct cond; simpl; try congruence; + repeat (destruct args; simpl; try congruence); + erewrite cmpu_bool_valid_pointer_eq || erewrite cmplu_bool_valid_pointer_eq; eauto. + - intro MEM; destruct c; simpl; try congruence; + repeat (destruct args; simpl; try congruence); + erewrite cmpu_bool_valid_pointer_eq || erewrite cmplu_bool_valid_pointer_eq; eauto. +Qed. + (** Global variables mentioned in an operation or addressing mode *) Definition globals_addressing (addr: addressing) : list ident := |