#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 atoi(char *);
int /*<<< orphan*/ exit(int);
int /*<<< orphan*/ fprintf(int /*<<< orphan*/, char *);
int /*<<< orphan*/ gettimeofday(struct timeval *, int /*<<< orphan*/ *);
double *malloc(int);
int /*<<< orphan*/ printf(char *, int, int);
int /*<<< orphan*/ stderr;
int main(int argc, char *argv[]) {
  struct timeval start, finish;
  int i, n;
  double *d, *a, *b, *c;
  double dd, aa, bb, cc;
  int secs;
  if (argc != 2) {
    fprintf(stderr, "usage: flops iters");
    exit(1);
  }
  n = atoi(argv[1]);
  d = malloc(n * sizeof(double));
  a = malloc(n * sizeof(double));
  b = malloc(n * sizeof(double));
  c = malloc(n * sizeof(double));
  gettimeofday(&start, NULL);
  for (i = 0; i < n; i++) {
    d[i] = a[i] * b[i] + c[i];
    dd = d[i];
    aa = a[i];
    bb = b[i];
    cc = c[i];
    dd = aa * bb + cc;
  }
  gettimeofday(&finish, NULL);
  secs = (finish.tv_sec - start.tv_sec) * 1000000 +
         (finish.tv_usec - start.tv_usec);
  printf("elapsed %F flops %d\n",
         (finish.tv_sec - start.tv_sec) * 1000000 +
             (finish.tv_usec - start.tv_usec),
         n / secs);
}


