#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*/ addspace(int);
int /*<<< orphan*/ printf(char *);
void robPrintAscii(void) {
  int k = 0;
  for (k = 0; k < 3; k++) {
    addspace(k);
    printf("    i_i    \n");
    addspace(k);
    printf("   [b_b]   \n");
    addspace(k);
    printf("   [^_^]   \n");
    addspace(k);
    printf("  /|___|\\  \n");
    addspace(k);
    printf("   d   b   \n");
  }
}


x86 assembly (clang, -O0):
<robPrintAscii>:
push   %rbp
mov    %rsp,%rbp
sub    $0x10,%rsp
movl   $0x0,-0x4(%rbp)
movl   $0x0,-0x4(%rbp)
cmpl   $0x3,-0x4(%rbp)
jge    11b2 <robPrintAscii+0x92>
mov    -0x4(%rbp),%edi
call   1030 <addspace@plt>
lea    0xeb1(%rip),%rdi
call   1040 <printf@plt>
mov    -0x4(%rbp),%edi
call   1030 <addspace@plt>
lea    0xeaa(%rip),%rdi
call   1040 <printf@plt>
mov    -0x4(%rbp),%edi
call   1030 <addspace@plt>
lea    0xea3(%rip),%rdi
call   1040 <printf@plt>
mov    -0x4(%rbp),%edi
call   1030 <addspace@plt>
lea    0xe9c(%rip),%rdi
call   1040 <printf@plt>
mov    -0x4(%rbp),%edi
call   1030 <addspace@plt>
lea    0xe95(%rip),%rdi
call   1040 <printf@plt>
mov    -0x4(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0x4(%rbp)
jmp    1136 <robPrintAscii+0x16>
add    $0x10,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<robPrintAscii>:
push   %r15
push   %r14
push   %r13
push   %r12
push   %rbx
xor    %edi,%edi
call   1030 <addspace@plt>
lea    0xec9(%rip),%r14
mov    %r14,%rdi
call   1040 <puts@plt>
xor    %edi,%edi
call   1030 <addspace@plt>
lea    0xebf(%rip),%r15
mov    %r15,%rdi
call   1040 <puts@plt>
xor    %edi,%edi
call   1030 <addspace@plt>
lea    0xeb5(%rip),%r12
mov    %r12,%rdi
call   1040 <puts@plt>
xor    %edi,%edi
call   1030 <addspace@plt>
lea    0xeab(%rip),%r13
mov    %r13,%rdi
call   1040 <puts@plt>
xor    %edi,%edi
call   1030 <addspace@plt>
lea    0xea1(%rip),%rbx
mov    %rbx,%rdi
call   1040 <puts@plt>
mov    $0x1,%edi
call   1030 <addspace@plt>
mov    %r14,%rdi
call   1040 <puts@plt>
mov    $0x1,%edi
call   1030 <addspace@plt>
mov    %r15,%rdi
call   1040 <puts@plt>
mov    $0x1,%edi
call   1030 <addspace@plt>
mov    %r12,%rdi
call   1040 <puts@plt>
mov    $0x1,%edi
call   1030 <addspace@plt>
mov    %r13,%rdi
call   1040 <puts@plt>
mov    $0x1,%edi
call   1030 <addspace@plt>
mov    %rbx,%rdi
call   1040 <puts@plt>
mov    $0x2,%edi
call   1030 <addspace@plt>
mov    %r14,%rdi
call   1040 <puts@plt>
mov    $0x2,%edi
call   1030 <addspace@plt>
mov    %r15,%rdi
call   1040 <puts@plt>
mov    $0x2,%edi
call   1030 <addspace@plt>
mov    %r12,%rdi
call   1040 <puts@plt>
mov    $0x2,%edi
call   1030 <addspace@plt>
mov    %r13,%rdi
call   1040 <puts@plt>
mov    $0x2,%edi
call   1030 <addspace@plt>
mov    %rbx,%rdi
pop    %rbx
pop    %r12
pop    %r13
pop    %r14
pop    %r15
jmp    1040 <puts@plt>

LLVM IR (-O0):
@.str = [13 x i8] c" i_i \0A\00"
@.str.1 = [13 x i8] c" [b_b] \0A\00"
@.str.2 = [13 x i8] c" [^_^] \0A\00"
@.str.3 = [13 x i8] c" /|___|\\ \0A\00"
@.str.4 = [13 x i8] c" d b \0A\00"
define void @robPrintAscii() {
%1 = alloca i32
store i32 0, i32* %1
store i32 0, i32* %1
br label %2
2: ; preds = %21, %0
%3 = load i32, i32* %1
%4 = icmp slt i32 %3, 3
br i1 %4, label %5, label %24
5: ; preds = %2
%6 = load i32, i32* %1
%7 = call i32 @addspace(i32 %6)
%8 = call i32 @printf(i8* getelementptr inbounds ([13 x i8], [13 x i8]* @.str, i64 0, i64 0))
%9 = load i32, i32* %1
%10 = call i32 @addspace(i32 %9)
%11 = call i32 @printf(i8* getelementptr inbounds ([13 x i8], [13 x i8]* @.str.1, i64 0, i64 0))
%12 = load i32, i32* %1
%13 = call i32 @addspace(i32 %12)
%14 = call i32 @printf(i8* getelementptr inbounds ([13 x i8], [13 x i8]* @.str.2, i64 0, i64 0))
%15 = load i32, i32* %1
%16 = call i32 @addspace(i32 %15)
%17 = call i32 @printf(i8* getelementptr inbounds ([13 x i8], [13 x i8]* @.str.3, i64 0, i64 0))
%18 = load i32, i32* %1
%19 = call i32 @addspace(i32 %18)
%20 = call i32 @printf(i8* getelementptr inbounds ([13 x i8], [13 x i8]* @.str.4, i64 0, i64 0))
br label %21
21: ; preds = %5
%22 = load i32, i32* %1
%23 = add nsw i32 %22, 1
store i32 %23, i32* %1
br label %2
24: ; preds = %2
ret void
}

LLVM IR (-O2):
@str = [12 x i8] c" i_i \00"
@str.5 = [12 x i8] c" [b_b] \00"
@str.6 = [12 x i8] c" [^_^] \00"
@str.7 = [12 x i8] c" /|___|\\ \00"
@str.8 = [12 x i8] c" d b \00"
define void @robPrintAscii() {
%1 = tail call i32 @addspace(i32 0)
%2 = tail call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([12 x i8], [12 x i8]* @str, i64 0, i64 0))
%3 = tail call i32 @addspace(i32 0)
%4 = tail call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([12 x i8], [12 x i8]* @str.5, i64 0, i64 0))
%5 = tail call i32 @addspace(i32 0)
%6 = tail call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([12 x i8], [12 x i8]* @str.6, i64 0, i64 0))
%7 = tail call i32 @addspace(i32 0)
%8 = tail call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([12 x i8], [12 x i8]* @str.7, i64 0, i64 0))
%9 = tail call i32 @addspace(i32 0)
%10 = tail call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([12 x i8], [12 x i8]* @str.8, i64 0, i64 0))
%11 = tail call i32 @addspace(i32 1)
%12 = tail call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([12 x i8], [12 x i8]* @str, i64 0, i64 0))
%13 = tail call i32 @addspace(i32 1)
%14 = tail call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([12 x i8], [12 x i8]* @str.5, i64 0, i64 0))
%15 = tail call i32 @addspace(i32 1)
%16 = tail call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([12 x i8], [12 x i8]* @str.6, i64 0, i64 0))
%17 = tail call i32 @addspace(i32 1)
%18 = tail call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([12 x i8], [12 x i8]* @str.7, i64 0, i64 0))
%19 = tail call i32 @addspace(i32 1)
%20 = tail call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([12 x i8], [12 x i8]* @str.8, i64 0, i64 0))
%21 = tail call i32 @addspace(i32 2)
%22 = tail call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([12 x i8], [12 x i8]* @str, i64 0, i64 0))
%23 = tail call i32 @addspace(i32 2)
%24 = tail call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([12 x i8], [12 x i8]* @str.5, i64 0, i64 0))
%25 = tail call i32 @addspace(i32 2)
%26 = tail call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([12 x i8], [12 x i8]* @str.6, i64 0, i64 0))
%27 = tail call i32 @addspace(i32 2)
%28 = tail call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([12 x i8], [12 x i8]* @str.7, i64 0, i64 0))
%29 = tail call i32 @addspace(i32 2)
%30 = tail call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([12 x i8], [12 x i8]* @str.8, i64 0, i64 0))
ret void
}