#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 */
scalar_t__ CLOCKS_PER_SEC;
int atoi(char const *);
int atol(char const *);
scalar_t__ clock();
int /*<<< orphan*/ fiolSReadInt(char const *, int *);
int /*<<< orphan*/ printf(char *, ...);
int /*<<< orphan*/ sscanf(char const *, char *, int *);
int strtol(char const *, int /*<<< orphan*/, int);
void benchReadOneInt(const char *msg) {
  unsigned int i;
  signed int signedInt;
  clock_t start, end;
  printf("\t%s\r\n", msg);
  do {
    start = clock();
  } while (0);
  for (i = 0; i < 400000; i++) {
    fiolSReadInt(msg, &signedInt);
  }
  do {
    end = clock();
    printf("\t\t%s: %f\r\n", "fiolSReadInt",
           (float)(end - start) / (float)CLOCKS_PER_SEC);
  } while (0);
  do {
    start = clock();
  } while (0);
  for (i = 0; i < 400000; i++) {
    sscanf(msg, "%d", &signedInt);
  }
  do {
    end = clock();
    printf("\t\t%s: %f\r\n", "sscanf",
           (float)(end - start) / (float)CLOCKS_PER_SEC);
  } while (0);
  do {
    start = clock();
  } while (0);
  for (i = 0; i < 400000; i++) {
    signedInt = atoi(msg);
  }
  do {
    end = clock();
    printf("\t\t%s: %f\r\n", "atoi",
           (float)(end - start) / (float)CLOCKS_PER_SEC);
  } while (0);
  do {
    start = clock();
  } while (0);
  for (i = 0; i < 400000; i++) {
    signedInt = atol(msg);
  }
  do {
    end = clock();
    printf("\t\t%s: %f\r\n", "atol",
           (float)(end - start) / (float)CLOCKS_PER_SEC);
  } while (0);
  do {
    start = clock();
  } while (0);
  for (i = 0; i < 400000; i++) {
    signedInt = strtol(msg, 0, 10);
  }
  do {
    end = clock();
    printf("\t\t%s: %f\r\n", "strtol",
           (float)(end - start) / (float)CLOCKS_PER_SEC);
  } while (0);
  printf("\r\n");
}


