#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 */
struct timezone {
  int dummy;
};
struct timeval {
  double tv_sec;
  double tv_usec;
};

/* Variables and functions */
int /*<<< orphan*/ gettimeofday(struct timeval *, struct timezone *);
double pow(double, double);
int /*<<< orphan*/ printf(char *, double);
double sqrt(double);
int main() {
  struct timeval tv1, tv2;
  struct timezone tz;
  int iterations = 10000;
  double i;
  double v = 1000.0;
  double y = 0.0;
  gettimeofday(&tv1, &tz);
  for (i = 0; i < iterations; i++) {
    y++;
    v = sqrt(y);
  }
  gettimeofday(&tv2, &tz);
  printf("Sqrt: %f us per sqrt\n",
         ((tv2.tv_sec - tv1.tv_sec) * 1000.0 * 1000.0 +
          (tv2.tv_usec - tv1.tv_usec)) /
             iterations);
  gettimeofday(&tv1, &tz);
  for (i = 0; i < iterations; i++) {
    y++;
    v = pow(y, 0.51);
  }
  gettimeofday(&tv2, &tz);
  printf("Pow:  %f us per sqrt\n",
         ((tv2.tv_sec - tv1.tv_sec) * 1000.0 * 1000.0 +
          (tv2.tv_usec - tv1.tv_usec)) /
             iterations);
  gettimeofday(&tv1, &tz);
  for (i = 0; i < iterations; i++) {
    y++;
    v = (v < y ? v : y);
  }
  gettimeofday(&tv2, &tz);
  printf("Min:  %f us per sqrt\n",
         ((tv2.tv_sec - tv1.tv_sec) * 1000.0 * 1000.0 +
          (tv2.tv_usec - tv1.tv_usec)) /
             iterations);
}


