#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_302(double (*pOut)[4]) {
  double a = 0, b = 0, v;
  int N = 0;
  v = 0.8545911725128148e-3;
  N += SphGenOh(&pOut[N][0], 0, a, b, v);
  v = 0.3599119285025571e-2;
  N += SphGenOh(&pOut[N][0], 2, a, b, v);
  a = 0.3515640345570105e+0;
  v = 0.3449788424305883e-2;
  N += SphGenOh(&pOut[N][0], 3, a, b, v);
  a = 0.6566329410219612e+0;
  v = 0.3604822601419882e-2;
  N += SphGenOh(&pOut[N][0], 3, a, b, v);
  a = 0.4729054132581005e+0;
  v = 0.3576729661743367e-2;
  N += SphGenOh(&pOut[N][0], 3, a, b, v);
  a = 0.9618308522614784e-1;
  v = 0.2352101413689164e-2;
  N += SphGenOh(&pOut[N][0], 3, a, b, v);
  a = 0.2219645236294178e+0;
  v = 0.3108953122413675e-2;
  N += SphGenOh(&pOut[N][0], 3, a, b, v);
  a = 0.7011766416089545e+0;
  v = 0.3650045807677255e-2;
  N += SphGenOh(&pOut[N][0], 3, a, b, v);
  a = 0.2644152887060663e+0;
  v = 0.2982344963171804e-2;
  N += SphGenOh(&pOut[N][0], 4, a, b, v);
  a = 0.5718955891878961e+0;
  v = 0.3600820932216460e-2;
  N += SphGenOh(&pOut[N][0], 4, a, b, v);
  a = 0.2510034751770465e+0;
  b = 0.8000727494073952e+0;
  v = 0.3571540554273387e-2;
  N += SphGenOh(&pOut[N][0], 5, a, b, v);
  a = 0.1233548532583327e+0;
  b = 0.4127724083168531e+0;
  v = 0.3392312205006170e-2;
  N += SphGenOh(&pOut[N][0], 5, a, b, v);
  return N;
}


