diff options
author | xleroy <xleroy@fca1b0fc-160b-0410-b1d3-a4f43f01ea2e> | 2012-08-06 14:47:25 +0000 |
---|---|---|
committer | xleroy <xleroy@fca1b0fc-160b-0410-b1d3-a4f43f01ea2e> | 2012-08-06 14:47:25 +0000 |
commit | 538f7ad4feabf9eafe00788ef3a2b65a379d3ee1 (patch) | |
tree | fa1f727c664f915a89a21a75bf62b467939f1d6b /ia32 | |
parent | f91e562a66ebbcac7fab5871ab6189e79653757c (diff) |
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
Diffstat (limited to 'ia32')
-rw-r--r-- | ia32/SelectOpproof.v | 10 |
1 files changed, 2 insertions, 8 deletions
diff --git a/ia32/SelectOpproof.v b/ia32/SelectOpproof.v index f30bb88..27d8574 100644 --- a/ia32/SelectOpproof.v +++ b/ia32/SelectOpproof.v @@ -770,15 +770,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. |