Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
Why3
why3
Commits
67ad9f88
Commit
67ad9f88
authored
Jul 20, 2010
by
Simon Cruanes
Browse files
bugfixes dans les outils de statistiques
parent
d51b790b
Changes
2
Hide whitespace changes
Inline
Side-by-side
comparison/find.py
View file @
67ad9f88
...
...
@@ -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
)
comparison/lib.py
View file @
67ad9f88
...
...
@@ -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
]
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment