#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*/ clear_screen();
int /*<<< orphan*/ drawArrayofBoxes(int, int, int, int);
int /*<<< orphan*/ draw_linehorz(int, int, int, int);
int /*<<< orphan*/ draw_linevert(int, int, int, int);
int /*<<< orphan*/ drawfilledBox(int /*<<< orphan*/, int /*<<< orphan*/, int,
                                 int, int);
void initialization() {
  int horizontal_offset = 0;
  int vert_offset = 130;
  clear_screen();
  draw_linehorz(horizontal_offset, 16 + vert_offset, 300, 0xf800);
  draw_linehorz(horizontal_offset, 32 + vert_offset, 300, 0xf800);
  int i;
  for (i = 0; i <= 300; i = i + 30) {
    draw_linevert(i + horizontal_offset, 16 + vert_offset, 35, 0xf800);
  }
  drawArrayofBoxes((320 - 20) / 2, 40, 16, 0xf800);
  drawfilledBox(0, 0, 50, 10, 0xf800);
}


x86 assembly (clang, -O0):
<initialization>:
push   %rbp
mov    %rsp,%rbp
sub    $0x10,%rsp
movl   $0x0,-0x4(%rbp)
movl   $0x82,-0x8(%rbp)
mov    $0x0,%al
call   1060 <clear_screen@plt>
mov    -0x4(%rbp),%edi
mov    -0x8(%rbp),%esi
add    $0x10,%esi
mov    $0x12c,%edx
mov    $0xf800,%ecx
call   1040 <draw_linehorz@plt>
mov    -0x4(%rbp),%edi
mov    -0x8(%rbp),%esi
add    $0x20,%esi
mov    $0x12c,%edx
mov    $0xf800,%ecx
call   1040 <draw_linehorz@plt>
movl   $0x0,-0xc(%rbp)
cmpl   $0x12c,-0xc(%rbp)
jg     11da <initialization+0x8a>
mov    -0xc(%rbp),%edi
add    -0x4(%rbp),%edi
mov    -0x8(%rbp),%esi
add    $0x10,%esi
mov    $0x23,%edx
mov    $0xf800,%ecx
call   1070 <draw_linevert@plt>
mov    -0xc(%rbp),%eax
add    $0x1e,%eax
mov    %eax,-0xc(%rbp)
jmp    11a4 <initialization+0x54>
mov    $0x96,%edi
mov    $0x28,%esi
mov    $0x10,%edx
mov    $0xf800,%ecx
call   1050 <drawArrayofBoxes@plt>
xor    %esi,%esi
mov    $0x32,%edx
mov    $0xa,%ecx
mov    $0xf800,%r8d
mov    %esi,%edi
call   1030 <drawfilledBox@plt>
add    $0x10,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<initialization>:
push   %rax
xor    %eax,%eax
call   1060 <clear_screen@plt>
xor    %edi,%edi
mov    $0x92,%esi
mov    $0x12c,%edx
mov    $0xf800,%ecx
call   1040 <draw_linehorz@plt>
xor    %edi,%edi
mov    $0xa2,%esi
mov    $0x12c,%edx
mov    $0xf800,%ecx
call   1040 <draw_linehorz@plt>
xor    %edi,%edi
mov    $0x92,%esi
mov    $0x23,%edx
mov    $0xf800,%ecx
call   1070 <draw_linevert@plt>
mov    $0x1e,%edi
mov    $0x92,%esi
mov    $0x23,%edx
mov    $0xf800,%ecx
call   1070 <draw_linevert@plt>
mov    $0x3c,%edi
mov    $0x92,%esi
mov    $0x23,%edx
mov    $0xf800,%ecx
call   1070 <draw_linevert@plt>
mov    $0x5a,%edi
mov    $0x92,%esi
mov    $0x23,%edx
mov    $0xf800,%ecx
call   1070 <draw_linevert@plt>
mov    $0x78,%edi
mov    $0x92,%esi
mov    $0x23,%edx
mov    $0xf800,%ecx
call   1070 <draw_linevert@plt>
mov    $0x96,%edi
mov    $0x92,%esi
mov    $0x23,%edx
mov    $0xf800,%ecx
call   1070 <draw_linevert@plt>
mov    $0xb4,%edi
mov    $0x92,%esi
mov    $0x23,%edx
mov    $0xf800,%ecx
call   1070 <draw_linevert@plt>
mov    $0xd2,%edi
mov    $0x92,%esi
mov    $0x23,%edx
mov    $0xf800,%ecx
call   1070 <draw_linevert@plt>
mov    $0xf0,%edi
mov    $0x92,%esi
mov    $0x23,%edx
mov    $0xf800,%ecx
call   1070 <draw_linevert@plt>
mov    $0x10e,%edi
mov    $0x92,%esi
mov    $0x23,%edx
mov    $0xf800,%ecx
call   1070 <draw_linevert@plt>
mov    $0x12c,%edi
mov    $0x92,%esi
mov    $0x23,%edx
mov    $0xf800,%ecx
call   1070 <draw_linevert@plt>
mov    $0x96,%edi
mov    $0x28,%esi
mov    $0x10,%edx
mov    $0xf800,%ecx
call   1050 <drawArrayofBoxes@plt>
xor    %edi,%edi
xor    %esi,%esi
mov    $0x32,%edx
mov    $0xa,%ecx
mov    $0xf800,%r8d
pop    %rax
jmp    1030 <drawfilledBox@plt>

