From 538f7ad4feabf9eafe00788ef3a2b65a379d3ee1 Mon Sep 17 00:00:00 2001 From: xleroy Date: Mon, 6 Aug 2012 14:47:25 +0000 Subject: Remove Val.is_true and Val.is_false, no longer used. Simplified definition of Val.bool_of_val. git-svn-id: https://yquem.inria.fr/compcert/svn/compcert/trunk@2015 fca1b0fc-160b-0410-b1d3-a4f43f01ea2e --- powerpc/SelectOpproof.v | 10 ++-------- 1 file changed, 2 insertions(+), 8 deletions(-) (limited to 'powerpc/SelectOpproof.v') diff --git a/powerpc/SelectOpproof.v b/powerpc/SelectOpproof.v index 7d3ae831..f34dc8f2 100644 --- a/powerpc/SelectOpproof.v +++ b/powerpc/SelectOpproof.v @@ -826,15 +826,9 @@ Theorem eval_cond_of_expr: Proof. intros until v. unfold cond_of_expr; case (cond_of_expr_match a); intros; InvEval. subst v. exists (v1 :: nil); split; auto with evalexpr. - simpl. destruct b. - generalize (Val.bool_of_true_val2 _ H0); clear H0; intro ISTRUE. - destruct v1; simpl in ISTRUE; try contradiction. - rewrite Int.eq_false; auto. - generalize (Val.bool_of_false_val2 _ H0); clear H0; intro ISFALSE. - destruct v1; simpl in ISFALSE; try contradiction. - rewrite ISFALSE. rewrite Int.eq_true; auto. + simpl. destruct v1; unfold Val.and in H0; inv H0; auto. exists (v :: nil); split; auto with evalexpr. - simpl. inversion H0; simpl. rewrite Int.eq_false; auto. auto. auto. + simpl. inv H0; auto. Qed. End CMCONSTR. -- cgit