aboutsummaryrefslogtreecommitdiffstats
path: root/common/Memory.v
diff options
context:
space:
mode:
authorPierre-Marie Pédrot <pierre-marie.pedrot@inria.fr>2022-12-22 16:20:15 +0100
committerGitHub <noreply@github.com>2022-12-22 16:20:15 +0100
commitfc79b13a30f124e9ac2d658773c395e0a74e2d1e (patch)
treef81eb0494f192d3abe40c7ce50a4bf77c9596766 /common/Memory.v
parent8d21a7fa245637b684ddb4c12f4bfa6295569fb6 (diff)
downloadcompcert-fc79b13a30f124e9ac2d658773c395e0a74e2d1e.tar.gz
compcert-fc79b13a30f124e9ac2d658773c395e0a74e2d1e.zip
Use `exfalso` instead of `elimtype False` (#470)
Adapt w.r.t. coq/coq#16904.
Diffstat (limited to 'common/Memory.v')
-rw-r--r--common/Memory.v4
1 files changed, 2 insertions, 2 deletions
diff --git a/common/Memory.v b/common/Memory.v
index ec436103..2c9151ed 100644
--- a/common/Memory.v
+++ b/common/Memory.v
@@ -1806,7 +1806,7 @@ Proof.
intros. unfold load.
destruct (valid_access_dec m2 chunk b' ofs Readable).
exploit valid_access_alloc_inv; eauto. destruct (eq_block b' b); intros.
- subst b'. elimtype False. eauto with mem.
+ subst b'. exfalso. eauto with mem.
rewrite pred_dec_true; auto.
injection ALLOC; intros. rewrite <- H2; simpl.
rewrite PMap.gso. auto. rewrite H1. apply not_eq_sym; eauto with mem.
@@ -1940,7 +1940,7 @@ Proof.
rewrite PMap.gsspec. destruct (peq b bf). subst b.
destruct (zle lo ofs); simpl.
destruct (zlt ofs hi); simpl.
- elimtype False; intuition.
+ exfalso; intuition.
auto. auto.
auto.
Qed.