#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 atoi(char *);
scalar_t__ malloc(scalar_t__);
int /*<<< orphan*/ sprintf(char *, char *, int, int);
int /*<<< orphan*/ strcat(char *, char *);
char *strchr(char *, char);
int /*<<< orphan*/ strcpy(char *, char *);
scalar_t__ strlen(char *);
char *very_ugly_ipv4_code(char *inip, int bitmask, int format_as_chainname) {
  int dot = 0, n;
  char *ip, *outip, *outptr, *fmt;
  if (inip) {
    (ip = (char *)malloc(strlen(inip) + 1), *ip = 0);
    strcpy(ip, inip);
  };
  if (ip && *ip && bitmask >= 0 && bitmask <= 32) {
    (outip = (char *)malloc(strlen(ip) + 10), *outip = 0);
  } else {
    return "undefined";
  }
  outptr = outip;
  while (ip && *ip) {
    if (*ip == '.') {
      if (dot < (bitmask / 8 - 1)) {
        if (format_as_chainname) {
          *outptr = '_';
        } else {
          *outptr = '.';
        }
        outptr++;
        dot++;
      } else {
        char *cutdot = strchr(ip + 1, '.');
        if (cutdot) {
          *cutdot = '\0';
        }
        if (format_as_chainname) {
          fmt = "_%d_%d";
        } else {
          fmt = ".%d";
        }
        if (bitmask % 8) {
          n = atoi(ip + 1) - atoi(ip + 1) % (1 << (8 - bitmask % 8));
        } else {
          n = 0;
        }
        sprintf(outptr, fmt, n, bitmask);
        if (!format_as_chainname) {
          while (bitmask < 24) {
            strcat(outip, ".0");
            bitmask += 8;
          }
        }
        return outip;
      }
    } else {
      *outptr = *ip;
      outptr++;
    }
    ip++;
  }
  *outptr = '\0';
  return outip;
}


