#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*/ fgets(char *, int, int /*<<< orphan*/);
scalar_t__ malloc(int);
int /*<<< orphan*/ printf(char *, ...);
int /*<<< orphan*/ scanf(char *, int *);
int /*<<< orphan*/ setbuf(int /*<<< orphan*/, int /*<<< orphan*/ *);
int /*<<< orphan*/ stdin;
scalar_t__ strcmp(char *, char *);
int /*<<< orphan*/ strcpy(char *, char *);
int /*<<< orphan*/ strtok(char *, char *);
int main() {
  int i = 0, j = 0, size = 0;
  printf("How many names would you like to add to your list?\n");
  scanf("%d", &size);
  setbuf(stdin, NULL);
  char *list[size], tmp[20];
  printf("Please enter the names.\n");
  for (i = 0; i < size; i++) {
    list[i] = (char *)malloc(20 * sizeof(char));
    fgets(list[i], 20, stdin);
    strtok(list[i], "\n");
  }
  printf("\n");
  printf("The list of names is:\n");
  for (i = 0; i < size; i++) {
    printf("%s\n", *(list + i));
  }
  printf("\n");
  for (i = 0; i < size - 1; i++) {
    for (j = i + 1; j < size; j++) {
      if (strcmp(list[i], list[j]) > 0) {
        strcpy(tmp, list[i]);
        strcpy(list[i], list[j]);
        strcpy(list[j], tmp);
      } else
        continue;
    }
  }
  printf("\n");
  printf("The list sorted in alphabetical order is:\n");
  for (i = 0; i < size; i++) {
    printf("%s\n", *(list + i));
  }
  return 0;
}


