#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*/ printf(char *);
int /*<<< orphan*/ space(int);
void robPrintAscii(void) {
  int i = 1;
  for (i; i < 4; i++) {
    space(i);
    printf("    -_-    \n");
    space(i);
    printf("   [@_@]   \n");
    space(i);
    printf("  /|   |\\   \n");
    space(i);
    printf("   d   b   \n");
  }
}


x86 assembly (clang, -O0):
<robPrintAscii>:
push   %rbp
mov    %rsp,%rbp
sub    $0x10,%rsp
movl   $0x1,-0x4(%rbp)
cmpl   $0x4,-0x4(%rbp)
jge    1197 <robPrintAscii+0x77>
mov    -0x4(%rbp),%edi
call   1030 <space@plt>
lea    0xeb8(%rip),%rdi
call   1040 <printf@plt>
mov    -0x4(%rbp),%edi
call   1030 <space@plt>
lea    0xeb1(%rip),%rdi
call   1040 <printf@plt>
mov    -0x4(%rbp),%edi
call   1030 <space@plt>
lea    0xeaa(%rip),%rdi
call   1040 <printf@plt>
mov    -0x4(%rbp),%edi
call   1030 <space@plt>
lea    0xea4(%rip),%rdi
call   1040 <printf@plt>
mov    -0x4(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0x4(%rbp)
jmp    112f <robPrintAscii+0xf>
add    $0x10,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<robPrintAscii>:
push   %r15
push   %r14
push   %r12
push   %rbx
push   %rax
mov    $0x1,%edi
call   1030 <space@plt>
lea    0xec7(%rip),%r14
mov    %r14,%rdi
call   1040 <puts@plt>
mov    $0x1,%edi
call   1030 <space@plt>
lea    0xeba(%rip),%r15
mov    %r15,%rdi
call   1040 <puts@plt>
mov    $0x1,%edi
call   1030 <space@plt>
lea    0xead(%rip),%r12
mov    %r12,%rdi
call   1040 <puts@plt>
mov    $0x1,%edi
call   1030 <space@plt>
lea    0xea1(%rip),%rbx
mov    %rbx,%rdi
call   1040 <puts@plt>
mov    $0x2,%edi
call   1030 <space@plt>
mov    %r14,%rdi
call   1040 <puts@plt>
mov    $0x2,%edi
call   1030 <space@plt>
mov    %r15,%rdi
call   1040 <puts@plt>
mov    $0x2,%edi
call   1030 <space@plt>
mov    %r12,%rdi
call   1040 <puts@plt>
mov    $0x2,%edi
call   1030 <space@plt>
mov    %rbx,%rdi
call   1040 <puts@plt>
mov    $0x3,%edi
call   1030 <space@plt>
mov    %r14,%rdi
call   1040 <puts@plt>
mov    $0x3,%edi
call   1030 <space@plt>
mov    %r15,%rdi
call   1040 <puts@plt>
mov    $0x3,%edi
call   1030 <space@plt>
mov    %r12,%rdi
call   1040 <puts@plt>
mov    $0x3,%edi
call   1030 <space@plt>
mov    %rbx,%rdi
add    $0x8,%rsp
pop    %rbx
pop    %r12
pop    %r14
pop    %r15
jmp    1040 <puts@plt>

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

LLVM IR (-O2):
@str = [12 x i8] c" -_- \00"
@str.4 = [12 x i8] c" [@_@] \00"
@str.5 = [13 x i8] c" /| |\\ \00"
@str.6 = [12 x i8] c" d b \00"
define void @robPrintAscii() {
%1 = tail call i32 @space(i32 1)
%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 @space(i32 1)
%4 = tail call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([12 x i8], [12 x i8]* @str.4, i64 0, i64 0))
%5 = tail call i32 @space(i32 1)
%6 = tail call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([13 x i8], [13 x i8]* @str.5, i64 0, i64 0))
%7 = tail call i32 @space(i32 1)
%8 = tail call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([12 x i8], [12 x i8]* @str.6, i64 0, i64 0))
%9 = tail call i32 @space(i32 2)
%10 = tail call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([12 x i8], [12 x i8]* @str, i64 0, i64 0))
%11 = tail call i32 @space(i32 2)
%12 = tail call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([12 x i8], [12 x i8]* @str.4, i64 0, i64 0))
%13 = tail call i32 @space(i32 2)
%14 = tail call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([13 x i8], [13 x i8]* @str.5, i64 0, i64 0))
%15 = tail call i32 @space(i32 2)
%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 @space(i32 3)
%18 = tail call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([12 x i8], [12 x i8]* @str, i64 0, i64 0))
%19 = tail call i32 @space(i32 3)
%20 = tail call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([12 x i8], [12 x i8]* @str.4, i64 0, i64 0))
%21 = tail call i32 @space(i32 3)
%22 = tail call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([13 x i8], [13 x i8]* @str.5, i64 0, i64 0))
%23 = tail call i32 @space(i32 3)
%24 = tail call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([12 x i8], [12 x i8]* @str.6, i64 0, i64 0))
ret void
}