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
3f5d6490
Commit
3f5d6490
authored
4 years ago
by
David Bühler
Browse files
Options
Downloads
Patches
Plain Diff
[Dive] Removes unused file simple_deps.
parent
f78090a5
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/dive/simple_deps.ml
+0
-65
0 additions, 65 deletions
src/plugins/dive/simple_deps.ml
with
0 additions
and
65 deletions
src/plugins/dive/simple_deps.ml
deleted
100644 → 0
+
0
−
65
View file @
f78090a5
(**************************************************************************)
(* *)
(* This file is part of Frama-C. *)
(* *)
(* Copyright (C) 2018 *)
(* CEA (Commissariat à l'énergie atomique et aux énergies *)
(* alternatives) *)
(* *)
(* you can redistribute it and/or modify it under the terms of the GNU *)
(* Lesser General Public License as published by the Free Software *)
(* Foundation, version 2.1. *)
(* *)
(* It is distributed in the hope that it will be useful, *)
(* but WITHOUT ANY WARRANTY; without even the implied warranty of *)
(* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the *)
(* GNU Lesser General Public License for more details. *)
(* *)
(* See the GNU Lesser General Public License version 2.1 *)
(* for more details (enclosed in the file licenses/LGPLv2.1). *)
(* *)
(**************************************************************************)
open
Cil_types
class
find_write
target_vi
=
object
(
self
)
inherit
Visitor
.
frama_c_inplace
val
mutable
res
=
([]
:
stmt
list
)
method
add_current_stmt
()
=
res
<-
Extlib
.
the
self
#
current_stmt
::
res
method
!
vinst
i
=
begin
match
i
with
|
Call
(
None
,_,_,_
)
|
Asm
_
|
Skip
_
|
Code_annot
_
->
()
(* No effect *)
|
Local_init
(
vi
,_,_
)
->
if
Cil_datatype
.
Varinfo
.
equal
vi
target_vi
then
self
#
add_current_stmt
()
|
Call
(
Some
dest
,_,_,_
)
|
Set
(
dest
,_,_
)
->
match
dest
with
|
Var
vi
,
_
when
vi
=
target_vi
->
self
#
add_current_stmt
()
|
_
->
()
end
;
Cil
.
SkipChildren
method
result
=
res
end
let
find_assignments
kf
vi
=
let
fundec
=
Kernel_function
.
get_definition
kf
and
vis
=
new
find_write
vi
in
ignore
(
Visitor
.
visitFramacFunction
(
vis
:>
Visitor
.
frama_c_visitor
)
fundec
);
vis
#
result
let
compute
lval
=
match
lval
with
|
Var
vi
,
NoOffset
when
not
vi
.
vaddrof
->
Self
.
feedback
"%a %B"
Cil_printer
.
pp_varinfo
vi
vi
.
vaddrof
;
begin
try
let
kf
=
Kernel_function
.
find_defining_kf
vi
in
Extlib
.
opt_map
(
fun
kf
->
find_assignments
kf
vi
)
kf
with
Not_found
->
None
end
|
_
->
None
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