mirror of
https://github.com/hedge-dev/XenonRecomp.git
synced 2026-07-24 02:07:01 +00:00
Rebrand to XenonRecomp.
This commit is contained in:
@@ -0,0 +1,10 @@
|
||||
int add(int a, int b)
|
||||
{
|
||||
int c = a + b;
|
||||
return c == 0 ? 50000 : c;
|
||||
}
|
||||
|
||||
extern "C" int _start()
|
||||
{
|
||||
return add(1, 2);
|
||||
}
|
||||
Binary file not shown.
@@ -0,0 +1,9 @@
|
||||
int add(int a, int b)
|
||||
{
|
||||
return a + b;
|
||||
}
|
||||
|
||||
extern "C" int _start()
|
||||
{
|
||||
return add(1, 2);
|
||||
}
|
||||
Binary file not shown.
@@ -0,0 +1,15 @@
|
||||
int cond(int a)
|
||||
{
|
||||
int v = 2;
|
||||
if (a == 1)
|
||||
{
|
||||
v += 5;
|
||||
}
|
||||
|
||||
return v;
|
||||
}
|
||||
|
||||
extern "C" int _start()
|
||||
{
|
||||
return cond(0);
|
||||
}
|
||||
Binary file not shown.
@@ -0,0 +1,18 @@
|
||||
int cond(int a)
|
||||
{
|
||||
if (a == 1)
|
||||
{
|
||||
return 5;
|
||||
}
|
||||
else if (a == 4)
|
||||
{
|
||||
return 9;
|
||||
}
|
||||
|
||||
return 0;
|
||||
}
|
||||
|
||||
extern "C" int _start()
|
||||
{
|
||||
return cond(0);
|
||||
}
|
||||
Binary file not shown.
@@ -0,0 +1,15 @@
|
||||
int loop(int a)
|
||||
{
|
||||
int result = 0;
|
||||
for (int i = 0; i < a; i++)
|
||||
{
|
||||
result = result * 31 + i;
|
||||
result *= result;
|
||||
}
|
||||
return result;
|
||||
}
|
||||
|
||||
extern "C" int _start()
|
||||
{
|
||||
return loop(30);
|
||||
}
|
||||
Binary file not shown.
@@ -0,0 +1,2 @@
|
||||
*
|
||||
!.gitignore
|
||||
Reference in New Issue
Block a user