char *getancestor(r1, r2, r3)
char *r1, *r2, *r3;
{
  int l1, l2, l3;
  char t1[30], t2[30];
  l1 = countnumflds(r1);
  l2 = countnumflds(r2);
  if ((l1 <= 2 && l2 <= 2) || (cmpnum(r1, r2) == 0)) {
    error("Common ancestor of %s and %s undefined.", r1, r2);
    return 0;
  }
  l3 = 0;
  while ((cmpnumfld(r1, r2, l3 + 1) == 0) && (cmpnumfld(r1, r2, l3 + 2) == 0)) {
    l3 = l3 + 2;
  }
  if (l3 == 0) {
    partialno(t1, r1, l1 > 2 ? 2 : l1);
    partialno(t2, r2, l2 > 2 ? 2 : l2);
    if (cmpnum(t1, t2) < 0)
      strcpy(r3, t1);
    else
      strcpy(r3, t2);
    if ((cmpnum(r3, r1) == 0) || (cmpnum(r3, r2) == 0)) {
      error("Ancestor for %s and %s undefined.", r1, r2);
      return 0;
    }
    return r3;
  } else {
    if (cmpnumfld(r1, r2, l3 + 1) == 0) {
      error("Ancestor for %s and %s undefined.", r1, r2);
      return 0;
    }
    return (partialno(r3, r1, l3));
  }
}


