#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*/ gamescore();
int /*<<< orphan*/ mvaddstr(scalar_t__, int, char *);
void makeboard() {
  mvaddstr(0 + 0, (12 + 14 + 12), "+---------------------------------------+");
  mvaddstr(0 + 1, (12 + 14 + 12), "|  Score:   0     YOU                   |");
  mvaddstr(0 + 2, (12 + 14 + 12), "| *.....:.....:.....:.....:.....:.....  |");
  mvaddstr(0 + 3, (12 + 14 + 12), "| *.....:.....:.....:.....:.....:.....  |");
  mvaddstr(0 + 4, (12 + 14 + 12), "|                                       |");
  mvaddstr(0 + 5, (12 + 14 + 12), "| *.....:.....:.....:.....:.....:.....  |");
  mvaddstr(0 + 6, (12 + 14 + 12), "| *.....:.....:.....:.....:.....:.....  |");
  mvaddstr(0 + 7, (12 + 14 + 12), "|  Score:   0      ME                   |");
  mvaddstr(0 + 8, (12 + 14 + 12), "+---------------------------------------+");
  gamescore();
}


x86 assembly (clang, -O0):
<makeboard>:
push   %rbp
mov    %rsp,%rbp
xor    %eax,%eax
mov    %eax,%edi
mov    $0x26,%esi
lea    0xecc(%rip),%rdx
call   1040 <mvaddstr@plt>
mov    $0x1,%edi
mov    $0x26,%esi
lea    0xee0(%rip),%rdx
call   1040 <mvaddstr@plt>
mov    $0x2,%edi
mov    $0x26,%esi
lea    0xef4(%rip),%rdx
call   1040 <mvaddstr@plt>
mov    $0x3,%edi
mov    $0x26,%esi
lea    0xede(%rip),%rdx
call   1040 <mvaddstr@plt>
mov    $0x4,%edi
mov    $0x26,%esi
lea    0xef2(%rip),%rdx
call   1040 <mvaddstr@plt>
mov    $0x5,%edi
mov    $0x26,%esi
lea    0xeb2(%rip),%rdx
call   1040 <mvaddstr@plt>
mov    $0x6,%edi
mov    $0x26,%esi
lea    0xe9c(%rip),%rdx
call   1040 <mvaddstr@plt>
mov    $0x7,%edi
mov    $0x26,%esi
lea    0xeda(%rip),%rdx
call   1040 <mvaddstr@plt>
mov    $0x8,%edi
mov    $0x26,%esi
lea    0xe1c(%rip),%rdx
call   1040 <mvaddstr@plt>
mov    $0x0,%al
call   1030 <gamescore@plt>
pop    %rbp
ret

x86 assembly (clang, -O2):
<makeboard>:
push   %r14
push   %rbx
push   %rax
lea    0xed5(%rip),%r14
xor    %edi,%edi
mov    $0x26,%esi
mov    %r14,%rdx
call   1040 <mvaddstr@plt>
lea    0xee9(%rip),%rdx
mov    $0x1,%edi
mov    $0x26,%esi
call   1040 <mvaddstr@plt>
lea    0xefd(%rip),%rbx
mov    $0x2,%edi
mov    $0x26,%esi
mov    %rbx,%rdx
call   1040 <mvaddstr@plt>
mov    $0x3,%edi
mov    $0x26,%esi
mov    %rbx,%rdx
call   1040 <mvaddstr@plt>
lea    0xefc(%rip),%rdx
mov    $0x4,%edi
mov    $0x26,%esi
call   1040 <mvaddstr@plt>
mov    $0x5,%edi
mov    $0x26,%esi
mov    %rbx,%rdx
call   1040 <mvaddstr@plt>
mov    $0x6,%edi
mov    $0x26,%esi
mov    %rbx,%rdx
call   1040 <mvaddstr@plt>
lea    0xeec(%rip),%rdx
mov    $0x7,%edi
mov    $0x26,%esi
call   1040 <mvaddstr@plt>
mov    $0x8,%edi
mov    $0x26,%esi
mov    %r14,%rdx
call   1040 <mvaddstr@plt>
xor    %eax,%eax
add    $0x8,%rsp
pop    %rbx
pop    %r14
jmp    1030 <gamescore@plt>

