Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

chore: fix perc measurement in data collection scripts #777

Merged
merged 1 commit into from
Nov 3, 2024
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
18 changes: 9 additions & 9 deletions bv-evaluation/plot-data-llvm.py
Original file line number Diff line number Diff line change
Expand Up @@ -22,15 +22,15 @@
df_ceg = pd.read_csv('raw-data/llvm-ceg-data.csv')


sum_steps = np.array(df['leanSAT-rw'])+np.array(df['leanSAT-bb'])+np.array(df['leanSAT-sat'])+np.array(df['leanSAT-lrat-c'])+np.array(df['leanSAT-lrat-t'])
sum_steps = np.sum(np.array(df['leanSAT-rw'])+np.array(df['leanSAT-bb'])+np.array(df['leanSAT-sat'])+np.array(df['leanSAT-lrat-c'])+np.array(df['leanSAT-lrat-t']))

diff = np.array(df['leanSAT']-sum_steps)/np.array(df['leanSAT'])

rw = np.array(df['leanSAT-rw'])/df['leanSAT']*100
bb=np.array(df['leanSAT-bb'])/df['leanSAT']*100
sat=np.array(df['leanSAT-sat'])/df['leanSAT']*100
lrat_c=np.array(df['leanSAT-lrat-c'])/df['leanSAT']*100
lrat_t=np.array(df['leanSAT-lrat-t'])/df['leanSAT']*100
rw = np.sum(df['leanSAT-rw'])/sum_steps*100
bb=np.sum(df['leanSAT-bb'])/sum_steps*100
sat=np.sum(df['leanSAT-sat'])/sum_steps*100
lrat_c=np.sum(df['leanSAT-lrat-c'])/sum_steps*100
lrat_t=np.sum(df['leanSAT-lrat-t'])/sum_steps*100

print('\n\nrw takes on average: '+str(np.mean(rw))+'%')
print('bb takes on average: '+str(np.mean(bb))+'%')
Expand All @@ -48,11 +48,11 @@
print('\n\nA proof was found for '+str(len(df))+' theorems')


ceg_sum_steps = np.array(df_ceg['leanSAT-rw'])+np.array(df_ceg['leanSAT-sat'])
ceg_sum_steps = np.sum(np.array(df_ceg['leanSAT-rw'])+np.array(df_ceg['leanSAT-sat']))
ceg_diff = np.array(df_ceg['leanSAT']-ceg_sum_steps)/np.array(df_ceg['leanSAT'])

ceg_rw = np.array(df_ceg['leanSAT-rw'])/ceg_sum_steps*100
ceg_sat=np.array(df_ceg['leanSAT-sat'])/ceg_sum_steps*100
ceg_rw = np.sum(df_ceg['leanSAT-rw'])/ceg_sum_steps*100
ceg_sat=np.sum(df_ceg['leanSAT-sat'])/ceg_sum_steps*100

print('\n\nA counterexample was found for '+str(len(df_ceg))+' theorems')

Expand Down
Loading