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
Snippets
Deploy
Releases
Package Registry
Container Registry
Model registry
Operate
Terraform modules
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
Charles Southerland
frama-c
Commits
d19afacd
Commit
d19afacd
authored
4 years ago
by
Basile Desloges
Browse files
Options
Downloads
Patches
Plain Diff
[eacsl] Don't set RTE to off after creating a variable
parent
fd87268c
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/src/code_generator/env.ml
+4
-5
4 additions, 5 deletions
src/plugins/e-acsl/src/code_generator/env.ml
with
4 additions
and
5 deletions
src/plugins/e-acsl/src/code_generator/env.ml
+
4
−
5
View file @
d19afacd
...
@@ -215,9 +215,9 @@ let do_new_var ~loc ?(scope=Varname.Block) ?(name="") env kf t ty mk_stmts =
...
@@ -215,9 +215,9 @@ let do_new_var ~loc ?(scope=Varname.Block) ?(name="") env kf t ty mk_stmts =
env_stack
=
local_env
::
tl_env
}
env_stack
=
local_env
::
tl_env
}
|
Varname
.
Block
->
|
Varname
.
Block
->
let
local_env
=
let
local_env
=
{
b
loc
k_info
=
new_block
;
{
loc
al_env
with
mp_tbl
=
extend_tbl
local_env
.
mp_tbl
;
block_info
=
new_block
;
rte
=
false
(* must be already checked by mk_stmts *)
}
mp_tbl
=
extend_tbl
local_env
.
mp_tbl
}
in
in
{
env
with
{
env
with
cpt
=
n
;
cpt
=
n
;
...
@@ -227,8 +227,7 @@ let do_new_var ~loc ?(scope=Varname.Block) ?(name="") env kf t ty mk_stmts =
...
@@ -227,8 +227,7 @@ let do_new_var ~loc ?(scope=Varname.Block) ?(name="") env kf t ty mk_stmts =
let
new_global_vars
=
(
v
,
lscope
)
::
env
.
new_global_vars
in
let
new_global_vars
=
(
v
,
lscope
)
::
env
.
new_global_vars
in
let
local_env
=
let
local_env
=
{
local_env
with
{
local_env
with
block_info
=
new_block
;
block_info
=
new_block
}
rte
=
false
(* must be already checked by mk_stmts *)
}
in
in
{
env
with
{
env
with
new_global_vars
=
new_global_vars
;
new_global_vars
=
new_global_vars
;
...
...
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