#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 timeval {
  int tv_sec;
  int tv_usec;
};

/* Variables and functions */
int /*<<< orphan*/ gettimeofday(struct timeval *, int /*<<< orphan*/ *);
int /*<<< orphan*/ printf(char *, ...);
int main(int argc, char **argv) {
  float a[20000], b[20000], c[20000];
  int i, j, k, m;
  double result, ops, tot_ops, tot_time;
  struct timeval tv1, tv2;
  printf("init data\n");
  for (i = 0; i < 20000; i++) {
    a[i] = b[i] = c[i] = 0.2;
  }
  printf("start FP op\n");
  long iMax = 10000;
  m = 0;
  tot_ops = 0.0;
  tot_time = 0.0;
  while (++m < 10) {
    gettimeofday(&tv1, NULL);
    for (i = 0; i < iMax; i++) {
      a[i] += b[i] * c[i];
    }
    gettimeofday(&tv2, NULL);
    float dt = (float)(tv2.tv_sec * 1000000 + tv2.tv_usec -
                       tv1.tv_sec * 1000000 - tv1.tv_usec) /
               1000000;
    ops = (double)2 * iMax * 20000;
    result = ops / dt / 1000000.0;
    printf("MFlops:%lf Mops= %f %lf\n", result, 1.0e-6 * ops, dt);
    tot_ops += ops;
    tot_time += dt;
  }
  if (argc > 10) {
    float d = 0;
    for (j = 0; j < 20000; j++) {
      d += a[i];
    }
    printf("d= %f\n", d);
  }
  printf("tot_Mops= %f, tot_time= %f, overall Mops/sec= %f\n", 1.0e-6 * tot_ops,
         tot_time, 1.0e-6 * tot_ops / tot_time);
  return 0;
}


