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
108c8881
Commit
108c8881
authored
3 years ago
by
David Bühler
Browse files
Options
Downloads
Patches
Plain Diff
[callgraph] Uses Eva.Results instead of Db.Value.
parent
00b2b916
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/callgraph/cg.ml
+1
-1
1 addition, 1 deletion
src/plugins/callgraph/cg.ml
tests/value/oracle/loopfun.0.res.oracle
+9
-9
9 additions, 9 deletions
tests/value/oracle/loopfun.0.res.oracle
with
10 additions
and
10 deletions
src/plugins/callgraph/cg.ml
+
1
−
1
View file @
108c8881
...
@@ -205,7 +205,7 @@ let syntactic_compute g =
...
@@ -205,7 +205,7 @@ let syntactic_compute g =
let
semantic_compute
g
=
let
semantic_compute
g
=
Globals
.
Functions
.
iter
Globals
.
Functions
.
iter
(
fun
kf
->
(
fun
kf
->
let
callers
=
!
Db
.
Value
.
calle
r
s
kf
in
let
callers
=
Eva
.
Results
.
call
sit
es
kf
in
let
must_add
=
let
must_add
=
callers
<>
[]
(* the function is called *)
callers
<>
[]
(* the function is called *)
||
is_entry_point
kf
||
is_entry_point
kf
...
...
This diff is collapsed.
Click to expand it.
tests/value/oracle/loopfun.0.res.oracle
+
9
−
9
View file @
108c8881
...
@@ -42,23 +42,27 @@
...
@@ -42,23 +42,27 @@
[eva] Recording results for main
[eva] Recording results for main
[eva] done for function main
[eva] done for function main
[eva] ====== VALUES COMPUTED ======
[eva] ====== VALUES COMPUTED ======
[from] Computing for function main
[from] Done for function main
[from] Computing for function main2
[from] Computing for function main2
[from] Done for function main2
[from] Done for function main2
[from] Computing for function test
[from] Computing for function test
[from] Done for function test
[from] Done for function test
[from] Computing for function main
[from] Done for function main
[from] ====== DEPENDENCIES COMPUTED ======
[from] ====== DEPENDENCIES COMPUTED ======
These dependencies hold at termination for the executions that terminate:
These dependencies hold at termination for the executions that terminate:
[from] Function main:
FROMTOP
\result FROM ANYTHING(origin:Unknown)
[from] Function main2:
[from] Function main2:
FROMTOP
FROMTOP
[from] Function test:
[from] Function test:
FROMTOP
FROMTOP
\result FROM ANYTHING(origin:Unknown)
\result FROM ANYTHING(origin:Unknown)
[from] Function main:
FROMTOP
\result FROM ANYTHING(origin:Unknown)
[from] ====== END OF DEPENDENCIES ======
[from] ====== END OF DEPENDENCIES ======
[inout] Out (internal) for function main:
ANYTHING(origin:Unknown)
[inout] Inputs for function main:
ANYTHING(origin:Unknown)
[inout] Out (internal) for function main2:
[inout] Out (internal) for function main2:
\nothing
\nothing
[inout] Inputs for function main2:
[inout] Inputs for function main2:
...
@@ -67,7 +71,3 @@
...
@@ -67,7 +71,3 @@
tmp; a
tmp; a
[inout] Inputs for function test:
[inout] Inputs for function test:
a
a
[inout] Out (internal) for function main:
ANYTHING(origin:Unknown)
[inout] Inputs for function main:
ANYTHING(origin:Unknown)
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