void sort_pointer() {
  typedef struct {
    char *name;
    int age;
  } girl;
  girl t;
  girl **p;
  girl a[] = {{"Ann", 18},    {"Rolla", 19},    {"Nancy", 16}, {"Eluza", 17},
              {"Juliet", 18}, {"Machilda", 20}, {"Emy", 15},   {"Candy", 16},
              {"Ema", 17},    {"Mari", 18}};
  char *min;
  int s, i, j;
  p = (girl **)malloc(sizeof(girl) * 10);
  for (i = 0; i < 10; i++)
    p[i] = &a[i];
  for (i = 0; i < 10 - 1; i++) {
    min = p[i]->name;
    s = i;
    for (j = i + 1; j < 10; j++) {
      if (strcmp(p[j]->name, min) < 0) {
        min = p[j]->name;
        s = j;
      }
    }
    if (s != i) {
      t = *p[i];
      *p[i] = *p[s];
      *p[s] = t;
    }
  }
  for (i = 0; i < 10; i++)
    printf("%10s%4d\n", p[i]->name, p[i]->age);
  free(p);
}


x86 assembly (clang, -O0):
<sort_pointer>:
push   %rbp
mov    %rsp,%rbp
sub    $0xe0,%rsp
lea    -0xc0(%rbp),%rdi
lea    0x2c17(%rip),%rsi
mov    $0xa0,%edx
call   1060 <memcpy@plt>
mov    $0xa0,%edi
call   1070 <malloc@plt>
mov    %rax,-0x18(%rbp)
movl   $0x0,-0xd0(%rbp)
cmpl   $0xa,-0xd0(%rbp)
jge    11d0 <sort_pointer+0x80>
movslq -0xd0(%rbp),%rax
lea    -0xc0(%rbp),%rdx
shl    $0x4,%rax
add    %rax,%rdx
mov    -0x18(%rbp),%rax
movslq -0xd0(%rbp),%rcx
mov    %rdx,(%rax,%rcx,8)
mov    -0xd0(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0xd0(%rbp)
jmp    118b <sort_pointer+0x3b>
movl   $0x0,-0xd0(%rbp)
cmpl   $0x9,-0xd0(%rbp)
jge    1320 <sort_pointer+0x1d0>
mov    -0x18(%rbp),%rax
movslq -0xd0(%rbp),%rcx
mov    (%rax,%rcx,8),%rax
mov    (%rax),%rax
mov    %rax,-0xc8(%rbp)
mov    -0xd0(%rbp),%eax
mov    %eax,-0xcc(%rbp)
mov    -0xd0(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0xd4(%rbp)
cmpl   $0xa,-0xd4(%rbp)
jge    128d <sort_pointer+0x13d>
mov    -0x18(%rbp),%rax
movslq -0xd4(%rbp),%rcx
mov    (%rax,%rcx,8),%rax
mov    (%rax),%rdi
mov    -0xc8(%rbp),%rsi
call   1050 <strcmp@plt>
cmp    $0x0,%eax
jge    1274 <sort_pointer+0x124>
mov    -0x18(%rbp),%rax
movslq -0xd4(%rbp),%rcx
mov    (%rax,%rcx,8),%rax
mov    (%rax),%rax
mov    %rax,-0xc8(%rbp)
mov    -0xd4(%rbp),%eax
mov    %eax,-0xcc(%rbp)
jmp    1279 <sort_pointer+0x129>
mov    -0xd4(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0xd4(%rbp)
jmp    121b <sort_pointer+0xcb>
mov    -0xcc(%rbp),%eax
cmp    -0xd0(%rbp),%eax
je     1307 <sort_pointer+0x1b7>
mov    -0x18(%rbp),%rax
movslq -0xd0(%rbp),%rcx
mov    (%rax,%rcx,8),%rax
mov    (%rax),%rcx
mov    %rcx,-0x10(%rbp)
mov    0x8(%rax),%rax
mov    %rax,-0x8(%rbp)
mov    -0x18(%rbp),%rax
movslq -0xd0(%rbp),%rcx
mov    (%rax,%rcx,8),%rax
mov    -0x18(%rbp),%rcx
movslq -0xcc(%rbp),%rdx
mov    (%rcx,%rdx,8),%rcx
mov    (%rcx),%rdx
mov    %rdx,(%rax)
mov    0x8(%rcx),%rcx
mov    %rcx,0x8(%rax)
mov    -0x18(%rbp),%rax
movslq -0xcc(%rbp),%rcx
mov    (%rax,%rcx,8),%rax
mov    -0x10(%rbp),%rcx
mov    %rcx,(%rax)
mov    -0x8(%rbp),%rcx
mov    %rcx,0x8(%rax)
jmp    130c <sort_pointer+0x1bc>
mov    -0xd0(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0xd0(%rbp)
jmp    11da <sort_pointer+0x8a>
movl   $0x0,-0xd0(%rbp)
cmpl   $0xa,-0xd0(%rbp)
jge    137d <sort_pointer+0x22d>
mov    -0x18(%rbp),%rax
movslq -0xd0(%rbp),%rcx
mov    (%rax,%rcx,8),%rax
mov    (%rax),%rsi
mov    -0x18(%rbp),%rax
movslq -0xd0(%rbp),%rcx
mov    (%rax,%rcx,8),%rax
mov    0x8(%rax),%edx
lea    0xcd7(%rip),%rdi
mov    $0x0,%al
call   1040 <printf@plt>
mov    -0xd0(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0xd0(%rbp)
jmp    132a <sort_pointer+0x1da>
mov    -0x18(%rbp),%rdi
call   1030 <free@plt>
add    $0xe0,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<sort_pointer>:
push   %rbp
push   %r15
push   %r14
push   %r13
push   %r12
push   %rbx
sub    $0xc8,%rsp
lea    0x2c18(%rip),%rsi
lea    0x10(%rsp),%r14
mov    $0xa0,%edx
mov    %r14,%rdi
call   1060 <memcpy@plt>
mov    $0xa0,%edi
call   1070 <malloc@plt>
mov    %rax,%r15
mov    %r14,(%rax)
lea    0x20(%rsp),%rax
mov    %rax,0x8(%r15)
lea    0x30(%rsp),%rax
mov    %rax,0x10(%r15)
lea    0x40(%rsp),%rax
mov    %rax,0x18(%r15)
lea    0x50(%rsp),%rax
mov    %rax,0x20(%r15)
lea    0x60(%rsp),%rax
mov    %rax,0x28(%r15)
lea    0x70(%rsp),%rax
mov    %rax,0x30(%r15)
lea    0x80(%rsp),%rax
mov    %rax,0x38(%r15)
lea    0x90(%rsp),%rax
mov    %rax,0x40(%r15)
lea    0xa0(%rsp),%rax
mov    %rax,0x48(%r15)
mov    $0x1,%r13d
xor    %ebp,%ebp
nopl   0x0(%rax)
lea    0x1(%rbp),%rax
mov    %rax,0x8(%rsp)
mov    (%r14),%rbx
mov    %r13,(%rsp)
mov    %ebp,%r12d
cs nopw 0x0(%rax,%rax,1)
nopl   (%rax)
mov    (%r15,%r13,8),%rax
mov    (%rax),%r14
mov    %r14,%rdi
mov    %rbx,%rsi
call   1050 <strcmp@plt>
test   %eax,%eax
cmovs  %r14,%rbx
cmovs  %r13d,%r12d
add    $0x1,%r13
cmp    $0xa,%r13
jne    1210 <sort_pointer+0xc0>
mov    %r12d,%eax
cmp    %rax,%rbp
je     1265 <sort_pointer+0x115>
mov    (%r15,%rbp,8),%rax
movups (%rax),%xmm0
movaps %xmm0,0xb0(%rsp)
movslq %r12d,%rcx
mov    (%r15,%rcx,8),%rcx
movups (%rcx),%xmm0
movups %xmm0,(%rax)
movaps 0xb0(%rsp),%xmm0
movups %xmm0,(%rcx)
mov    0x8(%rsp),%rbp
cmp    $0x9,%rbp
je     1281 <sort_pointer+0x131>
mov    (%rsp),%r13
add    $0x1,%r13
mov    (%r15,%rbp,8),%r14
jmp    11f0 <sort_pointer+0xa0>
mov    (%r15),%rax
mov    (%rax),%rsi
mov    0x8(%rax),%edx
lea    0xda8(%rip),%r14
mov    %r14,%rdi
xor    %eax,%eax
call   1040 <printf@plt>
mov    0x8(%r15),%rax
mov    (%rax),%rsi
mov    0x8(%rax),%edx
mov    %r14,%rdi
xor    %eax,%eax
call   1040 <printf@plt>
mov    0x10(%r15),%rax
mov    (%rax),%rsi
mov    0x8(%rax),%edx
mov    %r14,%rdi
xor    %eax,%eax
call   1040 <printf@plt>
mov    0x18(%r15),%rax
mov    (%rax),%rsi
mov    0x8(%rax),%edx
mov    %r14,%rdi
xor    %eax,%eax
call   1040 <printf@plt>
mov    0x50(%rsp),%rsi
mov    0x58(%rsp),%edx
mov    %r14,%rdi
xor    %eax,%eax
call   1040 <printf@plt>
mov    0x60(%rsp),%rsi
mov    0x68(%rsp),%edx
mov    %r14,%rdi
xor    %eax,%eax
call   1040 <printf@plt>
mov    0x70(%rsp),%rsi
mov    0x78(%rsp),%edx
mov    %r14,%rdi
xor    %eax,%eax
call   1040 <printf@plt>
mov    0x80(%rsp),%rsi
mov    0x88(%rsp),%edx
mov    %r14,%rdi
xor    %eax,%eax
call   1040 <printf@plt>
mov    0x90(%rsp),%rsi
mov    0x98(%rsp),%edx
mov    %r14,%rdi
xor    %eax,%eax
call   1040 <printf@plt>
mov    0xa0(%rsp),%rsi
mov    0xa8(%rsp),%edx
mov    %r14,%rdi
xor    %eax,%eax
call   1040 <printf@plt>
mov    %r15,%rdi
call   1030 <free@plt>
add    $0xc8,%rsp
pop    %rbx
pop    %r12
pop    %r13
pop    %r14
pop    %r15
pop    %rbp
ret

LLVM IR (-O0):
%struct.girl = type { i8*, i32 }
@.str = [4 x i8] c"Ann\00"
@.str.1 = [6 x i8] c"Rolla\00"
@.str.2 = [6 x i8] c"Nancy\00"
@.str.3 = [6 x i8] c"Eluza\00"
@.str.4 = [7 x i8] c"Juliet\00"
@.str.5 = [9 x i8] c"Machilda\00"
@.str.6 = [4 x i8] c"Emy\00"
@.str.7 = [6 x i8] c"Candy\00"
@.str.8 = [4 x i8] c"Ema\00"
@.str.9 = [5 x i8] c"Mari\00"
@__const.sort_pointer.a = [10 x %struct.girl] [%struct.girl { i8* getelementptr inbounds ([4 x i8], [4 x i8]* @.str, i32 0, i32 0), i32 18 }, %struct.girl { i8* getelementptr inbounds ([6 x i8], [6 x i8]* @.str.1, i32 0, i32 0), i32 19 }, %struct.girl { i8* getelementptr inbounds ([6 x i8], [6 x i8]* @.str.2, i32 0, i32 0), i32 16 }, %struct.girl { i8* getelementptr inbounds ([6 x i8], [6 x i8]* @.str.3, i32 0, i32 0), i32 17 }, %struct.girl { i8* getelementptr inbounds ([7 x i8], [7 x i8]* @.str.4, i32 0, i32 0), i32 18 }, %struct.girl { i8* getelementptr inbounds ([9 x i8], [9 x i8]* @.str.5, i32 0, i32 0), i32 20 }, %struct.girl { i8* getelementptr inbounds ([4 x i8], [4 x i8]* @.str.6, i32 0, i32 0), i32 15 }, %struct.girl { i8* getelementptr inbounds ([6 x i8], [6 x i8]* @.str.7, i32 0, i32 0), i32 16 }, %struct.girl { i8* getelementptr inbounds ([4 x i8], [4 x i8]* @.str.8, i32 0, i32 0), i32 17 }, %struct.girl { i8* getelementptr inbounds ([5 x i8], [5 x i8]* @.str.9, i32 0, i32 0), i32 18 }]
@.str.10 = [9 x i8] c"%10s%4d\0A\00"
define void @sort_pointer() {
%1 = alloca %struct.girl
%2 = alloca %struct.girl**
%3 = alloca [10 x %struct.girl]
%4 = alloca i8*
%5 = alloca i32
%6 = alloca i32
%7 = alloca i32
%8 = bitcast [10 x %struct.girl]* %3 to i8*
%9 = call i8* @malloc(i64 160)
%10 = bitcast i8* %9 to %struct.girl**
store %struct.girl** %10, %struct.girl*** %2
store i32 0, i32* %6
br label %11
11: ; preds = %22, %0
%12 = load i32, i32* %6
%13 = icmp slt i32 %12, 10
br i1 %13, label %14, label %25
14: ; preds = %11
%15 = load i32, i32* %6
%16 = sext i32 %15 to i64
%17 = getelementptr inbounds [10 x %struct.girl], [10 x %struct.girl]* %3, i64 0, i64 %16
%18 = load %struct.girl**, %struct.girl*** %2
%19 = load i32, i32* %6
%20 = sext i32 %19 to i64
%21 = getelementptr inbounds %struct.girl*, %struct.girl** %18, i64 %20
store %struct.girl* %17, %struct.girl** %21
br label %22
22: ; preds = %14
%23 = load i32, i32* %6
%24 = add nsw i32 %23, 1
store i32 %24, i32* %6
br label %11
25: ; preds = %11
store i32 0, i32* %6
br label %26
26: ; preds = %99, %25
%27 = load i32, i32* %6
%28 = icmp slt i32 %27, 9
br i1 %28, label %29, label %102
29: ; preds = %26
%30 = load %struct.girl**, %struct.girl*** %2
%31 = load i32, i32* %6
%32 = sext i32 %31 to i64
%33 = getelementptr inbounds %struct.girl*, %struct.girl** %30, i64 %32
%34 = load %struct.girl*, %struct.girl** %33
%35 = getelementptr inbounds %struct.girl, %struct.girl* %34, i32 0, i32 0
%36 = load i8*, i8** %35
store i8* %36, i8** %4
%37 = load i32, i32* %6
store i32 %37, i32* %5
%38 = load i32, i32* %6
%39 = add nsw i32 %38, 1
store i32 %39, i32* %7
br label %40
40: ; preds = %64, %29
%41 = load i32, i32* %7
%42 = icmp slt i32 %41, 10
br i1 %42, label %43, label %67
43: ; preds = %40
%44 = load %struct.girl**, %struct.girl*** %2
%45 = load i32, i32* %7
%46 = sext i32 %45 to i64
%47 = getelementptr inbounds %struct.girl*, %struct.girl** %44, i64 %46
%48 = load %struct.girl*, %struct.girl** %47
%49 = getelementptr inbounds %struct.girl, %struct.girl* %48, i32 0, i32 0
%50 = load i8*, i8** %49
%51 = load i8*, i8** %4
%52 = call i32 @strcmp(i8* %50, i8* %51)
%53 = icmp slt i32 %52, 0
br i1 %53, label %54, label %63
54: ; preds = %43
%55 = load %struct.girl**, %struct.girl*** %2
%56 = load i32, i32* %7
%57 = sext i32 %56 to i64
%58 = getelementptr inbounds %struct.girl*, %struct.girl** %55, i64 %57
%59 = load %struct.girl*, %struct.girl** %58
%60 = getelementptr inbounds %struct.girl, %struct.girl* %59, i32 0, i32 0
%61 = load i8*, i8** %60
store i8* %61, i8** %4
%62 = load i32, i32* %7
store i32 %62, i32* %5
br label %63
63: ; preds = %54, %43
br label %64
64: ; preds = %63
%65 = load i32, i32* %7
%66 = add nsw i32 %65, 1
store i32 %66, i32* %7
br label %40
67: ; preds = %40
%68 = load i32, i32* %5
%69 = load i32, i32* %6
%70 = icmp ne i32 %68, %69
br i1 %70, label %71, label %98
71: ; preds = %67
%72 = load %struct.girl**, %struct.girl*** %2
%73 = load i32, i32* %6
%74 = sext i32 %73 to i64
%75 = getelementptr inbounds %struct.girl*, %struct.girl** %72, i64 %74
%76 = load %struct.girl*, %struct.girl** %75
%77 = bitcast %struct.girl* %1 to i8*
%78 = bitcast %struct.girl* %76 to i8*
%79 = load %struct.girl**, %struct.girl*** %2
%80 = load i32, i32* %6
%81 = sext i32 %80 to i64
%82 = getelementptr inbounds %struct.girl*, %struct.girl** %79, i64 %81
%83 = load %struct.girl*, %struct.girl** %82
%84 = load %struct.girl**, %struct.girl*** %2
%85 = load i32, i32* %5
%86 = sext i32 %85 to i64
%87 = getelementptr inbounds %struct.girl*, %struct.girl** %84, i64 %86
%88 = load %struct.girl*, %struct.girl** %87
%89 = bitcast %struct.girl* %83 to i8*
%90 = bitcast %struct.girl* %88 to i8*
%91 = load %struct.girl**, %struct.girl*** %2
%92 = load i32, i32* %5
%93 = sext i32 %92 to i64
%94 = getelementptr inbounds %struct.girl*, %struct.girl** %91, i64 %93
%95 = load %struct.girl*, %struct.girl** %94
%96 = bitcast %struct.girl* %95 to i8*
%97 = bitcast %struct.girl* %1 to i8*
br label %98
98: ; preds = %71, %67
br label %99
99: ; preds = %98
%100 = load i32, i32* %6
%101 = add nsw i32 %100, 1
store i32 %101, i32* %6
br label %26
102: ; preds = %26
store i32 0, i32* %6
br label %103
103: ; preds = %122, %102
%104 = load i32, i32* %6
%105 = icmp slt i32 %104, 10
br i1 %105, label %106, label %125
106: ; preds = %103
%107 = load %struct.girl**, %struct.girl*** %2
%108 = load i32, i32* %6
%109 = sext i32 %108 to i64
%110 = getelementptr inbounds %struct.girl*, %struct.girl** %107, i64 %109
%111 = load %struct.girl*, %struct.girl** %110
%112 = getelementptr inbounds %struct.girl, %struct.girl* %111, i32 0, i32 0
%113 = load i8*, i8** %112
%114 = load %struct.girl**, %struct.girl*** %2
%115 = load i32, i32* %6
%116 = sext i32 %115 to i64
%117 = getelementptr inbounds %struct.girl*, %struct.girl** %114, i64 %116
%118 = load %struct.girl*, %struct.girl** %117
%119 = getelementptr inbounds %struct.girl, %struct.girl* %118, i32 0, i32 1
%120 = load i32, i32* %119
%121 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([9 x i8], [9 x i8]* @.str.10, i64 0, i64 0), i8* %113, i32 %120)
br label %122
122: ; preds = %106
%123 = load i32, i32* %6
%124 = add nsw i32 %123, 1
store i32 %124, i32* %6
br label %103
125: ; preds = %103
%126 = load %struct.girl**, %struct.girl*** %2
%127 = bitcast %struct.girl** %126 to i8*
ret void
}

LLVM IR (-O2):
%struct.girl = type { i8*, i32 }
@.str = [4 x i8] c"Ann\00"
@.str.1 = [6 x i8] c"Rolla\00"
@.str.2 = [6 x i8] c"Nancy\00"
@.str.3 = [6 x i8] c"Eluza\00"
@.str.4 = [7 x i8] c"Juliet\00"
@.str.5 = [9 x i8] c"Machilda\00"
@.str.6 = [4 x i8] c"Emy\00"
@.str.7 = [6 x i8] c"Candy\00"
@.str.8 = [4 x i8] c"Ema\00"
@.str.9 = [5 x i8] c"Mari\00"
@__const.sort_pointer.a = [10 x %struct.girl] [%struct.girl { i8* getelementptr inbounds ([4 x i8], [4 x i8]* @.str, i32 0, i32 0), i32 18 }, %struct.girl { i8* getelementptr inbounds ([6 x i8], [6 x i8]* @.str.1, i32 0, i32 0), i32 19 }, %struct.girl { i8* getelementptr inbounds ([6 x i8], [6 x i8]* @.str.2, i32 0, i32 0), i32 16 }, %struct.girl { i8* getelementptr inbounds ([6 x i8], [6 x i8]* @.str.3, i32 0, i32 0), i32 17 }, %struct.girl { i8* getelementptr inbounds ([7 x i8], [7 x i8]* @.str.4, i32 0, i32 0), i32 18 }, %struct.girl { i8* getelementptr inbounds ([9 x i8], [9 x i8]* @.str.5, i32 0, i32 0), i32 20 }, %struct.girl { i8* getelementptr inbounds ([4 x i8], [4 x i8]* @.str.6, i32 0, i32 0), i32 15 }, %struct.girl { i8* getelementptr inbounds ([6 x i8], [6 x i8]* @.str.7, i32 0, i32 0), i32 16 }, %struct.girl { i8* getelementptr inbounds ([4 x i8], [4 x i8]* @.str.8, i32 0, i32 0), i32 17 }, %struct.girl { i8* getelementptr inbounds ([5 x i8], [5 x i8]* @.str.9, i32 0, i32 0), i32 18 }]
@.str.10 = [9 x i8] c"%10s%4d\0A\00"
define void @sort_pointer() {
%1 = alloca %struct.girl
%2 = alloca [10 x %struct.girl]
%3 = bitcast %struct.girl* %1 to i8*
%4 = bitcast [10 x %struct.girl]* %2 to i8*
%5 = tail call dereferenceable_or_null(160) i8* @malloc(i64 160)
%6 = bitcast i8* %5 to %struct.girl**
%7 = getelementptr inbounds [10 x %struct.girl], [10 x %struct.girl]* %2, i64 0, i64 0
store %struct.girl* %7, %struct.girl** %6
%8 = getelementptr inbounds [10 x %struct.girl], [10 x %struct.girl]* %2, i64 0, i64 1
%9 = getelementptr inbounds %struct.girl*, %struct.girl** %6, i64 1
store %struct.girl* %8, %struct.girl** %9
%10 = getelementptr inbounds [10 x %struct.girl], [10 x %struct.girl]* %2, i64 0, i64 2
%11 = getelementptr inbounds %struct.girl*, %struct.girl** %6, i64 2
store %struct.girl* %10, %struct.girl** %11
%12 = getelementptr inbounds [10 x %struct.girl], [10 x %struct.girl]* %2, i64 0, i64 3
%13 = getelementptr inbounds %struct.girl*, %struct.girl** %6, i64 3
store %struct.girl* %12, %struct.girl** %13
%14 = getelementptr inbounds [10 x %struct.girl], [10 x %struct.girl]* %2, i64 0, i64 4
%15 = getelementptr inbounds %struct.girl*, %struct.girl** %6, i64 4
store %struct.girl* %14, %struct.girl** %15
%16 = getelementptr inbounds [10 x %struct.girl], [10 x %struct.girl]* %2, i64 0, i64 5
%17 = getelementptr inbounds %struct.girl*, %struct.girl** %6, i64 5
store %struct.girl* %16, %struct.girl** %17
%18 = getelementptr inbounds [10 x %struct.girl], [10 x %struct.girl]* %2, i64 0, i64 6
%19 = getelementptr inbounds %struct.girl*, %struct.girl** %6, i64 6
store %struct.girl* %18, %struct.girl** %19
%20 = getelementptr inbounds [10 x %struct.girl], [10 x %struct.girl]* %2, i64 0, i64 7
%21 = getelementptr inbounds %struct.girl*, %struct.girl** %6, i64 7
store %struct.girl* %20, %struct.girl** %21
%22 = getelementptr inbounds [10 x %struct.girl], [10 x %struct.girl]* %2, i64 0, i64 8
%23 = getelementptr inbounds %struct.girl*, %struct.girl** %6, i64 8
store %struct.girl* %22, %struct.girl** %23
%24 = getelementptr inbounds [10 x %struct.girl], [10 x %struct.girl]* %2, i64 0, i64 9
%25 = getelementptr inbounds %struct.girl*, %struct.girl** %6, i64 9
store %struct.girl* %24, %struct.girl** %25
br label %26
26: ; preds = %0, %62
%27 = phi %struct.girl* [ %7, %0 ], [ %65, %62 ]
%28 = phi i64 [ 0, %0 ], [ %31, %62 ]
%29 = phi i64 [ 1, %0 ], [ %63, %62 ]
%30 = getelementptr inbounds %struct.girl*, %struct.girl** %6, i64 %28
%31 = add nuw nsw i64 %28, 1
%32 = trunc i64 %28 to i32
%33 = getelementptr inbounds %struct.girl, %struct.girl* %27, i64 0, i32 0
%34 = load i8*, i8** %33
br label %35
35: ; preds = %26, %35
%36 = phi i64 [ %29, %26 ], [ %48, %35 ]
%37 = phi i32 [ %32, %26 ], [ %47, %35 ]
%38 = phi i8* [ %34, %26 ], [ %45, %35 ]
%39 = getelementptr inbounds %struct.girl*, %struct.girl** %6, i64 %36
%40 = load %struct.girl*, %struct.girl** %39
%41 = getelementptr inbounds %struct.girl, %struct.girl* %40, i64 0, i32 0
%42 = load i8*, i8** %41
%43 = call i32 @strcmp(i8* dereferenceable(1) %42, i8* dereferenceable(1) %38)
%44 = icmp slt i32 %43, 0
%45 = select i1 %44, i8* %42, i8* %38
%46 = trunc i64 %36 to i32
%47 = select i1 %44, i32 %46, i32 %37
%48 = add nuw nsw i64 %36, 1
%49 = icmp eq i64 %48, 10
br i1 %49, label %50, label %35
50: ; preds = %35
%51 = zext i32 %47 to i64
%52 = icmp eq i64 %28, %51
br i1 %52, label %60, label %53
53: ; preds = %50
%54 = bitcast %struct.girl** %30 to i8**
%55 = load i8*, i8** %54
%56 = sext i32 %47 to i64
%57 = getelementptr inbounds %struct.girl*, %struct.girl** %6, i64 %56
%58 = bitcast %struct.girl** %57 to i8**
%59 = load i8*, i8** %58
br label %60
60: ; preds = %50, %53
%61 = icmp eq i64 %31, 9
br i1 %61, label %66, label %62
62: ; preds = %60
%63 = add nuw nsw i64 %29, 1
%64 = getelementptr inbounds %struct.girl*, %struct.girl** %6, i64 %31
%65 = load %struct.girl*, %struct.girl** %64
br label %26
66: ; preds = %60
%67 = load %struct.girl*, %struct.girl** %6
%68 = getelementptr inbounds %struct.girl, %struct.girl* %67, i64 0, i32 0
%69 = load i8*, i8** %68
%70 = getelementptr inbounds %struct.girl, %struct.girl* %67, i64 0, i32 1
%71 = load i32, i32* %70
%72 = call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([9 x i8], [9 x i8]* @.str.10, i64 0, i64 0), i8* %69, i32 %71)
%73 = load %struct.girl*, %struct.girl** %9
%74 = getelementptr inbounds %struct.girl, %struct.girl* %73, i64 0, i32 0
%75 = load i8*, i8** %74
%76 = getelementptr inbounds %struct.girl, %struct.girl* %73, i64 0, i32 1
%77 = load i32, i32* %76
%78 = call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([9 x i8], [9 x i8]* @.str.10, i64 0, i64 0), i8* %75, i32 %77)
%79 = load %struct.girl*, %struct.girl** %11
%80 = getelementptr inbounds %struct.girl, %struct.girl* %79, i64 0, i32 0
%81 = load i8*, i8** %80
%82 = getelementptr inbounds %struct.girl, %struct.girl* %79, i64 0, i32 1
%83 = load i32, i32* %82
%84 = call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([9 x i8], [9 x i8]* @.str.10, i64 0, i64 0), i8* %81, i32 %83)
%85 = load %struct.girl*, %struct.girl** %13
%86 = getelementptr inbounds %struct.girl, %struct.girl* %85, i64 0, i32 0
%87 = load i8*, i8** %86
%88 = getelementptr inbounds %struct.girl, %struct.girl* %85, i64 0, i32 1
%89 = load i32, i32* %88
%90 = call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([9 x i8], [9 x i8]* @.str.10, i64 0, i64 0), i8* %87, i32 %89)
%91 = getelementptr inbounds %struct.girl, %struct.girl* %14, i64 0, i32 0
%92 = load i8*, i8** %91
%93 = getelementptr inbounds [10 x %struct.girl], [10 x %struct.girl]* %2, i64 0, i64 4, i32 1
%94 = load i32, i32* %93
%95 = call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([9 x i8], [9 x i8]* @.str.10, i64 0, i64 0), i8* %92, i32 %94)
%96 = getelementptr inbounds %struct.girl, %struct.girl* %16, i64 0, i32 0
%97 = load i8*, i8** %96
%98 = getelementptr inbounds [10 x %struct.girl], [10 x %struct.girl]* %2, i64 0, i64 5, i32 1
%99 = load i32, i32* %98
%100 = call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([9 x i8], [9 x i8]* @.str.10, i64 0, i64 0), i8* %97, i32 %99)
%101 = getelementptr inbounds %struct.girl, %struct.girl* %18, i64 0, i32 0
%102 = load i8*, i8** %101
%103 = getelementptr inbounds [10 x %struct.girl], [10 x %struct.girl]* %2, i64 0, i64 6, i32 1
%104 = load i32, i32* %103
%105 = call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([9 x i8], [9 x i8]* @.str.10, i64 0, i64 0), i8* %102, i32 %104)
%106 = getelementptr inbounds %struct.girl, %struct.girl* %20, i64 0, i32 0
%107 = load i8*, i8** %106
%108 = getelementptr inbounds [10 x %struct.girl], [10 x %struct.girl]* %2, i64 0, i64 7, i32 1
%109 = load i32, i32* %108
%110 = call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([9 x i8], [9 x i8]* @.str.10, i64 0, i64 0), i8* %107, i32 %109)
%111 = getelementptr inbounds %struct.girl, %struct.girl* %22, i64 0, i32 0
%112 = load i8*, i8** %111
%113 = getelementptr inbounds [10 x %struct.girl], [10 x %struct.girl]* %2, i64 0, i64 8, i32 1
%114 = load i32, i32* %113
%115 = call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([9 x i8], [9 x i8]* @.str.10, i64 0, i64 0), i8* %112, i32 %114)
%116 = getelementptr inbounds %struct.girl, %struct.girl* %24, i64 0, i32 0
%117 = load i8*, i8** %116
%118 = getelementptr inbounds [10 x %struct.girl], [10 x %struct.girl]* %2, i64 0, i64 9, i32 1
%119 = load i32, i32* %118
%120 = call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([9 x i8], [9 x i8]* @.str.10, i64 0, i64 0), i8* %117, i32 %119)
ret void
}