x86 assembly (clang, -O0):
<main>:
push   %rbp
mov    %rsp,%rbp
sub    $0x50,%rsp
movl   $0x0,-0x4(%rbp)
movl   $0x0,-0x8(%rbp)
movl   $0x0,-0xc(%rbp)
movl   $0x0,-0x10(%rbp)
lea    0xe55(%rip),%rdi
xor    %eax,%eax
mov    %eax,-0x4c(%rbp)
call   1050 <printf@plt>
lea    0xe78(%rip),%rdi
lea    -0x10(%rbp),%rsi
call   1090 <scanf@plt>
mov    -0x4c(%rbp),%eax
mov    0x2e19(%rip),%rcx
mov    (%rcx),%edi
mov    %eax,%esi
call   1040 <setbuf@plt>
mov    -0x10(%rbp),%eax
mov    %rsp,%rcx
mov    %rcx,-0x18(%rbp)
lea    0xf(,%rax,8),%rdx
and    $0xfffffffffffffff0,%rdx
mov    %rsp,%rcx
sub    %rdx,%rcx
mov    %rcx,-0x48(%rbp)
mov    %rcx,%rsp
mov    %rax,-0x20(%rbp)
lea    0xe31(%rip),%rdi
mov    $0x0,%al
call   1050 <printf@plt>
movl   $0x0,-0x8(%rbp)
mov    -0x8(%rbp),%eax
cmp    -0x10(%rbp),%eax
jge    127a <main+0xfa>
mov    $0x14,%edi
call   1080 <malloc@plt>
mov    %rax,%rdx
mov    -0x48(%rbp),%rax
movslq -0x8(%rbp),%rcx
mov    %rdx,(%rax,%rcx,8)
movslq -0x8(%rbp),%rcx
mov    (%rax,%rcx,8),%rdi
mov    0x2da0(%rip),%rax
mov    (%rax),%edx
mov    $0x14,%esi
call   1060 <fgets@plt>
mov    -0x48(%rbp),%rax
movslq -0x8(%rbp),%rcx
mov    (%rax,%rcx,8),%rdi
lea    0xde7(%rip),%rsi
call   10a0 <strtok@plt>
mov    -0x8(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0x8(%rbp)
jmp    1214 <main+0x94>
lea    0xdcd(%rip),%rdi
mov    $0x0,%al
call   1050 <printf@plt>
lea    0xdc1(%rip),%rdi
mov    $0x0,%al
call   1050 <printf@plt>
movl   $0x0,-0x8(%rbp)
mov    -0x8(%rbp),%eax
cmp    -0x10(%rbp),%eax
jge    12d1 <main+0x151>
mov    -0x48(%rbp),%rax
movslq -0x8(%rbp),%rcx
mov    (%rax,%rcx,8),%rsi
lea    0xdab(%rip),%rdi
mov    $0x0,%al
call   1050 <printf@plt>
mov    -0x8(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0x8(%rbp)
jmp    129d <main+0x11d>
lea    0xd76(%rip),%rdi
mov    $0x0,%al
call   1050 <printf@plt>
movl   $0x0,-0x8(%rbp)
mov    -0x8(%rbp),%eax
mov    -0x10(%rbp),%ecx
sub    $0x1,%ecx
cmp    %ecx,%eax
jge    13a2 <main+0x222>
mov    -0x8(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0xc(%rbp)
mov    -0xc(%rbp),%eax
cmp    -0x10(%rbp),%eax
jge    138f <main+0x20f>
mov    -0x48(%rbp),%rax
movslq -0x8(%rbp),%rcx
mov    (%rax,%rcx,8),%rdi
movslq -0xc(%rbp),%rcx
mov    (%rax,%rcx,8),%rsi
call   1070 <strcmp@plt>
cmp    $0x0,%rax
jle    1377 <main+0x1f7>
mov    -0x48(%rbp),%rax
lea    -0x40(%rbp),%rdi
movslq -0x8(%rbp),%rcx
mov    (%rax,%rcx,8),%rsi
call   1030 <strcpy@plt>
mov    -0x48(%rbp),%rax
movslq -0x8(%rbp),%rcx
mov    (%rax,%rcx,8),%rdi
movslq -0xc(%rbp),%rcx
mov    (%rax,%rcx,8),%rsi
call   1030 <strcpy@plt>
mov    -0x48(%rbp),%rax
movslq -0xc(%rbp),%rcx
mov    (%rax,%rcx,8),%rdi
lea    -0x40(%rbp),%rsi
call   1030 <strcpy@plt>
jmp    137c <main+0x1fc>
jmp    1381 <main+0x201>
jmp    1381 <main+0x201>
mov    -0xc(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0xc(%rbp)
jmp    1300 <main+0x180>
jmp    1394 <main+0x214>
mov    -0x8(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0x8(%rbp)
jmp    12e6 <main+0x166>
lea    0xca5(%rip),%rdi
mov    $0x0,%al
call   1050 <printf@plt>
lea    0xcb4(%rip),%rdi
mov    $0x0,%al
call   1050 <printf@plt>
movl   $0x0,-0x8(%rbp)
mov    -0x8(%rbp),%eax
cmp    -0x10(%rbp),%eax
jge    13f9 <main+0x279>
mov    -0x48(%rbp),%rax
movslq -0x8(%rbp),%rcx
mov    (%rax,%rcx,8),%rsi
lea    0xc83(%rip),%rdi
mov    $0x0,%al
call   1050 <printf@plt>
mov    -0x8(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0x8(%rbp)
jmp    13c5 <main+0x245>
movl   $0x0,-0x4(%rbp)
mov    -0x18(%rbp),%rax
mov    %rax,%rsp
mov    -0x4(%rbp),%eax
mov    %rbp,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<main>:
push   %rbp
mov    %rsp,%rbp
push   %r15
push   %r14
push   %r13
push   %r12
push   %rbx
sub    $0x38,%rsp
movl   $0x0,-0x2c(%rbp)
lea    0xe56(%rip),%rdi
call   1050 <puts@plt>
lea    0xe45(%rip),%rdi
lea    -0x2c(%rbp),%rsi
call   10a0 <scanf@plt>
mov    0x2e1d(%rip),%r15
mov    (%r15),%edi
xor    %esi,%esi
call   1060 <setbuf@plt>
mov    %rsp,-0x40(%rbp)
mov    -0x2c(%rbp),%eax
mov    %rsp,%r13
lea    0xf(,%rax,8),%rax
and    $0xfffffffffffffff0,%rax
sub    %rax,%r13
mov    %r13,%rsp
lea    0xe40(%rip),%rdi
call   1050 <puts@plt>
cmpl   $0x0,-0x2c(%rbp)
jle    124a <main+0xba>
xor    %ebx,%ebx
lea    0xdf7(%rip),%r14
nopl   0x0(%rax)
mov    $0x14,%edi
call   1090 <malloc@plt>
mov    %rax,%r12
mov    %rax,0x0(%r13,%rbx,8)
mov    (%r15),%edx
mov    %rax,%rdi
mov    $0x14,%esi
call   1070 <fgets@plt>
mov    %r12,%rdi
mov    %r14,%rsi
call   10b0 <strtok@plt>
add    $0x1,%rbx
movslq -0x2c(%rbp),%rax
cmp    %rax,%rbx
jl     1210 <main+0x80>
mov    $0xa,%edi
call   1030 <putchar@plt>
lea    0xdf5(%rip),%rdi
call   1050 <puts@plt>
cmpl   $0x0,-0x2c(%rbp)
jle    1287 <main+0xf7>
xor    %ebx,%ebx
nopl   0x0(%rax,%rax,1)
mov    0x0(%r13,%rbx,8),%rdi
call   1050 <puts@plt>
add    $0x1,%rbx
movslq -0x2c(%rbp),%rax
cmp    %rax,%rbx
jl     1270 <main+0xe0>
mov    $0xa,%edi
call   1030 <putchar@plt>
mov    -0x2c(%rbp),%eax
cmp    $0x2,%eax
jl     1334 <main+0x1a4>
mov    $0x1,%ecx
mov    %rcx,-0x38(%rbp)
xor    %ecx,%ecx
lea    -0x60(%rbp),%r14
jmp    12c7 <main+0x137>
xchg   %ax,%ax
lea    -0x1(%rax),%ecx
movslq %ecx,%rcx
addq   $0x1,-0x38(%rbp)
mov    -0x48(%rbp),%rdx
cmp    %rcx,%rdx
mov    %rdx,%rcx
jge    1334 <main+0x1a4>
lea    0x1(%rcx),%rsi
movslq %eax,%rdx
mov    %rsi,-0x48(%rbp)
cmp    %rdx,%rsi
jge    12b0 <main+0x120>
mov    0x0(%r13,%rcx,8),%r15
mov    -0x38(%rbp),%r12
jmp    12fc <main+0x16c>
cs nopw 0x0(%rax,%rax,1)
nopl   0x0(%rax)
add    $0x1,%r12
mov    -0x2c(%rbp),%eax
cmp    %r12d,%eax
jle    12b0 <main+0x120>
mov    0x0(%r13,%r12,8),%rbx
mov    %r15,%rdi
mov    %rbx,%rsi
call   1080 <strcmp@plt>
test   %rax,%rax
jle    12f0 <main+0x160>
mov    %r14,%rdi
mov    %r15,%rsi
call   1040 <strcpy@plt>
mov    %r15,%rdi
mov    %rbx,%rsi
call   1040 <strcpy@plt>
mov    %rbx,%rdi
mov    %r14,%rsi
call   1040 <strcpy@plt>
jmp    12f0 <main+0x160>
mov    $0xa,%edi
call   1030 <putchar@plt>
lea    0xd21(%rip),%rdi
call   1050 <puts@plt>
cmpl   $0x0,-0x2c(%rbp)
jle    1377 <main+0x1e7>
xor    %ebx,%ebx
cs nopw 0x0(%rax,%rax,1)
nopl   0x0(%rax)
mov    0x0(%r13,%rbx,8),%rdi
call   1050 <puts@plt>
add    $0x1,%rbx
movslq -0x2c(%rbp),%rax
cmp    %rax,%rbx
jl     1360 <main+0x1d0>
mov    -0x40(%rbp),%rsp
xor    %eax,%eax
lea    -0x28(%rbp),%rsp
pop    %rbx
pop    %r12
pop    %r13
pop    %r14
pop    %r15
pop    %rbp
ret

LLVM IR (-O0):
@.str = [52 x i8] c"How many names would you like to add to your list?\0A\00"
@.str.1 = [3 x i8] c"%d\00"
@stdin = global i32 0
@.str.2 = [25 x i8] c"Please enter the names.\0A\00"
@.str.3 = [2 x i8] c"\0A\00"
@.str.4 = [23 x i8] c"The list of names is:\0A\00"
@.str.5 = [4 x i8] c"%s\0A\00"
@.str.6 = [43 x i8] c"The list sorted in alphabetical order is:\0A\00"
define i32 @main() {
%1 = alloca i32
%2 = alloca i32
%3 = alloca i32
%4 = alloca i32
%5 = alloca i8*
%6 = alloca i64
%7 = alloca [20 x i8]
store i32 0, i32* %1
store i32 0, i32* %2
store i32 0, i32* %3
store i32 0, i32* %4
%8 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([52 x i8], [52 x i8]* @.str, i64 0, i64 0))
%9 = call i32 @scanf(i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str.1, i64 0, i64 0), i32* %4)
%10 = load i32, i32* @stdin
%11 = call i32 @setbuf(i32 %10, i32* null)
%12 = load i32, i32* %4
%13 = zext i32 %12 to i64
%14 = call i8* @llvm.stacksave()
store i8* %14, i8** %5
%15 = alloca i8*, i64 %13
store i64 %13, i64* %6
%16 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([25 x i8], [25 x i8]* @.str.2, i64 0, i64 0))
store i32 0, i32* %2
br label %17
17: ; preds = %38, %0
%18 = load i32, i32* %2
%19 = load i32, i32* %4
%20 = icmp slt i32 %18, %19
br i1 %20, label %21, label %41
21: ; preds = %17
%22 = call i64 @malloc(i32 20)
%23 = inttoptr i64 %22 to i8*
%24 = load i32, i32* %2
%25 = sext i32 %24 to i64
%26 = getelementptr inbounds i8*, i8** %15, i64 %25
store i8* %23, i8** %26
%27 = load i32, i32* %2
%28 = sext i32 %27 to i64
%29 = getelementptr inbounds i8*, i8** %15, i64 %28
%30 = load i8*, i8** %29
%31 = load i32, i32* @stdin
%32 = call i32 @fgets(i8* %30, i32 20, i32 %31)
%33 = load i32, i32* %2
%34 = sext i32 %33 to i64
%35 = getelementptr inbounds i8*, i8** %15, i64 %34
%36 = load i8*, i8** %35
%37 = call i32 @strtok(i8* %36, i8* getelementptr inbounds ([2 x i8], [2 x i8]* @.str.3, i64 0, i64 0))
br label %38
38: ; preds = %21
%39 = load i32, i32* %2
%40 = add nsw i32 %39, 1
store i32 %40, i32* %2
br label %17
41: ; preds = %17
%42 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([2 x i8], [2 x i8]* @.str.3, i64 0, i64 0))
%43 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([23 x i8], [23 x i8]* @.str.4, i64 0, i64 0))
store i32 0, i32* %2
br label %44
44: ; preds = %54, %41
%45 = load i32, i32* %2
%46 = load i32, i32* %4
%47 = icmp slt i32 %45, %46
br i1 %47, label %48, label %57
48: ; preds = %44
%49 = load i32, i32* %2
%50 = sext i32 %49 to i64
%51 = getelementptr inbounds i8*, i8** %15, i64 %50
%52 = load i8*, i8** %51
%53 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([4 x i8], [4 x i8]* @.str.5, i64 0, i64 0), i8* %52)
br label %54
54: ; preds = %48
%55 = load i32, i32* %2
%56 = add nsw i32 %55, 1
store i32 %56, i32* %2
br label %44
57: ; preds = %44
%58 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([2 x i8], [2 x i8]* @.str.3, i64 0, i64 0))
store i32 0, i32* %2
br label %59
59: ; preds = %110, %57
%60 = load i32, i32* %2
%61 = load i32, i32* %4
%62 = sub nsw i32 %61, 1
%63 = icmp slt i32 %60, %62
br i1 %63, label %64, label %113
64: ; preds = %59
%65 = load i32, i32* %2
%66 = add nsw i32 %65, 1
store i32 %66, i32* %3
br label %67
67: ; preds = %106, %64
%68 = load i32, i32* %3
%69 = load i32, i32* %4
%70 = icmp slt i32 %68, %69
br i1 %70, label %71, label %109
71: ; preds = %67
%72 = load i32, i32* %2
%73 = sext i32 %72 to i64
%74 = getelementptr inbounds i8*, i8** %15, i64 %73
%75 = load i8*, i8** %74
%76 = load i32, i32* %3
%77 = sext i32 %76 to i64
%78 = getelementptr inbounds i8*, i8** %15, i64 %77
%79 = load i8*, i8** %78
%80 = call i64 @strcmp(i8* %75, i8* %79)
%81 = icmp sgt i64 %80, 0
br i1 %81, label %82, label %104
82: ; preds = %71
%83 = getelementptr inbounds [20 x i8], [20 x i8]* %7, i64 0, i64 0
%84 = load i32, i32* %2
%85 = sext i32 %84 to i64
%86 = getelementptr inbounds i8*, i8** %15, i64 %85
%87 = load i8*, i8** %86
%88 = call i32 @strcpy(i8* %83, i8* %87)
%89 = load i32, i32* %2
%90 = sext i32 %89 to i64
%91 = getelementptr inbounds i8*, i8** %15, i64 %90
%92 = load i8*, i8** %91
%93 = load i32, i32* %3
%94 = sext i32 %93 to i64
%95 = getelementptr inbounds i8*, i8** %15, i64 %94
%96 = load i8*, i8** %95
%97 = call i32 @strcpy(i8* %92, i8* %96)
%98 = load i32, i32* %3
%99 = sext i32 %98 to i64
%100 = getelementptr inbounds i8*, i8** %15, i64 %99
%101 = load i8*, i8** %100
%102 = getelementptr inbounds [20 x i8], [20 x i8]* %7, i64 0, i64 0
%103 = call i32 @strcpy(i8* %101, i8* %102)
br label %105
104: ; preds = %71
br label %106
105: ; preds = %82
br label %106
106: ; preds = %105, %104
%107 = load i32, i32* %3
%108 = add nsw i32 %107, 1
store i32 %108, i32* %3
br label %67
109: ; preds = %67
br label %110
110: ; preds = %109
%111 = load i32, i32* %2
%112 = add nsw i32 %111, 1
store i32 %112, i32* %2
br label %59
113: ; preds = %59
%114 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([2 x i8], [2 x i8]* @.str.3, i64 0, i64 0))
%115 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([43 x i8], [43 x i8]* @.str.6, i64 0, i64 0))
store i32 0, i32* %2
br label %116
116: ; preds = %126, %113
%117 = load i32, i32* %2
%118 = load i32, i32* %4
%119 = icmp slt i32 %117, %118
br i1 %119, label %120, label %129
120: ; preds = %116
%121 = load i32, i32* %2
%122 = sext i32 %121 to i64
%123 = getelementptr inbounds i8*, i8** %15, i64 %122
%124 = load i8*, i8** %123
%125 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([4 x i8], [4 x i8]* @.str.5, i64 0, i64 0), i8* %124)
br label %126
126: ; preds = %120
%127 = load i32, i32* %2
%128 = add nsw i32 %127, 1
store i32 %128, i32* %2
br label %116
129: ; preds = %116
store i32 0, i32* %1
%130 = load i8*, i8** %5
%131 = load i32, i32* %1
ret i32 %131
}

