aboutsummaryrefslogtreecommitdiffstats
path: root/lib/Coqlib.v
diff options
context:
space:
mode:
authorSylvain Boulmé <sylvain.boulme@univ-grenoble-alpes.fr>2020-10-21 09:15:40 +0200
committerSylvain Boulmé <sylvain.boulme@univ-grenoble-alpes.fr>2020-10-21 09:15:40 +0200
commit0f47c1dbf3cee6845df9c4c3da0924ed4e10a9c4 (patch)
treeb0799e5d8e4ae62a9ae47c5358a62630c7a4efc3 /lib/Coqlib.v
parent647471e5b084703d1c817c02ef4298c474d3d571 (diff)
parent3f99a42035389b1953030af8490a5ec18a64394f (diff)
downloadcompcert-kvx-0f47c1dbf3cee6845df9c4c3da0924ed4e10a9c4.tar.gz
compcert-kvx-0f47c1dbf3cee6845df9c4c3da0924ed4e10a9c4.zip
Merge branch 'kvx-work' into aarch64_block_bodystar
Diffstat (limited to 'lib/Coqlib.v')
-rw-r--r--lib/Coqlib.v6
1 files changed, 6 insertions, 0 deletions
diff --git a/lib/Coqlib.v b/lib/Coqlib.v
index 02c5d07f..16d880fa 100644
--- a/lib/Coqlib.v
+++ b/lib/Coqlib.v
@@ -1325,3 +1325,9 @@ Lemma nlist_forall2_imply:
Proof.
induction 1; simpl; intros; constructor; auto.
Qed.
+
+Lemma if_same : forall {T : Type} (b : bool) (x : T),
+ (if b then x else x) = x.
+Proof.
+ destruct b; trivial.
+Qed.