#define NULL ((void *)0)
typedef unsigned long size_t; // Customize by platform.
typedef long intptr_t;
typedef unsigned long uintptr_t;
typedef long scalar_t__; // Either arithmetic or pointer type.
/* By default, we understand bool (as a convenience). */
typedef int bool;
#define false 0
#define true 1

/* Forward declarations */

/* Type definitions */

/* Variables and functions */
int /*<<< orphan*/ clearmatrix();
int /*<<< orphan*/ paintgrid();
int /*<<< orphan*/ paintsym(int, int, int);
splashscreen() {
  clearmatrix();
  paintgrid();
  paintsym(0, 0, 3);
  paintsym(0, 1, 4);
  paintsym(0, 2, 5);
  paintsym(1, 0, 6);
  paintsym(1, 1, 7);
  paintsym(1, 2, 8);
  paintsym(2, 0, 9);
  paintsym(2, 1, 10);
  paintsym(2, 2, 11);
}


x86 assembly (clang, -O0):
<splashscreen>:
push   %rbp
mov    %rsp,%rbp
sub    $0x10,%rsp
mov    $0x0,%al
call   1030 <clearmatrix@plt>
mov    $0x0,%al
call   1040 <paintgrid@plt>
xor    %esi,%esi
mov    $0x3,%edx
mov    %esi,%edi
call   1050 <paintsym@plt>
xor    %edi,%edi
mov    $0x1,%esi
mov    $0x4,%edx
call   1050 <paintsym@plt>
xor    %edi,%edi
mov    $0x2,%esi
mov    $0x5,%edx
call   1050 <paintsym@plt>
mov    $0x1,%edi
xor    %esi,%esi
mov    $0x6,%edx
call   1050 <paintsym@plt>
mov    $0x1,%esi
mov    $0x7,%edx
mov    %esi,%edi
call   1050 <paintsym@plt>
mov    $0x1,%edi
mov    $0x2,%esi
mov    $0x8,%edx
call   1050 <paintsym@plt>
mov    $0x2,%edi
xor    %esi,%esi
mov    $0x9,%edx
call   1050 <paintsym@plt>
mov    $0x2,%edi
mov    $0x1,%esi
mov    $0xa,%edx
call   1050 <paintsym@plt>
mov    $0x2,%esi
mov    $0xb,%edx
mov    %esi,%edi
call   1050 <paintsym@plt>
mov    -0x4(%rbp),%eax
add    $0x10,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<splashscreen>:
push   %rax
xor    %eax,%eax
call   1030 <clearmatrix@plt>
xor    %eax,%eax
call   1040 <paintgrid@plt>
xor    %edi,%edi
xor    %esi,%esi
mov    $0x3,%edx
call   1050 <paintsym@plt>
xor    %edi,%edi
mov    $0x1,%esi
mov    $0x4,%edx
call   1050 <paintsym@plt>
xor    %edi,%edi
mov    $0x2,%esi
mov    $0x5,%edx
call   1050 <paintsym@plt>
mov    $0x1,%edi
xor    %esi,%esi
mov    $0x6,%edx
call   1050 <paintsym@plt>
mov    $0x1,%edi
mov    $0x1,%esi
mov    $0x7,%edx
call   1050 <paintsym@plt>
mov    $0x1,%edi
mov    $0x2,%esi
mov    $0x8,%edx
call   1050 <paintsym@plt>
mov    $0x2,%edi
xor    %esi,%esi
mov    $0x9,%edx
call   1050 <paintsym@plt>
mov    $0x2,%edi
mov    $0x1,%esi
mov    $0xa,%edx
call   1050 <paintsym@plt>
mov    $0x2,%edi
mov    $0x2,%esi
mov    $0xb,%edx
pop    %rax
jmp    1050 <paintsym@plt>

LLVM IR (-O0):
define i32 @splashscreen() {
%1 = alloca i32
%2 = call i32 (...) @clearmatrix()
%3 = call i32 (...) @paintgrid()
%4 = call i32 @paintsym(i32 0, i32 0, i32 3)
%5 = call i32 @paintsym(i32 0, i32 1, i32 4)
%6 = call i32 @paintsym(i32 0, i32 2, i32 5)
%7 = call i32 @paintsym(i32 1, i32 0, i32 6)
%8 = call i32 @paintsym(i32 1, i32 1, i32 7)
%9 = call i32 @paintsym(i32 1, i32 2, i32 8)
%10 = call i32 @paintsym(i32 2, i32 0, i32 9)
%11 = call i32 @paintsym(i32 2, i32 1, i32 10)
%12 = call i32 @paintsym(i32 2, i32 2, i32 11)
%13 = load i32, i32* %1
ret i32 %13
}

LLVM IR (-O2):
define i32 @splashscreen() {
%1 = tail call i32 (...) @clearmatrix()
%2 = tail call i32 (...) @paintgrid()
%3 = tail call i32 @paintsym(i32 0, i32 0, i32 3)
%4 = tail call i32 @paintsym(i32 0, i32 1, i32 4)
%5 = tail call i32 @paintsym(i32 0, i32 2, i32 5)
%6 = tail call i32 @paintsym(i32 1, i32 0, i32 6)
%7 = tail call i32 @paintsym(i32 1, i32 1, i32 7)
%8 = tail call i32 @paintsym(i32 1, i32 2, i32 8)
%9 = tail call i32 @paintsym(i32 2, i32 0, i32 9)
%10 = tail call i32 @paintsym(i32 2, i32 1, i32 10)
%11 = tail call i32 @paintsym(i32 2, i32 2, i32 11)
ret i32 undef
}