x86 assembly (clang, -O0):
<main>:
push   %rbp
mov    %rsp,%rbp
sub    $0x3a9e0,%rsp
movl   $0x0,-0x4(%rbp)
mov    %edi,-0x8(%rbp)
mov    %rsi,-0x10(%rbp)
lea    0xee8(%rip),%rdi
mov    $0x0,%al
call   1030 <printf@plt>
movl   $0x0,-0x3a994(%rbp)
cmpl   $0x4e20,-0x3a994(%rbp)
jge    11bd <main+0x9d>
movslq -0x3a994(%rbp),%rax
movss  0xeb4(%rip),%xmm0
movss  %xmm0,-0x3a990(%rbp,%rax,4)
fc ff
movslq -0x3a994(%rbp),%rax
movss  0xe9c(%rip),%xmm0
movss  %xmm0,-0x27110(%rbp,%rax,4)
fd ff
movslq -0x3a994(%rbp),%rax
movss  0xe84(%rip),%xmm0
movss  %xmm0,-0x13890(%rbp,%rax,4)
fe ff
mov    -0x3a994(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0x3a994(%rbp)
jmp    1151 <main+0x31>
lea    0xe6f(%rip),%rdi
mov    $0x0,%al
call   1030 <printf@plt>
movq   $0x2710,-0x3a9d8(%rbp)
movl   $0x0,-0x3a9a0(%rbp)
xorps  %xmm0,%xmm0
movsd  %xmm0,-0x3a9b8(%rbp)
ff
xorps  %xmm0,%xmm0
movsd  %xmm0,-0x3a9c0(%rbp)
ff
mov    -0x3a9a0(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0x3a9a0(%rbp)
cmp    $0xa,%eax
jge    139b <main+0x27b>
lea    -0x3a9c8(%rbp),%rdi
xor    %eax,%eax
mov    %eax,%esi
call   1040 <gettimeofday@plt>
movl   $0x0,-0x3a994(%rbp)
movslq -0x3a994(%rbp),%rax
cmp    -0x3a9d8(%rbp),%rax
jge    1291 <main+0x171>
movslq -0x3a994(%rbp),%rax
movss  -0x27110(%rbp,%rax,4),%xmm0
fd ff
movslq -0x3a994(%rbp),%rax
movss  -0x3a990(%rbp,%rax,4),%xmm2
fc ff
movslq -0x3a994(%rbp),%rax
movss  -0x13890(%rbp,%rax,4),%xmm1
fe ff
mulss  %xmm2,%xmm0
addss  %xmm1,%xmm0
movss  %xmm0,-0x13890(%rbp,%rax,4)
fe ff
mov    -0x3a994(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0x3a994(%rbp)
jmp    1228 <main+0x108>
lea    -0x3a9d0(%rbp),%rdi
xor    %eax,%eax
mov    %eax,%esi
call   1040 <gettimeofday@plt>
imul   $0xf4240,-0x3a9d0(%rbp),%eax
add    -0x3a9cc(%rbp),%eax
imul   $0xf4240,-0x3a9c8(%rbp),%ecx
sub    %ecx,%eax
sub    -0x3a9c4(%rbp),%eax
cvtsi2ss %eax,%xmm0
movss  0xd51(%rip),%xmm1
divss  %xmm1,%xmm0
movss  %xmm0,-0x3a9dc(%rbp)
ff
cvtsi2sdq -0x3a9d8(%rbp),%xmm1
fc ff
movsd  0xd2c(%rip),%xmm0
mulsd  %xmm1,%xmm0
movsd  0xd18(%rip),%xmm1
mulsd  %xmm1,%xmm0
movsd  %xmm0,-0x3a9b0(%rbp)
ff
movsd  -0x3a9b0(%rbp),%xmm0
ff
movss  -0x3a9dc(%rbp),%xmm1
ff
cvtss2sd %xmm1,%xmm1
divsd  %xmm1,%xmm0
movsd  0xce4(%rip),%xmm1
divsd  %xmm1,%xmm0
movsd  %xmm0,-0x3a9a8(%rbp)
ff
movsd  -0x3a9a8(%rbp),%xmm0
ff
movsd  0xcc0(%rip),%xmm1
mulsd  -0x3a9b0(%rbp),%xmm1
ff
movss  -0x3a9dc(%rbp),%xmm2
ff
cvtss2sd %xmm2,%xmm2
lea    0xce5(%rip),%rdi
mov    $0x3,%al
call   1030 <printf@plt>
movsd  -0x3a9b0(%rbp),%xmm0
ff
addsd  -0x3a9b8(%rbp),%xmm0
ff
movsd  %xmm0,-0x3a9b8(%rbp)
ff
movss  -0x3a9dc(%rbp),%xmm0
ff
cvtss2sd %xmm0,%xmm0
addsd  -0x3a9c0(%rbp),%xmm0
ff
movsd  %xmm0,-0x3a9c0(%rbp)
ff
jmp    11f6 <main+0xd6>
cmpl   $0xa,-0x8(%rbp)
jle    1418 <main+0x2f8>
xorps  %xmm0,%xmm0
movss  %xmm0,-0x3a9e0(%rbp)
ff
movl   $0x0,-0x3a998(%rbp)
cmpl   $0x4e20,-0x3a998(%rbp)
jge    13fe <main+0x2de>
movslq -0x3a994(%rbp),%rax
movss  -0x13890(%rbp,%rax,4),%xmm0
fe ff
addss  -0x3a9e0(%rbp),%xmm0
ff
movss  %xmm0,-0x3a9e0(%rbp)
ff
mov    -0x3a998(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0x3a998(%rbp)
jmp    13ba <main+0x29a>
movss  -0x3a9e0(%rbp),%xmm0
ff
cvtss2sd %xmm0,%xmm0
lea    0xc48(%rip),%rdi
mov    $0x1,%al
call   1030 <printf@plt>
movsd  0xbe0(%rip),%xmm0
mulsd  -0x3a9b8(%rbp),%xmm0
ff
movsd  -0x3a9c0(%rbp),%xmm1
ff
movsd  0xbc8(%rip),%xmm2
mulsd  -0x3a9b8(%rbp),%xmm2
ff
divsd  -0x3a9c0(%rbp),%xmm2
ff
lea    0xc11(%rip),%rdi
mov    $0x3,%al
call   1030 <printf@plt>
xor    %eax,%eax
add    $0x3a9e0,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<main>:
push   %rbp
push   %r15
push   %r14
push   %r12
push   %rbx
sub    $0x3a9b0,%rsp
mov    %edi,%r14d
lea    0xf41(%rip),%rdi
call   1030 <puts@plt>
mov    $0xc,%eax
movapd 0xea5(%rip),%xmm0
nopl   0x0(%rax,%rax,1)
movapd %xmm0,0x13880(%rsp,%rax,4)
movapd %xmm0,0x13890(%rsp,%rax,4)
movapd %xmm0,0x27100(%rsp,%rax,4)
movapd %xmm0,0x27110(%rsp,%rax,4)
movapd %xmm0,(%rsp,%rax,4)
movapd %xmm0,0x10(%rsp,%rax,4)
movapd %xmm0,0x138a0(%rsp,%rax,4)
movapd %xmm0,0x138b0(%rsp,%rax,4)
movapd %xmm0,0x27120(%rsp,%rax,4)
movapd %xmm0,0x27130(%rsp,%rax,4)
movapd %xmm0,0x20(%rsp,%rax,4)
movapd %xmm0,0x30(%rsp,%rax,4)
add    $0x10,%rax
cmp    $0x4e2c,%rax
jne    1160 <main+0x30>
lea    0xec2(%rip),%rdi
call   1030 <puts@plt>
xorpd  %xmm1,%xmm1
mov    $0x1,%ebp
lea    0x20(%rsp),%r15
lea    0x18(%rsp),%r12
lea    0xe47(%rip),%rbx
xorpd  %xmm0,%xmm0
cs nopw 0x0(%rax,%rax,1)
nop
movsd  %xmm0,0x8(%rsp)
movsd  %xmm1,0x10(%rsp)
mov    %r15,%rdi
xor    %esi,%esi
call   1050 <gettimeofday@plt>
mov    $0xc,%eax
nopl   0x0(%rax,%rax,1)
movaps 0x27100(%rsp,%rax,4),%xmm0
movaps 0x27110(%rsp,%rax,4),%xmm1
movaps 0x27120(%rsp,%rax,4),%xmm2
movaps 0x27130(%rsp,%rax,4),%xmm3
mulps  0x13880(%rsp,%rax,4),%xmm0
addps  (%rsp,%rax,4),%xmm0
mulps  0x13890(%rsp,%rax,4),%xmm1
addps  0x10(%rsp,%rax,4),%xmm1
movaps %xmm0,(%rsp,%rax,4)
movaps %xmm1,0x10(%rsp,%rax,4)
mulps  0x138a0(%rsp,%rax,4),%xmm2
addps  0x20(%rsp,%rax,4),%xmm2
mulps  0x138b0(%rsp,%rax,4),%xmm3
addps  0x30(%rsp,%rax,4),%xmm3
movaps %xmm2,0x20(%rsp,%rax,4)
movaps %xmm3,0x30(%rsp,%rax,4)
add    $0x10,%rax
cmp    $0x271c,%rax
jne    1220 <main+0xf0>
mov    %r12,%rdi
xor    %esi,%esi
call   1050 <gettimeofday@plt>
mov    0x18(%rsp),%eax
sub    0x20(%rsp),%eax
mov    0x1c(%rsp),%ecx
imul   $0xf4240,%eax,%eax
sub    0x24(%rsp),%ecx
add    %eax,%ecx
xorps  %xmm0,%xmm0
cvtsi2ss %ecx,%xmm0
divss  0xd4d(%rip),%xmm0
xorps  %xmm2,%xmm2
cvtss2sd %xmm0,%xmm2
movsd  %xmm2,0x28(%rsp)
movsd  0xd40(%rip),%xmm0
divsd  %xmm2,%xmm0
divsd  0xd3c(%rip),%xmm0
mov    %rbx,%rdi
movsd  0xd39(%rip),%xmm1
mov    $0x3,%al
call   1040 <printf@plt>
movsd  0x8(%rsp),%xmm0
addsd  0xd14(%rip),%xmm0
movsd  0x10(%rsp),%xmm1
addsd  0x28(%rsp),%xmm1
add    $0x1,%ebp
cmp    $0xa,%ebp
jne    1200 <main+0xd0>
cmp    $0xb,%r14d
jl     138b <main+0x25b>
movsd  %xmm0,0x8(%rsp)
movsd  %xmm1,0x10(%rsp)
xorpd  %xmm0,%xmm0
mov    $0x4e20,%eax
movss  0x9c70(%rsp),%xmm1
addss  %xmm1,%xmm0
addss  %xmm1,%xmm0
addss  %xmm1,%xmm0
addss  %xmm1,%xmm0
addss  %xmm1,%xmm0
addss  %xmm1,%xmm0
addss  %xmm1,%xmm0
addss  %xmm1,%xmm0
addss  %xmm1,%xmm0
addss  %xmm1,%xmm0
add    $0xfffffff6,%eax
jne    1340 <main+0x210>
cvtss2sd %xmm0,%xmm0
lea    0xcd9(%rip),%rdi
mov    $0x1,%al
call   1040 <printf@plt>
movsd  0x10(%rsp),%xmm1
movsd  0x8(%rsp),%xmm0
mulsd  0xc9d(%rip),%xmm0
movapd %xmm0,%xmm2
divsd  %xmm1,%xmm2
lea    0xcb6(%rip),%rdi
mov    $0x3,%al
call   1040 <printf@plt>
xor    %eax,%eax
add    $0x3a9b0,%rsp
pop    %rbx
pop    %r12
pop    %r14
pop    %r15
pop    %rbp
ret

LLVM IR (-O0):
%struct.timeval = type { i32, i32 }
@.str = [11 x i8] c"init data\0A\00"
@.str.1 = [13 x i8] c"start FP op\0A\00"
@.str.2 = [25 x i8] c"MFlops:%lf Mops= %f %lf\0A\00"
@.str.3 = [7 x i8] c"d= %f\0A\00"
@.str.4 = [50 x i8] c"tot_Mops= %f, tot_time= %f, overall Mops/sec= %f\0A\00"
define i32 @main(i32 %0, i8** %1) {
%3 = alloca i32
%4 = alloca i32
%5 = alloca i8**
%6 = alloca [20000 x float]
%7 = alloca [20000 x float]
%8 = alloca [20000 x float]
%9 = alloca i32
%10 = alloca i32
%11 = alloca i32
%12 = alloca i32
%13 = alloca double
%14 = alloca double
%15 = alloca double
%16 = alloca double
%17 = alloca %struct.timeval
%18 = alloca %struct.timeval
%19 = alloca i64
%20 = alloca float
%21 = alloca float
store i32 0, i32* %3
store i32 %0, i32* %4
store i8** %1, i8*** %5
%22 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([11 x i8], [11 x i8]* @.str, i64 0, i64 0))
store i32 0, i32* %9
br label %23
23: ; preds = %36, %2
%24 = load i32, i32* %9
%25 = icmp slt i32 %24, 20000
br i1 %25, label %26, label %39
26: ; preds = %23
%27 = load i32, i32* %9
%28 = sext i32 %27 to i64
%29 = getelementptr inbounds [20000 x float], [20000 x float]* %8, i64 0, i64 %28
store float 0x3FC99999A0000000, float* %29
%30 = load i32, i32* %9
%31 = sext i32 %30 to i64
%32 = getelementptr inbounds [20000 x float], [20000 x float]* %7, i64 0, i64 %31
store float 0x3FC99999A0000000, float* %32
%33 = load i32, i32* %9
%34 = sext i32 %33 to i64
%35 = getelementptr inbounds [20000 x float], [20000 x float]* %6, i64 0, i64 %34
store float 0x3FC99999A0000000, float* %35
br label %36
36: ; preds = %26
%37 = load i32, i32* %9
%38 = add nsw i32 %37, 1
store i32 %38, i32* %9
br label %23
39: ; preds = %23
%40 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([13 x i8], [13 x i8]* @.str.1, i64 0, i64 0))
store i64 10000, i64* %19
store i32 0, i32* %12
store double 0.000000e+00, double* %15
store double 0.000000e+00, double* %16
br label %41
41: ; preds = %69, %39
%42 = load i32, i32* %12
%43 = add nsw i32 %42, 1
store i32 %43, i32* %12
%44 = icmp slt i32 %43, 10
br i1 %44, label %45, label %108
45: ; preds = %41
%46 = call i32 @gettimeofday(%struct.timeval* %17, i32* null)
store i32 0, i32* %9
br label %47
47: ; preds = %66, %45
%48 = load i32, i32* %9
%49 = sext i32 %48 to i64
%50 = load i64, i64* %19
%51 = icmp slt i64 %49, %50
br i1 %51, label %52, label %69
52: ; preds = %47
%53 = load i32, i32* %9
%54 = sext i32 %53 to i64
%55 = getelementptr inbounds [20000 x float], [20000 x float]* %7, i64 0, i64 %54
%56 = load float, float* %55
%57 = load i32, i32* %9
%58 = sext i32 %57 to i64
%59 = getelementptr inbounds [20000 x float], [20000 x float]* %8, i64 0, i64 %58
%60 = load float, float* %59
%61 = load i32, i32* %9
%62 = sext i32 %61 to i64
%63 = getelementptr inbounds [20000 x float], [20000 x float]* %6, i64 0, i64 %62
%64 = load float, float* %63
%65 = call float @llvm.fmuladd.f32(float %56, float %60, float %64)
store float %65, float* %63
br label %66
66: ; preds = %52
%67 = load i32, i32* %9
%68 = add nsw i32 %67, 1
store i32 %68, i32* %9
br label %47
69: ; preds = %47
%70 = call i32 @gettimeofday(%struct.timeval* %18, i32* null)
%71 = getelementptr inbounds %struct.timeval, %struct.timeval* %18, i32 0, i32 0
%72 = load i32, i32* %71
%73 = mul nsw i32 %72, 1000000
%74 = getelementptr inbounds %struct.timeval, %struct.timeval* %18, i32 0, i32 1
%75 = load i32, i32* %74
%76 = add nsw i32 %73, %75
%77 = getelementptr inbounds %struct.timeval, %struct.timeval* %17, i32 0, i32 0
%78 = load i32, i32* %77
%79 = mul nsw i32 %78, 1000000
%80 = sub nsw i32 %76, %79
%81 = getelementptr inbounds %struct.timeval, %struct.timeval* %17, i32 0, i32 1
%82 = load i32, i32* %81
%83 = sub nsw i32 %80, %82
%84 = sitofp i32 %83 to float
%85 = fdiv float %84, 1.000000e+06
store float %85, float* %20
%86 = load i64, i64* %19
%87 = sitofp i64 %86 to double
%88 = fmul double 2.000000e+00, %87
%89 = fmul double %88, 2.000000e+04
store double %89, double* %14
%90 = load double, double* %14
%91 = load float, float* %20
%92 = fpext float %91 to double
%93 = fdiv double %90, %92
%94 = fdiv double %93, 1.000000e+06
store double %94, double* %13
%95 = load double, double* %13
%96 = load double, double* %14
%97 = fmul double 0x3EB0C6F7A0B5ED8D, %96
%98 = load float, float* %20
%99 = fpext float %98 to double
%100 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([25 x i8], [25 x i8]* @.str.2, i64 0, i64 0), double %95, double %97, double %99)
%101 = load double, double* %14
%102 = load double, double* %15
%103 = fadd double %102, %101
store double %103, double* %15
%104 = load float, float* %20
%105 = fpext float %104 to double
%106 = load double, double* %16
%107 = fadd double %106, %105
store double %107, double* %16
br label %41
108: ; preds = %41
%109 = load i32, i32* %4
%110 = icmp sgt i32 %109, 10
br i1 %110, label %111, label %129
111: ; preds = %108
store float 0.000000e+00, float* %21
store i32 0, i32* %10
br label %112
112: ; preds = %122, %111
%113 = load i32, i32* %10
%114 = icmp slt i32 %113, 20000
br i1 %114, label %115, label %125
115: ; preds = %112
%116 = load i32, i32* %9
%117 = sext i32 %116 to i64
%118 = getelementptr inbounds [20000 x float], [20000 x float]* %6, i64 0, i64 %117
%119 = load float, float* %118
%120 = load float, float* %21
%121 = fadd float %120, %119
store float %121, float* %21
br label %122
122: ; preds = %115
%123 = load i32, i32* %10
%124 = add nsw i32 %123, 1
store i32 %124, i32* %10
br label %112
125: ; preds = %112
%126 = load float, float* %21
%127 = fpext float %126 to double
%128 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([7 x i8], [7 x i8]* @.str.3, i64 0, i64 0), double %127)
br label %129
129: ; preds = %125, %108
%130 = load double, double* %15
%131 = fmul double 0x3EB0C6F7A0B5ED8D, %130
%132 = load double, double* %16
%133 = load double, double* %15
%134 = fmul double 0x3EB0C6F7A0B5ED8D, %133
%135 = load double, double* %16
%136 = fdiv double %134, %135
%137 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([50 x i8], [50 x i8]* @.str.4, i64 0, i64 0), double %131, double %132, double %136)
ret i32 0
}

