metrics: add poset_metrics
[nit.git] / tests / sav / nitmetrics_args1.res
1 *** METRICS ***
2 --- Poset metrics ---
3 ## Module importation hierarchy
4 Number of nodes: 1
5 Number of edges: 1 (1.00 per node)
6 Number of direct edges: 0 (0.0 per node)
7 Distribution of greaters
8  population: 1
9  minimum value: 1
10  maximum value: 1
11  total value: 1
12  average value: 1.00
13  distribution:
14   <=1: sub-population=1 (100.00%); cumulated value=1 (100.00%)
15 Distribution of direct greaters
16  population: 1
17  minimum value: 0
18  maximum value: 0
19  total value: 0
20  average value: 0.0
21  distribution:
22   <=0: sub-population=1 (100.00%); cumulated value=0 (na%)
23 Distribution of smallers
24  population: 1
25  minimum value: 1
26  maximum value: 1
27  total value: 1
28  average value: 1.00
29  distribution:
30   <=1: sub-population=1 (100.00%); cumulated value=1 (100.00%)
31 Distribution of direct smallers
32  population: 1
33  minimum value: 0
34  maximum value: 0
35  total value: 0
36  average value: 0.0
37  distribution:
38   <=0: sub-population=1 (100.00%); cumulated value=0 (na%)
39 ## Module nesting hierarchy
40 Number of nodes: 1
41 Number of edges: 1 (1.00 per node)
42 Number of direct edges: 0 (0.0 per node)
43 Distribution of greaters
44  population: 1
45  minimum value: 1
46  maximum value: 1
47  total value: 1
48  average value: 1.00
49  distribution:
50   <=1: sub-population=1 (100.00%); cumulated value=1 (100.00%)
51 Distribution of direct greaters
52  population: 1
53  minimum value: 0
54  maximum value: 0
55  total value: 0
56  average value: 0.0
57  distribution:
58   <=0: sub-population=1 (100.00%); cumulated value=0 (na%)
59 Distribution of smallers
60  population: 1
61  minimum value: 1
62  maximum value: 1
63  total value: 1
64  average value: 1.00
65  distribution:
66   <=1: sub-population=1 (100.00%); cumulated value=1 (100.00%)
67 Distribution of direct smallers
68  population: 1
69  minimum value: 0
70  maximum value: 0
71  total value: 0
72  average value: 0.0
73  distribution:
74   <=0: sub-population=1 (100.00%); cumulated value=0 (na%)
75 ## Classdef hierarchy
76 Number of nodes: 8
77 Number of edges: 22 (2.75 per node)
78 Number of direct edges: 7 (0.87 per node)
79 Distribution of greaters
80  population: 8
81  minimum value: 2
82  maximum value: 3
83  total value: 22
84  average value: 2.75
85  distribution:
86   <=2: sub-population=2 (25.00%); cumulated value=4 (18.18%)
87   <=4: sub-population=6 (75.00%); cumulated value=18 (81.81%)
88 Distribution of direct greaters
89  population: 8
90  minimum value: 0
91  maximum value: 1
92  total value: 7
93  average value: 0.87
94  distribution:
95   <=0: sub-population=1 (12.50%); cumulated value=0 (0.0%)
96   <=1: sub-population=7 (87.50%); cumulated value=7 (100.00%)
97 Distribution of smallers
98  population: 8
99  minimum value: 1
100  maximum value: 8
101  total value: 22
102  average value: 2.75
103  distribution:
104   <=1: sub-population=6 (75.00%); cumulated value=6 (27.27%)
105   <=8: sub-population=2 (25.00%); cumulated value=16 (72.72%)
106 Distribution of direct smallers
107  population: 8
108  minimum value: 0
109  maximum value: 6
110  total value: 7
111  average value: 0.87
112  distribution:
113   <=0: sub-population=6 (75.00%); cumulated value=0 (0.0%)
114   <=1: sub-population=1 (12.50%); cumulated value=1 (14.28%)
115   <=8: sub-population=1 (12.50%); cumulated value=6 (85.71%)
116 ## Class hierarchy
117 Number of nodes: 7
118 Number of edges: 13 (1.85 per node)
119 Number of direct edges: 6 (0.85 per node)
120 Distribution of greaters
121  population: 7
122  minimum value: 1
123  maximum value: 2
124  total value: 13
125  average value: 1.85
126  distribution:
127   <=1: sub-population=1 (14.28%); cumulated value=1 (7.69%)
128   <=2: sub-population=6 (85.71%); cumulated value=12 (92.30%)
129 Distribution of direct greaters
130  population: 7
131  minimum value: 0
132  maximum value: 1
133  total value: 6
134  average value: 0.85
135  distribution:
136   <=0: sub-population=1 (14.28%); cumulated value=0 (0.0%)
137   <=1: sub-population=6 (85.71%); cumulated value=6 (100.00%)
138 Distribution of smallers
139  population: 7
140  minimum value: 1
141  maximum value: 7
142  total value: 13
143  average value: 1.85
144  distribution:
145   <=1: sub-population=6 (85.71%); cumulated value=6 (46.15%)
146   <=8: sub-population=1 (14.28%); cumulated value=7 (53.84%)
147 Distribution of direct smallers
148  population: 7
149  minimum value: 0
150  maximum value: 6
151  total value: 6
152  average value: 0.85
153  distribution:
154   <=0: sub-population=6 (85.71%); cumulated value=0 (0.0%)
155   <=8: sub-population=1 (14.28%); cumulated value=6 (100.00%)
156 --- Global Summary metrics ---
157 (NMD) Number of Modules: 1
158 (NC)  Number of Classes: 4
159 (NI)  Number of Interfaces: 1
160 (NAC)  Number of Abstract Classes: 0
161 (NGC)  Number of Generic Classes: 0
162 (NGI)  Number of Generic Interfaces: 0
163 --- (SL) Std-Lib Summary metrics ---
164 (NMDSL) Number of Modules: 0
165 (NCSL)  Number of Classes: 0
166 (NISL)  Number of Interfaces: 0
167 (NACSL)  Number of Abstract Classes: 0
168 (NGCSL)  Number of Generic Classes: 0
169 (NGISL)  Number of Generic Interfaces: 0
170 --- (UD) User-Defined Summary metrics ---
171 (NMDUD) Number of Modules: 1
172 (NCUD)  Number of Classes: 4
173 (NIUD)  Number of Interfaces: 1
174 (NACUD)  Number of Abstract Classes: 0
175 (NGCUD)  Number of Generic Classes: 0
176 (NGIUD)  Number of Generic Interfaces: 0
177
178 --- Global Inheritance metrics ---
179 (DIT) Global Depth in Inheritance Tree: 0.85
180 (DUI) Proportion of types inheriting another type other than Object: 0.0%
181 (CCDUI) Proportion of classes that extend some other class: 0.0%
182 (CIDUI) Proportion of classes that implement some other interface: 0.0%
183 (IIDUI) Proportion of interfaces that extend some other interface: 0.0%
184 (IF) Proportion of types Inherited From: 20.00%
185 (CCIF) Proportion of classes extended by class: 0.0%
186 (ICIF) Proportion of interfaces implemented by class: 100.00%
187 (IIIF) Proportion of interfaces extended by interface: 0.0%
188
189 --- (SL -> *) Std-Lib Inheritance metrics ---
190 (SLDUI) Proportion of SL types inheriting another type other than Object: na%
191 (SLCCDUI) Proportion of SL classes that extend some other class: na%
192 (SLCIDUI) Proportion of SL classes that implement some other interface: na%
193 (SLIIDUI) Proportion of SL interfaces that extend some other interface: na%
194 (SLIF) Proportion of SL types Inherited From: na%
195 (SLCCIF) Proportion of SL classes extended by class: na%
196 (SLICIF) Proportion of SL interfaces implemented by class: na%
197 (SLIIIF) Proportion of SL interfaces extended by interface: na%
198
199 --- (SL -> SL) Std-Lib Inheritance metrics ---
200 (SLIFSL) Proportion of SL types Inherited From by SL type: na%
201 (SLCCIFSL) Proportion of SL classes extended by SL class: na%
202 (SLICIFSL) Proportion of SL interfaces implemented by SL class: na%
203 (SLIIIFSL) Proportion of SL interfaces extended by SL interface: na%
204
205 --- (SL->UD) Std-Lib Inheritance metrics ---
206 (SLIFUD) Proportion of SL types Inherited From by UD type: na%
207 (SLCCIFUD) Proportion of SL classes extended by UD class: na%
208 (SLICIFUD) Proportion of SL interfaces implemented by UD class: na%
209 (SLIIIFUD) Proportion of SL interfaces extended by UD interface: na%
210
211 --- (UD->*) User-Defined Inheritance metrics ---
212 (UDDUI) Proportion of UD types inheriting another type other than Object: 0.0%
213 (UDCCDUI) Proportion of UD classes that extend some other class: 0.0%
214 (UDCIDUI) Proportion of UD classes that implement some other interface: 0.0%
215 (UDIIDUI) Proportion of UD interfaces that extend some other interface: 0.0%
216 (UDIF) Proportion of UD types Inherited From: 20.00%
217 (UDCCIF) Proportion of UD classes extended by class: 0.0%
218 (UDICIF) Proportion of UD interfaces implemented by class: 100.00%
219 (UDIIIF) Proportion of UD interfaces extended by interface: 0.0%
220
221 --- (UD -> SL) User-Defined Inheritance metrics ---
222 (UDDUISL) Proportion of UD types inheriting another type other SL type: 0.0%
223 (UDCCDUISL) Proportion of UD classes that extend some other SL class: 0.0%
224 (UDCIDUISL) Proportion of UD classes that implement some other SL interface: 0.0%
225 (UDIIDUISL) Proportion of UD interfaces that extend some other SL interface: 0.0%
226
227 --- (UD -> UD) User-Defined Inheritance metrics ---
228 (UDDUIUD) Proportion of UD types inheriting another type other UD type: 0.0%
229 (UDCCDUIUD) Proportion of UD classes that extend some other UD class: 0.0%
230 (UDCIDUIUD) Proportion of UD classes that implement some other UD interface: 0.0%
231 (UDIIDUIUD) Proportion of UD interfaces that extend some other UD interface: 0.0%
232 (UDIFUD) Proportion of UD types Inherited From: 20.00%
233 (UDCCIFUD) Proportion of UD classes extended by UD class: 0.0%
234 (UDICIFUD) Proportion of UD interfaces implemented by UD class: 100.00%
235 (UDIIIFUD) Proportion of UD interfaces extended by UD interface: 0.0%
236 --- Metrics of refinement usage ---
237 Number of modules: 1
238
239 Number of classes: 7
240   Number of interface kind: 1 (14.28%)
241   Number of enum kind: 2 (28.57%)
242   Number of class kind: 4 (57.14%)
243
244 Number of class definitions: 8
245 Number of refined classes: 1 (14.28%)
246 Average number of class refinments by classes: 0.14
247 Average number of class refinments by refined classes: 1.00
248
249 Number of properties: 19
250   Number of MAttribute: 3 (15.78%)
251   Number of MMethod: 16 (84.21%)
252
253 Number of property definitions: 19
254 Number of redefined properties: 0 (0.0%)
255 Average number of property redefinitions by property: 0.0
256 Average number of property redefinitions by redefined property: na
257 --- Metrics of the explitic static types ---
258 Total number of explicit static types: 9
259 Most used types: 
260   Int: 6
261   C: 1
262   B: 1
263   A: 1
264 Statistics of type usage:
265  population: 4
266  minimum value: 1
267  maximum value: 6
268  total value: 9
269  average value: 2.25
270  distribution:
271   <=1: sub-population=3 (75.00%); cumulated value=3 (33.33%)
272   <=8: sub-population=1 (25.00%); cumulated value=6 (66.66%)
273 --- Sends on Nullable Reciever ---
274 Total number of sends: 19
275 Number of sends on a nullable receiver: 0 (0.0%)
276 Number of buggy sends (cannot determine the type of the receiver): 0 (0.0%)
277 --- Explicit vs. Implicit Self ---
278 Total number of self: 5
279 Total number of implicit self: 4 (80.00%)
280 --- Construction of tables ---
281 Number of runtime classes: 6 (excluding interfaces and abstract classes)
282 Average number of composing class definition by runtime class: 3.00
283 Total size of tables (classes and instances): 34 (not including stuff like info for subtyping or call-next-method)
284 Average size of table by runtime class: 5.66
285 Values never redefined: 34 (100.00%)
286 --- RTA metrics ---
287 Number of live runtime types (instantied resolved type): 6
288         Sys Bool Int A B C
289 Number of live method definitions: 14
290 Number of live customized method definitions: 14
291 Number of live runtime cast types (ie used in as and isa): 0
292         
293 class_hierarchy.dot
294 classdef_hierarchy.dot
295 model.html
296 module_hierarchy.dot