#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 */
scalar_t__ SphGenOh(double *, int, double, double, double);
int MakeAngularGrid_434(double (*pOut)[4]) {
  double a = 0, b = 0, v;
  int N = 0;
  v = 0.5265897968224436e-3;
  N += SphGenOh(&pOut[N][0], 0, a, b, v);
  v = 0.2548219972002607e-2;
  N += SphGenOh(&pOut[N][0], 1, a, b, v);
  v = 0.2512317418927307e-2;
  N += SphGenOh(&pOut[N][0], 2, a, b, v);
  a = 0.6909346307509111e+0;
  v = 0.2530403801186355e-2;
  N += SphGenOh(&pOut[N][0], 3, a, b, v);
  a = 0.1774836054609158e+0;
  v = 0.2014279020918528e-2;
  N += SphGenOh(&pOut[N][0], 3, a, b, v);
  a = 0.4914342637784746e+0;
  v = 0.2501725168402936e-2;
  N += SphGenOh(&pOut[N][0], 3, a, b, v);
  a = 0.6456664707424256e+0;
  v = 0.2513267174597564e-2;
  N += SphGenOh(&pOut[N][0], 3, a, b, v);
  a = 0.2861289010307638e+0;
  v = 0.2302694782227416e-2;
  N += SphGenOh(&pOut[N][0], 3, a, b, v);
  a = 0.7568084367178018e-1;
  v = 0.1462495621594614e-2;
  N += SphGenOh(&pOut[N][0], 3, a, b, v);
  a = 0.3927259763368002e+0;
  v = 0.2445373437312980e-2;
  N += SphGenOh(&pOut[N][0], 3, a, b, v);
  a = 0.8818132877794288e+0;
  v = 0.2417442375638981e-2;
  N += SphGenOh(&pOut[N][0], 4, a, b, v);
  a = 0.9776428111182649e+0;
  v = 0.1910951282179532e-2;
  N += SphGenOh(&pOut[N][0], 4, a, b, v);
  a = 0.2054823696403044e+0;
  b = 0.8689460322872412e+0;
  v = 0.2416930044324775e-2;
  N += SphGenOh(&pOut[N][0], 5, a, b, v);
  a = 0.5905157048925271e+0;
  b = 0.7999278543857286e+0;
  v = 0.2512236854563495e-2;
  N += SphGenOh(&pOut[N][0], 5, a, b, v);
  a = 0.5550152361076807e+0;
  b = 0.7717462626915901e+0;
  v = 0.2496644054553086e-2;
  N += SphGenOh(&pOut[N][0], 5, a, b, v);
  a = 0.9371809858553722e+0;
  b = 0.3344363145343455e+0;
  v = 0.2236607760437849e-2;
  N += SphGenOh(&pOut[N][0], 5, a, b, v);
  return N;
}


