#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 */
typedef scalar_t__ time_t;
typedef int /*<<< orphan*/ jpath;

/* Variables and functions */
int ReadEntireFileSafely(char *, char *, char **, int /*<<< orphan*/ *);
int TravelJsonBuffer(char *, char *, int, int /*<<< orphan*/ *, void *);
int atol(char *);
int errno;
int /*<<< orphan*/ exit(int);
int /*<<< orphan*/ free(char *);
int /*<<< orphan*/ memcpy(char *, char *, int);
int /*<<< orphan*/ memset(char *, int, int);
int /*<<< orphan*/ printf(char *, ...);
char *strdup(char *);
int strlen(char *);
int /*<<< orphan*/ time(scalar_t__ *);
int main(int argc, char *argv[]) {
  if (argc == 1 + 2) {
    char jpath[1024 + 1];
    char *json_buffer = NULL;
    int json_len;
    char *json_buffer_bak = NULL;
    int c, count;
    char *p = "hello world";
    int nret = 0;
    nret = ReadEntireFileSafely(argv[1], "rb", &json_buffer_bak, NULL);
    if (nret) {
      printf("ReadEntireFileSafely[%s] failed[%d]\n", argv[1], nret);
      return nret;
    }
    json_buffer = strdup(json_buffer_bak);
    if (json_buffer == NULL) {
      printf("strdup failed , errno[%d]\n", errno);
      return 1;
    }
    json_len = strlen(json_buffer);
    count = atol(argv[2]);
    if (count > 0) {
      time_t t1, t2;
      time(&t1);
      for (c = 0; c < count; c++) {
        json_buffer = json_buffer_bak;
        memset(jpath, 0x00, sizeof(jpath));
        nret = TravelJsonBuffer(json_buffer, jpath, sizeof(jpath), NULL,
                                (void *)p);
        if (nret) {
          printf("TravelJsonTree failed[%d]\n", nret);
          free(json_buffer);
          return nret;
        }
      }
      for (c = 0; c < count; c++) {
        memcpy(json_buffer, json_buffer_bak, json_len);
      }
      time(&t2);
      printf("Elapse %d seconds\n", (int)(t2 - t1));
    } else {
      int len;
      count = -count;
      len = 0;
      for (c = 0; c < count; c++) {
        len += strlen(json_buffer_bak + c % 10);
      }
      printf("len[%d]\n", len);
    }
    free(json_buffer);
  } else {
    printf("USAGE : press_fastjson json_pathfilename press_count\n");
    exit(7);
  }
  return 0;
}


