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
da9f64cd
Commit
da9f64cd
authored
4 months ago
by
Virgile Prevosto
Browse files
Options
Downloads
Patches
Plain Diff
[kernel] fix frama-c visitor
parent
bf61a240
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/kernel_services/visitors/visitor.ml
+2
-3
2 additions, 3 deletions
src/kernel_services/visitors/visitor.ml
with
2 additions
and
3 deletions
src/kernel_services/visitors/visitor.ml
+
2
−
3
View file @
da9f64cd
...
@@ -631,8 +631,7 @@ class internal_generic_frama_c_visitor fundec queue current_kf behavior: frama_c
...
@@ -631,8 +631,7 @@ class internal_generic_frama_c_visitor fundec queue current_kf behavior: frama_c
method
!
vglob
g
=
method
!
vglob
g
=
let
fundec
,
has_kf
=
match
g
with
let
fundec
,
has_kf
=
match
g
with
|
GFunDecl
(
_
,
v
,_
)
->
|
GFunDecl
(
_
,
v
,_
)
->
let
ov
=
Visitor_behavior
.
Get_orig
.
varinfo
self
#
behavior
v
in
let
kf
=
try
Globals
.
Functions
.
get
v
with
Not_found
->
let
kf
=
try
Globals
.
Functions
.
get
ov
with
Not_found
->
Kernel
.
fatal
"No kernel function for %s(%d)"
v
.
vname
v
.
vid
Kernel
.
fatal
"No kernel function for %s(%d)"
v
.
vname
v
.
vid
in
in
(* Just make a copy of current kernel function in case it is needed *)
(* Just make a copy of current kernel function in case it is needed *)
...
@@ -642,7 +641,7 @@ class internal_generic_frama_c_visitor fundec queue current_kf behavior: frama_c
...
@@ -642,7 +641,7 @@ class internal_generic_frama_c_visitor fundec queue current_kf behavior: frama_c
self
#
set_current_kf
kf
;
self
#
set_current_kf
kf
;
None
,
true
None
,
true
|
GFun
(
f
,_
)
->
|
GFun
(
f
,_
)
->
let
v
=
Visitor_behavior
.
Get_orig
.
varinfo
self
#
behavior
f
.
svar
in
let
v
=
f
.
svar
in
let
kf
=
let
kf
=
try
Globals
.
Functions
.
get
v
try
Globals
.
Functions
.
get
v
with
Not_found
->
with
Not_found
->
...
...
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