#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__ clock_t;

/* Variables and functions */
double CLOCKS_PER_SEC;
size_t TR_hexdecode(char *, size_t);
int /*<<< orphan*/ TR_hexencode(char *, char *, int);
size_t TR_urldecode(char *, int);
scalar_t__ clock();
int /*<<< orphan*/ memcpy(char *, char *, size_t);
int /*<<< orphan*/ printf(char *, ...);
int /*<<< orphan*/ puts(char *);
int main(int argc, char *argv[]) {
  char buf[sizeof("http%3A%2F%2ffoo+bar%2fabcd")];
  size_t new_size;
  size_t hexsize = (sizeof("http%3A%2F%2ffoo+bar%2fabcd") - 1) * 2;
  char hexbuf[hexsize + 1];
  char hexbuf2[hexsize + 1];
  clock_t start, end;
  int i;
  printf("Some transformations of %s\n\n", "http%3A%2F%2ffoo+bar%2fabcd");
  printf("urlencode %d times ... ", 10000000);
  start = clock();
  for (i = 0; i < 10000000; i++) {
    memcpy(buf, "http%3A%2F%2ffoo+bar%2fabcd",
           sizeof("http%3A%2F%2ffoo+bar%2fabcd"));
    new_size = TR_urldecode(buf, sizeof("http%3A%2F%2ffoo+bar%2fabcd") - 1);
  }
  end = clock();
  buf[new_size] = 0;
  printf("done\nResult: (%zu)%s\n", new_size, buf);
  printf("CPU time used: %f\n", (double)(end - start) / CLOCKS_PER_SEC);
  puts("--------------------");
  printf("hexencode %d times ... ", 10000000);
  start = clock();
  for (i = 0; i < 10000000; i++) {
    TR_hexencode(hexbuf, "http%3A%2F%2ffoo+bar%2fabcd",
                 sizeof("http%3A%2F%2ffoo+bar%2fabcd") - 1);
  }
  end = clock();
  hexbuf[hexsize] = hexbuf2[hexsize] = 0;
  printf("done\nResult: %s\n", hexbuf);
  printf("CPU time used: %f\n", (double)(end - start) / CLOCKS_PER_SEC);
  puts("--------------------");
  printf("hexdecode %d times ... ", 10000000);
  start = clock();
  for (i = 0; i < 10000000; i++) {
    memcpy(hexbuf2, hexbuf, hexsize);
    new_size = TR_hexdecode(hexbuf2, hexsize);
  }
  end = clock();
  hexbuf2[new_size] = 0;
  printf("done\nResult: (%zu)%s\n", new_size, hexbuf2);
  printf("CPU time used: %f\n", (double)(end - start) / CLOCKS_PER_SEC);
  return 0;
}


