@@ -96,6 +96,7 @@ public void doQuickResolve() {
96
96
public void doQuickResolve (Corpus corpus ) {
97
97
for (p <- corpus , v := corpus [p ]) {
98
98
pt = loadBinary (p ,v );
99
+ if (!includesInfoExists (p ,v )) buildIncludesInfo (p ,v ,getCorpusItem (p ,v ));
99
100
IncludesInfo iinfo = loadIncludesInfo (p , v );
100
101
rel [loc ,loc ,loc ] res = { };
101
102
map [loc ,Duration ] timings = ( );
@@ -218,14 +219,18 @@ public str createQuickResolveCountsTable() {
218
219
corpus = getBaseCorpus();
219
220
220
221
str headerLine() {
221
- return "System & Includes & Dynamic & Unique & Missing & Any & Other & Average \\\\ \\ midrule";
222
+ res = "System & \\ multicolumn{3}{c}{Includes} & \\ phantom{abc} & \\ multicolumn{5}{c}{Results} \\\\
223
+ '\\ cmidrule{2-4} \\ cmidrule{6-10}
224
+ ' & Total & Static & Dynamic & & Unique & Missing & Any & Other & Average \\\\ \\ midrule";
225
+ return res;
222
226
}
223
227
224
228
str productLine(str p, str v) {
225
229
map[int hits, int includes] m = counts[<p ,v > ];
226
230
total = ( 0 | it + m[h] | h <- m <0 > );
227
231
pt = loadBinary(p,v);
228
232
dyn = total - size([ i | /i :include (ip ,_) := pt , scalar (sv ) := ip , encapsed (_) !:= sv ]);
233
+ st = total - dyn ;
229
234
unique = (1 in m ) ? m [1 ] : 0 ;
230
235
missing = (0 in m ) ? m [0 ] : 0 ;
231
236
files = size (pt <0 >);
@@ -235,23 +240,21 @@ public str createQuickResolveCountsTable() {
235
240
denom = ( 0 | it + m [h ] | h <- m <0 >, h > 1 , h < threshold );
236
241
avg = (denom == 0 ) ? 0 : ( ( 0 | it + (m [h ] * h ) | h <- m <0 >, h > 1 , h < threshold ) * 1.000 / denom);
237
242
238
- return "<p > & \\ numprint{<total > } & \\ numprint{<dyn > } & \\ numprint{<unique > } & \\ numprint{<missing > } & \\ numprint{<anyinc > } & \\ numprint{<other > } & \\ nprounddigits{2} \\ numprint{<avg > } \\ npnoround \\\\ ";
243
+ return "<p > & \\ numprint{<total > } & \\ numprint{<st > } & \\ numprint{ < dyn > } & & \\ numprint{<unique > } & \\ numprint{<missing > } & \\ numprint{<anyinc > } & \\ numprint{<other > } & \\ nprounddigits{2} \\ numprint{<avg > } \\ npnoround \\\\ ";
239
244
}
240
245
241
246
res = "\\ npaddmissingzero
242
247
'\\ npfourdigitsep
243
- '\\ begin{table}
248
+ '\\ begin{table* }
244
249
'\\ centering
245
- '\\ ra{1.0}
246
- '\\ resizebox{\\ columnwidth}{!}{%
247
- '\\ begin{tabular}{@{}lrrrrrrr@{}} \\ toprule
250
+ '\\ ra{1.2}
251
+ '\\ begin{tabular}{@{}lrrrcrrrrr@{}} \\ toprule
248
252
'<headerLine ()> <for (p <- sort (toList (corpus <0 > ),bool(str s1,str s2) { return toUpperCase(s1)<toUpperCase (s2 ); })) {>
249
253
' <productLine (p ,corpus [p ])> <}>
250
254
'\\ bottomrule
251
255
'\\ end{tabular}
252
- '}
253
- '\\ caption{File-Level Resolution.\\ label{table-quick}}
254
- '\\ end{table}
256
+ '\\ caption{Results of running {\\ sf FLRES} on the corpus.\\ label{table-quick}}
257
+ '\\ end{table*}
255
258
'";
256
259
return res;
257
260
}
0 commit comments