git.joshuawise.com
/
firearm.git
/ blob
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
blame
|
history
|
raw
|
HEAD
tests/testbench: Add miniblarg. Put ldm_bonehead in a place where it will not get...
[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.018941 seconds
and
4
git commands to generate.