x86 assembly (clang, -O0):
<main>:
push   %rbp
mov    %rsp,%rbp
sub    $0x80,%rsp
movl   $0x0,-0x4(%rbp)
mov    %edi,-0x8(%rbp)
mov    %rsi,-0x10(%rbp)
movq   $0x36,-0x40(%rbp)
mov    -0x40(%rbp),%rdx
mov    %rdx,%rax
add    $0x1,%rax
mov    %rsp,%rcx
mov    %rcx,-0x48(%rbp)
add    $0x10,%rdx
and    $0xfffffffffffffff0,%rdx
mov    %rsp,%rcx
sub    %rdx,%rcx
mov    %rcx,-0x80(%rbp)
mov    %rcx,%rsp
mov    %rax,-0x50(%rbp)
mov    -0x40(%rbp),%rdx
mov    %rdx,%rax
add    $0x1,%rax
add    $0x10,%rdx
and    $0xfffffffffffffff0,%rdx
mov    %rsp,%rcx
sub    %rdx,%rcx
mov    %rcx,-0x78(%rbp)
mov    %rcx,%rsp
mov    %rax,-0x58(%rbp)
lea    0xe19(%rip),%rdi
lea    0xe2f(%rip),%rsi
mov    $0x0,%al
call   1050 <printf@plt>
lea    0xe3d(%rip),%rdi
mov    $0x989680,%esi
mov    $0x0,%al
call   1050 <printf@plt>
mov    $0x0,%al
call   1040 <clock@plt>
mov    %rax,-0x60(%rbp)
movl   $0x0,-0x6c(%rbp)
cmpl   $0x989680,-0x6c(%rbp)
jge    125c <main+0xec>
lea    -0x30(%rbp),%rdi
lea    0xdeb(%rip),%rsi
mov    $0x1c,%edx
call   1070 <memcpy@plt>
lea    -0x30(%rbp),%rdi
mov    $0x1b,%esi
call   1080 <TR_urldecode@plt>
mov    %rax,-0x38(%rbp)
mov    -0x6c(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0x6c(%rbp)
jmp    121a <main+0xaa>
mov    $0x0,%al
call   1040 <clock@plt>
mov    %rax,-0x68(%rbp)
mov    -0x38(%rbp),%rax
movb   $0x0,-0x30(%rbp,%rax,1)
mov    -0x38(%rbp),%rsi
lea    -0x30(%rbp),%rdx
lea    0xdd2(%rip),%rdi
mov    $0x0,%al
call   1050 <printf@plt>
mov    -0x68(%rbp),%rax
sub    -0x60(%rbp),%rax
cvtsi2sd %rax,%xmm0
mov    0x2d4e(%rip),%rax
divsd  (%rax),%xmm0
lea    0xdc2(%rip),%rdi
mov    $0x1,%al
call   1050 <printf@plt>
lea    0xdc7(%rip),%rdi
call   1030 <puts@plt>
lea    0xdd0(%rip),%rdi
mov    $0x989680,%esi
mov    $0x0,%al
call   1050 <printf@plt>
mov    $0x0,%al
call   1040 <clock@plt>
mov    %rax,-0x60(%rbp)
movl   $0x0,-0x6c(%rbp)
cmpl   $0x989680,-0x6c(%rbp)
jge    130d <main+0x19d>
mov    -0x80(%rbp),%rdi
lea    0xd28(%rip),%rsi
mov    $0x1b,%edx
call   1090 <TR_hexencode@plt>
mov    -0x6c(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0x6c(%rbp)
jmp    12dd <main+0x16d>
mov    $0x0,%al
call   1040 <clock@plt>
mov    -0x80(%rbp),%rsi
mov    %rax,%rcx
mov    -0x78(%rbp),%rax
mov    %rcx,-0x68(%rbp)
mov    -0x40(%rbp),%rcx
movb   $0x0,(%rax,%rcx,1)
mov    -0x40(%rbp),%rax
movb   $0x0,(%rsi,%rax,1)
lea    0xd6d(%rip),%rdi
mov    $0x0,%al
call   1050 <printf@plt>
mov    -0x68(%rbp),%rax
sub    -0x60(%rbp),%rax
cvtsi2sd %rax,%xmm0
mov    0x2c93(%rip),%rax
divsd  (%rax),%xmm0
lea    0xd07(%rip),%rdi
mov    $0x1,%al
call   1050 <printf@plt>
lea    0xd0c(%rip),%rdi
call   1030 <puts@plt>
lea    0xd3e(%rip),%rdi
mov    $0x989680,%esi
mov    $0x0,%al
call   1050 <printf@plt>
mov    $0x0,%al
call   1040 <clock@plt>
mov    %rax,-0x60(%rbp)
movl   $0x0,-0x6c(%rbp)
cmpl   $0x989680,-0x6c(%rbp)
jge    13d5 <main+0x265>
mov    -0x78(%rbp),%rdi
mov    -0x80(%rbp),%rsi
mov    -0x40(%rbp),%rdx
call   1070 <memcpy@plt>
mov    -0x78(%rbp),%rdi
mov    -0x40(%rbp),%rsi
call   1060 <TR_hexdecode@plt>
mov    %rax,-0x38(%rbp)
mov    -0x6c(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0x6c(%rbp)
jmp    1398 <main+0x228>
mov    $0x0,%al
call   1040 <clock@plt>
mov    -0x78(%rbp),%rdx
mov    %rax,-0x68(%rbp)
mov    -0x38(%rbp),%rax
movb   $0x0,(%rdx,%rax,1)
mov    -0x38(%rbp),%rsi
lea    0xc5a(%rip),%rdi
mov    $0x0,%al
call   1050 <printf@plt>
mov    -0x68(%rbp),%rax
sub    -0x60(%rbp),%rax
cvtsi2sd %rax,%xmm0
mov    0x2bd6(%rip),%rax
divsd  (%rax),%xmm0
lea    0xc4a(%rip),%rdi
mov    $0x1,%al
call   1050 <printf@plt>
movl   $0x0,-0x4(%rbp)
mov    -0x48(%rbp),%rax
mov    %rax,%rsp
mov    -0x4(%rbp),%eax
mov    %rbp,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<main>:
push   %rbp
push   %r15
push   %r14
push   %r13
push   %r12
push   %rbx
sub    $0xa8,%rsp
mov    %rsp,0x8(%rsp)
lea    0xe73(%rip),%rdi
lea    0xe89(%rip),%r15
mov    %r15,%rsi
xor    %eax,%eax
call   1050 <printf@plt>
lea    0xe94(%rip),%rdi
mov    $0x989680,%ebp
mov    $0x989680,%esi
xor    %eax,%eax
call   1050 <printf@plt>
xor    %eax,%eax
call   1040 <clock@plt>
mov    %rax,%r14
lea    0x10(%rsp),%r12
cs nopw 0x0(%rax,%rax,1)
nop
mov    $0x1c,%edx
mov    %r12,%rdi
mov    %r15,%rsi
call   1070 <memcpy@plt>
mov    %r12,%rdi
mov    $0x1b,%esi
call   1080 <TR_urldecode@plt>
add    $0xffffffff,%ebp
jne    11d0 <main+0x60>
mov    %rax,%rbx
xor    %eax,%eax
call   1040 <clock@plt>
mov    %rax,%r15
movb   $0x0,0x10(%rsp,%rbx,1)
lea    0xe46(%rip),%rdi
lea    0x10(%rsp),%rdx
mov    %rbx,%rsi
xor    %eax,%eax
call   1050 <printf@plt>
sub    %r14,%r15
cvtsi2sd %r15,%xmm0
mov    0x2dbf(%rip),%r12
divsd  (%r12),%xmm0
lea    0xe31(%rip),%rdi
mov    $0x1,%al
call   1050 <printf@plt>
lea    0xe36(%rip),%rdi
call   1030 <puts@plt>
lea    0xe3f(%rip),%rdi
mov    $0x989680,%ebp
mov    $0x989680,%esi
xor    %eax,%eax
call   1050 <printf@plt>
xor    %eax,%eax
call   1040 <clock@plt>
mov    %rax,%r14
lea    0xdab(%rip),%r15
lea    0x70(%rsp),%rbx
nopw   0x0(%rax,%rax,1)
mov    %rbx,%rdi
mov    %r15,%rsi
mov    $0x1b,%edx
call   1090 <TR_hexencode@plt>
add    $0xffffffff,%ebp
jne    1280 <main+0x110>
xor    %eax,%eax
call   1040 <clock@plt>
mov    %rax,%rbx
movb   $0x0,0x66(%rsp)
movb   $0x0,0xa6(%rsp)
lea    0xdf4(%rip),%rdi
lea    0x70(%rsp),%r15
mov    %r15,%rsi
xor    %eax,%eax
call   1050 <printf@plt>
sub    %r14,%rbx
xorps  %xmm0,%xmm0
cvtsi2sd %rbx,%xmm0
mov    %r12,%rbp
divsd  (%r12),%xmm0
lea    0xd8a(%rip),%rdi
mov    $0x1,%al
call   1050 <printf@plt>
lea    0xd8f(%rip),%rdi
call   1030 <puts@plt>
lea    0xdc1(%rip),%rdi
mov    $0x989680,%r13d
mov    $0x989680,%esi
xor    %eax,%eax
call   1050 <printf@plt>
xor    %eax,%eax
call   1040 <clock@plt>
mov    %rax,%r14
lea    0x30(%rsp),%r12
nopl   0x0(%rax,%rax,1)
mov    $0x36,%edx
mov    %r12,%rdi
mov    %r15,%rsi
call   1070 <memcpy@plt>
mov    $0x36,%esi
mov    %r12,%rdi
call   1060 <TR_hexdecode@plt>
add    $0xffffffff,%r13d
jne    1320 <main+0x1b0>
mov    %rax,%rbx
xor    %eax,%eax
call   1040 <clock@plt>
mov    %rax,%r15
movb   $0x0,0x30(%rsp,%rbx,1)
lea    0xcf5(%rip),%rdi
lea    0x30(%rsp),%rdx
mov    %rbx,%rsi
xor    %eax,%eax
call   1050 <printf@plt>
sub    %r14,%r15
xorps  %xmm0,%xmm0
cvtsi2sd %r15,%xmm0
divsd  0x0(%rbp),%xmm0
lea    0xce5(%rip),%rdi
mov    $0x1,%al
call   1050 <printf@plt>
mov    0x8(%rsp),%rsp
xor    %eax,%eax
add    $0xa8,%rsp
pop    %rbx
pop    %r12
pop    %r13
pop    %r14
pop    %r15
pop    %rbp
ret

LLVM IR (-O0):
@.str = [29 x i8] c"Some transformations of %s\0A\0A\00"
@.str.1 = [28 x i8] c"http%3A%2F%2ffoo+bar%2fabcd\00"
@.str.2 = [24 x i8] c"urlencode %d times ... \00"
@.str.3 = [22 x i8] c"done\0AResult: (%zu)%s\0A\00"
@.str.4 = [19 x i8] c"CPU time used: %f\0A\00"
@CLOCKS_PER_SEC = global double 0.000000e+00
@.str.5 = [21 x i8] c"--------------------\00"
@.str.6 = [24 x i8] c"hexencode %d times ... \00"
@.str.7 = [17 x i8] c"done\0AResult: %s\0A\00"
@.str.8 = [24 x i8] c"hexdecode %d times ... \00"
define i32 @main(i32 %0, i8** %1) {
%3 = alloca i32
%4 = alloca i32
%5 = alloca i8**
%6 = alloca [28 x i8]
%7 = alloca i64
%8 = alloca i64
%9 = alloca i8*
%10 = alloca i64
%11 = alloca i64
%12 = alloca i64
%13 = alloca i64
%14 = alloca i32
store i32 0, i32* %3
store i32 %0, i32* %4
store i8** %1, i8*** %5
store i64 54, i64* %8
%15 = load i64, i64* %8
%16 = add i64 %15, 1
%17 = call i8* @llvm.stacksave()
store i8* %17, i8** %9
%18 = alloca i8, i64 %16
store i64 %16, i64* %10
%19 = load i64, i64* %8
%20 = add i64 %19, 1
%21 = alloca i8, i64 %20
store i64 %20, i64* %11
%22 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([29 x i8], [29 x i8]* @.str, i64 0, i64 0), i8* getelementptr inbounds ([28 x i8], [28 x i8]* @.str.1, i64 0, i64 0))
%23 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([24 x i8], [24 x i8]* @.str.2, i64 0, i64 0), i32 10000000)
%24 = call i64 (...) @clock()
store i64 %24, i64* %12
store i32 0, i32* %14
br label %25
25: ; preds = %33, %2
%26 = load i32, i32* %14
%27 = icmp slt i32 %26, 10000000
br i1 %27, label %28, label %36
28: ; preds = %25
%29 = getelementptr inbounds [28 x i8], [28 x i8]* %6, i64 0, i64 0
%30 = call i32 @memcpy(i8* %29, i8* getelementptr inbounds ([28 x i8], [28 x i8]* @.str.1, i64 0, i64 0), i64 28)
%31 = getelementptr inbounds [28 x i8], [28 x i8]* %6, i64 0, i64 0
%32 = call i64 @TR_urldecode(i8* %31, i32 27)
store i64 %32, i64* %7
br label %33
33: ; preds = %28
%34 = load i32, i32* %14
%35 = add nsw i32 %34, 1
store i32 %35, i32* %14
br label %25
36: ; preds = %25
%37 = call i64 (...) @clock()
store i64 %37, i64* %13
%38 = load i64, i64* %7
%39 = getelementptr inbounds [28 x i8], [28 x i8]* %6, i64 0, i64 %38
store i8 0, i8* %39
%40 = load i64, i64* %7
%41 = getelementptr inbounds [28 x i8], [28 x i8]* %6, i64 0, i64 0
%42 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([22 x i8], [22 x i8]* @.str.3, i64 0, i64 0), i64 %40, i8* %41)
%43 = load i64, i64* %13
%44 = load i64, i64* %12
%45 = sub nsw i64 %43, %44
%46 = sitofp i64 %45 to double
%47 = load double, double* @CLOCKS_PER_SEC
%48 = fdiv double %46, %47
%49 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([19 x i8], [19 x i8]* @.str.4, i64 0, i64 0), double %48)
%50 = call i32 @puts(i8* getelementptr inbounds ([21 x i8], [21 x i8]* @.str.5, i64 0, i64 0))
%51 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([24 x i8], [24 x i8]* @.str.6, i64 0, i64 0), i32 10000000)
%52 = call i64 (...) @clock()
store i64 %52, i64* %12
store i32 0, i32* %14
br label %53
53: ; preds = %58, %36
%54 = load i32, i32* %14
%55 = icmp slt i32 %54, 10000000
br i1 %55, label %56, label %61
56: ; preds = %53
%57 = call i32 @TR_hexencode(i8* %18, i8* getelementptr inbounds ([28 x i8], [28 x i8]* @.str.1, i64 0, i64 0), i32 27)
br label %58
58: ; preds = %56
%59 = load i32, i32* %14
%60 = add nsw i32 %59, 1
store i32 %60, i32* %14
br label %53
61: ; preds = %53
%62 = call i64 (...) @clock()
store i64 %62, i64* %13
%63 = load i64, i64* %8
%64 = getelementptr inbounds i8, i8* %21, i64 %63
store i8 0, i8* %64
%65 = load i64, i64* %8
%66 = getelementptr inbounds i8, i8* %18, i64 %65
store i8 0, i8* %66
%67 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([17 x i8], [17 x i8]* @.str.7, i64 0, i64 0), i8* %18)
%68 = load i64, i64* %13
%69 = load i64, i64* %12
%70 = sub nsw i64 %68, %69
%71 = sitofp i64 %70 to double
%72 = load double, double* @CLOCKS_PER_SEC
%73 = fdiv double %71, %72
%74 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([19 x i8], [19 x i8]* @.str.4, i64 0, i64 0), double %73)
%75 = call i32 @puts(i8* getelementptr inbounds ([21 x i8], [21 x i8]* @.str.5, i64 0, i64 0))
%76 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([24 x i8], [24 x i8]* @.str.8, i64 0, i64 0), i32 10000000)
%77 = call i64 (...) @clock()
store i64 %77, i64* %12
store i32 0, i32* %14
br label %78
78: ; preds = %86, %61
%79 = load i32, i32* %14
%80 = icmp slt i32 %79, 10000000
br i1 %80, label %81, label %89
81: ; preds = %78
%82 = load i64, i64* %8
%83 = call i32 @memcpy(i8* %21, i8* %18, i64 %82)
%84 = load i64, i64* %8
%85 = call i64 @TR_hexdecode(i8* %21, i64 %84)
store i64 %85, i64* %7
br label %86
86: ; preds = %81
%87 = load i32, i32* %14
%88 = add nsw i32 %87, 1
store i32 %88, i32* %14
br label %78
89: ; preds = %78
%90 = call i64 (...) @clock()
store i64 %90, i64* %13
%91 = load i64, i64* %7
%92 = getelementptr inbounds i8, i8* %21, i64 %91
store i8 0, i8* %92
%93 = load i64, i64* %7
%94 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([22 x i8], [22 x i8]* @.str.3, i64 0, i64 0), i64 %93, i8* %21)
%95 = load i64, i64* %13
%96 = load i64, i64* %12
%97 = sub nsw i64 %95, %96
%98 = sitofp i64 %97 to double
%99 = load double, double* @CLOCKS_PER_SEC
%100 = fdiv double %98, %99
%101 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([19 x i8], [19 x i8]* @.str.4, i64 0, i64 0), double %100)
store i32 0, i32* %3
%102 = load i8*, i8** %9
%103 = load i32, i32* %3
ret i32 %103
}