x86 assembly (clang, -O0):
<main>:
push   %rbp
mov    %rsp,%rbp
sub    $0x470,%rsp
movl   $0x0,-0x4(%rbp)
mov    %edi,-0x8(%rbp)
mov    %rsi,-0x10(%rbp)
cmpl   $0x3,-0x8(%rbp)
jne    14aa <main+0x2fa>
movq   $0x0,-0x428(%rbp)
movq   $0x0,-0x438(%rbp)
lea    0xe10(%rip),%rax
mov    %rax,-0x448(%rbp)
movl   $0x0,-0x44c(%rbp)
mov    -0x10(%rbp),%rax
mov    0x8(%rax),%rdi
lea    0xdfc(%rip),%rsi
lea    -0x438(%rbp),%rdx
xor    %eax,%eax
mov    %eax,%ecx
call   1040 <ReadEntireFileSafely@plt>
mov    %eax,-0x44c(%rbp)
cmpl   $0x0,-0x44c(%rbp)
je     125d <main+0xad>
mov    -0x10(%rbp),%rax
mov    0x8(%rax),%rsi
mov    -0x44c(%rbp),%edx
lea    0xdc7(%rip),%rdi
mov    $0x0,%al
call   1060 <printf@plt>
mov    -0x44c(%rbp),%eax
mov    %eax,-0x4(%rbp)
jmp    14c9 <main+0x319>
mov    -0x438(%rbp),%rdi
call   10c0 <strdup@plt>
mov    %rax,-0x428(%rbp)
cmpq   $0x0,-0x428(%rbp)
jne    12a1 <main+0xf1>
mov    0x2d5b(%rip),%rax
mov    (%rax),%esi
lea    0xda6(%rip),%rdi
mov    $0x0,%al
call   1060 <printf@plt>
movl   $0x1,-0x4(%rbp)
jmp    14c9 <main+0x319>
mov    -0x428(%rbp),%rdi
call   1050 <strlen@plt>
mov    %eax,-0x42c(%rbp)
mov    -0x10(%rbp),%rax
mov    0x10(%rax),%rdi
call   10a0 <atol@plt>
mov    %eax,-0x440(%rbp)
cmpl   $0x0,-0x440(%rbp)
jle    1411 <main+0x261>
lea    -0x458(%rbp),%rdi
call   1090 <time@plt>
movl   $0x0,-0x43c(%rbp)
mov    -0x43c(%rbp),%eax
cmp    -0x440(%rbp),%eax
jge    1399 <main+0x1e9>
mov    -0x438(%rbp),%rax
mov    %rax,-0x428(%rbp)
lea    -0x420(%rbp),%rdi
xor    %esi,%esi
mov    $0x401,%edx
call   1070 <memset@plt>
mov    -0x428(%rbp),%rdi
lea    -0x420(%rbp),%rsi
mov    -0x448(%rbp),%r8
mov    $0x401,%edx
xor    %eax,%eax
mov    %eax,%ecx
call   10d0 <TravelJsonBuffer@plt>
mov    %eax,-0x44c(%rbp)
cmpl   $0x0,-0x44c(%rbp)
je     1380 <main+0x1d0>
mov    -0x44c(%rbp),%esi
lea    0xcf0(%rip),%rdi
mov    $0x0,%al
call   1060 <printf@plt>
mov    -0x428(%rbp),%rdi
call   1030 <free@plt>
mov    -0x44c(%rbp),%eax
mov    %eax,-0x4(%rbp)
jmp    14c9 <main+0x319>
jmp    1385 <main+0x1d5>
mov    -0x43c(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0x43c(%rbp)
jmp    12e9 <main+0x139>
movl   $0x0,-0x43c(%rbp)
mov    -0x43c(%rbp),%eax
cmp    -0x440(%rbp),%eax
jge    13e2 <main+0x232>
mov    -0x428(%rbp),%rdi
mov    -0x438(%rbp),%rsi
mov    -0x42c(%rbp),%edx
call   1080 <memcpy@plt>
mov    -0x43c(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0x43c(%rbp)
jmp    13a3 <main+0x1f3>
lea    -0x460(%rbp),%rdi
call   1090 <time@plt>
mov    -0x460(%rbp),%rax
sub    -0x458(%rbp),%rax
mov    %eax,%esi
lea    0xc65(%rip),%rdi
mov    $0x0,%al
call   1060 <printf@plt>
jmp    1499 <main+0x2e9>
xor    %eax,%eax
sub    -0x440(%rbp),%eax
mov    %eax,-0x440(%rbp)
movl   $0x0,-0x464(%rbp)
movl   $0x0,-0x43c(%rbp)
mov    -0x43c(%rbp),%eax
cmp    -0x440(%rbp),%eax
jge    1485 <main+0x2d5>
mov    -0x438(%rbp),%rdi
mov    -0x43c(%rbp),%eax
mov    $0xa,%ecx
cltd
idiv   %ecx
movslq %edx,%rax
add    %rax,%rdi
call   1050 <strlen@plt>
add    -0x464(%rbp),%eax
mov    %eax,-0x464(%rbp)
mov    -0x43c(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0x43c(%rbp)
jmp    1433 <main+0x283>
mov    -0x464(%rbp),%esi
lea    0xbeb(%rip),%rdi
mov    $0x0,%al
call   1060 <printf@plt>
mov    -0x428(%rbp),%rdi
call   1030 <free@plt>
jmp    14c2 <main+0x312>
lea    0xbd5(%rip),%rdi
mov    $0x0,%al
call   1060 <printf@plt>
mov    $0x7,%edi
call   10b0 <exit@plt>
movl   $0x0,-0x4(%rbp)
mov    -0x4(%rbp),%eax
add    $0x470,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<main>:
push   %rbp
push   %r15
push   %r14
push   %r13
push   %r12
push   %rbx
sub    $0x428,%rsp
cmp    $0x3,%edi
jne    13a9 <main+0x1e9>
mov    %rsi,%rbp
movq   $0x0,0x8(%rsp)
mov    0x8(%rsi),%rdi
lea    0xe1b(%rip),%rsi
lea    0x8(%rsp),%rdx
xor    %ecx,%ecx
call   1040 <ReadEntireFileSafely@plt>
test   %eax,%eax
je     121c <main+0x5c>
mov    %eax,%ebx
mov    0x8(%rbp),%rsi
lea    0xe01(%rip),%rdi
mov    %eax,%edx
xor    %eax,%eax
call   1070 <printf@plt>
jmp    1395 <main+0x1d5>
mov    0x8(%rsp),%rdi
call   10d0 <strdup@plt>
test   %rax,%rax
je     12e4 <main+0x124>
mov    %rax,%r15
mov    %rax,%rdi
call   1060 <strlen@plt>
mov    %eax,%r14d
mov    0x10(%rbp),%rdi
call   10b0 <atol@plt>
mov    %eax,%r13d
test   %eax,%eax
jle    1305 <main+0x145>
lea    0x18(%rsp),%rdi
call   10a0 <time@plt>
lea    0x20(%rsp),%r12
mov    %r13d,%ebp
cs nopw 0x0(%rax,%rax,1)
nopl   (%rax)
mov    0x8(%rsp),%r15
mov    %r12,%rdi
xor    %esi,%esi
mov    $0x401,%edx
call   1080 <memset@plt>
mov    %r15,%rdi
mov    %r12,%rsi
mov    $0x401,%edx
xor    %ecx,%ecx
lea    0xd68(%rip),%r8
call   10e0 <TravelJsonBuffer@plt>
test   %eax,%eax
jne    137b <main+0x1bb>
add    $0xffffffff,%ebp
jne    1270 <main+0xb0>
nopw   0x0(%rax,%rax,1)
mov    0x8(%rsp),%rsi
mov    %r15,%rdi
mov    %r14d,%edx
call   1090 <memcpy@plt>
add    $0xffffffff,%r13d
jne    12b0 <main+0xf0>
lea    0x10(%rsp),%rdi
call   10a0 <time@plt>
mov    0x10(%rsp),%esi
sub    0x18(%rsp),%esi
lea    0xd8b(%rip),%rdi
jmp    1368 <main+0x1a8>
mov    0x2cf5(%rip),%rax
mov    (%rax),%esi
lea    0xd40(%rip),%rdi
xor    %eax,%eax
call   1070 <printf@plt>
mov    $0x1,%ebx
jmp    1395 <main+0x1d5>
xor    %r14d,%r14d
test   %r13d,%r13d
jns    135e <main+0x19e>
neg    %r13d
cmp    $0x2,%r13d
mov    $0x1,%ebx
cmovge %r13d,%ebx
xor    %ebp,%ebp
movabs $0xcccccccccccccccd,%r12
cc cc cc
xor    %r14d,%r14d
nopl   0x0(%rax)
mov    %rbp,%rax
mul    %r12
shr    $0x2,%rdx
and    $0xfffffffffffffffe,%rdx
lea    (%rdx,%rdx,4),%rax
mov    %rbp,%rdi
sub    %rax,%rdi
add    0x8(%rsp),%rdi
call   1060 <strlen@plt>
add    %eax,%r14d
add    $0x1,%rbp
add    $0xffffffff,%ebx
jne    1330 <main+0x170>
lea    0xd18(%rip),%rdi
mov    %r14d,%esi
xor    %eax,%eax
call   1070 <printf@plt>
mov    %r15,%rdi
call   1030 <free@plt>
xor    %ebx,%ebx
jmp    1395 <main+0x1d5>
mov    %eax,%ebx
lea    0xccb(%rip),%rdi
mov    %eax,%esi
xor    %eax,%eax
call   1070 <printf@plt>
mov    %r15,%rdi
call   1030 <free@plt>
mov    %ebx,%eax
add    $0x428,%rsp
pop    %rbx
pop    %r12
pop    %r13
pop    %r14
pop    %r15
pop    %rbp
ret
lea    0xcd6(%rip),%rdi
call   1050 <puts@plt>
mov    $0x7,%edi
call   10c0 <exit@plt>

LLVM IR (-O0):
@.str = [12 x i8] c"hello world\00"
@.str.1 = [3 x i8] c"rb\00"
@.str.2 = [37 x i8] c"ReadEntireFileSafely[%s] failed[%d]\0A\00"
@.str.3 = [27 x i8] c"strdup failed , errno[%d]\0A\00"
@errno = global i32 0
@.str.4 = [27 x i8] c"TravelJsonTree failed[%d]\0A\00"
@.str.5 = [19 x i8] c"Elapse %d seconds\0A\00"
@.str.6 = [9 x i8] c"len[%d]\0A\00"
@.str.7 = [54 x i8] c"USAGE : press_fastjson json_pathfilename press_count\0A\00"
define i32 @main(i32 %0, i8** %1) {
%3 = alloca i32
%4 = alloca i32
%5 = alloca i8**
%6 = alloca [1025 x i8]
%7 = alloca i8*
%8 = alloca i32
%9 = alloca i8*
%10 = alloca i32
%11 = alloca i32
%12 = alloca i8*
%13 = alloca i32
%14 = alloca i64
%15 = alloca i64
%16 = alloca i32
store i32 0, i32* %3
store i32 %0, i32* %4
store i8** %1, i8*** %5
%17 = load i32, i32* %4
%18 = icmp eq i32 %17, 3
br i1 %18, label %19, label %121
19: ; preds = %2
store i8* null, i8** %7
store i8* null, i8** %9
store i8* getelementptr inbounds ([12 x i8], [12 x i8]* @.str, i64 0, i64 0), i8** %12
store i32 0, i32* %13
%20 = load i8**, i8*** %5
%21 = getelementptr inbounds i8*, i8** %20, i64 1
%22 = load i8*, i8** %21
%23 = call i32 @ReadEntireFileSafely(i8* %22, i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str.1, i64 0, i64 0), i8** %9, i32* null)
store i32 %23, i32* %13
%24 = load i32, i32* %13
%25 = icmp ne i32 %24, 0
br i1 %25, label %26, label %33
26: ; preds = %19
%27 = load i8**, i8*** %5
%28 = getelementptr inbounds i8*, i8** %27, i64 1
%29 = load i8*, i8** %28
%30 = load i32, i32* %13
%31 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([37 x i8], [37 x i8]* @.str.2, i64 0, i64 0), i8* %29, i32 %30)
%32 = load i32, i32* %13
store i32 %32, i32* %3
br label %125
33: ; preds = %19
%34 = load i8*, i8** %9
%35 = call i8* @strdup(i8* %34)
store i8* %35, i8** %7
%36 = load i8*, i8** %7
%37 = icmp eq i8* %36, null
br i1 %37, label %38, label %41
38: ; preds = %33
%39 = load i32, i32* @errno
%40 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([27 x i8], [27 x i8]* @.str.3, i64 0, i64 0), i32 %39)
store i32 1, i32* %3
br label %125
41: ; preds = %33
%42 = load i8*, i8** %7
%43 = call i32 @strlen(i8* %42)
store i32 %43, i32* %8
%44 = load i8**, i8*** %5
%45 = getelementptr inbounds i8*, i8** %44, i64 2
%46 = load i8*, i8** %45
%47 = call i32 @atol(i8* %46)
store i32 %47, i32* %11
%48 = load i32, i32* %11
%49 = icmp sgt i32 %48, 0
br i1 %49, label %50, label %96
50: ; preds = %41
%51 = call i32 @time(i64* %14)
store i32 0, i32* %10
br label %52
52: ; preds = %73, %50
%53 = load i32, i32* %10
%54 = load i32, i32* %11
%55 = icmp slt i32 %53, %54
br i1 %55, label %56, label %76
56: ; preds = %52
%57 = load i8*, i8** %9
store i8* %57, i8** %7
%58 = getelementptr inbounds [1025 x i8], [1025 x i8]* %6, i64 0, i64 0
%59 = call i32 @memset(i8* %58, i32 0, i32 1025)
%60 = load i8*, i8** %7
%61 = getelementptr inbounds [1025 x i8], [1025 x i8]* %6, i64 0, i64 0
%62 = load i8*, i8** %12
%63 = call i32 @TravelJsonBuffer(i8* %60, i8* %61, i32 1025, i32* null, i8* %62)
store i32 %63, i32* %13
%64 = load i32, i32* %13
%65 = icmp ne i32 %64, 0
br i1 %65, label %66, label %72
66: ; preds = %56
%67 = load i32, i32* %13
%68 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([27 x i8], [27 x i8]* @.str.4, i64 0, i64 0), i32 %67)
%69 = load i8*, i8** %7
%70 = call i32 @free(i8* %69)
%71 = load i32, i32* %13
store i32 %71, i32* %3
br label %125
72: ; preds = %56
br label %73
73: ; preds = %72
%74 = load i32, i32* %10
%75 = add nsw i32 %74, 1
store i32 %75, i32* %10
br label %52
76: ; preds = %52
store i32 0, i32* %10
br label %77
77: ; preds = %86, %76
%78 = load i32, i32* %10
%79 = load i32, i32* %11
%80 = icmp slt i32 %78, %79
br i1 %80, label %81, label %89
81: ; preds = %77
%82 = load i8*, i8** %7
%83 = load i8*, i8** %9
%84 = load i32, i32* %8
%85 = call i32 @memcpy(i8* %82, i8* %83, i32 %84)
br label %86
86: ; preds = %81
%87 = load i32, i32* %10
%88 = add nsw i32 %87, 1
store i32 %88, i32* %10
br label %77
89: ; preds = %77
%90 = call i32 @time(i64* %15)
%91 = load i64, i64* %15
%92 = load i64, i64* %14
%93 = sub nsw i64 %91, %92
%94 = trunc i64 %93 to i32
%95 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([19 x i8], [19 x i8]* @.str.5, i64 0, i64 0), i32 %94)
br label %118
96: ; preds = %41
%97 = load i32, i32* %11
%98 = sub nsw i32 0, %97
store i32 %98, i32* %11
store i32 0, i32* %16
store i32 0, i32* %10
br label %99
99: ; preds = %112, %96
%100 = load i32, i32* %10
%101 = load i32, i32* %11
%102 = icmp slt i32 %100, %101
br i1 %102, label %103, label %115
103: ; preds = %99
%104 = load i8*, i8** %9
%105 = load i32, i32* %10
%106 = srem i32 %105, 10
%107 = sext i32 %106 to i64
%108 = getelementptr inbounds i8, i8* %104, i64 %107
%109 = call i32 @strlen(i8* %108)
%110 = load i32, i32* %16
%111 = add nsw i32 %110, %109
store i32 %111, i32* %16
br label %112
112: ; preds = %103
%113 = load i32, i32* %10
%114 = add nsw i32 %113, 1
store i32 %114, i32* %10
br label %99
115: ; preds = %99
%116 = load i32, i32* %16
%117 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([9 x i8], [9 x i8]* @.str.6, i64 0, i64 0), i32 %116)
br label %118
118: ; preds = %115, %89
%119 = load i8*, i8** %7
%120 = call i32 @free(i8* %119)
br label %124
121: ; preds = %2
%122 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([54 x i8], [54 x i8]* @.str.7, i64 0, i64 0))
%123 = call i32 @exit(i32 7)
unreachable
124: ; preds = %118
store i32 0, i32* %3
br label %125
125: ; preds = %124, %66, %38, %26
%126 = load i32, i32* %3
ret i32 %126
}

