#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*/ CosEvalPts(int, double *);
int /*<<< orphan*/ CosEvalPts2(int, double *);
int /*<<< orphan*/ SinEvalPts(int, double *);
int /*<<< orphan*/ SinEvalPts2(int, double *);
int /*<<< orphan*/ genWig_L2(int, int, int, double *, double *, double *,
                             double *, double *, double *);
void genWigAll(int bw, double *wigners, double *workspace) {
  int m1, m2, n;
  double *sinPts, *cosPts;
  double *sinPts2, *cosPts2;
  double *scratch;
  n = 2 * bw;
  sinPts = workspace;
  cosPts = sinPts + n;
  sinPts2 = cosPts + n;
  cosPts2 = sinPts2 + n;
  scratch = cosPts2 + n;
  SinEvalPts(n, sinPts);
  CosEvalPts(n, cosPts);
  SinEvalPts2(n, sinPts2);
  CosEvalPts2(n, cosPts2);
  genWig_L2(0, 0, bw, sinPts, cosPts, sinPts2, cosPts2, wigners, scratch);
  wigners += bw * n;
  for (m1 = 1; m1 < bw; m1++) {
    genWig_L2(m1, m1, bw, sinPts, cosPts, sinPts2, cosPts2, wigners, scratch);
    wigners += n * (bw - m1);
  }
  for (m1 = 1; m1 < bw; m1++) {
    genWig_L2(m1, 0, bw, sinPts, cosPts, sinPts2, cosPts2, wigners, scratch);
    wigners += n * (bw - m1);
  }
  for (m1 = 1; m1 < bw; m1++)
    for (m2 = m1 + 1; m2 < bw; m2++) {
      genWig_L2(m1, m2, bw, sinPts, cosPts, sinPts2, cosPts2, wigners, scratch);
      wigners += n * (bw - m2);
    }
}


