-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathmake_results_table.sql
20 lines (16 loc) · 1.41 KB
/
make_results_table.sql
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
-- Uncomment these to create manually from results.csv
-- This is done by pandas connecting to our database:
-- CREATE TABLE results("a" text, "b" text, "original" text, "changed" text, "analysis" text, "time" float, "predictor" text, "prediction" text);
-- These are sqlite (shell) commands, won't work outside of it
-- .mode csv
-- .import results.csv results
-- 'Unknown' results are linker script files
delete from results where original in(select distinct original from results where prediction="Unknown");
-- Keep only the missing-previously-found-exports from the symbols predictor
delete from results where predictor = 'symbols' and analysis = 'missing-previously-found-symbols';
-- 'two_predictors' contains all results except those from abi-laboratory
CREATE TABLE two_predictors("a" text, "b" text, "original" text, "changed" text, "analysis" text, "time" float, "predictor" text, "prediction" text);
insert into two_predictors select * from results where predictor<>'abi-laboratory';
-- 'three_predictors' contains all results from predictors except those libraries where abi-lab crashed or couldn't find a debuginfo file
CREATE TABLE three_predictors("a" text, "b" text, "original" text, "changed" text, "analysis" text, "time" float, "predictor" text, "prediction" text);
insert into three_predictors select * from results where original not in(select distinct original from results where prediction in('Terminated','NODEBUG'));