LLVM IR (-O2):
@.str = [29 x i8] c"Some transformations of %s\0A\0A\00"
@.str.1 = [28 x i8] c"http%3A%2F%2ffoo+bar%2fabcd\00"
@.str.2 = [24 x i8] c"urlencode %d times ... \00"
@.str.3 = [22 x i8] c"done\0AResult: (%zu)%s\0A\00"
@.str.4 = [19 x i8] c"CPU time used: %f\0A\00"
@CLOCKS_PER_SEC = global double 0.000000e+00
@.str.5 = [21 x i8] c"--------------------\00"
@.str.6 = [24 x i8] c"hexencode %d times ... \00"
@.str.7 = [17 x i8] c"done\0AResult: %s\0A\00"
@.str.8 = [24 x i8] c"hexdecode %d times ... \00"
define i32 @main(i32 %0, i8** nocapture readnone %1) {
%3 = alloca [28 x i8]
%4 = getelementptr inbounds [28 x i8], [28 x i8]* %3, i64 0, i64 0
%5 = tail call i8* @llvm.stacksave()
%6 = alloca [55 x i8]
%7 = alloca [55 x i8]
%8 = getelementptr inbounds [55 x i8], [55 x i8]* %7, i64 0, i64 0
%9 = tail call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([29 x i8], [29 x i8]* @.str, i64 0, i64 0), i8* getelementptr inbounds ([28 x i8], [28 x i8]* @.str.1, i64 0, i64 0))
%10 = tail call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([24 x i8], [24 x i8]* @.str.2, i64 0, i64 0), i32 10000000)
%11 = tail call i64 (...) @clock()
br label %12
12: ; preds = %2, %12
%13 = phi i32 [ 0, %2 ], [ %16, %12 ]
%14 = call i32 @memcpy(i8* %4, i8* getelementptr inbounds ([28 x i8], [28 x i8]* @.str.1, i64 0, i64 0), i64 28)
%15 = call i64 @TR_urldecode(i8* %4, i32 27)
%16 = add nuw nsw i32 %13, 1
%17 = icmp eq i32 %16, 10000000
br i1 %17, label %18, label %12
18: ; preds = %12
%19 = getelementptr inbounds [55 x i8], [55 x i8]* %6, i64 0, i64 0
%20 = call i64 (...) @clock()
%21 = getelementptr inbounds [28 x i8], [28 x i8]* %3, i64 0, i64 %15
store i8 0, i8* %21
%22 = call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([22 x i8], [22 x i8]* @.str.3, i64 0, i64 0), i64 %15, i8* %4)
%23 = sub nsw i64 %20, %11
%24 = sitofp i64 %23 to double
%25 = load double, double* @CLOCKS_PER_SEC
%26 = fdiv double %24, %25
%27 = call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([19 x i8], [19 x i8]* @.str.4, i64 0, i64 0), double %26)
%28 = call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([21 x i8], [21 x i8]* @.str.5, i64 0, i64 0))
%29 = call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([24 x i8], [24 x i8]* @.str.6, i64 0, i64 0), i32 10000000)
%30 = call i64 (...) @clock()
br label %31
31: ; preds = %18, %31
%32 = phi i32 [ 0, %18 ], [ %34, %31 ]
%33 = call i32 @TR_hexencode(i8* %19, i8* getelementptr inbounds ([28 x i8], [28 x i8]* @.str.1, i64 0, i64 0), i32 27)
%34 = add nuw nsw i32 %32, 1
%35 = icmp eq i32 %34, 10000000
br i1 %35, label %36, label %31
36: ; preds = %31
%37 = call i64 (...) @clock()
%38 = getelementptr inbounds [55 x i8], [55 x i8]* %7, i64 0, i64 54
store i8 0, i8* %38
%39 = getelementptr inbounds [55 x i8], [55 x i8]* %6, i64 0, i64 54
store i8 0, i8* %39
%40 = call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([17 x i8], [17 x i8]* @.str.7, i64 0, i64 0), i8* %19)
%41 = sub nsw i64 %37, %30
%42 = sitofp i64 %41 to double
%43 = load double, double* @CLOCKS_PER_SEC
%44 = fdiv double %42, %43
%45 = call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([19 x i8], [19 x i8]* @.str.4, i64 0, i64 0), double %44)
%46 = call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([21 x i8], [21 x i8]* @.str.5, i64 0, i64 0))
%47 = call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([24 x i8], [24 x i8]* @.str.8, i64 0, i64 0), i32 10000000)
%48 = call i64 (...) @clock()
br label %49
49: ; preds = %36, %49
%50 = phi i32 [ 0, %36 ], [ %53, %49 ]
%51 = call i32 @memcpy(i8* %8, i8* %19, i64 54)
%52 = call i64 @TR_hexdecode(i8* %8, i64 54)
%53 = add nuw nsw i32 %50, 1
%54 = icmp eq i32 %53, 10000000
br i1 %54, label %55, label %49
55: ; preds = %49
%56 = call i64 (...) @clock()
%57 = getelementptr inbounds [55 x i8], [55 x i8]* %7, i64 0, i64 %52
store i8 0, i8* %57
%58 = call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([22 x i8], [22 x i8]* @.str.3, i64 0, i64 0), i64 %52, i8* %8)
%59 = sub nsw i64 %56, %48
%60 = sitofp i64 %59 to double
%61 = load double, double* @CLOCKS_PER_SEC
%62 = fdiv double %60, %61
%63 = call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([19 x i8], [19 x i8]* @.str.4, i64 0, i64 0), double %62)
ret i32 0
}