x86 assembly (clang, -O0):
<genWigAll>:
push   %rbp
mov    %rsp,%rbp
sub    $0x70,%rsp
mov    %edi,-0x4(%rbp)
mov    %rsi,-0x10(%rbp)
mov    %rdx,-0x18(%rbp)
mov    -0x4(%rbp),%eax
shl    $0x1,%eax
mov    %eax,-0x24(%rbp)
mov    -0x18(%rbp),%rax
mov    %rax,-0x30(%rbp)
mov    -0x30(%rbp),%rax
movslq -0x24(%rbp),%rcx
shl    $0x3,%rcx
add    %rcx,%rax
mov    %rax,-0x38(%rbp)
mov    -0x38(%rbp),%rax
movslq -0x24(%rbp),%rcx
shl    $0x3,%rcx
add    %rcx,%rax
mov    %rax,-0x40(%rbp)
mov    -0x40(%rbp),%rax
movslq -0x24(%rbp),%rcx
shl    $0x3,%rcx
add    %rcx,%rax
mov    %rax,-0x48(%rbp)
mov    -0x48(%rbp),%rax
movslq -0x24(%rbp),%rcx
shl    $0x3,%rcx
add    %rcx,%rax
mov    %rax,-0x50(%rbp)
mov    -0x24(%rbp),%edi
mov    -0x30(%rbp),%rsi
call   1060 <SinEvalPts@plt>
mov    -0x24(%rbp),%edi
mov    -0x38(%rbp),%rsi
call   1070 <CosEvalPts@plt>
mov    -0x24(%rbp),%edi
mov    -0x40(%rbp),%rsi
call   1050 <SinEvalPts2@plt>
mov    -0x24(%rbp),%edi
mov    -0x48(%rbp),%rsi
call   1040 <CosEvalPts2@plt>
mov    -0x4(%rbp),%edx
mov    -0x30(%rbp),%rcx
mov    -0x38(%rbp),%r8
mov    -0x40(%rbp),%r9
mov    -0x48(%rbp),%r11
mov    -0x10(%rbp),%r10
mov    -0x50(%rbp),%rax
xor    %esi,%esi
mov    %esi,%edi
mov    %r11,(%rsp)
mov    %r10,0x8(%rsp)
mov    %rax,0x10(%rsp)
call   1030 <genWig_L2@plt>
mov    -0x4(%rbp),%ecx
imul   -0x24(%rbp),%ecx
mov    -0x10(%rbp),%rax
movslq %ecx,%rcx
shl    $0x3,%rcx
add    %rcx,%rax
mov    %rax,-0x10(%rbp)
movl   $0x1,-0x1c(%rbp)
mov    -0x1c(%rbp),%eax
cmp    -0x4(%rbp),%eax
jge    12ae <genWigAll+0x15e>
mov    -0x1c(%rbp),%edi
mov    -0x1c(%rbp),%esi
mov    -0x4(%rbp),%edx
mov    -0x30(%rbp),%rcx
mov    -0x38(%rbp),%r8
mov    -0x40(%rbp),%r9
mov    -0x48(%rbp),%r11
mov    -0x10(%rbp),%r10
mov    -0x50(%rbp),%rax
mov    %r11,(%rsp)
mov    %r10,0x8(%rsp)
mov    %rax,0x10(%rsp)
call   1030 <genWig_L2@plt>
mov    -0x24(%rbp),%ecx
mov    -0x4(%rbp),%eax
sub    -0x1c(%rbp),%eax
imul   %eax,%ecx
mov    -0x10(%rbp),%rax
movslq %ecx,%rcx
shl    $0x3,%rcx
add    %rcx,%rax
mov    %rax,-0x10(%rbp)
mov    -0x1c(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0x1c(%rbp)
jmp    1242 <genWigAll+0xf2>
movl   $0x1,-0x1c(%rbp)
mov    -0x1c(%rbp),%eax
cmp    -0x4(%rbp),%eax
jge    1320 <genWigAll+0x1d0>
mov    -0x1c(%rbp),%edi
mov    -0x4(%rbp),%edx
mov    -0x30(%rbp),%rcx
mov    -0x38(%rbp),%r8
mov    -0x40(%rbp),%r9
mov    -0x48(%rbp),%r11
mov    -0x10(%rbp),%r10
mov    -0x50(%rbp),%rax
xor    %esi,%esi
mov    %r11,(%rsp)
mov    %r10,0x8(%rsp)
mov    %rax,0x10(%rsp)
call   1030 <genWig_L2@plt>
mov    -0x24(%rbp),%ecx
mov    -0x4(%rbp),%eax
sub    -0x1c(%rbp),%eax
imul   %eax,%ecx
mov    -0x10(%rbp),%rax
movslq %ecx,%rcx
shl    $0x3,%rcx
add    %rcx,%rax
mov    %rax,-0x10(%rbp)
mov    -0x1c(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0x1c(%rbp)
jmp    12b5 <genWigAll+0x165>
movl   $0x1,-0x1c(%rbp)
mov    -0x1c(%rbp),%eax
cmp    -0x4(%rbp),%eax
jge    13bb <genWigAll+0x26b>
mov    -0x1c(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0x20(%rbp)
mov    -0x20(%rbp),%eax
cmp    -0x4(%rbp),%eax
jge    13a8 <genWigAll+0x258>
mov    -0x1c(%rbp),%edi
mov    -0x20(%rbp),%esi
mov    -0x4(%rbp),%edx
mov    -0x30(%rbp),%rcx
mov    -0x38(%rbp),%r8
mov    -0x40(%rbp),%r9
mov    -0x48(%rbp),%r11
mov    -0x10(%rbp),%r10
mov    -0x50(%rbp),%rax
mov    %r11,(%rsp)
mov    %r10,0x8(%rsp)
mov    %rax,0x10(%rsp)
call   1030 <genWig_L2@plt>
mov    -0x24(%rbp),%ecx
mov    -0x4(%rbp),%eax
sub    -0x20(%rbp),%eax
imul   %eax,%ecx
mov    -0x10(%rbp),%rax
movslq %ecx,%rcx
shl    $0x3,%rcx
add    %rcx,%rax
mov    %rax,-0x10(%rbp)
mov    -0x20(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0x20(%rbp)
jmp    133c <genWigAll+0x1ec>
jmp    13ad <genWigAll+0x25d>
mov    -0x1c(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0x1c(%rbp)
jmp    1327 <genWigAll+0x1d7>
add    $0x70,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<genWigAll>:
push   %rbp
push   %r15
push   %r14
push   %r13
push   %r12
push   %rbx
sub    $0x58,%rsp
mov    %rdx,%r12
mov    %rsi,0x8(%rsp)
mov    %edi,%r14d
lea    (%r14,%r14,1),%eax
movslq %eax,%rbx
lea    (%rdx,%rbx,8),%rbp
lea    0x0(%rbp,%rbx,8),%r15
lea    (%r15,%rbx,8),%r13
lea    0x0(%r13,%rbx,8),%rax
mov    %rax,(%rsp)
mov    %ebx,%edi
mov    %rdx,%rsi
call   1060 <SinEvalPts@plt>
mov    %ebx,%edi
mov    %rbp,%rsi
call   1070 <CosEvalPts@plt>
mov    %ebx,%edi
mov    %r15,%rsi
call   1050 <SinEvalPts2@plt>
mov    %ebx,%edi
mov    %r13,%rsi
call   1040 <CosEvalPts2@plt>
sub    $0x8,%rsp
xor    %edi,%edi
xor    %esi,%esi
mov    %r14d,%edx
mov    %r12,0x20(%rsp)
mov    %r12,%rcx
mov    0x10(%rsp),%r12
mov    %rbp,0x38(%rsp)
mov    %rbp,%r8
mov    %r15,%r9
push   0x8(%rsp)
push   %r12
mov    %r13,0x28(%rsp)
push   %r13
call   1030 <genWig_L2@plt>
mov    %r14,%rcx
add    $0x20,%rsp
cmp    $0x2,%ecx
jl     1397 <genWigAll+0x247>
mov    %rbx,%rsi
mov    %r15,%r9
mov    %ecx,%edx
mov    %esi,%eax
imul   %ecx,%eax
cltq
lea    (%r12,%rax,8),%r13
lea    -0x1(%rdx),%r15
mov    %r15,%rbx
imul   %rsi,%rbx
mov    $0x1,%ebp
mov    %rsi,0x28(%rsp)
mov    %rdx,0x20(%rsp)
sub    $0x8,%rsp
mov    %ebp,%edi
mov    %ebp,%esi
mov    %rcx,%r12
mov    %r12d,%edx
mov    0x20(%rsp),%rcx
mov    0x38(%rsp),%r8
mov    %r9,%r14
push   0x8(%rsp)
push   %r13
push   0x28(%rsp)
call   1030 <genWig_L2@plt>
mov    %r14,%r9
mov    0x40(%rsp),%rdx
mov    0x48(%rsp),%rsi
mov    %r12,%rcx
add    $0x20,%rsp
lea    0x0(%r13,%rbx,8),%r13
add    $0x1,%rbp
sub    %rsi,%rbx
cmp    %rbp,%rdx
jne    1220 <genWigAll+0xd0>
cmp    $0x2,%ecx
mov    0x18(%rsp),%rbx
jl     1397 <genWigAll+0x247>
imul   %rsi,%r15
mov    $0x1,%ebp
cs nopw 0x0(%rax,%rax,1)
sub    $0x8,%rsp
mov    %ebp,%edi
xor    %esi,%esi
mov    %rbx,%rcx
mov    0x38(%rsp),%r8
mov    %r14,%r9
push   0x8(%rsp)
push   %r13
push   0x28(%rsp)
call   1030 <genWig_L2@plt>
mov    0x40(%rsp),%rdx
mov    0x48(%rsp),%rax
add    $0x20,%rsp
lea    0x0(%r13,%r15,8),%r13
add    $0x1,%rbp
sub    %rax,%r15
cmp    %rbp,%rdx
jne    1290 <genWigAll+0x140>
mov    %r14,%rcx
cmp    $0x2,%r12d
jl     1397 <genWigAll+0x247>
add    $0x1,%r12d
mov    %r12,0x40(%rsp)
lea    -0x2(%rdx),%rsi
imul   %rax,%rsi
mov    $0x1,%edi
mov    $0x2,%ebp
mov    %rcx,0x50(%rsp)
mov    0x10(%rsp),%r12
mov    (%rsp),%r15
jmp    132c <genWigAll+0x1dc>
nopl   0x0(%rax)
mov    0x48(%rsp),%rbp
add    $0x1,%rbp
mov    0x8(%rsp),%rsi
sub    %rax,%rsi
cmp    0x40(%rsp),%rbp
mov    0x3c(%rsp),%edi
je     1397 <genWigAll+0x247>
mov    %edi,%r14d
lea    0x1(%r14),%ebx
cmp    %edx,%ebx
mov    %rsi,0x8(%rsp)
mov    %rbp,0x48(%rsp)
mov    %ebx,0x3c(%rsp)
jge    1310 <genWigAll+0x1c0>
mov    %rsi,%rbx
nopl   0x0(%rax,%rax,1)
sub    $0x8,%rsp
mov    %r14d,%edi
mov    %ebp,%esi
mov    0x20(%rsp),%rcx
mov    0x38(%rsp),%r8
mov    0x58(%rsp),%r9
push   %r15
push   %r13
push   %r12
call   1030 <genWig_L2@plt>
mov    0x40(%rsp),%rdx
mov    0x48(%rsp),%rax
add    $0x20,%rsp
lea    0x0(%r13,%rbx,8),%r13
add    $0x1,%rbp
sub    %rax,%rbx
cmp    %rbp,%rdx
jne    1350 <genWigAll+0x200>
jmp    1310 <genWigAll+0x1c0>
add    $0x58,%rsp
pop    %rbx
pop    %r12
pop    %r13
pop    %r14
pop    %r15
pop    %rbp
ret

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

LLVM IR (-O2):
define void @genWigAll(i32 %0, double* %1, double* %2) {
%4 = shl nsw i32 %0, 1
%5 = sext i32 %4 to i64
%6 = getelementptr inbounds double, double* %2, i64 %5
%7 = getelementptr inbounds double, double* %6, i64 %5
%8 = getelementptr inbounds double, double* %7, i64 %5
%9 = getelementptr inbounds double, double* %8, i64 %5
%10 = tail call i32 @SinEvalPts(i32 %4, double* %2)
%11 = tail call i32 @CosEvalPts(i32 %4, double* %6)
%12 = tail call i32 @SinEvalPts2(i32 %4, double* %7)
%13 = tail call i32 @CosEvalPts2(i32 %4, double* %8)
%14 = tail call i32 @genWig_L2(i32 0, i32 0, i32 %0, double* %2, double* %6, double* %7, double* %8, double* %1, double* %9)
%15 = icmp sgt i32 %0, 1
br i1 %15, label %16, label %72
16: ; preds = %3
%17 = mul nsw i32 %4, %0
%18 = sext i32 %17 to i64
%19 = getelementptr inbounds double, double* %1, i64 %18
%20 = zext i32 %0 to i64
%21 = zext i32 %0 to i64
br label %26
22: ; preds = %26
br i1 %15, label %23, label %72
23: ; preds = %22
%24 = zext i32 %0 to i64
%25 = zext i32 %0 to i64
br label %42
26: ; preds = %16, %26
%27 = phi i64 [ 1, %16 ], [ %34, %26 ]
%28 = phi double* [ %19, %16 ], [ %33, %26 ]
%29 = trunc i64 %27 to i32
%30 = tail call i32 @genWig_L2(i32 %29, i32 %29, i32 %0, double* %2, double* %6, double* %7, double* %8, double* %28, double* %9)
%31 = sub nsw i64 %20, %27
%32 = mul nsw i64 %31, %5
%33 = getelementptr inbounds double, double* %28, i64 %32
%34 = add nuw nsw i64 %27, 1
%35 = icmp eq i64 %34, %21
br i1 %35, label %22, label %26
36: ; preds = %42
br i1 %15, label %37, label %72
37: ; preds = %36
%38 = zext i32 %0 to i64
%39 = add nuw i32 %0, 1
%40 = zext i32 %39 to i64
%41 = zext i32 %0 to i64
br label %56
42: ; preds = %23, %42
%43 = phi i64 [ 1, %23 ], [ %50, %42 ]
%44 = phi double* [ %33, %23 ], [ %49, %42 ]
%45 = trunc i64 %43 to i32
%46 = tail call i32 @genWig_L2(i32 %45, i32 0, i32 %0, double* %2, double* %6, double* %7, double* %8, double* %44, double* %9)
%47 = sub nsw i64 %24, %43
%48 = mul nsw i64 %47, %5
%49 = getelementptr inbounds double, double* %44, i64 %48
%50 = add nuw nsw i64 %43, 1
%51 = icmp eq i64 %50, %25
br i1 %51, label %36, label %42
52: ; preds = %62, %56
%53 = phi double* [ %58, %56 ], [ %69, %62 ]
%54 = add nuw nsw i64 %57, 1
%55 = icmp eq i64 %54, %40
br i1 %55, label %72, label %56
56: ; preds = %37, %52
%57 = phi i64 [ 2, %37 ], [ %54, %52 ]
%58 = phi double* [ %49, %37 ], [ %53, %52 ]
%59 = phi i32 [ 1, %37 ], [ %60, %52 ]
%60 = add nuw nsw i32 %59, 1
%61 = icmp slt i32 %60, %0
br i1 %61, label %62, label %52
62: ; preds = %56, %62
%63 = phi i64 [ %70, %62 ], [ %57, %56 ]
%64 = phi double* [ %69, %62 ], [ %58, %56 ]
%65 = trunc i64 %63 to i32
%66 = tail call i32 @genWig_L2(i32 %59, i32 %65, i32 %0, double* %2, double* %6, double* %7, double* %8, double* %64, double* %9)
%67 = sub nsw i64 %38, %63
%68 = mul nsw i64 %67, %5
%69 = getelementptr inbounds double, double* %64, i64 %68
%70 = add nuw nsw i64 %63, 1
%71 = icmp eq i64 %70, %41
br i1 %71, label %52, label %62
72: ; preds = %52, %3, %22, %36
ret void
}