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
295d6410
Commit
295d6410
authored
9 months ago
by
David Bühler
Browse files
Options
Downloads
Patches
Plain Diff
[kernel] Interpreted automata: improves documentation of widening.
parent
011908fd
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/kernel_services/analysis/interpreted_automata.mli
+9
-3
9 additions, 3 deletions
src/kernel_services/analysis/interpreted_automata.mli
with
9 additions
and
3 deletions
src/kernel_services/analysis/interpreted_automata.mli
+
9
−
3
View file @
295d6410
...
@@ -318,11 +318,17 @@ sig
...
@@ -318,11 +318,17 @@ sig
(** Merges two states coming from different paths. *)
(** Merges two states coming from different paths. *)
val
join
:
t
->
t
->
t
val
join
:
t
->
t
->
t
(** [widen v1 v2] must returns None if [v2] is included in [v1].
(** [widen v1 v2] is called on loop heads after each iteration of the
Otherwise, over-approximates the join between [v1] and [v2] such that
analysis on the loop body: [v1] is the previous state before the
iteration, and [v2] the new state after the iteration.
The function must return None if the analysis has reached a fixpoint for
the loop: this is the case if [join v1 v2] is equivalent to [v1], as a new
iteration would have the same entry state as the last one.
Otherwise, it must return the new entry state for the next iteration,
by over-approximating the join between [v1] and [v2] such that
any sequence of successive widenings is ultimately stationary,
any sequence of successive widenings is ultimately stationary,
i.e. […widen (widen (widen x0 x1) x2) x3…] eventually returns None.
i.e. […widen (widen (widen x0 x1) x2) x3…] eventually returns None.
Called on loop heads to
ensure the analysis termination. *)
This
ensure
s
the analysis termination. *)
val
widen
:
t
->
t
->
t
option
val
widen
:
t
->
t
->
t
option
(** Transfer function for edges: computes the state after the transition
(** Transfer function for edges: computes the state after the transition
...
...
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