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
9ce2d726
Commit
9ce2d726
authored
3 years ago
by
Valentin Perrelle
Committed by
David Bühler
3 years ago
Browse files
Options
Downloads
Patches
Plain Diff
[Sparecode] Use the new Eva API
parent
2ff2492a
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/sparecode/register.ml
+1
-1
1 addition, 1 deletion
src/plugins/sparecode/register.ml
src/plugins/sparecode/transform.ml
+5
-7
5 additions, 7 deletions
src/plugins/sparecode/transform.ml
with
6 additions
and
8 deletions
src/plugins/sparecode/register.ml
+
1
−
1
View file @
9ce2d726
...
...
@@ -35,7 +35,7 @@ module Result =
(
struct
let
name
=
"Sparecode"
let
size
=
7
let
dependencies
=
[
Ast
.
self
;
Db
.
Value
.
self
]
(* delayed, see below *)
let
dependencies
=
[
Ast
.
self
;
Eva
.
Analysis
.
self
]
(* delayed, see below *)
end
)
let
()
=
...
...
This diff is collapsed.
Click to expand it.
src/plugins/sparecode/transform.ml
+
5
−
7
View file @
9ce2d726
...
...
@@ -81,7 +81,7 @@ module BoolInfo = struct
key_visible
"label_visible"
fm
lab_key
let
annotation_visible
_
stmt
annot
=
Db
.
Value
.
is_reachable
_stmt
stmt
&&
Alarms
.
find
annot
=
None
Eva
.
Results
.
is_reachable
stmt
&&
Alarms
.
find
annot
=
None
(* Keep annotations on reachable, but not alarms: they can be resynthesized,
and the alarms table is not synchronized in the new project anyway *)
(* TODO: does not seem really coherent with the fact that almost everything
...
...
@@ -126,13 +126,11 @@ module BoolInfo = struct
let
called_info
(
project
,
_fm
)
call_stmt
=
match
call_stmt
.
skind
with
|
Instr
(
Call
(
_
,
_
,
_
,
_
)
|
Local_init
(
_
,
ConsInit
_
,
_
))
->
let
called_functions
=
Db
.
Value
.
call_to_kernel_function
call_stmt
in
let
called_functions
=
Eva
.
Results
.
callee
call_stmt
in
let
call_info
=
match
Kernel_function
.
Hptset
.
contains_single_elt
called_functions
with
|
None
->
None
|
Some
kf
->
match
called_functions
with
|
[]
|
_
::
_
::
_
->
None
|
[
kf
]
->
match
Spare_marks
.
get_marks
project
kf
with
|
None
->
if
Spare_marks
.
kf_visible
project
kf
...
...
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