x86 assembly (clang, -O0):
<MakeAngularGrid_434>:
push   %rbp
mov    %rsp,%rbp
sub    $0x30,%rsp
mov    %rdi,-0x8(%rbp)
xorps  %xmm0,%xmm0
movsd  %xmm0,-0x10(%rbp)
xorps  %xmm0,%xmm0
movsd  %xmm0,-0x18(%rbp)
movl   $0x0,-0x24(%rbp)
movsd  0xfc5(%rip),%xmm0
movsd  %xmm0,-0x20(%rbp)
mov    -0x8(%rbp),%rdi
movslq -0x24(%rbp),%rax
shl    $0x5,%rax
add    %rax,%rdi
movsd  -0x10(%rbp),%xmm0
movsd  -0x18(%rbp),%xmm1
movsd  -0x20(%rbp),%xmm2
xor    %esi,%esi
call   1030 <SphGenOh@plt>
mov    %rax,%rcx
movslq -0x24(%rbp),%rax
add    %rcx,%rax
mov    %eax,-0x24(%rbp)
movsd  0xf7e(%rip),%xmm0
movsd  %xmm0,-0x20(%rbp)
mov    -0x8(%rbp),%rdi
movslq -0x24(%rbp),%rax
shl    $0x5,%rax
add    %rax,%rdi
movsd  -0x10(%rbp),%xmm0
movsd  -0x18(%rbp),%xmm1
movsd  -0x20(%rbp),%xmm2
mov    $0x1,%esi
call   1030 <SphGenOh@plt>
mov    %rax,%rcx
movslq -0x24(%rbp),%rax
add    %rcx,%rax
mov    %eax,-0x24(%rbp)
movsd  0xf34(%rip),%xmm0
movsd  %xmm0,-0x20(%rbp)
mov    -0x8(%rbp),%rdi
movslq -0x24(%rbp),%rax
shl    $0x5,%rax
add    %rax,%rdi
movsd  -0x10(%rbp),%xmm0
movsd  -0x18(%rbp),%xmm1
movsd  -0x20(%rbp),%xmm2
mov    $0x2,%esi
call   1030 <SphGenOh@plt>
mov    %rax,%rcx
movslq -0x24(%rbp),%rax
add    %rcx,%rax
mov    %eax,-0x24(%rbp)
movsd  0xeea(%rip),%xmm0
movsd  %xmm0,-0x10(%rbp)
movsd  0xed5(%rip),%xmm0
movsd  %xmm0,-0x20(%rbp)
mov    -0x8(%rbp),%rdi
movslq -0x24(%rbp),%rax
shl    $0x5,%rax
add    %rax,%rdi
movsd  -0x10(%rbp),%xmm0
movsd  -0x18(%rbp),%xmm1
movsd  -0x20(%rbp),%xmm2
mov    $0x3,%esi
call   1030 <SphGenOh@plt>
mov    %rax,%rcx
movslq -0x24(%rbp),%rax
add    %rcx,%rax
mov    %eax,-0x24(%rbp)
movsd  0xe8b(%rip),%xmm0
movsd  %xmm0,-0x10(%rbp)
movsd  0xe76(%rip),%xmm0
movsd  %xmm0,-0x20(%rbp)
mov    -0x8(%rbp),%rdi
movslq -0x24(%rbp),%rax
shl    $0x5,%rax
add    %rax,%rdi
movsd  -0x10(%rbp),%xmm0
movsd  -0x18(%rbp),%xmm1
movsd  -0x20(%rbp),%xmm2
mov    $0x3,%esi
call   1030 <SphGenOh@plt>
mov    %rax,%rcx
movslq -0x24(%rbp),%rax
add    %rcx,%rax
mov    %eax,-0x24(%rbp)
movsd  0xe2c(%rip),%xmm0
movsd  %xmm0,-0x10(%rbp)
movsd  0xe17(%rip),%xmm0
movsd  %xmm0,-0x20(%rbp)
mov    -0x8(%rbp),%rdi
movslq -0x24(%rbp),%rax
shl    $0x5,%rax
add    %rax,%rdi
movsd  -0x10(%rbp),%xmm0
movsd  -0x18(%rbp),%xmm1
movsd  -0x20(%rbp),%xmm2
mov    $0x3,%esi
call   1030 <SphGenOh@plt>
mov    %rax,%rcx
movslq -0x24(%rbp),%rax
add    %rcx,%rax
mov    %eax,-0x24(%rbp)
movsd  0xdcd(%rip),%xmm0
movsd  %xmm0,-0x10(%rbp)
movsd  0xdb8(%rip),%xmm0
movsd  %xmm0,-0x20(%rbp)
mov    -0x8(%rbp),%rdi
movslq -0x24(%rbp),%rax
shl    $0x5,%rax
add    %rax,%rdi
movsd  -0x10(%rbp),%xmm0
movsd  -0x18(%rbp),%xmm1
movsd  -0x20(%rbp),%xmm2
mov    $0x3,%esi
call   1030 <SphGenOh@plt>
mov    %rax,%rcx
movslq -0x24(%rbp),%rax
add    %rcx,%rax
mov    %eax,-0x24(%rbp)
movsd  0xd6e(%rip),%xmm0
movsd  %xmm0,-0x10(%rbp)
movsd  0xd59(%rip),%xmm0
movsd  %xmm0,-0x20(%rbp)
mov    -0x8(%rbp),%rdi
movslq -0x24(%rbp),%rax
shl    $0x5,%rax
add    %rax,%rdi
movsd  -0x10(%rbp),%xmm0
movsd  -0x18(%rbp),%xmm1
movsd  -0x20(%rbp),%xmm2
mov    $0x3,%esi
call   1030 <SphGenOh@plt>
mov    %rax,%rcx
movslq -0x24(%rbp),%rax
add    %rcx,%rax
mov    %eax,-0x24(%rbp)
movsd  0xd0f(%rip),%xmm0
movsd  %xmm0,-0x10(%rbp)
movsd  0xcfa(%rip),%xmm0
movsd  %xmm0,-0x20(%rbp)
mov    -0x8(%rbp),%rdi
movslq -0x24(%rbp),%rax
shl    $0x5,%rax
add    %rax,%rdi
movsd  -0x10(%rbp),%xmm0
movsd  -0x18(%rbp),%xmm1
movsd  -0x20(%rbp),%xmm2
mov    $0x3,%esi
call   1030 <SphGenOh@plt>
mov    %rax,%rcx
movslq -0x24(%rbp),%rax
add    %rcx,%rax
mov    %eax,-0x24(%rbp)
movsd  0xcb0(%rip),%xmm0
movsd  %xmm0,-0x10(%rbp)
movsd  0xc9b(%rip),%xmm0
movsd  %xmm0,-0x20(%rbp)
mov    -0x8(%rbp),%rdi
movslq -0x24(%rbp),%rax
shl    $0x5,%rax
add    %rax,%rdi
movsd  -0x10(%rbp),%xmm0
movsd  -0x18(%rbp),%xmm1
movsd  -0x20(%rbp),%xmm2
mov    $0x3,%esi
call   1030 <SphGenOh@plt>
mov    %rax,%rcx
movslq -0x24(%rbp),%rax
add    %rcx,%rax
mov    %eax,-0x24(%rbp)
movsd  0xc51(%rip),%xmm0
movsd  %xmm0,-0x10(%rbp)
movsd  0xc3c(%rip),%xmm0
movsd  %xmm0,-0x20(%rbp)
mov    -0x8(%rbp),%rdi
movslq -0x24(%rbp),%rax
shl    $0x5,%rax
add    %rax,%rdi
movsd  -0x10(%rbp),%xmm0
movsd  -0x18(%rbp),%xmm1
movsd  -0x20(%rbp),%xmm2
mov    $0x4,%esi
call   1030 <SphGenOh@plt>
mov    %rax,%rcx
movslq -0x24(%rbp),%rax
add    %rcx,%rax
mov    %eax,-0x24(%rbp)
movsd  0xbf2(%rip),%xmm0
movsd  %xmm0,-0x10(%rbp)
movsd  0xbdd(%rip),%xmm0
movsd  %xmm0,-0x20(%rbp)
mov    -0x8(%rbp),%rdi
movslq -0x24(%rbp),%rax
shl    $0x5,%rax
add    %rax,%rdi
movsd  -0x10(%rbp),%xmm0
movsd  -0x18(%rbp),%xmm1
movsd  -0x20(%rbp),%xmm2
mov    $0x4,%esi
call   1030 <SphGenOh@plt>
mov    %rax,%rcx
movslq -0x24(%rbp),%rax
add    %rcx,%rax
mov    %eax,-0x24(%rbp)
movsd  0xb93(%rip),%xmm0
movsd  %xmm0,-0x10(%rbp)
movsd  0xb7e(%rip),%xmm0
movsd  %xmm0,-0x18(%rbp)
movsd  0xb69(%rip),%xmm0
movsd  %xmm0,-0x20(%rbp)
mov    -0x8(%rbp),%rdi
movslq -0x24(%rbp),%rax
shl    $0x5,%rax
add    %rax,%rdi
movsd  -0x10(%rbp),%xmm0
movsd  -0x18(%rbp),%xmm1
movsd  -0x20(%rbp),%xmm2
mov    $0x5,%esi
call   1030 <SphGenOh@plt>
mov    %rax,%rcx
movslq -0x24(%rbp),%rax
add    %rcx,%rax
mov    %eax,-0x24(%rbp)
movsd  0xb1f(%rip),%xmm0
movsd  %xmm0,-0x10(%rbp)
movsd  0xb0a(%rip),%xmm0
movsd  %xmm0,-0x18(%rbp)
movsd  0xaf5(%rip),%xmm0
movsd  %xmm0,-0x20(%rbp)
mov    -0x8(%rbp),%rdi
movslq -0x24(%rbp),%rax
shl    $0x5,%rax
add    %rax,%rdi
movsd  -0x10(%rbp),%xmm0
movsd  -0x18(%rbp),%xmm1
movsd  -0x20(%rbp),%xmm2
mov    $0x5,%esi
call   1030 <SphGenOh@plt>
mov    %rax,%rcx
movslq -0x24(%rbp),%rax
add    %rcx,%rax
mov    %eax,-0x24(%rbp)
movsd  0xaab(%rip),%xmm0
movsd  %xmm0,-0x10(%rbp)
movsd  0xa96(%rip),%xmm0
movsd  %xmm0,-0x18(%rbp)
movsd  0xa81(%rip),%xmm0
movsd  %xmm0,-0x20(%rbp)
mov    -0x8(%rbp),%rdi
movslq -0x24(%rbp),%rax
shl    $0x5,%rax
add    %rax,%rdi
movsd  -0x10(%rbp),%xmm0
movsd  -0x18(%rbp),%xmm1
movsd  -0x20(%rbp),%xmm2
mov    $0x5,%esi
call   1030 <SphGenOh@plt>
mov    %rax,%rcx
movslq -0x24(%rbp),%rax
add    %rcx,%rax
mov    %eax,-0x24(%rbp)
movsd  0xa37(%rip),%xmm0
movsd  %xmm0,-0x10(%rbp)
movsd  0xa22(%rip),%xmm0
movsd  %xmm0,-0x18(%rbp)
movsd  0xa0d(%rip),%xmm0
movsd  %xmm0,-0x20(%rbp)
mov    -0x8(%rbp),%rdi
movslq -0x24(%rbp),%rax
shl    $0x5,%rax
add    %rax,%rdi
movsd  -0x10(%rbp),%xmm0
movsd  -0x18(%rbp),%xmm1
movsd  -0x20(%rbp),%xmm2
mov    $0x5,%esi
call   1030 <SphGenOh@plt>
mov    %rax,%rcx
movslq -0x24(%rbp),%rax
add    %rcx,%rax
mov    %eax,-0x24(%rbp)
mov    -0x24(%rbp),%eax
add    $0x30,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<MakeAngularGrid_434>:
push   %r15
push   %r14
push   %r12
push   %rbx
push   %rax
mov    %rdi,%r14
movsd  0xedd(%rip),%xmm2
xorps  %xmm0,%xmm0
xorps  %xmm1,%xmm1
xor    %esi,%esi
call   1030 <SphGenOh@plt>
mov    %rax,%r15
movslq %r15d,%rdi
shl    $0x5,%rdi
add    %r14,%rdi
movsd  0xec3(%rip),%xmm2
xorps  %xmm0,%xmm0
xorps  %xmm1,%xmm1
mov    $0x1,%esi
call   1030 <SphGenOh@plt>
mov    %rax,%rbx
add    %r15,%rbx
movslq %ebx,%rdi
shl    $0x5,%rdi
add    %r14,%rdi
movsd  0xea3(%rip),%xmm2
xorps  %xmm0,%xmm0
xorps  %xmm1,%xmm1
mov    $0x2,%esi
call   1030 <SphGenOh@plt>
mov    %rax,%r15
add    %rbx,%r15
movslq %r15d,%rdi
shl    $0x5,%rdi
add    %r14,%rdi
movsd  0xe83(%rip),%xmm0
movsd  0xe83(%rip),%xmm2
xorps  %xmm1,%xmm1
mov    $0x3,%esi
call   1030 <SphGenOh@plt>
mov    %rax,%rbx
add    %r15,%rbx
movslq %ebx,%rdi
shl    $0x5,%rdi
add    %r14,%rdi
movsd  0xe66(%rip),%xmm0
movsd  0xe66(%rip),%xmm2
xorps  %xmm1,%xmm1
mov    $0x3,%esi
call   1030 <SphGenOh@plt>
mov    %rax,%r15
add    %rbx,%r15
movslq %r15d,%rdi
shl    $0x5,%rdi
add    %r14,%rdi
movsd  0xe49(%rip),%xmm0
movsd  0xe49(%rip),%xmm2
xorps  %xmm1,%xmm1
mov    $0x3,%esi
call   1030 <SphGenOh@plt>
mov    %rax,%rbx
add    %r15,%rbx
movslq %ebx,%rdi
shl    $0x5,%rdi
add    %r14,%rdi
movsd  0xe2c(%rip),%xmm0
movsd  0xe2c(%rip),%xmm2
xorps  %xmm1,%xmm1
mov    $0x3,%esi
call   1030 <SphGenOh@plt>
mov    %rax,%r15
add    %rbx,%r15
movslq %r15d,%rdi
shl    $0x5,%rdi
add    %r14,%rdi
movsd  0xe0f(%rip),%xmm0
movsd  0xe0f(%rip),%xmm2
xorps  %xmm1,%xmm1
mov    $0x3,%esi
call   1030 <SphGenOh@plt>
mov    %rax,%rbx
add    %r15,%rbx
movslq %ebx,%rdi
shl    $0x5,%rdi
add    %r14,%rdi
movsd  0xdf2(%rip),%xmm0
movsd  0xdf2(%rip),%xmm2
xorps  %xmm1,%xmm1
mov    $0x3,%esi
call   1030 <SphGenOh@plt>
mov    %rax,%r15
add    %rbx,%r15
movslq %r15d,%rdi
shl    $0x5,%rdi
add    %r14,%rdi
movsd  0xdd5(%rip),%xmm0
movsd  0xdd5(%rip),%xmm2
xorps  %xmm1,%xmm1
mov    $0x3,%esi
call   1030 <SphGenOh@plt>
mov    %rax,%r12
add    %r15,%r12
movslq %r12d,%rdi
shl    $0x5,%rdi
add    %r14,%rdi
movsd  0xdb8(%rip),%xmm0
movsd  0xdb8(%rip),%xmm2
xorps  %xmm1,%xmm1
mov    $0x4,%esi
call   1030 <SphGenOh@plt>
mov    %rax,%rbx
add    %r12,%rbx
movslq %ebx,%rdi
shl    $0x5,%rdi
add    %r14,%rdi
movsd  0xd9b(%rip),%xmm0
movsd  0xd9b(%rip),%xmm2
xorps  %xmm1,%xmm1
mov    $0x4,%esi
call   1030 <SphGenOh@plt>
mov    %rax,%r15
add    %rbx,%r15
movslq %r15d,%rdi
shl    $0x5,%rdi
add    %r14,%rdi
movsd  0xd7e(%rip),%xmm0
movsd  0xd7e(%rip),%xmm1
movsd  0xd7e(%rip),%xmm2
mov    $0x5,%esi
call   1030 <SphGenOh@plt>
mov    %rax,%rbx
add    %r15,%rbx
movslq %ebx,%rdi
shl    $0x5,%rdi
add    %r14,%rdi
movsd  0xd64(%rip),%xmm0
movsd  0xd64(%rip),%xmm1
movsd  0xd64(%rip),%xmm2
mov    $0x5,%esi
call   1030 <SphGenOh@plt>
mov    %rax,%r15
add    %rbx,%r15
movslq %r15d,%rdi
shl    $0x5,%rdi
add    %r14,%rdi
movsd  0xd4a(%rip),%xmm0
movsd  0xd4a(%rip),%xmm1
movsd  0xd4a(%rip),%xmm2
mov    $0x5,%esi
call   1030 <SphGenOh@plt>
add    %r15,%rax
movslq %eax,%rbx
mov    %rbx,%rdi
shl    $0x5,%rdi
add    %r14,%rdi
movsd  0xd30(%rip),%xmm0
movsd  0xd30(%rip),%xmm1
movsd  0xd30(%rip),%xmm2
mov    $0x5,%esi
call   1030 <SphGenOh@plt>
add    %ebx,%eax
add    $0x8,%rsp
pop    %rbx
pop    %r12
pop    %r14
pop    %r15
ret