x86 assembly (clang, -O0):
<MakeAngularGrid_302>:
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  0xf7d(%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  0xf36(%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  0xeec(%rip),%xmm0
movsd  %xmm0,-0x10(%rbp)
movsd  0xed7(%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  0xe8d(%rip),%xmm0
movsd  %xmm0,-0x10(%rbp)
movsd  0xe78(%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  0xe2e(%rip),%xmm0
movsd  %xmm0,-0x10(%rbp)
movsd  0xe19(%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  0xdcf(%rip),%xmm0
movsd  %xmm0,-0x10(%rbp)
movsd  0xdba(%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  0xd70(%rip),%xmm0
movsd  %xmm0,-0x10(%rbp)
movsd  0xd5b(%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  0xd11(%rip),%xmm0
movsd  %xmm0,-0x10(%rbp)
movsd  0xcfc(%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  0xcb2(%rip),%xmm0
movsd  %xmm0,-0x10(%rbp)
movsd  0xc9d(%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  0xc53(%rip),%xmm0
movsd  %xmm0,-0x10(%rbp)
movsd  0xc3e(%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  0xbf4(%rip),%xmm0
movsd  %xmm0,-0x10(%rbp)
movsd  0xbdf(%rip),%xmm0
movsd  %xmm0,-0x18(%rbp)
movsd  0xbca(%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  0xb80(%rip),%xmm0
movsd  %xmm0,-0x10(%rbp)
movsd  0xb6b(%rip),%xmm0
movsd  %xmm0,-0x18(%rbp)
movsd  0xb56(%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_302>:
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    $0x2,%esi
call   1030 <SphGenOh@plt>
mov    %rax,%r12
add    %r15,%r12
movslq %r12d,%rdi
shl    $0x5,%rdi
add    %r14,%rdi
movsd  0xea3(%rip),%xmm0
movsd  0xea3(%rip),%xmm2
xorps  %xmm1,%xmm1
mov    $0x3,%esi
call   1030 <SphGenOh@plt>
mov    %rax,%rbx
add    %r12,%rbx
movslq %ebx,%rdi
shl    $0x5,%rdi
add    %r14,%rdi
movsd  0xe86(%rip),%xmm0
movsd  0xe86(%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  0xe69(%rip),%xmm0
movsd  0xe69(%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  0xe4c(%rip),%xmm0
movsd  0xe4c(%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  0xe2f(%rip),%xmm0
movsd  0xe2f(%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  0xe12(%rip),%xmm0
movsd  0xe12(%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  0xdf5(%rip),%xmm0
movsd  0xdf5(%rip),%xmm2
xorps  %xmm1,%xmm1
mov    $0x4,%esi
call   1030 <SphGenOh@plt>
mov    %rax,%rbx
add    %r15,%rbx
movslq %ebx,%rdi
shl    $0x5,%rdi
add    %r14,%rdi
movsd  0xdd8(%rip),%xmm0
movsd  0xdd8(%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  0xdbb(%rip),%xmm0
movsd  0xdbb(%rip),%xmm1
movsd  0xdbb(%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  0xda1(%rip),%xmm0
movsd  0xda1(%rip),%xmm1
movsd  0xda1(%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_302([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 0x3F4C00D4919616A0, 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 0x3F6D7BE673F46E41, 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 2, 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 0x3FD680066FB7D1B3, double* %3
store double 0x3F6C42BB0EBC860D, 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 3, 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 0x3FE5032315E54CC3, double* %3
store double 0x3F6D87DC65CA96A5, 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 0x3FDE44151102DFBF, double* %3
store double 0x3F6D4CF21D8FF0DB, 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 0x3FB89F7465798501, double* %3
store double 0x3F6344B6D4C1E846, 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 0x3FCC695560EE271D, double* %3
store double 0x3F6977F27F89BD22, 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 0x3FE67009FF0DBF0F, double* %3
store double 0x3F6DE6B36BEE990E, 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 0x3FD0EC2E1A638459, double* %3
store double 0x3F686E6E42A17DA0, 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 4, 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 0x3FE24CF7FA893CBE, double* %3
store double 0x3F6D7F7804905BDD, 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 4, 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 0x3FD01070E1445639, double* %3
store double 0x3FE99A322AA404A2, double* %4
store double 0x3F6D42103C0FE87B, 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 5, 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 0x3FBF942F048C2396, double* %3
store double 0x3FDA6ADCF69A5EE7, double* %4
store double 0x3F6BCA31BF4E6C58, 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 5, 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
%163 = load i32, i32* %6
ret i32 %163
}

LLVM IR (-O2):
define i32 @MakeAngularGrid_302([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 0x3F4C00D4919616A0)
%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 2, double 0.000000e+00, double 0.000000e+00, double 0x3F6D7BE673F46E41)
%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 3, double 0x3FD680066FB7D1B3, double 0.000000e+00, double 0x3F6C42BB0EBC860D)
%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 0x3FE5032315E54CC3, double 0.000000e+00, double 0x3F6D87DC65CA96A5)
%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 0x3FDE44151102DFBF, double 0.000000e+00, double 0x3F6D4CF21D8FF0DB)
%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 0x3FB89F7465798501, double 0.000000e+00, double 0x3F6344B6D4C1E846)
%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 0x3FCC695560EE271D, double 0.000000e+00, double 0x3F6977F27F89BD22)
%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 0x3FE67009FF0DBF0F, double 0.000000e+00, double 0x3F6DE6B36BEE990E)
%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 4, double 0x3FD0EC2E1A638459, double 0.000000e+00, double 0x3F686E6E42A17DA0)
%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 4, double 0x3FE24CF7FA893CBE, double 0.000000e+00, double 0x3F6D7F7804905BDD)
%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 5, double 0x3FD01070E1445639, double 0x3FE99A322AA404A2, double 0x3F6D42103C0FE87B)
%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 5, double 0x3FBF942F048C2396, double 0x3FDA6ADCF69A5EE7, double 0x3F6BCA31BF4E6C58)
%58 = add i64 %53, %57
%59 = trunc i64 %58 to i32
ret i32 %59
}