x86 assembly (clang, -O0):
<getancestor>:
push   %rbp
mov    %rsp,%rbp
sub    $0xb0,%rsp
mov    %rdi,-0x10(%rbp)
mov    %rsi,-0x18(%rbp)
mov    %rdx,-0x20(%rbp)
mov    -0x10(%rbp),%rdi
mov    $0x0,%al
call   1060 <countnumflds@plt>
mov    %eax,-0x24(%rbp)
mov    -0x18(%rbp),%rdi
mov    $0x0,%al
call   1060 <countnumflds@plt>
mov    %eax,-0x28(%rbp)
cmpl   $0x2,-0x24(%rbp)
jg     11a7 <getancestor+0x47>
cmpl   $0x2,-0x28(%rbp)
jle    11bf <getancestor+0x5f>
mov    -0x10(%rbp),%rdi
mov    -0x18(%rbp),%rsi
mov    $0x0,%al
call   1050 <cmpnum@plt>
cmp    $0x0,%eax
jne    11e2 <getancestor+0x82>
mov    -0x10(%rbp),%rsi
mov    -0x18(%rbp),%rdx
lea    0xe32(%rip),%rdi
mov    $0x0,%al
call   1070 <error@plt>
movq   $0x0,-0x8(%rbp)
jmp    13e6 <getancestor+0x286>
movl   $0x0,-0x2c(%rbp)
mov    -0x10(%rbp),%rdi
mov    -0x18(%rbp),%rsi
mov    -0x2c(%rbp),%edx
add    $0x1,%edx
mov    $0x0,%al
call   1040 <cmpnumfld@plt>
mov    %eax,%ecx
xor    %eax,%eax
cmp    $0x0,%ecx
mov    %al,-0x71(%rbp)
jne    122c <getancestor+0xcc>
mov    -0x10(%rbp),%rdi
mov    -0x18(%rbp),%rsi
mov    -0x2c(%rbp),%edx
add    $0x2,%edx
mov    $0x0,%al
call   1040 <cmpnumfld@plt>
cmp    $0x0,%eax
sete   %al
mov    %al,-0x71(%rbp)
mov    -0x71(%rbp),%al
test   $0x1,%al
jne    123c <getancestor+0xdc>
jmp    124a <getancestor+0xea>
mov    -0x2c(%rbp),%eax
add    $0x2,%eax
mov    %eax,-0x2c(%rbp)
jmp    11e9 <getancestor+0x89>
cmpl   $0x0,-0x2c(%rbp)
jne    138d <getancestor+0x22d>
lea    -0x50(%rbp),%rax
mov    %rax,-0x88(%rbp)
mov    -0x10(%rbp),%rax
mov    %rax,-0x80(%rbp)
cmpl   $0x2,-0x24(%rbp)
jle    1281 <getancestor+0x121>
mov    $0x2,%eax
mov    %eax,-0x8c(%rbp)
jmp    128a <getancestor+0x12a>
mov    -0x24(%rbp),%eax
mov    %eax,-0x8c(%rbp)
mov    -0x80(%rbp),%rsi
mov    -0x88(%rbp),%rdi
mov    -0x8c(%rbp),%edx
mov    $0x0,%al
call   1080 <partialno@plt>
lea    -0x70(%rbp),%rax
mov    %rax,-0xa0(%rbp)
mov    -0x18(%rbp),%rax
mov    %rax,-0x98(%rbp)
cmpl   $0x2,-0x28(%rbp)
jle    12d2 <getancestor+0x172>
mov    $0x2,%eax
mov    %eax,-0xa4(%rbp)
jmp    12db <getancestor+0x17b>
mov    -0x28(%rbp),%eax
mov    %eax,-0xa4(%rbp)
mov    -0x98(%rbp),%rsi
mov    -0xa0(%rbp),%rdi
mov    -0xa4(%rbp),%edx
mov    $0x0,%al
call   1080 <partialno@plt>
lea    -0x50(%rbp),%rdi
lea    -0x70(%rbp),%rsi
mov    $0x0,%al
call   1050 <cmpnum@plt>
cmp    $0x0,%eax
jge    1320 <getancestor+0x1c0>
mov    -0x20(%rbp),%rdi
lea    -0x50(%rbp),%rsi
call   1030 <strcpy@plt>
jmp    132d <getancestor+0x1cd>
mov    -0x20(%rbp),%rdi
lea    -0x70(%rbp),%rsi
call   1030 <strcpy@plt>
mov    -0x20(%rbp),%rdi
mov    -0x10(%rbp),%rsi
mov    $0x0,%al
call   1050 <cmpnum@plt>
cmp    $0x0,%eax
je     135d <getancestor+0x1fd>
mov    -0x20(%rbp),%rdi
mov    -0x18(%rbp),%rsi
mov    $0x0,%al
call   1050 <cmpnum@plt>
cmp    $0x0,%eax
jne    1380 <getancestor+0x220>
mov    -0x10(%rbp),%rsi
mov    -0x18(%rbp),%rdx
lea    0xcbc(%rip),%rdi
mov    $0x0,%al
call   1070 <error@plt>
movq   $0x0,-0x8(%rbp)
jmp    13e6 <getancestor+0x286>
mov    -0x20(%rbp),%rax
mov    %rax,-0x8(%rbp)
jmp    13e6 <getancestor+0x286>
mov    -0x10(%rbp),%rdi
mov    -0x18(%rbp),%rsi
mov    -0x2c(%rbp),%edx
add    $0x1,%edx
mov    $0x0,%al
call   1040 <cmpnumfld@plt>
cmp    $0x0,%eax
jne    13ce <getancestor+0x26e>
mov    -0x10(%rbp),%rsi
mov    -0x18(%rbp),%rdx
lea    0xc6e(%rip),%rdi
mov    $0x0,%al
call   1070 <error@plt>
movq   $0x0,-0x8(%rbp)
jmp    13e6 <getancestor+0x286>
mov    -0x20(%rbp),%rdi
mov    -0x10(%rbp),%rsi
mov    -0x2c(%rbp),%edx
mov    $0x0,%al
call   1080 <partialno@plt>
cltq
mov    %rax,-0x8(%rbp)
mov    -0x8(%rbp),%rax
add    $0xb0,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<getancestor>:
push   %rbp
push   %r15
push   %r14
push   %r13
push   %r12
push   %rbx
sub    $0x58,%rsp
mov    %rdx,%r14
mov    %rsi,%r15
mov    %rdi,%rbx
xor    %eax,%eax
call   1060 <countnumflds@plt>
mov    %eax,%r13d
mov    %r15,%rdi
xor    %eax,%eax
call   1060 <countnumflds@plt>
mov    %eax,%ebp
cmp    $0x2,%r13d
jg     119c <getancestor+0x3c>
cmp    $0x3,%ebp
jl     1225 <getancestor+0xc5>
mov    %rbx,%rdi
mov    %r15,%rsi
xor    %eax,%eax
call   1050 <cmpnum@plt>
test   %eax,%eax
je     1225 <getancestor+0xc5>
mov    %ebp,0x4(%rsp)
mov    %r14,0x8(%rsp)
xor    %r12d,%r12d
nopl   0x0(%rax)
mov    %r12d,%ebp
lea    0x1(%rbp),%r14d
mov    %rbx,%rdi
mov    %r15,%rsi
mov    %r14d,%edx
xor    %eax,%eax
call   1040 <cmpnumfld@plt>
test   %eax,%eax
jne    11f3 <getancestor+0x93>
lea    0x2(%rbp),%r12d
mov    %rbx,%rdi
mov    %r15,%rsi
mov    %r12d,%edx
xor    %eax,%eax
call   1040 <cmpnumfld@plt>
test   %eax,%eax
je     11c0 <getancestor+0x60>
test   %ebp,%ebp
je     124d <getancestor+0xed>
mov    %rbx,%rdi
mov    %r15,%rsi
mov    %r14d,%edx
xor    %eax,%eax
call   1040 <cmpnumfld@plt>
test   %eax,%eax
je     12d9 <getancestor+0x179>
mov    0x8(%rsp),%rdi
mov    %rbx,%rsi
mov    %ebp,%edx
xor    %eax,%eax
call   1080 <partialno@plt>
movslq %eax,%rbp
jmp    123b <getancestor+0xdb>
lea    0xdd4(%rip),%rdi
xor    %ebp,%ebp
mov    %rbx,%rsi
mov    %r15,%rdx
xor    %eax,%eax
call   1070 <error@plt>
mov    %rbp,%rax
add    $0x58,%rsp
pop    %rbx
pop    %r12
pop    %r13
pop    %r14
pop    %r15
pop    %rbp
ret
cmp    $0x2,%r13d
mov    $0x2,%r12d
cmovge %r12d,%r13d
lea    0x30(%rsp),%r14
mov    %r14,%rdi
mov    %rbx,%rsi
mov    %r13d,%edx
xor    %eax,%eax
call   1080 <partialno@plt>
mov    0x4(%rsp),%eax
cmp    $0x2,%eax
cmovl  %eax,%r12d
lea    0x10(%rsp),%r13
mov    %r13,%rdi
mov    %r15,%rsi
mov    %r12d,%edx
xor    %eax,%eax
call   1080 <partialno@plt>
mov    %r14,%rdi
mov    %r13,%rsi
xor    %eax,%eax
call   1050 <cmpnum@plt>
test   %eax,%eax
cmovs  %r14,%r13
mov    0x8(%rsp),%rbp
mov    %rbp,%rdi
mov    %r13,%rsi
call   1030 <strcpy@plt>
mov    %rbp,%rdi
mov    %rbx,%rsi
xor    %eax,%eax
call   1050 <cmpnum@plt>
test   %eax,%eax
je     12d9 <getancestor+0x179>
mov    %rbp,%rdi
mov    %r15,%rsi
xor    %eax,%eax
call   1050 <cmpnum@plt>
test   %eax,%eax
jne    123b <getancestor+0xdb>
lea    0xd48(%rip),%rdi
jmp    122c <getancestor+0xcc>