LLVM IR (-O0):
@.str = [42 x i8] c"+---------------------------------------+\00"
@.str.1 = [42 x i8] c"| Score: 0 YOU |\00"
@.str.2 = [42 x i8] c"| *.....:.....:.....:.....:.....:..... |\00"
@.str.3 = [42 x i8] c"| |\00"
@.str.4 = [42 x i8] c"| Score: 0 ME |\00"
define void @makeboard() {
%1 = call i32 @mvaddstr(i64 0, i32 38, i8* getelementptr inbounds ([42 x i8], [42 x i8]* @.str, i64 0, i64 0))
%2 = call i32 @mvaddstr(i64 1, i32 38, i8* getelementptr inbounds ([42 x i8], [42 x i8]* @.str.1, i64 0, i64 0))
%3 = call i32 @mvaddstr(i64 2, i32 38, i8* getelementptr inbounds ([42 x i8], [42 x i8]* @.str.2, i64 0, i64 0))
%4 = call i32 @mvaddstr(i64 3, i32 38, i8* getelementptr inbounds ([42 x i8], [42 x i8]* @.str.2, i64 0, i64 0))
%5 = call i32 @mvaddstr(i64 4, i32 38, i8* getelementptr inbounds ([42 x i8], [42 x i8]* @.str.3, i64 0, i64 0))
%6 = call i32 @mvaddstr(i64 5, i32 38, i8* getelementptr inbounds ([42 x i8], [42 x i8]* @.str.2, i64 0, i64 0))
%7 = call i32 @mvaddstr(i64 6, i32 38, i8* getelementptr inbounds ([42 x i8], [42 x i8]* @.str.2, i64 0, i64 0))
%8 = call i32 @mvaddstr(i64 7, i32 38, i8* getelementptr inbounds ([42 x i8], [42 x i8]* @.str.4, i64 0, i64 0))
%9 = call i32 @mvaddstr(i64 8, i32 38, i8* getelementptr inbounds ([42 x i8], [42 x i8]* @.str, i64 0, i64 0))
%10 = call i32 (...) @gamescore()
ret void
}

LLVM IR (-O2):
@.str = [42 x i8] c"+---------------------------------------+\00"
@.str.1 = [42 x i8] c"| Score: 0 YOU |\00"
@.str.2 = [42 x i8] c"| *.....:.....:.....:.....:.....:..... |\00"
@.str.3 = [42 x i8] c"| |\00"
@.str.4 = [42 x i8] c"| Score: 0 ME |\00"
define void @makeboard() {
%1 = tail call i32 @mvaddstr(i64 0, i32 38, i8* getelementptr inbounds ([42 x i8], [42 x i8]* @.str, i64 0, i64 0))
%2 = tail call i32 @mvaddstr(i64 1, i32 38, i8* getelementptr inbounds ([42 x i8], [42 x i8]* @.str.1, i64 0, i64 0))
%3 = tail call i32 @mvaddstr(i64 2, i32 38, i8* getelementptr inbounds ([42 x i8], [42 x i8]* @.str.2, i64 0, i64 0))
%4 = tail call i32 @mvaddstr(i64 3, i32 38, i8* getelementptr inbounds ([42 x i8], [42 x i8]* @.str.2, i64 0, i64 0))
%5 = tail call i32 @mvaddstr(i64 4, i32 38, i8* getelementptr inbounds ([42 x i8], [42 x i8]* @.str.3, i64 0, i64 0))
%6 = tail call i32 @mvaddstr(i64 5, i32 38, i8* getelementptr inbounds ([42 x i8], [42 x i8]* @.str.2, i64 0, i64 0))
%7 = tail call i32 @mvaddstr(i64 6, i32 38, i8* getelementptr inbounds ([42 x i8], [42 x i8]* @.str.2, i64 0, i64 0))
%8 = tail call i32 @mvaddstr(i64 7, i32 38, i8* getelementptr inbounds ([42 x i8], [42 x i8]* @.str.4, i64 0, i64 0))
%9 = tail call i32 @mvaddstr(i64 8, i32 38, i8* getelementptr inbounds ([42 x i8], [42 x i8]* @.str, i64 0, i64 0))
%10 = tail call i32 (...) @gamescore()
ret void
}