Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
F
frama-c
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Deploy
Releases
Container Registry
Model registry
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
pub
frama-c
Commits
7249316f
Commit
7249316f
authored
4 years ago
by
Loïc Correnson
Browse files
Options
Downloads
Patches
Plain Diff
[wp] run only one editor at the same time
parent
4bf3b253
No related branches found
No related tags found
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
src/plugins/wp/ProverWhy3.ml
+22
-16
22 additions, 16 deletions
src/plugins/wp/ProverWhy3.ml
with
22 additions
and
16 deletions
src/plugins/wp/ProverWhy3.ml
+
22
−
16
View file @
7249316f
...
...
@@ -1262,7 +1262,9 @@ let batch pconf driver ?script ~timeout ~steplimit prover task =
(* --- Interactive Prover (Coq) --- *)
(* -------------------------------------------------------------------------- *)
let
editor
pconf
=
let
editor_mutex
=
Task
.
mutex
()
let
editor_command
pconf
=
let
config
=
Why3Provers
.
config
()
in
try
let
ed
=
Why3
.
Whyconf
.
editor_by_id
config
pconf
.
Why3
.
Whyconf
.
editor
in
...
...
@@ -1275,21 +1277,25 @@ let scriptfile ~force ~ext wpo =
Format
.
sprintf
"%s/%s%s"
(
dir
:>
string
)
wpo
.
Wpo
.
po_sid
ext
let
editor
~
script
~
merge
wpo
pconf
driver
prover
task
=
Wp_parameters
.
feedback
~
ontty
:
`Transient
"Editing %S..."
script
;
Cache
.
clear_result
~
digest
:
(
digest
wpo
driver
)
prover
task
;
if
merge
then
begin
let
backup
=
script
^
".bak"
in
Sys
.
rename
script
backup
;
let
old
=
open_in
backup
in
Command
.
pp_to_file
script
(
fun
fmt
->
ignore
@@
Why3
.
Driver
.
print_task_prepared
~
old
driver
fmt
task
);
close_in
old
;
end
;
let
call
=
Why3
.
Call_provers
.
call_editor
~
command
:
(
editor
pconf
)
script
in
call_prover_task
~
timeout
:
None
~
steps
:
None
pconf
.
prover
call
Task
.
sync
editor_mutex
begin
fun
()
->
Wp_parameters
.
feedback
~
ontty
:
`Transient
"Editing %S..."
script
;
Cache
.
clear_result
~
digest
:
(
digest
wpo
driver
)
prover
task
;
if
merge
then
begin
let
backup
=
script
^
".bak"
in
Sys
.
rename
script
backup
;
let
old
=
open_in
backup
in
Command
.
pp_to_file
script
(
fun
fmt
->
ignore
@@
Why3
.
Driver
.
print_task_prepared
~
old
driver
fmt
task
);
close_in
old
;
end
;
let
command
=
editor_command
pconf
in
let
call
=
Why3
.
Call_provers
.
call_editor
~
command
script
in
call_prover_task
~
timeout
:
None
~
steps
:
None
pconf
.
prover
call
end
let
compile
~
script
~
timeout
wpo
pconf
driver
prover
task
=
let
digest
=
digest
wpo
driver
in
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment