Changeset 2468 for src/Clight/TypeComparison.ma
- Timestamp:
- Nov 15, 2012, 6:12:57 PM (7 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
src/Clight/TypeComparison.ma
r2176 r2468 9 9 definition sg_eq_dec : ∀s1,s2:signedness. (s1 = s2) + (s1 ≠ s2). 10 10 #s1 cases s1; #s2 cases s2; /2/; %2 ; % #H destruct; qed. 11 definition fs_eq_dec : ∀s1,s2:floatsize. (s1 = s2) + (s1 ≠ s2).12 #s1 cases s1; #s2 cases s2; /2/; %2 ; % #H destruct; qed.13 11 14 12 let rec type_eq_dec (t1,t2:type) : Sum (t1 = t2) (t1 ≠ t2) ≝ … … 19 17 match sg_eq_dec sg sg' with [ inl e2 ⇒ inl ??? 20 18 | inr e ⇒ inr ?? (nmk ? (λH.match e with [ nmk e' ⇒ e' ? ])) ] 21 | inr e ⇒ inr ?? (nmk ? (λH.match e with [ nmk e' ⇒ e' ? ])) ]22 | _ ⇒ inr ?? (nmk ? (λH.?)) ]23 | Tfloat f ⇒ match t2 return λt'. Sum (Tfloat ? = t') (Tfloat ? ≠ t') with [ Tfloat f' ⇒24 match fs_eq_dec f f' with [ inl e1 ⇒ inl ???25 19 | inr e ⇒ inr ?? (nmk ? (λH.match e with [ nmk e' ⇒ e' ? ])) ] 26 20 | _ ⇒ inr ?? (nmk ? (λH.?)) ]
Note: See TracChangeset
for help on using the changeset viewer.