int main() {
  char buffer[80];
  char **positions;
  char **names;
  int crew_size = 1;
  printf("You've been promoted to Captain and get to pick your own crew to "
         "take on your adventures!\n");
  printf("How big is your crew?\n> ");
  scanf("%d", &crew_size);
  crew_size = crew_size + 1;
  positions = malloc(sizeof(char *) * crew_size);
  names = malloc(sizeof(char *) * crew_size);
  positions[0] = malloc(strlen("Captain") + 1);
  strcpy(positions[0], "Captain");
  printf("\nWhat is your name, Captain?\n> ");
  scanf("%80s", buffer);
  names[0] = malloc(strlen(buffer) + 1);
  strcpy(names[0], buffer);
  printf("And what are the positions and names of your crew? (Enter "
         "'<position> <name>')\n> ");
  int i;
  for (i = 1; i < crew_size; i++) {
    scanf(" %80s", buffer);
    positions[i] = malloc(strlen(buffer) + 1);
    strcpy(positions[i], buffer);
    scanf("%80s", buffer);
    names[i] = malloc(strlen(buffer) + 1);
    strcpy(names[i], buffer);
    printf("\n> ");
  }
  printf("So the crew of your ship is:\n\n");
  for (i = 0; i < crew_size; i++) {
    printf("%s %s\n", positions[i], names[i]);
    free(positions[i]);
    free(names[i]);
  }
  free(positions);
  free(names);
  printf("Aim for the stars, new Captain!\n");
}


