source: CIVL/examples/bench/assignments.cvl

main
Last change on this file was ea777aa, checked in by Alex Wilton <awilton@…>, 3 years ago

Moved examples, include, build_default.properties, common.xml, and README out from dev.civl.com into the root of the repo.

git-svn-id: svn://vsl.cis.udel.edu/civl/trunk@5704 fb995dde-84ed-4084-dfe6-e5aef3e2452c

  • Property mode set to 100644
File size: 304 bytes
RevLine 
[6dd9f4e]1#ifdef SIMPLIFY // run CIVL with simplify, slow, so smaller N
2#define N 3000
3#else
4#define N 10000
5#endif
6#define M 100
7
8#include <stdio.h>
9
10int main() {
11 int x[N][M];
12
13 printf("N = %d\n", N);
14
15 for (int i = 0; i < N; i++)
16 x[i] = (int[M])$lambda(int j)i;
17
18 $assert(x[N-1][M-1] == N-1);
19}
Note: See TracBrowser for help on using the repository browser.