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
90d4b206
Commit
90d4b206
authored
3 years ago
by
Valentin Perrelle
Committed by
David Bühler
3 years ago
Browse files
Options
Downloads
Patches
Plain Diff
[MdReport] Use the new Eva API
parent
dd0d6641
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/markdown-report/eva_info.ml
+4
-4
4 additions, 4 deletions
src/plugins/markdown-report/eva_info.ml
with
4 additions
and
4 deletions
src/plugins/markdown-report/eva_info.ml
+
4
−
4
View file @
90d4b206
...
...
@@ -96,7 +96,7 @@ class eva_coverage_vis ~from_entry_point = object(self)
|
Block
_
|
UnspecifiedSequence
_
->
Cil
.
DoChildren
|
_
->
self
#
incr_total_stmts
;
if
Db
.
Value
.
is_reachable
_stmt
s
then
self
#
incr_covered_stmts
;
if
Eva
.
Results
.
is_reachable
s
then
self
#
incr_covered_stmts
;
Cil
.
DoChildren
method
!
vinst
i
=
...
...
@@ -114,7 +114,7 @@ class eva_coverage_vis ~from_entry_point = object(self)
Cil
.
SkipChildren
|
Call
(
_
,
{
enode
=
Lval
(
Mem
_
,
NoOffset
)}
,_,_
)
->
let
s
=
Option
.
get
self
#
current_stmt
in
let
kfs
=
Db
.
Value
.
call_to_kernel_function
s
in
let
kfs
=
Eva
.
Results
.
callee
s
in
let
handle_one
kf
=
let
vi
=
Kernel_function
.
get_vi
kf
in
if
not
(
Cil_datatype
.
Varinfo
.
Hashtbl
.
mem
calls
vi
)
...
...
@@ -129,7 +129,7 @@ class eva_coverage_vis ~from_entry_point = object(self)
end
end
in
Kernel_function
.
Hptse
t
.
iter
handle_one
kfs
;
Lis
t
.
iter
handle_one
kfs
;
Cil
.
SkipChildren
|
_
->
Cil
.
SkipChildren
(* No need to go further. *)
...
...
@@ -187,7 +187,7 @@ open Markdown
let
coverage_md_gen
()
=
let
main
=
Kernel
.
MainFunction
.
get
()
in
!
Db
.
Value
.
compute
()
;
Eva
.
Analysis
.
compute
()
;
let
vis
=
new
eva_coverage_vis
~
from_entry_point
:
false
in
let
stats
=
vis
#
compute
()
in
let
summary_whole
=
...
...
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