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
faba19ba
Commit
faba19ba
authored
3 years ago
by
Valentin Perrelle
Committed by
David Bühler
3 years ago
Browse files
Options
Downloads
Patches
Plain Diff
[Security_slicing] Use the new Eva API
parent
3b0eca16
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/security_slicing/components.ml
+4
-8
4 additions, 8 deletions
src/plugins/security_slicing/components.ml
with
4 additions
and
8 deletions
src/plugins/security_slicing/components.ml
+
4
−
8
View file @
faba19ba
...
@@ -398,7 +398,7 @@ module Component = struct
...
@@ -398,7 +398,7 @@ module Component = struct
todolist
todolist
callsites
)
callsites
)
todolist
todolist
(
!
Db
.
Value
.
calle
r
s
kf
)
(
Eva
.
Results
.
call
sit
es
kf
)
let
related_nodes_of_nodes
kind
result
nodes
=
let
related_nodes_of_nodes
kind
result
nodes
=
let
initial_nodes
=
let
initial_nodes
=
...
@@ -460,7 +460,7 @@ module Component = struct
...
@@ -460,7 +460,7 @@ module Component = struct
in
in
List
.
fold_left
do_call
todolist
callsites
List
.
fold_left
do_call
todolist
callsites
in
in
List
.
fold_left
do_caller
todolist
(
!
Db
.
Value
.
calle
r
s
kf
)
List
.
fold_left
do_caller
todolist
(
Eva
.
Results
.
call
sit
es
kf
)
|
_
->
|
_
->
todolist
todolist
in
in
...
@@ -502,11 +502,7 @@ module Component = struct
...
@@ -502,11 +502,7 @@ module Component = struct
todolist
todolist
else
else
let
stmt
=
Key
.
call_from_id
id
in
let
stmt
=
Key
.
call_from_id
id
in
let
called_kfs
=
let
called_kfs
=
Eva
.
Results
.
callee
stmt
in
Kernel_function
.
Hptset
.
elements
(
try
Db
.
Value
.
call_to_kernel_function
stmt
with
Db
.
Value
.
Not_a_call
->
assert
false
)
in
let
todolist
=
let
todolist
=
List
.
fold_left
List
.
fold_left
(
fun
todolist
called_kf
->
(
fun
todolist
called_kf
->
...
@@ -629,7 +625,7 @@ module Component = struct
...
@@ -629,7 +625,7 @@ module Component = struct
~
level
:
3
"computing initial nodes for %d"
stmt
.
sid
;
~
level
:
3
"computing initial nodes for %d"
stmt
.
sid
;
let
pdg
=
!
Db
.
Pdg
.
get
kf
in
let
pdg
=
!
Db
.
Pdg
.
get
kf
in
let
nodes
=
let
nodes
=
if
Db
.
Value
.
is_reachable
_stmt
stmt
then
if
Eva
.
Results
.
is_reachable
stmt
then
try
!
Db
.
Pdg
.
find_simple_stmt_nodes
pdg
stmt
try
!
Db
.
Pdg
.
find_simple_stmt_nodes
pdg
stmt
with
Not_found
->
assert
false
with
Not_found
->
assert
false
else
begin
else
begin
...
...
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