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
119
Issues
119
List
Boards
Labels
Service Desk
Milestones
Merge Requests
16
Merge Requests
16
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
376cf77b
Commit
376cf77b
authored
May 04, 2017
by
Sylvain Dailler
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Clean does not remove running proof attempt.
parent
fffc8da5
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
21 additions
and
13 deletions
+21
-13
src/session/controller_itp.ml
src/session/controller_itp.ml
+19
-12
src/session/session_itp.mli
src/session/session_itp.mli
+2
-1
No files found.
src/session/controller_itp.ml
View file @
376cf77b
...
...
@@ -682,25 +682,32 @@ let schedule_tr_with_same_arguments
let
name
=
get_transf_name
s
tr
in
schedule_transformation
c
pn
name
args
~
callback
~
notification
let
is_valid
(
pa
:
proof_attempt_node
)
:
bool
=
match
pa
.
Session_itp
.
proof_state
with
|
None
->
false
|
Some
pr
->
begin
match
pr
.
Call_provers
.
pr_answer
with
|
Call_provers
.
Valid
->
true
|
_
->
false
end
let
is_running
(
pa
:
proof_attempt_node
)
:
bool
=
match
pa
.
Session_itp
.
proof_state
with
|
None
->
true
|
Some
pr
->
false
let
clean_session
c
~
remove
~
node_change
=
let
is_valid
(
pa
:
proof_attempt_node
)
:
bool
=
match
pa
.
Session_itp
.
proof_state
with
|
None
->
false
|
Some
pr
->
begin
match
pr
.
Call_provers
.
pr_answer
with
|
Call_provers
.
Valid
->
true
|
_
->
false
end
in
let
s
=
c
.
controller_session
in
Session_itp
.
session_iter_proof_attempt
(
fun
_
pa
->
let
pnid
=
pa
.
parent
in
Hprover
.
iter
(
fun
_
paid
->
if
(
not
(
is_valid
(
get_proof_attempt_node
s
paid
)))
then
let
npa
=
get_proof_attempt_node
s
paid
in
if
(
not
(
is_valid
npa
)
&&
not
(
is_running
npa
))
then
remove_subtree
c
~
removed
:
remove
~
node_change
(
APa
paid
))
(
get_proof_attempt_ids
s
pnid
))
s
(
get_proof_attempt_ids
s
pnid
))
s
(* This function folds on any subelements of given node and tries to mark all
proof attempts it encounters *)
...
...
src/session/session_itp.mli
View file @
376cf77b
...
...
@@ -65,7 +65,8 @@ type proof_attempt_node = {
proof_script
:
string
option
;
(* non empty for external ITP *)
}
val
session_iter_proof_attempt
:
(
proofAttemptID
->
proof_attempt_node
->
unit
)
->
session
->
unit
val
session_iter_proof_attempt
:
(
proofAttemptID
->
proof_attempt_node
->
unit
)
->
session
->
unit
(* [is_below s a b] true if a is below b in the session tree *)
val
is_below
:
session
->
any
->
any
->
bool
...
...
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