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
e298ec5d
Commit
e298ec5d
authored
May 10, 2010
by
Simon Cruanes
Browse files
tptp driver handles some timeout messages
tptp2why accepts stdin as a problem
parent
f5cb7ea4
Changes
2
Hide whitespace changes
Inline
Side-by-side
drivers/tptp.drv
View file @
e298ec5d
...
@@ -8,8 +8,10 @@ filename "%f-%t-%g.p"
...
@@ -8,8 +8,10 @@ filename "%f-%t-%g.p"
valid
"Proof found"
valid
"Proof found"
valid
"Completion found"
valid
"Completion found"
invalid
"Failure"
fail
"Failure"
"Failure"
invalid
"No Proof Found"
unknown
"No Proof Found"
"Unknown"
timeout
"Resource limit exceeded"
timeout
"Ran out of time"
(* to be improved *)
(* to be improved *)
...
...
src/tptp2why/tptp2why.ml
View file @
e298ec5d
...
@@ -18,7 +18,7 @@ end= struct
...
@@ -18,7 +18,7 @@ end= struct
let
rec
getAllDecls
?
first
:
(
first
=
false
)
include_dir
filename
=
let
rec
getAllDecls
?
first
:
(
first
=
false
)
include_dir
filename
=
try
try
let
filename
=
if
first
then
filename
else
include_dir
^
"/"
^
filename
in
let
filename
=
if
first
then
filename
else
include_dir
^
"/"
^
filename
in
let
input
=
open_in
filename
in
let
input
=
if
filename
=
"-"
then
stdin
else
open_in
filename
in
let
decls
=
TptpParser
.
tptp
TptpLexer
.
token
(
Lexing
.
from_channel
input
)
in
let
decls
=
TptpParser
.
tptp
TptpLexer
.
token
(
Lexing
.
from_channel
input
)
in
let
isInclude
=
function
|
Include
_
->
true
|
_
->
false
in
let
isInclude
=
function
|
Include
_
->
true
|
_
->
false
in
close_in
input
;
close_in
input
;
...
@@ -61,10 +61,11 @@ module Init = struct
...
@@ -61,10 +61,11 @@ module Init = struct
let
options
=
[
let
options
=
[
(
"-o"
,
String
output_updater
,
"outputs to a file"
);
(
"-o"
,
String
output_updater
,
"outputs to a file"
);
(
"-I"
,
String
include_updater
,
"search for included files in this dir"
)
(
"-I"
,
String
include_updater
,
"search for included files in this dir"
);
(
"-"
,
Unit
(
fun
()
->
input_files
:=
"-"
::
!
input_files
)
,
"reads from stdin"
)
]
]
let
usage
=
"tptp2why file1 [file2...] [-o file] [-I dir]
let
usage
=
"tptp2why
[
file1
|-]
[file2...] [-o file] [-I dir]
It parses tptp files (fof or cnf format) and prints a why file
It parses tptp files (fof or cnf format) and prints a why file
with one theory per input file."
with one theory per input file."
...
...
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