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
195afbff
Commit
195afbff
authored
6 years ago
by
Valentin Perrelle
Committed by
David Bühler
4 years ago
Browse files
Options
Downloads
Patches
Plain Diff
[Dive] Fix temporary variables locations
parent
f49ba50d
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/build.ml
+5
-2
5 additions, 2 deletions
src/plugins/dive/build.ml
with
5 additions
and
2 deletions
src/plugins/dive/build.ml
+
5
−
2
View file @
195afbff
...
@@ -128,8 +128,11 @@ let stmt_to_node_locality stmt =
...
@@ -128,8 +128,11 @@ let stmt_to_node_locality stmt =
let
build_node_locality
kinstr
kind
=
let
build_node_locality
kinstr
kind
=
match
Node_kind
.
get_base
kind
with
match
Node_kind
.
get_base
kind
with
|
Some
vi
->
|
Some
vi
->
let
loc_function
=
Kernel_function
.
find_defining_kf
vi
let
loc_function
=
Kernel_function
.
find_defining_kf
vi
in
and
loc_file
=
get_loc_filename
vi
.
vdecl
in
(* Use the location of the defining function if it exists, as some
temporary variables do not have proper location *)
let
def_vi
=
Extlib
.
may_map
Kernel_function
.
get_vi
~
dft
:
vi
loc_function
in
let
loc_file
=
get_loc_filename
def_vi
.
vdecl
in
{
loc_file
;
loc_function
}
{
loc_file
;
loc_function
}
|
None
->
|
None
->
match
kinstr
with
match
kinstr
with
...
...
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