int main(void) {
  char ord[9][10] = {"chair", "dairy",  "boss", "circus", "fly",
                     "dog",   "church", "clue", "dish"};
  int i;
  for (i = 0; i < 9; ++i) {
    flertal(ord[i]);
    printf("%s\n", ord[i]);
  }
  return 0;
}


x86 assembly (clang, -O0):
<main>:
push   %rbp
mov    %rsp,%rbp
sub    $0x70,%rsp
movl   $0x0,-0x4(%rbp)
lea    -0x60(%rbp),%rdi
lea    0xeb6(%rip),%rsi
mov    $0x5a,%edx
call   1040 <memcpy@plt>
movl   $0x0,-0x64(%rbp)
cmpl   $0x9,-0x64(%rbp)
jge    11a6 <main+0x76>
movslq -0x64(%rbp),%rax
lea    -0x60(%rbp),%rdi
imul   $0xa,%rax,%rax
add    %rax,%rdi
mov    $0x0,%al
call   1050 <flertal@plt>
movslq -0x64(%rbp),%rax
lea    -0x60(%rbp),%rsi
imul   $0xa,%rax,%rax
add    %rax,%rsi
lea    0xec9(%rip),%rdi
mov    $0x0,%al
call   1030 <printf@plt>
mov    -0x64(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0x64(%rbp)
jmp    115b <main+0x2b>
xor    %eax,%eax
add    $0x70,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<main>:
push   %rbx
sub    $0x60,%rsp
movups 0xf1e(%rip),%xmm0
movups %xmm0,0x4a(%rsp)
movaps 0xf08(%rip),%xmm0
movaps %xmm0,0x40(%rsp)
movaps 0xeec(%rip),%xmm0
movaps %xmm0,0x30(%rsp)
movaps 0xed0(%rip),%xmm0
movaps %xmm0,0x20(%rsp)
movaps 0xeb4(%rip),%xmm0
movaps %xmm0,0x10(%rsp)
movaps 0xe98(%rip),%xmm0
movaps %xmm0,(%rsp)
mov    %rsp,%rbx
mov    %rbx,%rdi
xor    %eax,%eax
call   1040 <flertal@plt>
mov    %rbx,%rdi
call   1030 <puts@plt>
lea    0xa(%rsp),%rbx
mov    %rbx,%rdi
xor    %eax,%eax
call   1040 <flertal@plt>
mov    %rbx,%rdi
call   1030 <puts@plt>
lea    0x14(%rsp),%rbx
mov    %rbx,%rdi
xor    %eax,%eax
call   1040 <flertal@plt>
mov    %rbx,%rdi
call   1030 <puts@plt>
lea    0x1e(%rsp),%rbx
mov    %rbx,%rdi
xor    %eax,%eax
call   1040 <flertal@plt>
mov    %rbx,%rdi
call   1030 <puts@plt>
lea    0x28(%rsp),%rbx
mov    %rbx,%rdi
xor    %eax,%eax
call   1040 <flertal@plt>
mov    %rbx,%rdi
call   1030 <puts@plt>
lea    0x32(%rsp),%rbx
mov    %rbx,%rdi
xor    %eax,%eax
call   1040 <flertal@plt>
mov    %rbx,%rdi
call   1030 <puts@plt>
lea    0x3c(%rsp),%rbx
mov    %rbx,%rdi
xor    %eax,%eax
call   1040 <flertal@plt>
mov    %rbx,%rdi
call   1030 <puts@plt>
lea    0x46(%rsp),%rbx
mov    %rbx,%rdi
xor    %eax,%eax
call   1040 <flertal@plt>
mov    %rbx,%rdi
call   1030 <puts@plt>
lea    0x50(%rsp),%rbx
mov    %rbx,%rdi
xor    %eax,%eax
call   1040 <flertal@plt>
mov    %rbx,%rdi
call   1030 <puts@plt>
xor    %eax,%eax
add    $0x60,%rsp
pop    %rbx
ret

LLVM IR (-O0):
@__const.main.ord = [9 x [10 x i8]] [[10 x i8] c"chair\00\00\00\00\00", [10 x i8] c"dairy\00\00\00\00\00", [10 x i8] c"boss\00\00\00\00\00\00", [10 x i8] c"circus\00\00\00\00", [10 x i8] c"fly\00\00\00\00\00\00\00", [10 x i8] c"dog\00\00\00\00\00\00\00", [10 x i8] c"church\00\00\00\00", [10 x i8] c"clue\00\00\00\00\00\00", [10 x i8] c"dish\00\00\00\00\00\00"]
@.str = [4 x i8] c"%s\0A\00"
define i32 @main() {
%1 = alloca i32
%2 = alloca [9 x [10 x i8]]
%3 = alloca i32
store i32 0, i32* %1
%4 = bitcast [9 x [10 x i8]]* %2 to i8*
store i32 0, i32* %3
br label %5
5: ; preds = %19, %0
%6 = load i32, i32* %3
%7 = icmp slt i32 %6, 9
br i1 %7, label %8, label %22
8: ; preds = %5
%9 = load i32, i32* %3
%10 = sext i32 %9 to i64
%11 = getelementptr inbounds [9 x [10 x i8]], [9 x [10 x i8]]* %2, i64 0, i64 %10
%12 = getelementptr inbounds [10 x i8], [10 x i8]* %11, i64 0, i64 0
%13 = call i32 (i8*, ...) bitcast (i32 (...)* @flertal to i32 (i8*, ...)*)(i8* %12)
%14 = load i32, i32* %3
%15 = sext i32 %14 to i64
%16 = getelementptr inbounds [9 x [10 x i8]], [9 x [10 x i8]]* %2, i64 0, i64 %15
%17 = getelementptr inbounds [10 x i8], [10 x i8]* %16, i64 0, i64 0
%18 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([4 x i8], [4 x i8]* @.str, i64 0, i64 0), i8* %17)
br label %19
19: ; preds = %8
%20 = load i32, i32* %3
%21 = add nsw i32 %20, 1
store i32 %21, i32* %3
br label %5
22: ; preds = %5
ret i32 0
}

