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
2f1c5a53
Commit
2f1c5a53
authored
5 years ago
by
Allan Blanchard
Browse files
Options
Downloads
Patches
Plain Diff
[Kernel] CabsVisit does not erase ghost parameters anymore
parent
9edc0b62
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/cabsvisit.ml
+5
-2
5 additions, 2 deletions
src/kernel_services/visitors/cabsvisit.ml
with
5 additions
and
2 deletions
src/kernel_services/visitors/cabsvisit.ml
+
5
−
2
View file @
2f1c5a53
...
...
@@ -193,14 +193,17 @@ and childrenDeclType isfundef vis dt =
let
al'
=
mapNoCopy
(
childrenAttribute
vis
)
al
in
let
dt1'
=
visitCabsDeclType
vis
isfundef
dt1
in
if
al'
!=
al
||
dt1'
!=
dt1
then
PTR
(
al'
,
dt1'
)
else
dt
|
PROTO
(
dt1
,
snl
,
_
,
b
)
->
|
PROTO
(
dt1
,
snl
,
gsnl
,
b
)
->
(* Do not propagate isfundef further *)
let
dt1'
=
visitCabsDeclType
vis
false
dt1
in
let
_
=
vis
#
vEnterScope
()
in
let
snl'
=
mapNoCopy
(
childrenSingleName
vis
NVar
)
snl
in
let
gsnl'
=
mapNoCopy
(
childrenSingleName
vis
NVar
)
gsnl
in
(* Exit the scope only if not in a function definition *)
let
_
=
if
not
isfundef
then
vis
#
vExitScope
()
in
if
dt1'
!=
dt1
||
snl'
!=
snl
then
PROTO
(
dt1'
,
snl'
,
[]
,
b
)
else
dt
if
dt1'
!=
dt1
||
snl'
!=
snl
||
gsnl'
!=
gsnl
then
PROTO
(
dt1'
,
snl'
,
gsnl'
,
b
)
else
dt
and
childrenNameGroup
vis
(
kind
:
nameKind
)
((
s
,
nl
)
as
input
)
=
...
...
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