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
8e432fc3
Commit
8e432fc3
authored
9 years ago
by
Kostyantyn Vorobyov
Browse files
Options
Downloads
Patches
Plain Diff
Disable functionality that removes initilisers from global variables
parent
9fcea553
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/e-acsl/visit.ml
+2
-12
2 additions, 12 deletions
src/plugins/e-acsl/visit.ml
with
2 additions
and
12 deletions
src/plugins/e-acsl/visit.ml
+
2
−
12
View file @
8e432fc3
...
...
@@ -322,18 +322,8 @@ you must call function `%s' and `__e_acsl_memory_clean by yourself.@]"
if
generate
then
Cil
.
JustCopy
else
Cil
.
SkipChildren
|
g
->
let
do_it
=
function
|
GVar
(
vi
,
i
,
_
)
->
vi
.
vghost
<-
false
;
(* remove initializers on need *)
if
Mmodel_analysis
.
old_must_model_vi
self
#
behavior
vi
then
begin
try
let
old_vi
=
Cil
.
get_original_varinfo
self
#
behavior
vi
in
match
Varinfo
.
Hashtbl
.
find
global_vars
old_vi
with
|
None
->
()
|
Some
_
->
i
.
init
<-
None
with
Not_found
->
assert
false
end
|
GVar
(
vi
,
_
,
_
)
->
vi
.
vghost
<-
false
;
()
|
GFun
({
svar
=
vi
}
as
fundec
,
_
)
->
vi
.
vghost
<-
false
;
(* remember that we have to remove the main later (see method
...
...
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