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
Snippets
Deploy
Releases
Package Registry
Container Registry
Model registry
Operate
Terraform modules
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
Charles Southerland
frama-c
Commits
bc0ce693
Commit
bc0ce693
authored
4 years ago
by
Loïc Correnson
Browse files
Options
Downloads
Patches
Plain Diff
[wp] collect code behaviors
parent
40c243f9
No related branches found
Branches containing commit
No related tags found
Tags containing commit
No related merge requests found
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
src/plugins/wp/cfgAnnot.ml
+12
-0
12 additions, 0 deletions
src/plugins/wp/cfgAnnot.ml
src/plugins/wp/cfgAnnot.mli
+6
-0
6 additions, 0 deletions
src/plugins/wp/cfgAnnot.mli
with
18 additions
and
0 deletions
src/plugins/wp/cfgAnnot.ml
+
12
−
0
View file @
bc0ce693
...
...
@@ -275,6 +275,18 @@ let get_call_contract ?smoking kf =
let
g
=
smoke
kf
~
id
:
"dead_call"
~
unreachable
:
s
()
in
{
cc
with
contract_smoke
=
[
g
]
}
(* -------------------------------------------------------------------------- *)
(* --- Code Contracts --- *)
(* -------------------------------------------------------------------------- *)
let
get_code_behaviors
stmt
=
Annotations
.
fold_code_annot
(
fun
_emitter
ca
cs
->
match
ca
.
annot_content
with
|
AStmtSpec
(
fors
,
spec
)
->
(
fors
,
spec
)
::
cs
|
_
->
cs
)
stmt
[]
(* -------------------------------------------------------------------------- *)
(* --- Code Assertions --- *)
(* -------------------------------------------------------------------------- *)
...
...
This diff is collapsed.
Click to expand it.
src/plugins/wp/cfgAnnot.mli
+
6
−
0
View file @
bc0ce693
...
...
@@ -53,6 +53,12 @@ val get_preconditions : goal:bool -> kernel_function -> pred_info list
val
get_complete_behaviors
:
kernel_function
->
pred_info
list
val
get_disjoint_behaviors
:
kernel_function
->
pred_info
list
(* -------------------------------------------------------------------------- *)
(* --- Property Accessors : Code Behaviors --- *)
(* -------------------------------------------------------------------------- *)
val
get_code_behaviors
:
stmt
->
(
string
list
*
funspec
)
list
(* -------------------------------------------------------------------------- *)
(* --- Property Accessors : Assertions --- *)
(* -------------------------------------------------------------------------- *)
...
...
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