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
35d02826
Commit
35d02826
authored
5 years ago
by
Loïc Correnson
Browse files
Options
Downloads
Patches
Plain Diff
[kernel] updated oracles wrt. sizeof(exp)
Old translation was potentially incorrect for sizeof(exp)
parent
a0d20d3f
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
tests/value/oracle/sizeof.res.oracle
+10
-8
10 additions, 8 deletions
tests/value/oracle/sizeof.res.oracle
with
10 additions
and
8 deletions
tests/value/oracle/sizeof.res.oracle
+
10
−
8
View file @
35d02826
...
@@ -25,16 +25,16 @@
...
@@ -25,16 +25,16 @@
The imprecision originates from Arithmetic {tests/value/sizeof.i:32}
The imprecision originates from Arithmetic {tests/value/sizeof.i:32}
[eva:alarm] tests/value/sizeof.i:33: Warning:
[eva:alarm] tests/value/sizeof.i:33: Warning:
accessing out of bounds index.
accessing out of bounds index.
assert (unsigned int)(sizeof(
s1.t
) - (unsigned int)i) < 10;
assert (unsigned int)(sizeof(
int [10]
) - (unsigned int)i) < 10;
[eva:alarm] tests/value/sizeof.i:33: Warning:
[eva:alarm] tests/value/sizeof.i:33: Warning:
out of bounds write.
out of bounds write.
assert \valid(&p->t[(unsigned int)(sizeof(
s1.t
) - (unsigned int)i)]);
assert \valid(&p->t[(unsigned int)(sizeof(
int [10]
) - (unsigned int)i)]);
[eva:alarm] tests/value/sizeof.i:34: Warning:
[eva:alarm] tests/value/sizeof.i:34: Warning:
accessing out of bounds index.
accessing out of bounds index.
assert (unsigned int)(sizeof(
s1.t
) - (unsigned int)i) < 10;
assert (unsigned int)(sizeof(
int [10]
) - (unsigned int)i) < 10;
[eva:alarm] tests/value/sizeof.i:34: Warning:
[eva:alarm] tests/value/sizeof.i:34: Warning:
out of bounds write.
out of bounds write.
assert \valid(&p->t[(unsigned int)(sizeof(
s1.t
) - (unsigned int)i)]);
assert \valid(&p->t[(unsigned int)(sizeof(
int [10]
) - (unsigned int)i)]);
[eva] Recording results for main2
[eva] Recording results for main2
[eva] Done for function main2
[eva] Done for function main2
[eva] computing for function f <- main.
[eva] computing for function f <- main.
...
@@ -129,19 +129,21 @@ void main2(void)
...
@@ -129,19 +129,21 @@ void main2(void)
/*@ assert Eva: pointer_downcast: (unsigned int)(&s1) ≤ 2147483647; */
/*@ assert Eva: pointer_downcast: (unsigned int)(&s1) ≤ 2147483647; */
struct s *p = (& s1 + (int)(& s1)) - (int)(& s1);
struct s *p = (& s1 + (int)(& s1)) - (int)(& s1);
/*@ assert
/*@ assert
Eva: index_bound: (unsigned int)(sizeof(s1.t) - (unsigned int)i) < 10;
Eva: index_bound:
(unsigned int)(sizeof(int [10]) - (unsigned int)i) < 10;
*/
*/
/*@ assert
/*@ assert
Eva: mem_access:
Eva: mem_access:
\valid(&p->t[(unsigned int)(sizeof(
s1.t
) - (unsigned int)i)]);
\valid(&p->t[(unsigned int)(sizeof(
int [10]
) - (unsigned int)i)]);
*/
*/
p->t[sizeof(s1.t) - (unsigned int)i] = 1;
p->t[sizeof(s1.t) - (unsigned int)i] = 1;
/*@ assert
/*@ assert
Eva: index_bound: (unsigned int)(sizeof(s1.t) - (unsigned int)i) < 10;
Eva: index_bound:
(unsigned int)(sizeof(int [10]) - (unsigned int)i) < 10;
*/
*/
/*@ assert
/*@ assert
Eva: mem_access:
Eva: mem_access:
\valid(&p->t[(unsigned int)(sizeof(
s1.t
) - (unsigned int)i)]);
\valid(&p->t[(unsigned int)(sizeof(
int [10]
) - (unsigned int)i)]);
*/
*/
p->t[sizeof(s1.t) - (unsigned int)i] = 2;
p->t[sizeof(s1.t) - (unsigned int)i] = 2;
return;
return;
...
...
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