LLVM IR (-O2):
@.str = [12 x i8] c"hello world\00"
@.str.1 = [3 x i8] c"rb\00"
@.str.2 = [37 x i8] c"ReadEntireFileSafely[%s] failed[%d]\0A\00"
@.str.3 = [27 x i8] c"strdup failed , errno[%d]\0A\00"
@errno = global i32 0
@.str.4 = [27 x i8] c"TravelJsonTree failed[%d]\0A\00"
@.str.5 = [19 x i8] c"Elapse %d seconds\0A\00"
@.str.6 = [9 x i8] c"len[%d]\0A\00"
@str = [53 x i8] c"USAGE : press_fastjson json_pathfilename press_count\00"
define i32 @main(i32 %0, i8** nocapture %1) {
%3 = alloca [1025 x i8]
%4 = alloca i8*
%5 = alloca i64
%6 = alloca i64
%7 = icmp eq i32 %0, 3
br i1 %7, label %8, label %86
8: ; preds = %2
%9 = getelementptr inbounds [1025 x i8], [1025 x i8]* %3, i64 0, i64 0
%10 = bitcast i8** %4 to i8*
store i8* null, i8** %4
%11 = getelementptr inbounds i8*, i8** %1, i64 1
%12 = load i8*, i8** %11
%13 = call i32 @ReadEntireFileSafely(i8* %12, i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str.1, i64 0, i64 0), i8** %4, i32* null)
%14 = icmp eq i32 %13, 0
br i1 %14, label %18, label %15
15: ; preds = %8
%16 = load i8*, i8** %11
%17 = call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([37 x i8], [37 x i8]* @.str.2, i64 0, i64 0), i8* %16, i32 %13)
br label %79
18: ; preds = %8
%19 = load i8*, i8** %4
%20 = call i8* @strdup(i8* %19)
%21 = icmp eq i8* %20, null
br i1 %21, label %22, label %25
22: ; preds = %18
%23 = load i32, i32* @errno
%24 = call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([27 x i8], [27 x i8]* @.str.3, i64 0, i64 0), i32 %23)
br label %79
25: ; preds = %18
%26 = call i32 @strlen(i8* %20)
%27 = getelementptr inbounds i8*, i8** %1, i64 2
%28 = load i8*, i8** %27
%29 = call i32 @atol(i8* %28)
%30 = icmp sgt i32 %29, 0
br i1 %30, label %31, label %60
31: ; preds = %25
%32 = bitcast i64* %5 to i8*
%33 = bitcast i64* %6 to i8*
%34 = call i32 @time(i64* %5)
br label %37
35: ; preds = %37
%36 = icmp eq i32 %43, %29
br i1 %36, label %47, label %37
37: ; preds = %31, %35
%38 = phi i32 [ 0, %31 ], [ %43, %35 ]
%39 = load i8*, i8** %4
%40 = call i32 @memset(i8* %9, i32 0, i32 1025)
%41 = call i32 @TravelJsonBuffer(i8* %39, i8* %9, i32 1025, i32* null, i8* getelementptr inbounds ([12 x i8], [12 x i8]* @.str, i64 0, i64 0))
%42 = icmp eq i32 %41, 0
%43 = add nuw nsw i32 %38, 1
br i1 %42, label %35, label %44
44: ; preds = %37
%45 = call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([27 x i8], [27 x i8]* @.str.4, i64 0, i64 0), i32 %41)
%46 = call i32 @free(i8* %39)
br label %79
47: ; preds = %35, %47
%48 = phi i32 [ %51, %47 ], [ 0, %35 ]
%49 = load i8*, i8** %4
%50 = call i32 @memcpy(i8* %39, i8* %49, i32 %26)
%51 = add nuw nsw i32 %48, 1
%52 = icmp eq i32 %51, %29
br i1 %52, label %53, label %47
53: ; preds = %47
%54 = call i32 @time(i64* %6)
%55 = load i64, i64* %6
%56 = load i64, i64* %5
%57 = sub nsw i64 %55, %56
%58 = trunc i64 %57 to i32
%59 = call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([19 x i8], [19 x i8]* @.str.5, i64 0, i64 0), i32 %58)
br label %81
60: ; preds = %25
%61 = icmp slt i32 %29, 0
br i1 %61, label %62, label %76
62: ; preds = %60
%63 = sub i32 0, %29
%64 = call i32 @llvm.smax.i32(i32 %63, i32 1)
br label %65
65: ; preds = %62, %65
%66 = phi i32 [ %73, %65 ], [ 0, %62 ]
%67 = phi i32 [ %74, %65 ], [ 0, %62 ]
%68 = load i8*, i8** %4
%69 = urem i32 %67, 10
%70 = zext i32 %69 to i64
%71 = getelementptr inbounds i8, i8* %68, i64 %70
%72 = call i32 @strlen(i8* %71)
%73 = add nsw i32 %72, %66
%74 = add nuw nsw i32 %67, 1
%75 = icmp eq i32 %74, %64
br i1 %75, label %76, label %65
76: ; preds = %65, %60
%77 = phi i32 [ 0, %60 ], [ %73, %65 ]
%78 = call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([9 x i8], [9 x i8]* @.str.6, i64 0, i64 0), i32 %77)
br label %81
79: ; preds = %15, %22, %44
%80 = phi i32 [ %41, %44 ], [ 1, %22 ], [ %13, %15 ]
br label %84
81: ; preds = %53, %76
%82 = phi i8* [ %39, %53 ], [ %20, %76 ]
%83 = call i32 @free(i8* %82)
br label %84
84: ; preds = %79, %81
%85 = phi i32 [ 0, %81 ], [ %80, %79 ]
ret i32 %85
86: ; preds = %2
%87 = tail call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([53 x i8], [53 x i8]* @str, i64 0, i64 0))
%88 = tail call i32 @exit(i32 7)
unreachable
}