x86 assembly (clang, -O0):
<main>:
push   %rbp
mov    %rsp,%rbp
sub    $0x70,%rsp
movl   $0x0,-0x4(%rbp)
mov    %edi,-0x8(%rbp)
mov    %rsi,-0x10(%rbp)
cmpl   $0x2,-0x8(%rbp)
je     119f <main+0x3f>
mov    0x2e59(%rip),%rax
mov    (%rax),%edi
lea    0xe70(%rip),%rsi
call   1050 <fprintf@plt>
mov    $0x1,%edi
call   1080 <exit@plt>
mov    -0x10(%rbp),%rax
mov    0x8(%rax),%rdi
call   1070 <atoi@plt>
mov    %eax,-0x28(%rbp)
movslq -0x28(%rbp),%rax
shl    $0x3,%rax
mov    %eax,%edi
call   1060 <malloc@plt>
mov    %rax,-0x30(%rbp)
movslq -0x28(%rbp),%rax
shl    $0x3,%rax
mov    %eax,%edi
call   1060 <malloc@plt>
mov    %rax,-0x38(%rbp)
movslq -0x28(%rbp),%rax
shl    $0x3,%rax
mov    %eax,%edi
call   1060 <malloc@plt>
mov    %rax,-0x40(%rbp)
movslq -0x28(%rbp),%rax
shl    $0x3,%rax
mov    %eax,%edi
call   1060 <malloc@plt>
mov    %rax,-0x48(%rbp)
lea    -0x18(%rbp),%rdi
xor    %eax,%eax
mov    %eax,%esi
call   1040 <gettimeofday@plt>
movl   $0x0,-0x24(%rbp)
mov    -0x24(%rbp),%eax
cmp    -0x28(%rbp),%eax
jge    12c9 <main+0x169>
mov    -0x38(%rbp),%rax
movslq -0x24(%rbp),%rcx
movsd  (%rax,%rcx,8),%xmm0
mov    -0x40(%rbp),%rax
movslq -0x24(%rbp),%rcx
movsd  (%rax,%rcx,8),%xmm2
mov    -0x48(%rbp),%rax
movslq -0x24(%rbp),%rcx
movsd  (%rax,%rcx,8),%xmm1
mulsd  %xmm2,%xmm0
addsd  %xmm1,%xmm0
mov    -0x30(%rbp),%rax
movslq -0x24(%rbp),%rcx
movsd  %xmm0,(%rax,%rcx,8)
mov    -0x30(%rbp),%rax
movslq -0x24(%rbp),%rcx
movsd  (%rax,%rcx,8),%xmm0
movsd  %xmm0,-0x50(%rbp)
mov    -0x38(%rbp),%rax
movslq -0x24(%rbp),%rcx
movsd  (%rax,%rcx,8),%xmm0
movsd  %xmm0,-0x58(%rbp)
mov    -0x40(%rbp),%rax
movslq -0x24(%rbp),%rcx
movsd  (%rax,%rcx,8),%xmm0
movsd  %xmm0,-0x60(%rbp)
mov    -0x48(%rbp),%rax
movslq -0x24(%rbp),%rcx
movsd  (%rax,%rcx,8),%xmm0
movsd  %xmm0,-0x68(%rbp)
movsd  -0x58(%rbp),%xmm0
movsd  -0x60(%rbp),%xmm2
movsd  -0x68(%rbp),%xmm1
mulsd  %xmm2,%xmm0
addsd  %xmm1,%xmm0
movsd  %xmm0,-0x50(%rbp)
mov    -0x24(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0x24(%rbp)
jmp    120f <main+0xaf>
lea    -0x20(%rbp),%rdi
xor    %eax,%eax
mov    %eax,%esi
call   1040 <gettimeofday@plt>
mov    -0x20(%rbp),%eax
sub    -0x18(%rbp),%eax
imul   $0xf4240,%eax,%eax
mov    -0x1c(%rbp),%ecx
sub    -0x14(%rbp),%ecx
add    %ecx,%eax
mov    %eax,-0x6c(%rbp)
mov    -0x20(%rbp),%eax
sub    -0x18(%rbp),%eax
imul   $0xf4240,%eax,%esi
mov    -0x1c(%rbp),%eax
sub    -0x14(%rbp),%eax
add    %eax,%esi
mov    -0x28(%rbp),%eax
cltd
idivl  -0x6c(%rbp)
mov    %eax,%edx
lea    0xd02(%rip),%rdi
call   1030 <printf@plt>
mov    -0x4(%rbp),%eax
add    $0x70,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<main>:
push   %r15
push   %r14
push   %r13
push   %r12
push   %rbx
sub    $0x10,%rsp
cmp    $0x2,%edi
jne    1367 <main+0x207>
mov    0x8(%rsi),%rdi
call   1070 <atoi@plt>
mov    %eax,%r14d
lea    0x0(,%r14,8),%ebx
mov    %ebx,%edi
call   1060 <malloc@plt>
mov    %rax,%r15
mov    %ebx,%edi
call   1060 <malloc@plt>
mov    %rax,%r12
mov    %ebx,%edi
call   1060 <malloc@plt>
mov    %rax,%r13
mov    %ebx,%edi
call   1060 <malloc@plt>
mov    %rax,%rbx
lea    0x8(%rsp),%rdi
xor    %esi,%esi
call   1040 <gettimeofday@plt>
test   %r14d,%r14d
jle    1311 <main+0x1b1>
mov    %r14d,%eax
cmp    $0x4,%r14d
jae    11d7 <main+0x77>
xor    %ecx,%ecx
jmp    12f0 <main+0x190>
mov    %eax,%ecx
and    $0xfffffffc,%ecx
lea    -0x4(%rcx),%rdx
mov    %rdx,%rsi
shr    $0x2,%rsi
add    $0x1,%rsi
test   %rdx,%rdx
je     1356 <main+0x1f6>
mov    %rsi,%rdi
and    $0xfffffffffffffffe,%rdi
xor    %edx,%edx
nopl   (%rax)
movupd (%r12,%rdx,8),%xmm0
movupd 0x10(%r12,%rdx,8),%xmm1
movupd 0x0(%r13,%rdx,8),%xmm2
mulpd  %xmm0,%xmm2
movupd 0x10(%r13,%rdx,8),%xmm0
mulpd  %xmm1,%xmm0
movupd (%rbx,%rdx,8),%xmm1
addpd  %xmm2,%xmm1
movupd 0x10(%rbx,%rdx,8),%xmm2
addpd  %xmm0,%xmm2
movupd %xmm1,(%r15,%rdx,8)
movupd %xmm2,0x10(%r15,%rdx,8)
movupd 0x20(%r12,%rdx,8),%xmm0
movupd 0x30(%r12,%rdx,8),%xmm1
movupd 0x20(%r13,%rdx,8),%xmm2
mulpd  %xmm0,%xmm2
movupd 0x30(%r13,%rdx,8),%xmm0
mulpd  %xmm1,%xmm0
movupd 0x20(%rbx,%rdx,8),%xmm1
addpd  %xmm2,%xmm1
movupd 0x30(%rbx,%rdx,8),%xmm2
addpd  %xmm0,%xmm2
movupd %xmm1,0x20(%r15,%rdx,8)
movupd %xmm2,0x30(%r15,%rdx,8)
add    $0x8,%rdx
add    $0xfffffffffffffffe,%rdi
jne    1200 <main+0xa0>
test   $0x1,%sil
je     12e0 <main+0x180>
movupd (%r12,%rdx,8),%xmm0
movupd 0x10(%r12,%rdx,8),%xmm1
movupd 0x0(%r13,%rdx,8),%xmm2
mulpd  %xmm0,%xmm2
movupd 0x10(%r13,%rdx,8),%xmm0
mulpd  %xmm1,%xmm0
movupd (%rbx,%rdx,8),%xmm1
addpd  %xmm2,%xmm1
movupd 0x10(%rbx,%rdx,8),%xmm2
addpd  %xmm0,%xmm2
movupd %xmm1,(%r15,%rdx,8)
movupd %xmm2,0x10(%r15,%rdx,8)
cmp    %rax,%rcx
je     1311 <main+0x1b1>
cs nopw 0x0(%rax,%rax,1)
nop
movsd  (%r12,%rcx,8),%xmm0
mulsd  0x0(%r13,%rcx,8),%xmm0
addsd  (%rbx,%rcx,8),%xmm0
movsd  %xmm0,(%r15,%rcx,8)
add    $0x1,%rcx
cmp    %rcx,%rax
jne    12f0 <main+0x190>
mov    %rsp,%rdi
xor    %esi,%esi
call   1040 <gettimeofday@plt>
mov    (%rsp),%eax
mov    0x4(%rsp),%esi
sub    0x8(%rsp),%eax
sub    0xc(%rsp),%esi
imul   $0xf4240,%eax,%eax
add    %eax,%esi
mov    %r14d,%eax
cltd
idiv   %esi
lea    0xcd4(%rip),%rdi
mov    %eax,%edx
call   1030 <printf@plt>
xor    %eax,%eax
add    $0x10,%rsp
pop    %rbx
pop    %r12
pop    %r13
pop    %r14
pop    %r15
ret
xor    %edx,%edx
test   $0x1,%sil
jne    129d <main+0x13d>
jmp    12e0 <main+0x180>
mov    0x2c72(%rip),%rax
mov    (%rax),%edi
lea    0xc89(%rip),%rsi
call   1050 <fprintf@plt>
mov    $0x1,%edi
call   1080 <exit@plt>

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

LLVM IR (-O2):
%struct.timeval = type { i32, i32 }
@stderr = global i32 0
@.str = [19 x i8] c"usage: flops iters\00"
@.str.1 = [21 x i8] c"elapsed %F flops %d\0A\00"
define i32 @main(i32 %0, i8** nocapture %1) {
%3 = alloca %struct.timeval
%4 = alloca %struct.timeval
%5 = bitcast %struct.timeval* %3 to i8*
%6 = bitcast %struct.timeval* %4 to i8*
%7 = icmp eq i32 %0, 2
br i1 %7, label %12, label %8
8: ; preds = %2
%9 = load i32, i32* @stderr
%10 = tail call i32 @fprintf(i32 %9, i8* getelementptr inbounds ([19 x i8], [19 x i8]* @.str, i64 0, i64 0))
%11 = tail call i32 @exit(i32 1)
unreachable
12: ; preds = %2
%13 = getelementptr inbounds i8*, i8** %1, i64 1
%14 = load i8*, i8** %13
%15 = tail call i32 @atoi(i8* %14)
%16 = shl i32 %15, 3
%17 = tail call double* @malloc(i32 %16)
%18 = tail call double* @malloc(i32 %16)
%19 = tail call double* @malloc(i32 %16)
%20 = tail call double* @malloc(i32 %16)
%21 = call i32 @gettimeofday(%struct.timeval* %3, i32* null)
%22 = icmp sgt i32 %15, 0
br i1 %22, label %23, label %134
23: ; preds = %12
%24 = zext i32 %15 to i64
%25 = icmp ult i32 %15, 4
br i1 %25, label %120, label %26
26: ; preds = %23
%27 = and i64 %24, 4294967292
%28 = add nsw i64 %27, -4
%29 = lshr exact i64 %28, 2
%30 = add nuw nsw i64 %29, 1
%31 = and i64 %30, 1
%32 = icmp eq i64 %28, 0
br i1 %32, label %90, label %33
33: ; preds = %26
%34 = and i64 %30, 9223372036854775806
br label %35
35: ; preds = %35, %33
%36 = phi i64 [ 0, %33 ], [ %87, %35 ]
%37 = phi i64 [ 0, %33 ], [ %88, %35 ]
%38 = getelementptr inbounds double, double* %18, i64 %36
%39 = bitcast double* %38 to <2 x double>*
%40 = load <2 x double>, <2 x double>* %39
%41 = getelementptr inbounds double, double* %38, i64 2
%42 = bitcast double* %41 to <2 x double>*
%43 = load <2 x double>, <2 x double>* %42
%44 = getelementptr inbounds double, double* %19, i64 %36
%45 = bitcast double* %44 to <2 x double>*
%46 = load <2 x double>, <2 x double>* %45
%47 = getelementptr inbounds double, double* %44, i64 2
%48 = bitcast double* %47 to <2 x double>*
%49 = load <2 x double>, <2 x double>* %48
%50 = getelementptr inbounds double, double* %20, i64 %36
%51 = bitcast double* %50 to <2 x double>*
%52 = load <2 x double>, <2 x double>* %51
%53 = getelementptr inbounds double, double* %50, i64 2
%54 = bitcast double* %53 to <2 x double>*
%55 = load <2 x double>, <2 x double>* %54
%56 = call <2 x double> @llvm.fmuladd.v2f64(<2 x double> %40, <2 x double> %46, <2 x double> %52)
%57 = call <2 x double> @llvm.fmuladd.v2f64(<2 x double> %43, <2 x double> %49, <2 x double> %55)
%58 = getelementptr inbounds double, double* %17, i64 %36
%59 = bitcast double* %58 to <2 x double>*
store <2 x double> %56, <2 x double>* %59
%60 = getelementptr inbounds double, double* %58, i64 2
%61 = bitcast double* %60 to <2 x double>*
store <2 x double> %57, <2 x double>* %61
%62 = or i64 %36, 4
%63 = getelementptr inbounds double, double* %18, i64 %62
%64 = bitcast double* %63 to <2 x double>*
%65 = load <2 x double>, <2 x double>* %64
%66 = getelementptr inbounds double, double* %63, i64 2
%67 = bitcast double* %66 to <2 x double>*
%68 = load <2 x double>, <2 x double>* %67
%69 = getelementptr inbounds double, double* %19, i64 %62
%70 = bitcast double* %69 to <2 x double>*
%71 = load <2 x double>, <2 x double>* %70
%72 = getelementptr inbounds double, double* %69, i64 2
%73 = bitcast double* %72 to <2 x double>*
%74 = load <2 x double>, <2 x double>* %73
%75 = getelementptr inbounds double, double* %20, i64 %62
%76 = bitcast double* %75 to <2 x double>*
%77 = load <2 x double>, <2 x double>* %76
%78 = getelementptr inbounds double, double* %75, i64 2
%79 = bitcast double* %78 to <2 x double>*
%80 = load <2 x double>, <2 x double>* %79
%81 = call <2 x double> @llvm.fmuladd.v2f64(<2 x double> %65, <2 x double> %71, <2 x double> %77)
%82 = call <2 x double> @llvm.fmuladd.v2f64(<2 x double> %68, <2 x double> %74, <2 x double> %80)
%83 = getelementptr inbounds double, double* %17, i64 %62
%84 = bitcast double* %83 to <2 x double>*
store <2 x double> %81, <2 x double>* %84
%85 = getelementptr inbounds double, double* %83, i64 2
%86 = bitcast double* %85 to <2 x double>*
store <2 x double> %82, <2 x double>* %86
%87 = add nuw i64 %36, 8
%88 = add i64 %37, 2
%89 = icmp eq i64 %88, %34
br i1 %89, label %90, label %35
90: ; preds = %35, %26
%91 = phi i64 [ 0, %26 ], [ %87, %35 ]
%92 = icmp eq i64 %31, 0
br i1 %92, label %118, label %93
93: ; preds = %90
%94 = getelementptr inbounds double, double* %18, i64 %91
%95 = bitcast double* %94 to <2 x double>*
%96 = load <2 x double>, <2 x double>* %95
%97 = getelementptr inbounds double, double* %94, i64 2
%98 = bitcast double* %97 to <2 x double>*
%99 = load <2 x double>, <2 x double>* %98
%100 = getelementptr inbounds double, double* %19, i64 %91
%101 = bitcast double* %100 to <2 x double>*
%102 = load <2 x double>, <2 x double>* %101
%103 = getelementptr inbounds double, double* %100, i64 2
%104 = bitcast double* %103 to <2 x double>*
%105 = load <2 x double>, <2 x double>* %104
%106 = getelementptr inbounds double, double* %20, i64 %91
%107 = bitcast double* %106 to <2 x double>*
%108 = load <2 x double>, <2 x double>* %107
%109 = getelementptr inbounds double, double* %106, i64 2
%110 = bitcast double* %109 to <2 x double>*
%111 = load <2 x double>, <2 x double>* %110
%112 = call <2 x double> @llvm.fmuladd.v2f64(<2 x double> %96, <2 x double> %102, <2 x double> %108)
%113 = call <2 x double> @llvm.fmuladd.v2f64(<2 x double> %99, <2 x double> %105, <2 x double> %111)
%114 = getelementptr inbounds double, double* %17, i64 %91
%115 = bitcast double* %114 to <2 x double>*
store <2 x double> %112, <2 x double>* %115
%116 = getelementptr inbounds double, double* %114, i64 2
%117 = bitcast double* %116 to <2 x double>*
store <2 x double> %113, <2 x double>* %117
br label %118
118: ; preds = %90, %93
%119 = icmp eq i64 %27, %24
br i1 %119, label %134, label %120
120: ; preds = %23, %118
%121 = phi i64 [ 0, %23 ], [ %27, %118 ]
br label %122
122: ; preds = %120, %122
%123 = phi i64 [ %132, %122 ], [ %121, %120 ]
%124 = getelementptr inbounds double, double* %18, i64 %123
%125 = load double, double* %124
%126 = getelementptr inbounds double, double* %19, i64 %123
%127 = load double, double* %126
%128 = getelementptr inbounds double, double* %20, i64 %123
%129 = load double, double* %128
%130 = tail call double @llvm.fmuladd.f64(double %125, double %127, double %129)
%131 = getelementptr inbounds double, double* %17, i64 %123
store double %130, double* %131
%132 = add nuw nsw i64 %123, 1
%133 = icmp eq i64 %132, %24
br i1 %133, label %134, label %122
134: ; preds = %122, %118, %12
%135 = call i32 @gettimeofday(%struct.timeval* %4, i32* null)
%136 = getelementptr inbounds %struct.timeval, %struct.timeval* %4, i64 0, i32 0
%137 = load i32, i32* %136
%138 = getelementptr inbounds %struct.timeval, %struct.timeval* %3, i64 0, i32 0
%139 = load i32, i32* %138
%140 = sub nsw i32 %137, %139
%141 = mul nsw i32 %140, 1000000
%142 = getelementptr inbounds %struct.timeval, %struct.timeval* %4, i64 0, i32 1
%143 = load i32, i32* %142
%144 = getelementptr inbounds %struct.timeval, %struct.timeval* %3, i64 0, i32 1
%145 = load i32, i32* %144
%146 = sub nsw i32 %143, %145
%147 = add nsw i32 %146, %141
%148 = sdiv i32 %15, %147
%149 = tail call i32 @printf(i8* getelementptr inbounds ([21 x i8], [21 x i8]* @.str.1, i64 0, i64 0), i32 %147, i32 %148)
ret i32 0
}