#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*/ bootinfo();
int /*<<< orphan*/ cls();
int /*<<< orphan*/ puts(char *);
int /*<<< orphan*/ setAttr(int);
void hello() {
  int i;
  cls();
  setAttr((10 & 7) << 4);
  bootinfo();
  for (i = 0; i < 1; i++) {
    puts("hhhh   hhhh\n");
    puts(" hh    hhh        lll lll\n");
    puts(" hh    hh   eeee  ll  ll   oooo\n");
    puts(" hhhhhhhh  ee  ee ll  ll  oo  oo\n");
    puts(" hh    hh eeeeeee ll  ll oo   oo\n");
    puts(" hh    hh  ee     ll  ll oo  oo\n");
    puts("hhh   hhhh  eeee  ll  ll  oooo\n");
    puts("\n");
    puts("    K e r n e l   W o r l d\n");
  }
}


x86 assembly (clang, -O0):
<hello>:
push   %rbp
mov    %rsp,%rbp
sub    $0x10,%rsp
mov    $0x0,%al
call   1050 <cls@plt>
mov    $0x20,%edi
call   1040 <setAttr@plt>
mov    $0x0,%al
call   1060 <bootinfo@plt>
movl   $0x0,-0x4(%rbp)
cmpl   $0x1,-0x4(%rbp)
jge    11eb <hello+0xab>
lea    0xe88(%rip),%rdi
call   1030 <puts@plt>
lea    0xe89(%rip),%rdi
call   1030 <puts@plt>
lea    0xe98(%rip),%rdi
call   1030 <puts@plt>
lea    0xead(%rip),%rdi
call   1030 <puts@plt>
lea    0xec3(%rip),%rdi
call   1030 <puts@plt>
lea    0xed9(%rip),%rdi
call   1030 <puts@plt>
lea    0xeee(%rip),%rdi
call   1030 <puts@plt>
lea    0xf1d(%rip),%rdi
call   1030 <puts@plt>
lea    0xef6(%rip),%rdi
call   1030 <puts@plt>
mov    -0x4(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0x4(%rbp)
jmp    1167 <hello+0x27>
add    $0x10,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<hello>:
push   %rax
xor    %eax,%eax
call   1050 <cls@plt>
mov    $0x20,%edi
call   1040 <setAttr@plt>
xor    %eax,%eax
call   1060 <bootinfo@plt>
lea    0xea0(%rip),%rdi
call   1030 <puts@plt>
lea    0xea1(%rip),%rdi
call   1030 <puts@plt>
lea    0xeb0(%rip),%rdi
call   1030 <puts@plt>
lea    0xec5(%rip),%rdi
call   1030 <puts@plt>
lea    0xedb(%rip),%rdi
call   1030 <puts@plt>
lea    0xef1(%rip),%rdi
call   1030 <puts@plt>
lea    0xf06(%rip),%rdi
call   1030 <puts@plt>
lea    0xf35(%rip),%rdi
call   1030 <puts@plt>
lea    0xf0e(%rip),%rdi
pop    %rax
jmp    1030 <puts@plt>

LLVM IR (-O0):
@.str = [13 x i8] c"hhhh hhhh\0A\00"
@.str.1 = [27 x i8] c" hh hhh lll lll\0A\00"
@.str.2 = [33 x i8] c" hh hh eeee ll ll oooo\0A\00"
@.str.3 = [34 x i8] c" hhhhhhhh ee ee ll ll oo oo\0A\00"
@.str.4 = [34 x i8] c" hh hh eeeeeee ll ll oo oo\0A\00"
@.str.5 = [33 x i8] c" hh hh ee ll ll oo oo\0A\00"
@.str.6 = [32 x i8] c"hhh hhhh eeee ll ll oooo\0A\00"
@.str.7 = [2 x i8] c"\0A\00"
@.str.8 = [29 x i8] c" K e r n e l W o r l d\0A\00"
define void @hello() {
%1 = alloca i32
%2 = call i32 (...) @cls()
%3 = call i32 @setAttr(i32 32)
%4 = call i32 (...) @bootinfo()
store i32 0, i32* %1
br label %5
5: ; preds = %18, %0
%6 = load i32, i32* %1
%7 = icmp slt i32 %6, 1
br i1 %7, label %8, label %21
8: ; preds = %5
%9 = call i32 @puts(i8* getelementptr inbounds ([13 x i8], [13 x i8]* @.str, i64 0, i64 0))
%10 = call i32 @puts(i8* getelementptr inbounds ([27 x i8], [27 x i8]* @.str.1, i64 0, i64 0))
%11 = call i32 @puts(i8* getelementptr inbounds ([33 x i8], [33 x i8]* @.str.2, i64 0, i64 0))
%12 = call i32 @puts(i8* getelementptr inbounds ([34 x i8], [34 x i8]* @.str.3, i64 0, i64 0))
%13 = call i32 @puts(i8* getelementptr inbounds ([34 x i8], [34 x i8]* @.str.4, i64 0, i64 0))
%14 = call i32 @puts(i8* getelementptr inbounds ([33 x i8], [33 x i8]* @.str.5, i64 0, i64 0))
%15 = call i32 @puts(i8* getelementptr inbounds ([32 x i8], [32 x i8]* @.str.6, i64 0, i64 0))
%16 = call i32 @puts(i8* getelementptr inbounds ([2 x i8], [2 x i8]* @.str.7, i64 0, i64 0))
%17 = call i32 @puts(i8* getelementptr inbounds ([29 x i8], [29 x i8]* @.str.8, i64 0, i64 0))
br label %18
18: ; preds = %8
%19 = load i32, i32* %1
%20 = add nsw i32 %19, 1
store i32 %20, i32* %1
br label %5
21: ; preds = %5
ret void
}

LLVM IR (-O2):
@.str = [13 x i8] c"hhhh hhhh\0A\00"
@.str.1 = [27 x i8] c" hh hhh lll lll\0A\00"
@.str.2 = [33 x i8] c" hh hh eeee ll ll oooo\0A\00"
@.str.3 = [34 x i8] c" hhhhhhhh ee ee ll ll oo oo\0A\00"
@.str.4 = [34 x i8] c" hh hh eeeeeee ll ll oo oo\0A\00"
@.str.5 = [33 x i8] c" hh hh ee ll ll oo oo\0A\00"
@.str.6 = [32 x i8] c"hhh hhhh eeee ll ll oooo\0A\00"
@.str.7 = [2 x i8] c"\0A\00"
@.str.8 = [29 x i8] c" K e r n e l W o r l d\0A\00"
define void @hello() {
%1 = tail call i32 (...) @cls()
%2 = tail call i32 @setAttr(i32 32)
%3 = tail call i32 (...) @bootinfo()
%4 = tail call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([13 x i8], [13 x i8]* @.str, i64 0, i64 0))
%5 = tail call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([27 x i8], [27 x i8]* @.str.1, i64 0, i64 0))
%6 = tail call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([33 x i8], [33 x i8]* @.str.2, i64 0, i64 0))
%7 = tail call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([34 x i8], [34 x i8]* @.str.3, i64 0, i64 0))
%8 = tail call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([34 x i8], [34 x i8]* @.str.4, i64 0, i64 0))
%9 = tail call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([33 x i8], [33 x i8]* @.str.5, i64 0, i64 0))
%10 = tail call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([32 x i8], [32 x i8]* @.str.6, i64 0, i64 0))
%11 = tail call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([2 x i8], [2 x i8]* @.str.7, i64 0, i64 0))
%12 = tail call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([29 x i8], [29 x i8]* @.str.8, i64 0, i64 0))
ret void
}