Commit 67ad9f88 authored by Simon Cruanes's avatar Simon Cruanes
Browse files

bugfixes dans les outils de statistiques

parent d51b790b
......@@ -38,8 +38,15 @@ diffs = cursor.execute("""SELECT r1.file,r1.goal, r1.prover, r1.result, r2.prove
tptp = ["spass", "eprover"]
def isTptp(x):
"x est-il le nom d'un prouveur tptp ?"
for t in tptp:
if x.find(t) >= 0:
return True
return False
# garder les lignes représentant une différence entre un tptp et un smt
diffs = [line for line in diffs if (line[2] in tptp) ^ (line[4] in tptp)]
diffs = [line for line in diffs if (isTptp(line[2]) ^ isTptp(line[4]))]
# afficher
lib.print_columns(diffs)
......@@ -35,10 +35,10 @@ def print_columns(lines):
for line in lines:
for i in xrange(column_width-1):
widths[i] = max(widths[i], len(line[i]))
widths[i] = max(widths[i], len(str(line[i])))
for line in lines:
for i in xrange(column_width-1):
assert(len(line[i]) <= widths[i])
print line[i].ljust(widths[i]+2, "."),
assert(len(str(line[i])) <= widths[i])
print str(line[i]).ljust(widths[i]+2, "."),
print line[-1]
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment