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
0e3ec3de
Commit
0e3ec3de
authored
4 years ago
by
David Bühler
Committed by
Valentin Perrelle
4 years ago
Browse files
Options
Downloads
Patches
Plain Diff
[Eva] New test file widening_thresholds.
parent
f6259576
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
tests/value/oracle/widening_thresholds.res.oracle
+66
-0
66 additions, 0 deletions
tests/value/oracle/widening_thresholds.res.oracle
tests/value/widening_thresholds.i
+27
-0
27 additions, 0 deletions
tests/value/widening_thresholds.i
with
93 additions
and
0 deletions
tests/value/oracle/widening_thresholds.res.oracle
0 → 100644
+
66
−
0
View file @
0e3ec3de
[kernel] Parsing tests/value/widening_thresholds.i (no preprocessing)
[eva] Analyzing a complete application starting at main
[eva] Computing initial state
[eva] Initial state computed
[eva:initial-state] Values of globals at initialization
nondet ∈ [--..--]
g ∈ {0}
[eva] computing for function modulo <- main.
Called from tests/value/widening_thresholds.i:26.
[eva] computing for function incr_modulo <- modulo <- main.
Called from tests/value/widening_thresholds.i:21.
[eva] Recording results for incr_modulo
[eva] Done for function incr_modulo
[eva] tests/value/widening_thresholds.i:18: starting to merge loop iterations
[eva] computing for function incr_modulo <- modulo <- main.
Called from tests/value/widening_thresholds.i:21.
[eva] Recording results for incr_modulo
[eva] Done for function incr_modulo
[eva] computing for function incr_modulo <- modulo <- main.
Called from tests/value/widening_thresholds.i:21.
[eva] Recording results for incr_modulo
[eva] Done for function incr_modulo
[eva] computing for function incr_modulo <- modulo <- main.
Called from tests/value/widening_thresholds.i:21.
[eva] Recording results for incr_modulo
[eva] Done for function incr_modulo
[eva] Recording results for modulo
[eva] Done for function modulo
[eva] Recording results for main
[eva] done for function main
[eva] ====== VALUES COMPUTED ======
[eva:final-states] Values at end of function incr_modulo:
g ∈ [0..999]
[eva:final-states] Values at end of function modulo:
s ∈ [0..9]
i ∈ [0..99]
g ∈ [0..999]
[eva:final-states] Values at end of function main:
g ∈ [0..999]
[from] Computing for function incr_modulo
[from] Done for function incr_modulo
[from] Computing for function modulo
[from] Done for function modulo
[from] Computing for function main
[from] Done for function main
[from] ====== DEPENDENCIES COMPUTED ======
These dependencies hold at termination for the executions that terminate:
[from] Function incr_modulo:
g FROM g
[from] Function modulo:
g FROM nondet; g (and SELF)
[from] Function main:
g FROM nondet; g (and SELF)
[from] ====== END OF DEPENDENCIES ======
[inout] Out (internal) for function incr_modulo:
g
[inout] Inputs for function incr_modulo:
g
[inout] Out (internal) for function modulo:
s; i; g
[inout] Inputs for function modulo:
nondet; g
[inout] Out (internal) for function main:
g
[inout] Inputs for function main:
nondet; g
This diff is collapsed.
Click to expand it.
tests/value/widening_thresholds.i
0 → 100644
+
27
−
0
View file @
0e3ec3de
/* run.config*
STDOPT: +""
*/
/* Tests the inference of widening thresholds. */
volatile
int
nondet
;
static
int
g
;
void
incr_modulo
(
void
)
{
g = (g + 1) % 1000;
}
/* Tests the inference of widening thresholds according to modulo operations. */
void
modulo
(
void
)
{
short s = 0;
int i = 17;
while (nondet) {
s = (s + 1) % 10;
i = (i + 3) % 100;
incr_modulo();
}
}
void
main
(
void
)
{
modulo();
}
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