x86 assembly (clang, -O0):
<main>:
push   %rbp
mov    %rsp,%rbp
sub    $0x60,%rsp
movl   $0x0,-0x4(%rbp)
movl   $0x2710,-0x34(%rbp)
movsd  0xea2(%rip),%xmm0
movsd  %xmm0,-0x48(%rbp)
xorps  %xmm0,%xmm0
movsd  %xmm0,-0x50(%rbp)
lea    -0x18(%rbp),%rdi
lea    -0x30(%rbp),%rsi
call   1040 <gettimeofday@plt>
xorps  %xmm0,%xmm0
movsd  %xmm0,-0x40(%rbp)
movsd  -0x40(%rbp),%xmm1
cvtsi2sdl -0x34(%rbp),%xmm0
ucomisd %xmm1,%xmm0
jbe    11cc <main+0x8c>
movsd  0xe6c(%rip),%xmm0
addsd  -0x50(%rbp),%xmm0
movsd  %xmm0,-0x50(%rbp)
movsd  -0x50(%rbp),%xmm0
call   1060 <sqrt@plt>
movsd  %xmm0,-0x48(%rbp)
movsd  0xe4b(%rip),%xmm0
addsd  -0x40(%rbp),%xmm0
movsd  %xmm0,-0x40(%rbp)
jmp    1180 <main+0x40>
lea    -0x28(%rbp),%rdi
lea    -0x30(%rbp),%rsi
call   1040 <gettimeofday@plt>
movsd  -0x28(%rbp),%xmm0
subsd  -0x18(%rbp),%xmm0
movsd  0xe15(%rip),%xmm1
mulsd  %xmm1,%xmm0
movsd  -0x20(%rbp),%xmm1
subsd  -0x10(%rbp),%xmm1
movsd  0xdff(%rip),%xmm2
mulsd  %xmm2,%xmm0
addsd  %xmm1,%xmm0
cvtsi2sdl -0x34(%rbp),%xmm1
divsd  %xmm1,%xmm0
lea    0xdff(%rip),%rdi
call   1030 <printf@plt>
lea    -0x18(%rbp),%rdi
lea    -0x30(%rbp),%rsi
call   1040 <gettimeofday@plt>
xorps  %xmm0,%xmm0
movsd  %xmm0,-0x40(%rbp)
movsd  -0x40(%rbp),%xmm1
cvtsi2sdl -0x34(%rbp),%xmm0
ucomisd %xmm1,%xmm0
jbe    1287 <main+0x147>
movsd  0xdb9(%rip),%xmm0
addsd  -0x50(%rbp),%xmm0
movsd  %xmm0,-0x50(%rbp)
movsd  -0x50(%rbp),%xmm0
movsd  0xdaa(%rip),%xmm1
call   1050 <pow@plt>
movsd  %xmm0,-0x48(%rbp)
movsd  0xd90(%rip),%xmm0
addsd  -0x40(%rbp),%xmm0
movsd  %xmm0,-0x40(%rbp)
jmp    1233 <main+0xf3>
lea    -0x28(%rbp),%rdi
lea    -0x30(%rbp),%rsi
call   1040 <gettimeofday@plt>
movsd  -0x28(%rbp),%xmm0
subsd  -0x18(%rbp),%xmm0
movsd  0xd5a(%rip),%xmm1
mulsd  %xmm1,%xmm0
movsd  -0x20(%rbp),%xmm1
subsd  -0x10(%rbp),%xmm1
movsd  0xd44(%rip),%xmm2
mulsd  %xmm2,%xmm0
addsd  %xmm1,%xmm0
cvtsi2sdl -0x34(%rbp),%xmm1
divsd  %xmm1,%xmm0
lea    0xd5a(%rip),%rdi
call   1030 <printf@plt>
lea    -0x18(%rbp),%rdi
lea    -0x30(%rbp),%rsi
call   1040 <gettimeofday@plt>
xorps  %xmm0,%xmm0
movsd  %xmm0,-0x40(%rbp)
movsd  -0x40(%rbp),%xmm1
cvtsi2sdl -0x34(%rbp),%xmm0
ucomisd %xmm1,%xmm0
jbe    1362 <main+0x222>
movsd  0xcfe(%rip),%xmm0
addsd  -0x50(%rbp),%xmm0
movsd  %xmm0,-0x50(%rbp)
movsd  -0x48(%rbp),%xmm1
movsd  -0x50(%rbp),%xmm0
ucomisd %xmm1,%xmm0
jbe    1337 <main+0x1f7>
movsd  -0x48(%rbp),%xmm0
movsd  %xmm0,-0x58(%rbp)
jmp    1341 <main+0x201>
movsd  -0x50(%rbp),%xmm0
movsd  %xmm0,-0x58(%rbp)
movsd  -0x58(%rbp),%xmm0
movsd  %xmm0,-0x48(%rbp)
movsd  0xcb5(%rip),%xmm0
addsd  -0x40(%rbp),%xmm0
movsd  %xmm0,-0x40(%rbp)
jmp    12ee <main+0x1ae>
lea    -0x28(%rbp),%rdi
lea    -0x30(%rbp),%rsi
call   1040 <gettimeofday@plt>
movsd  -0x28(%rbp),%xmm0
subsd  -0x18(%rbp),%xmm0
movsd  0xc7f(%rip),%xmm1
mulsd  %xmm1,%xmm0
movsd  -0x20(%rbp),%xmm1
subsd  -0x10(%rbp),%xmm1
movsd  0xc69(%rip),%xmm2
mulsd  %xmm2,%xmm0
addsd  %xmm1,%xmm0
cvtsi2sdl -0x34(%rbp),%xmm1
divsd  %xmm1,%xmm0
lea    0xc95(%rip),%rdi
call   1030 <printf@plt>
mov    -0x4(%rbp),%eax
add    $0x60,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<main>:
push   %r14
push   %rbx
sub    $0x38,%rsp
lea    0x18(%rsp),%rdi
lea    0x10(%rsp),%rsi
call   1040 <gettimeofday@plt>
xorpd  %xmm2,%xmm2
mov    $0x2710,%ebx
movsd  0xe99(%rip),%xmm0
xorpd  %xmm1,%xmm1
jmp    1179 <main+0x39>
nopl   (%rax)
add    $0xfffffff8,%ebx
je     12da <main+0x19a>
addsd  %xmm0,%xmm1
ucomisd %xmm2,%xmm1
jae    11a4 <main+0x64>
movapd %xmm1,%xmm0
movsd  %xmm1,0x8(%rsp)
call   1060 <sqrt@plt>
xorpd  %xmm2,%xmm2
movsd  0x8(%rsp),%xmm1
movsd  0xe5c(%rip),%xmm0
addsd  %xmm0,%xmm1
ucomisd %xmm2,%xmm1
jae    11cf <main+0x8f>
movapd %xmm1,%xmm0
movsd  %xmm1,0x8(%rsp)
call   1060 <sqrt@plt>
xorpd  %xmm2,%xmm2
movsd  0x8(%rsp),%xmm1
movsd  0xe31(%rip),%xmm0
addsd  %xmm0,%xmm1
ucomisd %xmm2,%xmm1
jae    11fa <main+0xba>
movapd %xmm1,%xmm0
movsd  %xmm1,0x8(%rsp)
call   1060 <sqrt@plt>
xorpd  %xmm2,%xmm2
movsd  0x8(%rsp),%xmm1
movsd  0xe06(%rip),%xmm0
addsd  %xmm0,%xmm1
ucomisd %xmm2,%xmm1
jae    1225 <main+0xe5>
movapd %xmm1,%xmm0
movsd  %xmm1,0x8(%rsp)
call   1060 <sqrt@plt>
xorpd  %xmm2,%xmm2
movsd  0x8(%rsp),%xmm1
movsd  0xddb(%rip),%xmm0
addsd  %xmm0,%xmm1
ucomisd %xmm2,%xmm1
jae    1250 <main+0x110>
movapd %xmm1,%xmm0
movsd  %xmm1,0x8(%rsp)
call   1060 <sqrt@plt>
xorpd  %xmm2,%xmm2
movsd  0x8(%rsp),%xmm1
movsd  0xdb0(%rip),%xmm0
addsd  %xmm0,%xmm1
ucomisd %xmm2,%xmm1
jae    127b <main+0x13b>
movapd %xmm1,%xmm0
movsd  %xmm1,0x8(%rsp)
call   1060 <sqrt@plt>
xorpd  %xmm2,%xmm2
movsd  0x8(%rsp),%xmm1
movsd  0xd85(%rip),%xmm0
addsd  %xmm0,%xmm1
ucomisd %xmm2,%xmm1
jae    12a6 <main+0x166>
movapd %xmm1,%xmm0
movsd  %xmm1,0x8(%rsp)
call   1060 <sqrt@plt>
xorpd  %xmm2,%xmm2
movsd  0x8(%rsp),%xmm1
movsd  0xd5a(%rip),%xmm0
addsd  %xmm0,%xmm1
ucomisd %xmm2,%xmm1
jae    1170 <main+0x30>
movapd %xmm1,%xmm0
movsd  %xmm1,0x8(%rsp)
call   1060 <sqrt@plt>
xorpd  %xmm2,%xmm2
movsd  0x8(%rsp),%xmm1
movsd  0xd2b(%rip),%xmm0
jmp    1170 <main+0x30>
lea    0x28(%rsp),%rdi
lea    0x10(%rsp),%rbx
mov    %rbx,%rsi
movsd  %xmm1,0x8(%rsp)
call   1040 <gettimeofday@plt>
movsd  0x28(%rsp),%xmm0
movsd  0x30(%rsp),%xmm1
subsd  0x18(%rsp),%xmm0
movsd  0xcfc(%rip),%xmm2
mulsd  %xmm2,%xmm0
subsd  0x20(%rsp),%xmm1
mulsd  %xmm2,%xmm0
addsd  %xmm1,%xmm0
divsd  0xcea(%rip),%xmm0
lea    0xcf3(%rip),%rdi
call   1030 <printf@plt>
lea    0x18(%rsp),%rdi
mov    %rbx,%rsi
call   1040 <gettimeofday@plt>
mov    $0x2710,%ebx
cs nopw 0x0(%rax,%rax,1)
xchg   %ax,%ax
movsd  0xca8(%rip),%xmm0
movsd  0x8(%rsp),%xmm1
addsd  %xmm0,%xmm1
movsd  %xmm1,0x8(%rsp)
movapd %xmm1,%xmm0
movsd  0xca4(%rip),%xmm1
call   1050 <pow@plt>
movsd  0x8(%rsp),%xmm0
addsd  0xc79(%rip),%xmm0
movsd  %xmm0,0x8(%rsp)
movsd  0xc83(%rip),%xmm1
call   1050 <pow@plt>
movsd  0x8(%rsp),%xmm0
addsd  0xc58(%rip),%xmm0
movsd  %xmm0,0x8(%rsp)
movsd  0xc62(%rip),%xmm1
call   1050 <pow@plt>
movsd  0x8(%rsp),%xmm0
addsd  0xc37(%rip),%xmm0
movsd  %xmm0,0x8(%rsp)
movsd  0xc41(%rip),%xmm1
call   1050 <pow@plt>
movsd  0x8(%rsp),%xmm0
addsd  0xc16(%rip),%xmm0
movsd  %xmm0,0x8(%rsp)
movsd  0xc20(%rip),%xmm1
call   1050 <pow@plt>
movsd  0x8(%rsp),%xmm0
addsd  0xbf5(%rip),%xmm0
movsd  %xmm0,0x8(%rsp)
movsd  0xbff(%rip),%xmm1
call   1050 <pow@plt>
movsd  0x8(%rsp),%xmm0
addsd  0xbd4(%rip),%xmm0
movsd  %xmm0,0x8(%rsp)
movsd  0xbde(%rip),%xmm1
call   1050 <pow@plt>
movsd  0x8(%rsp),%xmm0
addsd  0xbb3(%rip),%xmm0
movsd  %xmm0,0x8(%rsp)
movsd  0xbbd(%rip),%xmm1
call   1050 <pow@plt>
add    $0xfffffff8,%ebx
jne    1350 <main+0x210>
lea    0x28(%rsp),%r14
lea    0x10(%rsp),%rbx
mov    %r14,%rdi
mov    %rbx,%rsi
call   1040 <gettimeofday@plt>
movsd  0x28(%rsp),%xmm0
subsd  0x18(%rsp),%xmm0
movsd  0x30(%rsp),%xmm1
movsd  0xb70(%rip),%xmm2
mulsd  %xmm2,%xmm0
subsd  0x20(%rsp),%xmm1
mulsd  %xmm2,%xmm0
addsd  %xmm1,%xmm0
divsd  0xb5e(%rip),%xmm0
lea    0xb7d(%rip),%rdi
call   1030 <printf@plt>
lea    0x18(%rsp),%rdi
mov    %rbx,%rsi
call   1040 <gettimeofday@plt>
mov    %r14,%rdi
mov    %rbx,%rsi
call   1040 <gettimeofday@plt>
movsd  0x28(%rsp),%xmm0
movsd  0x30(%rsp),%xmm1
subsd  0x18(%rsp),%xmm0
subsd  0x20(%rsp),%xmm1
movsd  0xb12(%rip),%xmm2
mulsd  %xmm2,%xmm0
mulsd  %xmm2,%xmm0
addsd  %xmm1,%xmm0
divsd  0xb06(%rip),%xmm0
lea    0xb3b(%rip),%rdi
call   1030 <printf@plt>
xor    %eax,%eax
add    $0x38,%rsp
pop    %rbx
pop    %r14
ret

