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
120
Issues
120
List
Boards
Labels
Service Desk
Milestones
Merge Requests
18
Merge Requests
18
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
1efd7a6d
Commit
1efd7a6d
authored
Apr 10, 2012
by
Jean-Christophe Filliâtre
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Coq tactic: fixed compilation with outdated config file
parent
7a562df9
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
13 additions
and
4 deletions
+13
-4
Makefile.in
Makefile.in
+2
-2
src/coq-tactic/why3tac.ml
src/coq-tactic/why3tac.ml
+11
-2
No files found.
Makefile.in
View file @
1efd7a6d
...
...
@@ -830,12 +830,12 @@ src/coq-tactic/g_why3tac.ml: src/coq-tactic/g_why3tac.ml4
src/coq-tactic/.why3-vo-byte
:
lib/coq-tactic/Why3.v lib/coq-tactic/why3tac.cma
$(
if
$(QUIET)
,@echo
'Coqc $<'
&&
)
\
$(COQC)
-byte
-I
lib/coq-tactic/
$<
&&
\
WHY3NOCONFIG
=
42
$(COQC)
-byte
-I
lib/coq-tactic/
$<
&&
\
touch
src/coq-tactic/.why3-vo-byte
src/coq-tactic/.why3-vo-opt
:
lib/coq-tactic/Why3.v lib/coq-tactic/why3tac.cmxs
$(
if
$(QUIET)
,@echo
'Coqc $<'
&&
)
\
$(COQC)
-opt
-I
lib/coq-tactic/
$<
&&
\
WHY3NOCONFIG
=
42
$(COQC)
-opt
-I
lib/coq-tactic/
$<
&&
\
touch
src/coq-tactic/.why3-vo-opt
# depend and clean targets
...
...
src/coq-tactic/why3tac.ml
View file @
1efd7a6d
...
...
@@ -42,7 +42,15 @@ let debug =
try
let
_
=
Sys
.
getenv
"WHY3DEBUG"
in
true
with
Not_found
->
false
let
config
=
Whyconf
.
read_config
None
let
config
=
try
let
_
=
Sys
.
getenv
"WHY3NOCONFIG"
in
Whyconf
.
default_config
""
with
Not_found
->
try
Whyconf
.
read_config
None
with
Whyconf
.
ConfigFailure
(
file
,
msg
)
->
error
(
file
^
": "
^
msg
)
let
main
=
Whyconf
.
get_main
config
let
timelimit
=
timelimit
main
...
...
@@ -1114,7 +1122,8 @@ let why3tac ?(timelimit=timelimit) s gl =
if
debug
then
Printexc
.
print_backtrace
stderr
;
flush
stderr
;
error
"Not a first order goal"
|
Whyconf
.
ProverNotFound
(
_
,
s
)
->
let
pl
=
Mprover
.
fold
(
fun
_
p
l
->
p
.
id
::
l
)
let
pl
=
Mprover
.
fold
(
fun
_
p
l
->
if
not
p
.
interactive
then
p
.
id
::
l
else
l
)
(
get_provers
config
)
[]
in
let
msg
=
pr_str
"No such prover `"
++
pr_str
s
++
pr_str
"'."
++
pr_spc
()
++
pr_str
"Available provers are:"
++
pr_fnl
()
++
...
...
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