x86 assembly (clang, -O0):
<very_ugly_ipv4_code>:
push   %rbp
mov    %rsp,%rbp
sub    $0x60,%rsp
mov    %rdi,-0x10(%rbp)
mov    %esi,-0x14(%rbp)
mov    %edx,-0x18(%rbp)
movl   $0x0,-0x1c(%rbp)
cmpq   $0x0,-0x10(%rbp)
je     11c1 <very_ugly_ipv4_code+0x51>
mov    -0x10(%rbp),%rdi
call   1040 <strlen@plt>
mov    %rax,%rdi
add    $0x1,%rdi
call   1060 <malloc@plt>
mov    %rax,-0x28(%rbp)
mov    -0x28(%rbp),%rax
movb   $0x0,(%rax)
mov    -0x28(%rbp),%rdi
mov    -0x10(%rbp),%rsi
call   1030 <strcpy@plt>
cmpq   $0x0,-0x28(%rbp)
je     1215 <very_ugly_ipv4_code+0xa5>
mov    -0x28(%rbp),%rax
movsbl (%rax),%eax
cmp    $0x0,%eax
je     1215 <very_ugly_ipv4_code+0xa5>
cmpl   $0x0,-0x14(%rbp)
jl     1215 <very_ugly_ipv4_code+0xa5>
cmpl   $0x20,-0x14(%rbp)
jg     1215 <very_ugly_ipv4_code+0xa5>
mov    -0x28(%rbp),%rdi
call   1040 <strlen@plt>
mov    %rax,%rdi
add    $0xa,%rdi
call   1060 <malloc@plt>
mov    %rax,-0x30(%rbp)
mov    -0x30(%rbp),%rax
movb   $0x0,(%rax)
jmp    1225 <very_ugly_ipv4_code+0xb5>
lea    0xde4(%rip),%rax
mov    %rax,-0x8(%rbp)
jmp    1414 <very_ugly_ipv4_code+0x2a4>
mov    -0x30(%rbp),%rax
mov    %rax,-0x38(%rbp)
xor    %eax,%eax
cmpq   $0x0,-0x28(%rbp)
mov    %al,-0x49(%rbp)
je     124d <very_ugly_ipv4_code+0xdd>
mov    -0x28(%rbp),%rax
movsbl (%rax),%eax
cmp    $0x0,%eax
setne  %al
mov    %al,-0x49(%rbp)
mov    -0x49(%rbp),%al
test   $0x1,%al
jne    125d <very_ugly_ipv4_code+0xed>
jmp    1405 <very_ugly_ipv4_code+0x295>
mov    -0x28(%rbp),%rax
movsbl (%rax),%eax
cmp    $0x2e,%eax
jne    13dc <very_ugly_ipv4_code+0x26c>
mov    -0x1c(%rbp),%eax
mov    %eax,-0x50(%rbp)
mov    -0x14(%rbp),%eax
mov    $0x8,%ecx
cltd
idiv   %ecx
mov    %eax,%ecx
mov    -0x50(%rbp),%eax
sub    $0x1,%ecx
cmp    %ecx,%eax
jge    12c5 <very_ugly_ipv4_code+0x155>
cmpl   $0x0,-0x18(%rbp)
je     12a4 <very_ugly_ipv4_code+0x134>
mov    -0x38(%rbp),%rax
movb   $0x5f,(%rax)
jmp    12ab <very_ugly_ipv4_code+0x13b>
mov    -0x38(%rbp),%rax
movb   $0x2e,(%rax)
mov    -0x38(%rbp),%rax
add    $0x1,%rax
mov    %rax,-0x38(%rbp)
mov    -0x1c(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0x1c(%rbp)
jmp    13d7 <very_ugly_ipv4_code+0x267>
mov    -0x28(%rbp),%rdi
add    $0x1,%rdi
mov    $0x2e,%esi
call   1050 <strchr@plt>
mov    %rax,-0x48(%rbp)
cmpq   $0x0,-0x48(%rbp)
je     12ed <very_ugly_ipv4_code+0x17d>
mov    -0x48(%rbp),%rax
movb   $0x0,(%rax)
cmpl   $0x0,-0x18(%rbp)
je     1307 <very_ugly_ipv4_code+0x197>
lea    0xd0c(%rip),%rax
mov    %rax,-0x40(%rbp)
jmp    1312 <very_ugly_ipv4_code+0x1a2>
lea    0xd03(%rip),%rax
mov    %rax,-0x40(%rbp)
mov    -0x14(%rbp),%eax
mov    $0x8,%ecx
cltd
idiv   %ecx
cmp    $0x0,%edx
je     1374 <very_ugly_ipv4_code+0x204>
mov    -0x28(%rbp),%rdi
add    $0x1,%rdi
call   1070 <atoi@plt>
mov    %eax,-0x54(%rbp)
mov    -0x28(%rbp),%rdi
add    $0x1,%rdi
call   1070 <atoi@plt>
mov    %eax,-0x58(%rbp)
mov    -0x14(%rbp),%eax
mov    $0x8,%ecx
cltd
idiv   %ecx
mov    -0x58(%rbp),%eax
mov    $0x8,%ecx
sub    %edx,%ecx
mov    $0x1,%edx
shl    %cl,%edx
mov    %edx,%ecx
cltd
idiv   %ecx
mov    -0x54(%rbp),%eax
sub    %edx,%eax
mov    %eax,-0x20(%rbp)
jmp    137b <very_ugly_ipv4_code+0x20b>
movl   $0x0,-0x20(%rbp)
mov    -0x38(%rbp),%rdi
mov    -0x40(%rbp),%rsi
mov    -0x20(%rbp),%edx
mov    -0x14(%rbp),%ecx
call   1090 <sprintf@plt>
cmpl   $0x0,-0x18(%rbp)
jne    13ca <very_ugly_ipv4_code+0x25a>
jmp    139d <very_ugly_ipv4_code+0x22d>
cmpl   $0x18,-0x14(%rbp)
jge    13c5 <very_ugly_ipv4_code+0x255>
mov    -0x30(%rbp),%rdi
lea    0xc63(%rip),%rsi
call   1080 <strcat@plt>
mov    -0x14(%rbp),%eax
add    $0x8,%eax
mov    %eax,-0x14(%rbp)
jmp    139d <very_ugly_ipv4_code+0x22d>
jmp    13ca <very_ugly_ipv4_code+0x25a>
mov    -0x30(%rbp),%rax
mov    %rax,-0x8(%rbp)
jmp    1414 <very_ugly_ipv4_code+0x2a4>
jmp    13f4 <very_ugly_ipv4_code+0x284>
mov    -0x28(%rbp),%rax
mov    (%rax),%cl
mov    -0x38(%rbp),%rax
mov    %cl,(%rax)
mov    -0x38(%rbp),%rax
add    $0x1,%rax
mov    %rax,-0x38(%rbp)
mov    -0x28(%rbp),%rax
add    $0x1,%rax
mov    %rax,-0x28(%rbp)
jmp    122d <very_ugly_ipv4_code+0xbd>
mov    -0x38(%rbp),%rax
movb   $0x0,(%rax)
mov    -0x30(%rbp),%rax
mov    %rax,-0x8(%rbp)
mov    -0x8(%rbp),%rax
add    $0x60,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<very_ugly_ipv4_code>:
push   %rbp
push   %r15
push   %r14
push   %r13
push   %r12
push   %rbx
push   %rax
mov    %edx,%r15d
mov    %esi,%r12d
mov    %rdi,%rbx
call   1040 <strlen@plt>
lea    0x1(%rax),%rdi
call   1060 <malloc@plt>
mov    %rax,%rbp
movb   $0x0,(%rax)
mov    %rax,%rdi
mov    %rbx,%rsi
call   1030 <strcpy@plt>
lea    0xe56(%rip),%r14
cmp    $0x20,%r12d
ja     12d5 <very_ugly_ipv4_code+0x165>
cmpb   $0x0,0x0(%rbp)
je     12d5 <very_ugly_ipv4_code+0x165>
mov    %rbp,%rdi
call   1040 <strlen@plt>
lea    0xa(%rax),%rdi
call   1060 <malloc@plt>
mov    %rax,%r14
movb   $0x0,(%rax)
mov    %r12d,%eax
shr    $0x3,%eax
and    $0x1f,%eax
add    $0xffffffff,%eax
test   %r15d,%r15d
mov    $0x2e,%ecx
mov    $0x5f,%esi
cmove  %ecx,%esi
add    $0x1,%rbp
xor    %edx,%edx
mov    %r14,%rbx
jmp    1212 <very_ugly_ipv4_code+0xa2>
nopl   0x0(%rax)
cmp    %eax,%edx
jge    122b <very_ugly_ipv4_code+0xbb>
mov    %sil,(%rbx)
add    $0x1,%edx
add    $0x1,%rbx
add    $0x1,%rbp
movzbl -0x1(%rbp),%ecx
cmp    $0x2e,%cl
je     1200 <very_ugly_ipv4_code+0x90>
test   %cl,%cl
je     1223 <very_ugly_ipv4_code+0xb3>
mov    %cl,(%rbx)
jmp    120a <very_ugly_ipv4_code+0x9a>
movb   $0x0,(%rbx)
jmp    12d5 <very_ugly_ipv4_code+0x165>
mov    %rbp,%rdi
mov    $0x2e,%esi
call   1050 <strchr@plt>
test   %rax,%rax
je     1240 <very_ugly_ipv4_code+0xd0>
movb   $0x0,(%rax)
mov    %r15d,0x4(%rsp)
test   %r15d,%r15d
lea    0xdc2(%rip),%rax
lea    0xdb4(%rip),%r13
cmove  %rax,%r13
lea    0x7(%r12),%eax
test   %r12d,%r12d
cmovns %r12d,%eax
and    $0xfffffff8,%eax
mov    %r12d,%r15d
sub    %eax,%r15d
je     128e <very_ugly_ipv4_code+0x11e>
mov    %rbp,%rdi
call   1070 <atoi@plt>
mov    $0x8,%cl
sub    %r15b,%cl
mov    $0x1,%esi
shl    %cl,%esi
mov    %eax,%ecx
cltd
idiv   %esi
sub    %edx,%ecx
jmp    1290 <very_ugly_ipv4_code+0x120>
xor    %ecx,%ecx
mov    %rbx,%rdi
mov    %r13,%rsi
mov    %ecx,%edx
mov    %r12d,%ecx
call   1090 <sprintf@plt>
cmp    $0x17,%r12d
jg     12d5 <very_ugly_ipv4_code+0x165>
cmpl   $0x0,0x4(%rsp)
jne    12d5 <very_ugly_ipv4_code+0x165>
add    $0xfffffff8,%r12d
lea    0xd5d(%rip),%rbx
nopl   0x0(%rax,%rax,1)
mov    %r14,%rdi
mov    %rbx,%rsi
call   1080 <strcat@plt>
add    $0x8,%r12d
cmp    $0x10,%r12d
jl     12c0 <very_ugly_ipv4_code+0x150>
mov    %r14,%rax
add    $0x8,%rsp
pop    %rbx
pop    %r12
pop    %r13
pop    %r14
pop    %r15
pop    %rbp
ret

LLVM IR (-O0):
@.str = [10 x i8] c"undefined\00"
@.str.1 = [7 x i8] c"_%d_%d\00"
@.str.2 = [4 x i8] c".%d\00"
@.str.3 = [3 x i8] c".0\00"
define i8* @very_ugly_ipv4_code(i8* %0, i32 %1, i32 %2) {
%4 = alloca i8*
%5 = alloca i8*
%6 = alloca i32
%7 = alloca i32
%8 = alloca i32
%9 = alloca i32
%10 = alloca i8*
%11 = alloca i8*
%12 = alloca i8*
%13 = alloca i8*
%14 = alloca i8*
store i8* %0, i8** %5
store i32 %1, i32* %6
store i32 %2, i32* %7
store i32 0, i32* %8
%15 = load i8*, i8** %5
%16 = icmp ne i8* %15, null
br i1 %16, label %17, label %27
17: ; preds = %3
%18 = load i8*, i8** %5
%19 = call i64 @strlen(i8* %18)
%20 = add nsw i64 %19, 1
%21 = call i64 @malloc(i64 %20)
%22 = inttoptr i64 %21 to i8*
store i8* %22, i8** %10
%23 = load i8*, i8** %10
store i8 0, i8* %23
%24 = load i8*, i8** %10
%25 = load i8*, i8** %5
%26 = call i32 @strcpy(i8* %24, i8* %25)
br label %27
27: ; preds = %17, %3
%28 = load i8*, i8** %10
%29 = icmp ne i8* %28, null
br i1 %29, label %30, label %48
30: ; preds = %27
%31 = load i8*, i8** %10
%32 = load i8, i8* %31
%33 = sext i8 %32 to i32
%34 = icmp ne i32 %33, 0
br i1 %34, label %35, label %48
35: ; preds = %30
%36 = load i32, i32* %6
%37 = icmp sge i32 %36, 0
br i1 %37, label %38, label %48
38: ; preds = %35
%39 = load i32, i32* %6
%40 = icmp sle i32 %39, 32
br i1 %40, label %41, label %48
41: ; preds = %38
%42 = load i8*, i8** %10
%43 = call i64 @strlen(i8* %42)
%44 = add nsw i64 %43, 10
%45 = call i64 @malloc(i64 %44)
%46 = inttoptr i64 %45 to i8*
store i8* %46, i8** %11
%47 = load i8*, i8** %11
store i8 0, i8* %47
br label %49
48: ; preds = %38, %35, %30, %27
store i8* getelementptr inbounds ([10 x i8], [10 x i8]* @.str, i64 0, i64 0), i8** %4
br label %148
49: ; preds = %41
%50 = load i8*, i8** %11
store i8* %50, i8** %12
br label %51
51: ; preds = %142, %49
%52 = load i8*, i8** %10
%53 = icmp ne i8* %52, null
br i1 %53, label %54, label %59
54: ; preds = %51
%55 = load i8*, i8** %10
%56 = load i8, i8* %55
%57 = sext i8 %56 to i32
%58 = icmp ne i32 %57, 0
br label %59
59: ; preds = %54, %51
%60 = phi i1 [ false, %51 ], [ %58, %54 ]
br i1 %60, label %61, label %145
61: ; preds = %59
%62 = load i8*, i8** %10
%63 = load i8, i8* %62
%64 = sext i8 %63 to i32
%65 = icmp eq i32 %64, 46
br i1 %65, label %66, label %136
66: ; preds = %61
%67 = load i32, i32* %8
%68 = load i32, i32* %6
%69 = sdiv i32 %68, 8
%70 = sub nsw i32 %69, 1
%71 = icmp slt i32 %67, %70
br i1 %71, label %72, label %84
72: ; preds = %66
%73 = load i32, i32* %7
%74 = icmp ne i32 %73, 0
br i1 %74, label %75, label %77
75: ; preds = %72
%76 = load i8*, i8** %12
store i8 95, i8* %76
br label %79
77: ; preds = %72
%78 = load i8*, i8** %12
store i8 46, i8* %78
br label %79
79: ; preds = %77, %75
%80 = load i8*, i8** %12
%81 = getelementptr inbounds i8, i8* %80, i32 1
store i8* %81, i8** %12
%82 = load i32, i32* %8
%83 = add nsw i32 %82, 1
store i32 %83, i32* %8
br label %135
84: ; preds = %66
%85 = load i8*, i8** %10
%86 = getelementptr inbounds i8, i8* %85, i64 1
%87 = call i8* @strchr(i8* %86, i8 signext 46)
store i8* %87, i8** %14
%88 = load i8*, i8** %14
%89 = icmp ne i8* %88, null
br i1 %89, label %90, label %92
90: ; preds = %84
%91 = load i8*, i8** %14
store i8 0, i8* %91
br label %92
92: ; preds = %90, %84
%93 = load i32, i32* %7
%94 = icmp ne i32 %93, 0
br i1 %94, label %95, label %96
95: ; preds = %92
store i8* getelementptr inbounds ([7 x i8], [7 x i8]* @.str.1, i64 0, i64 0), i8** %13
br label %97
96: ; preds = %92
store i8* getelementptr inbounds ([4 x i8], [4 x i8]* @.str.2, i64 0, i64 0), i8** %13
br label %97
97: ; preds = %96, %95
%98 = load i32, i32* %6
%99 = srem i32 %98, 8
%100 = icmp ne i32 %99, 0
br i1 %100, label %101, label %114
101: ; preds = %97
%102 = load i8*, i8** %10
%103 = getelementptr inbounds i8, i8* %102, i64 1
%104 = call i32 @atoi(i8* %103)
%105 = load i8*, i8** %10
%106 = getelementptr inbounds i8, i8* %105, i64 1
%107 = call i32 @atoi(i8* %106)
%108 = load i32, i32* %6
%109 = srem i32 %108, 8
%110 = sub nsw i32 8, %109
%111 = shl i32 1, %110
%112 = srem i32 %107, %111
%113 = sub nsw i32 %104, %112
store i32 %113, i32* %9
br label %115
114: ; preds = %97
store i32 0, i32* %9
br label %115
115: ; preds = %114, %101
%116 = load i8*, i8** %12
%117 = load i8*, i8** %13
%118 = load i32, i32* %9
%119 = load i32, i32* %6
%120 = call i32 @sprintf(i8* %116, i8* %117, i32 %118, i32 %119)
%121 = load i32, i32* %7
%122 = icmp ne i32 %121, 0
br i1 %122, label %133, label %123
123: ; preds = %115
br label %124
124: ; preds = %127, %123
%125 = load i32, i32* %6
%126 = icmp slt i32 %125, 24
br i1 %126, label %127, label %132
127: ; preds = %124
%128 = load i8*, i8** %11
%129 = call i32 @strcat(i8* %128, i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str.3, i64 0, i64 0))
%130 = load i32, i32* %6
%131 = add nsw i32 %130, 8
store i32 %131, i32* %6
br label %124
132: ; preds = %124
br label %133
133: ; preds = %132, %115
%134 = load i8*, i8** %11
store i8* %134, i8** %4
br label %148
135: ; preds = %79
br label %142
136: ; preds = %61
%137 = load i8*, i8** %10
%138 = load i8, i8* %137
%139 = load i8*, i8** %12
store i8 %138, i8* %139
%140 = load i8*, i8** %12
%141 = getelementptr inbounds i8, i8* %140, i32 1
store i8* %141, i8** %12
br label %142
142: ; preds = %136, %135
%143 = load i8*, i8** %10
%144 = getelementptr inbounds i8, i8* %143, i32 1
store i8* %144, i8** %10
br label %51
145: ; preds = %59
%146 = load i8*, i8** %12
store i8 0, i8* %146
%147 = load i8*, i8** %11
store i8* %147, i8** %4
br label %148
148: ; preds = %145, %133, %48
%149 = load i8*, i8** %4
ret i8* %149
}