x86 assembly (clang, -O0):
<benchReadOneInt>:
push   %rbp
mov    %rsp,%rbp
sub    $0x20,%rsp
mov    %rdi,-0x8(%rbp)
mov    -0x8(%rbp),%rsi
lea    0xe79(%rip),%rdi
mov    $0x0,%al
call   1040 <printf@plt>
mov    $0x0,%al
call   1030 <clock@plt>
mov    %rax,-0x18(%rbp)
movl   $0x0,-0xc(%rbp)
cmpl   $0x61a80,-0xc(%rbp)
jae    11c8 <benchReadOneInt+0x58>
mov    -0x8(%rbp),%rdi
lea    -0x10(%rbp),%rsi
call   1090 <fiolSReadInt@plt>
mov    -0xc(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0xc(%rbp)
jmp    11a0 <benchReadOneInt+0x30>
jmp    11cd <benchReadOneInt+0x5d>
mov    $0x0,%al
call   1030 <clock@plt>
mov    %rax,-0x20(%rbp)
mov    -0x20(%rbp),%rax
sub    -0x18(%rbp),%rax
cvtsi2ss %rax,%xmm0
mov    0x2dfc(%rip),%rax
cvtsi2ssq (%rax),%xmm1
divss  %xmm1,%xmm0
cvtss2sd %xmm0,%xmm0
lea    0xe06(%rip),%rdi
lea    0xe0a(%rip),%rsi
mov    $0x1,%al
call   1040 <printf@plt>
jmp    1213 <benchReadOneInt+0xa3>
mov    $0x0,%al
call   1030 <clock@plt>
mov    %rax,-0x18(%rbp)
movl   $0x0,-0xc(%rbp)
cmpl   $0x61a80,-0xc(%rbp)
jae    1254 <benchReadOneInt+0xe4>
mov    -0x8(%rbp),%rdi
lea    0xde1(%rip),%rsi
lea    -0x10(%rbp),%rdx
call   1060 <sscanf@plt>
mov    -0xc(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0xc(%rbp)
jmp    1225 <benchReadOneInt+0xb5>
jmp    1259 <benchReadOneInt+0xe9>
mov    $0x0,%al
call   1030 <clock@plt>
mov    %rax,-0x20(%rbp)
mov    -0x20(%rbp),%rax
sub    -0x18(%rbp),%rax
cvtsi2ss %rax,%xmm0
mov    0x2d70(%rip),%rax
cvtsi2ssq (%rax),%xmm1
divss  %xmm1,%xmm0
cvtss2sd %xmm0,%xmm0
lea    0xd7a(%rip),%rdi
lea    0xd8e(%rip),%rsi
mov    $0x1,%al
call   1040 <printf@plt>
jmp    129f <benchReadOneInt+0x12f>
mov    $0x0,%al
call   1030 <clock@plt>
mov    %rax,-0x18(%rbp)
movl   $0x0,-0xc(%rbp)
cmpl   $0x61a80,-0xc(%rbp)
jae    12d8 <benchReadOneInt+0x168>
mov    -0x8(%rbp),%rdi
call   1080 <atoi@plt>
mov    %eax,-0x10(%rbp)
mov    -0xc(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0xc(%rbp)
jmp    12b1 <benchReadOneInt+0x141>
jmp    12dd <benchReadOneInt+0x16d>
mov    $0x0,%al
call   1030 <clock@plt>
mov    %rax,-0x20(%rbp)
mov    -0x20(%rbp),%rax
sub    -0x18(%rbp),%rax
cvtsi2ss %rax,%xmm0
mov    0x2cec(%rip),%rax
cvtsi2ssq (%rax),%xmm1
divss  %xmm1,%xmm0
cvtss2sd %xmm0,%xmm0
lea    0xcf6(%rip),%rdi
lea    0xd11(%rip),%rsi
mov    $0x1,%al
call   1040 <printf@plt>
jmp    1323 <benchReadOneInt+0x1b3>
mov    $0x0,%al
call   1030 <clock@plt>
mov    %rax,-0x18(%rbp)
movl   $0x0,-0xc(%rbp)
cmpl   $0x61a80,-0xc(%rbp)
jae    135c <benchReadOneInt+0x1ec>
mov    -0x8(%rbp),%rdi
call   1070 <atol@plt>
mov    %eax,-0x10(%rbp)
mov    -0xc(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0xc(%rbp)
jmp    1335 <benchReadOneInt+0x1c5>
jmp    1361 <benchReadOneInt+0x1f1>
mov    $0x0,%al
call   1030 <clock@plt>
mov    %rax,-0x20(%rbp)
mov    -0x20(%rbp),%rax
sub    -0x18(%rbp),%rax
cvtsi2ss %rax,%xmm0
mov    0x2c68(%rip),%rax
cvtsi2ssq (%rax),%xmm1
divss  %xmm1,%xmm0
cvtss2sd %xmm0,%xmm0
lea    0xc72(%rip),%rdi
lea    0xc92(%rip),%rsi
mov    $0x1,%al
call   1040 <printf@plt>
jmp    13a7 <benchReadOneInt+0x237>
mov    $0x0,%al
call   1030 <clock@plt>
mov    %rax,-0x18(%rbp)
movl   $0x0,-0xc(%rbp)
cmpl   $0x61a80,-0xc(%rbp)
jae    13e7 <benchReadOneInt+0x277>
mov    -0x8(%rbp),%rdi
xor    %esi,%esi
mov    $0xa,%edx
call   1050 <strtol@plt>
mov    %eax,-0x10(%rbp)
mov    -0xc(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0xc(%rbp)
jmp    13b9 <benchReadOneInt+0x249>
jmp    13ec <benchReadOneInt+0x27c>
mov    $0x0,%al
call   1030 <clock@plt>
mov    %rax,-0x20(%rbp)
mov    -0x20(%rbp),%rax
sub    -0x18(%rbp),%rax
cvtsi2ss %rax,%xmm0
mov    0x2bdd(%rip),%rax
cvtsi2ssq (%rax),%xmm1
divss  %xmm1,%xmm0
cvtss2sd %xmm0,%xmm0
lea    0xbe7(%rip),%rdi
lea    0xc0c(%rip),%rsi
mov    $0x1,%al
call   1040 <printf@plt>
lea    0xbda(%rip),%rdi
mov    $0x0,%al
call   1040 <printf@plt>
add    $0x20,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<benchReadOneInt>:
push   %rbp
push   %r15
push   %r14
push   %r13
push   %r12
push   %rbx
push   %rax
mov    %rdi,%rbx
lea    0xe6b(%rip),%rdi
mov    %rbx,%rsi
xor    %eax,%eax
call   1050 <printf@plt>
xor    %eax,%eax
call   1040 <clock@plt>
mov    %rax,%r14
mov    $0x61a80,%ebp
lea    0x4(%rsp),%r15
cs nopw 0x0(%rax,%rax,1)
nopl   (%rax)
mov    %rbx,%rdi
mov    %r15,%rsi
call   10a0 <fiolSReadInt@plt>
add    $0xffffffff,%ebp
jne    11c0 <benchReadOneInt+0x40>
xor    %eax,%eax
call   1040 <clock@plt>
sub    %r14,%rax
cvtsi2ss %rax,%xmm0
mov    0x2e02(%rip),%r13
cvtsi2ssq 0x0(%r13),%xmm1
divss  %xmm1,%xmm0
cvtss2sd %xmm0,%xmm0
lea    0xe0b(%rip),%rdi
lea    0xe0f(%rip),%rsi
mov    $0x1,%al
call   1050 <printf@plt>
xor    %eax,%eax
call   1040 <clock@plt>
mov    %rax,%r14
mov    $0x61a80,%ebp
lea    0xdff(%rip),%r15
lea    0x4(%rsp),%r12
cs nopw 0x0(%rax,%rax,1)
xchg   %ax,%ax
mov    %rbx,%rdi
mov    %r15,%rsi
mov    %r12,%rdx
call   1070 <sscanf@plt>
add    $0xffffffff,%ebp
jne    1230 <benchReadOneInt+0xb0>
xor    %eax,%eax
call   1040 <clock@plt>
sub    %r14,%rax
xorps  %xmm0,%xmm0
cvtsi2ss %rax,%xmm0
xorps  %xmm1,%xmm1
cvtsi2ssq 0x0(%r13),%xmm1
divss  %xmm1,%xmm0
cvtss2sd %xmm0,%xmm0
lea    0xd99(%rip),%rdi
lea    0xdad(%rip),%rsi
mov    $0x1,%al
call   1050 <printf@plt>
xor    %eax,%eax
call   1040 <clock@plt>
mov    %rax,%r14
mov    $0x61a80,%ebp
nopw   0x0(%rax,%rax,1)
mov    %rbx,%rdi
call   1090 <atoi@plt>
mov    %eax,0x4(%rsp)
add    $0xffffffff,%ebp
jne    1290 <benchReadOneInt+0x110>
xor    %eax,%eax
call   1040 <clock@plt>
sub    %r14,%rax
xorps  %xmm0,%xmm0
cvtsi2ss %rax,%xmm0
xorps  %xmm1,%xmm1
cvtsi2ssq 0x0(%r13),%xmm1
divss  %xmm1,%xmm0
cvtss2sd %xmm0,%xmm0
lea    0xd3b(%rip),%rdi
lea    0xd56(%rip),%rsi
mov    $0x1,%al
call   1050 <printf@plt>
xor    %eax,%eax
call   1040 <clock@plt>
mov    %rax,%r14
mov    $0x61a80,%ebp
nopl   0x0(%rax,%rax,1)
mov    %rbx,%rdi
call   1080 <atol@plt>
mov    %eax,0x4(%rsp)
add    $0xffffffff,%ebp
jne    12f0 <benchReadOneInt+0x170>
xor    %eax,%eax
call   1040 <clock@plt>
sub    %r14,%rax
xorps  %xmm0,%xmm0
cvtsi2ss %rax,%xmm0
xorps  %xmm1,%xmm1
cvtsi2ssq 0x0(%r13),%xmm1
divss  %xmm1,%xmm0
cvtss2sd %xmm0,%xmm0
lea    0xcdb(%rip),%rdi
lea    0xcfb(%rip),%rsi
mov    $0x1,%al
call   1050 <printf@plt>
xor    %eax,%eax
call   1040 <clock@plt>
mov    %rax,%r14
mov    $0x61a80,%ebp
nopl   0x0(%rax,%rax,1)
mov    %rbx,%rdi
xor    %esi,%esi
mov    $0xa,%edx
call   1060 <strtol@plt>
mov    %eax,0x4(%rsp)
add    $0xffffffff,%ebp
jne    1350 <benchReadOneInt+0x1d0>
xor    %eax,%eax
call   1040 <clock@plt>
sub    %r14,%rax
xorps  %xmm0,%xmm0
cvtsi2ss %rax,%xmm0
xorps  %xmm1,%xmm1
cvtsi2ssq 0x0(%r13),%xmm1
divss  %xmm1,%xmm0
cvtss2sd %xmm0,%xmm0
lea    0xc74(%rip),%rdi
lea    0xc99(%rip),%rsi
mov    $0x1,%al
call   1050 <printf@plt>
lea    0xc92(%rip),%rdi
call   1030 <puts@plt>
add    $0x8,%rsp
pop    %rbx
pop    %r12
pop    %r13
pop    %r14
pop    %r15
pop    %rbp
ret

LLVM IR (-O0):
@.str = [6 x i8] c"\09%s\0D\0A\00"
@.str.1 = [11 x i8] c"\09\09%s: %f\0D\0A\00"
@.str.2 = [13 x i8] c"fiolSReadInt\00"
@CLOCKS_PER_SEC = global i64 0
@.str.3 = [3 x i8] c"%d\00"
@.str.4 = [7 x i8] c"sscanf\00"
@.str.5 = [5 x i8] c"atoi\00"
@.str.6 = [5 x i8] c"atol\00"
@.str.7 = [7 x i8] c"strtol\00"
@.str.8 = [3 x i8] c"\0D\0A\00"
define void @benchReadOneInt(i8* %0) {
%2 = alloca i8*
%3 = alloca i32
%4 = alloca i32
%5 = alloca i64
%6 = alloca i64
store i8* %0, i8** %2
%7 = load i8*, i8** %2
%8 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([6 x i8], [6 x i8]* @.str, i64 0, i64 0), i8* %7)
br label %9
9: ; preds = %1
%10 = call i64 (...) @clock()
store i64 %10, i64* %5
br label %11
11: ; preds = %9
store i32 0, i32* %3
br label %12
12: ; preds = %18, %11
%13 = load i32, i32* %3
%14 = icmp ult i32 %13, 400000
br i1 %14, label %15, label %21
15: ; preds = %12
%16 = load i8*, i8** %2
%17 = call i32 @fiolSReadInt(i8* %16, i32* %4)
br label %18
18: ; preds = %15
%19 = load i32, i32* %3
%20 = add i32 %19, 1
store i32 %20, i32* %3
br label %12
21: ; preds = %12
br label %22
22: ; preds = %21
%23 = call i64 (...) @clock()
store i64 %23, i64* %6
%24 = load i64, i64* %6
%25 = load i64, i64* %5
%26 = sub nsw i64 %24, %25
%27 = sitofp i64 %26 to float
%28 = load i64, i64* @CLOCKS_PER_SEC
%29 = sitofp i64 %28 to float
%30 = fdiv float %27, %29
%31 = fpext float %30 to double
%32 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([11 x i8], [11 x i8]* @.str.1, i64 0, i64 0), i8* getelementptr inbounds ([13 x i8], [13 x i8]* @.str.2, i64 0, i64 0), double %31)
br label %33
33: ; preds = %22
br label %34
34: ; preds = %33
%35 = call i64 (...) @clock()
store i64 %35, i64* %5
br label %36
36: ; preds = %34
store i32 0, i32* %3
br label %37
37: ; preds = %43, %36
%38 = load i32, i32* %3
%39 = icmp ult i32 %38, 400000
br i1 %39, label %40, label %46
40: ; preds = %37
%41 = load i8*, i8** %2
%42 = call i32 @sscanf(i8* %41, i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str.3, i64 0, i64 0), i32* %4)
br label %43
43: ; preds = %40
%44 = load i32, i32* %3
%45 = add i32 %44, 1
store i32 %45, i32* %3
br label %37
46: ; preds = %37
br label %47
47: ; preds = %46
%48 = call i64 (...) @clock()
store i64 %48, i64* %6
%49 = load i64, i64* %6
%50 = load i64, i64* %5
%51 = sub nsw i64 %49, %50
%52 = sitofp i64 %51 to float
%53 = load i64, i64* @CLOCKS_PER_SEC
%54 = sitofp i64 %53 to float
%55 = fdiv float %52, %54
%56 = fpext float %55 to double
%57 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([11 x i8], [11 x i8]* @.str.1, i64 0, i64 0), i8* getelementptr inbounds ([7 x i8], [7 x i8]* @.str.4, i64 0, i64 0), double %56)
br label %58
58: ; preds = %47
br label %59
59: ; preds = %58
%60 = call i64 (...) @clock()
store i64 %60, i64* %5
br label %61
61: ; preds = %59
store i32 0, i32* %3
br label %62
62: ; preds = %68, %61
%63 = load i32, i32* %3
%64 = icmp ult i32 %63, 400000
br i1 %64, label %65, label %71
65: ; preds = %62
%66 = load i8*, i8** %2
%67 = call i32 @atoi(i8* %66)
store i32 %67, i32* %4
br label %68
68: ; preds = %65
%69 = load i32, i32* %3
%70 = add i32 %69, 1
store i32 %70, i32* %3
br label %62
71: ; preds = %62
br label %72
72: ; preds = %71
%73 = call i64 (...) @clock()
store i64 %73, i64* %6
%74 = load i64, i64* %6
%75 = load i64, i64* %5
%76 = sub nsw i64 %74, %75
%77 = sitofp i64 %76 to float
%78 = load i64, i64* @CLOCKS_PER_SEC
%79 = sitofp i64 %78 to float
%80 = fdiv float %77, %79
%81 = fpext float %80 to double
%82 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([11 x i8], [11 x i8]* @.str.1, i64 0, i64 0), i8* getelementptr inbounds ([5 x i8], [5 x i8]* @.str.5, i64 0, i64 0), double %81)
br label %83
83: ; preds = %72
br label %84
84: ; preds = %83
%85 = call i64 (...) @clock()
store i64 %85, i64* %5
br label %86
86: ; preds = %84
store i32 0, i32* %3
br label %87
87: ; preds = %93, %86
%88 = load i32, i32* %3
%89 = icmp ult i32 %88, 400000
br i1 %89, label %90, label %96
90: ; preds = %87
%91 = load i8*, i8** %2
%92 = call i32 @atol(i8* %91)
store i32 %92, i32* %4
br label %93
93: ; preds = %90
%94 = load i32, i32* %3
%95 = add i32 %94, 1
store i32 %95, i32* %3
br label %87
96: ; preds = %87
br label %97
97: ; preds = %96
%98 = call i64 (...) @clock()
store i64 %98, i64* %6
%99 = load i64, i64* %6
%100 = load i64, i64* %5
%101 = sub nsw i64 %99, %100
%102 = sitofp i64 %101 to float
%103 = load i64, i64* @CLOCKS_PER_SEC
%104 = sitofp i64 %103 to float
%105 = fdiv float %102, %104
%106 = fpext float %105 to double
%107 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([11 x i8], [11 x i8]* @.str.1, i64 0, i64 0), i8* getelementptr inbounds ([5 x i8], [5 x i8]* @.str.6, i64 0, i64 0), double %106)
br label %108
108: ; preds = %97
br label %109
109: ; preds = %108
%110 = call i64 (...) @clock()
store i64 %110, i64* %5
br label %111
111: ; preds = %109
store i32 0, i32* %3
br label %112
112: ; preds = %118, %111
%113 = load i32, i32* %3
%114 = icmp ult i32 %113, 400000
br i1 %114, label %115, label %121
115: ; preds = %112
%116 = load i8*, i8** %2
%117 = call i32 @strtol(i8* %116, i32 0, i32 10)
store i32 %117, i32* %4
br label %118
118: ; preds = %115
%119 = load i32, i32* %3
%120 = add i32 %119, 1
store i32 %120, i32* %3
br label %112
121: ; preds = %112
br label %122
122: ; preds = %121
%123 = call i64 (...) @clock()
store i64 %123, i64* %6
%124 = load i64, i64* %6
%125 = load i64, i64* %5
%126 = sub nsw i64 %124, %125
%127 = sitofp i64 %126 to float
%128 = load i64, i64* @CLOCKS_PER_SEC
%129 = sitofp i64 %128 to float
%130 = fdiv float %127, %129
%131 = fpext float %130 to double
%132 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([11 x i8], [11 x i8]* @.str.1, i64 0, i64 0), i8* getelementptr inbounds ([7 x i8], [7 x i8]* @.str.7, i64 0, i64 0), double %131)
br label %133
133: ; preds = %122
%134 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str.8, i64 0, i64 0))
ret void
}

