main
| Rev | Line | |
|---|
| [c510c2d] | 1 | #include<assert.h>
|
|---|
| 2 |
|
|---|
| 3 | int main() {
|
|---|
| 4 | int m = 0;
|
|---|
| 5 | int n = 10;
|
|---|
| 6 | int k = n-1;
|
|---|
| 7 | int a[n];
|
|---|
| 8 |
|
|---|
| 9 | for (int i = 0; i < n; i++)
|
|---|
| [aad342c] | 10 | a[i] = i;
|
|---|
| [c510c2d] | 11 |
|
|---|
| 12 | $assert($forall (int j:0.. k) a[j]==0);
|
|---|
| 13 | $assert($forall (int j:0..n-1) a[j]==0);
|
|---|
| 14 | $assert($forall (int j:0.. n-1) a[j]==0);
|
|---|
| 15 | $assert($forall (int j:0 .. n-1) a[j]==0);
|
|---|
| 16 | $assert($forall (int j:0 ..n-1) a[j]==0);
|
|---|
| 17 | $assert($forall (int j:0..(n-1)) a[j]==0);
|
|---|
| 18 | $assert($forall (int j:m ..9) a[j]==0);
|
|---|
| 19 | $assert($forall (int j:m +0..9) a[j]==0);
|
|---|
| 20 | $assert($forall (int j:m -0..9) a[j]==0);
|
|---|
| 21 | $assert($forall (int j:0..+9) a[j]==0);
|
|---|
| 22 | $assert($forall (int j:0..-9+18) a[j]==0);
|
|---|
| [aad342c] | 23 | $assert($forall (double j: m ..k) a[j]==0);
|
|---|
| 24 | $assert($forall (double j: m..k) a[j]==0);
|
|---|
| 25 | } |
|---|
Note:
See
TracBrowser
for help on using the repository browser.