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
34a2b354
Commit
34a2b354
authored
4 years ago
by
Allan Blanchard
Browse files
Options
Downloads
Patches
Plain Diff
[wp] Clarifies some functions in MemoryContext
parent
78c55ade
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/MemoryContext.ml
+4
-7
4 additions, 7 deletions
src/plugins/wp/MemoryContext.ml
with
4 additions
and
7 deletions
src/plugins/wp/MemoryContext.ml
+
4
−
7
View file @
34a2b354
...
@@ -179,12 +179,9 @@ let separated_list ?loc = function
...
@@ -179,12 +179,9 @@ let separated_list ?loc = function
let
comp
=
Cil_datatype
.
Term
.
compare
in
let
comp
=
Cil_datatype
.
Term
.
compare
in
pseparated
?
loc
(
List
.
sort
comp
l
)
pseparated
?
loc
(
List
.
sort
comp
l
)
let
separated_from_
term
loc
assigned
l
=
let
term_
separated_from_
regions
loc
assigned
l
=
separated_list
~
loc
(
assigned
::
List
.
map
(
region_to_term
loc
)
l
)
separated_list
~
loc
(
assigned
::
List
.
map
(
region_to_term
loc
)
l
)
let
separated_from_addr
loc
assigned
=
separated_from_term
loc
(
addr_of_lval
~
loc
assigned
.
it_content
)
let
valid_region
loc
r
=
let
valid_region
loc
r
=
let
t
=
region_to_term
loc
r
in
let
t
=
region_to_term
loc
r
in
pvalid
~
loc
(
here_label
,
t
)
pvalid
~
loc
(
here_label
,
t
)
...
@@ -265,20 +262,20 @@ let assigned_via_pointers kf =
...
@@ -265,20 +262,20 @@ let assigned_via_pointers kf =
let
clauses_of_partition
kf
loc
p
=
let
clauses_of_partition
kf
loc
p
=
let
globals
=
global_zones
p
in
let
globals
=
global_zones
p
in
let
filter
p
=
not
(
Logic_utils
.
is_trivially_true
p
)
in
let
main_sep
=
let
main_sep
=
main_separation
loc
globals
(
context_zones
p
)
(
heaps
p
)
main_separation
loc
globals
(
context_zones
p
)
(
heaps
p
)
in
in
let
assigns_sep
=
let
assigns_sep
=
let
addr_of
t
=
addr_of_lval
~
loc
t
.
it_content
in
List
.
map
List
.
map
(
fun
t
->
separated_from_
addr
loc
t
globals
)
(
fun
t
->
term_
separated_from_
regions
loc
(
addr_of
t
)
globals
)
(
assigned_via_pointers
kf
)
(
assigned_via_pointers
kf
)
in
in
let
context_validity
=
let
context_validity
=
List
.
map
(
valid_region
loc
)
(
context_zones
p
)
List
.
map
(
valid_region
loc
)
(
context_zones
p
)
in
in
let
reqs
=
main_sep
@
assigns_sep
@
context_validity
in
let
reqs
=
main_sep
@
assigns_sep
@
context_validity
in
let
reqs
=
List
.
filter
filter
reqs
in
let
reqs
=
List
.
filter
(
fun
p
->
not
(
Logic_utils
.
is_trivially_true
p
))
reqs
in
let
reqs
=
List
.
sort_uniq
Logic_utils
.
compare_predicate
reqs
in
let
reqs
=
List
.
sort_uniq
Logic_utils
.
compare_predicate
reqs
in
reqs
reqs
...
...
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