LLVM IR (-O2):
@__const.main.ord = [9 x [10 x i8]] [[10 x i8] c"chair\00\00\00\00\00", [10 x i8] c"dairy\00\00\00\00\00", [10 x i8] c"boss\00\00\00\00\00\00", [10 x i8] c"circus\00\00\00\00", [10 x i8] c"fly\00\00\00\00\00\00\00", [10 x i8] c"dog\00\00\00\00\00\00\00", [10 x i8] c"church\00\00\00\00", [10 x i8] c"clue\00\00\00\00\00\00", [10 x i8] c"dish\00\00\00\00\00\00"]
define i32 @main() {
%1 = alloca [9 x [10 x i8]]
%2 = getelementptr inbounds [9 x [10 x i8]], [9 x [10 x i8]]* %1, i64 0, i64 0, i64 0
%3 = call i32 (i8*, ...) bitcast (i32 (...)* @flertal to i32 (i8*, ...)*)(i8* %2)
%4 = call i32 @puts(i8* %2)
%5 = getelementptr inbounds [9 x [10 x i8]], [9 x [10 x i8]]* %1, i64 0, i64 1, i64 0
%6 = call i32 (i8*, ...) bitcast (i32 (...)* @flertal to i32 (i8*, ...)*)(i8* %5)
%7 = call i32 @puts(i8* %5)
%8 = getelementptr inbounds [9 x [10 x i8]], [9 x [10 x i8]]* %1, i64 0, i64 2, i64 0
%9 = call i32 (i8*, ...) bitcast (i32 (...)* @flertal to i32 (i8*, ...)*)(i8* %8)
%10 = call i32 @puts(i8* %8)
%11 = getelementptr inbounds [9 x [10 x i8]], [9 x [10 x i8]]* %1, i64 0, i64 3, i64 0
%12 = call i32 (i8*, ...) bitcast (i32 (...)* @flertal to i32 (i8*, ...)*)(i8* %11)
%13 = call i32 @puts(i8* %11)
%14 = getelementptr inbounds [9 x [10 x i8]], [9 x [10 x i8]]* %1, i64 0, i64 4, i64 0
%15 = call i32 (i8*, ...) bitcast (i32 (...)* @flertal to i32 (i8*, ...)*)(i8* %14)
%16 = call i32 @puts(i8* %14)
%17 = getelementptr inbounds [9 x [10 x i8]], [9 x [10 x i8]]* %1, i64 0, i64 5, i64 0
%18 = call i32 (i8*, ...) bitcast (i32 (...)* @flertal to i32 (i8*, ...)*)(i8* %17)
%19 = call i32 @puts(i8* %17)
%20 = getelementptr inbounds [9 x [10 x i8]], [9 x [10 x i8]]* %1, i64 0, i64 6, i64 0
%21 = call i32 (i8*, ...) bitcast (i32 (...)* @flertal to i32 (i8*, ...)*)(i8* %20)
%22 = call i32 @puts(i8* %20)
%23 = getelementptr inbounds [9 x [10 x i8]], [9 x [10 x i8]]* %1, i64 0, i64 7, i64 0
%24 = call i32 (i8*, ...) bitcast (i32 (...)* @flertal to i32 (i8*, ...)*)(i8* %23)
%25 = call i32 @puts(i8* %23)
%26 = getelementptr inbounds [9 x [10 x i8]], [9 x [10 x i8]]* %1, i64 0, i64 8, i64 0
%27 = call i32 (i8*, ...) bitcast (i32 (...)* @flertal to i32 (i8*, ...)*)(i8* %26)
%28 = call i32 @puts(i8* %26)
ret i32 0
}