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
b46d23cb
Commit
b46d23cb
authored
3 years ago
by
Valentin Perrelle
Committed by
David Bühler
3 years ago
Browse files
Options
Downloads
Patches
Plain Diff
[Eva] api: Callsites are always retrieved by caller
parent
242f8271
No related branches found
No related tags found
No related merge requests found
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
src/plugins/value/Eva.mli
+1
-2
1 addition, 2 deletions
src/plugins/value/Eva.mli
src/plugins/value/utils/results.ml
+0
-8
0 additions, 8 deletions
src/plugins/value/utils/results.ml
src/plugins/value/utils/results.mli
+1
-2
1 addition, 2 deletions
src/plugins/value/utils/results.mli
with
2 additions
and
12 deletions
src/plugins/value/Eva.mli
+
1
−
2
View file @
b46d23cb
...
...
@@ -113,8 +113,7 @@ module Results: sig
(* Callers / Callees / Callsites *)
val
callers
:
Cil_types
.
kernel_function
->
Cil_types
.
kernel_function
list
val
callsites
:
Cil_types
.
kernel_function
->
Cil_types
.
stmt
list
val
callsites_per_caller
:
Cil_types
.
kernel_function
->
val
callsites
:
Cil_types
.
kernel_function
->
(
Cil_types
.
kernel_function
*
Cil_types
.
stmt
list
)
list
(* Returns the kernel functions called in the given statement.
...
...
This diff is collapsed.
Click to expand it.
src/plugins/value/utils/results.ml
+
0
−
8
View file @
b46d23cb
...
...
@@ -742,14 +742,6 @@ let callers kf =
let
uniq_sites
=
List
.
sort_uniq
Cil_datatype
.
Stmt
.
compare
let
callsites
kf
=
let
f
=
function
|
[]
|
(
_
,
Cil_types
.
Kglobal
)
::
_
->
None
|
(
_
,
Kstmt
stmt
)
::
_
->
Some
stmt
in
at_start_of
kf
|>
callstacks
|>
List
.
filter_map
f
|>
uniq_sites
let
callsites_per_caller
kf
=
let
module
Map
=
Kernel_function
.
Map
in
let
f
acc
=
function
|
[]
|
(
_
,
Cil_types
.
Kglobal
)
::
_
->
acc
...
...
This diff is collapsed.
Click to expand it.
src/plugins/value/utils/results.mli
+
1
−
2
View file @
b46d23cb
...
...
@@ -116,8 +116,7 @@ val is_reachable : Cil_types.stmt -> bool (* reachable by the analysis, not by t
(* Callers / Callees / Callsites *)
val
callers
:
Cil_types
.
kernel_function
->
Cil_types
.
kernel_function
list
val
callsites
:
Cil_types
.
kernel_function
->
Cil_types
.
stmt
list
val
callsites_per_caller
:
Cil_types
.
kernel_function
->
val
callsites
:
Cil_types
.
kernel_function
->
(
Cil_types
.
kernel_function
*
Cil_types
.
stmt
list
)
list
(* Returns the kernel functions called in the given statement.
...
...
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