x86 assembly (clang, -O0):
<main>:
push   %rbp
mov    %rsp,%rbp
sub    $0x80,%rsp
movl   $0x0,-0x4(%rbp)
movl   $0x1,-0x74(%rbp)
lea    0xe80(%rip),%rdi
mov    $0x0,%al
call   1060 <printf@plt>
lea    0xecd(%rip),%rdi
mov    $0x0,%al
call   1060 <printf@plt>
lea    0xed8(%rip),%rdi
lea    -0x74(%rbp),%rsi
mov    $0x0,%al
call   1080 <scanf@plt>
mov    -0x74(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0x74(%rbp)
movslq -0x74(%rbp),%rdi
shl    $0x3,%rdi
call   1070 <malloc@plt>
mov    %rax,-0x68(%rbp)
movslq -0x74(%rbp),%rdi
shl    $0x3,%rdi
call   1070 <malloc@plt>
mov    %rax,-0x70(%rbp)
mov    $0x8,%edi
call   1070 <malloc@plt>
mov    %rax,%rcx
mov    -0x68(%rbp),%rax
mov    %rcx,(%rax)
mov    -0x68(%rbp),%rax
mov    (%rax),%rdi
lea    0xe83(%rip),%rsi
call   1040 <strcpy@plt>
lea    0xe7f(%rip),%rdi
mov    $0x0,%al
call   1060 <printf@plt>
lea    -0x60(%rbp),%rsi
lea    0xee0(%rip),%rdi
mov    $0x0,%al
call   1080 <scanf@plt>
lea    -0x60(%rbp),%rdi
call   1050 <strlen@plt>
mov    %rax,%rdi
add    $0x1,%rdi
call   1070 <malloc@plt>
mov    %rax,%rcx
mov    -0x70(%rbp),%rax
mov    %rcx,(%rax)
mov    -0x70(%rbp),%rax
mov    (%rax),%rdi
lea    -0x60(%rbp),%rsi
call   1040 <strcpy@plt>
lea    0xe50(%rip),%rdi
mov    $0x0,%al
call   1060 <printf@plt>
movl   $0x1,-0x78(%rbp)
mov    -0x78(%rbp),%eax
cmp    -0x74(%rbp),%eax
jge    131b <main+0x1bb>
lea    -0x60(%rbp),%rsi
lea    0xe7d(%rip),%rdi
mov    $0x0,%al
call   1080 <scanf@plt>
lea    -0x60(%rbp),%rdi
call   1050 <strlen@plt>
mov    %rax,%rdi
add    $0x1,%rdi
call   1070 <malloc@plt>
mov    %rax,%rdx
mov    -0x68(%rbp),%rax
movslq -0x78(%rbp),%rcx
mov    %rdx,(%rax,%rcx,8)
mov    -0x68(%rbp),%rax
movslq -0x78(%rbp),%rcx
mov    (%rax,%rcx,8),%rdi
lea    -0x60(%rbp),%rsi
call   1040 <strcpy@plt>
lea    -0x60(%rbp),%rsi
lea    0xe33(%rip),%rdi
mov    $0x0,%al
call   1080 <scanf@plt>
lea    -0x60(%rbp),%rdi
call   1050 <strlen@plt>
mov    %rax,%rdi
add    $0x1,%rdi
call   1070 <malloc@plt>
mov    %rax,%rdx
mov    -0x70(%rbp),%rax
movslq -0x78(%rbp),%rcx
mov    %rdx,(%rax,%rcx,8)
mov    -0x70(%rbp),%rax
movslq -0x78(%rbp),%rcx
mov    (%rax,%rcx,8),%rdi
lea    -0x60(%rbp),%rsi
call   1040 <strcpy@plt>
lea    0xde7(%rip),%rdi
mov    $0x0,%al
call   1060 <printf@plt>
mov    -0x78(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0x78(%rbp)
jmp    125d <main+0xfd>
lea    0xdd5(%rip),%rdi
mov    $0x0,%al
call   1060 <printf@plt>
movl   $0x0,-0x78(%rbp)
mov    -0x78(%rbp),%eax
cmp    -0x74(%rbp),%eax
jge    1392 <main+0x232>
mov    -0x68(%rbp),%rax
movslq -0x78(%rbp),%rcx
mov    (%rax,%rcx,8),%rsi
mov    -0x70(%rbp),%rax
movslq -0x78(%rbp),%rcx
mov    (%rax,%rcx,8),%rdx
lea    0xdbb(%rip),%rdi
mov    $0x0,%al
call   1060 <printf@plt>
mov    -0x68(%rbp),%rax
movslq -0x78(%rbp),%rcx
mov    (%rax,%rcx,8),%rdi
call   1030 <free@plt>
mov    -0x70(%rbp),%rax
movslq -0x78(%rbp),%rcx
mov    (%rax,%rcx,8),%rdi
call   1030 <free@plt>
mov    -0x78(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0x78(%rbp)
jmp    1330 <main+0x1d0>
mov    -0x68(%rbp),%rdi
call   1030 <free@plt>
mov    -0x70(%rbp),%rdi
call   1030 <free@plt>
lea    0xd72(%rip),%rdi
mov    $0x0,%al
call   1060 <printf@plt>
mov    -0x4(%rbp),%eax
add    $0x80,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<main>:
push   %rbp
push   %r15
push   %r14
push   %r13
push   %r12
push   %rbx
sub    $0x78,%rsp
movl   $0x1,0xc(%rsp)
lea    0xf0e(%rip),%rdi
call   1050 <puts@plt>
lea    0xe67(%rip),%rdi
xor    %eax,%eax
call   1070 <printf@plt>
lea    0xe72(%rip),%rdi
lea    0xc(%rsp),%rsi
xor    %eax,%eax
call   1090 <scanf@plt>
movslq 0xc(%rsp),%rax
lea    0x1(%rax),%rcx
mov    %ecx,0xc(%rsp)
lea    0x8(,%rax,8),%rbx
mov    %rbx,%rdi
call   1080 <malloc@plt>
mov    %rax,%r14
mov    %rbx,%rdi
call   1080 <malloc@plt>
mov    %rax,%r13
mov    $0x8,%edi
call   1080 <malloc@plt>
mov    %rax,(%r14)
movabs $0x6e696174706143,%rcx
mov    %rax,0x18(%rsp)
mov    %rcx,(%rax)
lea    0xe18(%rip),%rdi
xor    %eax,%eax
call   1070 <printf@plt>
lea    0xe7d(%rip),%rdi
lea    0x20(%rsp),%rbp
mov    %rbp,%rsi
xor    %eax,%eax
call   1090 <scanf@plt>
mov    %rbp,%rdi
call   1060 <strlen@plt>
lea    0x1(%rax),%rdi
call   1080 <malloc@plt>
mov    %rax,0x0(%r13)
mov    %rax,0x10(%rsp)
mov    %rax,%rdi
mov    %rbp,%rsi
call   1040 <strcpy@plt>
lea    0xdef(%rip),%rdi
xor    %eax,%eax
call   1070 <printf@plt>
cmpl   $0x2,0xc(%rsp)
jl     12f7 <main+0x187>
mov    $0x1,%ebx
lea    0x20(%rsp),%rbp
lea    0xe1f(%rip),%r15
lea    0xe13(%rip),%r12
nopw   0x0(%rax,%rax,1)
lea    0xe07(%rip),%rdi
mov    %rbp,%rsi
xor    %eax,%eax
call   1090 <scanf@plt>
mov    %rbp,%rdi
call   1060 <strlen@plt>
lea    0x1(%rax),%rdi
call   1080 <malloc@plt>
mov    %rax,(%r14,%rbx,8)
mov    %rax,%rdi
mov    %rbp,%rsi
call   1040 <strcpy@plt>
mov    %r15,%rdi
mov    %rbp,%rsi
xor    %eax,%eax
call   1090 <scanf@plt>
mov    %rbp,%rdi
call   1060 <strlen@plt>
lea    0x1(%rax),%rdi
call   1080 <malloc@plt>
mov    %rax,0x0(%r13,%rbx,8)
mov    %rax,%rdi
mov    %rbp,%rsi
call   1040 <strcpy@plt>
mov    %r12,%rdi
xor    %eax,%eax
call   1070 <printf@plt>
add    $0x1,%rbx
movslq 0xc(%rsp),%rax
cmp    %rax,%rbx
jl     1280 <main+0x110>
lea    0xdf7(%rip),%rdi
call   1050 <puts@plt>
cmpl   $0x0,0xc(%rsp)
jle    1387 <main+0x217>
lea    0xd83(%rip),%rdi
mov    0x18(%rsp),%rbx
mov    %rbx,%rsi
mov    0x10(%rsp),%rbp
mov    %rbp,%rdx
xor    %eax,%eax
call   1070 <printf@plt>
mov    %rbx,%rdi
call   1030 <free@plt>
mov    %rbp,%rdi
call   1030 <free@plt>
cmpl   $0x2,0xc(%rsp)
jl     1387 <main+0x217>
mov    $0x1,%ebx
lea    0xd49(%rip),%r15
nopl   0x0(%rax,%rax,1)
mov    (%r14,%rbx,8),%rbp
mov    0x0(%r13,%rbx,8),%r12
mov    %r15,%rdi
mov    %rbp,%rsi
mov    %r12,%rdx
xor    %eax,%eax
call   1070 <printf@plt>
mov    %rbp,%rdi
call   1030 <free@plt>
mov    %r12,%rdi
call   1030 <free@plt>
add    $0x1,%rbx
movslq 0xc(%rsp),%rax
cmp    %rax,%rbx
jl     1350 <main+0x1e0>
mov    %r14,%rdi
call   1030 <free@plt>
mov    %r13,%rdi
call   1030 <free@plt>
lea    0xd75(%rip),%rdi
call   1050 <puts@plt>
xor    %eax,%eax
add    $0x78,%rsp
pop    %rbx
pop    %r12
pop    %r13
pop    %r14
pop    %r15
pop    %rbp
ret

LLVM IR (-O0):
@.str = [91 x i8] c"You've been promoted to Captain and get to pick your own crew to take on your adventures!\0A\00"
@.str.1 = [25 x i8] c"How big is your crew?\0A> \00"
@.str.2 = [3 x i8] c"%d\00"
@.str.3 = [8 x i8] c"Captain\00"
@.str.4 = [32 x i8] c"\0AWhat is your name, Captain?\0A> \00"
@.str.5 = [5 x i8] c"%80s\00"
@.str.6 = [82 x i8] c"And what are the positions and names of your crew? (Enter '<position> <name>')\0A> \00"
@.str.7 = [6 x i8] c" %80s\00"
@.str.8 = [4 x i8] c"\0A> \00"
@.str.9 = [31 x i8] c"So the crew of your ship is:\0A\0A\00"
@.str.10 = [7 x i8] c"%s %s\0A\00"
@.str.11 = [33 x i8] c"Aim for the stars, new Captain!\0A\00"
define i32 @main() {
%1 = alloca i32
%2 = alloca [80 x i8]
%3 = alloca i8**
%4 = alloca i8**
%5 = alloca i32
%6 = alloca i32
store i32 0, i32* %1
store i32 1, i32* %5
%7 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([91 x i8], [91 x i8]* @.str, i64 0, i64 0))
%8 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([25 x i8], [25 x i8]* @.str.1, i64 0, i64 0))
%9 = call i32 (i8*, ...) @scanf(i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str.2, i64 0, i64 0), i32* %5)
%10 = load i32, i32* %5
%11 = add nsw i32 %10, 1
store i32 %11, i32* %5
%12 = load i32, i32* %5
%13 = sext i32 %12 to i64
%14 = mul i64 8, %13
%15 = call i8* @malloc(i64 %14)
%16 = bitcast i8* %15 to i8**
store i8** %16, i8*** %3
%17 = load i32, i32* %5
%18 = sext i32 %17 to i64
%19 = mul i64 8, %18
%20 = call i8* @malloc(i64 %19)
%21 = bitcast i8* %20 to i8**
store i8** %21, i8*** %4
%22 = call i8* @malloc(i64 8)
%23 = load i8**, i8*** %3
%24 = getelementptr inbounds i8*, i8** %23, i64 0
store i8* %22, i8** %24
%25 = load i8**, i8*** %3
%26 = getelementptr inbounds i8*, i8** %25, i64 0
%27 = load i8*, i8** %26
%28 = call i8* @strcpy(i8* %27, i8* getelementptr inbounds ([8 x i8], [8 x i8]* @.str.3, i64 0, i64 0))
%29 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([32 x i8], [32 x i8]* @.str.4, i64 0, i64 0))
%30 = getelementptr inbounds [80 x i8], [80 x i8]* %2, i64 0, i64 0
%31 = call i32 (i8*, ...) @scanf(i8* getelementptr inbounds ([5 x i8], [5 x i8]* @.str.5, i64 0, i64 0), i8* %30)
%32 = getelementptr inbounds [80 x i8], [80 x i8]* %2, i64 0, i64 0
%33 = call i64 @strlen(i8* %32)
%34 = add i64 %33, 1
%35 = call i8* @malloc(i64 %34)
%36 = load i8**, i8*** %4
%37 = getelementptr inbounds i8*, i8** %36, i64 0
store i8* %35, i8** %37
%38 = load i8**, i8*** %4
%39 = getelementptr inbounds i8*, i8** %38, i64 0
%40 = load i8*, i8** %39
%41 = getelementptr inbounds [80 x i8], [80 x i8]* %2, i64 0, i64 0
%42 = call i8* @strcpy(i8* %40, i8* %41)
%43 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([82 x i8], [82 x i8]* @.str.6, i64 0, i64 0))
store i32 1, i32* %6
br label %44
44: ; preds = %84, %0
%45 = load i32, i32* %6
%46 = load i32, i32* %5
%47 = icmp slt i32 %45, %46
br i1 %47, label %48, label %87
48: ; preds = %44
%49 = getelementptr inbounds [80 x i8], [80 x i8]* %2, i64 0, i64 0
%50 = call i32 (i8*, ...) @scanf(i8* getelementptr inbounds ([6 x i8], [6 x i8]* @.str.7, i64 0, i64 0), i8* %49)
%51 = getelementptr inbounds [80 x i8], [80 x i8]* %2, i64 0, i64 0
%52 = call i64 @strlen(i8* %51)
%53 = add i64 %52, 1
%54 = call i8* @malloc(i64 %53)
%55 = load i8**, i8*** %3
%56 = load i32, i32* %6
%57 = sext i32 %56 to i64
%58 = getelementptr inbounds i8*, i8** %55, i64 %57
store i8* %54, i8** %58
%59 = load i8**, i8*** %3
%60 = load i32, i32* %6
%61 = sext i32 %60 to i64
%62 = getelementptr inbounds i8*, i8** %59, i64 %61
%63 = load i8*, i8** %62
%64 = getelementptr inbounds [80 x i8], [80 x i8]* %2, i64 0, i64 0
%65 = call i8* @strcpy(i8* %63, i8* %64)
%66 = getelementptr inbounds [80 x i8], [80 x i8]* %2, i64 0, i64 0
%67 = call i32 (i8*, ...) @scanf(i8* getelementptr inbounds ([5 x i8], [5 x i8]* @.str.5, i64 0, i64 0), i8* %66)
%68 = getelementptr inbounds [80 x i8], [80 x i8]* %2, i64 0, i64 0
%69 = call i64 @strlen(i8* %68)
%70 = add i64 %69, 1
%71 = call i8* @malloc(i64 %70)
%72 = load i8**, i8*** %4
%73 = load i32, i32* %6
%74 = sext i32 %73 to i64
%75 = getelementptr inbounds i8*, i8** %72, i64 %74
store i8* %71, i8** %75
%76 = load i8**, i8*** %4
%77 = load i32, i32* %6
%78 = sext i32 %77 to i64
%79 = getelementptr inbounds i8*, i8** %76, i64 %78
%80 = load i8*, i8** %79
%81 = getelementptr inbounds [80 x i8], [80 x i8]* %2, i64 0, i64 0
%82 = call i8* @strcpy(i8* %80, i8* %81)
%83 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([4 x i8], [4 x i8]* @.str.8, i64 0, i64 0))
br label %84
84: ; preds = %48
%85 = load i32, i32* %6
%86 = add nsw i32 %85, 1
store i32 %86, i32* %6
br label %44
87: ; preds = %44
%88 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([31 x i8], [31 x i8]* @.str.9, i64 0, i64 0))
store i32 0, i32* %6
br label %89
89: ; preds = %115, %87
%90 = load i32, i32* %6
%91 = load i32, i32* %5
%92 = icmp slt i32 %90, %91
br i1 %92, label %93, label %118
93: ; preds = %89
%94 = load i8**, i8*** %3
%95 = load i32, i32* %6
%96 = sext i32 %95 to i64
%97 = getelementptr inbounds i8*, i8** %94, i64 %96
%98 = load i8*, i8** %97
%99 = load i8**, i8*** %4
%100 = load i32, i32* %6
%101 = sext i32 %100 to i64
%102 = getelementptr inbounds i8*, i8** %99, i64 %101
%103 = load i8*, i8** %102
%104 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([7 x i8], [7 x i8]* @.str.10, i64 0, i64 0), i8* %98, i8* %103)
%105 = load i8**, i8*** %3
%106 = load i32, i32* %6
%107 = sext i32 %106 to i64
%108 = getelementptr inbounds i8*, i8** %105, i64 %107
%109 = load i8*, i8** %108
%110 = load i8**, i8*** %4
%111 = load i32, i32* %6
%112 = sext i32 %111 to i64
%113 = getelementptr inbounds i8*, i8** %110, i64 %112
%114 = load i8*, i8** %113
br label %115
115: ; preds = %93
%116 = load i32, i32* %6
%117 = add nsw i32 %116, 1
store i32 %117, i32* %6
br label %89
118: ; preds = %89
%119 = load i8**, i8*** %3
%120 = bitcast i8** %119 to i8*
%121 = load i8**, i8*** %4
%122 = bitcast i8** %121 to i8*
%123 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([33 x i8], [33 x i8]* @.str.11, i64 0, i64 0))
%124 = load i32, i32* %1
ret i32 %124
}

