#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 fabs(double);
double *malloc(int);
double randn(double, double);
double sqrt(double);
void sample_beta(int n, int p, double *X, double *x2, double *b, double *e,
                 double varBj, double varE, double minAbsBeta) {
  double *xj;
  double rhs, c;
  int j, i;
  xj = malloc(n * sizeof(double));
  for (j = 0; j < p; j++) {
    rhs = 0;
    for (i = 0; i < n; i++) {
      xj[i] = X[i + j * n];
      e[i] = e[i] + b[j] * xj[i];
      rhs += xj[i] * e[i];
    }
    rhs = rhs / varE;
    c = x2[j] / varE + 1.0 / varBj;
    b[j] = rhs / c + sqrt(1.0 / c) * randn(0.0, 1.0);
    for (i = 0; i < n; i++) {
      e[i] = e[i] - b[j] * xj[i];
    }
    if (fabs(b[j]) < minAbsBeta) {
      b[j] = minAbsBeta;
    }
  }
}


x86 assembly (clang, -O0):
<sample_beta>:
push   %rbp
mov    %rsp,%rbp
sub    $0x70,%rsp
mov    %edi,-0x4(%rbp)
mov    %esi,-0x8(%rbp)
mov    %rdx,-0x10(%rbp)
mov    %rcx,-0x18(%rbp)
mov    %r8,-0x20(%rbp)
mov    %r9,-0x28(%rbp)
movsd  %xmm0,-0x30(%rbp)
movsd  %xmm1,-0x38(%rbp)
movsd  %xmm2,-0x40(%rbp)
movslq -0x4(%rbp),%rax
shl    $0x3,%rax
mov    %eax,%edi
call   1030 <malloc@plt>
mov    %rax,-0x48(%rbp)
movl   $0x0,-0x5c(%rbp)
mov    -0x5c(%rbp),%eax
cmp    -0x8(%rbp),%eax
jge    1388 <sample_beta+0x258>
xorps  %xmm0,%xmm0
movsd  %xmm0,-0x50(%rbp)
movl   $0x0,-0x60(%rbp)
mov    -0x60(%rbp),%eax
cmp    -0x4(%rbp),%eax
jge    1239 <sample_beta+0x109>
mov    -0x10(%rbp),%rax
mov    -0x60(%rbp),%ecx
mov    -0x5c(%rbp),%edx
imul   -0x4(%rbp),%edx
add    %edx,%ecx
movslq %ecx,%rcx
movsd  (%rax,%rcx,8),%xmm0
mov    -0x48(%rbp),%rax
movslq -0x60(%rbp),%rcx
movsd  %xmm0,(%rax,%rcx,8)
mov    -0x28(%rbp),%rax
movslq -0x60(%rbp),%rcx
movsd  (%rax,%rcx,8),%xmm1
mov    -0x20(%rbp),%rax
movslq -0x5c(%rbp),%rcx
movsd  (%rax,%rcx,8),%xmm0
mov    -0x48(%rbp),%rax
movslq -0x60(%rbp),%rcx
movsd  (%rax,%rcx,8),%xmm2
mulsd  %xmm2,%xmm0
addsd  %xmm1,%xmm0
mov    -0x28(%rbp),%rax
movslq -0x60(%rbp),%rcx
movsd  %xmm0,(%rax,%rcx,8)
mov    -0x48(%rbp),%rax
movslq -0x60(%rbp),%rcx
movsd  (%rax,%rcx,8),%xmm0
mov    -0x28(%rbp),%rax
movslq -0x60(%rbp),%rcx
movsd  (%rax,%rcx,8),%xmm2
movsd  -0x50(%rbp),%xmm1
mulsd  %xmm2,%xmm0
addsd  %xmm1,%xmm0
movsd  %xmm0,-0x50(%rbp)
mov    -0x60(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0x60(%rbp)
jmp    1192 <sample_beta+0x62>
movsd  -0x50(%rbp),%xmm0
divsd  -0x38(%rbp),%xmm0
movsd  %xmm0,-0x50(%rbp)
mov    -0x18(%rbp),%rax
movslq -0x5c(%rbp),%rcx
movsd  (%rax,%rcx,8),%xmm0
divsd  -0x38(%rbp),%xmm0
movsd  0xd9e(%rip),%xmm1
divsd  -0x30(%rbp),%xmm1
addsd  %xmm1,%xmm0
movsd  %xmm0,-0x58(%rbp)
movsd  -0x50(%rbp),%xmm0
divsd  -0x58(%rbp),%xmm0
movsd  %xmm0,-0x70(%rbp)
movsd  0xd79(%rip),%xmm0
divsd  -0x58(%rbp),%xmm0
call   1050 <sqrt@plt>
movsd  %xmm0,-0x68(%rbp)
xorps  %xmm0,%xmm0
movsd  0xd5f(%rip),%xmm1
call   1040 <randn@plt>
movsd  -0x70(%rbp),%xmm1
movaps %xmm0,%xmm2
movsd  -0x68(%rbp),%xmm0
mulsd  %xmm2,%xmm0
addsd  %xmm1,%xmm0
mov    -0x20(%rbp),%rax
movslq -0x5c(%rbp),%rcx
movsd  %xmm0,(%rax,%rcx,8)
movl   $0x0,-0x60(%rbp)
mov    -0x60(%rbp),%eax
cmp    -0x4(%rbp),%eax
jge    133c <sample_beta+0x20c>
mov    -0x28(%rbp),%rax
movslq -0x60(%rbp),%rcx
movsd  (%rax,%rcx,8),%xmm1
mov    -0x20(%rbp),%rax
movslq -0x5c(%rbp),%rcx
movsd  (%rax,%rcx,8),%xmm0
mov    -0x48(%rbp),%rax
movslq -0x60(%rbp),%rcx
movsd  (%rax,%rcx,8),%xmm2
movq   %xmm0,%rax
movabs $0x8000000000000000,%rcx
xor    %rcx,%rax
movq   %rax,%xmm0
mulsd  %xmm2,%xmm0
addsd  %xmm1,%xmm0
mov    -0x28(%rbp),%rax
movslq -0x60(%rbp),%rcx
movsd  %xmm0,(%rax,%rcx,8)
mov    -0x60(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0x60(%rbp)
jmp    12cf <sample_beta+0x19f>
mov    -0x20(%rbp),%rax
movslq -0x5c(%rbp),%rcx
movsd  (%rax,%rcx,8),%xmm1
movaps 0xcc0(%rip),%xmm0
pand   %xmm0,%xmm1
movsd  -0x40(%rbp),%xmm0
ucomisd %xmm1,%xmm0
jbe    1375 <sample_beta+0x245>
movsd  -0x40(%rbp),%xmm0
mov    -0x20(%rbp),%rax
movslq -0x5c(%rbp),%rcx
movsd  %xmm0,(%rax,%rcx,8)
jmp    137a <sample_beta+0x24a>
mov    -0x5c(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0x5c(%rbp)
jmp    1177 <sample_beta+0x47>
add    $0x70,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<sample_beta>:
push   %rbp
push   %r15
push   %r14
push   %r13
push   %r12
push   %rbx
sub    $0x78,%rsp
movsd  %xmm2,0x30(%rsp)
movsd  %xmm1,0x40(%rsp)
movsd  %xmm0,0x8(%rsp)
mov    %r9,%rbx
mov    %r8,%r14
mov    %rcx,0x70(%rsp)
mov    %rdx,0x18(%rsp)
mov    %esi,%r12d
mov    %rdi,0x10(%rsp)
lea    0x0(,%rdi,8),%edi
call   1030 <malloc@plt>
test   %r12d,%r12d
jle    141b <sample_beta+0x2eb>
mov    %rax,%rbp
movsd  0xe78(%rip),%xmm0
divsd  0x8(%rsp),%xmm0
movsd  %xmm0,0x68(%rsp)
mov    0x10(%rsp),%rax
movslq %eax,%rcx
mov    %r12d,%edx
mov    %rdx,0x60(%rsp)
mov    %eax,%r15d
lea    -0x1(%r15),%rax
mov    %rax,0x20(%rsp)
mov    %r15,0x28(%rsp)
and    $0xfffffffe,%r15d
mov    0x18(%rsp),%rax
lea    0x8(%rax),%r12
mov    %rcx,0x48(%rsp)
lea    0x0(,%rcx,8),%rax
mov    %rax,0x58(%rsp)
xor    %r13d,%r13d
jmp    11f4 <sample_beta+0xc4>
nopl   0x0(%rax)
add    $0x1,%r13
add    0x58(%rsp),%r12
cmp    0x60(%rsp),%r13
je     141b <sample_beta+0x2eb>
xorpd  %xmm2,%xmm2
cmpl   $0x0,0x10(%rsp)
jle    12bb <sample_beta+0x18b>
cmpq   $0x0,0x20(%rsp)
je     13f0 <sample_beta+0x2c0>
xorpd  %xmm2,%xmm2
xor    %eax,%eax
cs nopw 0x0(%rax,%rax,1)
nop
movsd  -0x8(%r12,%rax,8),%xmm0
movsd  %xmm0,0x0(%rbp,%rax,8)
movsd  (%r14,%r13,8),%xmm1
mulsd  %xmm0,%xmm1
addsd  (%rbx,%rax,8),%xmm1
movsd  %xmm1,(%rbx,%rax,8)
mulsd  %xmm0,%xmm1
addsd  %xmm2,%xmm1
movsd  (%r12,%rax,8),%xmm0
movsd  %xmm0,0x8(%rbp,%rax,8)
movsd  (%r14,%r13,8),%xmm2
mulsd  %xmm0,%xmm2
addsd  0x8(%rbx,%rax,8),%xmm2
movsd  %xmm2,0x8(%rbx,%rax,8)
mulsd  %xmm0,%xmm2
addsd  %xmm1,%xmm2
add    $0x2,%rax
cmp    %rax,%r15
jne    1220 <sample_beta+0xf0>
testb  $0x1,0x28(%rsp)
je     12bb <sample_beta+0x18b>
mov    %r13,%rcx
imul   0x48(%rsp),%rcx
add    %rax,%rcx
mov    0x18(%rsp),%rdx
movsd  (%rdx,%rcx,8),%xmm0
movsd  %xmm0,0x0(%rbp,%rax,8)
movsd  (%r14,%r13,8),%xmm1
mulsd  %xmm0,%xmm1
addsd  (%rbx,%rax,8),%xmm1
movsd  %xmm1,(%rbx,%rax,8)
mulsd  %xmm0,%xmm1
addsd  %xmm1,%xmm2
mov    0x70(%rsp),%rax
movsd  (%rax,%r13,8),%xmm1
divsd  0x40(%rsp),%xmm1
addsd  0x68(%rsp),%xmm1
movsd  0xd26(%rip),%xmm0
divsd  %xmm1,%xmm0
ucomisd 0xd22(%rip),%xmm0
jb     12f0 <sample_beta+0x1c0>
sqrtsd %xmm0,%xmm0
jmp    130d <sample_beta+0x1dd>
xchg   %ax,%ax
movsd  %xmm2,0x8(%rsp)
movsd  %xmm1,0x50(%rsp)
call   1050 <sqrt@plt>
movsd  0x50(%rsp),%xmm1
movsd  0x8(%rsp),%xmm2
movsd  %xmm0,0x38(%rsp)
divsd  0x40(%rsp),%xmm2
divsd  %xmm1,%xmm2
movsd  %xmm2,0x8(%rsp)
xorpd  %xmm0,%xmm0
movsd  0xcd1(%rip),%xmm1
call   1040 <randn@plt>
mulsd  0x38(%rsp),%xmm0
addsd  0x8(%rsp),%xmm0
movsd  %xmm0,(%r14,%r13,8)
cmpl   $0x0,0x10(%rsp)
jle    13c0 <sample_beta+0x290>
cmpq   $0x0,0x20(%rsp)
je     1410 <sample_beta+0x2e0>
xor    %eax,%eax
nopl   0x0(%rax,%rax,1)
mulsd  0x0(%rbp,%rax,8),%xmm0
movsd  (%rbx,%rax,8),%xmm1
subsd  %xmm0,%xmm1
movsd  0x8(%rbx,%rax,8),%xmm0
movsd  %xmm1,(%rbx,%rax,8)
movsd  (%r14,%r13,8),%xmm1
mulsd  0x8(%rbp,%rax,8),%xmm1
subsd  %xmm1,%xmm0
movsd  %xmm0,0x8(%rbx,%rax,8)
add    $0x2,%rax
movsd  (%r14,%r13,8),%xmm0
cmp    %rax,%r15
jne    1360 <sample_beta+0x230>
testb  $0x1,0x28(%rsp)
je     13c0 <sample_beta+0x290>
mulsd  0x0(%rbp,%rax,8),%xmm0
movsd  (%rbx,%rax,8),%xmm1
subsd  %xmm0,%xmm1
movsd  %xmm1,(%rbx,%rax,8)
movsd  (%r14,%r13,8),%xmm0
andpd  0xc48(%rip),%xmm0
movsd  0x30(%rsp),%xmm1
ucomisd %xmm0,%xmm1
jbe    11e0 <sample_beta+0xb0>
movsd  0x30(%rsp),%xmm0
movsd  %xmm0,(%r14,%r13,8)
jmp    11e0 <sample_beta+0xb0>
nopl   0x0(%rax)
xorpd  %xmm2,%xmm2
xor    %eax,%eax
testb  $0x1,0x28(%rsp)
jne    1283 <sample_beta+0x153>
jmp    12bb <sample_beta+0x18b>
cs nopw 0x0(%rax,%rax,1)
xor    %eax,%eax
testb  $0x1,0x28(%rsp)
jne    13a6 <sample_beta+0x276>
jmp    13c0 <sample_beta+0x290>
add    $0x78,%rsp
pop    %rbx
pop    %r12
pop    %r13
pop    %r14
pop    %r15
pop    %rbp
ret

LLVM IR (-O0):
define void @sample_beta(i32 %0, i32 %1, double* %2, double* %3, double* %4, double* %5, double %6, double %7, double %8) {
%10 = alloca i32
%11 = alloca i32
%12 = alloca double*
%13 = alloca double*
%14 = alloca double*
%15 = alloca double*
%16 = alloca double
%17 = alloca double
%18 = alloca double
%19 = alloca double*
%20 = alloca double
%21 = alloca double
%22 = alloca i32
%23 = alloca i32
store i32 %0, i32* %10
store i32 %1, i32* %11
store double* %2, double** %12
store double* %3, double** %13
store double* %4, double** %14
store double* %5, double** %15
store double %6, double* %16
store double %7, double* %17
store double %8, double* %18
%24 = load i32, i32* %10
%25 = sext i32 %24 to i64
%26 = mul i64 %25, 8
%27 = trunc i64 %26 to i32
%28 = call double* @malloc(i32 %27)
store double* %28, double** %19
store i32 0, i32* %22
br label %29
29: ; preds = %158, %9
%30 = load i32, i32* %22
%31 = load i32, i32* %11
%32 = icmp slt i32 %30, %31
br i1 %32, label %33, label %161
33: ; preds = %29
store double 0.000000e+00, double* %20
store i32 0, i32* %23
br label %34
34: ; preds = %84, %33
%35 = load i32, i32* %23
%36 = load i32, i32* %10
%37 = icmp slt i32 %35, %36
br i1 %37, label %38, label %87
38: ; preds = %34
%39 = load double*, double** %12
%40 = load i32, i32* %23
%41 = load i32, i32* %22
%42 = load i32, i32* %10
%43 = mul nsw i32 %41, %42
%44 = add nsw i32 %40, %43
%45 = sext i32 %44 to i64
%46 = getelementptr inbounds double, double* %39, i64 %45
%47 = load double, double* %46
%48 = load double*, double** %19
%49 = load i32, i32* %23
%50 = sext i32 %49 to i64
%51 = getelementptr inbounds double, double* %48, i64 %50
store double %47, double* %51
%52 = load double*, double** %15
%53 = load i32, i32* %23
%54 = sext i32 %53 to i64
%55 = getelementptr inbounds double, double* %52, i64 %54
%56 = load double, double* %55
%57 = load double*, double** %14
%58 = load i32, i32* %22
%59 = sext i32 %58 to i64
%60 = getelementptr inbounds double, double* %57, i64 %59
%61 = load double, double* %60
%62 = load double*, double** %19
%63 = load i32, i32* %23
%64 = sext i32 %63 to i64
%65 = getelementptr inbounds double, double* %62, i64 %64
%66 = load double, double* %65
%67 = call double @llvm.fmuladd.f64(double %61, double %66, double %56)
%68 = load double*, double** %15
%69 = load i32, i32* %23
%70 = sext i32 %69 to i64
%71 = getelementptr inbounds double, double* %68, i64 %70
store double %67, double* %71
%72 = load double*, double** %19
%73 = load i32, i32* %23
%74 = sext i32 %73 to i64
%75 = getelementptr inbounds double, double* %72, i64 %74
%76 = load double, double* %75
%77 = load double*, double** %15
%78 = load i32, i32* %23
%79 = sext i32 %78 to i64
%80 = getelementptr inbounds double, double* %77, i64 %79
%81 = load double, double* %80
%82 = load double, double* %20
%83 = call double @llvm.fmuladd.f64(double %76, double %81, double %82)
store double %83, double* %20
br label %84
84: ; preds = %38
%85 = load i32, i32* %23
%86 = add nsw i32 %85, 1
store i32 %86, i32* %23
br label %34
87: ; preds = %34
%88 = load double, double* %20
%89 = load double, double* %17
%90 = fdiv double %88, %89
store double %90, double* %20
%91 = load double*, double** %13
%92 = load i32, i32* %22
%93 = sext i32 %92 to i64
%94 = getelementptr inbounds double, double* %91, i64 %93
%95 = load double, double* %94
%96 = load double, double* %17
%97 = fdiv double %95, %96
%98 = load double, double* %16
%99 = fdiv double 1.000000e+00, %98
%100 = fadd double %97, %99
store double %100, double* %21
%101 = load double, double* %20
%102 = load double, double* %21
%103 = fdiv double %101, %102
%104 = load double, double* %21
%105 = fdiv double 1.000000e+00, %104
%106 = call double @sqrt(double %105)
%107 = call double @randn(double 0.000000e+00, double 1.000000e+00)
%108 = call double @llvm.fmuladd.f64(double %106, double %107, double %103)
%109 = load double*, double** %14
%110 = load i32, i32* %22
%111 = sext i32 %110 to i64
%112 = getelementptr inbounds double, double* %109, i64 %111
store double %108, double* %112
store i32 0, i32* %23
br label %113
113: ; preds = %139, %87
%114 = load i32, i32* %23
%115 = load i32, i32* %10
%116 = icmp slt i32 %114, %115
br i1 %116, label %117, label %142
117: ; preds = %113
%118 = load double*, double** %15
%119 = load i32, i32* %23
%120 = sext i32 %119 to i64
%121 = getelementptr inbounds double, double* %118, i64 %120
%122 = load double, double* %121
%123 = load double*, double** %14
%124 = load i32, i32* %22
%125 = sext i32 %124 to i64
%126 = getelementptr inbounds double, double* %123, i64 %125
%127 = load double, double* %126
%128 = load double*, double** %19
%129 = load i32, i32* %23
%130 = sext i32 %129 to i64
%131 = getelementptr inbounds double, double* %128, i64 %130
%132 = load double, double* %131
%133 = fneg double %127
%134 = call double @llvm.fmuladd.f64(double %133, double %132, double %122)
%135 = load double*, double** %15
%136 = load i32, i32* %23
%137 = sext i32 %136 to i64
%138 = getelementptr inbounds double, double* %135, i64 %137
store double %134, double* %138
br label %139
139: ; preds = %117
%140 = load i32, i32* %23
%141 = add nsw i32 %140, 1
store i32 %141, i32* %23
br label %113
142: ; preds = %113
%143 = load double*, double** %14
%144 = load i32, i32* %22
%145 = sext i32 %144 to i64
%146 = getelementptr inbounds double, double* %143, i64 %145
%147 = load double, double* %146
%148 = call double @llvm.fabs.f64(double %147)
%149 = load double, double* %18
%150 = fcmp olt double %148, %149
br i1 %150, label %151, label %157
151: ; preds = %142
%152 = load double, double* %18
%153 = load double*, double** %14
%154 = load i32, i32* %22
%155 = sext i32 %154 to i64
%156 = getelementptr inbounds double, double* %153, i64 %155
store double %152, double* %156
br label %157
157: ; preds = %151, %142
br label %158
158: ; preds = %157
%159 = load i32, i32* %22
%160 = add nsw i32 %159, 1
store i32 %160, i32* %22
br label %29
161: ; preds = %29
ret void
}

LLVM IR (-O2):
define void @sample_beta(i32 %0, i32 %1, double* nocapture %2, double* nocapture %3, double* nocapture %4, double* nocapture %5, double %6, double %7, double %8) {
%10 = shl i32 %0, 3
%11 = tail call double* @malloc(i32 %10)
%12 = icmp sgt i32 %1, 0
br i1 %12, label %13, label %129
13: ; preds = %9
%14 = icmp sgt i32 %0, 0
%15 = fdiv double 1.000000e+00, %6
%16 = sext i32 %0 to i64
%17 = zext i32 %1 to i64
%18 = zext i32 %0 to i64
%19 = add nsw i64 %18, -1
%20 = and i64 %18, 1
%21 = icmp eq i64 %19, 0
%22 = and i64 %18, 4294967294
%23 = icmp eq i64 %20, 0
%24 = and i64 %18, 1
%25 = icmp eq i64 %19, 0
%26 = and i64 %18, 4294967294
%27 = icmp eq i64 %24, 0
br label %28
28: ; preds = %13, %126
%29 = phi i64 [ 0, %13 ], [ %127, %126 ]
br i1 %14, label %30, label %73
30: ; preds = %28
%31 = mul nsw i64 %29, %16
%32 = getelementptr inbounds double, double* %4, i64 %29
br i1 %21, label %59, label %33
33: ; preds = %30, %33
%34 = phi i64 [ %56, %33 ], [ 0, %30 ]
%35 = phi double [ %55, %33 ], [ 0.000000e+00, %30 ]
%36 = phi i64 [ %57, %33 ], [ 0, %30 ]
%37 = add nsw i64 %34, %31
%38 = getelementptr inbounds double, double* %2, i64 %37
%39 = load double, double* %38
%40 = getelementptr inbounds double, double* %11, i64 %34
store double %39, double* %40
%41 = getelementptr inbounds double, double* %5, i64 %34
%42 = load double, double* %41
%43 = load double, double* %32
%44 = tail call double @llvm.fmuladd.f64(double %43, double %39, double %42)
store double %44, double* %41
%45 = tail call double @llvm.fmuladd.f64(double %39, double %44, double %35)
%46 = or i64 %34, 1
%47 = add nsw i64 %46, %31
%48 = getelementptr inbounds double, double* %2, i64 %47
%49 = load double, double* %48
%50 = getelementptr inbounds double, double* %11, i64 %46
store double %49, double* %50
%51 = getelementptr inbounds double, double* %5, i64 %46
%52 = load double, double* %51
%53 = load double, double* %32
%54 = tail call double @llvm.fmuladd.f64(double %53, double %49, double %52)
store double %54, double* %51
%55 = tail call double @llvm.fmuladd.f64(double %49, double %54, double %45)
%56 = add nuw nsw i64 %34, 2
%57 = add i64 %36, 2
%58 = icmp eq i64 %57, %22
br i1 %58, label %59, label %33
59: ; preds = %33, %30
%60 = phi double [ undef, %30 ], [ %55, %33 ]
%61 = phi i64 [ 0, %30 ], [ %56, %33 ]
%62 = phi double [ 0.000000e+00, %30 ], [ %55, %33 ]
br i1 %23, label %73, label %63
63: ; preds = %59
%64 = add nsw i64 %61, %31
%65 = getelementptr inbounds double, double* %2, i64 %64
%66 = load double, double* %65
%67 = getelementptr inbounds double, double* %11, i64 %61
store double %66, double* %67
%68 = getelementptr inbounds double, double* %5, i64 %61
%69 = load double, double* %68
%70 = load double, double* %32
%71 = tail call double @llvm.fmuladd.f64(double %70, double %66, double %69)
store double %71, double* %68
%72 = tail call double @llvm.fmuladd.f64(double %66, double %71, double %62)
br label %73
73: ; preds = %63, %59, %28
%74 = phi double [ 0.000000e+00, %28 ], [ %60, %59 ], [ %72, %63 ]
%75 = fdiv double %74, %7
%76 = getelementptr inbounds double, double* %3, i64 %29
%77 = load double, double* %76
%78 = fdiv double %77, %7
%79 = fadd double %15, %78
%80 = fdiv double %75, %79
%81 = fdiv double 1.000000e+00, %79
%82 = tail call double @sqrt(double %81)
%83 = tail call double @randn(double 0.000000e+00, double 1.000000e+00)
%84 = tail call double @llvm.fmuladd.f64(double %82, double %83, double %80)
%85 = getelementptr inbounds double, double* %4, i64 %29
store double %84, double* %85
br i1 %14, label %86, label %121
86: ; preds = %73
br i1 %25, label %109, label %87
87: ; preds = %86, %87
%88 = phi double [ %106, %87 ], [ %84, %86 ]
%89 = phi i64 [ %105, %87 ], [ 0, %86 ]
%90 = phi i64 [ %107, %87 ], [ 0, %86 ]
%91 = getelementptr inbounds double, double* %5, i64 %89
%92 = load double, double* %91
%93 = getelementptr inbounds double, double* %11, i64 %89
%94 = load double, double* %93
%95 = fneg double %88
%96 = tail call double @llvm.fmuladd.f64(double %95, double %94, double %92)
store double %96, double* %91
%97 = or i64 %89, 1
%98 = load double, double* %85
%99 = getelementptr inbounds double, double* %5, i64 %97
%100 = load double, double* %99
%101 = getelementptr inbounds double, double* %11, i64 %97
%102 = load double, double* %101
%103 = fneg double %98
%104 = tail call double @llvm.fmuladd.f64(double %103, double %102, double %100)
store double %104, double* %99
%105 = add nuw nsw i64 %89, 2
%106 = load double, double* %85
%107 = add i64 %90, 2
%108 = icmp eq i64 %107, %26
br i1 %108, label %109, label %87
109: ; preds = %87, %86
%110 = phi double [ undef, %86 ], [ %106, %87 ]
%111 = phi double [ %84, %86 ], [ %106, %87 ]
%112 = phi i64 [ 0, %86 ], [ %105, %87 ]
br i1 %27, label %121, label %113
113: ; preds = %109
%114 = getelementptr inbounds double, double* %5, i64 %112
%115 = load double, double* %114
%116 = getelementptr inbounds double, double* %11, i64 %112
%117 = load double, double* %116
%118 = fneg double %111
%119 = tail call double @llvm.fmuladd.f64(double %118, double %117, double %115)
store double %119, double* %114
%120 = load double, double* %85
br label %121
121: ; preds = %113, %109, %73
%122 = phi double [ %84, %73 ], [ %110, %109 ], [ %120, %113 ]
%123 = tail call double @llvm.fabs.f64(double %122)
%124 = fcmp olt double %123, %8
br i1 %124, label %125, label %126
125: ; preds = %121
store double %8, double* %85
br label %126
126: ; preds = %121, %125
%127 = add nuw nsw i64 %29, 1
%128 = icmp eq i64 %127, %17
br i1 %128, label %129, label %28
129: ; preds = %126, %9
ret void
}