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
576d72cc
Commit
576d72cc
authored
3 years ago
by
David Bühler
Committed by
Andre Maroneze
3 years ago
Browse files
Options
Downloads
Patches
Plain Diff
[From] Avoids re-running the analyses when loading a Frama-C save file.
parent
550fa231
No related branches found
Branches containing commit
No related tags found
Tags containing commit
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
src/plugins/from/from_register.ml
+26
-25
26 additions, 25 deletions
src/plugins/from/from_register.ml
with
26 additions
and
25 deletions
src/plugins/from/from_register.ml
+
26
−
25
View file @
576d72cc
...
...
@@ -121,42 +121,43 @@ let main () =
typ_f
in
if
forcedeps
then
begin
!
Db
.
From
.
compute_all
()
;
From_parameters
.
ForceDeps
.
output
(
fun
()
->
!
Db
.
From
.
compute_all
()
;
From_parameters
.
feedback
"====== DEPENDENCIES COMPUTED ======@
\n
\
These dependencies hold at termination for the executions that terminate:"
;
display
None
;
From_parameters
.
feedback
"====== END OF DEPENDENCIES ======"
)
end
;
if
forcecalldeps
then
!
Db
.
From
.
compute_all_calldeps
()
;
if
not_quiet
&&
forcecalldeps
then
begin
if
forcecalldeps
then
From_parameters
.
ForceCallDeps
.
output
(
fun
()
->
From_parameters
.
feedback
"====== DISPLAYING CALLWISE DEPENDENCIES ======"
;
iter_callwise_calls_sorted
(
fun
ki
d
->
let
header
,
typ
=
match
ki
with
|
Kglobal
->
(
fun
fmt
->
Format
.
fprintf
fmt
"@[entry point:@]"
)
,
Kernel_function
.
get_type
(
fst
(
Globals
.
entry_point
()
))
|
Kstmt
({
skind
=
Instr
(
Call
(
_
,
ekf
,
_
,
_
))}
as
s
)
->
treat_call
s
(
Cil
.
typeOf
ekf
)
|
Kstmt
({
skind
=
Instr
(
Local_init
(
_
,
ConsInit
(
f
,_,_
)
,_
))}
as
s
)
->
treat_call
s
f
.
vtype
|
_
->
assert
false
(* Not a call *)
in
From_parameters
.
printf
~
header
"@[ %a@]"
((
if
From_parameters
.
ShowIndirectDeps
.
get
()
then
Function_Froms
.
pretty_with_type_indirect
else
Function_Froms
.
pretty_with_type
)
typ
)
d
);
From_parameters
.
feedback
"====== END OF CALLWISE DEPENDENCIES ======"
;
!
Db
.
From
.
compute_all_calldeps
()
;
if
not_quiet
then
begin
From_parameters
.
feedback
"====== DISPLAYING CALLWISE DEPENDENCIES ======"
;
iter_callwise_calls_sorted
(
fun
ki
d
->
let
header
,
typ
=
match
ki
with
|
Kglobal
->
(
fun
fmt
->
Format
.
fprintf
fmt
"@[entry point:@]"
)
,
Kernel_function
.
get_type
(
fst
(
Globals
.
entry_point
()
))
|
Kstmt
({
skind
=
Instr
(
Call
(
_
,
ekf
,
_
,
_
))}
as
s
)
->
treat_call
s
(
Cil
.
typeOf
ekf
)
|
Kstmt
({
skind
=
Instr
(
Local_init
(
_
,
ConsInit
(
f
,_,_
)
,_
))}
as
s
)
->
treat_call
s
f
.
vtype
|
_
->
assert
false
(* Not a call *)
in
From_parameters
.
printf
~
header
"@[ %a@]"
((
if
From_parameters
.
ShowIndirectDeps
.
get
()
then
Function_Froms
.
pretty_with_type_indirect
else
Function_Froms
.
pretty_with_type
)
typ
)
d
);
From_parameters
.
feedback
"====== END OF CALLWISE DEPENDENCIES ======"
;
end
)
end
let
()
=
Db
.
Main
.
extend
main
...
...
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