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
273c39d6
Commit
273c39d6
authored
7 months ago
by
Cécile Ruet-Cros
Committed by
Loïc Correnson
6 months ago
Browse files
Options
Downloads
Patches
Plain Diff
[wp] API access
parent
c5584737
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/region/Region.ml
+18
-1
18 additions, 1 deletion
src/plugins/region/Region.ml
src/plugins/region/Region.mli
+16
-5
16 additions, 5 deletions
src/plugins/region/Region.mli
with
34 additions
and
6 deletions
src/plugins/region/Region.ml
+
18
−
1
View file @
273c39d6
...
@@ -66,4 +66,21 @@ let pp_region fmt region : unit = Memory.pp_region fmt region
...
@@ -66,4 +66,21 @@ let pp_region fmt region : unit = Memory.pp_region fmt region
let
accesses
(
map
:
map
)
(
region
:
region
)
:
Access
.
acs
list
=
[]
type
acs
=
{
acs_read
:
typ
list
;
acs_write
:
typ
list
;
acs_shift
:
typ
list
;
}
let
empty_acs
=
{
acs_read
=
[]
;
acs_write
=
[]
;
acs_shift
=
[]
;
}
let
accesses
(
region
:
region
)
:
acs
=
{
acs_read
=
List
.
map
Access
.
typeof
region
.
Memory
.
reads
;
acs_write
=
List
.
map
Access
.
typeof
region
.
Memory
.
writes
;
acs_shift
=
List
.
map
Access
.
typeof
region
.
Memory
.
shifts
;
}
This diff is collapsed.
Click to expand it.
src/plugins/region/Region.mli
+
16
−
5
View file @
273c39d6
...
@@ -26,24 +26,35 @@
...
@@ -26,24 +26,35 @@
open
Cil_types
open
Cil_types
(* General type *)
type
region
type
region
module
R
:
Qed
.
Collection
.
S
with
type
t
=
region
module
R
:
Qed
.
Collection
.
S
with
type
t
=
region
type
map
type
map
val
get_map
:
kernel_function
->
map
(* API GETTERS *)
val
get_map
:
kernel_function
->
map
val
cvar
:
map
->
varinfo
->
region
val
cvar
:
map
->
varinfo
->
region
val
field
:
map
->
region
->
fieldinfo
->
region
val
field
:
map
->
region
->
fieldinfo
->
region
val
index
:
map
->
region
->
typ
->
region
val
index
:
map
->
region
->
typ
->
region
(* API POINTERS *)
val
points_to
:
map
->
region
->
region
option
val
points_to
:
map
->
region
->
region
option
val
pointed_by
:
map
->
region
->
region
list
val
pointed_by
:
map
->
region
->
region
list
(* API ITERATOR *)
val
iter
:
map
->
(
region
->
unit
)
->
unit
val
iter
:
map
->
(
region
->
unit
)
->
unit
(* API PRINTER *)
val
pp_region
:
Format
.
formatter
->
region
->
unit
val
pp_region
:
Format
.
formatter
->
region
->
unit
val
accesses
:
map
->
region
->
Access
.
acs
list
(* API ACCESS *)
type
acs
=
{
acs_read
:
typ
list
;
acs_write
:
typ
list
;
acs_shift
:
typ
list
;
}
val
empty_acs
:
acs
val
accesses
:
region
->
acs
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