LLVM IR (-O0):
define i32 @MakeAngularGrid_434([4 x double]* %0) {
%2 = alloca [4 x double]*
%3 = alloca double
%4 = alloca double
%5 = alloca double
%6 = alloca i32
store [4 x double]* %0, [4 x double]** %2
store double 0.000000e+00, double* %3
store double 0.000000e+00, double* %4
store i32 0, i32* %6
store double 0x3F41415AFA56554C, double* %5
%7 = load [4 x double]*, [4 x double]** %2
%8 = load i32, i32* %6
%9 = sext i32 %8 to i64
%10 = getelementptr inbounds [4 x double], [4 x double]* %7, i64 %9
%11 = getelementptr inbounds [4 x double], [4 x double]* %10, i64 0, i64 0
%12 = load double, double* %3
%13 = load double, double* %4
%14 = load double, double* %5
%15 = call i64 @SphGenOh(double* %11, i32 0, double %12, double %13, double %14)
%16 = load i32, i32* %6
%17 = sext i32 %16 to i64
%18 = add nsw i64 %17, %15
%19 = trunc i64 %18 to i32
store i32 %19, i32* %6
store double 0x3F64E0012E2B21FE, double* %5
%20 = load [4 x double]*, [4 x double]** %2
%21 = load i32, i32* %6
%22 = sext i32 %21 to i64
%23 = getelementptr inbounds [4 x double], [4 x double]* %20, i64 %22
%24 = getelementptr inbounds [4 x double], [4 x double]* %23, i64 0, i64 0
%25 = load double, double* %3
%26 = load double, double* %4
%27 = load double, double* %5
%28 = call i64 @SphGenOh(double* %24, i32 1, double %25, double %26, double %27)
%29 = load i32, i32* %6
%30 = sext i32 %29 to i64
%31 = add nsw i64 %30, %28
%32 = trunc i64 %31 to i32
store i32 %32, i32* %6
store double 0x3F6494B624D8CADA, double* %5
%33 = load [4 x double]*, [4 x double]** %2
%34 = load i32, i32* %6
%35 = sext i32 %34 to i64
%36 = getelementptr inbounds [4 x double], [4 x double]* %33, i64 %35
%37 = getelementptr inbounds [4 x double], [4 x double]* %36, i64 0, i64 0
%38 = load double, double* %3
%39 = load double, double* %4
%40 = load double, double* %5
%41 = call i64 @SphGenOh(double* %37, i32 2, double %38, double %39, double %40)
%42 = load i32, i32* %6
%43 = sext i32 %42 to i64
%44 = add nsw i64 %43, %41
%45 = trunc i64 %44 to i32
store i32 %45, i32* %6
store double 0x3FE61C22F157F7CD, double* %3
store double 0x3F64BAA4324BEF83, double* %5
%46 = load [4 x double]*, [4 x double]** %2
%47 = load i32, i32* %6
%48 = sext i32 %47 to i64
%49 = getelementptr inbounds [4 x double], [4 x double]* %46, i64 %48
%50 = getelementptr inbounds [4 x double], [4 x double]* %49, i64 0, i64 0
%51 = load double, double* %3
%52 = load double, double* %4
%53 = load double, double* %5
%54 = call i64 @SphGenOh(double* %50, i32 3, double %51, double %52, double %53)
%55 = load i32, i32* %6
%56 = sext i32 %55 to i64
%57 = add nsw i64 %56, %54
%58 = trunc i64 %57 to i32
store i32 %58, i32* %6
store double 0x3FC6B7C86483F144, double* %3
store double 0x3F60803FD0A2B9C8, double* %5
%59 = load [4 x double]*, [4 x double]** %2
%60 = load i32, i32* %6
%61 = sext i32 %60 to i64
%62 = getelementptr inbounds [4 x double], [4 x double]* %59, i64 %61
%63 = getelementptr inbounds [4 x double], [4 x double]* %62, i64 0, i64 0
%64 = load double, double* %3
%65 = load double, double* %4
%66 = load double, double* %5
%67 = call i64 @SphGenOh(double* %63, i32 3, double %64, double %65, double %66)
%68 = load i32, i32* %6
%69 = sext i32 %68 to i64
%70 = add nsw i64 %69, %67
%71 = trunc i64 %70 to i32
store i32 %71, i32* %6
store double 0x3FDF73A8B2C3FE21, double* %3
store double 0x3F647E7F790515B5, double* %5
%72 = load [4 x double]*, [4 x double]** %2
%73 = load i32, i32* %6
%74 = sext i32 %73 to i64
%75 = getelementptr inbounds [4 x double], [4 x double]* %72, i64 %74
%76 = getelementptr inbounds [4 x double], [4 x double]* %75, i64 0, i64 0
%77 = load double, double* %3
%78 = load double, double* %4
%79 = load double, double* %5
%80 = call i64 @SphGenOh(double* %76, i32 3, double %77, double %78, double %79)
%81 = load i32, i32* %6
%82 = sext i32 %81 to i64
%83 = add nsw i64 %82, %80
%84 = trunc i64 %83 to i32
store i32 %84, i32* %6
store double 0x3FE4A94CBAFECC76, double* %3
store double 0x3F6496B40A45B02D, double* %5
%85 = load [4 x double]*, [4 x double]** %2
%86 = load i32, i32* %6
%87 = sext i32 %86 to i64
%88 = getelementptr inbounds [4 x double], [4 x double]* %85, i64 %87
%89 = getelementptr inbounds [4 x double], [4 x double]* %88, i64 0, i64 0
%90 = load double, double* %3
%91 = load double, double* %4
%92 = load double, double* %5
%93 = call i64 @SphGenOh(double* %89, i32 3, double %90, double %91, double %92)
%94 = load i32, i32* %6
%95 = sext i32 %94 to i64
%96 = add nsw i64 %95, %93
%97 = trunc i64 %96 to i32
store i32 %97, i32* %6
store double 0x3FD24FEF981785F6, double* %3
store double 0x3F62DD19D908E6C1, double* %5
%98 = load [4 x double]*, [4 x double]** %2
%99 = load i32, i32* %6
%100 = sext i32 %99 to i64
%101 = getelementptr inbounds [4 x double], [4 x double]* %98, i64 %100
%102 = getelementptr inbounds [4 x double], [4 x double]* %101, i64 0, i64 0
%103 = load double, double* %3
%104 = load double, double* %4
%105 = load double, double* %5
%106 = call i64 @SphGenOh(double* %102, i32 3, double %103, double %104, double %105)
%107 = load i32, i32* %6
%108 = sext i32 %107 to i64
%109 = add nsw i64 %108, %106
%110 = trunc i64 %109 to i32
store i32 %110, i32* %6
store double 0x3FB35FD1DC810520, double* %3
store double 0x3F57F626B760F1F1, double* %5
%111 = load [4 x double]*, [4 x double]** %2
%112 = load i32, i32* %6
%113 = sext i32 %112 to i64
%114 = getelementptr inbounds [4 x double], [4 x double]* %111, i64 %113
%115 = getelementptr inbounds [4 x double], [4 x double]* %114, i64 0, i64 0
%116 = load double, double* %3
%117 = load double, double* %4
%118 = load double, double* %5
%119 = call i64 @SphGenOh(double* %115, i32 3, double %116, double %117, double %118)
%120 = load i32, i32* %6
%121 = sext i32 %120 to i64
%122 = add nsw i64 %121, %119
%123 = trunc i64 %122 to i32
store i32 %123, i32* %6
store double 0x3FD9226C2229FF9E, double* %3
store double 0x3F640851DE1290E4, double* %5
%124 = load [4 x double]*, [4 x double]** %2
%125 = load i32, i32* %6
%126 = sext i32 %125 to i64
%127 = getelementptr inbounds [4 x double], [4 x double]* %124, i64 %126
%128 = getelementptr inbounds [4 x double], [4 x double]* %127, i64 0, i64 0
%129 = load double, double* %3
%130 = load double, double* %4
%131 = load double, double* %5
%132 = call i64 @SphGenOh(double* %128, i32 3, double %129, double %130, double %131)
%133 = load i32, i32* %6
%134 = sext i32 %133 to i64
%135 = add nsw i64 %134, %132
%136 = trunc i64 %135 to i32
store i32 %136, i32* %6
store double 0x3FEC37D080061BB7, double* %3
store double 0x3F63CDBE7E2FCAB9, double* %5
%137 = load [4 x double]*, [4 x double]** %2
%138 = load i32, i32* %6
%139 = sext i32 %138 to i64
%140 = getelementptr inbounds [4 x double], [4 x double]* %137, i64 %139
%141 = getelementptr inbounds [4 x double], [4 x double]* %140, i64 0, i64 0
%142 = load double, double* %3
%143 = load double, double* %4
%144 = load double, double* %5
%145 = call i64 @SphGenOh(double* %141, i32 4, double %142, double %143, double %144)
%146 = load i32, i32* %6
%147 = sext i32 %146 to i64
%148 = add nsw i64 %147, %145
%149 = trunc i64 %148 to i32
store i32 %149, i32* %6
store double 0x3FEF48D9939D84BC, double* %3
store double 0x3F5F4F1C50B7ABA6, double* %5
%150 = load [4 x double]*, [4 x double]** %2
%151 = load i32, i32* %6
%152 = sext i32 %151 to i64
%153 = getelementptr inbounds [4 x double], [4 x double]* %150, i64 %152
%154 = getelementptr inbounds [4 x double], [4 x double]* %153, i64 0, i64 0
%155 = load double, double* %3
%156 = load double, double* %4
%157 = load double, double* %5
%158 = call i64 @SphGenOh(double* %154, i32 4, double %155, double %156, double %157)
%159 = load i32, i32* %6
%160 = sext i32 %159 to i64
%161 = add nsw i64 %160, %158
%162 = trunc i64 %161 to i32
store i32 %162, i32* %6
store double 0x3FCA4D3F0CC13D8B, double* %3
store double 0x3FEBCE67E8D53485, double* %4
store double 0x3F63CCAB6FE8333A, double* %5
%163 = load [4 x double]*, [4 x double]** %2
%164 = load i32, i32* %6
%165 = sext i32 %164 to i64
%166 = getelementptr inbounds [4 x double], [4 x double]* %163, i64 %165
%167 = getelementptr inbounds [4 x double], [4 x double]* %166, i64 0, i64 0
%168 = load double, double* %3
%169 = load double, double* %4
%170 = load double, double* %5
%171 = call i64 @SphGenOh(double* %167, i32 5, double %168, double %169, double %170)
%172 = load i32, i32* %6
%173 = sext i32 %172 to i64
%174 = add nsw i64 %173, %171
%175 = trunc i64 %174 to i32
store i32 %175, i32* %6
store double 0x3FE2E58131093596, double* %3
store double 0x3FE999024CB7E07F, double* %4
store double 0x3F64948AE42A3D2B, double* %5
%176 = load [4 x double]*, [4 x double]** %2
%177 = load i32, i32* %6
%178 = sext i32 %177 to i64
%179 = getelementptr inbounds [4 x double], [4 x double]* %176, i64 %178
%180 = getelementptr inbounds [4 x double], [4 x double]* %179, i64 0, i64 0
%181 = load double, double* %3
%182 = load double, double* %4
%183 = load double, double* %5
%184 = call i64 @SphGenOh(double* %180, i32 5, double %181, double %182, double %183)
%185 = load i32, i32* %6
%186 = sext i32 %185 to i64
%187 = add nsw i64 %186, %184
%188 = trunc i64 %187 to i32
store i32 %188, i32* %6
store double 0x3FE1C2AF4FFBA795, double* %3
store double 0x3FE8B22537E24264, double* %4
store double 0x3F6473D7920CC416, double* %5
%189 = load [4 x double]*, [4 x double]** %2
%190 = load i32, i32* %6
%191 = sext i32 %190 to i64
%192 = getelementptr inbounds [4 x double], [4 x double]* %189, i64 %191
%193 = getelementptr inbounds [4 x double], [4 x double]* %192, i64 0, i64 0
%194 = load double, double* %3
%195 = load double, double* %4
%196 = load double, double* %5
%197 = call i64 @SphGenOh(double* %193, i32 5, double %194, double %195, double %196)
%198 = load i32, i32* %6
%199 = sext i32 %198 to i64
%200 = add nsw i64 %199, %197
%201 = trunc i64 %200 to i32
store i32 %201, i32* %6
store double 0x3FEDFD62FA95D1D1, double* %3
store double 0x3FD5676792614422, double* %4
store double 0x3F625281A5EC03B6, double* %5
%202 = load [4 x double]*, [4 x double]** %2
%203 = load i32, i32* %6
%204 = sext i32 %203 to i64
%205 = getelementptr inbounds [4 x double], [4 x double]* %202, i64 %204
%206 = getelementptr inbounds [4 x double], [4 x double]* %205, i64 0, i64 0
%207 = load double, double* %3
%208 = load double, double* %4
%209 = load double, double* %5
%210 = call i64 @SphGenOh(double* %206, i32 5, double %207, double %208, double %209)
%211 = load i32, i32* %6
%212 = sext i32 %211 to i64
%213 = add nsw i64 %212, %210
%214 = trunc i64 %213 to i32
store i32 %214, i32* %6
%215 = load i32, i32* %6
ret i32 %215
}

