Commit 62a61e53 authored by Virgile Prevosto's avatar Virgile Prevosto
Browse files

[tests] update oracles

parent 9c909bee
......@@ -36,8 +36,8 @@ int h(int reset, int n)
int i;
int r = 0;
i = 0;
/*@ for bar: loop assigns \nothing;
for foo: loop assigns Tab[0 .. i]; */
/*@ for foo: loop assigns Tab[0 .. i];
for bar: loop assigns \nothing; */
while (i < n) {
r += Tab[i];
if (reset) Tab[i] = 0;
......
......@@ -7,11 +7,11 @@ void main(void)
int i;
int t[10];
i = 0;
/*@ loop invariant \true;
loop assigns t[0 .. i];
/*@ loop assigns t[0 .. i];
loop invariant \true;
for foo: loop assigns t[0 .. i];
for foo: loop invariant \true;
for foo: loop invariant \true;
for foo: loop assigns t[0 .. i];
loop variant 0;
*/
while (i < 10) {
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment