Skip to content
GitLab
Menu
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
Why3
why3
Commits
f0560855
Commit
f0560855
authored
Aug 28, 2015
by
MARCHE Claude
Browse files
prover: bench script to compare with other provers
parent
93ac6dc3
Changes
1
Show whitespace changes
Inline
Side-by-side
examples/in_progress/prover/bench.sh
0 → 100644
View file @
f0560855
#!/bin/sh
# tests for the safe prover
timelimit
=
5
memlimit
=
1000
file
=
$1
report
=
"report.txt"
reperr
=
"report_errors.txt"
TMP
=
bench.out
TMPERR
=
bench.err
WHY3CPULIMIT
=
../../../lib/why3-cpulimit
$WHY3CPULIMIT
$timelimit
$memlimit
-s
build/prover
$file
2>
$TMPERR
>
$TMP
ret
=
$?
if
test
"
$ret
"
!=
"0"
-a
"
$ret
"
!=
152
;
then
printf
"
$file
: ret code=
$ret
\n
"
>>
$reperr
cat
$TMP
>>
$reperr
cat
$TMPERR
>>
$reperr
else
printf
"
$file
:
\n
"
>>
$report
time
=
`
sed
-n
-e
's|.*time : \(.*\) s.*|\1|p'
$TMPERR
`
if
grep
"Unsat"
$TMP
>
/dev/null
;
then
printf
"Proved
$time
\n
"
>>
$report
else
printf
"Not proved
$time
\n
"
>>
$report
fi
# zenon
# $WHY3CPULIMIT `expr $timelimit + 1` $memlimit -s zenon-0.7.1 -p0 -itptp -max-size $memlimit"M" -max-time $timelimit"s" $file 2> $TMPERR > $TMP
# ret=$?
# res=`sed -n -e 's|.*(\* \(.*PROOF.*\) \*).*|\1|p' $TMP`
# time=`sed -n -e 's|.*time : \(.*\) s.*|\1|p' $TMPERR`
# printf "zenon: $res $time\n" >> $report
# eprover
$WHY3CPULIMIT
`
expr
$timelimit
+ 1
`
$memlimit
-s
eprover
-s
-R
-xAuto
-tAuto
--cpu-limit
=
$timelimit
--tstp-in
$file
2>
$TMPERR
>
$TMP
ret
=
$?
res
=
`
sed
-n
-e
's|\(.*Proof.*\)|\1|p'
$TMP
`
time
=
`
sed
-n
-e
's|.*time : \(.*\) s.*|\1|p'
$TMPERR
`
printf
"eprover:
$res
$time
\n
"
>>
$report
# SPASS
$WHY3CPULIMIT
`
expr
$timelimit
+ 1
`
$memlimit
-s
SPASS
-TPTP
-PGiven
=
0
-PProblem
=
0
-TimeLimit
=
$timelimit
$file
2>
$TMPERR
>
$TMP
ret
=
$?
res
=
`
sed
-n
-e
's|.*: \([^:]*.*Proof.*\)|\1|p'
$TMP
`
time
=
`
sed
-n
-e
's|.*time : \(.*\) s.*|\1|p'
$TMPERR
`
printf
"SPASS:
$res
$time
\n
"
>>
$report
fi
Write
Preview
Markdown
is supported
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