#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 {
  double tv_usec;
  scalar_t__ tv_sec;
};

/* Variables and functions */
int /*<<< orphan*/ dummy(double *, double *, double *, double *);
int /*<<< orphan*/ gettimeofday(struct timeval *, int /*<<< orphan*/ *);
double simulation(int N, int R) {
  int i, j;
  double A[N];
  double B[N];
  double C[N];
  double D[N];
  double elaps;
  for (i = 0; i < N; ++i) {
    A[i] = 0.00;
    B[i] = 1.00;
    C[i] = 2.00;
    D[i] = 3.00;
  }
  struct timeval tp;
  gettimeofday(&tp, NULL);
  elaps = -(double)(tp.tv_sec + tp.tv_usec / 1000000.0);
  for (j = 0; j < R; ++j) {
    for (i = 0; i < N; ++i)
      A[i] = B[i] + C[i] * D[i];
    if (A[2] < 0)
      dummy(A, B, C, D);
  }
  gettimeofday(&tp, NULL);
  return elaps + ((double)(tp.tv_sec + tp.tv_usec / 1000000.0));
}


x86 assembly (clang, -O0):
<simulation>:
push   %rbp
mov    %rsp,%rbp
sub    $0x70,%rsp
mov    %edi,-0x4(%rbp)
mov    %esi,-0x8(%rbp)
mov    -0x4(%rbp),%eax
mov    %rsp,%rcx
mov    %rcx,-0x18(%rbp)
lea    0xf(,%rax,8),%rdx
and    $0xfffffffffffffff0,%rdx
mov    %rsp,%rcx
sub    %rdx,%rcx
mov    %rcx,-0x70(%rbp)
mov    %rcx,%rsp
mov    %rax,-0x20(%rbp)
mov    -0x4(%rbp),%eax
lea    0xf(,%rax,8),%rdx
and    $0xfffffffffffffff0,%rdx
mov    %rsp,%rcx
sub    %rdx,%rcx
mov    %rcx,-0x68(%rbp)
mov    %rcx,%rsp
mov    %rax,-0x28(%rbp)
mov    -0x4(%rbp),%eax
lea    0xf(,%rax,8),%rdx
and    $0xfffffffffffffff0,%rdx
mov    %rsp,%rcx
sub    %rdx,%rcx
mov    %rcx,-0x60(%rbp)
mov    %rcx,%rsp
mov    %rax,-0x30(%rbp)
mov    -0x4(%rbp),%eax
lea    0xf(,%rax,8),%rdx
and    $0xfffffffffffffff0,%rdx
mov    %rsp,%rcx
sub    %rdx,%rcx
mov    %rcx,-0x58(%rbp)
mov    %rcx,%rsp
mov    %rax,-0x38(%rbp)
movl   $0x0,-0xc(%rbp)
mov    -0xc(%rbp),%eax
cmp    -0x4(%rbp),%eax
jge    1225 <simulation+0x105>
mov    -0x58(%rbp),%rax
mov    -0x60(%rbp),%rcx
mov    -0x68(%rbp),%rdx
mov    -0x70(%rbp),%rsi
movslq -0xc(%rbp),%rdi
xorps  %xmm0,%xmm0
movsd  %xmm0,(%rsi,%rdi,8)
movslq -0xc(%rbp),%rsi
movsd  0xe28(%rip),%xmm0
movsd  %xmm0,(%rdx,%rsi,8)
movslq -0xc(%rbp),%rdx
movsd  0xe0f(%rip),%xmm0
movsd  %xmm0,(%rcx,%rdx,8)
movslq -0xc(%rbp),%rcx
movsd  0xdf6(%rip),%xmm0
movsd  %xmm0,(%rax,%rcx,8)
mov    -0xc(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0xc(%rbp)
jmp    11bc <simulation+0x9c>
lea    -0x50(%rbp),%rdi
xor    %eax,%eax
mov    %eax,%esi
call   1040 <gettimeofday@plt>
cvtsi2sdq -0x48(%rbp),%xmm0
movsd  -0x50(%rbp),%xmm1
movsd  0xdbb(%rip),%xmm2
divsd  %xmm2,%xmm1
addsd  %xmm1,%xmm0
movq   %xmm0,%rax
movabs $0x8000000000000000,%rcx
xor    %rcx,%rax
movq   %rax,%xmm0
movsd  %xmm0,-0x40(%rbp)
movl   $0x0,-0x10(%rbp)
mov    -0x10(%rbp),%eax
cmp    -0x8(%rbp),%eax
jge    1313 <simulation+0x1f3>
movl   $0x0,-0xc(%rbp)
mov    -0xc(%rbp),%eax
cmp    -0x4(%rbp),%eax
jge    12d9 <simulation+0x1b9>
mov    -0x70(%rbp),%rax
mov    -0x58(%rbp),%rcx
mov    -0x60(%rbp),%rdx
mov    -0x68(%rbp),%rsi
movslq -0xc(%rbp),%rdi
movsd  (%rsi,%rdi,8),%xmm1
movslq -0xc(%rbp),%rsi
movsd  (%rdx,%rsi,8),%xmm0
movslq -0xc(%rbp),%rdx
movsd  (%rcx,%rdx,8),%xmm2
mulsd  %xmm2,%xmm0
addsd  %xmm1,%xmm0
movslq -0xc(%rbp),%rcx
movsd  %xmm0,(%rax,%rcx,8)
mov    -0xc(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0xc(%rbp)
jmp    1283 <simulation+0x163>
mov    -0x70(%rbp),%rax
xorps  %xmm0,%xmm0
ucomisd 0x10(%rax),%xmm0
jbe    1300 <simulation+0x1e0>
mov    -0x58(%rbp),%rcx
mov    -0x60(%rbp),%rdx
mov    -0x68(%rbp),%rsi
mov    -0x70(%rbp),%rdi
call   1030 <dummy@plt>
jmp    1305 <simulation+0x1e5>
mov    -0x10(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0x10(%rbp)
jmp    1270 <simulation+0x150>
lea    -0x50(%rbp),%rdi
xor    %eax,%eax
mov    %eax,%esi
call   1040 <gettimeofday@plt>
movsd  -0x40(%rbp),%xmm0
cvtsi2sdq -0x48(%rbp),%xmm1
movsd  -0x50(%rbp),%xmm2
movsd  0xcc8(%rip),%xmm3
divsd  %xmm3,%xmm2
addsd  %xmm2,%xmm1
addsd  %xmm1,%xmm0
mov    -0x18(%rbp),%rax
mov    %rax,%rsp
mov    %rbp,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<simulation>:
push   %rbp
mov    %rsp,%rbp
push   %r15
push   %r14
push   %r13
push   %r12
push   %rbx
sub    $0x68,%rsp
mov    %esi,-0x3c(%rbp)
mov    %edi,%esi
mov    %rsp,%r12
lea    0xf(,%rsi,8),%rax
and    $0xfffffffffffffff0,%rax
sub    %rax,%r12
mov    %r12,%rsp
mov    %rsp,%r13
sub    %rax,%r13
mov    %r13,%rsp
mov    %rsp,%rbx
sub    %rax,%rbx
mov    %rbx,%rsp
mov    %rsp,%r14
sub    %rax,%r14
mov    %r14,%rsp
mov    %edi,-0x2c(%rbp)
test   %edi,%edi
mov    %rsi,-0x38(%rbp)
jle    12c6 <simulation+0x196>
lea    0x0(,%rsi,8),%rdx
xor    %r15d,%r15d
mov    %r12,%rdi
xor    %esi,%esi
call   1050 <memset@plt>
cmpl   $0x4,-0x2c(%rbp)
jae    11a9 <simulation+0x79>
mov    -0x38(%rbp),%rsi
jmp    1283 <simulation+0x153>
mov    -0x38(%rbp),%rsi
mov    %esi,%r15d
and    $0xfffffffc,%r15d
lea    -0x4(%r15),%rax
mov    %rax,%rcx
shr    $0x2,%rcx
add    $0x1,%rcx
test   %rax,%rax
je     14ea <simulation+0x3ba>
mov    %rcx,%rdx
and    $0xfffffffffffffffe,%rdx
xor    %eax,%eax
movaps 0xe24(%rip),%xmm0
movapd 0xe2c(%rip),%xmm1
movapd 0xe34(%rip),%xmm2
nopl   0x0(%rax)
movaps %xmm0,0x0(%r13,%rax,8)
movaps %xmm0,0x10(%r13,%rax,8)
movapd %xmm1,(%rbx,%rax,8)
movapd %xmm1,0x10(%rbx,%rax,8)
movapd %xmm2,(%r14,%rax,8)
movapd %xmm2,0x10(%r14,%rax,8)
movaps %xmm0,0x20(%r13,%rax,8)
movaps %xmm0,0x30(%r13,%rax,8)
movapd %xmm1,0x20(%rbx,%rax,8)
movapd %xmm1,0x30(%rbx,%rax,8)
movapd %xmm2,0x20(%r14,%rax,8)
movapd %xmm2,0x30(%r14,%rax,8)
add    $0x8,%rax
add    $0xfffffffffffffffe,%rdx
jne    11f0 <simulation+0xc0>
test   $0x1,%cl
je     127e <simulation+0x14e>
movaps 0xdb0(%rip),%xmm0
movaps %xmm0,0x0(%r13,%rax,8)
movaps %xmm0,0x10(%r13,%rax,8)
movaps 0xdad(%rip),%xmm0
movaps %xmm0,(%rbx,%rax,8)
movaps %xmm0,0x10(%rbx,%rax,8)
movaps 0xdad(%rip),%xmm0
movaps %xmm0,(%r14,%rax,8)
movaps %xmm0,0x10(%r14,%rax,8)
cmp    %rsi,%r15
je     12c6 <simulation+0x196>
movabs $0x3ff0000000000000,%rax
movabs $0x4000000000000000,%rcx
movabs $0x4008000000000000,%rdx
cs nopw 0x0(%rax,%rax,1)
nopl   0x0(%rax,%rax,1)
mov    %rax,0x0(%r13,%r15,8)
mov    %rcx,(%rbx,%r15,8)
mov    %rdx,(%r14,%r15,8)
add    $0x1,%r15
cmp    %r15,%rsi
jne    12b0 <simulation+0x180>
lea    -0x50(%rbp),%rdi
xor    %esi,%esi
call   1040 <gettimeofday@plt>
xor    %edi,%edi
mov    -0x38(%rbp),%rsi
mov    -0x48(%rbp),%rax
mov    %rax,-0x58(%rbp)
movsd  -0x50(%rbp),%xmm0
movapd %xmm0,-0x90(%rbp)
ff
mov    -0x3c(%rbp),%r15d
test   %r15d,%r15d
mov    -0x2c(%rbp),%edx
jle    1495 <simulation+0x365>
mov    %esi,%eax
and    $0xfffffffc,%eax
mov    %rax,-0x78(%rbp)
add    $0xfffffffffffffffc,%rax
mov    %rax,-0x70(%rbp)
mov    %rax,%rcx
shr    $0x2,%rcx
add    $0x1,%rcx
mov    %rcx,%rax
mov    %rcx,-0x68(%rbp)
and    $0xfffffffffffffffe,%rcx
mov    %rcx,-0x60(%rbp)
xorpd  %xmm2,%xmm2
jmp    133c <simulation+0x20c>
nopl   (%rax)
add    $0x1,%edi
cmp    %r15d,%edi
je     1495 <simulation+0x365>
test   %edx,%edx
jle    1451 <simulation+0x321>
cmp    $0x4,%edx
jae    1350 <simulation+0x220>
xor    %eax,%eax
jmp    1430 <simulation+0x300>
cmpq   $0x0,-0x70(%rbp)
je     1487 <simulation+0x357>
mov    -0x60(%rbp),%rcx
xor    %eax,%eax
cs nopw 0x0(%rax,%rax,1)
nopl   0x0(%rax,%rax,1)
movapd (%rbx,%rax,8),%xmm0
movapd 0x10(%rbx,%rax,8),%xmm1
mulpd  (%r14,%rax,8),%xmm0
addpd  0x0(%r13,%rax,8),%xmm0
mulpd  0x10(%r14,%rax,8),%xmm1
addpd  0x10(%r13,%rax,8),%xmm1
movapd %xmm0,(%r12,%rax,8)
movapd %xmm1,0x10(%r12,%rax,8)
movapd 0x20(%rbx,%rax,8),%xmm0
movapd 0x30(%rbx,%rax,8),%xmm1
mulpd  0x20(%r14,%rax,8),%xmm0
addpd  0x20(%r13,%rax,8),%xmm0
mulpd  0x30(%r14,%rax,8),%xmm1
addpd  0x30(%r13,%rax,8),%xmm1
movapd %xmm0,0x20(%r12,%rax,8)
movapd %xmm1,0x30(%r12,%rax,8)
add    $0x8,%rax
add    $0xfffffffffffffffe,%rcx
jne    1370 <simulation+0x240>
testb  $0x1,-0x68(%rbp)
je     141c <simulation+0x2ec>
movapd (%rbx,%rax,8),%xmm0
movapd 0x10(%rbx,%rax,8),%xmm1
mulpd  (%r14,%rax,8),%xmm0
addpd  0x0(%r13,%rax,8),%xmm0
mulpd  0x10(%r14,%rax,8),%xmm1
addpd  0x10(%r13,%rax,8),%xmm1
movapd %xmm0,(%r12,%rax,8)
movapd %xmm1,0x10(%r12,%rax,8)
mov    -0x78(%rbp),%rcx
mov    %rcx,%rax
cmp    %rsi,%rcx
je     1451 <simulation+0x321>
nopl   0x0(%rax,%rax,1)
movsd  (%rbx,%rax,8),%xmm0
mulsd  (%r14,%rax,8),%xmm0
addsd  0x0(%r13,%rax,8),%xmm0
movsd  %xmm0,(%r12,%rax,8)
add    $0x1,%rax
cmp    %rax,%rsi
jne    1430 <simulation+0x300>
ucomisd 0x10(%r12),%xmm2
jbe    1330 <simulation+0x200>
mov    %rdi,-0x80(%rbp)
mov    %r12,%rdi
mov    %r13,%rsi
mov    %rbx,%rdx
mov    %r14,%rcx
call   1030 <dummy@plt>
xorpd  %xmm2,%xmm2
mov    -0x80(%rbp),%rdi
mov    -0x38(%rbp),%rsi
mov    -0x2c(%rbp),%edx
jmp    1330 <simulation+0x200>
xor    %eax,%eax
testb  $0x1,-0x68(%rbp)
jne    13e9 <simulation+0x2b9>
jmp    141c <simulation+0x2ec>
lea    -0x50(%rbp),%rdi
xor    %esi,%esi
call   1040 <gettimeofday@plt>
xorps  %xmm1,%xmm1
cvtsi2sdq -0x58(%rbp),%xmm1
movsd  -0x50(%rbp),%xmm0
unpcklpd -0x90(%rbp),%xmm0
ff
xorps  %xmm2,%xmm2
cvtsi2sdq -0x48(%rbp),%xmm2
divpd  0xb69(%rip),%xmm0
unpcklpd %xmm1,%xmm2
addpd  %xmm2,%xmm0
movapd %xmm0,%xmm1
unpckhpd %xmm0,%xmm1
subsd  %xmm1,%xmm0
lea    -0x28(%rbp),%rsp
pop    %rbx
pop    %r12
pop    %r13
pop    %r14
pop    %r15
pop    %rbp
ret
xor    %eax,%eax
test   $0x1,%cl
jne    1249 <simulation+0x119>
jmp    127e <simulation+0x14e>

LLVM IR (-O0):
%struct.timeval = type { double, i64 }
define double @simulation(i32 %0, i32 %1) {
%3 = alloca i32
%4 = alloca i32
%5 = alloca i32
%6 = alloca i32
%7 = alloca i8*
%8 = alloca i64
%9 = alloca i64
%10 = alloca i64
%11 = alloca i64
%12 = alloca double
%13 = alloca %struct.timeval
store i32 %0, i32* %3
store i32 %1, i32* %4
%14 = load i32, i32* %3
%15 = zext i32 %14 to i64
%16 = call i8* @llvm.stacksave()
store i8* %16, i8** %7
%17 = alloca double, i64 %15
store i64 %15, i64* %8
%18 = load i32, i32* %3
%19 = zext i32 %18 to i64
%20 = alloca double, i64 %19
store i64 %19, i64* %9
%21 = load i32, i32* %3
%22 = zext i32 %21 to i64
%23 = alloca double, i64 %22
store i64 %22, i64* %10
%24 = load i32, i32* %3
%25 = zext i32 %24 to i64
%26 = alloca double, i64 %25
store i64 %25, i64* %11
store i32 0, i32* %5
br label %27
27: ; preds = %44, %2
%28 = load i32, i32* %5
%29 = load i32, i32* %3
%30 = icmp slt i32 %28, %29
br i1 %30, label %31, label %47
31: ; preds = %27
%32 = load i32, i32* %5
%33 = sext i32 %32 to i64
%34 = getelementptr inbounds double, double* %17, i64 %33
store double 0.000000e+00, double* %34
%35 = load i32, i32* %5
%36 = sext i32 %35 to i64
%37 = getelementptr inbounds double, double* %20, i64 %36
store double 1.000000e+00, double* %37
%38 = load i32, i32* %5
%39 = sext i32 %38 to i64
%40 = getelementptr inbounds double, double* %23, i64 %39
store double 2.000000e+00, double* %40
%41 = load i32, i32* %5
%42 = sext i32 %41 to i64
%43 = getelementptr inbounds double, double* %26, i64 %42
store double 3.000000e+00, double* %43
br label %44
44: ; preds = %31
%45 = load i32, i32* %5
%46 = add nsw i32 %45, 1
store i32 %46, i32* %5
br label %27
47: ; preds = %27
%48 = call i32 @gettimeofday(%struct.timeval* %13, i32* null)
%49 = getelementptr inbounds %struct.timeval, %struct.timeval* %13, i32 0, i32 1
%50 = load i64, i64* %49
%51 = sitofp i64 %50 to double
%52 = getelementptr inbounds %struct.timeval, %struct.timeval* %13, i32 0, i32 0
%53 = load double, double* %52
%54 = fdiv double %53, 1.000000e+06
%55 = fadd double %51, %54
%56 = fneg double %55
store double %56, double* %12
store i32 0, i32* %6
br label %57
57: ; preds = %93, %47
%58 = load i32, i32* %6
%59 = load i32, i32* %4
%60 = icmp slt i32 %58, %59
br i1 %60, label %61, label %96
61: ; preds = %57
store i32 0, i32* %5
br label %62
62: ; preds = %83, %61
%63 = load i32, i32* %5
%64 = load i32, i32* %3
%65 = icmp slt i32 %63, %64
br i1 %65, label %66, label %86
66: ; preds = %62
%67 = load i32, i32* %5
%68 = sext i32 %67 to i64
%69 = getelementptr inbounds double, double* %20, i64 %68
%70 = load double, double* %69
%71 = load i32, i32* %5
%72 = sext i32 %71 to i64
%73 = getelementptr inbounds double, double* %23, i64 %72
%74 = load double, double* %73
%75 = load i32, i32* %5
%76 = sext i32 %75 to i64
%77 = getelementptr inbounds double, double* %26, i64 %76
%78 = load double, double* %77
%79 = call double @llvm.fmuladd.f64(double %74, double %78, double %70)
%80 = load i32, i32* %5
%81 = sext i32 %80 to i64
%82 = getelementptr inbounds double, double* %17, i64 %81
store double %79, double* %82
br label %83
83: ; preds = %66
%84 = load i32, i32* %5
%85 = add nsw i32 %84, 1
store i32 %85, i32* %5
br label %62
86: ; preds = %62
%87 = getelementptr inbounds double, double* %17, i64 2
%88 = load double, double* %87
%89 = fcmp olt double %88, 0.000000e+00
br i1 %89, label %90, label %92
90: ; preds = %86
%91 = call i32 @dummy(double* %17, double* %20, double* %23, double* %26)
br label %92
92: ; preds = %90, %86
br label %93
93: ; preds = %92
%94 = load i32, i32* %6
%95 = add nsw i32 %94, 1
store i32 %95, i32* %6
br label %57
96: ; preds = %57
%97 = call i32 @gettimeofday(%struct.timeval* %13, i32* null)
%98 = load double, double* %12
%99 = getelementptr inbounds %struct.timeval, %struct.timeval* %13, i32 0, i32 1
%100 = load i64, i64* %99
%101 = sitofp i64 %100 to double
%102 = getelementptr inbounds %struct.timeval, %struct.timeval* %13, i32 0, i32 0
%103 = load double, double* %102
%104 = fdiv double %103, 1.000000e+06
%105 = fadd double %101, %104
%106 = fadd double %98, %105
%107 = load i8*, i8** %7
ret double %106
}

LLVM IR (-O2):
%struct.timeval = type { double, i64 }
define double @simulation(i32 %0, i32 %1) {
%3 = alloca %struct.timeval
%4 = zext i32 %0 to i64
%5 = alloca double, i64 %4
%6 = alloca double, i64 %4
%7 = alloca double, i64 %4
%8 = alloca double, i64 %4
%9 = icmp sgt i32 %0, 0
br i1 %9, label %10, label %81
10: ; preds = %2
%11 = bitcast double* %5 to i8*
%12 = shl nuw nsw i64 %4, 3
%13 = icmp ult i32 %0, 4
br i1 %13, label %72, label %14
14: ; preds = %10
%15 = and i64 %4, 4294967292
%16 = add nsw i64 %15, -4
%17 = lshr exact i64 %16, 2
%18 = add nuw nsw i64 %17, 1
%19 = and i64 %18, 1
%20 = icmp eq i64 %16, 0
br i1 %20, label %54, label %21
21: ; preds = %14
%22 = and i64 %18, 9223372036854775806
br label %23
23: ; preds = %23, %21
%24 = phi i64 [ 0, %21 ], [ %51, %23 ]
%25 = phi i64 [ 0, %21 ], [ %52, %23 ]
%26 = getelementptr inbounds double, double* %6, i64 %24
%27 = bitcast double* %26 to <2 x double>*
store <2 x double> <double 1.000000e+00, double 1.000000e+00>, <2 x double>* %27
%28 = getelementptr inbounds double, double* %26, i64 2
%29 = bitcast double* %28 to <2 x double>*
store <2 x double> <double 1.000000e+00, double 1.000000e+00>, <2 x double>* %29
%30 = getelementptr inbounds double, double* %7, i64 %24
%31 = bitcast double* %30 to <2 x double>*
store <2 x double> <double 2.000000e+00, double 2.000000e+00>, <2 x double>* %31
%32 = getelementptr inbounds double, double* %30, i64 2
%33 = bitcast double* %32 to <2 x double>*
store <2 x double> <double 2.000000e+00, double 2.000000e+00>, <2 x double>* %33
%34 = getelementptr inbounds double, double* %8, i64 %24
%35 = bitcast double* %34 to <2 x double>*
store <2 x double> <double 3.000000e+00, double 3.000000e+00>, <2 x double>* %35
%36 = getelementptr inbounds double, double* %34, i64 2
%37 = bitcast double* %36 to <2 x double>*
store <2 x double> <double 3.000000e+00, double 3.000000e+00>, <2 x double>* %37
%38 = or i64 %24, 4
%39 = getelementptr inbounds double, double* %6, i64 %38
%40 = bitcast double* %39 to <2 x double>*
store <2 x double> <double 1.000000e+00, double 1.000000e+00>, <2 x double>* %40
%41 = getelementptr inbounds double, double* %39, i64 2
%42 = bitcast double* %41 to <2 x double>*
store <2 x double> <double 1.000000e+00, double 1.000000e+00>, <2 x double>* %42
%43 = getelementptr inbounds double, double* %7, i64 %38
%44 = bitcast double* %43 to <2 x double>*
store <2 x double> <double 2.000000e+00, double 2.000000e+00>, <2 x double>* %44
%45 = getelementptr inbounds double, double* %43, i64 2
%46 = bitcast double* %45 to <2 x double>*
store <2 x double> <double 2.000000e+00, double 2.000000e+00>, <2 x double>* %46
%47 = getelementptr inbounds double, double* %8, i64 %38
%48 = bitcast double* %47 to <2 x double>*
store <2 x double> <double 3.000000e+00, double 3.000000e+00>, <2 x double>* %48
%49 = getelementptr inbounds double, double* %47, i64 2
%50 = bitcast double* %49 to <2 x double>*
store <2 x double> <double 3.000000e+00, double 3.000000e+00>, <2 x double>* %50
%51 = add nuw i64 %24, 8
%52 = add i64 %25, 2
%53 = icmp eq i64 %52, %22
br i1 %53, label %54, label %23
54: ; preds = %23, %14
%55 = phi i64 [ 0, %14 ], [ %51, %23 ]
%56 = icmp eq i64 %19, 0
br i1 %56, label %70, label %57
57: ; preds = %54
%58 = getelementptr inbounds double, double* %6, i64 %55
%59 = bitcast double* %58 to <2 x double>*
store <2 x double> <double 1.000000e+00, double 1.000000e+00>, <2 x double>* %59
%60 = getelementptr inbounds double, double* %58, i64 2
%61 = bitcast double* %60 to <2 x double>*
store <2 x double> <double 1.000000e+00, double 1.000000e+00>, <2 x double>* %61
%62 = getelementptr inbounds double, double* %7, i64 %55
%63 = bitcast double* %62 to <2 x double>*
store <2 x double> <double 2.000000e+00, double 2.000000e+00>, <2 x double>* %63
%64 = getelementptr inbounds double, double* %62, i64 2
%65 = bitcast double* %64 to <2 x double>*
store <2 x double> <double 2.000000e+00, double 2.000000e+00>, <2 x double>* %65
%66 = getelementptr inbounds double, double* %8, i64 %55
%67 = bitcast double* %66 to <2 x double>*
store <2 x double> <double 3.000000e+00, double 3.000000e+00>, <2 x double>* %67
%68 = getelementptr inbounds double, double* %66, i64 2
%69 = bitcast double* %68 to <2 x double>*
store <2 x double> <double 3.000000e+00, double 3.000000e+00>, <2 x double>* %69
br label %70
70: ; preds = %54, %57
%71 = icmp eq i64 %15, %4
br i1 %71, label %81, label %72
72: ; preds = %10, %70
%73 = phi i64 [ 0, %10 ], [ %15, %70 ]
br label %74
74: ; preds = %72, %74
%75 = phi i64 [ %79, %74 ], [ %73, %72 ]
%76 = getelementptr inbounds double, double* %6, i64 %75
store double 1.000000e+00, double* %76
%77 = getelementptr inbounds double, double* %7, i64 %75
store double 2.000000e+00, double* %77
%78 = getelementptr inbounds double, double* %8, i64 %75
store double 3.000000e+00, double* %78
%79 = add nuw nsw i64 %75, 1
%80 = icmp eq i64 %79, %4
br i1 %80, label %81, label %74
81: ; preds = %74, %70, %2
%82 = bitcast %struct.timeval* %3 to i8*
%83 = call i32 @gettimeofday(%struct.timeval* %3, i32* null)
%84 = getelementptr inbounds %struct.timeval, %struct.timeval* %3, i64 0, i32 1
%85 = load i64, i64* %84
%86 = getelementptr inbounds %struct.timeval, %struct.timeval* %3, i64 0, i32 0
%87 = load double, double* %86
%88 = icmp sgt i32 %1, 0
br i1 %88, label %89, label %211
89: ; preds = %81
%90 = getelementptr inbounds double, double* %5, i64 2
%91 = and i64 %4, 4294967292
%92 = add nsw i64 %91, -4
%93 = lshr exact i64 %92, 2
%94 = add nuw nsw i64 %93, 1
%95 = icmp ult i32 %0, 4
%96 = and i64 %4, 4294967292
%97 = and i64 %94, 1
%98 = icmp eq i64 %92, 0
%99 = and i64 %94, 9223372036854775806
%100 = icmp eq i64 %97, 0
%101 = icmp eq i64 %96, %4
br label %102
102: ; preds = %89, %208
%103 = phi i32 [ 0, %89 ], [ %209, %208 ]
br i1 %9, label %104, label %203
104: ; preds = %102
br i1 %95, label %189, label %105
105: ; preds = %104
br i1 %98, label %161, label %106
106: ; preds = %105, %106
%107 = phi i64 [ %158, %106 ], [ 0, %105 ]
%108 = phi i64 [ %159, %106 ], [ 0, %105 ]
%109 = getelementptr inbounds double, double* %6, i64 %107
%110 = bitcast double* %109 to <2 x double>*
%111 = load <2 x double>, <2 x double>* %110
%112 = getelementptr inbounds double, double* %109, i64 2
%113 = bitcast double* %112 to <2 x double>*
%114 = load <2 x double>, <2 x double>* %113
%115 = getelementptr inbounds double, double* %7, i64 %107
%116 = bitcast double* %115 to <2 x double>*
%117 = load <2 x double>, <2 x double>* %116
%118 = getelementptr inbounds double, double* %115, i64 2
%119 = bitcast double* %118 to <2 x double>*
%120 = load <2 x double>, <2 x double>* %119
%121 = getelementptr inbounds double, double* %8, i64 %107
%122 = bitcast double* %121 to <2 x double>*
%123 = load <2 x double>, <2 x double>* %122
%124 = getelementptr inbounds double, double* %121, i64 2
%125 = bitcast double* %124 to <2 x double>*
%126 = load <2 x double>, <2 x double>* %125
%127 = call <2 x double> @llvm.fmuladd.v2f64(<2 x double> %117, <2 x double> %123, <2 x double> %111)
%128 = call <2 x double> @llvm.fmuladd.v2f64(<2 x double> %120, <2 x double> %126, <2 x double> %114)
%129 = getelementptr inbounds double, double* %5, i64 %107
%130 = bitcast double* %129 to <2 x double>*
store <2 x double> %127, <2 x double>* %130
%131 = getelementptr inbounds double, double* %129, i64 2
%132 = bitcast double* %131 to <2 x double>*
store <2 x double> %128, <2 x double>* %132
%133 = or i64 %107, 4
%134 = getelementptr inbounds double, double* %6, i64 %133
%135 = bitcast double* %134 to <2 x double>*
%136 = load <2 x double>, <2 x double>* %135
%137 = getelementptr inbounds double, double* %134, i64 2
%138 = bitcast double* %137 to <2 x double>*
%139 = load <2 x double>, <2 x double>* %138
%140 = getelementptr inbounds double, double* %7, i64 %133
%141 = bitcast double* %140 to <2 x double>*
%142 = load <2 x double>, <2 x double>* %141
%143 = getelementptr inbounds double, double* %140, i64 2
%144 = bitcast double* %143 to <2 x double>*
%145 = load <2 x double>, <2 x double>* %144
%146 = getelementptr inbounds double, double* %8, i64 %133
%147 = bitcast double* %146 to <2 x double>*
%148 = load <2 x double>, <2 x double>* %147
%149 = getelementptr inbounds double, double* %146, i64 2
%150 = bitcast double* %149 to <2 x double>*
%151 = load <2 x double>, <2 x double>* %150
%152 = call <2 x double> @llvm.fmuladd.v2f64(<2 x double> %142, <2 x double> %148, <2 x double> %136)
%153 = call <2 x double> @llvm.fmuladd.v2f64(<2 x double> %145, <2 x double> %151, <2 x double> %139)
%154 = getelementptr inbounds double, double* %5, i64 %133
%155 = bitcast double* %154 to <2 x double>*
store <2 x double> %152, <2 x double>* %155
%156 = getelementptr inbounds double, double* %154, i64 2
%157 = bitcast double* %156 to <2 x double>*
store <2 x double> %153, <2 x double>* %157
%158 = add nuw i64 %107, 8
%159 = add i64 %108, 2
%160 = icmp eq i64 %159, %99
br i1 %160, label %161, label %106
161: ; preds = %106, %105
%162 = phi i64 [ 0, %105 ], [ %158, %106 ]
br i1 %100, label %188, label %163
163: ; preds = %161
%164 = getelementptr inbounds double, double* %6, i64 %162
%165 = bitcast double* %164 to <2 x double>*
%166 = load <2 x double>, <2 x double>* %165
%167 = getelementptr inbounds double, double* %164, i64 2
%168 = bitcast double* %167 to <2 x double>*
%169 = load <2 x double>, <2 x double>* %168
%170 = getelementptr inbounds double, double* %7, i64 %162
%171 = bitcast double* %170 to <2 x double>*
%172 = load <2 x double>, <2 x double>* %171
%173 = getelementptr inbounds double, double* %170, i64 2
%174 = bitcast double* %173 to <2 x double>*
%175 = load <2 x double>, <2 x double>* %174
%176 = getelementptr inbounds double, double* %8, i64 %162
%177 = bitcast double* %176 to <2 x double>*
%178 = load <2 x double>, <2 x double>* %177
%179 = getelementptr inbounds double, double* %176, i64 2
%180 = bitcast double* %179 to <2 x double>*
%181 = load <2 x double>, <2 x double>* %180
%182 = call <2 x double> @llvm.fmuladd.v2f64(<2 x double> %172, <2 x double> %178, <2 x double> %166)
%183 = call <2 x double> @llvm.fmuladd.v2f64(<2 x double> %175, <2 x double> %181, <2 x double> %169)
%184 = getelementptr inbounds double, double* %5, i64 %162
%185 = bitcast double* %184 to <2 x double>*
store <2 x double> %182, <2 x double>* %185
%186 = getelementptr inbounds double, double* %184, i64 2
%187 = bitcast double* %186 to <2 x double>*
store <2 x double> %183, <2 x double>* %187
br label %188
188: ; preds = %161, %163
br i1 %101, label %203, label %189
189: ; preds = %104, %188
%190 = phi i64 [ 0, %104 ], [ %96, %188 ]
br label %191
191: ; preds = %189, %191
%192 = phi i64 [ %201, %191 ], [ %190, %189 ]
%193 = getelementptr inbounds double, double* %6, i64 %192
%194 = load double, double* %193
%195 = getelementptr inbounds double, double* %7, i64 %192
%196 = load double, double* %195
%197 = getelementptr inbounds double, double* %8, i64 %192
%198 = load double, double* %197
%199 = call double @llvm.fmuladd.f64(double %196, double %198, double %194)
%200 = getelementptr inbounds double, double* %5, i64 %192
store double %199, double* %200
%201 = add nuw nsw i64 %192, 1
%202 = icmp eq i64 %201, %4
br i1 %202, label %203, label %191
203: ; preds = %191, %188, %102
%204 = load double, double* %90
%205 = fcmp olt double %204, 0.000000e+00
br i1 %205, label %206, label %208
206: ; preds = %203
%207 = call i32 @dummy(double* %5, double* %6, double* %7, double* %8)
br label %208
208: ; preds = %203, %206
%209 = add nuw nsw i32 %103, 1
%210 = icmp eq i32 %209, %1
br i1 %210, label %211, label %102
211: ; preds = %208, %81
%212 = call i32 @gettimeofday(%struct.timeval* %3, i32* null)
%213 = load i64, i64* %84
%214 = insertelement <2 x i64> poison, i64 %85, i64 1
%215 = insertelement <2 x i64> %214, i64 %213, i64 0
%216 = sitofp <2 x i64> %215 to <2 x double>
%217 = load double, double* %86
%218 = insertelement <2 x double> poison, double %87, i64 1
%219 = insertelement <2 x double> %218, double %217, i64 0
%220 = fdiv <2 x double> %219, <double 1.000000e+06, double 1.000000e+06>
%221 = fadd <2 x double> %220, %216
%222 = shufflevector <2 x double> %221, <2 x double> poison, <2 x i32> <i32 1, i32 undef>
%223 = fsub <2 x double> %221, %222
%224 = extractelement <2 x double> %223, i64 0
ret double %224
}