LLVM IR (-O2):
@.str.1 = [3 x i8] c"%d\00"
@stdin = global i32 0
@.str.3 = [2 x i8] c"\0A\00"
@str = [51 x i8] c"How many names would you like to add to your list?\00"
@str.7 = [24 x i8] c"Please enter the names.\00"
@str.8 = [22 x i8] c"The list of names is:\00"
@str.9 = [42 x i8] c"The list sorted in alphabetical order is:\00"
define i32 @main() {
%1 = alloca i32
%2 = alloca [20 x i8]
%3 = bitcast i32* %1 to i8*
store i32 0, i32* %1
%4 = tail call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([51 x i8], [51 x i8]* @str, i64 0, i64 0))
%5 = call i32 @scanf(i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str.1, i64 0, i64 0), i32* %1)
%6 = load i32, i32* @stdin
%7 = call i32 @setbuf(i32 %6, i32* null)
%8 = load i32, i32* %1
%9 = zext i32 %8 to i64
%10 = call i8* @llvm.stacksave()
%11 = alloca i8*, i64 %9
%12 = getelementptr inbounds [20 x i8], [20 x i8]* %2, i64 0, i64 0
%13 = call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([24 x i8], [24 x i8]* @str.7, i64 0, i64 0))
%14 = load i32, i32* %1
%15 = icmp sgt i32 %14, 0
br i1 %15, label %16, label %28
16: ; preds = %0, %16
%17 = phi i64 [ %24, %16 ], [ 0, %0 ]
%18 = call i64 @malloc(i32 20)
%19 = inttoptr i64 %18 to i8*
%20 = getelementptr inbounds i8*, i8** %11, i64 %17
store i8* %19, i8** %20
%21 = load i32, i32* @stdin
%22 = call i32 @fgets(i8* %19, i32 20, i32 %21)
%23 = call i32 @strtok(i8* %19, i8* getelementptr inbounds ([2 x i8], [2 x i8]* @.str.3, i64 0, i64 0))
%24 = add nuw nsw i64 %17, 1
%25 = load i32, i32* %1
%26 = sext i32 %25 to i64
%27 = icmp slt i64 %24, %26
br i1 %27, label %16, label %28
28: ; preds = %16, %0
%29 = call i32 @putchar(i32 10)
%30 = call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([22 x i8], [22 x i8]* @str.8, i64 0, i64 0))
%31 = load i32, i32* %1
%32 = icmp sgt i32 %31, 0
br i1 %32, label %33, label %42
33: ; preds = %28, %33
%34 = phi i64 [ %38, %33 ], [ 0, %28 ]
%35 = getelementptr inbounds i8*, i8** %11, i64 %34
%36 = load i8*, i8** %35
%37 = call i32 @puts(i8* dereferenceable(1) %36)
%38 = add nuw nsw i64 %34, 1
%39 = load i32, i32* %1
%40 = sext i32 %39 to i64
%41 = icmp slt i64 %38, %40
br i1 %41, label %33, label %42
42: ; preds = %33, %28
%43 = call i32 @putchar(i32 10)
%44 = load i32, i32* %1
%45 = icmp sgt i32 %44, 1
br i1 %45, label %52, label %77
46: ; preds = %72, %52
%47 = phi i32 [ %53, %52 ], [ %74, %72 ]
%48 = add nsw i32 %47, -1
%49 = sext i32 %48 to i64
%50 = icmp slt i64 %56, %49
%51 = add nuw nsw i64 %55, 1
br i1 %50, label %52, label %77
52: ; preds = %42, %46
%53 = phi i32 [ %47, %46 ], [ %44, %42 ]
%54 = phi i64 [ %56, %46 ], [ 0, %42 ]
%55 = phi i64 [ %51, %46 ], [ 1, %42 ]
%56 = add nuw nsw i64 %54, 1
%57 = sext i32 %53 to i64
%58 = icmp slt i64 %56, %57
br i1 %58, label %59, label %46
59: ; preds = %52
%60 = getelementptr inbounds i8*, i8** %11, i64 %54
%61 = load i8*, i8** %60
br label %62
62: ; preds = %59, %72
%63 = phi i64 [ %55, %59 ], [ %73, %72 ]
%64 = getelementptr inbounds i8*, i8** %11, i64 %63
%65 = load i8*, i8** %64
%66 = call i64 @strcmp(i8* %61, i8* %65)
%67 = icmp sgt i64 %66, 0
br i1 %67, label %68, label %72
68: ; preds = %62
%69 = call i32 @strcpy(i8* %12, i8* %61)
%70 = call i32 @strcpy(i8* %61, i8* %65)
%71 = call i32 @strcpy(i8* %65, i8* %12)
br label %72
72: ; preds = %62, %68
%73 = add nuw nsw i64 %63, 1
%74 = load i32, i32* %1
%75 = trunc i64 %73 to i32
%76 = icmp sgt i32 %74, %75
br i1 %76, label %62, label %46
77: ; preds = %46, %42
%78 = call i32 @putchar(i32 10)
%79 = call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([42 x i8], [42 x i8]* @str.9, i64 0, i64 0))
%80 = load i32, i32* %1
%81 = icmp sgt i32 %80, 0
br i1 %81, label %82, label %91
82: ; preds = %77, %82
%83 = phi i64 [ %87, %82 ], [ 0, %77 ]
%84 = getelementptr inbounds i8*, i8** %11, i64 %83
%85 = load i8*, i8** %84
%86 = call i32 @puts(i8* dereferenceable(1) %85)
%87 = add nuw nsw i64 %83, 1
%88 = load i32, i32* %1
%89 = sext i32 %88 to i64
%90 = icmp slt i64 %87, %89
br i1 %90, label %82, label %91
91: ; preds = %82, %77
ret i32 0
}