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
23c80697
Commit
23c80697
authored
3 years ago
by
David Bühler
Committed by
Virgile Prevosto
3 years ago
Browse files
Options
Downloads
Patches
Plain Diff
[kernel] Optimizes undefined_sequence visitor: only visits function definitions.
parent
1dfd6df8
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/analysis/undefined_sequence.ml
+12
-0
12 additions, 0 deletions
src/kernel_services/analysis/undefined_sequence.ml
with
12 additions
and
0 deletions
src/kernel_services/analysis/undefined_sequence.ml
+
12
−
0
View file @
23c80697
...
@@ -143,6 +143,18 @@ let check_sequences file =
...
@@ -143,6 +143,18 @@ let check_sequences file =
(
my_stmt_print
#
without_annot
my_stmt_print
#
stmt
)
s
(
my_stmt_print
#
without_annot
my_stmt_print
#
stmt
)
s
|
_
->
()
);
|
_
->
()
);
Cil
.
DoChildren
Cil
.
DoChildren
(* Optimization: only visits function definitions. *)
method
!
vglob
=
function
|
GFun
_
->
Cil
.
DoChildren
|
_
->
Cil
.
SkipChildren
method
!
vinst
_
=
SkipChildren
method
!
vexpr
_
=
SkipChildren
method
!
vlval
_
=
SkipChildren
method
!
vtype
_
=
SkipChildren
method
!
vspec
_
=
SkipChildren
method
!
vcode_annot
_
=
SkipChildren
end
end
in
in
Cil
.
visitCilFileSameGlobals
check_unspec
file
Cil
.
visitCilFileSameGlobals
check_unspec
file
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