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
Snippets
Deploy
Releases
Package Registry
Container Registry
Model registry
Operate
Terraform modules
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
Charles Southerland
frama-c
Commits
d3026797
Commit
d3026797
authored
4 years ago
by
David Bühler
Browse files
Options
Downloads
Patches
Plain Diff
[From] Fixes a crash when the main function has no body.
parent
ff2a2b64
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/callwise.ml
+7
-8
7 additions, 8 deletions
src/plugins/from/callwise.ml
with
7 additions
and
8 deletions
src/plugins/from/callwise.ml
+
7
−
8
View file @
d3026797
...
...
@@ -68,14 +68,13 @@ let call_for_individual_froms (call_type, value_initial_state, call_stack) =
if
From_parameters
.
ForceCallDeps
.
get
()
then
begin
let
current_function
,
call_site
=
List
.
hd
call_stack
in
let
register_from
froms
=
try
let
{
table_for_calls
=
table
}
=
List
.
hd
!
call_froms_stack
in
merge_call_froms
table
call_site
froms
;
record_callwise_dependencies_in_db
call_site
froms
;
with
Failure
_
->
From_parameters
.
fatal
"calldeps internal error 23 empty callfromsstack %a"
Kernel_function
.
pretty
current_function
record_callwise_dependencies_in_db
call_site
froms
;
match
!
call_froms_stack
with
|
{
table_for_calls
}
::
_
->
merge_call_froms
table_for_calls
call_site
froms
;
|
[]
->
(* Empty call stack: this is the main entry point with no call site. *)
assert
(
call_site
=
Cil_types
.
Kglobal
);
in
let
compute_from_behaviors
bhv
=
let
assigns
=
Ast_info
.
merge_assigns
bhv
in
...
...
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