LLVM IR (-O0):
%struct.timeval = type { double, double }
%struct.timezone = type { i32 }
@.str = [22 x i8] c"Sqrt: %f us per sqrt\0A\00"
@.str.1 = [22 x i8] c"Pow: %f us per sqrt\0A\00"
@.str.2 = [22 x i8] c"Min: %f us per sqrt\0A\00"
define i32 @main() {
%1 = alloca i32
%2 = alloca %struct.timeval
%3 = alloca %struct.timeval
%4 = alloca %struct.timezone
%5 = alloca i32
%6 = alloca double
%7 = alloca double
%8 = alloca double
store i32 0, i32* %1
store i32 10000, i32* %5
store double 1.000000e+03, double* %7
store double 0.000000e+00, double* %8
%9 = call i32 @gettimeofday(%struct.timeval* %2, %struct.timezone* %4)
store double 0.000000e+00, double* %6
br label %10
10: ; preds = %20, %0
%11 = load double, double* %6
%12 = load i32, i32* %5
%13 = sitofp i32 %12 to double
%14 = fcmp olt double %11, %13
br i1 %14, label %15, label %23
15: ; preds = %10
%16 = load double, double* %8
%17 = fadd double %16, 1.000000e+00
store double %17, double* %8
%18 = load double, double* %8
%19 = call double @sqrt(double %18)
store double %19, double* %7
br label %20
20: ; preds = %15
%21 = load double, double* %6
%22 = fadd double %21, 1.000000e+00
store double %22, double* %6
br label %10
23: ; preds = %10
%24 = call i32 @gettimeofday(%struct.timeval* %3, %struct.timezone* %4)
%25 = getelementptr inbounds %struct.timeval, %struct.timeval* %3, i32 0, i32 0
%26 = load double, double* %25
%27 = getelementptr inbounds %struct.timeval, %struct.timeval* %2, i32 0, i32 0
%28 = load double, double* %27
%29 = fsub double %26, %28
%30 = fmul double %29, 1.000000e+03
%31 = getelementptr inbounds %struct.timeval, %struct.timeval* %3, i32 0, i32 1
%32 = load double, double* %31
%33 = getelementptr inbounds %struct.timeval, %struct.timeval* %2, i32 0, i32 1
%34 = load double, double* %33
%35 = fsub double %32, %34
%36 = call double @llvm.fmuladd.f64(double %30, double 1.000000e+03, double %35)
%37 = load i32, i32* %5
%38 = sitofp i32 %37 to double
%39 = fdiv double %36, %38
%40 = call i32 @printf(i8* getelementptr inbounds ([22 x i8], [22 x i8]* @.str, i64 0, i64 0), double %39)
%41 = call i32 @gettimeofday(%struct.timeval* %2, %struct.timezone* %4)
store double 0.000000e+00, double* %6
br label %42
42: ; preds = %52, %23
%43 = load double, double* %6
%44 = load i32, i32* %5
%45 = sitofp i32 %44 to double
%46 = fcmp olt double %43, %45
br i1 %46, label %47, label %55
47: ; preds = %42
%48 = load double, double* %8
%49 = fadd double %48, 1.000000e+00
store double %49, double* %8
%50 = load double, double* %8
%51 = call double @pow(double %50, double 5.100000e-01)
store double %51, double* %7
br label %52
52: ; preds = %47
%53 = load double, double* %6
%54 = fadd double %53, 1.000000e+00
store double %54, double* %6
br label %42
55: ; preds = %42
%56 = call i32 @gettimeofday(%struct.timeval* %3, %struct.timezone* %4)
%57 = getelementptr inbounds %struct.timeval, %struct.timeval* %3, i32 0, i32 0
%58 = load double, double* %57
%59 = getelementptr inbounds %struct.timeval, %struct.timeval* %2, i32 0, i32 0
%60 = load double, double* %59
%61 = fsub double %58, %60
%62 = fmul double %61, 1.000000e+03
%63 = getelementptr inbounds %struct.timeval, %struct.timeval* %3, i32 0, i32 1
%64 = load double, double* %63
%65 = getelementptr inbounds %struct.timeval, %struct.timeval* %2, i32 0, i32 1
%66 = load double, double* %65
%67 = fsub double %64, %66
%68 = call double @llvm.fmuladd.f64(double %62, double 1.000000e+03, double %67)
%69 = load i32, i32* %5
%70 = sitofp i32 %69 to double
%71 = fdiv double %68, %70
%72 = call i32 @printf(i8* getelementptr inbounds ([22 x i8], [22 x i8]* @.str.1, i64 0, i64 0), double %71)
%73 = call i32 @gettimeofday(%struct.timeval* %2, %struct.timezone* %4)
store double 0.000000e+00, double* %6
br label %74
74: ; preds = %91, %55
%75 = load double, double* %6
%76 = load i32, i32* %5
%77 = sitofp i32 %76 to double
%78 = fcmp olt double %75, %77
br i1 %78, label %79, label %94
79: ; preds = %74
%80 = load double, double* %8
%81 = fadd double %80, 1.000000e+00
store double %81, double* %8
%82 = load double, double* %7
%83 = load double, double* %8
%84 = fcmp olt double %82, %83
br i1 %84, label %85, label %87
85: ; preds = %79
%86 = load double, double* %7
br label %89
87: ; preds = %79
%88 = load double, double* %8
br label %89
89: ; preds = %87, %85
%90 = phi double [ %86, %85 ], [ %88, %87 ]
store double %90, double* %7
br label %91
91: ; preds = %89
%92 = load double, double* %6
%93 = fadd double %92, 1.000000e+00
store double %93, double* %6
br label %74
94: ; preds = %74
%95 = call i32 @gettimeofday(%struct.timeval* %3, %struct.timezone* %4)
%96 = getelementptr inbounds %struct.timeval, %struct.timeval* %3, i32 0, i32 0
%97 = load double, double* %96
%98 = getelementptr inbounds %struct.timeval, %struct.timeval* %2, i32 0, i32 0
%99 = load double, double* %98
%100 = fsub double %97, %99
%101 = fmul double %100, 1.000000e+03
%102 = getelementptr inbounds %struct.timeval, %struct.timeval* %3, i32 0, i32 1
%103 = load double, double* %102
%104 = getelementptr inbounds %struct.timeval, %struct.timeval* %2, i32 0, i32 1
%105 = load double, double* %104
%106 = fsub double %103, %105
%107 = call double @llvm.fmuladd.f64(double %101, double 1.000000e+03, double %106)
%108 = load i32, i32* %5
%109 = sitofp i32 %108 to double
%110 = fdiv double %107, %109
%111 = call i32 @printf(i8* getelementptr inbounds ([22 x i8], [22 x i8]* @.str.2, i64 0, i64 0), double %110)
%112 = load i32, i32* %1
ret i32 %112
}

