#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 abs(double);
int /*<<< orphan*/ compute_event_plane(int, int, double *, int *, double **,
                                       double **, double **, int **);
scalar_t__ cos(int);
double pow(double, double);
void compute_flow_contrib(int ibin, int *ptCount, int *evCount,
                          double *EventBinFlowContrib,
                          double ptArray[10000][25], double phiArray[10000][25],
                          double rapArray[10000][25], int chArray[10000][25]) {
  int nch = 0;
  int i;
  double rapCutFlow = 1.0;
  double evtPlanes[2] = {0.0, 0.0};
  double v2Sum = 0.0;
  double v3Sum = 0.0;
  if (ptCount[ibin] > 0) {
    evCount[ibin]++;
    for (i = 0; i < ptCount[ibin]; i++) {
      if (abs(chArray[i][ibin]) > 0 && abs(rapArray[i][ibin]) <= rapCutFlow) {
        nch++;
        compute_event_plane(i, ibin, evtPlanes, ptCount, ptArray, phiArray,
                            rapArray, chArray);
        v2Sum += cos(2 * phiArray[i][ibin] - evtPlanes[0]);
        v3Sum += cos(3 * phiArray[i][ibin] - evtPlanes[1]);
      }
    }
  }
  if (nch > 0) {
    EventBinFlowContrib[0] = v2Sum / (double)nch;
    EventBinFlowContrib[1] = pow(v2Sum / (double)nch, 2.0);
    EventBinFlowContrib[2] = v3Sum / (double)nch;
    EventBinFlowContrib[3] = pow(v3Sum / (double)nch, 2.0);
  } else {
    EventBinFlowContrib[0] = 0.0;
    EventBinFlowContrib[1] = 0.0;
    EventBinFlowContrib[2] = 0.0;
    EventBinFlowContrib[3] = 0.0;
  }
}


