Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
why3
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
125
Issues
125
List
Boards
Labels
Service Desk
Milestones
Merge Requests
17
Merge Requests
17
Operations
Operations
Incidents
Packages & Registries
Packages & Registries
Container Registry
Analytics
Analytics
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Commits
Issue Boards
Open sidebar
Why3
why3
Commits
5d5a8047
Commit
5d5a8047
authored
Apr 22, 2010
by
Andrei Paskevich
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
do not produce Timeout when %t was not in the command line
parent
f7ae2401
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
4 additions
and
3 deletions
+4
-3
src/driver/call_provers.ml
src/driver/call_provers.ml
+4
-3
No files found.
src/driver/call_provers.ml
View file @
5d5a8047
...
...
@@ -72,11 +72,12 @@ let call_prover debug command opt_cout buffer =
let
call_on_buffer
?
(
debug
=
false
)
~
command
~
timelimit
~
memlimit
~
regexps
~
exitcodes
~
filename
buffer
()
=
let
on_stdin
=
ref
true
in
let
on_timelimit
=
ref
false
in
let
cmd_regexp
=
Str
.
regexp
"%
\\
(.
\\
)"
in
let
replace
file
s
=
match
Str
.
matched_group
1
s
with
|
"%"
->
"%"
|
"f"
->
on_stdin
:=
false
;
file
|
"t"
->
string_of_int
timelimit
|
"t"
->
on_timelimit
:=
true
;
string_of_int
timelimit
|
"m"
->
string_of_int
memlimit
|
_
->
failwith
"unknown format specifier, use %%f, %%t or %%m"
in
...
...
@@ -107,8 +108,8 @@ let call_on_buffer ?(debug=false) ~command ~timelimit ~memlimit
(
try
List
.
assoc
n
exitcodes
with
Not_found
->
grep
out
regexps
)
in
let
ans
=
match
ans
with
|
HighFailure
when
timelimit
>
0
&&
time
>=
(
0
.
9
*.
float
timelimit
)
->
Timeout
|
HighFailure
when
!
on_timelimit
&&
timelimit
>
0
&&
time
>=
(
0
.
9
*.
float
timelimit
)
->
Timeout
|
_
->
ans
in
{
pr_answer
=
ans
;
...
...
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