LLVM IR (-O0):
@.str = [40 x i8] c"Common ancestor of %s and %s undefined.\00"
@.str.1 = [34 x i8] c"Ancestor for %s and %s undefined.\00"
define i8* @getancestor(i8* %0, i8* %1, i8* %2) {
%4 = alloca i8*
%5 = alloca i8*
%6 = alloca i8*
%7 = alloca i8*
%8 = alloca i32
%9 = alloca i32
%10 = alloca i32
%11 = alloca [30 x i8]
%12 = alloca [30 x i8]
store i8* %0, i8** %5
store i8* %1, i8** %6
store i8* %2, i8** %7
%13 = load i8*, i8** %5
%14 = call i32 (i8*, ...) bitcast (i32 (...)* @countnumflds to i32 (i8*, ...)*)(i8* %13)
store i32 %14, i32* %8
%15 = load i8*, i8** %6
%16 = call i32 (i8*, ...) bitcast (i32 (...)* @countnumflds to i32 (i8*, ...)*)(i8* %15)
store i32 %16, i32* %9
%17 = load i32, i32* %8
%18 = icmp sle i32 %17, 2
br i1 %18, label %19, label %22
19: ; preds = %3
%20 = load i32, i32* %9
%21 = icmp sle i32 %20, 2
br i1 %21, label %27, label %22
22: ; preds = %19, %3
%23 = load i8*, i8** %5
%24 = load i8*, i8** %6
%25 = call i32 (i8*, i8*, ...) bitcast (i32 (...)* @cmpnum to i32 (i8*, i8*, ...)*)(i8* %23, i8* %24)
%26 = icmp eq i32 %25, 0
br i1 %26, label %27, label %31
27: ; preds = %22, %19
%28 = load i8*, i8** %5
%29 = load i8*, i8** %6
%30 = call i32 (i8*, i8*, i8*, ...) bitcast (i32 (...)* @error to i32 (i8*, i8*, i8*, ...)*)(i8* getelementptr inbounds ([40 x i8], [40 x i8]* @.str, i64 0, i64 0), i8* %28, i8* %29)
store i8* null, i8** %4
br label %121
31: ; preds = %22
store i32 0, i32* %10
br label %32
32: ; preds = %48, %31
%33 = load i8*, i8** %5
%34 = load i8*, i8** %6
%35 = load i32, i32* %10
%36 = add nsw i32 %35, 1
%37 = call i32 (i8*, i8*, i32, ...) bitcast (i32 (...)* @cmpnumfld to i32 (i8*, i8*, i32, ...)*)(i8* %33, i8* %34, i32 %36)
%38 = icmp eq i32 %37, 0
br i1 %38, label %39, label %46
39: ; preds = %32
%40 = load i8*, i8** %5
%41 = load i8*, i8** %6
%42 = load i32, i32* %10
%43 = add nsw i32 %42, 2
%44 = call i32 (i8*, i8*, i32, ...) bitcast (i32 (...)* @cmpnumfld to i32 (i8*, i8*, i32, ...)*)(i8* %40, i8* %41, i32 %43)
%45 = icmp eq i32 %44, 0
br label %46
46: ; preds = %39, %32
%47 = phi i1 [ false, %32 ], [ %45, %39 ]
br i1 %47, label %48, label %51
48: ; preds = %46
%49 = load i32, i32* %10
%50 = add nsw i32 %49, 2
store i32 %50, i32* %10
br label %32
51: ; preds = %46
%52 = load i32, i32* %10
%53 = icmp eq i32 %52, 0
br i1 %53, label %54, label %103
54: ; preds = %51
%55 = getelementptr inbounds [30 x i8], [30 x i8]* %11, i64 0, i64 0
%56 = load i8*, i8** %5
%57 = load i32, i32* %8
%58 = icmp sgt i32 %57, 2
br i1 %58, label %59, label %60
59: ; preds = %54
br label %62
60: ; preds = %54
%61 = load i32, i32* %8
br label %62
62: ; preds = %60, %59
%63 = phi i32 [ 2, %59 ], [ %61, %60 ]
%64 = call i32 (i8*, i8*, i32, ...) bitcast (i32 (...)* @partialno to i32 (i8*, i8*, i32, ...)*)(i8* %55, i8* %56, i32 %63)
%65 = getelementptr inbounds [30 x i8], [30 x i8]* %12, i64 0, i64 0
%66 = load i8*, i8** %6
%67 = load i32, i32* %9
%68 = icmp sgt i32 %67, 2
br i1 %68, label %69, label %70
69: ; preds = %62
br label %72
70: ; preds = %62
%71 = load i32, i32* %9
br label %72
72: ; preds = %70, %69
%73 = phi i32 [ 2, %69 ], [ %71, %70 ]
%74 = call i32 (i8*, i8*, i32, ...) bitcast (i32 (...)* @partialno to i32 (i8*, i8*, i32, ...)*)(i8* %65, i8* %66, i32 %73)
%75 = getelementptr inbounds [30 x i8], [30 x i8]* %11, i64 0, i64 0
%76 = getelementptr inbounds [30 x i8], [30 x i8]* %12, i64 0, i64 0
%77 = call i32 (i8*, i8*, ...) bitcast (i32 (...)* @cmpnum to i32 (i8*, i8*, ...)*)(i8* %75, i8* %76)
%78 = icmp slt i32 %77, 0
br i1 %78, label %79, label %83
79: ; preds = %72
%80 = load i8*, i8** %7
%81 = getelementptr inbounds [30 x i8], [30 x i8]* %11, i64 0, i64 0
%82 = call i8* @strcpy(i8* %80, i8* %81)
br label %87
83: ; preds = %72
%84 = load i8*, i8** %7
%85 = getelementptr inbounds [30 x i8], [30 x i8]* %12, i64 0, i64 0
%86 = call i8* @strcpy(i8* %84, i8* %85)
br label %87
87: ; preds = %83, %79
%88 = load i8*, i8** %7
%89 = load i8*, i8** %5
%90 = call i32 (i8*, i8*, ...) bitcast (i32 (...)* @cmpnum to i32 (i8*, i8*, ...)*)(i8* %88, i8* %89)
%91 = icmp eq i32 %90, 0
br i1 %91, label %97, label %92
92: ; preds = %87
%93 = load i8*, i8** %7
%94 = load i8*, i8** %6
%95 = call i32 (i8*, i8*, ...) bitcast (i32 (...)* @cmpnum to i32 (i8*, i8*, ...)*)(i8* %93, i8* %94)
%96 = icmp eq i32 %95, 0
br i1 %96, label %97, label %101
97: ; preds = %92, %87
%98 = load i8*, i8** %5
%99 = load i8*, i8** %6
%100 = call i32 (i8*, i8*, i8*, ...) bitcast (i32 (...)* @error to i32 (i8*, i8*, i8*, ...)*)(i8* getelementptr inbounds ([34 x i8], [34 x i8]* @.str.1, i64 0, i64 0), i8* %98, i8* %99)
store i8* null, i8** %4
br label %121
101: ; preds = %92
%102 = load i8*, i8** %7
store i8* %102, i8** %4
br label %121
103: ; preds = %51
%104 = load i8*, i8** %5
%105 = load i8*, i8** %6
%106 = load i32, i32* %10
%107 = add nsw i32 %106, 1
%108 = call i32 (i8*, i8*, i32, ...) bitcast (i32 (...)* @cmpnumfld to i32 (i8*, i8*, i32, ...)*)(i8* %104, i8* %105, i32 %107)
%109 = icmp eq i32 %108, 0
br i1 %109, label %110, label %114
110: ; preds = %103
%111 = load i8*, i8** %5
%112 = load i8*, i8** %6
%113 = call i32 (i8*, i8*, i8*, ...) bitcast (i32 (...)* @error to i32 (i8*, i8*, i8*, ...)*)(i8* getelementptr inbounds ([34 x i8], [34 x i8]* @.str.1, i64 0, i64 0), i8* %111, i8* %112)
store i8* null, i8** %4
br label %121
114: ; preds = %103
%115 = load i8*, i8** %7
%116 = load i8*, i8** %5
%117 = load i32, i32* %10
%118 = call i32 (i8*, i8*, i32, ...) bitcast (i32 (...)* @partialno to i32 (i8*, i8*, i32, ...)*)(i8* %115, i8* %116, i32 %117)
%119 = sext i32 %118 to i64
%120 = inttoptr i64 %119 to i8*
store i8* %120, i8** %4
br label %121
121: ; preds = %114, %110, %101, %97, %27
%122 = load i8*, i8** %4
ret i8* %122
}