LLVM IR (-O2):
@.str.1 = [25 x i8] c"How big is your crew?\0A> \00"
@.str.2 = [3 x i8] c"%d\00"
@.str.4 = [32 x i8] c"\0AWhat is your name, Captain?\0A> \00"
@.str.5 = [5 x i8] c"%80s\00"
@.str.6 = [82 x i8] c"And what are the positions and names of your crew? (Enter '<position> <name>')\0A> \00"
@.str.7 = [6 x i8] c" %80s\00"
@.str.8 = [4 x i8] c"\0A> \00"
@.str.10 = [7 x i8] c"%s %s\0A\00"
@str = [90 x i8] c"You've been promoted to Captain and get to pick your own crew to take on your adventures!\00"
@str.12 = [30 x i8] c"So the crew of your ship is:\0A\00"
@str.13 = [32 x i8] c"Aim for the stars, new Captain!\00"
define i32 @main() {
%1 = alloca [80 x i8]
%2 = alloca i32
%3 = getelementptr inbounds [80 x i8], [80 x i8]* %1, i64 0, i64 0
%4 = bitcast i32* %2 to i8*
store i32 1, i32* %2
%5 = tail call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([90 x i8], [90 x i8]* @str, i64 0, i64 0))
%6 = tail call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([25 x i8], [25 x i8]* @.str.1, i64 0, i64 0))
%7 = call i32 (i8*, ...) @scanf(i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str.2, i64 0, i64 0), i32* %2)
%8 = load i32, i32* %2
%9 = add nsw i32 %8, 1
store i32 %9, i32* %2
%10 = sext i32 %9 to i64
%11 = shl nsw i64 %10, 3
%12 = call i8* @malloc(i64 %11)
%13 = bitcast i8* %12 to i8**
%14 = call i8* @malloc(i64 %11)
%15 = bitcast i8* %14 to i8**
%16 = call dereferenceable_or_null(8) i8* @malloc(i64 8)
store i8* %16, i8** %13
%17 = bitcast i8* %16 to i64*
store i64 31078114724438339, i64* %17
%18 = call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([32 x i8], [32 x i8]* @.str.4, i64 0, i64 0))
%19 = call i32 (i8*, ...) @scanf(i8* getelementptr inbounds ([5 x i8], [5 x i8]* @.str.5, i64 0, i64 0), i8* %3)
%20 = call i64 @strlen(i8* %3)
%21 = add i64 %20, 1
%22 = call i8* @malloc(i64 %21)
store i8* %22, i8** %15
%23 = call i8* @strcpy(i8* dereferenceable(1) %22, i8* %3)
%24 = call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([82 x i8], [82 x i8]* @.str.6, i64 0, i64 0))
%25 = load i32, i32* %2
%26 = icmp sgt i32 %25, 1
br i1 %26, label %27, label %46
27: ; preds = %0, %27
%28 = phi i64 [ %42, %27 ], [ 1, %0 ]
%29 = call i32 (i8*, ...) @scanf(i8* getelementptr inbounds ([6 x i8], [6 x i8]* @.str.7, i64 0, i64 0), i8* %3)
%30 = call i64 @strlen(i8* %3)
%31 = add i64 %30, 1
%32 = call i8* @malloc(i64 %31)
%33 = getelementptr inbounds i8*, i8** %13, i64 %28
store i8* %32, i8** %33
%34 = call i8* @strcpy(i8* dereferenceable(1) %32, i8* %3)
%35 = call i32 (i8*, ...) @scanf(i8* getelementptr inbounds ([5 x i8], [5 x i8]* @.str.5, i64 0, i64 0), i8* %3)
%36 = call i64 @strlen(i8* %3)
%37 = add i64 %36, 1
%38 = call i8* @malloc(i64 %37)
%39 = getelementptr inbounds i8*, i8** %15, i64 %28
store i8* %38, i8** %39
%40 = call i8* @strcpy(i8* dereferenceable(1) %38, i8* %3)
%41 = call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([4 x i8], [4 x i8]* @.str.8, i64 0, i64 0))
%42 = add nuw nsw i64 %28, 1
%43 = load i32, i32* %2
%44 = sext i32 %43 to i64
%45 = icmp slt i64 %42, %44
br i1 %45, label %27, label %46
46: ; preds = %27, %0
%47 = call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([30 x i8], [30 x i8]* @str.12, i64 0, i64 0))
%48 = load i32, i32* %2
%49 = icmp sgt i32 %48, 0
br i1 %49, label %50, label %65
50: ; preds = %46
%51 = call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([7 x i8], [7 x i8]* @.str.10, i64 0, i64 0), i8* %16, i8* %22)
%52 = load i32, i32* %2
%53 = icmp sgt i32 %52, 1
br i1 %53, label %54, label %65
54: ; preds = %50, %54
%55 = phi i64 [ %61, %54 ], [ 1, %50 ]
%56 = getelementptr inbounds i8*, i8** %13, i64 %55
%57 = load i8*, i8** %56
%58 = getelementptr inbounds i8*, i8** %15, i64 %55
%59 = load i8*, i8** %58
%60 = call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([7 x i8], [7 x i8]* @.str.10, i64 0, i64 0), i8* %57, i8* %59)
%61 = add nuw nsw i64 %55, 1
%62 = load i32, i32* %2
%63 = sext i32 %62 to i64
%64 = icmp slt i64 %61, %63
br i1 %64, label %54, label %65
65: ; preds = %54, %50, %46
%66 = call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([32 x i8], [32 x i8]* @str.13, i64 0, i64 0))
ret i32 0
}