pn2adg.cc: edge_name: allocate enough space for edge name
[ppn.git] / tests / inputs / barthou_E1.c
blob87c48106a4ee58b1eaa342c17508fc019eb559be
1 /* C version of example E1 from Barthou's PhD text, page 100.
2 */
4 int f(void);
5 int P(int, int);
6 int g(int);
7 void h(int);
9 void foo(int n)
11 int s;
13 #pragma scop
14 for (int x1 = 0; x1 < n; ++x1) {
15 S1: s = f();
16 for (int x2 = 0; P(x1, x2); ++x2) {
17 S2: s = g(s);
19 R: h(s);
21 #pragma endscop