#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*/ backcolor(int);
int /*<<< orphan*/ clearscreen();
int /*<<< orphan*/ position(int, int);
int /*<<< orphan*/ printf(char *);
int /*<<< orphan*/ textcolor(int);
int /*<<< orphan*/ texteffect(int);
int main(void) {
  clearscreen();
  position(5, 20);
  textcolor(1);
  backcolor(4);
  texteffect(1);
  printf(" Hello ");
  position(15, 55);
  backcolor(1);
  textcolor(7);
  texteffect(2);
  printf(" World ");
  textcolor(9);
  texteffect(0);
  printf("\n\n\n");
}


x86 assembly (clang, -O0):
<main>:
push   %rbp
mov    %rsp,%rbp
mov    $0x0,%al
call   1030 <clearscreen@plt>
mov    $0x5,%edi
mov    $0x14,%esi
call   1060 <position@plt>
mov    $0x1,%edi
call   1070 <textcolor@plt>
mov    $0x4,%edi
call   1050 <backcolor@plt>
mov    $0x1,%edi
call   1080 <texteffect@plt>
lea    0xe61(%rip),%rdi
call   1040 <printf@plt>
mov    $0xf,%edi
mov    $0x37,%esi
call   1060 <position@plt>
mov    $0x1,%edi
call   1050 <backcolor@plt>
mov    $0x7,%edi
call   1070 <textcolor@plt>
mov    $0x2,%edi
call   1080 <texteffect@plt>
lea    0xe30(%rip),%rdi
call   1040 <printf@plt>
mov    $0x9,%edi
call   1070 <textcolor@plt>
xor    %edi,%edi
call   1080 <texteffect@plt>
lea    0xe1b(%rip),%rdi
call   1040 <printf@plt>
xor    %eax,%eax
pop    %rbp
ret

x86 assembly (clang, -O2):
<main>:
push   %rax
xor    %eax,%eax
call   1040 <clearscreen@plt>
mov    $0x5,%edi
mov    $0x14,%esi
call   1070 <position@plt>
mov    $0x1,%edi
call   1080 <textcolor@plt>
mov    $0x4,%edi
call   1060 <backcolor@plt>
mov    $0x1,%edi
call   1090 <texteffect@plt>
lea    0xe54(%rip),%rdi
call   1050 <printf@plt>
mov    $0xf,%edi
mov    $0x37,%esi
call   1070 <position@plt>
mov    $0x1,%edi
call   1060 <backcolor@plt>
mov    $0x7,%edi
call   1080 <textcolor@plt>
mov    $0x2,%edi
call   1090 <texteffect@plt>
lea    0xe23(%rip),%rdi
call   1050 <printf@plt>
mov    $0x9,%edi
call   1080 <textcolor@plt>
xor    %edi,%edi
call   1090 <texteffect@plt>
lea    0xe0e(%rip),%rdi
call   1030 <puts@plt>
xor    %eax,%eax
pop    %rcx
ret

LLVM IR (-O0):
@.str = [8 x i8] c" Hello \00"
@.str.1 = [8 x i8] c" World \00"
@.str.2 = [4 x i8] c"\0A\0A\0A\00"
define i32 @main() {
%1 = call i32 (...) @clearscreen()
%2 = call i32 @position(i32 5, i32 20)
%3 = call i32 @textcolor(i32 1)
%4 = call i32 @backcolor(i32 4)
%5 = call i32 @texteffect(i32 1)
%6 = call i32 @printf(i8* getelementptr inbounds ([8 x i8], [8 x i8]* @.str, i64 0, i64 0))
%7 = call i32 @position(i32 15, i32 55)
%8 = call i32 @backcolor(i32 1)
%9 = call i32 @textcolor(i32 7)
%10 = call i32 @texteffect(i32 2)
%11 = call i32 @printf(i8* getelementptr inbounds ([8 x i8], [8 x i8]* @.str.1, i64 0, i64 0))
%12 = call i32 @textcolor(i32 9)
%13 = call i32 @texteffect(i32 0)
%14 = call i32 @printf(i8* getelementptr inbounds ([4 x i8], [4 x i8]* @.str.2, i64 0, i64 0))
ret i32 0
}

LLVM IR (-O2):
@.str = [8 x i8] c" Hello \00"
@.str.1 = [8 x i8] c" World \00"
@str = [3 x i8] c"\0A\0A\00"
define i32 @main() {
%1 = tail call i32 (...) @clearscreen()
%2 = tail call i32 @position(i32 5, i32 20)
%3 = tail call i32 @textcolor(i32 1)
%4 = tail call i32 @backcolor(i32 4)
%5 = tail call i32 @texteffect(i32 1)
%6 = tail call i32 @printf(i8* dereferenceable(1) getelementptr inbounds ([8 x i8], [8 x i8]* @.str, i64 0, i64 0))
%7 = tail call i32 @position(i32 15, i32 55)
%8 = tail call i32 @backcolor(i32 1)
%9 = tail call i32 @textcolor(i32 7)
%10 = tail call i32 @texteffect(i32 2)
%11 = tail call i32 @printf(i8* dereferenceable(1) getelementptr inbounds ([8 x i8], [8 x i8]* @.str.1, i64 0, i64 0))
%12 = tail call i32 @textcolor(i32 9)
%13 = tail call i32 @texteffect(i32 0)
%14 = tail call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([3 x i8], [3 x i8]* @str, i64 0, i64 0))
ret i32 0
}