#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 */

/* Variables and functions */
int /*<<< orphan*/ g5_calculate_force_on_x(double **, double **, double *, int);
int /*<<< orphan*/ g5_set_eps_to_all(double);
int /*<<< orphan*/ g5_set_n(int);
int /*<<< orphan*/ g5_set_xmj(int /*<<< orphan*/, int, double **, double *);
double get_dtime();
int /*<<< orphan*/ printf(char *, double);
void calc_gravity(double *mj, double (*xj)[3], double (*vj)[3], double eps,
                  double (*a)[3], double *p, int nj) {
  double epsinv;
  int i;
  double cycle;
  g5_set_xmj(0, nj, xj, mj);
  g5_set_eps_to_all(eps);
  g5_set_n(nj);
  double st1 = get_dtime();
  g5_calculate_force_on_x(xj, a, p, nj);
  double st2 = get_dtime();
  cycle = (double)(st2 - st1) * 3.8 * 1e9 / ((double)nj * (double)nj / 4);
  printf("gravity %f cycle per loop\n", cycle);
  for (i = 0; i < nj; i++) {
    p[i] = -p[i];
  }
  if (eps != 0.0) {
    epsinv = 1.0 / eps;
    for (i = 0; i < nj; i++) {
      p[i] = p[i] + mj[i] * epsinv;
    }
  }
}


