Hint Rewrite @denote_tc_assert_andp' @denote_tc_assert_andp''
@denote_tc_assert_orp' @denote_tc_assert_orp''
@denote_tc_assert_iszero' @denote_tc_assert_nonzero'
@denote_tc_assert_nodivover' @denote_tc_assert_ilt' @denote_tc_assert_llt'
@denote_tc_assert_test_eq' @denote_tc_assert_test_order'
: dtca.
Ltac dtca := autorewrite with dtca; auto.
Definition stupid_typeconv ty :=
match ty with
| Tarray t _ a => Tpointer t a
| Tfunction _ _ _ => Tpointer ty noattr
| Tint _ _ _ => typeconv ty
| _ => ty
end.
Definition classify_sub' ty1 ty2 :=
match stupid_typeconv ty1 with
| Tpointer ty a =>
match stupid_typeconv ty2 with
| Tint _ si _ => sub_case_pi ty si
| Tlong _ _ => sub_case_pl ty
| Tpointer _ _ => sub_case_pp ty
| _ => sub_default
end
| _ => sub_default
end.

Lemma classify_cmp_eq: classify_cmp = classify_cmp'.
Definition classify_add' ty1 ty2 :=
match stupid_typeconv ty1 with
| Tint _ si _ =>
match stupid_typeconv ty2 with
| Tpointer ty a => add_case_ip si ty
|  _ => add_default
end
| Tlong _ _ =>
match stupid_typeconv ty2 with
| Tpointer ty a => add_case_lp ty
| _ => add_default
end
| Tpointer ty a =>
match stupid_typeconv ty2 with
| Tint _ si _ => add_case_pi ty si
| Tlong _ _ => add_case_pl ty
| _ => add_default
end
| _ => add_default
end.