Debian Codegraph @

apps/derive/tests/test_fields.v

raw
1 From elpi.apps Require Import derive.fields.
2
3 From elpi.apps.derive.tests Require Import test_derive_corelib test_eqType_ast test_tag.
4 Import test_derive_corelib.Coverage test_eqType_ast.Coverage test_tag.Coverage.
5
6 Module Coverage.
7 Elpi derive.fields empty.
8 Elpi derive.fields unit.
9 Elpi derive.fields peano.
10 Elpi derive.fields option.
11 Elpi derive.fields pair.
12 Elpi derive.fields seq.
13 Elpi derive.fields box_peano.
14 Elpi derive.fields rose.
15 Elpi derive.fields rose_p.
16 Elpi derive.fields rose_o.
17 Fail Elpi derive.fields nest.
18 Fail Elpi derive.fields w.
19 Fail Elpi derive.fields vect.
20 Fail Elpi derive.fields dyn.
21 Fail Elpi derive.fields zeta.
22 Elpi derive.fields beta.
23 Fail Elpi derive.fields iota.
24 Elpi derive.fields large.
25 Elpi derive.fields prim_int.
26 Fail Elpi derive.fields prim_float.
27 Elpi derive.fields prim_string.
28 Elpi derive.fields fo_record.
29 Elpi derive.fields pa_record.
30 Elpi derive.fields pr_record.
31 Fail Elpi derive.fields dep_record.
32 Elpi derive.fields enum.
33 Elpi derive.fields bool.
34 Fail Elpi derive.fields eq.
35 Elpi derive.fields sigma_bool.
36 Elpi derive.fields sigma_bool2.
37 Elpi derive.fields ord.
38 Elpi derive.fields ord2.
39 Elpi derive.fields val.
40 Fail Elpi derive.fields mempty.
41 Fail Elpi derive.fields munit.
42 Fail Elpi derive.fields mpeano.
43 Fail Elpi derive.fields moption.
44 Fail Elpi derive.fields mtree.
45 End Coverage.
46
47 Import Coverage.
48 From Corelib Require Import PosDef.
49
50 Redirect "tmp" Check empty_fields_t : positive -> Type.
51 Redirect "tmp" Check empty_fields : forall (n:empty), empty_fields_t (empty_tag n).
52 Redirect "tmp" Check empty_construct : forall (p: positive), empty_fields_t p -> Datatypes.option empty.
53 Redirect "tmp" Check empty_constructP : forall (n:empty), empty_construct (empty_tag n) (empty_fields n) = Datatypes.Some n.
54
55 Redirect "tmp" Check unit_fields_t : positive -> Type.
56 Redirect "tmp" Check unit_fields : forall (n:unit), unit_fields_t (unit_tag n).
57 Redirect "tmp" Check unit_construct : forall (p: positive), unit_fields_t p -> Datatypes.option unit.
58 Redirect "tmp" Check unit_constructP : forall (n:unit), unit_construct (unit_tag n) (unit_fields n) = Datatypes.Some n.
59
60 Redirect "tmp" Check peano_fields_t : positive -> Type.
61 Redirect "tmp" Check peano_fields : forall (n:peano), peano_fields_t (peano_tag n).
62 Redirect "tmp" Check peano_construct : forall (p: positive), peano_fields_t p -> Datatypes.option peano.
63 Redirect "tmp" Check peano_constructP : forall (n:peano), peano_construct (peano_tag n) (peano_fields n) = Datatypes.Some n.
64
65 Redirect "tmp" Check option_fields_t : Type -> Numbers.BinNums.positive -> Type.
66 Redirect "tmp" Check option_fields : forall (A:Type) (l:option A), option_fields_t A (option_tag A l).
67 Redirect "tmp" Check option_construct : forall (A:Type) (p: Numbers.BinNums.positive), option_fields_t A p -> Datatypes.option (option A).
68 Redirect "tmp" Check option_constructP : forall (A:Type) (l:option A), option_construct A (option_tag A l) (option_fields A l) = Datatypes.Some l.
69
70 Redirect "tmp" Check pair_fields_t : Type -> Type -> Numbers.BinNums.positive -> Type.
71 Redirect "tmp" Check pair_fields : forall (A B :Type) (l:pair A B), pair_fields_t A B (pair_tag A B l).
72 Redirect "tmp" Check pair_construct : forall (A B:Type) (p: Numbers.BinNums.positive), pair_fields_t A B p -> Datatypes.option (pair A B).
73 Redirect "tmp" Check pair_constructP : forall (A B:Type) (l:pair A B), pair_construct A B (pair_tag A B l) (pair_fields A B l) = Datatypes.Some l.
74
75 Redirect "tmp" Check seq_fields_t : Type -> Numbers.BinNums.positive -> Type.
76 Redirect "tmp" Check seq_fields : forall (A:Type) (l:seq A), seq_fields_t A (seq_tag A l).
77 Redirect "tmp" Check seq_construct : forall (A:Type) (p: Numbers.BinNums.positive), seq_fields_t A p -> Datatypes.option (seq A).
78 Redirect "tmp" Check seq_constructP : forall (A:Type) (l:seq A), seq_construct A (seq_tag A l) (seq_fields A l) = Datatypes.Some l.
79
80 Redirect "tmp" Check rose_fields_t : Type -> Numbers.BinNums.positive -> Type.
81 Redirect "tmp" Check rose_fields : forall (A:Type) (l:rose A), rose_fields_t A (rose_tag A l).
82 Redirect "tmp" Check rose_construct : forall (A:Type) (p: Numbers.BinNums.positive), rose_fields_t A p -> Datatypes.option (rose A).
83 Redirect "tmp" Check rose_constructP : forall (A:Type) (l:rose A), rose_construct A (rose_tag A l) (rose_fields A l) = Datatypes.Some l.
84
85 Fail Check nest_fields_t : Type -> Numbers.BinNums.positive -> Type.
86 Fail Check nest_fields : forall (A:Type) (l:nest A), nest_fields_t A (nest_tag A l).
87 Fail Check nest_construct : forall (A:Type) (p: Numbers.BinNums.positive), nest_fields_t A p -> Datatypes.option (nest A).
88 Fail Check nest_constructP : forall (A:Type) (l:nest A), nest_construct A (nest_tag A l) (nest_fields A l) = Datatypes.Some l.
89
90 Fail Check w_fields_t : Type -> Numbers.BinNums.positive -> Type.
91 Fail Check w_fields : forall (A:Type) (l:w A), w_fields_t A (w_tag A l).
92 Fail Check w_construct : forall (A:Type) (p: Numbers.BinNums.positive), w_fields_t A p -> Datatypes.option (w A).
93 Fail Check w_constructP : forall (A:Type) (l:w A), w_construct A (w_tag A l) (w_fields A l) = Datatypes.Some l.
94
95 Fail Check vect_fields_t : Type -> Numbers.BinNums.positive -> Type.
96 Fail Check vect_fields : forall (A:Type) (l:vect A), vect_fields_t A (vect_tag A l).
97 Fail Check vect_construct : forall (A:Type) (p: Numbers.BinNums.positive), vect_fields_t A p -> Datatypes.option (vect A).
98 Fail Check vect_constructP : forall (A:Type) (l:vect A), vect_construct A (vect_tag A l) (vect_fields A l) = Datatypes.Some l.
99
100 Fail Check dyn_fields_t : positive -> Type.
101 Fail Check dyn_fields : forall (n:dyn), dyn_fields_t (dyn_tag n).
102 Fail Check dyn_construct : forall (p: positive), dyn_fields_t p -> Datatypes.option dyn.
103 Fail Check dyn_constructP : forall (n:dyn), dyn_construct (dyn_tag n) (dyn_fields n) = Datatypes.Some n.
104
105 Fail Check zeta_fields_t : Type -> Numbers.BinNums.positive -> Type.
106 Fail Check zeta_fields : forall (A:Type) (l:zeta A), zeta_fields_t A (zeta_tag A l).
107 Fail Check zeta_construct : forall (A:Type) (p: Numbers.BinNums.positive), zeta_fields_t A p -> option (zeta A).
108 Fail Check zeta_constructP : forall (A:Type) (l:zeta A), zeta_construct A (zeta_tag A l) (zeta_fields A l) = Some l.
109
110 Redirect "tmp" Check beta_fields_t : Type -> Numbers.BinNums.positive -> Type.
111 Redirect "tmp" Check beta_fields : forall (A:Type) (l:beta A), beta_fields_t A (beta_tag A l).
112 Redirect "tmp" Check beta_construct : forall (A:Type) (p: Numbers.BinNums.positive), beta_fields_t A p -> Datatypes.option (beta A).
113 Redirect "tmp" Check beta_constructP : forall (A:Type) (l:beta A), beta_construct A (beta_tag A l) (beta_fields A l) = Datatypes.Some l.
114
115 Fail Check iota_fields_t : positive -> Type.
116 Fail Check iota_fields : forall (n:iota), iota_fields_t (iota_tag n).
117 Fail Check iota_construct : forall (p: positive), iota_fields_t p -> Datatypes.option iota.
118 Fail Check iota_constructP : forall (n:iota), iota_construct (iota_tag n) (iota_fields n) = Datatypes.Some n.
119
120 Redirect "tmp" Check large_fields_t : positive -> Type.
121 Redirect "tmp" Check large_fields : forall (n:large), large_fields_t (large_tag n).
122 Redirect "tmp" Check large_construct : forall (p: positive), large_fields_t p -> Datatypes.option large.
123 Redirect "tmp" Check large_constructP : forall (n:large), large_construct (large_tag n) (large_fields n) = Datatypes.Some n.
124
125 Redirect "tmp" Check prim_int_fields_t : positive -> Type.
126 Redirect "tmp" Check prim_int_fields : forall (n:prim_int), prim_int_fields_t (prim_int_tag n).
127 Redirect "tmp" Check prim_int_construct : forall (p: positive), prim_int_fields_t p -> Datatypes.option prim_int.
128 Redirect "tmp" Check prim_int_constructP : forall (n:prim_int), prim_int_construct (prim_int_tag n) (prim_int_fields n) = Datatypes.Some n.
129
130 Fail Check prim_float_fields_t : positive -> Type.
131 Fail Check prim_float_fields : forall (n:prim_float), prim_float_fields_t (prim_float_tag n).
132 Fail Check prim_float_construct : forall (p: positive), prim_float_fields_t p -> Datatypes.option prim_float.
133 Fail Check prim_float_constructP : forall (n:prim_float), prim_float_construct (prim_float_tag n) (prim_float_fields n) = Datatypes.Some n.
134
135 Redirect "tmp" Check pa_record_fields_t : Type -> Numbers.BinNums.positive -> Type.
136 Redirect "tmp" Check pa_record_fields : forall (A:Type) (l:pa_record A), pa_record_fields_t A (pa_record_tag A l).
137 Redirect "tmp" Check pa_record_construct : forall (A:Type) (p: Numbers.BinNums.positive), pa_record_fields_t A p -> Datatypes.option (pa_record A).
138 Redirect "tmp" Check pa_record_constructP : forall (A:Type) (l:pa_record A), pa_record_construct A (pa_record_tag A l) (pa_record_fields A l) = Datatypes.Some l.
139
140 Redirect "tmp" Check pr_record_fields_t : Type -> Numbers.BinNums.positive -> Type.
141 Redirect "tmp" Check pr_record_fields : forall (A:Type) (l:pr_record A), pr_record_fields_t A (pr_record_tag A l).
142 Redirect "tmp" Check pr_record_construct : forall (A:Type) (p: Numbers.BinNums.positive), pr_record_fields_t A p -> Datatypes.option (pr_record A).
143 Redirect "tmp" Check pr_record_constructP : forall (A:Type) (l:pr_record A), pr_record_construct A (pr_record_tag A l) (pr_record_fields A l) = Datatypes.Some l.
144
145 Redirect "tmp" Check sigma_bool_fields_t : Numbers.BinNums.positive -> Type.
146 Redirect "tmp" Check sigma_bool_fields : forall (l:sigma_bool), sigma_bool_fields_t (sigma_bool_tag l).
147 Redirect "tmp" Check sigma_bool_construct : forall (p: Numbers.BinNums.positive), sigma_bool_fields_t p -> Datatypes.option sigma_bool.
148 Redirect "tmp" Check sigma_bool_constructP : forall (l:sigma_bool), sigma_bool_construct (sigma_bool_tag l) (sigma_bool_fields l) = Datatypes.Some l.
149
150 Redirect "tmp" Check ord_fields_t : peano -> Numbers.BinNums.positive -> Type.
151 Redirect "tmp" Check ord_fields : forall (p:peano) (o:ord p), ord_fields_t p (ord_tag p o).
152 Redirect "tmp" Check ord_construct : forall (n:peano) (p:Numbers.BinNums.positive), ord_fields_t n p -> Datatypes.option (ord n).
153 Redirect "tmp" Check ord_constructP : forall (p:peano) (o:ord p), ord_construct p (ord_tag p o) (ord_fields p o) = Datatypes.Some o.
154
155 Redirect "tmp" Check ord2_fields_t : peano -> Numbers.BinNums.positive -> Type.
156 Redirect "tmp" Check ord2_fields : forall (p:peano) (o:ord2 p), ord2_fields_t p (ord2_tag p o).
157 Redirect "tmp" Check ord2_construct : forall (n:peano) (p:Numbers.BinNums.positive), ord2_fields_t n p -> Datatypes.option (ord2 n).
158 Redirect "tmp" Check ord2_constructP : forall (p:peano) (o:ord2 p), ord2_construct p (ord2_tag p o) (ord2_fields p o) = Datatypes.Some o.
159
160 Redirect "tmp" Check val_fields_t : Numbers.BinNums.positive -> Type.
161 Redirect "tmp" Check val_fields : forall i : val, val_fields_t (val_tag i).
162 Redirect "tmp" Check val_construct : forall (p: Numbers.BinNums.positive), val_fields_t p -> Datatypes.option val.
163 Redirect "tmp" Check val_constructP : forall (v:val), val_construct (val_tag v) (val_fields v) = Datatypes.Some v.
164