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
b07b339c
Commit
b07b339c
authored
4 years ago
by
Basile Desloges
Browse files
Options
Downloads
Patches
Plain Diff
[eacsl] Update mk_delete_stmt to support addresses parameters
parent
7bdf8d51
No related branches found
Branches containing commit
No related tags found
Tags containing commit
No related merge requests found
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
src/plugins/e-acsl/src/code_generator/constructor.ml
+3
-3
3 additions, 3 deletions
src/plugins/e-acsl/src/code_generator/constructor.ml
src/plugins/e-acsl/src/code_generator/constructor.mli
+3
-2
3 additions, 2 deletions
src/plugins/e-acsl/src/code_generator/constructor.mli
with
6 additions
and
5 deletions
src/plugins/e-acsl/src/code_generator/constructor.ml
+
3
−
3
View file @
b07b339c
...
...
@@ -147,11 +147,11 @@ let mk_store_stmt ?str_size vi =
let
mk_duplicate_store_stmt
?
str_size
vi
=
mk_named_store_stmt
"store_block_duplicate"
?
str_size
vi
let
mk_delete_stmt
vi
=
let
mk_delete_stmt
?
(
is_addr
=
false
)
vi
=
let
loc
=
vi
.
vdecl
in
let
mk
=
mk_rtl_call
~
loc
"delete_block"
in
match
Cil
.
unrollType
vi
.
vtype
with
|
TArray
(
_
,
Some
_
,
_
,
_
)
->
mk
[
Cil
.
evar
~
loc
vi
]
match
is_addr
,
Cil
.
unrollType
vi
.
vtype
with
|
_
,
TArray
(
_
,
Some
_
,
_
,
_
)
|
true
,
_
->
mk
[
Cil
.
evar
~
loc
vi
]
|
_
->
mk
[
Cil
.
mkAddrOfVi
vi
]
let
mk_mark_readonly
vi
=
...
...
This diff is collapsed.
Click to expand it.
src/plugins/e-acsl/src/code_generator/constructor.mli
+
3
−
2
View file @
b07b339c
...
...
@@ -54,9 +54,10 @@ val mk_duplicate_store_stmt: ?str_size:exp -> varinfo -> stmt
(** Same as [mk_store_stmt] for [__e_acsl_duplicate_store_block] that first
checks for a previous allocation of the given varinfo. *)
val
mk_delete_stmt
:
varinfo
->
stmt
val
mk_delete_stmt
:
?
is_addr
:
bool
->
varinfo
->
stmt
(** Same as [mk_store_stmt] for [__e_acsl_delete_block] that observes the
de-allocation of the given varinfo. *)
de-allocation of the given varinfo.
If [is_addr] is false (default), take the address of varinfo. *)
val
mk_full_init_stmt
:
varinfo
->
stmt
(** Same as [mk_store_stmt] for [__e_acsl_full_init] that observes the
...
...
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