Skip to content
GitLab
Explore
Sign in
Register
Primary navigation
Search or go to…
Project
W
why3
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Model registry
Operate
Environments
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
GitLab community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
Nils Fitinghoff
why3
Commits
935f1d7d
Commit
935f1d7d
authored
Sep 10, 2018
by
Claude Marché
Browse files
Options
Downloads
Patches
Plain Diff
CPU_duplicate policy finally implemented
parent
f847f74d
Branches
Branches containing commit
No related tags found
No related merge requests found
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
src/session/controller_itp.ml
+8
-13
8 additions, 13 deletions
src/session/controller_itp.ml
with
8 additions
and
13 deletions
src/session/controller_itp.ml
+
8
−
13
View file @
935f1d7d
...
...
@@ -917,6 +917,7 @@ let find_prover notification c goal_id pr =
match
Whyconf
.
get_prover_upgrade_policy
c
.
controller_config
pr
with
|
exception
Not_found
->
`Keep
|
Whyconf
.
CPU_keep
->
`Keep
|
Whyconf
.
CPU_remove
->
`Remove
|
Whyconf
.
CPU_upgrade
new_pr
->
(* does a proof using new_pr already exists ? *)
if
Hprover
.
mem
(
get_proof_attempt_ids
c
.
controller_session
goal_id
)
new_pr
...
...
@@ -928,23 +929,17 @@ let find_prover notification c goal_id pr =
Session_itp
.
change_prover
notification
c
.
controller_session
goal_id
pr
new_pr
;
`Found
new_pr
end
|
Whyconf
.
CPU_remove
->
`Remove
|
Whyconf
.
CPU_duplicate
_
(* _new_pr *)
->
assert
false
(* TODO *)
(*
(* does a proof using new_p already exists ? *)
if Hprover.mem (goal_external_proofs parid) new_pr
|
Whyconf
.
CPU_duplicate
new_pr
->
(* does a proof using new_pr already exists ? *)
if
Hprover
.
mem
(
get_proof_attempt_ids
c
.
controller_session
goal_id
)
new_pr
then
(* yes, then we do nothing *)
None
`Keep
else
begin
(* we duplicate the proof_attempt *)
let new_a = copy_external_proof
~notify ~keygen:O.create ~prover:new_p ~env_session:eS a
in
Some new_pr
(* we duplicate the proof attempt *)
`Found
new_pr
end
*)
let
replay_proof_attempt
c
pr
limit
(
parid
:
proofNodeID
)
id
~
callback
~
notification
=
(* The replay can be done on a different machine so we need
...
...
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