LLVM IR (-O2):
@.str = [6 x i8] c"\09%s\0D\0A\00"
@.str.1 = [11 x i8] c"\09\09%s: %f\0D\0A\00"
@.str.2 = [13 x i8] c"fiolSReadInt\00"
@CLOCKS_PER_SEC = global i64 0
@.str.3 = [3 x i8] c"%d\00"
@.str.4 = [7 x i8] c"sscanf\00"
@.str.5 = [5 x i8] c"atoi\00"
@.str.6 = [5 x i8] c"atol\00"
@.str.7 = [7 x i8] c"strtol\00"
@str = [2 x i8] c"\0D\00"
define void @benchReadOneInt(i8* %0) {
%2 = alloca i32
%3 = bitcast i32* %2 to i8*
%4 = tail call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([6 x i8], [6 x i8]* @.str, i64 0, i64 0), i8* %0)
%5 = tail call i64 (...) @clock()
br label %6
6: ; preds = %1, %6
%7 = phi i32 [ 0, %1 ], [ %9, %6 ]
%8 = call i32 @fiolSReadInt(i8* %0, i32* %2)
%9 = add nuw nsw i32 %7, 1
%10 = icmp eq i32 %9, 400000
br i1 %10, label %11, label %6
11: ; preds = %6
%12 = call i64 (...) @clock()
%13 = sub nsw i64 %12, %5
%14 = sitofp i64 %13 to float
%15 = load i64, i64* @CLOCKS_PER_SEC
%16 = sitofp i64 %15 to float
%17 = fdiv float %14, %16
%18 = fpext float %17 to double
%19 = call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([11 x i8], [11 x i8]* @.str.1, i64 0, i64 0), i8* getelementptr inbounds ([13 x i8], [13 x i8]* @.str.2, i64 0, i64 0), double %18)
%20 = call i64 (...) @clock()
br label %21
21: ; preds = %11, %21
%22 = phi i32 [ 0, %11 ], [ %24, %21 ]
%23 = call i32 @sscanf(i8* %0, i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str.3, i64 0, i64 0), i32* %2)
%24 = add nuw nsw i32 %22, 1
%25 = icmp eq i32 %24, 400000
br i1 %25, label %26, label %21
26: ; preds = %21
%27 = call i64 (...) @clock()
%28 = sub nsw i64 %27, %20
%29 = sitofp i64 %28 to float
%30 = load i64, i64* @CLOCKS_PER_SEC
%31 = sitofp i64 %30 to float
%32 = fdiv float %29, %31
%33 = fpext float %32 to double
%34 = call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([11 x i8], [11 x i8]* @.str.1, i64 0, i64 0), i8* getelementptr inbounds ([7 x i8], [7 x i8]* @.str.4, i64 0, i64 0), double %33)
%35 = call i64 (...) @clock()
br label %36
36: ; preds = %26, %36
%37 = phi i32 [ 0, %26 ], [ %39, %36 ]
%38 = call i32 @atoi(i8* %0)
store i32 %38, i32* %2
%39 = add nuw nsw i32 %37, 1
%40 = icmp eq i32 %39, 400000
br i1 %40, label %41, label %36
41: ; preds = %36
%42 = call i64 (...) @clock()
%43 = sub nsw i64 %42, %35
%44 = sitofp i64 %43 to float
%45 = load i64, i64* @CLOCKS_PER_SEC
%46 = sitofp i64 %45 to float
%47 = fdiv float %44, %46
%48 = fpext float %47 to double
%49 = call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([11 x i8], [11 x i8]* @.str.1, i64 0, i64 0), i8* getelementptr inbounds ([5 x i8], [5 x i8]* @.str.5, i64 0, i64 0), double %48)
%50 = call i64 (...) @clock()
br label %51
51: ; preds = %41, %51
%52 = phi i32 [ 0, %41 ], [ %54, %51 ]
%53 = call i32 @atol(i8* %0)
store i32 %53, i32* %2
%54 = add nuw nsw i32 %52, 1
%55 = icmp eq i32 %54, 400000
br i1 %55, label %56, label %51
56: ; preds = %51
%57 = call i64 (...) @clock()
%58 = sub nsw i64 %57, %50
%59 = sitofp i64 %58 to float
%60 = load i64, i64* @CLOCKS_PER_SEC
%61 = sitofp i64 %60 to float
%62 = fdiv float %59, %61
%63 = fpext float %62 to double
%64 = call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([11 x i8], [11 x i8]* @.str.1, i64 0, i64 0), i8* getelementptr inbounds ([5 x i8], [5 x i8]* @.str.6, i64 0, i64 0), double %63)
%65 = call i64 (...) @clock()
br label %66
66: ; preds = %56, %66
%67 = phi i32 [ 0, %56 ], [ %69, %66 ]
%68 = call i32 @strtol(i8* %0, i32 0, i32 10)
store i32 %68, i32* %2
%69 = add nuw nsw i32 %67, 1
%70 = icmp eq i32 %69, 400000
br i1 %70, label %71, label %66
71: ; preds = %66
%72 = call i64 (...) @clock()
%73 = sub nsw i64 %72, %65
%74 = sitofp i64 %73 to float
%75 = load i64, i64* @CLOCKS_PER_SEC
%76 = sitofp i64 %75 to float
%77 = fdiv float %74, %76
%78 = fpext float %77 to double
%79 = call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([11 x i8], [11 x i8]* @.str.1, i64 0, i64 0), i8* getelementptr inbounds ([7 x i8], [7 x i8]* @.str.7, i64 0, i64 0), double %78)
%80 = call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([2 x i8], [2 x i8]* @str, i64 0, i64 0))
ret void
}