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
f1d6d9c8
Commit
f1d6d9c8
authored
3 years ago
by
Valentin Perrelle
Committed by
David Bühler
3 years ago
Browse files
Options
Downloads
Patches
Plain Diff
[Impact] Use the new Eva API
parent
e85ce72e
No related branches found
Branches containing commit
No related tags found
Tags containing commit
No related merge requests found
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
src/plugins/impact/compute_impact.ml
+4
-4
4 additions, 4 deletions
src/plugins/impact/compute_impact.ml
src/plugins/impact/register_gui.ml
+1
-1
1 addition, 1 deletion
src/plugins/impact/register_gui.ml
with
5 additions
and
5 deletions
src/plugins/impact/compute_impact.ml
+
4
−
4
View file @
f1d6d9c8
...
...
@@ -332,8 +332,8 @@ let downward_one_call_node wl (pnode, _ as node) caller_kf pdg =
|
Key
.
SigCallKey
(
id
,
key
)
->
let
stmt
=
Key
.
call_from_id
id
in
let
called_kfs
=
Db
.
Value
.
call_to_kernel_function
stmt
in
KFS
.
iter
let
called_kfs
=
Eva
.
Results
.
callee
stmt
in
List
.
iter
(
fun
called_kf
->
let
called_pdg
=
!
Db
.
Pdg
.
get
called_kf
in
let
nodes_callee
,
pdg_ok
=
...
...
@@ -452,7 +452,7 @@ let all_upward_callers wl kfs =
let
pdg_caller
=
!
Db
.
Pdg
.
get
caller
in
List
.
iter
(
aux_call
(
caller
,
pdg_caller
)
(
kf
,
pdg_kf
))
callsites
;
KFS
.
add
caller
todo
)
todo
(
!
Db
.
Value
.
calle
r
s
kf
);
)
todo
(
Eva
.
Results
.
call
sit
es
kf
);
)
else
todo
in
...
...
@@ -536,7 +536,7 @@ let initial_worklist ?(skip=Locations.Zone.bottom) ?(reason=false) nodes kf =
let
initial_nodes
~
skip
kf
stmt
=
Options
.
debug
~
level
:
3
"computing initial nodes for %d"
stmt
.
sid
;
let
pdg
=
!
Db
.
Pdg
.
get
kf
in
if
Db
.
Value
.
is_reachable
_stmt
stmt
then
if
Eva
.
Results
.
is_reachable
stmt
then
try
let
all
=
!
Db
.
Pdg
.
find_simple_stmt_nodes
pdg
stmt
in
let
filter
n
=
match
PdgTypes
.
Node
.
elem_key
n
with
...
...
This diff is collapsed.
Click to expand it.
src/plugins/impact/register_gui.ml
+
1
−
1
View file @
f1d6d9c8
...
...
@@ -208,7 +208,7 @@ let impact_statement =
let
impact_statement_ui
(
main_ui
:
Design
.
main_window_extension_points
)
s
=
let
val_computed
=
Db
.
Value
.
is_computed
()
in
let
val_computed
=
Eva
.
Analysis
.
is_computed
()
in
ignore
(
impact_statement
(*restriction*)
Locations
.
Zone
.
top
s
);
if
not
val_computed
then
main_ui
#
reset
()
...
...
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