LLVM IR (-O2):
@.str = [40 x i8] c"Common ancestor of %s and %s undefined.\00"
@.str.1 = [34 x i8] c"Ancestor for %s and %s undefined.\00"
define i8* @getancestor(i8* %0, i8* %1, i8* %2) {
%4 = alloca [30 x i8]
%5 = alloca [30 x i8]
%6 = getelementptr inbounds [30 x i8], [30 x i8]* %4, i64 0, i64 0
%7 = getelementptr inbounds [30 x i8], [30 x i8]* %5, i64 0, i64 0
%8 = tail call i32 (i8*, ...) bitcast (i32 (...)* @countnumflds to i32 (i8*, ...)*)(i8* %0)
%9 = tail call i32 (i8*, ...) bitcast (i32 (...)* @countnumflds to i32 (i8*, ...)*)(i8* %1)
%10 = icmp slt i32 %8, 3
%11 = icmp slt i32 %9, 3
%12 = select i1 %10, i1 %11, i1 false
br i1 %12, label %16, label %13
13: ; preds = %3
%14 = tail call i32 (i8*, i8*, ...) bitcast (i32 (...)* @cmpnum to i32 (i8*, i8*, ...)*)(i8* %0, i8* %1)
%15 = icmp eq i32 %14, 0
br i1 %15, label %16, label %18
16: ; preds = %3, %13
%17 = tail call i32 (i8*, i8*, i8*, ...) bitcast (i32 (...)* @error to i32 (i8*, i8*, i8*, ...)*)(i8* getelementptr inbounds ([40 x i8], [40 x i8]* @.str, i64 0, i64 0), i8* %0, i8* %1)
br label %56
18: ; preds = %13, %23
%19 = phi i32 [ %24, %23 ], [ 0, %13 ]
%20 = or i32 %19, 1
%21 = tail call i32 (i8*, i8*, i32, ...) bitcast (i32 (...)* @cmpnumfld to i32 (i8*, i8*, i32, ...)*)(i8* %0, i8* %1, i32 %20)
%22 = icmp eq i32 %21, 0
br i1 %22, label %23, label %27
23: ; preds = %18
%24 = add nuw nsw i32 %19, 2
%25 = tail call i32 (i8*, i8*, i32, ...) bitcast (i32 (...)* @cmpnumfld to i32 (i8*, i8*, i32, ...)*)(i8* %0, i8* %1, i32 %24)
%26 = icmp eq i32 %25, 0
br i1 %26, label %18, label %27
27: ; preds = %18, %23
%28 = icmp eq i32 %19, 0
br i1 %28, label %29, label %47
29: ; preds = %27
%30 = icmp slt i32 %8, 2
%31 = select i1 %30, i32 %8, i32 2
%32 = call i32 (i8*, i8*, i32, ...) bitcast (i32 (...)* @partialno to i32 (i8*, i8*, i32, ...)*)(i8* %6, i8* %0, i32 %31)
%33 = icmp slt i32 %9, 2
%34 = select i1 %33, i32 %9, i32 2
%35 = call i32 (i8*, i8*, i32, ...) bitcast (i32 (...)* @partialno to i32 (i8*, i8*, i32, ...)*)(i8* %7, i8* %1, i32 %34)
%36 = call i32 (i8*, i8*, ...) bitcast (i32 (...)* @cmpnum to i32 (i8*, i8*, ...)*)(i8* %6, i8* %7)
%37 = icmp slt i32 %36, 0
%38 = select i1 %37, i8* %6, i8* %7
%39 = call i8* @strcpy(i8* dereferenceable(1) %2, i8* %38)
%40 = call i32 (i8*, i8*, ...) bitcast (i32 (...)* @cmpnum to i32 (i8*, i8*, ...)*)(i8* %2, i8* %0)
%41 = icmp eq i32 %40, 0
br i1 %41, label %45, label %42
42: ; preds = %29
%43 = call i32 (i8*, i8*, ...) bitcast (i32 (...)* @cmpnum to i32 (i8*, i8*, ...)*)(i8* %2, i8* %1)
%44 = icmp eq i32 %43, 0
br i1 %44, label %45, label %56
45: ; preds = %42, %29
%46 = call i32 (i8*, i8*, i8*, ...) bitcast (i32 (...)* @error to i32 (i8*, i8*, i8*, ...)*)(i8* getelementptr inbounds ([34 x i8], [34 x i8]* @.str.1, i64 0, i64 0), i8* %0, i8* %1)
br label %56
47: ; preds = %27
%48 = tail call i32 (i8*, i8*, i32, ...) bitcast (i32 (...)* @cmpnumfld to i32 (i8*, i8*, i32, ...)*)(i8* %0, i8* %1, i32 %20)
%49 = icmp eq i32 %48, 0
br i1 %49, label %50, label %52
50: ; preds = %47
%51 = tail call i32 (i8*, i8*, i8*, ...) bitcast (i32 (...)* @error to i32 (i8*, i8*, i8*, ...)*)(i8* getelementptr inbounds ([34 x i8], [34 x i8]* @.str.1, i64 0, i64 0), i8* %0, i8* %1)
br label %56
52: ; preds = %47
%53 = tail call i32 (i8*, i8*, i32, ...) bitcast (i32 (...)* @partialno to i32 (i8*, i8*, i32, ...)*)(i8* %2, i8* %0, i32 %19)
%54 = sext i32 %53 to i64
%55 = inttoptr i64 %54 to i8*
br label %56
56: ; preds = %42, %52, %50, %45, %16
%57 = phi i8* [ null, %16 ], [ null, %45 ], [ null, %50 ], [ %55, %52 ], [ %2, %42 ]
ret i8* %57
}