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
b886a663
Commit
b886a663
authored
5 years ago
by
David Bühler
Browse files
Options
Downloads
Patches
Plain Diff
[Eva] Comments the optional argument [subdivnb] in the evaluation signature.
parent
84af386f
No related branches found
Branches containing commit
No related tags found
Tags containing commit
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
src/plugins/value/engine/evaluation.mli
+14
-6
14 additions, 6 deletions
src/plugins/value/engine/evaluation.mli
with
14 additions
and
6 deletions
src/plugins/value/engine/evaluation.mli
+
14
−
6
View file @
b886a663
...
@@ -47,10 +47,14 @@ module type S = sig
...
@@ -47,10 +47,14 @@ module type S = sig
for the expression [expr], and [valuation] contains all the intermediate
for the expression [expr], and [valuation] contains all the intermediate
results of the evaluation.
results of the evaluation.
The [valuation] argument is a cache of already computed expressions.
Optional arguments are:
It is empty by default.
- [valuation] is a cache of already computed expressions; empty by default.
The [reduction] argument allows deactivating the backward reduction
- [reduction] is true by default, but allows deactivating the backward
performed after the forward evaluation. *)
reduction performed after the forward evaluation.
- [subdivnb] is the maximum number of subdivisions performed on non-linear
expressions: if a lvalue occurs several times in an expression, its
value can be split up to [subdivnb] times to gain more precision.
Set to the value of the option -eva-subdivide-non-linear by default. *)
val
evaluate
:
val
evaluate
:
?
valuation
:
Valuation
.
t
->
?
reduction
:
bool
->
?
subdivnb
:
int
->
?
valuation
:
Valuation
.
t
->
?
reduction
:
bool
->
?
subdivnb
:
int
->
state
->
exp
->
(
Valuation
.
t
*
value
)
evaluated
state
->
exp
->
(
Valuation
.
t
*
value
)
evaluated
...
@@ -60,7 +64,9 @@ module type S = sig
...
@@ -60,7 +64,9 @@ module type S = sig
Also returns the alarms resulting of the evaluation of the lvalue location,
Also returns the alarms resulting of the evaluation of the lvalue location,
and a valuation containing all the intermediate results of the evaluation.
and a valuation containing all the intermediate results of the evaluation.
The [valuation] argument is a cache of already computed expressions.
The [valuation] argument is a cache of already computed expressions.
It is empty by default. *)
It is empty by default.
[subdivnb] is the maximum number of subdivisions performed on non-linear
expressions. *)
val
copy_lvalue
:
val
copy_lvalue
:
?
valuation
:
Valuation
.
t
->
?
subdivnb
:
int
->
?
valuation
:
Valuation
.
t
->
?
subdivnb
:
int
->
state
->
lval
->
(
Valuation
.
t
*
value
flagged_value
)
evaluated
state
->
lval
->
(
Valuation
.
t
*
value
flagged_value
)
evaluated
...
@@ -70,7 +76,9 @@ module type S = sig
...
@@ -70,7 +76,9 @@ module type S = sig
but evaluates the lvalue into a location and its type.
but evaluates the lvalue into a location and its type.
The boolean [for_writing] indicates whether the lvalue is evaluated to be
The boolean [for_writing] indicates whether the lvalue is evaluated to be
read or written. It is useful for the emission of the alarms, and for the
read or written. It is useful for the emission of the alarms, and for the
reduction of the location. *)
reduction of the location.
[subdivnb] is the maximum number of subdivisions performed on non-linear
expressions (including the possible pointer and offset of the lvalue). *)
val
lvaluate
:
val
lvaluate
:
?
valuation
:
Valuation
.
t
->
?
subdivnb
:
int
->
for_writing
:
bool
->
?
valuation
:
Valuation
.
t
->
?
subdivnb
:
int
->
for_writing
:
bool
->
state
->
lval
->
(
Valuation
.
t
*
loc
*
typ
)
evaluated
state
->
lval
->
(
Valuation
.
t
*
loc
*
typ
)
evaluated
...
...
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