x86 assembly (clang, -O0):
<calc_gravity>:
push   %rbp
mov    %rsp,%rbp
sub    $0x60,%rsp
mov    %rdi,-0x8(%rbp)
mov    %rsi,-0x10(%rbp)
mov    %rdx,-0x18(%rbp)
movsd  %xmm0,-0x20(%rbp)
mov    %rcx,-0x28(%rbp)
mov    %r8,-0x30(%rbp)
mov    %r9d,-0x34(%rbp)
mov    -0x34(%rbp),%esi
mov    -0x10(%rbp),%rdx
mov    -0x8(%rbp),%rcx
xor    %edi,%edi
call   1040 <g5_set_xmj@plt>
movsd  -0x20(%rbp),%xmm0
call   1060 <g5_set_eps_to_all@plt>
mov    -0x34(%rbp),%edi
call   1070 <g5_set_n@plt>
mov    $0x0,%al
call   1030 <get_dtime@plt>
movsd  %xmm0,-0x58(%rbp)
mov    -0x10(%rbp),%rdi
mov    -0x28(%rbp),%rsi
mov    -0x30(%rbp),%rdx
mov    -0x34(%rbp),%ecx
call   1080 <g5_calculate_force_on_x@plt>
mov    $0x0,%al
call   1030 <get_dtime@plt>
movsd  %xmm0,-0x60(%rbp)
movsd  -0x60(%rbp),%xmm0
subsd  -0x58(%rbp),%xmm0
movsd  0xe29(%rip),%xmm1
mulsd  %xmm1,%xmm0
movsd  0xe15(%rip),%xmm1
mulsd  %xmm1,%xmm0
cvtsi2sdl -0x34(%rbp),%xmm1
cvtsi2sdl -0x34(%rbp),%xmm2
mulsd  %xmm2,%xmm1
movsd  0xdf3(%rip),%xmm2
divsd  %xmm2,%xmm1
divsd  %xmm1,%xmm0
movsd  %xmm0,-0x50(%rbp)
movsd  -0x50(%rbp),%xmm0
lea    0xdfa(%rip),%rdi
call   1050 <printf@plt>
movl   $0x0,-0x44(%rbp)
mov    -0x44(%rbp),%eax
cmp    -0x34(%rbp),%eax
jge    127d <calc_gravity+0x11d>
mov    -0x30(%rbp),%rax
movslq -0x44(%rbp),%rcx
movsd  (%rax,%rcx,8),%xmm0
movq   %xmm0,%rax
movabs $0x8000000000000000,%rcx
xor    %rcx,%rax
movq   %rax,%xmm0
mov    -0x30(%rbp),%rax
movslq -0x44(%rbp),%rcx
movsd  %xmm0,(%rax,%rcx,8)
mov    -0x44(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0x44(%rbp)
jmp    1232 <calc_gravity+0xd2>
movsd  -0x20(%rbp),%xmm0
xorps  %xmm1,%xmm1
ucomisd %xmm1,%xmm0
jne    129a <calc_gravity+0x13a>
jp     129a <calc_gravity+0x13a>
jmp    1306 <calc_gravity+0x1a6>
movsd  0xd76(%rip),%xmm0
divsd  -0x20(%rbp),%xmm0
movsd  %xmm0,-0x40(%rbp)
movl   $0x0,-0x44(%rbp)
mov    -0x44(%rbp),%eax
cmp    -0x34(%rbp),%eax
jge    1301 <calc_gravity+0x1a1>
mov    -0x30(%rbp),%rax
movslq -0x44(%rbp),%rcx
movsd  (%rax,%rcx,8),%xmm1
mov    -0x8(%rbp),%rax
movslq -0x44(%rbp),%rcx
movsd  (%rax,%rcx,8),%xmm0
movsd  -0x40(%rbp),%xmm2
mulsd  %xmm2,%xmm0
addsd  %xmm1,%xmm0
mov    -0x30(%rbp),%rax
movslq -0x44(%rbp),%rcx
movsd  %xmm0,(%rax,%rcx,8)
mov    -0x44(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0x44(%rbp)
jmp    12b3 <calc_gravity+0x153>
jmp    1306 <calc_gravity+0x1a6>
add    $0x60,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<calc_gravity>:
push   %rbp
push   %r15
push   %r14
push   %r12
push   %rbx
sub    $0x10,%rsp
mov    %r9d,%r12d
mov    %r8,%rbx
mov    %rcx,%r15
movsd  %xmm0,(%rsp)
mov    %rsi,%rbp
mov    %rdi,%r14
xor    %edi,%edi
mov    %r9d,%esi
mov    %rbp,%rdx
mov    %r14,%rcx
call   1040 <g5_set_xmj@plt>
movsd  (%rsp),%xmm0
call   1060 <g5_set_eps_to_all@plt>
mov    %r12d,%edi
call   1070 <g5_set_n@plt>
xor    %eax,%eax
call   1030 <get_dtime@plt>
movsd  %xmm0,0x8(%rsp)
mov    %rbp,%rdi
mov    %r15,%rsi
mov    %rbx,%rdx
mov    %r12d,%ecx
call   1080 <g5_calculate_force_on_x@plt>
xor    %eax,%eax
call   1030 <get_dtime@plt>
subsd  0x8(%rsp),%xmm0
cvtsi2sd %r12d,%xmm1
unpcklpd %xmm1,%xmm0
movapd 0xe22(%rip),%xmm2
unpcklpd %xmm1,%xmm2
mulpd  %xmm2,%xmm0
mulpd  0xe22(%rip),%xmm0
movapd %xmm0,%xmm1
unpckhpd %xmm0,%xmm1
divsd  %xmm1,%xmm0
lea    0xe37(%rip),%rdi
call   1050 <printf@plt>
test   %r12d,%r12d
jle    14a5 <calc_gravity+0x345>
mov    %r12d,%eax
cmp    $0x4,%r12d
jae    121f <calc_gravity+0xbf>
xor    %ecx,%ecx
jmp    12c9 <calc_gravity+0x169>
mov    %eax,%ecx
and    $0xfffffffc,%ecx
lea    -0x4(%rcx),%rdx
mov    %rdx,%rsi
shr    $0x2,%rsi
add    $0x1,%rsi
test   %rdx,%rdx
je     13a9 <calc_gravity+0x249>
mov    %rsi,%rdi
and    $0xfffffffffffffffe,%rdi
xor    %edx,%edx
movapd 0xdd3(%rip),%xmm0
nopl   (%rax)
movupd (%rbx,%rdx,8),%xmm1
movupd 0x10(%rbx,%rdx,8),%xmm2
movupd 0x20(%rbx,%rdx,8),%xmm3
movupd 0x30(%rbx,%rdx,8),%xmm4
xorpd  %xmm0,%xmm1
xorpd  %xmm0,%xmm2
movupd %xmm1,(%rbx,%rdx,8)
movupd %xmm2,0x10(%rbx,%rdx,8)
xorpd  %xmm0,%xmm3
xorpd  %xmm0,%xmm4
movupd %xmm3,0x20(%rbx,%rdx,8)
movupd %xmm4,0x30(%rbx,%rdx,8)
add    $0x8,%rdx
add    $0xfffffffffffffffe,%rdi
jne    1250 <calc_gravity+0xf0>
test   $0x1,%sil
je     12c4 <calc_gravity+0x164>
movupd (%rbx,%rdx,8),%xmm0
movupd 0x10(%rbx,%rdx,8),%xmm1
movapd 0xd6f(%rip),%xmm2
xorpd  %xmm2,%xmm0
xorpd  %xmm2,%xmm1
movupd %xmm0,(%rbx,%rdx,8)
movupd %xmm1,0x10(%rbx,%rdx,8)
cmp    %rax,%rcx
je     12f7 <calc_gravity+0x197>
movapd 0xd4f(%rip),%xmm0
cs nopw 0x0(%rax,%rax,1)
nopl   0x0(%rax,%rax,1)
movsd  (%rbx,%rcx,8),%xmm1
xorpd  %xmm0,%xmm1
movlpd %xmm1,(%rbx,%rcx,8)
add    $0x1,%rcx
cmp    %rcx,%rax
jne    12e0 <calc_gravity+0x180>
xorpd  %xmm0,%xmm0
movsd  (%rsp),%xmm1
ucomisd %xmm0,%xmm1
jne    130c <calc_gravity+0x1ac>
jnp    14a5 <calc_gravity+0x345>
test   %r12d,%r12d
jle    14a5 <calc_gravity+0x345>
movsd  0xd13(%rip),%xmm0
divsd  (%rsp),%xmm0
cmp    $0x4,%r12d
jb     1342 <calc_gravity+0x1e2>
lea    (%r14,%rax,8),%rcx
cmp    %rbx,%rcx
jbe    13ba <calc_gravity+0x25a>
lea    (%rbx,%rax,8),%rcx
cmp    %r14,%rcx
jbe    13ba <calc_gravity+0x25a>
xor    %ecx,%ecx
mov    %rcx,%rdx
not    %rdx
test   $0x1,%al
je     1366 <calc_gravity+0x206>
movsd  (%r14,%rcx,8),%xmm1
mulsd  %xmm0,%xmm1
addsd  (%rbx,%rcx,8),%xmm1
movsd  %xmm1,(%rbx,%rcx,8)
or     $0x1,%rcx
add    %rax,%rdx
je     14a5 <calc_gravity+0x345>
nop
movsd  (%r14,%rcx,8),%xmm1
mulsd  %xmm0,%xmm1
addsd  (%rbx,%rcx,8),%xmm1
movsd  %xmm1,(%rbx,%rcx,8)
movsd  0x8(%r14,%rcx,8),%xmm1
mulsd  %xmm0,%xmm1
addsd  0x8(%rbx,%rcx,8),%xmm1
movsd  %xmm1,0x8(%rbx,%rcx,8)
add    $0x2,%rcx
cmp    %rcx,%rax
jne    1370 <calc_gravity+0x210>
jmp    14a5 <calc_gravity+0x345>
xor    %edx,%edx
test   $0x1,%sil
jne    129e <calc_gravity+0x13e>
jmp    12c4 <calc_gravity+0x164>
mov    %eax,%ecx
and    $0xfffffffc,%ecx
movapd %xmm0,%xmm1
unpcklpd %xmm0,%xmm1
lea    -0x4(%rcx),%rdx
mov    %rdx,%rsi
shr    $0x2,%rsi
add    $0x1,%rsi
test   %rdx,%rdx
je     14b2 <calc_gravity+0x352>
mov    %rsi,%rdi
and    $0xfffffffffffffffe,%rdi
xor    %edx,%edx
nopl   0x0(%rax,%rax,1)
movupd (%r14,%rdx,8),%xmm2
movupd 0x10(%r14,%rdx,8),%xmm3
mulpd  %xmm1,%xmm2
movupd (%rbx,%rdx,8),%xmm4
addpd  %xmm2,%xmm4
movupd 0x10(%rbx,%rdx,8),%xmm2
movupd 0x20(%rbx,%rdx,8),%xmm5
movupd 0x30(%rbx,%rdx,8),%xmm6
mulpd  %xmm1,%xmm3
addpd  %xmm2,%xmm3
movupd %xmm4,(%rbx,%rdx,8)
movupd %xmm3,0x10(%rbx,%rdx,8)
movupd 0x20(%r14,%rdx,8),%xmm2
movupd 0x30(%r14,%rdx,8),%xmm3
mulpd  %xmm1,%xmm2
addpd  %xmm5,%xmm2
mulpd  %xmm1,%xmm3
addpd  %xmm6,%xmm3
movupd %xmm2,0x20(%rbx,%rdx,8)
movupd %xmm3,0x30(%rbx,%rdx,8)
add    $0x8,%rdx
add    $0xfffffffffffffffe,%rdi
jne    13f0 <calc_gravity+0x290>
test   $0x1,%sil
je     149c <calc_gravity+0x33c>
movupd (%rbx,%rdx,8),%xmm2
movupd 0x10(%rbx,%rdx,8),%xmm3
movupd (%r14,%rdx,8),%xmm4
movupd 0x10(%r14,%rdx,8),%xmm5
mulpd  %xmm1,%xmm4
addpd  %xmm2,%xmm4
mulpd  %xmm1,%xmm5
addpd  %xmm3,%xmm5
movupd %xmm4,(%rbx,%rdx,8)
movupd %xmm5,0x10(%rbx,%rdx,8)
cmp    %rax,%rcx
jne    1344 <calc_gravity+0x1e4>
add    $0x10,%rsp
pop    %rbx
pop    %r12
pop    %r14
pop    %r15
pop    %rbp
ret
xor    %edx,%edx
test   $0x1,%sil
jne    1469 <calc_gravity+0x309>
jmp    149c <calc_gravity+0x33c>

LLVM IR (-O0):
@.str = [27 x i8] c"gravity %f cycle per loop\0A\00"
define void @calc_gravity(double* %0, [3 x double]* %1, [3 x double]* %2, double %3, [3 x double]* %4, double* %5, i32 %6) {
%8 = alloca double*
%9 = alloca [3 x double]*
%10 = alloca [3 x double]*
%11 = alloca double
%12 = alloca [3 x double]*
%13 = alloca double*
%14 = alloca i32
%15 = alloca double
%16 = alloca i32
%17 = alloca double
%18 = alloca double
%19 = alloca double
store double* %0, double** %8
store [3 x double]* %1, [3 x double]** %9
store [3 x double]* %2, [3 x double]** %10
store double %3, double* %11
store [3 x double]* %4, [3 x double]** %12
store double* %5, double** %13
store i32 %6, i32* %14
%20 = load i32, i32* %14
%21 = load [3 x double]*, [3 x double]** %9
%22 = bitcast [3 x double]* %21 to double**
%23 = load double*, double** %8
%24 = call i32 @g5_set_xmj(i32 0, i32 %20, double** %22, double* %23)
%25 = load double, double* %11
%26 = call i32 @g5_set_eps_to_all(double %25)
%27 = load i32, i32* %14
%28 = call i32 @g5_set_n(i32 %27)
%29 = call double (...) @get_dtime()
store double %29, double* %18
%30 = load [3 x double]*, [3 x double]** %9
%31 = bitcast [3 x double]* %30 to double**
%32 = load [3 x double]*, [3 x double]** %12
%33 = bitcast [3 x double]* %32 to double**
%34 = load double*, double** %13
%35 = load i32, i32* %14
%36 = call i32 @g5_calculate_force_on_x(double** %31, double** %33, double* %34, i32 %35)
%37 = call double (...) @get_dtime()
store double %37, double* %19
%38 = load double, double* %19
%39 = load double, double* %18
%40 = fsub double %38, %39
%41 = fmul double %40, 3.800000e+00
%42 = fmul double %41, 1.000000e+09
%43 = load i32, i32* %14
%44 = sitofp i32 %43 to double
%45 = load i32, i32* %14
%46 = sitofp i32 %45 to double
%47 = fmul double %44, %46
%48 = fdiv double %47, 4.000000e+00
%49 = fdiv double %42, %48
store double %49, double* %17
%50 = load double, double* %17
%51 = call i32 @printf(i8* getelementptr inbounds ([27 x i8], [27 x i8]* @.str, i64 0, i64 0), double %50)
store i32 0, i32* %16
br label %52
52: ; preds = %67, %7
%53 = load i32, i32* %16
%54 = load i32, i32* %14
%55 = icmp slt i32 %53, %54
br i1 %55, label %56, label %70
56: ; preds = %52
%57 = load double*, double** %13
%58 = load i32, i32* %16
%59 = sext i32 %58 to i64
%60 = getelementptr inbounds double, double* %57, i64 %59
%61 = load double, double* %60
%62 = fneg double %61
%63 = load double*, double** %13
%64 = load i32, i32* %16
%65 = sext i32 %64 to i64
%66 = getelementptr inbounds double, double* %63, i64 %65
store double %62, double* %66
br label %67
67: ; preds = %56
%68 = load i32, i32* %16
%69 = add nsw i32 %68, 1
store i32 %69, i32* %16
br label %52
70: ; preds = %52
%71 = load double, double* %11
%72 = fcmp une double %71, 0.000000e+00
br i1 %72, label %73, label %101
73: ; preds = %70
%74 = load double, double* %11
%75 = fdiv double 1.000000e+00, %74
store double %75, double* %15
store i32 0, i32* %16
br label %76
76: ; preds = %97, %73
%77 = load i32, i32* %16
%78 = load i32, i32* %14
%79 = icmp slt i32 %77, %78
br i1 %79, label %80, label %100
80: ; preds = %76
%81 = load double*, double** %13
%82 = load i32, i32* %16
%83 = sext i32 %82 to i64
%84 = getelementptr inbounds double, double* %81, i64 %83
%85 = load double, double* %84
%86 = load double*, double** %8
%87 = load i32, i32* %16
%88 = sext i32 %87 to i64
%89 = getelementptr inbounds double, double* %86, i64 %88
%90 = load double, double* %89
%91 = load double, double* %15
%92 = call double @llvm.fmuladd.f64(double %90, double %91, double %85)
%93 = load double*, double** %13
%94 = load i32, i32* %16
%95 = sext i32 %94 to i64
%96 = getelementptr inbounds double, double* %93, i64 %95
store double %92, double* %96
br label %97
97: ; preds = %80
%98 = load i32, i32* %16
%99 = add nsw i32 %98, 1
store i32 %99, i32* %16
br label %76
100: ; preds = %76
br label %101
101: ; preds = %100, %70
ret void
}

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