#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*/ clscr();
int /*<<< orphan*/ printf(char *);
int /*<<< orphan*/ txt_ctrd(char *);
void header() {
  clscr();
  printf("\n");
  txt_ctrd("-------------\n");
  txt_ctrd("|           |\n");
  txt_ctrd("|  MORPION  |\n");
  txt_ctrd("|           |\n");
  txt_ctrd("-------------\n");
  printf("\n\n");
}


x86 assembly (clang, -O0):
<header>:
push   %rbp
mov    %rsp,%rbp
mov    $0x0,%al
call   1050 <clscr@plt>
lea    0xeec(%rip),%rdi
call   1030 <printf@plt>
lea    0xeb2(%rip),%rdi
call   1040 <txt_ctrd@plt>
lea    0xeb5(%rip),%rdi
call   1040 <txt_ctrd@plt>
lea    0xeb8(%rip),%rdi
call   1040 <txt_ctrd@plt>
lea    0xe9d(%rip),%rdi
call   1040 <txt_ctrd@plt>
lea    0xe82(%rip),%rdi
call   1040 <txt_ctrd@plt>
lea    0xea3(%rip),%rdi
call   1030 <printf@plt>
pop    %rbp
ret

x86 assembly (clang, -O2):
<header>:
push   %r14
push   %rbx
push   %rax
xor    %eax,%eax
call   1060 <clscr@plt>
mov    $0xa,%edi
call   1030 <putchar@plt>
lea    0xea4(%rip),%r14
mov    %r14,%rdi
call   1050 <txt_ctrd@plt>
lea    0xea4(%rip),%rbx
mov    %rbx,%rdi
call   1050 <txt_ctrd@plt>
lea    0xea4(%rip),%rdi
call   1050 <txt_ctrd@plt>
mov    %rbx,%rdi
call   1050 <txt_ctrd@plt>
mov    %r14,%rdi
call   1050 <txt_ctrd@plt>
lea    0xe77(%rip),%rdi
add    $0x8,%rsp
pop    %rbx
pop    %r14
jmp    1040 <puts@plt>

LLVM IR (-O0):
@.str = [2 x i8] c"\0A\00"
@.str.1 = [15 x i8] c"-------------\0A\00"
@.str.2 = [15 x i8] c"| |\0A\00"
@.str.3 = [15 x i8] c"| MORPION |\0A\00"
@.str.4 = [3 x i8] c"\0A\0A\00"
define void @header() {
%1 = call i32 (...) @clscr()
%2 = call i32 @printf(i8* getelementptr inbounds ([2 x i8], [2 x i8]* @.str, i64 0, i64 0))
%3 = call i32 @txt_ctrd(i8* getelementptr inbounds ([15 x i8], [15 x i8]* @.str.1, i64 0, i64 0))
%4 = call i32 @txt_ctrd(i8* getelementptr inbounds ([15 x i8], [15 x i8]* @.str.2, i64 0, i64 0))
%5 = call i32 @txt_ctrd(i8* getelementptr inbounds ([15 x i8], [15 x i8]* @.str.3, i64 0, i64 0))
%6 = call i32 @txt_ctrd(i8* getelementptr inbounds ([15 x i8], [15 x i8]* @.str.2, i64 0, i64 0))
%7 = call i32 @txt_ctrd(i8* getelementptr inbounds ([15 x i8], [15 x i8]* @.str.1, i64 0, i64 0))
%8 = call i32 @printf(i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str.4, i64 0, i64 0))
ret void
}

LLVM IR (-O2):
@.str.1 = [15 x i8] c"-------------\0A\00"
@.str.2 = [15 x i8] c"| |\0A\00"
@.str.3 = [15 x i8] c"| MORPION |\0A\00"
@str = [2 x i8] c"\0A\00"
define void @header() {
%1 = tail call i32 (...) @clscr()
%2 = tail call i32 @putchar(i32 10)
%3 = tail call i32 @txt_ctrd(i8* getelementptr inbounds ([15 x i8], [15 x i8]* @.str.1, i64 0, i64 0))
%4 = tail call i32 @txt_ctrd(i8* getelementptr inbounds ([15 x i8], [15 x i8]* @.str.2, i64 0, i64 0))
%5 = tail call i32 @txt_ctrd(i8* getelementptr inbounds ([15 x i8], [15 x i8]* @.str.3, i64 0, i64 0))
%6 = tail call i32 @txt_ctrd(i8* getelementptr inbounds ([15 x i8], [15 x i8]* @.str.2, i64 0, i64 0))
%7 = tail call i32 @txt_ctrd(i8* getelementptr inbounds ([15 x i8], [15 x i8]* @.str.1, i64 0, i64 0))
%8 = tail call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([2 x i8], [2 x i8]* @str, i64 0, i64 0))
ret void
}