#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*/ free(char *);
int /*<<< orphan*/ memcpy(char *, char *, unsigned int);
char *read_token_no_eof();
scalar_t__ strcmp(char *, char *);
unsigned int strlen(char *);
char *xmalloc(unsigned int);
char *xstrdup(char *);
char *read_type(void) {
  char *p, *op, *q;
  int pointer_count;
  unsigned int len;
  p = read_token_no_eof();
  if (*p != '*') {
    if (strcmp(p, "int") == 0)
      return xstrdup("intgo");
    else if (strcmp(p, "uint") == 0)
      return xstrdup("uintgo");
    return p;
  }
  op = p;
  pointer_count = 0;
  while (*p == '*') {
    ++pointer_count;
    ++p;
  }
  if (strcmp(p, "int") == 0)
    p = (char *)"intgo";
  else if (strcmp(p, "uint") == 0)
    p = (char *)"uintgo";
  len = strlen(p);
  q = xmalloc(len + pointer_count + 1);
  memcpy(q, p, len);
  while (pointer_count > 0) {
    q[len] = '*';
    ++len;
    --pointer_count;
  }
  q[len] = '\0';
  free(op);
  return q;
}


x86 assembly (clang, -O0):
<read_type>:
push   %rbp
mov    %rsp,%rbp
sub    $0x30,%rsp
mov    $0x0,%al
call   1090 <read_token_no_eof@plt>
mov    %rax,-0x10(%rbp)
mov    -0x10(%rbp),%rax
movsbl (%rax),%eax
cmp    $0x2a,%eax
je     1203 <read_type+0x93>
mov    -0x10(%rbp),%rdi
lea    0xe63(%rip),%rsi
call   1070 <strcmp@plt>
cmp    $0x0,%rax
jne    11c2 <read_type+0x52>
lea    0xe52(%rip),%rdi
call   1060 <xstrdup@plt>
mov    %rax,-0x8(%rbp)
jmp    1306 <read_type+0x196>
mov    -0x10(%rbp),%rdi
lea    0xe33(%rip),%rsi
call   1070 <strcmp@plt>
cmp    $0x0,%rax
jne    11f1 <read_type+0x81>
lea    0xe22(%rip),%rdi
call   1060 <xstrdup@plt>
mov    %rax,-0x8(%rbp)
jmp    1306 <read_type+0x196>
jmp    11f6 <read_type+0x86>
mov    -0x10(%rbp),%rax
mov    %rax,-0x8(%rbp)
jmp    1306 <read_type+0x196>
mov    -0x10(%rbp),%rax
mov    %rax,-0x18(%rbp)
movl   $0x0,-0x24(%rbp)
mov    -0x10(%rbp),%rax
movsbl (%rax),%eax
cmp    $0x2a,%eax
jne    123c <read_type+0xcc>
mov    -0x24(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0x24(%rbp)
mov    -0x10(%rbp),%rax
add    $0x1,%rax
mov    %rax,-0x10(%rbp)
jmp    1212 <read_type+0xa2>
mov    -0x10(%rbp),%rdi
lea    0xdba(%rip),%rsi
call   1070 <strcmp@plt>
cmp    $0x0,%rax
jne    1266 <read_type+0xf6>
lea    0xda9(%rip),%rax
mov    %rax,-0x10(%rbp)
jmp    1290 <read_type+0x120>
mov    -0x10(%rbp),%rdi
lea    0xd8f(%rip),%rsi
call   1070 <strcmp@plt>
cmp    $0x0,%rax
jne    128b <read_type+0x11b>
lea    0xd7e(%rip),%rax
mov    %rax,-0x10(%rbp)
jmp    1290 <read_type+0x120>
mov    -0x10(%rbp),%rdi
call   1040 <strlen@plt>
mov    %eax,-0x28(%rbp)
mov    -0x28(%rbp),%edi
add    -0x24(%rbp),%edi
add    $0x1,%edi
call   1050 <xmalloc@plt>
mov    %rax,-0x20(%rbp)
mov    -0x20(%rbp),%rdi
mov    -0x10(%rbp),%rsi
mov    -0x28(%rbp),%edx
call   1080 <memcpy@plt>
cmpl   $0x0,-0x24(%rbp)
jle    12ea <read_type+0x17a>
mov    -0x20(%rbp),%rax
mov    -0x28(%rbp),%ecx
movb   $0x2a,(%rax,%rcx,1)
mov    -0x28(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0x28(%rbp)
mov    -0x24(%rbp),%eax
add    $0xffffffff,%eax
mov    %eax,-0x24(%rbp)
jmp    12be <read_type+0x14e>
mov    -0x20(%rbp),%rax
mov    -0x28(%rbp),%ecx
movb   $0x0,(%rax,%rcx,1)
mov    -0x18(%rbp),%rdi
call   1030 <free@plt>
mov    -0x20(%rbp),%rax
mov    %rax,-0x8(%rbp)
mov    -0x8(%rbp),%rax
add    $0x30,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<read_type>:
push   %rbp
push   %r15
push   %r14
push   %r13
push   %r12
push   %rbx
push   %rax
xor    %eax,%eax
call   1090 <read_token_no_eof@plt>
mov    %rax,%r14
cmpb   $0x2a,(%rax)
jne    11d6 <read_type+0x66>
mov    %rax,%r15
xor    %ebx,%ebx
nop
cmpb   $0x2a,0x1(%r14,%rbx,1)
lea    0x1(%rbx),%rbx
je     1190 <read_type+0x20>
add    %rbx,%r15
lea    0xe6b(%rip),%rsi
mov    %r15,%rdi
call   1070 <strcmp@plt>
lea    -0x1(%rbx),%rbp
test   %rax,%rax
je     1212 <read_type+0xa2>
lea    0xe52(%rip),%rsi
mov    %r15,%rdi
call   1070 <strcmp@plt>
test   %rax,%rax
lea    0xe45(%rip),%r12
cmovne %r15,%r12
jmp    1219 <read_type+0xa9>
lea    0xe34(%rip),%rsi
mov    %r14,%rdi
call   1070 <strcmp@plt>
test   %rax,%rax
je     1369 <read_type+0x1f9>
lea    0xe1b(%rip),%rsi
mov    %r14,%rdi
call   1070 <strcmp@plt>
test   %rax,%rax
jne    1357 <read_type+0x1e7>
lea    0xe08(%rip),%rdi
jmp    1370 <read_type+0x200>
lea    0xdfd(%rip),%r12
mov    %r12,%rdi
call   1040 <strlen@plt>
mov    %eax,%r13d
lea    (%rbx,%r13,1),%edi
add    $0x1,%edi
call   1050 <xmalloc@plt>
mov    %rax,%r15
mov    %rax,%rdi
mov    %r12,%rsi
mov    %r13d,%edx
call   1080 <memcpy@plt>
mov    %r13d,%eax
add    %ebp,%eax
setb   %al
cmp    $0x1f,%ebp
jb     132a <read_type+0x1ba>
test   %al,%al
jne    132a <read_type+0x1ba>
mov    %ebx,%eax
and    $0xffffffe0,%eax
lea    -0x20(%rax),%esi
mov    %esi,%edx
shr    $0x5,%edx
add    $0x1,%edx
xor    %ecx,%ecx
cmp    $0x60,%esi
jb     12d2 <read_type+0x162>
mov    %ebx,%esi
and    $0xffffffe0,%esi
add    $0xffffffe0,%esi
shr    $0x5,%esi
add    $0x1,%esi
and    $0xfffffffc,%esi
xor    %ecx,%ecx
movaps 0xd75(%rip),%xmm0
mov    %r13d,%edi
xchg   %ax,%ax
mov    %edi,%ebp
movups %xmm0,(%r15,%rbp,1)
movups %xmm0,0x10(%r15,%rbp,1)
lea    0x20(%rdi),%ebp
movups %xmm0,(%r15,%rbp,1)
movups %xmm0,0x10(%r15,%rbp,1)
lea    0x40(%rdi),%ebp
movups %xmm0,(%r15,%rbp,1)
movups %xmm0,0x10(%r15,%rbp,1)
lea    0x60(%rdi),%ebp
movups %xmm0,(%r15,%rbp,1)
movups %xmm0,0x10(%r15,%rbp,1)
sub    $0xffffff80,%ecx
sub    $0xffffff80,%edi
add    $0xfffffffc,%esi
jne    1290 <read_type+0x120>
test   $0x3,%dl
je     1315 <read_type+0x1a5>
add    %r13d,%ecx
mov    %ebx,%edx
and    $0x60,%dl
add    $0xe0,%dl
shr    $0x5,%dl
add    $0x1,%dl
movzbl %dl,%edx
and    $0x3,%edx
movaps 0xd0b(%rip),%xmm0
cs nopw 0x0(%rax,%rax,1)
nop
mov    %ecx,%esi
movups %xmm0,(%r15,%rsi,1)
movups %xmm0,0x10(%r15,%rsi,1)
add    $0x20,%ecx
add    $0xffffffff,%edx
jne    1300 <read_type+0x190>
add    %eax,%r13d
cmp    %eax,%ebx
je     1344 <read_type+0x1d4>
mov    %ebx,%eax
and    $0xffffffe0,%eax
neg    %eax
add    %rbx,%rax
mov    %eax,%ebx
jmp    132d <read_type+0x1bd>
mov    %r13d,%r13d
add    $0x1,%ebx
mov    %r13d,%eax
movb   $0x2a,(%r15,%rax,1)
add    $0x1,%r13d
add    $0xffffffff,%ebx
cmp    $0x1,%ebx
jg     1330 <read_type+0x1c0>
mov    %r13d,%eax
movb   $0x0,(%r15,%rax,1)
mov    %r14,%rdi
call   1030 <free@plt>
mov    %r15,%r14
mov    %r14,%rax
add    $0x8,%rsp
pop    %rbx
pop    %r12
pop    %r13
pop    %r14
pop    %r15
pop    %rbp
ret
lea    0xca6(%rip),%rdi
add    $0x8,%rsp
pop    %rbx
pop    %r12
pop    %r13
pop    %r14
pop    %r15
pop    %rbp
jmp    1060 <xstrdup@plt>

LLVM IR (-O0):
@.str = [4 x i8] c"int\00"
@.str.1 = [6 x i8] c"intgo\00"
@.str.2 = [5 x i8] c"uint\00"
@.str.3 = [7 x i8] c"uintgo\00"
define i8* @read_type() {
%1 = alloca i8*
%2 = alloca i8*
%3 = alloca i8*
%4 = alloca i8*
%5 = alloca i32
%6 = alloca i32
%7 = call i8* (...) @read_token_no_eof()
store i8* %7, i8** %2
%8 = load i8*, i8** %2
%9 = load i8, i8* %8
%10 = sext i8 %9 to i32
%11 = icmp ne i32 %10, 42
br i1 %11, label %12, label %27
12: ; preds = %0
%13 = load i8*, i8** %2
%14 = call i64 @strcmp(i8* %13, i8* getelementptr inbounds ([4 x i8], [4 x i8]* @.str, i64 0, i64 0))
%15 = icmp eq i64 %14, 0
br i1 %15, label %16, label %18
16: ; preds = %12
%17 = call i8* @xstrdup(i8* getelementptr inbounds ([6 x i8], [6 x i8]* @.str.1, i64 0, i64 0))
store i8* %17, i8** %1
br label %82
18: ; preds = %12
%19 = load i8*, i8** %2
%20 = call i64 @strcmp(i8* %19, i8* getelementptr inbounds ([5 x i8], [5 x i8]* @.str.2, i64 0, i64 0))
%21 = icmp eq i64 %20, 0
br i1 %21, label %22, label %24
22: ; preds = %18
%23 = call i8* @xstrdup(i8* getelementptr inbounds ([7 x i8], [7 x i8]* @.str.3, i64 0, i64 0))
store i8* %23, i8** %1
br label %82
24: ; preds = %18
br label %25
25: ; preds = %24
%26 = load i8*, i8** %2
store i8* %26, i8** %1
br label %82
27: ; preds = %0
%28 = load i8*, i8** %2
store i8* %28, i8** %3
store i32 0, i32* %5
br label %29
29: ; preds = %34, %27
%30 = load i8*, i8** %2
%31 = load i8, i8* %30
%32 = sext i8 %31 to i32
%33 = icmp eq i32 %32, 42
br i1 %33, label %34, label %39
34: ; preds = %29
%35 = load i32, i32* %5
%36 = add nsw i32 %35, 1
store i32 %36, i32* %5
%37 = load i8*, i8** %2
%38 = getelementptr inbounds i8, i8* %37, i32 1
store i8* %38, i8** %2
br label %29
39: ; preds = %29
%40 = load i8*, i8** %2
%41 = call i64 @strcmp(i8* %40, i8* getelementptr inbounds ([4 x i8], [4 x i8]* @.str, i64 0, i64 0))
%42 = icmp eq i64 %41, 0
br i1 %42, label %43, label %44
43: ; preds = %39
store i8* getelementptr inbounds ([6 x i8], [6 x i8]* @.str.1, i64 0, i64 0), i8** %2
br label %50
44: ; preds = %39
%45 = load i8*, i8** %2
%46 = call i64 @strcmp(i8* %45, i8* getelementptr inbounds ([5 x i8], [5 x i8]* @.str.2, i64 0, i64 0))
%47 = icmp eq i64 %46, 0
br i1 %47, label %48, label %49
48: ; preds = %44
store i8* getelementptr inbounds ([7 x i8], [7 x i8]* @.str.3, i64 0, i64 0), i8** %2
br label %49
49: ; preds = %48, %44
br label %50
50: ; preds = %49, %43
%51 = load i8*, i8** %2
%52 = call i32 @strlen(i8* %51)
store i32 %52, i32* %6
%53 = load i32, i32* %6
%54 = load i32, i32* %5
%55 = add i32 %53, %54
%56 = add i32 %55, 1
%57 = call i8* @xmalloc(i32 %56)
store i8* %57, i8** %4
%58 = load i8*, i8** %4
%59 = load i8*, i8** %2
%60 = load i32, i32* %6
%61 = call i32 @memcpy(i8* %58, i8* %59, i32 %60)
br label %62
62: ; preds = %65, %50
%63 = load i32, i32* %5
%64 = icmp sgt i32 %63, 0
br i1 %64, label %65, label %74
65: ; preds = %62
%66 = load i8*, i8** %4
%67 = load i32, i32* %6
%68 = zext i32 %67 to i64
%69 = getelementptr inbounds i8, i8* %66, i64 %68
store i8 42, i8* %69
%70 = load i32, i32* %6
%71 = add i32 %70, 1
store i32 %71, i32* %6
%72 = load i32, i32* %5
%73 = add nsw i32 %72, -1
store i32 %73, i32* %5
br label %62
74: ; preds = %62
%75 = load i8*, i8** %4
%76 = load i32, i32* %6
%77 = zext i32 %76 to i64
%78 = getelementptr inbounds i8, i8* %75, i64 %77
store i8 0, i8* %78
%79 = load i8*, i8** %3
%80 = call i32 @free(i8* %79)
%81 = load i8*, i8** %4
store i8* %81, i8** %1
br label %82
82: ; preds = %74, %25, %22, %16
%83 = load i8*, i8** %1
ret i8* %83
}

LLVM IR (-O2):
@.str = [4 x i8] c"int\00"
@.str.1 = [6 x i8] c"intgo\00"
@.str.2 = [5 x i8] c"uint\00"
@.str.3 = [7 x i8] c"uintgo\00"
define i8* @read_type() {
%1 = tail call i8* (...) @read_token_no_eof()
%2 = load i8, i8* %1
%3 = icmp eq i8 %2, 42
br i1 %3, label %14, label %4
4: ; preds = %0
%5 = tail call i64 @strcmp(i8* %1, i8* getelementptr inbounds ([4 x i8], [4 x i8]* @.str, i64 0, i64 0))
%6 = icmp eq i64 %5, 0
br i1 %6, label %7, label %9
7: ; preds = %4
%8 = tail call i8* @xstrdup(i8* getelementptr inbounds ([6 x i8], [6 x i8]* @.str.1, i64 0, i64 0))
br label %117
9: ; preds = %4
%10 = tail call i64 @strcmp(i8* %1, i8* getelementptr inbounds ([5 x i8], [5 x i8]* @.str.2, i64 0, i64 0))
%11 = icmp eq i64 %10, 0
br i1 %11, label %12, label %117
12: ; preds = %9
%13 = tail call i8* @xstrdup(i8* getelementptr inbounds ([7 x i8], [7 x i8]* @.str.3, i64 0, i64 0))
br label %117
14: ; preds = %0, %14
%15 = phi i32 [ %17, %14 ], [ 0, %0 ]
%16 = phi i8* [ %18, %14 ], [ %1, %0 ]
%17 = add nuw nsw i32 %15, 1
%18 = getelementptr inbounds i8, i8* %16, i64 1
%19 = load i8, i8* %18
%20 = icmp eq i8 %19, 42
br i1 %20, label %14, label %21
21: ; preds = %14
%22 = tail call i64 @strcmp(i8* %18, i8* getelementptr inbounds ([4 x i8], [4 x i8]* @.str, i64 0, i64 0))
%23 = icmp eq i64 %22, 0
br i1 %23, label %28, label %24
24: ; preds = %21
%25 = tail call i64 @strcmp(i8* %18, i8* getelementptr inbounds ([5 x i8], [5 x i8]* @.str.2, i64 0, i64 0))
%26 = icmp eq i64 %25, 0
%27 = select i1 %26, i8* getelementptr inbounds ([7 x i8], [7 x i8]* @.str.3, i64 0, i64 0), i8* %18
br label %28
28: ; preds = %24, %21
%29 = phi i8* [ getelementptr inbounds ([6 x i8], [6 x i8]* @.str.1, i64 0, i64 0), %21 ], [ %27, %24 ]
%30 = tail call i32 @strlen(i8* %29)
%31 = add nuw i32 %15, 2
%32 = add i32 %31, %30
%33 = tail call i8* @xmalloc(i32 %32)
%34 = tail call i32 @memcpy(i8* %33, i8* %29, i32 %30)
%35 = add nuw i32 %15, 1
%36 = icmp ult i32 %15, 31
%37 = xor i32 %30, -1
%38 = icmp ugt i32 %15, %37
%39 = select i1 %36, i1 true, i1 %38
br i1 %39, label %101, label %40
40: ; preds = %28
%41 = and i32 %35, -32
%42 = add i32 %30, %41
%43 = sub i32 %17, %41
%44 = add i32 %41, -32
%45 = lshr exact i32 %44, 5
%46 = add nuw nsw i32 %45, 1
%47 = and i32 %46, 3
%48 = icmp ult i32 %44, 96
br i1 %48, label %84, label %49
49: ; preds = %40
%50 = and i32 %46, 268435452
br label %51
51: ; preds = %51, %49
%52 = phi i32 [ 0, %49 ], [ %81, %51 ]
%53 = phi i32 [ 0, %49 ], [ %82, %51 ]
%54 = add i32 %30, %52
%55 = zext i32 %54 to i64
%56 = getelementptr inbounds i8, i8* %33, i64 %55
%57 = bitcast i8* %56 to <16 x i8>*
store <16 x i8> <i8 42, i8 42, i8 42, i8 42, i8 42, i8 42, i8 42, i8 42, i8 42, i8 42, i8 42, i8 42, i8 42, i8 42, i8 42, i8 42>, <16 x i8>* %57
%58 = getelementptr inbounds i8, i8* %56, i64 16
%59 = bitcast i8* %58 to <16 x i8>*
store <16 x i8> <i8 42, i8 42, i8 42, i8 42, i8 42, i8 42, i8 42, i8 42, i8 42, i8 42, i8 42, i8 42, i8 42, i8 42, i8 42, i8 42>, <16 x i8>* %59
%60 = or i32 %52, 32
%61 = add i32 %30, %60
%62 = zext i32 %61 to i64
%63 = getelementptr inbounds i8, i8* %33, i64 %62
%64 = bitcast i8* %63 to <16 x i8>*
store <16 x i8> <i8 42, i8 42, i8 42, i8 42, i8 42, i8 42, i8 42, i8 42, i8 42, i8 42, i8 42, i8 42, i8 42, i8 42, i8 42, i8 42>, <16 x i8>* %64
%65 = getelementptr inbounds i8, i8* %63, i64 16
%66 = bitcast i8* %65 to <16 x i8>*
store <16 x i8> <i8 42, i8 42, i8 42, i8 42, i8 42, i8 42, i8 42, i8 42, i8 42, i8 42, i8 42, i8 42, i8 42, i8 42, i8 42, i8 42>, <16 x i8>* %66
%67 = or i32 %52, 64
%68 = add i32 %30, %67
%69 = zext i32 %68 to i64
%70 = getelementptr inbounds i8, i8* %33, i64 %69
%71 = bitcast i8* %70 to <16 x i8>*
store <16 x i8> <i8 42, i8 42, i8 42, i8 42, i8 42, i8 42, i8 42, i8 42, i8 42, i8 42, i8 42, i8 42, i8 42, i8 42, i8 42, i8 42>, <16 x i8>* %71
%72 = getelementptr inbounds i8, i8* %70, i64 16
%73 = bitcast i8* %72 to <16 x i8>*
store <16 x i8> <i8 42, i8 42, i8 42, i8 42, i8 42, i8 42, i8 42, i8 42, i8 42, i8 42, i8 42, i8 42, i8 42, i8 42, i8 42, i8 42>, <16 x i8>* %73
%74 = or i32 %52, 96
%75 = add i32 %30, %74
%76 = zext i32 %75 to i64
%77 = getelementptr inbounds i8, i8* %33, i64 %76
%78 = bitcast i8* %77 to <16 x i8>*
store <16 x i8> <i8 42, i8 42, i8 42, i8 42, i8 42, i8 42, i8 42, i8 42, i8 42, i8 42, i8 42, i8 42, i8 42, i8 42, i8 42, i8 42>, <16 x i8>* %78
%79 = getelementptr inbounds i8, i8* %77, i64 16
%80 = bitcast i8* %79 to <16 x i8>*
store <16 x i8> <i8 42, i8 42, i8 42, i8 42, i8 42, i8 42, i8 42, i8 42, i8 42, i8 42, i8 42, i8 42, i8 42, i8 42, i8 42, i8 42>, <16 x i8>* %80
%81 = add nuw i32 %52, 128
%82 = add i32 %53, 4
%83 = icmp eq i32 %82, %50
br i1 %83, label %84, label %51
84: ; preds = %51, %40
%85 = phi i32 [ 0, %40 ], [ %81, %51 ]
%86 = icmp eq i32 %47, 0
br i1 %86, label %99, label %87
87: ; preds = %84, %87
%88 = phi i32 [ %96, %87 ], [ %85, %84 ]
%89 = phi i32 [ %97, %87 ], [ 0, %84 ]
%90 = add i32 %30, %88
%91 = zext i32 %90 to i64
%92 = getelementptr inbounds i8, i8* %33, i64 %91
%93 = bitcast i8* %92 to <16 x i8>*
store <16 x i8> <i8 42, i8 42, i8 42, i8 42, i8 42, i8 42, i8 42, i8 42, i8 42, i8 42, i8 42, i8 42, i8 42, i8 42, i8 42, i8 42>, <16 x i8>* %93
%94 = getelementptr inbounds i8, i8* %92, i64 16
%95 = bitcast i8* %94 to <16 x i8>*
store <16 x i8> <i8 42, i8 42, i8 42, i8 42, i8 42, i8 42, i8 42, i8 42, i8 42, i8 42, i8 42, i8 42, i8 42, i8 42, i8 42, i8 42>, <16 x i8>* %95
%96 = add nuw i32 %88, 32
%97 = add i32 %89, 1
%98 = icmp eq i32 %97, %47
br i1 %98, label %99, label %87
99: ; preds = %87, %84
%100 = icmp eq i32 %35, %41
br i1 %100, label %112, label %101
101: ; preds = %28, %99
%102 = phi i32 [ %30, %28 ], [ %42, %99 ]
%103 = phi i32 [ %17, %28 ], [ %43, %99 ]
br label %104
104: ; preds = %101, %104
%105 = phi i32 [ %109, %104 ], [ %102, %101 ]
%106 = phi i32 [ %110, %104 ], [ %103, %101 ]
%107 = zext i32 %105 to i64
%108 = getelementptr inbounds i8, i8* %33, i64 %107
store i8 42, i8* %108
%109 = add i32 %105, 1
%110 = add nsw i32 %106, -1
%111 = icmp sgt i32 %106, 1
br i1 %111, label %104, label %112
112: ; preds = %104, %99
%113 = phi i32 [ %42, %99 ], [ %109, %104 ]
%114 = zext i32 %113 to i64
%115 = getelementptr inbounds i8, i8* %33, i64 %114
store i8 0, i8* %115
%116 = tail call i32 @free(i8* %1)
br label %117
117: ; preds = %9, %112, %12, %7
%118 = phi i8* [ %8, %7 ], [ %13, %12 ], [ %33, %112 ], [ %1, %9 ]
ret i8* %118
}