source: CIVL/examples/omp/simplifier/pointerAddAlias.c@ 978afe7

main test-branch
Last change on this file since 978afe7 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: 273 bytes
Line 
1#include "omp.h"
2#define N 10
3
4
5int main() {
6 int a[N*10][N];
7 int (*p)[N], (*q)[N];
8
9 p = a; q = p + 3;
10#pragma omp parallel for firstprivate(p, q) shared(a)
11 for (int i = 0; i < N-1; i++)
12 for (int j = 0; j < N-1; j++) {
13 q[i][j] = p[i][j] + 3;
14 }
15}
Note: See TracBrowser for help on using the repository browser.