]> Joshua Wise's Git repositories - firearm.git/blob - tests/corecurse.c
Memory: Input renaming pass.
[firearm.git] / tests / corecurse.c
1 int b(int x);
2 int a(int x);
3
4 int a(int x)
5 {
6         if (x)
7                 return b(x/2) + a(x - 1);
8         return 1;
9 }
10
11 int b(int x)
12 {
13         if (x)
14                 return a(x) + a(x - 1);
15         return 0;
16 }
17
18 int corecurse()
19 {
20         int v = a(35) + b(32) - 4450/28;
21         if (v == 15411)
22                 puts("PASS\n");
23         else
24                 puts("FAIL\n");
25 }
This page took 0.024077 seconds and 4 git commands to generate.