LLVM IR (-O2):
define i32 @MakeAngularGrid_434([4 x double]* %0) {
%2 = getelementptr inbounds [4 x double], [4 x double]* %0, i64 0, i64 0
%3 = tail call i64 @SphGenOh(double* %2, i32 0, double 0.000000e+00, double 0.000000e+00, double 0x3F41415AFA56554C)
%4 = shl i64 %3, 32
%5 = ashr exact i64 %4, 32
%6 = getelementptr inbounds [4 x double], [4 x double]* %0, i64 %5, i64 0
%7 = tail call i64 @SphGenOh(double* %6, i32 1, double 0.000000e+00, double 0.000000e+00, double 0x3F64E0012E2B21FE)
%8 = add i64 %7, %3
%9 = shl i64 %8, 32
%10 = ashr exact i64 %9, 32
%11 = getelementptr inbounds [4 x double], [4 x double]* %0, i64 %10, i64 0
%12 = tail call i64 @SphGenOh(double* %11, i32 2, double 0.000000e+00, double 0.000000e+00, double 0x3F6494B624D8CADA)
%13 = add i64 %8, %12
%14 = shl i64 %13, 32
%15 = ashr exact i64 %14, 32
%16 = getelementptr inbounds [4 x double], [4 x double]* %0, i64 %15, i64 0
%17 = tail call i64 @SphGenOh(double* %16, i32 3, double 0x3FE61C22F157F7CD, double 0.000000e+00, double 0x3F64BAA4324BEF83)
%18 = add i64 %13, %17
%19 = shl i64 %18, 32
%20 = ashr exact i64 %19, 32
%21 = getelementptr inbounds [4 x double], [4 x double]* %0, i64 %20, i64 0
%22 = tail call i64 @SphGenOh(double* %21, i32 3, double 0x3FC6B7C86483F144, double 0.000000e+00, double 0x3F60803FD0A2B9C8)
%23 = add i64 %18, %22
%24 = shl i64 %23, 32
%25 = ashr exact i64 %24, 32
%26 = getelementptr inbounds [4 x double], [4 x double]* %0, i64 %25, i64 0
%27 = tail call i64 @SphGenOh(double* %26, i32 3, double 0x3FDF73A8B2C3FE21, double 0.000000e+00, double 0x3F647E7F790515B5)
%28 = add i64 %23, %27
%29 = shl i64 %28, 32
%30 = ashr exact i64 %29, 32
%31 = getelementptr inbounds [4 x double], [4 x double]* %0, i64 %30, i64 0
%32 = tail call i64 @SphGenOh(double* %31, i32 3, double 0x3FE4A94CBAFECC76, double 0.000000e+00, double 0x3F6496B40A45B02D)
%33 = add i64 %28, %32
%34 = shl i64 %33, 32
%35 = ashr exact i64 %34, 32
%36 = getelementptr inbounds [4 x double], [4 x double]* %0, i64 %35, i64 0
%37 = tail call i64 @SphGenOh(double* %36, i32 3, double 0x3FD24FEF981785F6, double 0.000000e+00, double 0x3F62DD19D908E6C1)
%38 = add i64 %33, %37
%39 = shl i64 %38, 32
%40 = ashr exact i64 %39, 32
%41 = getelementptr inbounds [4 x double], [4 x double]* %0, i64 %40, i64 0
%42 = tail call i64 @SphGenOh(double* %41, i32 3, double 0x3FB35FD1DC810520, double 0.000000e+00, double 0x3F57F626B760F1F1)
%43 = add i64 %38, %42
%44 = shl i64 %43, 32
%45 = ashr exact i64 %44, 32
%46 = getelementptr inbounds [4 x double], [4 x double]* %0, i64 %45, i64 0
%47 = tail call i64 @SphGenOh(double* %46, i32 3, double 0x3FD9226C2229FF9E, double 0.000000e+00, double 0x3F640851DE1290E4)
%48 = add i64 %43, %47
%49 = shl i64 %48, 32
%50 = ashr exact i64 %49, 32
%51 = getelementptr inbounds [4 x double], [4 x double]* %0, i64 %50, i64 0
%52 = tail call i64 @SphGenOh(double* %51, i32 4, double 0x3FEC37D080061BB7, double 0.000000e+00, double 0x3F63CDBE7E2FCAB9)
%53 = add i64 %48, %52
%54 = shl i64 %53, 32
%55 = ashr exact i64 %54, 32
%56 = getelementptr inbounds [4 x double], [4 x double]* %0, i64 %55, i64 0
%57 = tail call i64 @SphGenOh(double* %56, i32 4, double 0x3FEF48D9939D84BC, double 0.000000e+00, double 0x3F5F4F1C50B7ABA6)
%58 = add i64 %53, %57
%59 = shl i64 %58, 32
%60 = ashr exact i64 %59, 32
%61 = getelementptr inbounds [4 x double], [4 x double]* %0, i64 %60, i64 0
%62 = tail call i64 @SphGenOh(double* %61, i32 5, double 0x3FCA4D3F0CC13D8B, double 0x3FEBCE67E8D53485, double 0x3F63CCAB6FE8333A)
%63 = add i64 %58, %62
%64 = shl i64 %63, 32
%65 = ashr exact i64 %64, 32
%66 = getelementptr inbounds [4 x double], [4 x double]* %0, i64 %65, i64 0
%67 = tail call i64 @SphGenOh(double* %66, i32 5, double 0x3FE2E58131093596, double 0x3FE999024CB7E07F, double 0x3F64948AE42A3D2B)
%68 = add i64 %63, %67
%69 = shl i64 %68, 32
%70 = ashr exact i64 %69, 32
%71 = getelementptr inbounds [4 x double], [4 x double]* %0, i64 %70, i64 0
%72 = tail call i64 @SphGenOh(double* %71, i32 5, double 0x3FE1C2AF4FFBA795, double 0x3FE8B22537E24264, double 0x3F6473D7920CC416)
%73 = add i64 %68, %72
%74 = shl i64 %73, 32
%75 = ashr exact i64 %74, 32
%76 = getelementptr inbounds [4 x double], [4 x double]* %0, i64 %75, i64 0
%77 = tail call i64 @SphGenOh(double* %76, i32 5, double 0x3FEDFD62FA95D1D1, double 0x3FD5676792614422, double 0x3F625281A5EC03B6)
%78 = add i64 %73, %77
%79 = trunc i64 %78 to i32
ret i32 %79
}