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
3a59ad27
Commit
3a59ad27
authored
4 years ago
by
Basile Desloges
Browse files
Options
Downloads
Patches
Plain Diff
[eacsl:doc] Update comments
parent
a8fe2b10
No related branches found
No related tags found
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/memory_translate.ml
+5
-5
5 additions, 5 deletions
src/plugins/e-acsl/src/code_generator/memory_translate.ml
src/plugins/e-acsl/src/code_generator/memory_translate.mli
+4
-4
4 additions, 4 deletions
src/plugins/e-acsl/src/code_generator/memory_translate.mli
with
9 additions
and
9 deletions
src/plugins/e-acsl/src/code_generator/memory_translate.ml
+
5
−
5
View file @
3a59ad27
...
...
@@ -55,7 +55,7 @@ let term_to_exp_ref
Hence [Range_elimination_exception] must be raised. *)
exception
Range_elimination_exception
(* Take
s
a [toffset] and check
s
whether it contains an index that is a set *)
(* Take a [toffset] and check whether it contains an index that is a set *)
let
rec
has_set_as_index
=
function
|
TNoOffset
->
false
...
...
@@ -64,8 +64,8 @@ let rec has_set_as_index = function
|
TModel
(
_
,
toffset
)
|
TField
(
_
,
toffset
)
->
has_set_as_index
toffset
(* Perform
s
Range Elimination on index [TIndex(term, offset)]. Term part.
Raise
s
[Range_elimination_exception] whether either the operation is unsound
(* Perform Range Elimination on index [TIndex(term, offset)]. Term part.
Raise [Range_elimination_exception] whether either the operation is unsound
or we don't support the construction yet. *)
let
eliminate_ranges_from_index_of_term
~
loc
t
=
match
t
.
term_node
with
...
...
@@ -77,8 +77,8 @@ let eliminate_ranges_from_index_of_term ~loc t =
|
_
->
raise
Range_elimination_exception
(* Perform
s
Range Elimination on index [TIndex(term, offset)]. Offset part.
Raise
s
[Range_elimination_exception], through [eliminate_ranges_from_
(* Perform Range Elimination on index [TIndex(term, offset)]. Offset part.
Raise [Range_elimination_exception], through [eliminate_ranges_from_
index_of_term], whether either the operation is unsound or we don't support
the construction yet. *)
let
rec
eliminate_ranges_from_index_of_toffset
~
loc
toffset
quantifiers
=
...
...
This diff is collapsed.
Click to expand it.
src/plugins/e-acsl/src/code_generator/memory_translate.mli
+
4
−
4
View file @
3a59ad27
...
...
@@ -22,15 +22,15 @@
open
Cil_types
(* Create calls to a few memory builtins.
(* Create calls to a few memory built
-
ins.
Partial support for ranges is provided. *)
val
call
:
loc
:
location
->
kernel_function
->
string
->
typ
->
Env
.
t
->
term
->
exp
*
Env
.
t
(* [call ~loc kf name ctx env t] creates a call to the E-ACSL memory builtin
(* [call ~loc kf name ctx env t] creates a call to the E-ACSL memory built
-
in
identified by [name] which only requires a single argument, namely the
pointer under study. The supported builtins are:
pointer under study. The supported built
-
ins are:
[base_addr], [block_length], [offset] and [freeable]. *)
val
call_with_size
:
...
...
@@ -47,7 +47,7 @@ val call_valid:
loc
:
location
->
kernel_function
->
string
->
typ
->
Env
.
t
->
term
->
predicate
->
exp
*
Env
.
t
(* [call_valid ~loc kf name ctx env t p] creates a call to the E-ACSL memory
builtin [valid] or [valid_read] according to [name].
built
-
in [valid] or [valid_read] according to [name].
[t] can denote ranges of memory locations.
[p] is the predicate under testing. *)
...
...
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