#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 */
double cost(double *, int);
double exp(double);
double normalrng();
int /*<<< orphan*/ self_adj_index_search(int *, double, double *, int);
double uniformrng();
void Mutation_Metropolis(double *z, double *fz, int N_dimension, double *theta,
                         double *grid_points, int grid_size, double temp,
                         double scl, double *accpr_pop, double *z_new) {
  int k_old;
  int k_new;
  int i;
  double fz_new;
  double rat;
  double un;
  self_adj_index_search(&k_old, *fz, grid_points, grid_size);
  for (i = 1; i <= N_dimension; i++)
    z_new[i] = z[i] + normalrng() * scl;
  fz_new = cost(z_new, N_dimension);
  self_adj_index_search(&k_new, fz_new, grid_points, grid_size);
  rat = -theta[k_new] - fz_new / temp + theta[k_old] + *fz / temp;
  *accpr_pop = ((rat > 0.0) ? 1.0 : exp(rat));
  un = uniformrng();
  if (*accpr_pop > un) {
    *fz = fz_new;
    for (i = 1; i <= N_dimension; i++)
      z[i] = z_new[i];
  }
}


x86 assembly (clang, -O0):
<Mutation_Metropolis>:
push   %rbp
mov    %rsp,%rbp
sub    $0x80,%rsp
mov    0x18(%rbp),%rax
mov    0x10(%rbp),%rax
mov    %rdi,-0x8(%rbp)
mov    %rsi,-0x10(%rbp)
mov    %edx,-0x14(%rbp)
mov    %rcx,-0x20(%rbp)
mov    %r8,-0x28(%rbp)
mov    %r9d,-0x2c(%rbp)
movsd  %xmm0,-0x38(%rbp)
movsd  %xmm1,-0x40(%rbp)
mov    -0x10(%rbp),%rax
movsd  (%rax),%xmm0
mov    -0x28(%rbp),%rsi
mov    -0x2c(%rbp),%edx
lea    -0x44(%rbp),%rdi
call   1050 <self_adj_index_search@plt>
movl   $0x1,-0x4c(%rbp)
mov    -0x4c(%rbp),%eax
cmp    -0x14(%rbp),%eax
jg     11f5 <Mutation_Metropolis+0xa5>
mov    -0x8(%rbp),%rax
movslq -0x4c(%rbp),%rcx
movsd  (%rax,%rcx,8),%xmm0
movsd  %xmm0,-0x70(%rbp)
mov    $0x0,%al
call   1070 <normalrng@plt>
movsd  -0x70(%rbp),%xmm1
movsd  -0x40(%rbp),%xmm2
mulsd  %xmm2,%xmm0
addsd  %xmm1,%xmm0
mov    0x18(%rbp),%rax
movslq -0x4c(%rbp),%rcx
movsd  %xmm0,(%rax,%rcx,8)
mov    -0x4c(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0x4c(%rbp)
jmp    11a3 <Mutation_Metropolis+0x53>
mov    0x18(%rbp),%rdi
mov    -0x14(%rbp),%esi
call   1040 <cost@plt>
movsd  %xmm0,-0x58(%rbp)
movsd  -0x58(%rbp),%xmm0
mov    -0x28(%rbp),%rsi
mov    -0x2c(%rbp),%edx
lea    -0x48(%rbp),%rdi
call   1050 <self_adj_index_search@plt>
mov    -0x20(%rbp),%rax
movslq -0x48(%rbp),%rcx
movsd  (%rax,%rcx,8),%xmm0
movq   %xmm0,%rax
movabs $0x8000000000000000,%rcx
xor    %rcx,%rax
movq   %rax,%xmm0
movsd  -0x58(%rbp),%xmm1
divsd  -0x38(%rbp),%xmm1
subsd  %xmm1,%xmm0
mov    -0x20(%rbp),%rax
movslq -0x44(%rbp),%rcx
addsd  (%rax,%rcx,8),%xmm0
mov    -0x10(%rbp),%rax
movsd  (%rax),%xmm1
divsd  -0x38(%rbp),%xmm1
addsd  %xmm1,%xmm0
movsd  %xmm0,-0x60(%rbp)
movsd  -0x60(%rbp),%xmm0
xorps  %xmm1,%xmm1
ucomisd %xmm1,%xmm0
jbe    1294 <Mutation_Metropolis+0x144>
movsd  0xd76(%rip),%xmm0
movsd  %xmm0,-0x78(%rbp)
jmp    12a3 <Mutation_Metropolis+0x153>
movsd  -0x60(%rbp),%xmm0
call   1060 <exp@plt>
movsd  %xmm0,-0x78(%rbp)
movsd  -0x78(%rbp),%xmm0
mov    0x10(%rbp),%rax
movsd  %xmm0,(%rax)
mov    $0x0,%al
call   1030 <uniformrng@plt>
movsd  %xmm0,-0x68(%rbp)
mov    0x10(%rbp),%rax
movsd  (%rax),%xmm0
ucomisd -0x68(%rbp),%xmm0
jbe    131c <Mutation_Metropolis+0x1cc>
movsd  -0x58(%rbp),%xmm0
mov    -0x10(%rbp),%rax
movsd  %xmm0,(%rax)
movl   $0x1,-0x4c(%rbp)
mov    -0x4c(%rbp),%eax
cmp    -0x14(%rbp),%eax
jg     1317 <Mutation_Metropolis+0x1c7>
mov    0x18(%rbp),%rax
movslq -0x4c(%rbp),%rcx
movsd  (%rax,%rcx,8),%xmm0
mov    -0x8(%rbp),%rax
movslq -0x4c(%rbp),%rcx
movsd  %xmm0,(%rax,%rcx,8)
mov    -0x4c(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0x4c(%rbp)
jmp    12e3 <Mutation_Metropolis+0x193>
jmp    131c <Mutation_Metropolis+0x1cc>
add    $0x80,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<Mutation_Metropolis>:
push   %rbp
push   %r15
push   %r14
push   %r13
push   %r12
push   %rbx
sub    $0x48,%rsp
movsd  %xmm1,0x40(%rsp)
movsd  %xmm0,0x30(%rsp)
mov    %rcx,0x28(%rsp)
mov    %edx,%ebp
mov    %rdi,%rbx
mov    0x88(%rsp),%r14
mov    %rsi,0x38(%rsp)
movsd  (%rsi),%xmm0
lea    0x1c(%rsp),%rdi
mov    %r8,0x20(%rsp)
mov    %r8,%rsi
mov    %r9d,0x14(%rsp)
mov    %r9d,%edx
call   1050 <self_adj_index_search@plt>
mov    %rbp,%r12
test   %ebp,%ebp
jle    11ee <Mutation_Metropolis+0x9e>
lea    0x1(%r12),%r13d
mov    $0x1,%r15d
cs nopw 0x0(%rax,%rax,1)
nopl   0x0(%rax,%rax,1)
movsd  (%rbx,%r15,8),%xmm0
movsd  %xmm0,0x8(%rsp)
xor    %eax,%eax
call   1070 <normalrng@plt>
mulsd  0x40(%rsp),%xmm0
addsd  0x8(%rsp),%xmm0
movsd  %xmm0,(%r14,%r15,8)
add    $0x1,%r15
cmp    %r15,%r13
jne    11c0 <Mutation_Metropolis+0x70>
mov    0x80(%rsp),%r13
mov    %r14,%rdi
mov    %r12d,%esi
call   1040 <cost@plt>
movsd  %xmm0,0x8(%rsp)
lea    0x18(%rsp),%rdi
mov    0x20(%rsp),%rsi
mov    0x14(%rsp),%edx
call   1050 <self_adj_index_search@plt>
movslq 0x18(%rsp),%rax
mov    0x28(%rsp),%rcx
movsd  (%rcx,%rax,8),%xmm1
xorpd  0xdcf(%rip),%xmm1
movsd  0x8(%rsp),%xmm0
movsd  0x30(%rsp),%xmm2
divsd  %xmm2,%xmm0
subsd  %xmm0,%xmm1
movslq 0x1c(%rsp),%rax
addsd  (%rcx,%rax,8),%xmm1
mov    0x38(%rsp),%rbp
movsd  0x0(%rbp),%xmm0
divsd  %xmm2,%xmm0
addsd  %xmm1,%xmm0
xorpd  %xmm1,%xmm1
ucomisd %xmm1,%xmm0
jbe    1275 <Mutation_Metropolis+0x125>
movsd  0xd9d(%rip),%xmm0
jmp    127a <Mutation_Metropolis+0x12a>
call   1060 <exp@plt>
movsd  %xmm0,0x0(%r13)
xor    %eax,%eax
call   1030 <uniformrng@plt>
movsd  0x0(%r13),%xmm1
ucomisd %xmm0,%xmm1
jbe    142b <Mutation_Metropolis+0x2db>
movsd  0x8(%rsp),%xmm0
movsd  %xmm0,0x0(%rbp)
test   %r12d,%r12d
jle    142b <Mutation_Metropolis+0x2db>
mov    %r12d,%edx
lea    0x1(%rdx),%rax
mov    $0x1,%ecx
cmp    $0x4,%r12d
jb     13b7 <Mutation_Metropolis+0x267>
lea    0x8(%rbx),%rsi
lea    (%r14,%rax,8),%rdi
cmp    %rdi,%rsi
jae    12df <Mutation_Metropolis+0x18f>
lea    (%rbx,%rax,8),%rsi
lea    0x8(%r14),%rdi
cmp    %rsi,%rdi
jb     13b7 <Mutation_Metropolis+0x267>
mov    %edx,%ecx
and    $0xfffffffc,%ecx
lea    -0x4(%rcx),%rdi
mov    %rdi,%rsi
shr    $0x2,%rsi
add    $0x1,%rsi
mov    %esi,%ebp
and    $0x3,%ebp
cmp    $0xc,%rdi
jae    1302 <Mutation_Metropolis+0x1b2>
xor    %edi,%edi
jmp    1376 <Mutation_Metropolis+0x226>
and    $0xfffffffffffffffc,%rsi
xor    %edi,%edi
nopl   0x0(%rax,%rax,1)
movups 0x8(%r14,%rdi,8),%xmm0
movups 0x18(%r14,%rdi,8),%xmm1
movups %xmm0,0x8(%rbx,%rdi,8)
movups %xmm1,0x18(%rbx,%rdi,8)
movups 0x28(%r14,%rdi,8),%xmm0
movups 0x38(%r14,%rdi,8),%xmm1
movups %xmm0,0x28(%rbx,%rdi,8)
movups %xmm1,0x38(%rbx,%rdi,8)
movups 0x48(%r14,%rdi,8),%xmm0
movups 0x58(%r14,%rdi,8),%xmm1
movups %xmm0,0x48(%rbx,%rdi,8)
movups %xmm1,0x58(%rbx,%rdi,8)
movupd 0x68(%r14,%rdi,8),%xmm0
movupd 0x78(%r14,%rdi,8),%xmm1
movupd %xmm0,0x68(%rbx,%rdi,8)
movupd %xmm1,0x78(%rbx,%rdi,8)
add    $0x10,%rdi
add    $0xfffffffffffffffc,%rsi
jne    1310 <Mutation_Metropolis+0x1c0>
test   %rbp,%rbp
je     13ae <Mutation_Metropolis+0x25e>
nopl   0x0(%rax,%rax,1)
lea    0x0(,%rdi,8),%rsi
or     $0x8,%rsi
movupd (%r14,%rsi,1),%xmm0
movupd 0x10(%r14,%rsi,1),%xmm1
movupd %xmm0,(%rbx,%rsi,1)
movupd %xmm1,0x10(%rbx,%rsi,1)
add    $0x4,%rdi
add    $0xffffffffffffffff,%rbp
jne    1380 <Mutation_Metropolis+0x230>
cmp    %rcx,%rdx
je     142b <Mutation_Metropolis+0x2db>
or     $0x1,%rcx
mov    %eax,%esi
sub    %ecx,%esi
mov    %rcx,%rdx
not    %rdx
add    %rax,%rdx
and    $0x3,%rsi
je     13e5 <Mutation_Metropolis+0x295>
nopw   0x0(%rax,%rax,1)
movsd  (%r14,%rcx,8),%xmm0
movsd  %xmm0,(%rbx,%rcx,8)
add    $0x1,%rcx
add    $0xffffffffffffffff,%rsi
jne    13d0 <Mutation_Metropolis+0x280>
cmp    $0x3,%rdx
jb     142b <Mutation_Metropolis+0x2db>
nopl   0x0(%rax,%rax,1)
movsd  (%r14,%rcx,8),%xmm0
movsd  %xmm0,(%rbx,%rcx,8)
movsd  0x8(%r14,%rcx,8),%xmm0
movsd  %xmm0,0x8(%rbx,%rcx,8)
movsd  0x10(%r14,%rcx,8),%xmm0
movsd  %xmm0,0x10(%rbx,%rcx,8)
movsd  0x18(%r14,%rcx,8),%xmm0
movsd  %xmm0,0x18(%rbx,%rcx,8)
add    $0x4,%rcx
cmp    %rcx,%rax
jne    13f0 <Mutation_Metropolis+0x2a0>
add    $0x48,%rsp
pop    %rbx
pop    %r12
pop    %r13
pop    %r14
pop    %r15
pop    %rbp
ret

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

LLVM IR (-O2):
define void @Mutation_Metropolis(double* nocapture %0, double* nocapture %1, i32 %2, double* nocapture %3, double* %4, i32 %5, double %6, double %7, double* nocapture %8, double* %9) {
%11 = alloca i32
%12 = alloca i32
%13 = bitcast i32* %11 to i8*
%14 = bitcast i32* %12 to i8*
%15 = load double, double* %1
%16 = call i32 @self_adj_index_search(i32* %11, double %15, double* %4, i32 %5)
%17 = icmp slt i32 %2, 1
br i1 %17, label %30, label %18
18: ; preds = %10
%19 = add nuw i32 %2, 1
%20 = zext i32 %19 to i64
br label %21
21: ; preds = %18, %21
%22 = phi i64 [ 1, %18 ], [ %28, %21 ]
%23 = getelementptr inbounds double, double* %0, i64 %22
%24 = load double, double* %23
%25 = call double (...) @normalrng()
%26 = call double @llvm.fmuladd.f64(double %25, double %7, double %24)
%27 = getelementptr inbounds double, double* %9, i64 %22
store double %26, double* %27
%28 = add nuw nsw i64 %22, 1
%29 = icmp eq i64 %28, %20
br i1 %29, label %30, label %21
30: ; preds = %21, %10
%31 = call double @cost(double* %9, i32 %2)
%32 = call i32 @self_adj_index_search(i32* %12, double %31, double* %4, i32 %5)
%33 = load i32, i32* %12
%34 = sext i32 %33 to i64
%35 = getelementptr inbounds double, double* %3, i64 %34
%36 = load double, double* %35
%37 = fneg double %36
%38 = fdiv double %31, %6
%39 = fsub double %37, %38
%40 = load i32, i32* %11
%41 = sext i32 %40 to i64
%42 = getelementptr inbounds double, double* %3, i64 %41
%43 = load double, double* %42
%44 = fadd double %39, %43
%45 = load double, double* %1
%46 = fdiv double %45, %6
%47 = fadd double %44, %46
%48 = fcmp ogt double %47, 0.000000e+00
br i1 %48, label %51, label %49
49: ; preds = %30
%50 = call double @exp(double %47)
br label %51
51: ; preds = %30, %49
%52 = phi double [ %50, %49 ], [ 1.000000e+00, %30 ]
store double %52, double* %8
%53 = call double (...) @uniformrng()
%54 = load double, double* %8
%55 = fcmp ogt double %54, %53
br i1 %55, label %56, label %190
56: ; preds = %51
store double %31, double* %1
br i1 %17, label %190, label %57
57: ; preds = %56
%58 = add nuw i32 %2, 1
%59 = zext i32 %58 to i64
%60 = add nsw i64 %59, -1
%61 = icmp ult i64 %60, 4
br i1 %61, label %152, label %62
62: ; preds = %57
%63 = getelementptr double, double* %0, i64 1
%64 = getelementptr double, double* %0, i64 %59
%65 = getelementptr double, double* %9, i64 1
%66 = getelementptr double, double* %9, i64 %59
%67 = icmp ult double* %63, %66
%68 = icmp ult double* %65, %64
%69 = and i1 %67, %68
br i1 %69, label %152, label %70
70: ; preds = %62
%71 = and i64 %60, -4
%72 = or i64 %71, 1
%73 = add nsw i64 %71, -4
%74 = lshr exact i64 %73, 2
%75 = add nuw nsw i64 %74, 1
%76 = and i64 %75, 3
%77 = icmp ult i64 %73, 12
br i1 %77, label %130, label %78
78: ; preds = %70
%79 = and i64 %75, 9223372036854775804
br label %80
80: ; preds = %80, %78
%81 = phi i64 [ 0, %78 ], [ %127, %80 ]
%82 = phi i64 [ 0, %78 ], [ %128, %80 ]
%83 = or i64 %81, 1
%84 = getelementptr inbounds double, double* %9, i64 %83
%85 = bitcast double* %84 to <2 x double>*
%86 = load <2 x double>, <2 x double>* %85
%87 = getelementptr inbounds double, double* %84, i64 2
%88 = bitcast double* %87 to <2 x double>*
%89 = load <2 x double>, <2 x double>* %88
%90 = getelementptr inbounds double, double* %0, i64 %83
%91 = bitcast double* %90 to <2 x double>*
store <2 x double> %86, <2 x double>* %91
%92 = getelementptr inbounds double, double* %90, i64 2
%93 = bitcast double* %92 to <2 x double>*
store <2 x double> %89, <2 x double>* %93
%94 = or i64 %81, 5
%95 = getelementptr inbounds double, double* %9, i64 %94
%96 = bitcast double* %95 to <2 x double>*
%97 = load <2 x double>, <2 x double>* %96
%98 = getelementptr inbounds double, double* %95, i64 2
%99 = bitcast double* %98 to <2 x double>*
%100 = load <2 x double>, <2 x double>* %99
%101 = getelementptr inbounds double, double* %0, i64 %94
%102 = bitcast double* %101 to <2 x double>*
store <2 x double> %97, <2 x double>* %102
%103 = getelementptr inbounds double, double* %101, i64 2
%104 = bitcast double* %103 to <2 x double>*
store <2 x double> %100, <2 x double>* %104
%105 = or i64 %81, 9
%106 = getelementptr inbounds double, double* %9, i64 %105
%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 = getelementptr inbounds double, double* %0, i64 %105
%113 = bitcast double* %112 to <2 x double>*
store <2 x double> %108, <2 x double>* %113
%114 = getelementptr inbounds double, double* %112, i64 2
%115 = bitcast double* %114 to <2 x double>*
store <2 x double> %111, <2 x double>* %115
%116 = or i64 %81, 13
%117 = getelementptr inbounds double, double* %9, i64 %116
%118 = bitcast double* %117 to <2 x double>*
%119 = load <2 x double>, <2 x double>* %118
%120 = getelementptr inbounds double, double* %117, i64 2
%121 = bitcast double* %120 to <2 x double>*
%122 = load <2 x double>, <2 x double>* %121
%123 = getelementptr inbounds double, double* %0, i64 %116
%124 = bitcast double* %123 to <2 x double>*
store <2 x double> %119, <2 x double>* %124
%125 = getelementptr inbounds double, double* %123, i64 2
%126 = bitcast double* %125 to <2 x double>*
store <2 x double> %122, <2 x double>* %126
%127 = add nuw i64 %81, 16
%128 = add nuw i64 %82, 4
%129 = icmp eq i64 %128, %79
br i1 %129, label %130, label %80
130: ; preds = %80, %70
%131 = phi i64 [ 0, %70 ], [ %127, %80 ]
%132 = icmp eq i64 %76, 0
br i1 %132, label %150, label %133
133: ; preds = %130, %133
%134 = phi i64 [ %147, %133 ], [ %131, %130 ]
%135 = phi i64 [ %148, %133 ], [ 0, %130 ]
%136 = or i64 %134, 1
%137 = getelementptr inbounds double, double* %9, i64 %136
%138 = bitcast double* %137 to <2 x double>*
%139 = load <2 x double>, <2 x double>* %138
%140 = getelementptr inbounds double, double* %137, i64 2
%141 = bitcast double* %140 to <2 x double>*
%142 = load <2 x double>, <2 x double>* %141
%143 = getelementptr inbounds double, double* %0, i64 %136
%144 = bitcast double* %143 to <2 x double>*
store <2 x double> %139, <2 x double>* %144
%145 = getelementptr inbounds double, double* %143, i64 2
%146 = bitcast double* %145 to <2 x double>*
store <2 x double> %142, <2 x double>* %146
%147 = add nuw i64 %134, 4
%148 = add i64 %135, 1
%149 = icmp eq i64 %148, %76
br i1 %149, label %150, label %133
150: ; preds = %133, %130
%151 = icmp eq i64 %60, %71
br i1 %151, label %190, label %152
152: ; preds = %62, %57, %150
%153 = phi i64 [ 1, %62 ], [ 1, %57 ], [ %72, %150 ]
%154 = sub nsw i64 %59, %153
%155 = xor i64 %153, -1
%156 = add nsw i64 %155, %59
%157 = and i64 %154, 3
%158 = icmp eq i64 %157, 0
br i1 %158, label %168, label %159
159: ; preds = %152, %159
%160 = phi i64 [ %165, %159 ], [ %153, %152 ]
%161 = phi i64 [ %166, %159 ], [ 0, %152 ]
%162 = getelementptr inbounds double, double* %9, i64 %160
%163 = load double, double* %162
%164 = getelementptr inbounds double, double* %0, i64 %160
store double %163, double* %164
%165 = add nuw nsw i64 %160, 1
%166 = add i64 %161, 1
%167 = icmp eq i64 %166, %157
br i1 %167, label %168, label %159
168: ; preds = %159, %152
%169 = phi i64 [ %153, %152 ], [ %165, %159 ]
%170 = icmp ult i64 %156, 3
br i1 %170, label %190, label %171
171: ; preds = %168, %171
%172 = phi i64 [ %188, %171 ], [ %169, %168 ]
%173 = getelementptr inbounds double, double* %9, i64 %172
%174 = load double, double* %173
%175 = getelementptr inbounds double, double* %0, i64 %172
store double %174, double* %175
%176 = add nuw nsw i64 %172, 1
%177 = getelementptr inbounds double, double* %9, i64 %176
%178 = load double, double* %177
%179 = getelementptr inbounds double, double* %0, i64 %176
store double %178, double* %179
%180 = add nuw nsw i64 %172, 2
%181 = getelementptr inbounds double, double* %9, i64 %180
%182 = load double, double* %181
%183 = getelementptr inbounds double, double* %0, i64 %180
store double %182, double* %183
%184 = add nuw nsw i64 %172, 3
%185 = getelementptr inbounds double, double* %9, i64 %184
%186 = load double, double* %185
%187 = getelementptr inbounds double, double* %0, i64 %184
store double %186, double* %187
%188 = add nuw nsw i64 %172, 4
%189 = icmp eq i64 %188, %59
br i1 %189, label %190, label %171
190: ; preds = %168, %171, %150, %56, %51
ret void
}