LLVM IR (-O0):
define void @initialization() {
%1 = alloca i32
%2 = alloca i32
%3 = alloca i32
store i32 0, i32* %1
store i32 130, i32* %2
%4 = call i32 (...) @clear_screen()
%5 = load i32, i32* %1
%6 = load i32, i32* %2
%7 = add nsw i32 16, %6
%8 = call i32 @draw_linehorz(i32 %5, i32 %7, i32 300, i32 63488)
%9 = load i32, i32* %1
%10 = load i32, i32* %2
%11 = add nsw i32 32, %10
%12 = call i32 @draw_linehorz(i32 %9, i32 %11, i32 300, i32 63488)
store i32 0, i32* %3
br label %13
13: ; preds = %23, %0
%14 = load i32, i32* %3
%15 = icmp sle i32 %14, 300
br i1 %15, label %16, label %26
16: ; preds = %13
%17 = load i32, i32* %3
%18 = load i32, i32* %1
%19 = add nsw i32 %17, %18
%20 = load i32, i32* %2
%21 = add nsw i32 16, %20
%22 = call i32 @draw_linevert(i32 %19, i32 %21, i32 35, i32 63488)
br label %23
23: ; preds = %16
%24 = load i32, i32* %3
%25 = add nsw i32 %24, 30
store i32 %25, i32* %3
br label %13
26: ; preds = %13
%27 = call i32 @drawArrayofBoxes(i32 150, i32 40, i32 16, i32 63488)
%28 = call i32 @drawfilledBox(i32 0, i32 0, i32 50, i32 10, i32 63488)
ret void
}

LLVM IR (-O2):
define void @initialization() {
%1 = tail call i32 (...) @clear_screen()
%2 = tail call i32 @draw_linehorz(i32 0, i32 146, i32 300, i32 63488)
%3 = tail call i32 @draw_linehorz(i32 0, i32 162, i32 300, i32 63488)
%4 = tail call i32 @draw_linevert(i32 0, i32 146, i32 35, i32 63488)
%5 = tail call i32 @draw_linevert(i32 30, i32 146, i32 35, i32 63488)
%6 = tail call i32 @draw_linevert(i32 60, i32 146, i32 35, i32 63488)
%7 = tail call i32 @draw_linevert(i32 90, i32 146, i32 35, i32 63488)
%8 = tail call i32 @draw_linevert(i32 120, i32 146, i32 35, i32 63488)
%9 = tail call i32 @draw_linevert(i32 150, i32 146, i32 35, i32 63488)
%10 = tail call i32 @draw_linevert(i32 180, i32 146, i32 35, i32 63488)
%11 = tail call i32 @draw_linevert(i32 210, i32 146, i32 35, i32 63488)
%12 = tail call i32 @draw_linevert(i32 240, i32 146, i32 35, i32 63488)
%13 = tail call i32 @draw_linevert(i32 270, i32 146, i32 35, i32 63488)
%14 = tail call i32 @draw_linevert(i32 300, i32 146, i32 35, i32 63488)
%15 = tail call i32 @drawArrayofBoxes(i32 150, i32 40, i32 16, i32 63488)
%16 = tail call i32 @drawfilledBox(i32 0, i32 0, i32 50, i32 10, i32 63488)
ret void
}