aboutsummaryrefslogtreecommitdiffstats
path: root/common
diff options
context:
space:
mode:
Diffstat (limited to 'common')
-rw-r--r--common/AST.v6
-rw-r--r--common/Errors.v4
-rw-r--r--common/Memory.v20
3 files changed, 14 insertions, 16 deletions
diff --git a/common/AST.v b/common/AST.v
index e6fdec3c..34f29bb3 100644
--- a/common/AST.v
+++ b/common/AST.v
@@ -260,8 +260,8 @@ Inductive globdef (F V: Type) : Type :=
| Gfun (f: F)
| Gvar (v: globvar V).
-Implicit Arguments Gfun [F V].
-Implicit Arguments Gvar [F V].
+Arguments Gfun [F V].
+Arguments Gvar [F V].
Record program (F V: Type) : Type := mkprogram {
prog_defs: list (ident * globdef F V);
@@ -530,7 +530,7 @@ Inductive fundef (F: Type): Type :=
| Internal: F -> fundef F
| External: external_function -> fundef F.
-Implicit Arguments External [F].
+Arguments External [F].
Section TRANSF_FUNDEF.
diff --git a/common/Errors.v b/common/Errors.v
index 338d777d..28933313 100644
--- a/common/Errors.v
+++ b/common/Errors.v
@@ -47,7 +47,7 @@ Inductive res (A: Type) : Type :=
| OK: A -> res A
| Error: errmsg -> res A.
-Implicit Arguments Error [A].
+Arguments Error [A].
(** To automate the propagation of errors, we use a monadic style
with the following [bind] operation. *)
@@ -104,7 +104,7 @@ Notation "'assertion' A ; B" := (if A then B else assertion_failed)
(** This is the familiar monadic map iterator. *)
-Open Local Scope error_monad_scope.
+Local Open Scope error_monad_scope.
Fixpoint mmap (A B: Type) (f: A -> res B) (l: list A) {struct l} : res (list B) :=
match l with
diff --git a/common/Memory.v b/common/Memory.v
index d0cbe8a0..764fdc26 100644
--- a/common/Memory.v
+++ b/common/Memory.v
@@ -96,7 +96,7 @@ Proof.
intros; red; intros. subst b'. contradiction.
Qed.
-Hint Local Resolve valid_not_valid_diff: mem.
+Local Hint Resolve valid_not_valid_diff: mem.
(** Permissions *)
@@ -111,7 +111,7 @@ Proof.
eapply perm_order_trans; eauto.
Qed.
-Hint Local Resolve perm_implies: mem.
+Local Hint Resolve perm_implies: mem.
Theorem perm_cur_max:
forall m b ofs p, perm m b ofs Cur p -> perm m b ofs Max p.
@@ -138,7 +138,7 @@ Proof.
intros. destruct k; auto. apply perm_cur_max. auto.
Qed.
-Hint Local Resolve perm_cur perm_max: mem.
+Local Hint Resolve perm_cur perm_max: mem.
Theorem perm_valid_block:
forall m b ofs k p, perm m b ofs k p -> valid_block m b.
@@ -152,7 +152,7 @@ Proof.
contradiction.
Qed.
-Hint Local Resolve perm_valid_block: mem.
+Local Hint Resolve perm_valid_block: mem.
Remark perm_order_dec:
forall p1 p2, {perm_order p1 p2} + {~perm_order p1 p2}.
@@ -199,7 +199,7 @@ Proof.
unfold range_perm; intros; eauto with mem.
Qed.
-Hint Local Resolve range_perm_implies range_perm_cur range_perm_max: mem.
+Local Hint Resolve range_perm_implies range_perm_cur range_perm_max: mem.
Lemma range_perm_dec:
forall m b lo hi k p, {range_perm m b lo hi k p} + {~ range_perm m b lo hi k p}.
@@ -244,7 +244,7 @@ Proof.
eapply valid_access_implies; eauto. constructor.
Qed.
-Hint Local Resolve valid_access_implies: mem.
+Local Hint Resolve valid_access_implies: mem.
Theorem valid_access_valid_block:
forall m chunk b ofs,
@@ -257,7 +257,7 @@ Proof.
eauto with mem.
Qed.
-Hint Local Resolve valid_access_valid_block: mem.
+Local Hint Resolve valid_access_valid_block: mem.
Lemma valid_access_perm:
forall m chunk b ofs k p,
@@ -671,7 +671,7 @@ Proof.
congruence.
Qed.
-Hint Local Resolve load_valid_access valid_access_load: mem.
+Local Hint Resolve load_valid_access valid_access_load: mem.
Theorem load_type:
forall m chunk b ofs v,
@@ -957,7 +957,7 @@ Proof.
contradiction.
Defined.
-Hint Local Resolve valid_access_store: mem.
+Local Hint Resolve valid_access_store: mem.
Section STORE.
Variable chunk: memory_chunk.
@@ -3378,8 +3378,6 @@ Proof.
apply perm_cur_max. apply (H1 (Ptrofs.unsigned ofs2)). omega.
Qed.
-Require Intv.
-
Theorem disjoint_or_equal_inject:
forall f m m' b1 b1' delta1 b2 b2' delta2 ofs1 ofs2 sz,
inject f m m' ->