x86 assembly (clang, -O0):
<compute_flow_contrib>:
push   %rbp
mov    %rsp,%rbp
sub    $0x70,%rsp
mov    0x18(%rbp),%rax
mov    0x10(%rbp),%rax
mov    %edi,-0x4(%rbp)
mov    %rsi,-0x10(%rbp)
mov    %rdx,-0x18(%rbp)
mov    %rcx,-0x20(%rbp)
mov    %r8,-0x28(%rbp)
mov    %r9,-0x30(%rbp)
movl   $0x0,-0x34(%rbp)
movsd  0xe7a(%rip),%xmm0
movsd  %xmm0,-0x40(%rbp)
lea    -0x50(%rbp),%rdi
xor    %esi,%esi
mov    $0x10,%edx
call   1040 <memset@plt>
xorps  %xmm0,%xmm0
movsd  %xmm0,-0x58(%rbp)
xorps  %xmm0,%xmm0
movsd  %xmm0,-0x60(%rbp)
mov    -0x10(%rbp),%rax
movslq -0x4(%rbp),%rcx
cmpl   $0x0,(%rax,%rcx,4)
jle    1348 <compute_flow_contrib+0x1f8>
mov    -0x18(%rbp),%rax
movslq -0x4(%rbp),%rcx
mov    (%rax,%rcx,4),%edx
add    $0x1,%edx
mov    %edx,(%rax,%rcx,4)
movl   $0x0,-0x38(%rbp)
mov    -0x38(%rbp),%eax
mov    -0x10(%rbp),%rcx
movslq -0x4(%rbp),%rdx
cmp    (%rcx,%rdx,4),%eax
jge    1343 <compute_flow_contrib+0x1f3>
mov    0x18(%rbp),%rax
movslq -0x38(%rbp),%rcx
imul   $0x64,%rcx,%rcx
add    %rcx,%rax
movslq -0x4(%rbp),%rcx
cvtsi2sdl (%rax,%rcx,4),%xmm0
call   1030 <abs@plt>
xorps  %xmm1,%xmm1
ucomisd %xmm1,%xmm0
jbe    1330 <compute_flow_contrib+0x1e0>
mov    0x10(%rbp),%rax
movslq -0x38(%rbp),%rcx
imul   $0xc8,%rcx,%rcx
add    %rcx,%rax
movslq -0x4(%rbp),%rcx
movsd  (%rax,%rcx,8),%xmm0
call   1030 <abs@plt>
movaps %xmm0,%xmm1
movsd  -0x40(%rbp),%xmm0
ucomisd %xmm1,%xmm0
jb     1330 <compute_flow_contrib+0x1e0>
mov    -0x34(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0x34(%rbp)
mov    -0x38(%rbp),%edi
mov    -0x4(%rbp),%esi
lea    -0x50(%rbp),%rdx
mov    -0x10(%rbp),%rcx
mov    -0x28(%rbp),%r8
mov    -0x30(%rbp),%r9
mov    0x10(%rbp),%r10
mov    0x18(%rbp),%rax
mov    %r10,(%rsp)
mov    %rax,0x8(%rsp)
call   1050 <compute_event_plane@plt>
mov    -0x30(%rbp),%rax
movslq -0x38(%rbp),%rcx
imul   $0xc8,%rcx,%rcx
add    %rcx,%rax
movslq -0x4(%rbp),%rcx
movsd  (%rax,%rcx,8),%xmm0
movsd  -0x50(%rbp),%xmm1
movq   %xmm1,%rax
movabs $0x8000000000000000,%rcx
xor    %rcx,%rax
movq   %rax,%xmm1
addsd  %xmm0,%xmm0
addsd  %xmm1,%xmm0
cvttsd2si %xmm0,%edi
call   1060 <cos@plt>
cvtsi2sd %rax,%xmm0
addsd  -0x58(%rbp),%xmm0
movsd  %xmm0,-0x58(%rbp)
mov    -0x30(%rbp),%rax
movslq -0x38(%rbp),%rcx
imul   $0xc8,%rcx,%rcx
add    %rcx,%rax
movslq -0x4(%rbp),%rcx
movsd  (%rax,%rcx,8),%xmm0
movsd  -0x48(%rbp),%xmm1
movq   %xmm1,%rax
movabs $0x8000000000000000,%rcx
xor    %rcx,%rax
movq   %rax,%xmm1
movsd  0xd00(%rip),%xmm2
mulsd  %xmm2,%xmm0
addsd  %xmm1,%xmm0
cvttsd2si %xmm0,%edi
call   1060 <cos@plt>
cvtsi2sd %rax,%xmm0
addsd  -0x60(%rbp),%xmm0
movsd  %xmm0,-0x60(%rbp)
jmp    1335 <compute_flow_contrib+0x1e5>
mov    -0x38(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0x38(%rbp)
jmp    11d5 <compute_flow_contrib+0x85>
jmp    1348 <compute_flow_contrib+0x1f8>
cmpl   $0x0,-0x34(%rbp)
jle    13cc <compute_flow_contrib+0x27c>
movsd  -0x58(%rbp),%xmm0
cvtsi2sdl -0x34(%rbp),%xmm1
divsd  %xmm1,%xmm0
mov    -0x20(%rbp),%rax
movsd  %xmm0,(%rax)
movsd  -0x58(%rbp),%xmm0
cvtsi2sdl -0x34(%rbp),%xmm1
divsd  %xmm1,%xmm0
movsd  0xc8a(%rip),%xmm1
call   1070 <pow@plt>
mov    -0x20(%rbp),%rax
movsd  %xmm0,0x8(%rax)
movsd  -0x60(%rbp),%xmm0
cvtsi2sdl -0x34(%rbp),%xmm1
divsd  %xmm1,%xmm0
mov    -0x20(%rbp),%rax
movsd  %xmm0,0x10(%rax)
movsd  -0x60(%rbp),%xmm0
cvtsi2sdl -0x34(%rbp),%xmm1
divsd  %xmm1,%xmm0
movsd  0xc4f(%rip),%xmm1
call   1070 <pow@plt>
mov    -0x20(%rbp),%rax
movsd  %xmm0,0x18(%rax)
jmp    13fb <compute_flow_contrib+0x2ab>
mov    -0x20(%rbp),%rax
xorps  %xmm0,%xmm0
movsd  %xmm0,(%rax)
mov    -0x20(%rbp),%rax
xorps  %xmm0,%xmm0
movsd  %xmm0,0x8(%rax)
mov    -0x20(%rbp),%rax
xorps  %xmm0,%xmm0
movsd  %xmm0,0x10(%rax)
mov    -0x20(%rbp),%rax
xorps  %xmm0,%xmm0
movsd  %xmm0,0x18(%rax)
add    $0x70,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<compute_flow_contrib>:
push   %rbp
push   %r15
push   %r14
push   %r13
push   %r12
push   %rbx
sub    $0x48,%rsp
mov    %r8,0x40(%rsp)
xorpd  %xmm0,%xmm0
movapd %xmm0,0x20(%rsp)
mov    %edi,0x1c(%rsp)
movslq %edi,%r14
cmpl   $0x0,(%rsi,%r14,4)
jle    12db <compute_flow_contrib+0x1ab>
mov    %rsi,%rbx
addl   $0x1,(%rdx,%r14,4)
cmpl   $0x0,(%rsi,%r14,4)
jle    12db <compute_flow_contrib+0x1ab>
mov    %r9,%r12
mov    %rcx,0x38(%rsp)
mov    0x80(%rsp),%r15
lea    0x0(,%r14,4),%r13
xor    %ebp,%ebp
xorpd  %xmm0,%xmm0
movsd  %xmm0,0x10(%rsp)
xorpd  %xmm0,%xmm0
movsd  %xmm0,0x8(%rsp)
movl   $0x0,0x4(%rsp)
jmp    11c5 <compute_flow_contrib+0x95>
nopw   0x0(%rax,%rax,1)
add    $0x1,%rbp
movslq (%rbx,%r14,4),%rax
add    $0x64,%r13
cmp    %rax,%rbp
jge    1296 <compute_flow_contrib+0x166>
mov    0x88(%rsp),%rax
xorps  %xmm0,%xmm0
cvtsi2sdl (%rax,%r13,1),%xmm0
call   1030 <abs@plt>
ucomisd 0xe2d(%rip),%xmm0
jbe    11b0 <compute_flow_contrib+0x80>
movsd  (%r15,%r13,2),%xmm0
call   1030 <abs@plt>
movsd  0xe08(%rip),%xmm1
ucomisd %xmm0,%xmm1
jb     11b0 <compute_flow_contrib+0x80>
addl   $0x1,0x4(%rsp)
mov    %ebp,%edi
mov    0x1c(%rsp),%esi
lea    0x20(%rsp),%rdx
mov    %rbx,%rcx
mov    0x40(%rsp),%r8
mov    %r12,%r9
push   0x88(%rsp)
push   %r15
call   1040 <compute_event_plane@plt>
add    $0x10,%rsp
movsd  (%r12,%r13,2),%xmm0
addsd  %xmm0,%xmm0
subsd  0x20(%rsp),%xmm0
cvttsd2si %xmm0,%edi
call   1050 <cos@plt>
xorps  %xmm0,%xmm0
cvtsi2sd %rax,%xmm0
movsd  0x8(%rsp),%xmm1
addsd  %xmm0,%xmm1
movsd  %xmm1,0x8(%rsp)
movsd  (%r12,%r13,2),%xmm0
mulsd  0xd9e(%rip),%xmm0
subsd  0x28(%rsp),%xmm0
cvttsd2si %xmm0,%edi
call   1050 <cos@plt>
xorps  %xmm0,%xmm0
cvtsi2sd %rax,%xmm0
movsd  0x10(%rsp),%xmm1
addsd  %xmm0,%xmm1
movsd  %xmm1,0x10(%rsp)
jmp    11b0 <compute_flow_contrib+0x80>
mov    0x4(%rsp),%eax
test   %eax,%eax
mov    0x38(%rsp),%rcx
jle    12db <compute_flow_contrib+0x1ab>
xorps  %xmm0,%xmm0
cvtsi2sd %eax,%xmm0
movsd  0x8(%rsp),%xmm1
divsd  %xmm0,%xmm1
movsd  %xmm1,(%rcx)
mulsd  %xmm1,%xmm1
movsd  %xmm1,0x8(%rcx)
movsd  0x10(%rsp),%xmm1
divsd  %xmm0,%xmm1
movsd  %xmm1,0x10(%rcx)
mulsd  %xmm1,%xmm1
movsd  %xmm1,0x18(%rcx)
jmp    12e8 <compute_flow_contrib+0x1b8>
xorpd  %xmm0,%xmm0
movupd %xmm0,0x10(%rcx)
movupd %xmm0,(%rcx)
add    $0x48,%rsp
pop    %rbx
pop    %r12
pop    %r13
pop    %r14
pop    %r15
pop    %rbp
ret

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

LLVM IR (-O2):
define void @compute_flow_contrib(i32 %0, i32* %1, i32* nocapture %2, double* nocapture writeonly %3, [25 x double]* %4, [25 x double]* %5, [25 x double]* %6, [25 x i32]* %7) {
%9 = alloca [2 x double]
%10 = bitcast [2 x double]* %9 to i8*
%11 = sext i32 %0 to i64
%12 = getelementptr inbounds i32, i32* %1, i64 %11
%13 = load i32, i32* %12
%14 = icmp sgt i32 %13, 0
br i1 %14, label %15, label %83
15: ; preds = %8
%16 = getelementptr inbounds i32, i32* %2, i64 %11
%17 = load i32, i32* %16
%18 = add nsw i32 %17, 1
store i32 %18, i32* %16
%19 = load i32, i32* %12
%20 = icmp sgt i32 %19, 0
br i1 %20, label %21, label %83
21: ; preds = %15
%22 = getelementptr inbounds [2 x double], [2 x double]* %9, i64 0, i64 0
%23 = bitcast [25 x double]* %4 to double**
%24 = bitcast [25 x double]* %5 to double**
%25 = bitcast [25 x double]* %6 to double**
%26 = bitcast [25 x i32]* %7 to i32**
%27 = getelementptr inbounds [2 x double], [2 x double]* %9, i64 0, i64 1
br label %28
28: ; preds = %21, %64
%29 = phi i64 [ 0, %21 ], [ %68, %64 ]
%30 = phi double [ 0.000000e+00, %21 ], [ %67, %64 ]
%31 = phi double [ 0.000000e+00, %21 ], [ %66, %64 ]
%32 = phi i32 [ 0, %21 ], [ %65, %64 ]
%33 = getelementptr inbounds [25 x i32], [25 x i32]* %7, i64 %29, i64 %11
%34 = load i32, i32* %33
%35 = sitofp i32 %34 to double
%36 = call double @abs(double %35)
%37 = fcmp ogt double %36, 0.000000e+00
br i1 %37, label %38, label %64
38: ; preds = %28
%39 = getelementptr inbounds [25 x double], [25 x double]* %6, i64 %29, i64 %11
%40 = load double, double* %39
%41 = call double @abs(double %40)
%42 = fcmp ugt double %41, 1.000000e+00
br i1 %42, label %64, label %43
43: ; preds = %38
%44 = add nsw i32 %32, 1
%45 = trunc i64 %29 to i32
%46 = call i32 @compute_event_plane(i32 %45, i32 %0, double* %22, i32* %1, double** %23, double** %24, double** %25, i32** %26)
%47 = getelementptr inbounds [25 x double], [25 x double]* %5, i64 %29, i64 %11
%48 = load double, double* %47
%49 = load double, double* %22
%50 = fneg double %49
%51 = call double @llvm.fmuladd.f64(double %48, double 2.000000e+00, double %50)
%52 = fptosi double %51 to i32
%53 = call i64 @cos(i32 %52)
%54 = sitofp i64 %53 to double
%55 = fadd double %31, %54
%56 = load double, double* %47
%57 = load double, double* %27
%58 = fneg double %57
%59 = call double @llvm.fmuladd.f64(double %56, double 3.000000e+00, double %58)
%60 = fptosi double %59 to i32
%61 = call i64 @cos(i32 %60)
%62 = sitofp i64 %61 to double
%63 = fadd double %30, %62
br label %64
64: ; preds = %28, %38, %43
%65 = phi i32 [ %44, %43 ], [ %32, %38 ], [ %32, %28 ]
%66 = phi double [ %55, %43 ], [ %31, %38 ], [ %31, %28 ]
%67 = phi double [ %63, %43 ], [ %30, %38 ], [ %30, %28 ]
%68 = add nuw nsw i64 %29, 1
%69 = load i32, i32* %12
%70 = sext i32 %69 to i64
%71 = icmp slt i64 %68, %70
br i1 %71, label %28, label %72
72: ; preds = %64
%73 = icmp sgt i32 %65, 0
br i1 %73, label %74, label %83
74: ; preds = %72
%75 = sitofp i32 %65 to double
%76 = fdiv double %66, %75
store double %76, double* %3
%77 = fmul double %76, %76
%78 = getelementptr inbounds double, double* %3, i64 1
store double %77, double* %78
%79 = fdiv double %67, %75
%80 = getelementptr inbounds double, double* %3, i64 2
store double %79, double* %80
%81 = fmul double %79, %79
%82 = getelementptr inbounds double, double* %3, i64 3
store double %81, double* %82
br label %85
83: ; preds = %15, %8, %72
%84 = bitcast double* %3 to i8*
br label %85
85: ; preds = %83, %74
ret void
}