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
61a08a25
Commit
61a08a25
authored
5 years ago
by
David Bühler
Committed by
Michele Alberti
5 years ago
Browse files
Options
Downloads
Patches
Plain Diff
[Eva] Updates an outdated comment in a test.
parent
71c36817
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
tests/value/nonlin.c
+3
-5
3 additions, 5 deletions
tests/value/nonlin.c
tests/value/oracle/nonlin.res.oracle
+35
-35
35 additions, 35 deletions
tests/value/oracle/nonlin.res.oracle
with
38 additions
and
40 deletions
tests/value/nonlin.c
+
3
−
5
View file @
61a08a25
...
...
@@ -54,11 +54,9 @@ void subdivide_several_variables () {
int
z
=
Frama_C_interval
(
-
10
,
10
);
/* A subdivision on each variable separately is more efficient here. */
int
norm
=
x
*
x
+
y
*
y
;
/* Subdivide on x, then on y.
This evaluation is currently imprecise as the subdivision is stopped when
it seems not to improve the bounds of the result. Here however, the
subdivision on x would improve the value of x*x, and the subdivision on y
would then improve the value of the expression. */
/* Subdivide on x, then on y. Note that the subdivision on x does not improve
the result but only the value of x*x, while the later subdivision on y
improve the value of the result thanks to the reduced value of x*x. */
int
mult
=
((
x
*
x
)
*
y
)
*
y
;
/* A subdivision on both variables is more efficient here. */
int
zero
=
x
*
y
-
y
*
x
;
...
...
This diff is collapsed.
Click to expand it.
tests/value/oracle/nonlin.res.oracle
+
35
−
35
View file @
61a08a25
...
...
@@ -24,7 +24,7 @@
[31] ∈ {5}
[32..35] ∈ {0}
[eva] computing for function subdivide_integer <- main.
Called from tests/value/nonlin.c:1
2
1.
Called from tests/value/nonlin.c:11
9
.
[eva:nonlin] tests/value/nonlin.c:31:
non-linear '((int)z + 675) * ((int)z + 675)', lv 'z'
[eva:nonlin] tests/value/nonlin.c:31: subdividing on z
...
...
@@ -45,7 +45,7 @@
[eva] Recording results for subdivide_integer
[eva] Done for function subdivide_integer
[eva] computing for function subdivide_pointer <- main.
Called from tests/value/nonlin.c:12
2
.
Called from tests/value/nonlin.c:12
0
.
[eva] computing for function Frama_C_interval <- subdivide_pointer <- main.
Called from tests/value/nonlin.c:12.
[eva] using specification for function Frama_C_interval
...
...
@@ -68,7 +68,7 @@
[eva] Recording results for subdivide_pointer
[eva] Done for function subdivide_pointer
[eva] computing for function subdivide_several_variables <- main.
Called from tests/value/nonlin.c:12
3
.
Called from tests/value/nonlin.c:12
1
.
[eva] computing for function Frama_C_interval <- subdivide_several_variables <-
main.
Called from tests/value/nonlin.c:51.
...
...
@@ -97,61 +97,61 @@
[eva:nonlin] tests/value/nonlin.c:56: non-linear 'y * y', lv 'y'
[eva:nonlin] tests/value/nonlin.c:56: subdividing on x
[eva:nonlin] tests/value/nonlin.c:56: subdividing on y
[eva:nonlin] tests/value/nonlin.c:6
2
: non-linear 'x * x', lv 'x'
[eva:nonlin] tests/value/nonlin.c:6
2
: non-linear '((x * x) * y) * y', lv 'y'
[eva:nonlin] tests/value/nonlin.c:6
2
: subdividing on x
[eva:nonlin] tests/value/nonlin.c:6
2
: subdividing on y
[eva:nonlin] tests/value/nonlin.c:6
4
: non-linear 'x * y - y * x', lv 'y, x'
[eva:nonlin] tests/value/nonlin.c:6
4
: subdividing on x, y
[eva:nonlin] tests/value/nonlin.c:6
7
:
[eva:nonlin] tests/value/nonlin.c:6
0
: non-linear 'x * x', lv 'x'
[eva:nonlin] tests/value/nonlin.c:6
0
: non-linear '((x * x) * y) * y', lv 'y'
[eva:nonlin] tests/value/nonlin.c:6
0
: subdividing on x
[eva:nonlin] tests/value/nonlin.c:6
0
: subdividing on y
[eva:nonlin] tests/value/nonlin.c:6
2
: non-linear 'x * y - y * x', lv 'y, x'
[eva:nonlin] tests/value/nonlin.c:6
2
: subdividing on x, y
[eva:nonlin] tests/value/nonlin.c:6
5
:
non-linear '(x * x - (2 * x) * y) + y * y', lv 'y, x'
[eva:nonlin] tests/value/nonlin.c:6
7
: subdividing on x, y
[eva:nonlin] tests/value/nonlin.c:6
8
:
[eva:nonlin] tests/value/nonlin.c:6
5
: subdividing on x, y
[eva:nonlin] tests/value/nonlin.c:6
6
:
non-linear '(x * x + y * y) - (2 * x) * y', lv 'y, x'
[eva:nonlin] tests/value/nonlin.c:6
8
: subdividing on x, y
[eva:nonlin] tests/value/nonlin.c:
70
:
[eva:nonlin] tests/value/nonlin.c:6
6
: subdividing on x, y
[eva:nonlin] tests/value/nonlin.c:
68
:
non-linear '(z * x + x * y) + y * z', lv 'z, y, x'
[eva:nonlin] tests/value/nonlin.c:
70
: non-linear 'w * w', lv 'w'
[eva:nonlin] tests/value/nonlin.c:
70
: subdividing on x, y, z
[eva:nonlin] tests/value/nonlin.c:
70
: subdividing on w
[eva:nonlin] tests/value/nonlin.c:
68
: non-linear 'w * w', lv 'w'
[eva:nonlin] tests/value/nonlin.c:
68
: subdividing on x, y, z
[eva:nonlin] tests/value/nonlin.c:
68
: subdividing on w
[eva] Recording results for subdivide_several_variables
[eva] Done for function subdivide_several_variables
[eva] computing for function subdivide_table <- main.
Called from tests/value/nonlin.c:12
4
.
[eva] tests/value/nonlin.c:8
9
: loop invariant got status valid.
[eva] tests/value/nonlin.c:
90
: starting to merge loop iterations
[eva:nonlin] tests/value/nonlin.c:9
1
:
Called from tests/value/nonlin.c:12
2
.
[eva] tests/value/nonlin.c:8
7
: loop invariant got status valid.
[eva] tests/value/nonlin.c:
88
: starting to merge loop iterations
[eva:nonlin] tests/value/nonlin.c:
8
9:
non-linear '(4 + ((x >> 2) * 3 << 2)) + x % 4', lv 'x'
[eva:nonlin] tests/value/nonlin.c:9
1
: subdividing on x
[eva:nonlin] tests/value/nonlin.c:
8
9: subdividing on x
[eva] Recording results for subdivide_table
[eva] Done for function subdivide_table
[eva] computing for function subdivide_reduced_value <- main.
Called from tests/value/nonlin.c:12
5
.
[eva:nonlin] tests/value/nonlin.c:10
3
: non-linear 't1[i] - t2[i]', lv 'i'
[eva:nonlin] tests/value/nonlin.c:10
3
: subdividing on i
[eva:alarm] tests/value/nonlin.c:10
3
: Warning:
Called from tests/value/nonlin.c:12
3
.
[eva:nonlin] tests/value/nonlin.c:10
1
: non-linear 't1[i] - t2[i]', lv 'i'
[eva:nonlin] tests/value/nonlin.c:10
1
: subdividing on i
[eva:alarm] tests/value/nonlin.c:10
1
: Warning:
accessing out of bounds index. assert 0 ≤ i;
[eva:alarm] tests/value/nonlin.c:10
3
: Warning:
[eva:alarm] tests/value/nonlin.c:10
1
: Warning:
accessing out of bounds index. assert i < 2;
[eva] Recording results for subdivide_reduced_value
[eva] Done for function subdivide_reduced_value
[eva] computing for function local_subdivide <- main.
Called from tests/value/nonlin.c:12
6
.
Called from tests/value/nonlin.c:12
4
.
[eva] computing for function Frama_C_interval <- local_subdivide <- main.
Called from tests/value/nonlin.c:10
9
.
[eva] tests/value/nonlin.c:10
9
:
Called from tests/value/nonlin.c:10
7
.
[eva] tests/value/nonlin.c:10
7
:
function Frama_C_interval: precondition 'order' got status valid.
[eva] Done for function Frama_C_interval
[eva] computing for function Frama_C_interval <- local_subdivide <- main.
Called from tests/value/nonlin.c:1
1
0.
[eva] tests/value/nonlin.c:1
1
0:
Called from tests/value/nonlin.c:10
8
.
[eva] tests/value/nonlin.c:10
8
:
function Frama_C_interval: precondition 'order' got status valid.
[eva] Done for function Frama_C_interval
[eva:nonlin] tests/value/nonlin.c:11
4
:
[eva:nonlin] tests/value/nonlin.c:11
2
:
non-linear '(x * x - (2 * x) * y) + y * y', lv 'y, x'
[eva:nonlin] tests/value/nonlin.c:114: subdividing on x, y
[eva:nonlin] tests/value/nonlin.c:112: subdividing on x, y
[eva:nonlin] tests/value/nonlin.c:113: subdividing on x, y
[eva:nonlin] tests/value/nonlin.c:115: subdividing on x, y
[eva:nonlin] tests/value/nonlin.c:117: subdividing on x, y
[eva] Recording results for local_subdivide
[eva] Done for function local_subdivide
[eva] Recording results for main
...
...
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