LLVM IR (-O2):
@.str = [10 x i8] c"undefined\00"
@.str.1 = [7 x i8] c"_%d_%d\00"
@.str.2 = [4 x i8] c".%d\00"
@.str.3 = [3 x i8] c".0\00"
define i8* @very_ugly_ipv4_code(i8* %0, i32 %1, i32 %2) {
%4 = icmp ne i8* %0, null
tail call void @llvm.assume(i1 %4)
%5 = tail call i64 @strlen(i8* %0)
%6 = add nsw i64 %5, 1
%7 = tail call i64 @malloc(i64 %6)
%8 = inttoptr i64 %7 to i8*
store i8 0, i8* %8
%9 = tail call i32 @strcpy(i8* %8, i8* %0)
%10 = load i8, i8* %8
%11 = icmp ne i8 %10, 0
%12 = icmp ult i32 %1, 33
%13 = and i1 %12, %11
br i1 %13, label %14, label %64
14: ; preds = %3
%15 = tail call i64 @strlen(i8* %8)
%16 = add nsw i64 %15, 10
%17 = tail call i64 @malloc(i64 %16)
%18 = inttoptr i64 %17 to i8*
store i8 0, i8* %18
%19 = lshr i32 %1, 3
%20 = and i32 %19, 31
%21 = add nsw i32 %20, -1
%22 = icmp eq i32 %2, 0
%23 = select i1 %22, i8 46, i8 95
br label %24
24: ; preds = %59, %14
%25 = phi i32 [ 0, %14 ], [ %60, %59 ]
%26 = phi i8* [ %8, %14 ], [ %62, %59 ]
%27 = phi i8* [ %18, %14 ], [ %61, %59 ]
%28 = load i8, i8* %26
switch i8 %28, label %58 [
i8 0, label %63
i8 46, label %29
]
29: ; preds = %24
%30 = icmp slt i32 %25, %21
br i1 %30, label %31, label %33
31: ; preds = %29
store i8 %23, i8* %27
%32 = add nsw i32 %25, 1
br label %59
33: ; preds = %29
%34 = getelementptr inbounds i8, i8* %26, i64 1
%35 = tail call i8* @strchr(i8* %34, i8 signext 46)
%36 = icmp eq i8* %35, null
br i1 %36, label %38, label %37
37: ; preds = %33
store i8 0, i8* %35
br label %38
38: ; preds = %37, %33
%39 = select i1 %22, i8* getelementptr inbounds ([4 x i8], [4 x i8]* @.str.2, i64 0, i64 0), i8* getelementptr inbounds ([7 x i8], [7 x i8]* @.str.1, i64 0, i64 0)
%40 = srem i32 %1, 8
%41 = icmp eq i32 %40, 0
br i1 %41, label %48, label %42
42: ; preds = %38
%43 = tail call i32 @atoi(i8* %34)
%44 = sub nsw i32 8, %40
%45 = shl nuw nsw i32 1, %44
%46 = srem i32 %43, %45
%47 = sub nsw i32 %43, %46
br label %48
48: ; preds = %38, %42
%49 = phi i32 [ %47, %42 ], [ 0, %38 ]
%50 = tail call i32 @sprintf(i8* dereferenceable(1) %27, i8* dereferenceable(1) %39, i32 %49, i32 %1)
%51 = icmp slt i32 %1, 24
%52 = and i1 %51, %22
br i1 %52, label %53, label %64
53: ; preds = %48, %53
%54 = phi i32 [ %56, %53 ], [ %1, %48 ]
%55 = tail call i32 @strcat(i8* %18, i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str.3, i64 0, i64 0))
%56 = add nsw i32 %54, 8
%57 = icmp slt i32 %54, 16
br i1 %57, label %53, label %64
58: ; preds = %24
store i8 %28, i8* %27
br label %59
59: ; preds = %58, %31
%60 = phi i32 [ %32, %31 ], [ %25, %58 ]
%61 = getelementptr inbounds i8, i8* %27, i64 1
%62 = getelementptr inbounds i8, i8* %26, i64 1
br label %24
63: ; preds = %24
store i8 0, i8* %27
br label %64
64: ; preds = %53, %48, %3, %63
%65 = phi i8* [ %18, %63 ], [ getelementptr inbounds ([10 x i8], [10 x i8]* @.str, i64 0, i64 0), %3 ], [ %18, %48 ], [ %18, %53 ]
ret i8* %65
}