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
fae56db8
Commit
fae56db8
authored
4 years ago
by
Loïc Correnson
Browse files
Options
Downloads
Patches
Plain Diff
[wp] warning for terminates
parent
f3f0e2ea
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/cfgInfos.ml
+9
-0
9 additions, 0 deletions
src/plugins/wp/cfgInfos.ml
with
9 additions
and
0 deletions
src/plugins/wp/cfgInfos.ml
+
9
−
0
View file @
fae56db8
...
@@ -108,6 +108,14 @@ let selected_call ~bhv ~prop kf =
...
@@ -108,6 +108,14 @@ let selected_call ~bhv ~prop kf =
let
selected_clause
~
prop
name
getter
kf
=
let
selected_clause
~
prop
name
getter
kf
=
getter
kf
<>
[]
&&
selected_name
~
prop
name
getter
kf
<>
[]
&&
selected_name
~
prop
name
let
selected_terminates
kf
=
match
Annotations
.
terminates
kf
with
|
None
->
()
|
Some
ip
->
let
loc
=
ip
.
ip_content
.
tp_statement
.
pred_loc
in
Wp_parameters
.
warning
~
source
:
(
fst
loc
)
"Terminates not implemented yet (skipped)."
let
selected_disjoint_complete
kf
~
bhv
~
prop
=
let
selected_disjoint_complete
kf
~
bhv
~
prop
=
selected_default
~
bhv
&&
selected_default
~
bhv
&&
(
selected_clause
~
prop
"@complete_behaviors"
Annotations
.
complete
kf
||
(
selected_clause
~
prop
"@complete_behaviors"
Annotations
.
complete
kf
||
...
@@ -247,6 +255,7 @@ let compile Key.{ kf ; smoking ; bhv ; prop } =
...
@@ -247,6 +255,7 @@ let compile Key.{ kf ; smoking ; bhv ; prop } =
Option
.
iter
Option
.
iter
begin
fun
(
cfg
:
Cfg
.
automaton
)
->
begin
fun
(
cfg
:
Cfg
.
automaton
)
->
(* Spec Iteration *)
(* Spec Iteration *)
selected_terminates
kf
;
if
selected_disjoint_complete
kf
~
bhv
~
prop
||
if
selected_disjoint_complete
kf
~
bhv
~
prop
||
(
List
.
exists
(
selected_bhv
~
smoking
~
bhv
~
prop
)
behaviors
)
(
List
.
exists
(
selected_bhv
~
smoking
~
bhv
~
prop
)
behaviors
)
then
infos
.
annots
<-
true
;
then
infos
.
annots
<-
true
;
...
...
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