Rebrand to XenonRecomp.

This commit is contained in:
Skyth
2025-01-19 22:39:12 +03:00
parent 7fb8af1bad
commit 87e350906b
54 changed files with 69 additions and 64 deletions

View File

@@ -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.

View File

@@ -0,0 +1,9 @@
int add(int a, int b)
{
return a + b;
}
extern "C" int _start()
{
return add(1, 2);
}

BIN
tests/XenonAnalyse/add.elf Normal file

Binary file not shown.

View File

@@ -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.

View File

@@ -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);
}

BIN
tests/XenonAnalyse/cond.elf Normal file

Binary file not shown.

View File

@@ -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);
}

BIN
tests/XenonAnalyse/loop.elf Normal file

Binary file not shown.

2
tests/XenonAnalyse/private/.gitignore vendored Normal file
View File

@@ -0,0 +1,2 @@
*
!.gitignore