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
bb1bc134
Commit
bb1bc134
authored
4 years ago
by
Allan Blanchard
Browse files
Options
Downloads
Patches
Plain Diff
[wp] Fixes filter props
parent
a90614e2
No related branches found
No related tags found
No related merge requests found
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
src/plugins/wp/cfgInfos.ml
+8
-2
8 additions, 2 deletions
src/plugins/wp/cfgInfos.ml
src/plugins/wp/wpPropId.mli
+3
-0
3 additions, 0 deletions
src/plugins/wp/wpPropId.mli
with
11 additions
and
2 deletions
src/plugins/wp/cfgInfos.ml
+
8
−
2
View file @
bb1bc134
...
...
@@ -92,7 +92,13 @@ let selected_name ~prop name =
let
selected_assigns
~
prop
=
function
|
Cil_types
.
WritesAny
->
false
|
_
->
selected_name
~
prop
"@assigns"
|
Writes
_
when
prop
=
[]
->
true
|
Writes
l
->
let
collect_names
l
(
t
,
_
)
=
WpPropId
.
ident_names
t
.
Cil_types
.
it_content
.
term_name
@
l
in
let
names
=
List
.
fold_left
collect_names
[
"@assigns"
]
l
in
WpPropId
.
are_selected_names
prop
names
let
selected_allocates
~
prop
=
function
|
Cil_types
.
FreeAllocAny
->
false
...
...
@@ -100,7 +106,7 @@ let selected_allocates ~prop = function
let
selected_precond
~
prop
ip
=
prop
=
[]
||
let
tk_name
=
"@
ensu
res"
in
let
tk_name
=
"@
requi
res"
in
let
tp_names
=
WpPropId
.
user_pred_names
ip
.
Cil_types
.
ip_content
in
WpPropId
.
are_selected_names
prop
(
tk_name
::
tp_names
)
...
...
This diff is collapsed.
Click to expand it.
src/plugins/wp/wpPropId.mli
+
3
−
0
View file @
bb1bc134
...
...
@@ -71,6 +71,9 @@ val select_for_behaviors : string list -> prop_id -> bool
(** test if the prop_id has to be selected when we want to select the call. *)
val
select_call_pre
:
stmt
->
Property
.
t
option
->
prop_id
->
bool
(** From a list of names (of an identified terms), returns usable names. *)
val
ident_names
:
string
list
->
string
list
(*----------------------------------------------------------------------------*)
val
prop_id_keys
:
prop_id
->
string
list
*
string
list
(* required , hints *)
...
...
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