LLVM IR (-O2):
%struct.timeval = type { i32, i32 }
@.str.2 = [25 x i8] c"MFlops:%lf Mops= %f %lf\0A\00"
@.str.3 = [7 x i8] c"d= %f\0A\00"
@.str.4 = [50 x i8] c"tot_Mops= %f, tot_time= %f, overall Mops/sec= %f\0A\00"
@str = [10 x i8] c"init data\00"
@str.5 = [12 x i8] c"start FP op\00"
define i32 @main(i32 %0, i8** nocapture readnone %1) {
%3 = alloca [20000 x float]
%4 = alloca [20000 x float]
%5 = alloca [20000 x float]
%6 = alloca %struct.timeval
%7 = alloca %struct.timeval
%8 = bitcast [20000 x float]* %3 to i8*
%9 = bitcast [20000 x float]* %4 to i8*
%10 = bitcast [20000 x float]* %5 to i8*
%11 = bitcast %struct.timeval* %6 to i8*
%12 = bitcast %struct.timeval* %7 to i8*
%13 = tail call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([10 x i8], [10 x i8]* @str, i64 0, i64 0))
br label %14
14: ; preds = %14, %2
%15 = phi i64 [ 0, %2 ], [ %41, %14 ]
%16 = getelementptr inbounds [20000 x float], [20000 x float]* %5, i64 0, i64 %15
%17 = bitcast float* %16 to <4 x float>*
store <4 x float> <float 0x3FC99999A0000000, float 0x3FC99999A0000000, float 0x3FC99999A0000000, float 0x3FC99999A0000000>, <4 x float>* %17
%18 = getelementptr inbounds float, float* %16, i64 4
%19 = bitcast float* %18 to <4 x float>*
store <4 x float> <float 0x3FC99999A0000000, float 0x3FC99999A0000000, float 0x3FC99999A0000000, float 0x3FC99999A0000000>, <4 x float>* %19
%20 = getelementptr inbounds [20000 x float], [20000 x float]* %4, i64 0, i64 %15
%21 = bitcast float* %20 to <4 x float>*
store <4 x float> <float 0x3FC99999A0000000, float 0x3FC99999A0000000, float 0x3FC99999A0000000, float 0x3FC99999A0000000>, <4 x float>* %21
%22 = getelementptr inbounds float, float* %20, i64 4
%23 = bitcast float* %22 to <4 x float>*
store <4 x float> <float 0x3FC99999A0000000, float 0x3FC99999A0000000, float 0x3FC99999A0000000, float 0x3FC99999A0000000>, <4 x float>* %23
%24 = getelementptr inbounds [20000 x float], [20000 x float]* %3, i64 0, i64 %15
%25 = bitcast float* %24 to <4 x float>*
store <4 x float> <float 0x3FC99999A0000000, float 0x3FC99999A0000000, float 0x3FC99999A0000000, float 0x3FC99999A0000000>, <4 x float>* %25
%26 = getelementptr inbounds float, float* %24, i64 4
%27 = bitcast float* %26 to <4 x float>*
store <4 x float> <float 0x3FC99999A0000000, float 0x3FC99999A0000000, float 0x3FC99999A0000000, float 0x3FC99999A0000000>, <4 x float>* %27
%28 = or i64 %15, 8
%29 = getelementptr inbounds [20000 x float], [20000 x float]* %5, i64 0, i64 %28
%30 = bitcast float* %29 to <4 x float>*
store <4 x float> <float 0x3FC99999A0000000, float 0x3FC99999A0000000, float 0x3FC99999A0000000, float 0x3FC99999A0000000>, <4 x float>* %30
%31 = getelementptr inbounds float, float* %29, i64 4
%32 = bitcast float* %31 to <4 x float>*
store <4 x float> <float 0x3FC99999A0000000, float 0x3FC99999A0000000, float 0x3FC99999A0000000, float 0x3FC99999A0000000>, <4 x float>* %32
%33 = getelementptr inbounds [20000 x float], [20000 x float]* %4, i64 0, i64 %28
%34 = bitcast float* %33 to <4 x float>*
store <4 x float> <float 0x3FC99999A0000000, float 0x3FC99999A0000000, float 0x3FC99999A0000000, float 0x3FC99999A0000000>, <4 x float>* %34
%35 = getelementptr inbounds float, float* %33, i64 4
%36 = bitcast float* %35 to <4 x float>*
store <4 x float> <float 0x3FC99999A0000000, float 0x3FC99999A0000000, float 0x3FC99999A0000000, float 0x3FC99999A0000000>, <4 x float>* %36
%37 = getelementptr inbounds [20000 x float], [20000 x float]* %3, i64 0, i64 %28
%38 = bitcast float* %37 to <4 x float>*
store <4 x float> <float 0x3FC99999A0000000, float 0x3FC99999A0000000, float 0x3FC99999A0000000, float 0x3FC99999A0000000>, <4 x float>* %38
%39 = getelementptr inbounds float, float* %37, i64 4
%40 = bitcast float* %39 to <4 x float>*
store <4 x float> <float 0x3FC99999A0000000, float 0x3FC99999A0000000, float 0x3FC99999A0000000, float 0x3FC99999A0000000>, <4 x float>* %40
%41 = add nuw nsw i64 %15, 16
%42 = icmp eq i64 %41, 20000
br i1 %42, label %43, label %14
43: ; preds = %14
%44 = tail call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([12 x i8], [12 x i8]* @str.5, i64 0, i64 0))
%45 = getelementptr inbounds %struct.timeval, %struct.timeval* %7, i64 0, i32 0
%46 = getelementptr inbounds %struct.timeval, %struct.timeval* %7, i64 0, i32 1
%47 = getelementptr inbounds %struct.timeval, %struct.timeval* %6, i64 0, i32 0
%48 = getelementptr inbounds %struct.timeval, %struct.timeval* %6, i64 0, i32 1
br label %49
49: ; preds = %43, %103
%50 = phi i32 [ 1, %43 ], [ %121, %103 ]
%51 = phi double [ 0.000000e+00, %43 ], [ %120, %103 ]
%52 = phi double [ 0.000000e+00, %43 ], [ %119, %103 ]
%53 = call i32 @gettimeofday(%struct.timeval* %6, i32* null)
br label %54
54: ; preds = %54, %49
%55 = phi i64 [ 0, %49 ], [ %101, %54 ]
%56 = getelementptr inbounds [20000 x float], [20000 x float]* %4, i64 0, i64 %55
%57 = bitcast float* %56 to <4 x float>*
%58 = load <4 x float>, <4 x float>* %57
%59 = getelementptr inbounds float, float* %56, i64 4
%60 = bitcast float* %59 to <4 x float>*
%61 = load <4 x float>, <4 x float>* %60
%62 = getelementptr inbounds [20000 x float], [20000 x float]* %5, i64 0, i64 %55
%63 = bitcast float* %62 to <4 x float>*
%64 = load <4 x float>, <4 x float>* %63
%65 = getelementptr inbounds float, float* %62, i64 4
%66 = bitcast float* %65 to <4 x float>*
%67 = load <4 x float>, <4 x float>* %66
%68 = getelementptr inbounds [20000 x float], [20000 x float]* %3, i64 0, i64 %55
%69 = bitcast float* %68 to <4 x float>*
%70 = load <4 x float>, <4 x float>* %69
%71 = getelementptr inbounds float, float* %68, i64 4
%72 = bitcast float* %71 to <4 x float>*
%73 = load <4 x float>, <4 x float>* %72
%74 = call <4 x float> @llvm.fmuladd.v4f32(<4 x float> %58, <4 x float> %64, <4 x float> %70)
%75 = call <4 x float> @llvm.fmuladd.v4f32(<4 x float> %61, <4 x float> %67, <4 x float> %73)
%76 = bitcast float* %68 to <4 x float>*
store <4 x float> %74, <4 x float>* %76
%77 = bitcast float* %71 to <4 x float>*
store <4 x float> %75, <4 x float>* %77
%78 = or i64 %55, 8
%79 = getelementptr inbounds [20000 x float], [20000 x float]* %4, i64 0, i64 %78
%80 = bitcast float* %79 to <4 x float>*
%81 = load <4 x float>, <4 x float>* %80
%82 = getelementptr inbounds float, float* %79, i64 4
%83 = bitcast float* %82 to <4 x float>*
%84 = load <4 x float>, <4 x float>* %83
%85 = getelementptr inbounds [20000 x float], [20000 x float]* %5, i64 0, i64 %78
%86 = bitcast float* %85 to <4 x float>*
%87 = load <4 x float>, <4 x float>* %86
%88 = getelementptr inbounds float, float* %85, i64 4
%89 = bitcast float* %88 to <4 x float>*
%90 = load <4 x float>, <4 x float>* %89
%91 = getelementptr inbounds [20000 x float], [20000 x float]* %3, i64 0, i64 %78
%92 = bitcast float* %91 to <4 x float>*
%93 = load <4 x float>, <4 x float>* %92
%94 = getelementptr inbounds float, float* %91, i64 4
%95 = bitcast float* %94 to <4 x float>*
%96 = load <4 x float>, <4 x float>* %95
%97 = call <4 x float> @llvm.fmuladd.v4f32(<4 x float> %81, <4 x float> %87, <4 x float> %93)
%98 = call <4 x float> @llvm.fmuladd.v4f32(<4 x float> %84, <4 x float> %90, <4 x float> %96)
%99 = bitcast float* %91 to <4 x float>*
store <4 x float> %97, <4 x float>* %99
%100 = bitcast float* %94 to <4 x float>*
store <4 x float> %98, <4 x float>* %100
%101 = add nuw nsw i64 %55, 16
%102 = icmp eq i64 %101, 10000
br i1 %102, label %103, label %54
103: ; preds = %54
%104 = call i32 @gettimeofday(%struct.timeval* %7, i32* null)
%105 = load i32, i32* %45
%106 = load i32, i32* %46
%107 = load i32, i32* %47
%108 = load i32, i32* %48
%109 = sub i32 %105, %107
%110 = mul i32 %109, 1000000
%111 = sub i32 %106, %108
%112 = add i32 %111, %110
%113 = sitofp i32 %112 to float
%114 = fdiv float %113, 1.000000e+06
%115 = fpext float %114 to double
%116 = fdiv double 4.000000e+08, %115
%117 = fdiv double %116, 1.000000e+06
%118 = tail call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([25 x i8], [25 x i8]* @.str.2, i64 0, i64 0), double %117, double 4.000000e+02, double %115)
%119 = fadd double %52, 4.000000e+08
%120 = fadd double %51, %115
%121 = add nuw nsw i32 %50, 1
%122 = icmp eq i32 %121, 10
br i1 %122, label %123, label %49
123: ; preds = %103
%124 = icmp sgt i32 %0, 10
br i1 %124, label %125, label %146
125: ; preds = %123
%126 = getelementptr inbounds [20000 x float], [20000 x float]* %3, i64 0, i64 10000
%127 = load float, float* %126
br label %128
128: ; preds = %128, %125
%129 = phi float [ 0.000000e+00, %125 ], [ %140, %128 ]
%130 = phi i32 [ 0, %125 ], [ %141, %128 ]
%131 = fadd float %129, %127
%132 = fadd float %131, %127
%133 = fadd float %132, %127
%134 = fadd float %133, %127
%135 = fadd float %134, %127
%136 = fadd float %135, %127
%137 = fadd float %136, %127
%138 = fadd float %137, %127
%139 = fadd float %138, %127
%140 = fadd float %139, %127
%141 = add nuw nsw i32 %130, 10
%142 = icmp eq i32 %141, 20000
br i1 %142, label %143, label %128
143: ; preds = %128
%144 = fpext float %140 to double
%145 = tail call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([7 x i8], [7 x i8]* @.str.3, i64 0, i64 0), double %144)
br label %146
146: ; preds = %143, %123
%147 = fmul double %119, 0x3EB0C6F7A0B5ED8D
%148 = fdiv double %147, %120
%149 = tail call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([50 x i8], [50 x i8]* @.str.4, i64 0, i64 0), double %147, double %120, double %148)
ret i32 0
}