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
e9e0f8f2
Commit
e9e0f8f2
authored
3 years ago
by
David Bühler
Committed by
Virgile Prevosto
3 years ago
Browse files
Options
Downloads
Patches
Plain Diff
[kernel] Optimizes the "ghost access checking" code transformation.
Only visits globals that are ghost or may contain ghost code.
parent
1b96e30d
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/kernel_internals/typing/ghost_accesses.ml
+6
-2
6 additions, 2 deletions
src/kernel_internals/typing/ghost_accesses.ml
with
6 additions
and
2 deletions
src/kernel_internals/typing/ghost_accesses.ml
+
6
−
2
View file @
e9e0f8f2
...
...
@@ -121,7 +121,7 @@ class visitor = object(self)
Error
.
cannot_check_ghost_call
~
source
~
current
:
true
~
once
:
true
kf
method
!
vglob_aux
=
function
|
GFunDecl
(
_
,
vi
,
_
)
->
|
GFunDecl
(
_
,
vi
,
_
)
when
vi
.
vghost
->
self
#
prefer_loc
(
Log
.
get_current_source
()
)
;
let
post
g
=
self
#
reset_loc
()
;
g
in
...
...
@@ -136,7 +136,11 @@ class visitor = object(self)
if
is_empty_funspec
spec
then
self
#
bad_ghost_function
kf
end
;
Cil
.
DoChildrenPost
post
|
_
->
Cil
.
DoChildren
(* Optimization: only visits ghost globals or globals that may contain
ghost code. *)
|
GVarDecl
(
vi
,
_
)
when
vi
.
vghost
->
Cil
.
DoChildren
|
GVar
_
|
GFun
_
->
Cil
.
DoChildren
|
_
->
Cil
.
SkipChildren
method
!
vvdec
v
=
let
current
,
source
=
...
...
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