LLVM IR (-O2):
%struct.timeval = type { double, double }
%struct.timezone = type { i32 }
@.str = [22 x i8] c"Sqrt: %f us per sqrt\0A\00"
@.str.1 = [22 x i8] c"Pow: %f us per sqrt\0A\00"
@.str.2 = [22 x i8] c"Min: %f us per sqrt\0A\00"
define i32 @main() {
%1 = alloca %struct.timeval
%2 = alloca %struct.timeval
%3 = alloca %struct.timezone
%4 = bitcast %struct.timeval* %1 to i8*
%5 = bitcast %struct.timeval* %2 to i8*
%6 = bitcast %struct.timezone* %3 to i8*
%7 = call i32 @gettimeofday(%struct.timeval* %1, %struct.timezone* %3)
br label %8
8: ; preds = %8, %0
%9 = phi double [ 0.000000e+00, %0 ], [ %25, %8 ]
%10 = phi i32 [ 0, %0 ], [ %27, %8 ]
%11 = fadd double %9, 1.000000e+00
%12 = tail call double @sqrt(double %11)
%13 = fadd double %11, 1.000000e+00
%14 = tail call double @sqrt(double %13)
%15 = fadd double %13, 1.000000e+00
%16 = tail call double @sqrt(double %15)
%17 = fadd double %15, 1.000000e+00
%18 = tail call double @sqrt(double %17)
%19 = fadd double %17, 1.000000e+00
%20 = tail call double @sqrt(double %19)
%21 = fadd double %19, 1.000000e+00
%22 = tail call double @sqrt(double %21)
%23 = fadd double %21, 1.000000e+00
%24 = tail call double @sqrt(double %23)
%25 = fadd double %23, 1.000000e+00
%26 = tail call double @sqrt(double %25)
%27 = add nuw nsw i32 %10, 8
%28 = icmp eq i32 %27, 10000
br i1 %28, label %29, label %8
29: ; preds = %8
%30 = call i32 @gettimeofday(%struct.timeval* %2, %struct.timezone* %3)
%31 = getelementptr inbounds %struct.timeval, %struct.timeval* %2, i64 0, i32 0
%32 = load double, double* %31
%33 = getelementptr inbounds %struct.timeval, %struct.timeval* %1, i64 0, i32 0
%34 = load double, double* %33
%35 = fsub double %32, %34
%36 = fmul double %35, 1.000000e+03
%37 = getelementptr inbounds %struct.timeval, %struct.timeval* %2, i64 0, i32 1
%38 = load double, double* %37
%39 = getelementptr inbounds %struct.timeval, %struct.timeval* %1, i64 0, i32 1
%40 = load double, double* %39
%41 = fsub double %38, %40
%42 = tail call double @llvm.fmuladd.f64(double %36, double 1.000000e+03, double %41)
%43 = fdiv double %42, 1.000000e+04
%44 = tail call i32 @printf(i8* getelementptr inbounds ([22 x i8], [22 x i8]* @.str, i64 0, i64 0), double %43)
%45 = call i32 @gettimeofday(%struct.timeval* %1, %struct.timezone* %3)
br label %46
46: ; preds = %46, %29
%47 = phi double [ %25, %29 ], [ %63, %46 ]
%48 = phi i32 [ 0, %29 ], [ %65, %46 ]
%49 = fadd double %47, 1.000000e+00
%50 = tail call double @pow(double %49, double 5.100000e-01)
%51 = fadd double %49, 1.000000e+00
%52 = tail call double @pow(double %51, double 5.100000e-01)
%53 = fadd double %51, 1.000000e+00
%54 = tail call double @pow(double %53, double 5.100000e-01)
%55 = fadd double %53, 1.000000e+00
%56 = tail call double @pow(double %55, double 5.100000e-01)
%57 = fadd double %55, 1.000000e+00
%58 = tail call double @pow(double %57, double 5.100000e-01)
%59 = fadd double %57, 1.000000e+00
%60 = tail call double @pow(double %59, double 5.100000e-01)
%61 = fadd double %59, 1.000000e+00
%62 = tail call double @pow(double %61, double 5.100000e-01)
%63 = fadd double %61, 1.000000e+00
%64 = tail call double @pow(double %63, double 5.100000e-01)
%65 = add nuw nsw i32 %48, 8
%66 = icmp eq i32 %65, 10000
br i1 %66, label %67, label %46
67: ; preds = %46
%68 = call i32 @gettimeofday(%struct.timeval* %2, %struct.timezone* %3)
%69 = load double, double* %31
%70 = load double, double* %33
%71 = fsub double %69, %70
%72 = fmul double %71, 1.000000e+03
%73 = load double, double* %37
%74 = load double, double* %39
%75 = fsub double %73, %74
%76 = tail call double @llvm.fmuladd.f64(double %72, double 1.000000e+03, double %75)
%77 = fdiv double %76, 1.000000e+04
%78 = tail call i32 @printf(i8* getelementptr inbounds ([22 x i8], [22 x i8]* @.str.1, i64 0, i64 0), double %77)
%79 = call i32 @gettimeofday(%struct.timeval* %1, %struct.timezone* %3)
%80 = call i32 @gettimeofday(%struct.timeval* %2, %struct.timezone* %3)
%81 = load double, double* %31
%82 = load double, double* %33
%83 = fsub double %81, %82
%84 = fmul double %83, 1.000000e+03
%85 = load double, double* %37
%86 = load double, double* %39
%87 = fsub double %85, %86
%88 = tail call double @llvm.fmuladd.f64(double %84, double 1.000000e+03, double %87)
%89 = fdiv double %88, 1.000000e+04
%90 = tail call i32 @printf(i8* getelementptr inbounds ([22 x i8], [22 x i8]* @.str.2, i64 0, i64 0), double %89)
ret i32 0
}