#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__ M_PI;
double acos(double);
double atan2(double, double);
double cos(double);
double *double_alloc(int);
double **double_alloc2(int, int);
int /*<<< orphan*/ eigsrt(double *, double **, int);
int /*<<< orphan*/ free(void **);
int /*<<< orphan*/ jacobi(double **, int, int, double *, double **, int *);
int /*<<< orphan*/ set_mt(double *, double **);
double sin(double);
double sqrt(int);
void get_planes(double *vm, double **TM, double *eval3, double *s1, double *d1,
                double *r1, double *s2, double *d2, double *r2) {
  int nrot, i;
  double si, co;
  double **evec3, *vn, *vs;
  evec3 = double_alloc2(3, 3);
  vn = double_alloc(3);
  vs = double_alloc(3);
  set_mt(vm, TM);
  jacobi(TM, 3, 3, eval3, evec3, &nrot);
  eigsrt(eval3, evec3, 3);
  if (evec3[2][0] < 0.0)
    for (i = 0; i < 3; i++) {
      evec3[i][0] = -evec3[i][0];
    }
  if (evec3[2][2] < 0.)
    for (i = 0; i < 3; i++)
      evec3[i][2] = -evec3[i][2];
  evec3[0][1] = evec3[1][0] * evec3[2][2] - evec3[1][2] * evec3[2][0];
  evec3[1][1] = evec3[2][0] * evec3[0][2] - evec3[2][2] * evec3[0][0];
  evec3[2][1] = evec3[0][0] * evec3[1][2] - evec3[0][2] * evec3[1][0];
  TM[0][1] = TM[1][0];
  TM[0][2] = TM[2][0];
  TM[1][2] = TM[2][1];
  for (i = 0; i < 3; i++) {
    vn[i] = (evec3[i][0] + evec3[i][2]) / sqrt(2.);
    vs[i] = (evec3[i][0] - evec3[i][2]) / sqrt(2.);
  }
  if (vn[2] > 0.)
    for (i = 0; i < 3; i++) {
      vn[i] = -vn[i];
      vs[i] = -vs[i];
    }
  *s1 = atan2(-vn[0], vn[1]);
  *d1 = acos(-vn[2]);
  si = sin(*s1);
  co = cos(*s1);
  *r1 = atan2((vs[0] * si - vs[1] * co), -(vs[0] * co + vs[1] * si) * vn[2]);
  for (i = 0; i < 3; i++) {
    vn[i] = (evec3[i][0] - evec3[i][2]) / sqrt(2.);
    vs[i] = (evec3[i][0] + evec3[i][2]) / sqrt(2.);
  }
  if (vn[2] > 0.)
    for (i = 0; i < 3; i++) {
      vn[i] = -vn[i];
      vs[i] = -vs[i];
    }
  *s2 = atan2(-vn[0], vn[1]);
  *d2 = acos(-vn[2]);
  si = sin(*s2);
  co = cos(*s2);
  *r2 = atan2((vs[0] * si - vs[1] * co), -(vs[0] * co + vs[1] * si) * vn[2]);
  *s1 = (*s1) / ((double)M_PI / 180.);
  if ((*s1) < 0.)
    (*s1) += 360.;
  *d1 = (*d1) / ((double)M_PI / 180.);
  *r1 = (*r1) / ((double)M_PI / 180.);
  *s2 = (*s2) / ((double)M_PI / 180.);
  if ((*s2) < 0.)
    (*s2) += 360.;
  *d2 = (*d2) / ((double)M_PI / 180.);
  *r2 = (*r2) / ((double)M_PI / 180.);
  free((void *)vn);
  free((void *)vs);
  for (i = 0; i < 3; i++)
    free((void *)evec3[i]);
  free((void **)evec3);
}


x86 assembly (clang, -O0):
<get_planes>:
push   %rbp
mov    %rsp,%rbp
sub    $0x80,%rsp
mov    0x20(%rbp),%rax
mov    0x18(%rbp),%rax
mov    0x10(%rbp),%rax
mov    %rdi,-0x8(%rbp)
mov    %rsi,-0x10(%rbp)
mov    %rdx,-0x18(%rbp)
mov    %rcx,-0x20(%rbp)
mov    %r8,-0x28(%rbp)
mov    %r9,-0x30(%rbp)
mov    $0x3,%esi
mov    %esi,%edi
call   10d0 <double_alloc2@plt>
mov    %rax,-0x50(%rbp)
mov    $0x3,%edi
call   1080 <double_alloc@plt>
mov    %rax,-0x58(%rbp)
mov    $0x3,%edi
call   1080 <double_alloc@plt>
mov    %rax,-0x60(%rbp)
mov    -0x8(%rbp),%rdi
mov    -0x10(%rbp),%rsi
call   10a0 <set_mt@plt>
mov    -0x10(%rbp),%rdi
mov    -0x18(%rbp),%rcx
mov    -0x50(%rbp),%r8
mov    $0x3,%edx
lea    -0x34(%rbp),%r9
mov    %edx,%esi
call   1040 <jacobi@plt>
mov    -0x18(%rbp),%rdi
mov    -0x50(%rbp),%rsi
mov    $0x3,%edx
call   1090 <eigsrt@plt>
mov    -0x50(%rbp),%rax
mov    0x10(%rax),%rax
xorps  %xmm0,%xmm0
ucomisd (%rax),%xmm0
jbe    12b6 <get_planes+0x106>
movl   $0x0,-0x38(%rbp)
cmpl   $0x3,-0x38(%rbp)
jge    12b1 <get_planes+0x101>
mov    -0x50(%rbp),%rax
movslq -0x38(%rbp),%rcx
mov    (%rax,%rcx,8),%rax
movsd  (%rax),%xmm0
movq   %xmm0,%rax
movabs $0x8000000000000000,%rcx
xor    %rcx,%rax
movq   %rax,%xmm0
mov    -0x50(%rbp),%rax
movslq -0x38(%rbp),%rcx
mov    (%rax,%rcx,8),%rax
movsd  %xmm0,(%rax)
mov    -0x38(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0x38(%rbp)
jmp    1262 <get_planes+0xb2>
jmp    12b6 <get_planes+0x106>
mov    -0x50(%rbp),%rax
mov    0x10(%rax),%rax
xorps  %xmm0,%xmm0
ucomisd 0x10(%rax),%xmm0
jbe    1329 <get_planes+0x179>
movl   $0x0,-0x38(%rbp)
cmpl   $0x3,-0x38(%rbp)
jge    1324 <get_planes+0x174>
mov    -0x50(%rbp),%rax
movslq -0x38(%rbp),%rcx
mov    (%rax,%rcx,8),%rax
movsd  0x10(%rax),%xmm0
movq   %xmm0,%rax
movabs $0x8000000000000000,%rcx
xor    %rcx,%rax
movq   %rax,%xmm0
mov    -0x50(%rbp),%rax
movslq -0x38(%rbp),%rcx
mov    (%rax,%rcx,8),%rax
movsd  %xmm0,0x10(%rax)
mov    -0x38(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0x38(%rbp)
jmp    12d3 <get_planes+0x123>
jmp    1329 <get_planes+0x179>
mov    -0x50(%rbp),%rax
mov    0x8(%rax),%rax
movsd  (%rax),%xmm0
mov    -0x50(%rbp),%rax
mov    0x10(%rax),%rax
movsd  0x10(%rax),%xmm2
mov    -0x50(%rbp),%rax
mov    0x8(%rax),%rax
movsd  0x10(%rax),%xmm1
mov    -0x50(%rbp),%rax
mov    0x10(%rax),%rax
mulsd  (%rax),%xmm1
movq   %xmm1,%rax
movabs $0x8000000000000000,%rcx
xor    %rcx,%rax
movq   %rax,%xmm1
mulsd  %xmm2,%xmm0
addsd  %xmm1,%xmm0
mov    -0x50(%rbp),%rax
mov    (%rax),%rax
movsd  %xmm0,0x8(%rax)
mov    -0x50(%rbp),%rax
mov    0x10(%rax),%rax
movsd  (%rax),%xmm0
mov    -0x50(%rbp),%rax
mov    (%rax),%rax
movsd  0x10(%rax),%xmm2
mov    -0x50(%rbp),%rax
mov    0x10(%rax),%rax
movsd  0x10(%rax),%xmm1
mov    -0x50(%rbp),%rax
mov    (%rax),%rax
mulsd  (%rax),%xmm1
movq   %xmm1,%rax
movabs $0x8000000000000000,%rcx
xor    %rcx,%rax
movq   %rax,%xmm1
mulsd  %xmm2,%xmm0
addsd  %xmm1,%xmm0
mov    -0x50(%rbp),%rax
mov    0x8(%rax),%rax
movsd  %xmm0,0x8(%rax)
mov    -0x50(%rbp),%rax
mov    (%rax),%rax
movsd  (%rax),%xmm0
mov    -0x50(%rbp),%rax
mov    0x8(%rax),%rax
movsd  0x10(%rax),%xmm2
mov    -0x50(%rbp),%rax
mov    (%rax),%rax
movsd  0x10(%rax),%xmm1
mov    -0x50(%rbp),%rax
mov    0x8(%rax),%rax
mulsd  (%rax),%xmm1
movq   %xmm1,%rax
movabs $0x8000000000000000,%rcx
xor    %rcx,%rax
movq   %rax,%xmm1
mulsd  %xmm2,%xmm0
addsd  %xmm1,%xmm0
mov    -0x50(%rbp),%rax
mov    0x10(%rax),%rax
movsd  %xmm0,0x8(%rax)
mov    -0x10(%rbp),%rax
mov    0x8(%rax),%rax
movsd  (%rax),%xmm0
mov    -0x10(%rbp),%rax
mov    (%rax),%rax
movsd  %xmm0,0x8(%rax)
mov    -0x10(%rbp),%rax
mov    0x10(%rax),%rax
movsd  (%rax),%xmm0
mov    -0x10(%rbp),%rax
mov    (%rax),%rax
movsd  %xmm0,0x10(%rax)
mov    -0x10(%rbp),%rax
mov    0x10(%rax),%rax
movsd  0x8(%rax),%xmm0
mov    -0x10(%rbp),%rax
mov    0x8(%rax),%rax
movsd  %xmm0,0x10(%rax)
movl   $0x0,-0x38(%rbp)
cmpl   $0x3,-0x38(%rbp)
jge    1539 <get_planes+0x389>
mov    -0x50(%rbp),%rax
movslq -0x38(%rbp),%rcx
mov    (%rax,%rcx,8),%rax
movsd  (%rax),%xmm0
mov    -0x50(%rbp),%rax
movslq -0x38(%rbp),%rcx
mov    (%rax,%rcx,8),%rax
addsd  0x10(%rax),%xmm0
movsd  %xmm0,-0x70(%rbp)
mov    $0x2,%edi
call   10c0 <sqrt@plt>
movaps %xmm0,%xmm1
movsd  -0x70(%rbp),%xmm0
divsd  %xmm1,%xmm0
mov    -0x58(%rbp),%rax
movslq -0x38(%rbp),%rcx
movsd  %xmm0,(%rax,%rcx,8)
mov    -0x50(%rbp),%rax
movslq -0x38(%rbp),%rcx
mov    (%rax,%rcx,8),%rax
movsd  (%rax),%xmm0
mov    -0x50(%rbp),%rax
movslq -0x38(%rbp),%rcx
mov    (%rax,%rcx,8),%rax
subsd  0x10(%rax),%xmm0
movsd  %xmm0,-0x68(%rbp)
mov    $0x2,%edi
call   10c0 <sqrt@plt>
movaps %xmm0,%xmm1
movsd  -0x68(%rbp),%xmm0
divsd  %xmm1,%xmm0
mov    -0x60(%rbp),%rax
movslq -0x38(%rbp),%rcx
movsd  %xmm0,(%rax,%rcx,8)
mov    -0x38(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0x38(%rbp)
jmp    148f <get_planes+0x2df>
mov    -0x58(%rbp),%rax
movsd  0x10(%rax),%xmm0
xorps  %xmm1,%xmm1
ucomisd %xmm1,%xmm0
jbe    15d5 <get_planes+0x425>
movl   $0x0,-0x38(%rbp)
cmpl   $0x3,-0x38(%rbp)
jge    15d0 <get_planes+0x420>
mov    -0x58(%rbp),%rax
movslq -0x38(%rbp),%rcx
movsd  (%rax,%rcx,8),%xmm0
movq   %xmm0,%rax
movabs $0x8000000000000000,%rcx
xor    %rcx,%rax
movq   %rax,%xmm0
mov    -0x58(%rbp),%rax
movslq -0x38(%rbp),%rcx
movsd  %xmm0,(%rax,%rcx,8)
mov    -0x60(%rbp),%rax
movslq -0x38(%rbp),%rcx
movsd  (%rax,%rcx,8),%xmm0
movq   %xmm0,%rax
movabs $0x8000000000000000,%rcx
xor    %rcx,%rax
movq   %rax,%xmm0
mov    -0x60(%rbp),%rax
movslq -0x38(%rbp),%rcx
movsd  %xmm0,(%rax,%rcx,8)
mov    -0x38(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0x38(%rbp)
jmp    1556 <get_planes+0x3a6>
jmp    15d5 <get_planes+0x425>
mov    -0x58(%rbp),%rax
movsd  (%rax),%xmm0
movq   %xmm0,%rax
movabs $0x8000000000000000,%rcx
xor    %rcx,%rax
movq   %rax,%xmm0
mov    -0x58(%rbp),%rax
movsd  0x8(%rax),%xmm1
call   1050 <atan2@plt>
mov    -0x20(%rbp),%rax
movsd  %xmm0,(%rax)
mov    -0x58(%rbp),%rax
movsd  0x10(%rax),%xmm0
movq   %xmm0,%rax
movabs $0x8000000000000000,%rcx
xor    %rcx,%rax
movq   %rax,%xmm0
call   1060 <acos@plt>
mov    -0x28(%rbp),%rax
movsd  %xmm0,(%rax)
mov    -0x20(%rbp),%rax
movsd  (%rax),%xmm0
call   1070 <sin@plt>
movsd  %xmm0,-0x40(%rbp)
mov    -0x20(%rbp),%rax
movsd  (%rax),%xmm0
call   10b0 <cos@plt>
movsd  %xmm0,-0x48(%rbp)
mov    -0x60(%rbp),%rax
movsd  (%rax),%xmm0
movsd  -0x40(%rbp),%xmm2
mov    -0x60(%rbp),%rax
movsd  0x8(%rax),%xmm1
mulsd  -0x48(%rbp),%xmm1
movq   %xmm1,%rax
movabs $0x8000000000000000,%rcx
xor    %rcx,%rax
movq   %rax,%xmm1
mulsd  %xmm2,%xmm0
addsd  %xmm1,%xmm0
mov    -0x60(%rbp),%rax
movsd  (%rax),%xmm1
movsd  -0x48(%rbp),%xmm3
mov    -0x60(%rbp),%rax
movsd  0x8(%rax),%xmm2
mulsd  -0x40(%rbp),%xmm2
mulsd  %xmm3,%xmm1
addsd  %xmm2,%xmm1
movq   %xmm1,%rax
movabs $0x8000000000000000,%rcx
xor    %rcx,%rax
movq   %rax,%xmm1
mov    -0x58(%rbp),%rax
mulsd  0x10(%rax),%xmm1
call   1050 <atan2@plt>
mov    -0x30(%rbp),%rax
movsd  %xmm0,(%rax)
movl   $0x0,-0x38(%rbp)
cmpl   $0x3,-0x38(%rbp)
jge    1796 <get_planes+0x5e6>
mov    -0x50(%rbp),%rax
movslq -0x38(%rbp),%rcx
mov    (%rax,%rcx,8),%rax
movsd  (%rax),%xmm0
mov    -0x50(%rbp),%rax
movslq -0x38(%rbp),%rcx
mov    (%rax,%rcx,8),%rax
subsd  0x10(%rax),%xmm0
movsd  %xmm0,-0x80(%rbp)
mov    $0x2,%edi
call   10c0 <sqrt@plt>
movaps %xmm0,%xmm1
movsd  -0x80(%rbp),%xmm0
divsd  %xmm1,%xmm0
mov    -0x58(%rbp),%rax
movslq -0x38(%rbp),%rcx
movsd  %xmm0,(%rax,%rcx,8)
mov    -0x50(%rbp),%rax
movslq -0x38(%rbp),%rcx
mov    (%rax,%rcx,8),%rax
movsd  (%rax),%xmm0
mov    -0x50(%rbp),%rax
movslq -0x38(%rbp),%rcx
mov    (%rax,%rcx,8),%rax
addsd  0x10(%rax),%xmm0
movsd  %xmm0,-0x78(%rbp)
mov    $0x2,%edi
call   10c0 <sqrt@plt>
movaps %xmm0,%xmm1
movsd  -0x78(%rbp),%xmm0
divsd  %xmm1,%xmm0
mov    -0x60(%rbp),%rax
movslq -0x38(%rbp),%rcx
movsd  %xmm0,(%rax,%rcx,8)
mov    -0x38(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0x38(%rbp)
jmp    16ec <get_planes+0x53c>
mov    -0x58(%rbp),%rax
movsd  0x10(%rax),%xmm0
xorps  %xmm1,%xmm1
ucomisd %xmm1,%xmm0
jbe    1832 <get_planes+0x682>
movl   $0x0,-0x38(%rbp)
cmpl   $0x3,-0x38(%rbp)
jge    182d <get_planes+0x67d>
mov    -0x58(%rbp),%rax
movslq -0x38(%rbp),%rcx
movsd  (%rax,%rcx,8),%xmm0
movq   %xmm0,%rax
movabs $0x8000000000000000,%rcx
xor    %rcx,%rax
movq   %rax,%xmm0
mov    -0x58(%rbp),%rax
movslq -0x38(%rbp),%rcx
movsd  %xmm0,(%rax,%rcx,8)
mov    -0x60(%rbp),%rax
movslq -0x38(%rbp),%rcx
movsd  (%rax,%rcx,8),%xmm0
movq   %xmm0,%rax
movabs $0x8000000000000000,%rcx
xor    %rcx,%rax
movq   %rax,%xmm0
mov    -0x60(%rbp),%rax
movslq -0x38(%rbp),%rcx
movsd  %xmm0,(%rax,%rcx,8)
mov    -0x38(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0x38(%rbp)
jmp    17b3 <get_planes+0x603>
jmp    1832 <get_planes+0x682>
mov    -0x58(%rbp),%rax
movsd  (%rax),%xmm0
movq   %xmm0,%rax
movabs $0x8000000000000000,%rcx
xor    %rcx,%rax
movq   %rax,%xmm0
mov    -0x58(%rbp),%rax
movsd  0x8(%rax),%xmm1
call   1050 <atan2@plt>
mov    0x10(%rbp),%rax
movsd  %xmm0,(%rax)
mov    -0x58(%rbp),%rax
movsd  0x10(%rax),%xmm0
movq   %xmm0,%rax
movabs $0x8000000000000000,%rcx
xor    %rcx,%rax
movq   %rax,%xmm0
call   1060 <acos@plt>
mov    0x18(%rbp),%rax
movsd  %xmm0,(%rax)
mov    0x10(%rbp),%rax
movsd  (%rax),%xmm0
call   1070 <sin@plt>
movsd  %xmm0,-0x40(%rbp)
mov    0x10(%rbp),%rax
movsd  (%rax),%xmm0
call   10b0 <cos@plt>
movsd  %xmm0,-0x48(%rbp)
mov    -0x60(%rbp),%rax
movsd  (%rax),%xmm0
movsd  -0x40(%rbp),%xmm2
mov    -0x60(%rbp),%rax
movsd  0x8(%rax),%xmm1
mulsd  -0x48(%rbp),%xmm1
movq   %xmm1,%rax
movabs $0x8000000000000000,%rcx
xor    %rcx,%rax
movq   %rax,%xmm1
mulsd  %xmm2,%xmm0
addsd  %xmm1,%xmm0
mov    -0x60(%rbp),%rax
movsd  (%rax),%xmm1
movsd  -0x48(%rbp),%xmm3
mov    -0x60(%rbp),%rax
movsd  0x8(%rax),%xmm2
mulsd  -0x40(%rbp),%xmm2
mulsd  %xmm3,%xmm1
addsd  %xmm2,%xmm1
movq   %xmm1,%rax
movabs $0x8000000000000000,%rcx
xor    %rcx,%rax
movq   %rax,%xmm1
mov    -0x58(%rbp),%rax
mulsd  0x10(%rax),%xmm1
call   1050 <atan2@plt>
mov    0x20(%rbp),%rax
movsd  %xmm0,(%rax)
mov    -0x20(%rbp),%rax
movsd  (%rax),%xmm0
mov    0x2697(%rip),%rax
cvtsi2sdq (%rax),%xmm1
movsd  0x6a2(%rip),%xmm2
divsd  %xmm2,%xmm1
divsd  %xmm1,%xmm0
mov    -0x20(%rbp),%rax
movsd  %xmm0,(%rax)
mov    -0x20(%rbp),%rax
xorps  %xmm0,%xmm0
ucomisd (%rax),%xmm0
jbe    1993 <get_planes+0x7e3>
mov    -0x20(%rbp),%rax
movsd  0x67d(%rip),%xmm0
addsd  (%rax),%xmm0
movsd  %xmm0,(%rax)
mov    -0x28(%rbp),%rax
movsd  (%rax),%xmm0
mov    0x2646(%rip),%rax
cvtsi2sdq (%rax),%xmm1
movsd  0x651(%rip),%xmm2
divsd  %xmm2,%xmm1
divsd  %xmm1,%xmm0
mov    -0x28(%rbp),%rax
movsd  %xmm0,(%rax)
mov    -0x30(%rbp),%rax
movsd  (%rax),%xmm0
mov    0x261a(%rip),%rax
cvtsi2sdq (%rax),%xmm1
movsd  0x625(%rip),%xmm2
divsd  %xmm2,%xmm1
divsd  %xmm1,%xmm0
mov    -0x30(%rbp),%rax
movsd  %xmm0,(%rax)
mov    0x10(%rbp),%rax
movsd  (%rax),%xmm0
mov    0x25ee(%rip),%rax
cvtsi2sdq (%rax),%xmm1
movsd  0x5f9(%rip),%xmm2
divsd  %xmm2,%xmm1
divsd  %xmm1,%xmm0
mov    0x10(%rbp),%rax
movsd  %xmm0,(%rax)
mov    0x10(%rbp),%rax
xorps  %xmm0,%xmm0
ucomisd (%rax),%xmm0
jbe    1a3c <get_planes+0x88c>
mov    0x10(%rbp),%rax
movsd  0x5d4(%rip),%xmm0
addsd  (%rax),%xmm0
movsd  %xmm0,(%rax)
mov    0x18(%rbp),%rax
movsd  (%rax),%xmm0
mov    0x259d(%rip),%rax
cvtsi2sdq (%rax),%xmm1
movsd  0x5a8(%rip),%xmm2
divsd  %xmm2,%xmm1
divsd  %xmm1,%xmm0
mov    0x18(%rbp),%rax
movsd  %xmm0,(%rax)
mov    0x20(%rbp),%rax
movsd  (%rax),%xmm0
mov    0x2571(%rip),%rax
cvtsi2sdq (%rax),%xmm1
movsd  0x57c(%rip),%xmm2
divsd  %xmm2,%xmm1
divsd  %xmm1,%xmm0
mov    0x20(%rbp),%rax
movsd  %xmm0,(%rax)
mov    -0x58(%rbp),%rdi
call   1030 <free@plt>
mov    -0x60(%rbp),%rdi
call   1030 <free@plt>
movl   $0x0,-0x38(%rbp)
cmpl   $0x3,-0x38(%rbp)
jge    1ad6 <get_planes+0x926>
mov    -0x50(%rbp),%rax
movslq -0x38(%rbp),%rcx
mov    (%rax,%rcx,8),%rdi
call   1030 <free@plt>
mov    -0x38(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0x38(%rbp)
jmp    1aad <get_planes+0x8fd>
mov    -0x50(%rbp),%rdi
call   1030 <free@plt>
add    $0x80,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<get_planes>:
push   %rbp
push   %r15
push   %r14
push   %r13
push   %r12
push   %rbx
sub    $0x28,%rsp
mov    %r9,0x18(%rsp)
mov    %r8,0x10(%rsp)
mov    %rcx,0x8(%rsp)
mov    %rdx,%r13
mov    %rsi,%r12
mov    %rdi,%rbp
mov    $0x3,%edi
mov    $0x3,%esi
call   10d0 <double_alloc2@plt>
mov    %rax,%r14
mov    $0x3,%edi
call   1080 <double_alloc@plt>
mov    %rax,%rbx
mov    $0x3,%edi
call   1080 <double_alloc@plt>
mov    %rax,%r15
mov    %rbp,%rdi
mov    %r12,%rsi
call   10a0 <set_mt@plt>
lea    0x24(%rsp),%r9
mov    %r12,%rdi
mov    $0x3,%esi
mov    $0x3,%edx
mov    %r13,%rcx
mov    %r14,%r8
call   1040 <jacobi@plt>
mov    %r13,%rdi
mov    %r14,%rsi
mov    $0x3,%edx
call   1090 <eigsrt@plt>
mov    0x10(%r14),%rax
movsd  (%rax),%xmm0
xorpd  %xmm2,%xmm2
ucomisd %xmm0,%xmm2
jbe    127f <get_planes+0xcf>
mov    (%r14),%rcx
movsd  (%rcx),%xmm0
movapd 0xda5(%rip),%xmm1
xorpd  %xmm1,%xmm0
movlpd %xmm0,(%rcx)
mov    0x8(%r14),%rcx
movsd  (%rcx),%xmm0
xorpd  %xmm1,%xmm0
movlpd %xmm0,(%rcx)
movsd  (%rax),%xmm0
xorpd  %xmm1,%xmm0
movlpd %xmm0,(%rax)
movsd  0x10(%rax),%xmm1
ucomisd %xmm1,%xmm2
jbe    12c9 <get_planes+0x119>
mov    (%r14),%rcx
movsd  0x10(%rcx),%xmm0
movapd 0xd66(%rip),%xmm2
xorpd  %xmm2,%xmm0
movlpd %xmm0,0x10(%rcx)
mov    0x8(%r14),%rdx
movsd  0x10(%rdx),%xmm0
xorpd  %xmm2,%xmm0
movlpd %xmm0,0x10(%rdx)
movsd  0x10(%rax),%xmm1
xorpd  %xmm2,%xmm1
movlpd %xmm1,0x10(%rax)
movsd  (%rax),%xmm0
jmp    12d0 <get_planes+0x120>
mov    (%r14),%rcx
mov    0x8(%r14),%rdx
mulsd  0x10(%rdx),%xmm0
mulsd  (%rdx),%xmm1
subsd  %xmm0,%xmm1
movsd  %xmm1,0x8(%rcx)
movsd  (%rax),%xmm0
movsd  (%rcx),%xmm1
mulsd  0x10(%rax),%xmm1
mulsd  0x10(%rcx),%xmm0
subsd  %xmm1,%xmm0
movsd  %xmm0,0x8(%rdx)
movsd  (%rcx),%xmm0
movsd  (%rdx),%xmm1
mulsd  0x10(%rcx),%xmm1
mulsd  0x10(%rdx),%xmm0
subsd  %xmm1,%xmm0
movsd  %xmm0,0x8(%rax)
mov    (%r12),%rax
mov    0x8(%r12),%rdx
movsd  (%rdx),%xmm0
movsd  %xmm0,0x8(%rax)
mov    0x10(%r12),%rsi
movsd  (%rsi),%xmm0
movsd  %xmm0,0x10(%rax)
movsd  0x8(%rsi),%xmm0
movsd  %xmm0,0x10(%rdx)
movsd  (%rcx),%xmm0
addsd  0x10(%rcx),%xmm0
movsd  %xmm0,(%rsp)
mov    $0x2,%edi
call   10c0 <sqrt@plt>
movsd  (%rsp),%xmm1
divsd  %xmm0,%xmm1
movsd  %xmm1,(%rbx)
mov    (%r14),%rax
movsd  (%rax),%xmm0
subsd  0x10(%rax),%xmm0
movsd  %xmm0,(%rsp)
mov    $0x2,%edi
call   10c0 <sqrt@plt>
movsd  (%rsp),%xmm1
divsd  %xmm0,%xmm1
movsd  %xmm1,(%r15)
mov    0x8(%r14),%rax
movsd  (%rax),%xmm0
addsd  0x10(%rax),%xmm0
movsd  %xmm0,(%rsp)
mov    $0x2,%edi
call   10c0 <sqrt@plt>
movsd  (%rsp),%xmm1
divsd  %xmm0,%xmm1
movsd  %xmm1,0x8(%rbx)
mov    0x8(%r14),%rax
movsd  (%rax),%xmm0
subsd  0x10(%rax),%xmm0
movsd  %xmm0,(%rsp)
mov    $0x2,%edi
call   10c0 <sqrt@plt>
movsd  (%rsp),%xmm1
divsd  %xmm0,%xmm1
movsd  %xmm1,0x8(%r15)
mov    0x10(%r14),%rax
movsd  (%rax),%xmm0
addsd  0x10(%rax),%xmm0
movsd  %xmm0,(%rsp)
mov    $0x2,%edi
call   10c0 <sqrt@plt>
movsd  (%rsp),%xmm1
divsd  %xmm0,%xmm1
movsd  %xmm1,0x10(%rbx)
mov    0x10(%r14),%rax
movsd  (%rax),%xmm0
subsd  0x10(%rax),%xmm0
movsd  %xmm0,(%rsp)
mov    $0x2,%edi
call   10c0 <sqrt@plt>
movsd  (%rsp),%xmm1
divsd  %xmm0,%xmm1
movsd  %xmm1,0x10(%r15)
movsd  0x10(%rbx),%xmm0
xorpd  %xmm1,%xmm1
ucomisd %xmm1,%xmm0
jbe    14a7 <get_planes+0x2f7>
movsd  (%rbx),%xmm0
movapd 0xbab(%rip),%xmm1
xorpd  %xmm1,%xmm0
movlpd %xmm0,(%rbx)
movsd  (%r15),%xmm0
xorpd  %xmm1,%xmm0
movlpd %xmm0,(%r15)
movsd  0x8(%rbx),%xmm0
xorpd  %xmm1,%xmm0
movlpd %xmm0,0x8(%rbx)
movsd  0x8(%r15),%xmm0
xorpd  %xmm1,%xmm0
movlpd %xmm0,0x8(%r15)
movsd  0x10(%rbx),%xmm0
xorpd  %xmm1,%xmm0
movlpd %xmm0,0x10(%rbx)
movsd  0x10(%r15),%xmm0
xorpd  %xmm1,%xmm0
movlpd %xmm0,0x10(%r15)
mov    0x68(%rsp),%r13
mov    0x60(%rsp),%rbp
movsd  (%rbx),%xmm0
xorps  0xb44(%rip),%xmm0
movsd  0x8(%rbx),%xmm1
call   1050 <atan2@plt>
mov    0x8(%rsp),%r12
movsd  %xmm0,(%r12)
movsd  0x10(%rbx),%xmm0
xorps  0xb23(%rip),%xmm0
call   1060 <acos@plt>
mov    0x10(%rsp),%rax
movsd  %xmm0,(%rax)
movsd  (%r12),%xmm0
call   1070 <sin@plt>
movsd  %xmm0,(%rsp)
movsd  (%r12),%xmm0
call   10b0 <cos@plt>
movsd  (%r15),%xmm1
movsd  0x8(%r15),%xmm3
movapd %xmm1,%xmm2
mulsd  %xmm0,%xmm1
mulsd  %xmm3,%xmm0
movsd  (%rsp),%xmm4
mulsd  %xmm4,%xmm2
subsd  %xmm0,%xmm2
mulsd  %xmm3,%xmm4
addsd  %xmm4,%xmm1
xorpd  0xac6(%rip),%xmm1
mulsd  0x10(%rbx),%xmm1
movapd %xmm2,%xmm0
call   1050 <atan2@plt>
mov    0x18(%rsp),%rax
movsd  %xmm0,(%rax)
mov    (%r14),%rax
movsd  (%rax),%xmm0
subsd  0x10(%rax),%xmm0
movsd  %xmm0,(%rsp)
mov    $0x2,%edi
call   10c0 <sqrt@plt>
movsd  (%rsp),%xmm1
divsd  %xmm0,%xmm1
movsd  %xmm1,(%rbx)
mov    (%r14),%rax
movsd  (%rax),%xmm0
addsd  0x10(%rax),%xmm0
movsd  %xmm0,(%rsp)
mov    $0x2,%edi
call   10c0 <sqrt@plt>
movsd  (%rsp),%xmm1
divsd  %xmm0,%xmm1
movsd  %xmm1,(%r15)
mov    0x8(%r14),%rax
movsd  (%rax),%xmm0
subsd  0x10(%rax),%xmm0
movsd  %xmm0,(%rsp)
mov    $0x2,%edi
call   10c0 <sqrt@plt>
movsd  (%rsp),%xmm1
divsd  %xmm0,%xmm1
movsd  %xmm1,0x8(%rbx)
mov    0x8(%r14),%rax
movsd  (%rax),%xmm0
addsd  0x10(%rax),%xmm0
movsd  %xmm0,(%rsp)
mov    $0x2,%edi
call   10c0 <sqrt@plt>
movsd  (%rsp),%xmm1
divsd  %xmm0,%xmm1
movsd  %xmm1,0x8(%r15)
mov    0x10(%r14),%rax
movsd  (%rax),%xmm0
subsd  0x10(%rax),%xmm0
movsd  %xmm0,(%rsp)
mov    $0x2,%edi
call   10c0 <sqrt@plt>
movsd  (%rsp),%xmm1
divsd  %xmm0,%xmm1
movsd  %xmm1,0x10(%rbx)
mov    0x10(%r14),%rax
movsd  (%rax),%xmm0
addsd  0x10(%rax),%xmm0
movsd  %xmm0,(%rsp)
mov    $0x2,%edi
call   10c0 <sqrt@plt>
movsd  (%rsp),%xmm1
divsd  %xmm0,%xmm1
movsd  %xmm1,0x10(%r15)
movsd  0x10(%rbx),%xmm0
ucomisd 0x9c7(%rip),%xmm0
jbe    16b9 <get_planes+0x509>
movsd  (%rbx),%xmm0
movapd 0x999(%rip),%xmm1
xorpd  %xmm1,%xmm0
movlpd %xmm0,(%rbx)
movsd  (%r15),%xmm0
xorpd  %xmm1,%xmm0
movlpd %xmm0,(%r15)
movsd  0x8(%rbx),%xmm0
xorpd  %xmm1,%xmm0
movlpd %xmm0,0x8(%rbx)
movsd  0x8(%r15),%xmm0
xorpd  %xmm1,%xmm0
movlpd %xmm0,0x8(%r15)
movsd  0x10(%rbx),%xmm0
xorpd  %xmm1,%xmm0
movlpd %xmm0,0x10(%rbx)
movsd  0x10(%r15),%xmm0
xorpd  %xmm1,%xmm0
movlpd %xmm0,0x10(%r15)
movsd  (%rbx),%xmm0
movaps 0x93c(%rip),%xmm1
xorps  %xmm1,%xmm0
movsd  0x8(%rbx),%xmm1
call   1050 <atan2@plt>
movsd  %xmm0,0x0(%rbp)
movsd  0x10(%rbx),%xmm0
xorps  0x91e(%rip),%xmm0
call   1060 <acos@plt>
movsd  %xmm0,0x0(%r13)
movsd  0x0(%rbp),%xmm0
call   1070 <sin@plt>
movsd  %xmm0,(%rsp)
movsd  0x0(%rbp),%xmm0
call   10b0 <cos@plt>
movsd  (%r15),%xmm1
movsd  0x8(%r15),%xmm3
movapd %xmm1,%xmm2
mulsd  %xmm0,%xmm1
mulsd  %xmm3,%xmm0
movsd  (%rsp),%xmm4
mulsd  %xmm4,%xmm2
subsd  %xmm0,%xmm2
mulsd  %xmm3,%xmm4
addsd  %xmm4,%xmm1
xorpd  0x8c6(%rip),%xmm1
mulsd  0x10(%rbx),%xmm1
movapd %xmm2,%xmm0
call   1050 <atan2@plt>
mov    0x70(%rsp),%rcx
movsd  %xmm0,(%rcx)
mov    0x2890(%rip),%rax
xorps  %xmm0,%xmm0
cvtsi2sdq (%rax),%xmm0
mov    0x8(%rsp),%rax
movsd  (%rax),%xmm2
divsd  0x89f(%rip),%xmm0
divsd  %xmm0,%xmm2
movsd  0x89b(%rip),%xmm1
movapd %xmm2,%xmm3
addsd  %xmm1,%xmm3
xorpd  %xmm4,%xmm4
movapd %xmm2,%xmm5
cmpltsd %xmm4,%xmm5
andpd  %xmm5,%xmm3
andnpd %xmm2,%xmm5
orpd   %xmm3,%xmm5
movlpd %xmm5,(%rax)
mov    0x10(%rsp),%rax
movsd  (%rax),%xmm2
divsd  %xmm0,%xmm2
movsd  %xmm2,(%rax)
mov    0x18(%rsp),%rax
movsd  (%rax),%xmm2
divsd  %xmm0,%xmm2
movsd  %xmm2,(%rax)
movsd  0x0(%rbp),%xmm2
divsd  %xmm0,%xmm2
addsd  %xmm2,%xmm1
movapd %xmm2,%xmm3
cmpltsd %xmm4,%xmm3
andpd  %xmm3,%xmm1
andnpd %xmm2,%xmm3
orpd   %xmm1,%xmm3
movlpd %xmm3,0x0(%rbp)
movsd  0x0(%r13),%xmm1
divsd  %xmm0,%xmm1
movsd  %xmm1,0x0(%r13)
movsd  (%rcx),%xmm1
divsd  %xmm0,%xmm1
movsd  %xmm1,(%rcx)
mov    %rbx,%rdi
call   1030 <free@plt>
mov    %r15,%rdi
call   1030 <free@plt>
mov    (%r14),%rdi
call   1030 <free@plt>
mov    0x8(%r14),%rdi
call   1030 <free@plt>
mov    0x10(%r14),%rdi
call   1030 <free@plt>
mov    %r14,%rdi
call   1030 <free@plt>
add    $0x28,%rsp
pop    %rbx
pop    %r12
pop    %r13
pop    %r14
pop    %r15
pop    %rbp
ret

LLVM IR (-O0):
@M_PI = global i64 0
define void @get_planes(double* %0, double** %1, double* %2, double* %3, double* %4, double* %5, double* %6, double* %7, double* %8) {
%10 = alloca double*
%11 = alloca double**
%12 = alloca double*
%13 = alloca double*
%14 = alloca double*
%15 = alloca double*
%16 = alloca double*
%17 = alloca double*
%18 = alloca double*
%19 = alloca i32
%20 = alloca i32
%21 = alloca double
%22 = alloca double
%23 = alloca double**
%24 = alloca double*
%25 = alloca double*
store double* %0, double** %10
store double** %1, double*** %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
%26 = call double** @double_alloc2(i32 3, i32 3)
store double** %26, double*** %23
%27 = call double* @double_alloc(i32 3)
store double* %27, double** %24
%28 = call double* @double_alloc(i32 3)
store double* %28, double** %25
%29 = load double*, double** %10
%30 = load double**, double*** %11
%31 = call i32 @set_mt(double* %29, double** %30)
%32 = load double**, double*** %11
%33 = load double*, double** %12
%34 = load double**, double*** %23
%35 = call i32 @jacobi(double** %32, i32 3, i32 3, double* %33, double** %34, i32* %19)
%36 = load double*, double** %12
%37 = load double**, double*** %23
%38 = call i32 @eigsrt(double* %36, double** %37, i32 3)
%39 = load double**, double*** %23
%40 = getelementptr inbounds double*, double** %39, i64 2
%41 = load double*, double** %40
%42 = getelementptr inbounds double, double* %41, i64 0
%43 = load double, double* %42
%44 = fcmp olt double %43, 0.000000e+00
br i1 %44, label %45, label %68
45: ; preds = %9
store i32 0, i32* %20
br label %46
46: ; preds = %64, %45
%47 = load i32, i32* %20
%48 = icmp slt i32 %47, 3
br i1 %48, label %49, label %67
49: ; preds = %46
%50 = load double**, double*** %23
%51 = load i32, i32* %20
%52 = sext i32 %51 to i64
%53 = getelementptr inbounds double*, double** %50, i64 %52
%54 = load double*, double** %53
%55 = getelementptr inbounds double, double* %54, i64 0
%56 = load double, double* %55
%57 = fneg double %56
%58 = load double**, double*** %23
%59 = load i32, i32* %20
%60 = sext i32 %59 to i64
%61 = getelementptr inbounds double*, double** %58, i64 %60
%62 = load double*, double** %61
%63 = getelementptr inbounds double, double* %62, i64 0
store double %57, double* %63
br label %64
64: ; preds = %49
%65 = load i32, i32* %20
%66 = add nsw i32 %65, 1
store i32 %66, i32* %20
br label %46
67: ; preds = %46
br label %68
68: ; preds = %67, %9
%69 = load double**, double*** %23
%70 = getelementptr inbounds double*, double** %69, i64 2
%71 = load double*, double** %70
%72 = getelementptr inbounds double, double* %71, i64 2
%73 = load double, double* %72
%74 = fcmp olt double %73, 0.000000e+00
br i1 %74, label %75, label %98
75: ; preds = %68
store i32 0, i32* %20
br label %76
76: ; preds = %94, %75
%77 = load i32, i32* %20
%78 = icmp slt i32 %77, 3
br i1 %78, label %79, label %97
79: ; preds = %76
%80 = load double**, double*** %23
%81 = load i32, i32* %20
%82 = sext i32 %81 to i64
%83 = getelementptr inbounds double*, double** %80, i64 %82
%84 = load double*, double** %83
%85 = getelementptr inbounds double, double* %84, i64 2
%86 = load double, double* %85
%87 = fneg double %86
%88 = load double**, double*** %23
%89 = load i32, i32* %20
%90 = sext i32 %89 to i64
%91 = getelementptr inbounds double*, double** %88, i64 %90
%92 = load double*, double** %91
%93 = getelementptr inbounds double, double* %92, i64 2
store double %87, double* %93
br label %94
94: ; preds = %79
%95 = load i32, i32* %20
%96 = add nsw i32 %95, 1
store i32 %96, i32* %20
br label %76
97: ; preds = %76
br label %98
98: ; preds = %97, %68
%99 = load double**, double*** %23
%100 = getelementptr inbounds double*, double** %99, i64 1
%101 = load double*, double** %100
%102 = getelementptr inbounds double, double* %101, i64 0
%103 = load double, double* %102
%104 = load double**, double*** %23
%105 = getelementptr inbounds double*, double** %104, i64 2
%106 = load double*, double** %105
%107 = getelementptr inbounds double, double* %106, i64 2
%108 = load double, double* %107
%109 = load double**, double*** %23
%110 = getelementptr inbounds double*, double** %109, i64 1
%111 = load double*, double** %110
%112 = getelementptr inbounds double, double* %111, i64 2
%113 = load double, double* %112
%114 = load double**, double*** %23
%115 = getelementptr inbounds double*, double** %114, i64 2
%116 = load double*, double** %115
%117 = getelementptr inbounds double, double* %116, i64 0
%118 = load double, double* %117
%119 = fmul double %113, %118
%120 = fneg double %119
%121 = call double @llvm.fmuladd.f64(double %103, double %108, double %120)
%122 = load double**, double*** %23
%123 = getelementptr inbounds double*, double** %122, i64 0
%124 = load double*, double** %123
%125 = getelementptr inbounds double, double* %124, i64 1
store double %121, double* %125
%126 = load double**, double*** %23
%127 = getelementptr inbounds double*, double** %126, i64 2
%128 = load double*, double** %127
%129 = getelementptr inbounds double, double* %128, i64 0
%130 = load double, double* %129
%131 = load double**, double*** %23
%132 = getelementptr inbounds double*, double** %131, i64 0
%133 = load double*, double** %132
%134 = getelementptr inbounds double, double* %133, i64 2
%135 = load double, double* %134
%136 = load double**, double*** %23
%137 = getelementptr inbounds double*, double** %136, i64 2
%138 = load double*, double** %137
%139 = getelementptr inbounds double, double* %138, i64 2
%140 = load double, double* %139
%141 = load double**, double*** %23
%142 = getelementptr inbounds double*, double** %141, i64 0
%143 = load double*, double** %142
%144 = getelementptr inbounds double, double* %143, i64 0
%145 = load double, double* %144
%146 = fmul double %140, %145
%147 = fneg double %146
%148 = call double @llvm.fmuladd.f64(double %130, double %135, double %147)
%149 = load double**, double*** %23
%150 = getelementptr inbounds double*, double** %149, i64 1
%151 = load double*, double** %150
%152 = getelementptr inbounds double, double* %151, i64 1
store double %148, double* %152
%153 = load double**, double*** %23
%154 = getelementptr inbounds double*, double** %153, i64 0
%155 = load double*, double** %154
%156 = getelementptr inbounds double, double* %155, i64 0
%157 = load double, double* %156
%158 = load double**, double*** %23
%159 = getelementptr inbounds double*, double** %158, i64 1
%160 = load double*, double** %159
%161 = getelementptr inbounds double, double* %160, i64 2
%162 = load double, double* %161
%163 = load double**, double*** %23
%164 = getelementptr inbounds double*, double** %163, i64 0
%165 = load double*, double** %164
%166 = getelementptr inbounds double, double* %165, i64 2
%167 = load double, double* %166
%168 = load double**, double*** %23
%169 = getelementptr inbounds double*, double** %168, i64 1
%170 = load double*, double** %169
%171 = getelementptr inbounds double, double* %170, i64 0
%172 = load double, double* %171
%173 = fmul double %167, %172
%174 = fneg double %173
%175 = call double @llvm.fmuladd.f64(double %157, double %162, double %174)
%176 = load double**, double*** %23
%177 = getelementptr inbounds double*, double** %176, i64 2
%178 = load double*, double** %177
%179 = getelementptr inbounds double, double* %178, i64 1
store double %175, double* %179
%180 = load double**, double*** %11
%181 = getelementptr inbounds double*, double** %180, i64 1
%182 = load double*, double** %181
%183 = getelementptr inbounds double, double* %182, i64 0
%184 = load double, double* %183
%185 = load double**, double*** %11
%186 = getelementptr inbounds double*, double** %185, i64 0
%187 = load double*, double** %186
%188 = getelementptr inbounds double, double* %187, i64 1
store double %184, double* %188
%189 = load double**, double*** %11
%190 = getelementptr inbounds double*, double** %189, i64 2
%191 = load double*, double** %190
%192 = getelementptr inbounds double, double* %191, i64 0
%193 = load double, double* %192
%194 = load double**, double*** %11
%195 = getelementptr inbounds double*, double** %194, i64 0
%196 = load double*, double** %195
%197 = getelementptr inbounds double, double* %196, i64 2
store double %193, double* %197
%198 = load double**, double*** %11
%199 = getelementptr inbounds double*, double** %198, i64 2
%200 = load double*, double** %199
%201 = getelementptr inbounds double, double* %200, i64 1
%202 = load double, double* %201
%203 = load double**, double*** %11
%204 = getelementptr inbounds double*, double** %203, i64 1
%205 = load double*, double** %204
%206 = getelementptr inbounds double, double* %205, i64 2
store double %202, double* %206
store i32 0, i32* %20
br label %207
207: ; preds = %253, %98
%208 = load i32, i32* %20
%209 = icmp slt i32 %208, 3
br i1 %209, label %210, label %256
210: ; preds = %207
%211 = load double**, double*** %23
%212 = load i32, i32* %20
%213 = sext i32 %212 to i64
%214 = getelementptr inbounds double*, double** %211, i64 %213
%215 = load double*, double** %214
%216 = getelementptr inbounds double, double* %215, i64 0
%217 = load double, double* %216
%218 = load double**, double*** %23
%219 = load i32, i32* %20
%220 = sext i32 %219 to i64
%221 = getelementptr inbounds double*, double** %218, i64 %220
%222 = load double*, double** %221
%223 = getelementptr inbounds double, double* %222, i64 2
%224 = load double, double* %223
%225 = fadd double %217, %224
%226 = call double @sqrt(i32 2)
%227 = fdiv double %225, %226
%228 = load double*, double** %24
%229 = load i32, i32* %20
%230 = sext i32 %229 to i64
%231 = getelementptr inbounds double, double* %228, i64 %230
store double %227, double* %231
%232 = load double**, double*** %23
%233 = load i32, i32* %20
%234 = sext i32 %233 to i64
%235 = getelementptr inbounds double*, double** %232, i64 %234
%236 = load double*, double** %235
%237 = getelementptr inbounds double, double* %236, i64 0
%238 = load double, double* %237
%239 = load double**, double*** %23
%240 = load i32, i32* %20
%241 = sext i32 %240 to i64
%242 = getelementptr inbounds double*, double** %239, i64 %241
%243 = load double*, double** %242
%244 = getelementptr inbounds double, double* %243, i64 2
%245 = load double, double* %244
%246 = fsub double %238, %245
%247 = call double @sqrt(i32 2)
%248 = fdiv double %246, %247
%249 = load double*, double** %25
%250 = load i32, i32* %20
%251 = sext i32 %250 to i64
%252 = getelementptr inbounds double, double* %249, i64 %251
store double %248, double* %252
br label %253
253: ; preds = %210
%254 = load i32, i32* %20
%255 = add nsw i32 %254, 1
store i32 %255, i32* %20
br label %207
256: ; preds = %207
%257 = load double*, double** %24
%258 = getelementptr inbounds double, double* %257, i64 2
%259 = load double, double* %258
%260 = fcmp ogt double %259, 0.000000e+00
br i1 %260, label %261, label %290
261: ; preds = %256
store i32 0, i32* %20
br label %262
262: ; preds = %286, %261
%263 = load i32, i32* %20
%264 = icmp slt i32 %263, 3
br i1 %264, label %265, label %289
265: ; preds = %262
%266 = load double*, double** %24
%267 = load i32, i32* %20
%268 = sext i32 %267 to i64
%269 = getelementptr inbounds double, double* %266, i64 %268
%270 = load double, double* %269
%271 = fneg double %270
%272 = load double*, double** %24
%273 = load i32, i32* %20
%274 = sext i32 %273 to i64
%275 = getelementptr inbounds double, double* %272, i64 %274
store double %271, double* %275
%276 = load double*, double** %25
%277 = load i32, i32* %20
%278 = sext i32 %277 to i64
%279 = getelementptr inbounds double, double* %276, i64 %278
%280 = load double, double* %279
%281 = fneg double %280
%282 = load double*, double** %25
%283 = load i32, i32* %20
%284 = sext i32 %283 to i64
%285 = getelementptr inbounds double, double* %282, i64 %284
store double %281, double* %285
br label %286
286: ; preds = %265
%287 = load i32, i32* %20
%288 = add nsw i32 %287, 1
store i32 %288, i32* %20
br label %262
289: ; preds = %262
br label %290
290: ; preds = %289, %256
%291 = load double*, double** %24
%292 = getelementptr inbounds double, double* %291, i64 0
%293 = load double, double* %292
%294 = fneg double %293
%295 = load double*, double** %24
%296 = getelementptr inbounds double, double* %295, i64 1
%297 = load double, double* %296
%298 = call double @atan2(double %294, double %297)
%299 = load double*, double** %13
store double %298, double* %299
%300 = load double*, double** %24
%301 = getelementptr inbounds double, double* %300, i64 2
%302 = load double, double* %301
%303 = fneg double %302
%304 = call double @acos(double %303)
%305 = load double*, double** %14
store double %304, double* %305
%306 = load double*, double** %13
%307 = load double, double* %306
%308 = call double @sin(double %307)
store double %308, double* %21
%309 = load double*, double** %13
%310 = load double, double* %309
%311 = call double @cos(double %310)
store double %311, double* %22
%312 = load double*, double** %25
%313 = getelementptr inbounds double, double* %312, i64 0
%314 = load double, double* %313
%315 = load double, double* %21
%316 = load double*, double** %25
%317 = getelementptr inbounds double, double* %316, i64 1
%318 = load double, double* %317
%319 = load double, double* %22
%320 = fmul double %318, %319
%321 = fneg double %320
%322 = call double @llvm.fmuladd.f64(double %314, double %315, double %321)
%323 = load double*, double** %25
%324 = getelementptr inbounds double, double* %323, i64 0
%325 = load double, double* %324
%326 = load double, double* %22
%327 = load double*, double** %25
%328 = getelementptr inbounds double, double* %327, i64 1
%329 = load double, double* %328
%330 = load double, double* %21
%331 = fmul double %329, %330
%332 = call double @llvm.fmuladd.f64(double %325, double %326, double %331)
%333 = fneg double %332
%334 = load double*, double** %24
%335 = getelementptr inbounds double, double* %334, i64 2
%336 = load double, double* %335
%337 = fmul double %333, %336
%338 = call double @atan2(double %322, double %337)
%339 = load double*, double** %15
store double %338, double* %339
store i32 0, i32* %20
br label %340
340: ; preds = %386, %290
%341 = load i32, i32* %20
%342 = icmp slt i32 %341, 3
br i1 %342, label %343, label %389
343: ; preds = %340
%344 = load double**, double*** %23
%345 = load i32, i32* %20
%346 = sext i32 %345 to i64
%347 = getelementptr inbounds double*, double** %344, i64 %346
%348 = load double*, double** %347
%349 = getelementptr inbounds double, double* %348, i64 0
%350 = load double, double* %349
%351 = load double**, double*** %23
%352 = load i32, i32* %20
%353 = sext i32 %352 to i64
%354 = getelementptr inbounds double*, double** %351, i64 %353
%355 = load double*, double** %354
%356 = getelementptr inbounds double, double* %355, i64 2
%357 = load double, double* %356
%358 = fsub double %350, %357
%359 = call double @sqrt(i32 2)
%360 = fdiv double %358, %359
%361 = load double*, double** %24
%362 = load i32, i32* %20
%363 = sext i32 %362 to i64
%364 = getelementptr inbounds double, double* %361, i64 %363
store double %360, double* %364
%365 = load double**, double*** %23
%366 = load i32, i32* %20
%367 = sext i32 %366 to i64
%368 = getelementptr inbounds double*, double** %365, i64 %367
%369 = load double*, double** %368
%370 = getelementptr inbounds double, double* %369, i64 0
%371 = load double, double* %370
%372 = load double**, double*** %23
%373 = load i32, i32* %20
%374 = sext i32 %373 to i64
%375 = getelementptr inbounds double*, double** %372, i64 %374
%376 = load double*, double** %375
%377 = getelementptr inbounds double, double* %376, i64 2
%378 = load double, double* %377
%379 = fadd double %371, %378
%380 = call double @sqrt(i32 2)
%381 = fdiv double %379, %380
%382 = load double*, double** %25
%383 = load i32, i32* %20
%384 = sext i32 %383 to i64
%385 = getelementptr inbounds double, double* %382, i64 %384
store double %381, double* %385
br label %386
386: ; preds = %343
%387 = load i32, i32* %20
%388 = add nsw i32 %387, 1
store i32 %388, i32* %20
br label %340
389: ; preds = %340
%390 = load double*, double** %24
%391 = getelementptr inbounds double, double* %390, i64 2
%392 = load double, double* %391
%393 = fcmp ogt double %392, 0.000000e+00
br i1 %393, label %394, label %423
394: ; preds = %389
store i32 0, i32* %20
br label %395
395: ; preds = %419, %394
%396 = load i32, i32* %20
%397 = icmp slt i32 %396, 3
br i1 %397, label %398, label %422
398: ; preds = %395
%399 = load double*, double** %24
%400 = load i32, i32* %20
%401 = sext i32 %400 to i64
%402 = getelementptr inbounds double, double* %399, i64 %401
%403 = load double, double* %402
%404 = fneg double %403
%405 = load double*, double** %24
%406 = load i32, i32* %20
%407 = sext i32 %406 to i64
%408 = getelementptr inbounds double, double* %405, i64 %407
store double %404, double* %408
%409 = load double*, double** %25
%410 = load i32, i32* %20
%411 = sext i32 %410 to i64
%412 = getelementptr inbounds double, double* %409, i64 %411
%413 = load double, double* %412
%414 = fneg double %413
%415 = load double*, double** %25
%416 = load i32, i32* %20
%417 = sext i32 %416 to i64
%418 = getelementptr inbounds double, double* %415, i64 %417
store double %414, double* %418
br label %419
419: ; preds = %398
%420 = load i32, i32* %20
%421 = add nsw i32 %420, 1
store i32 %421, i32* %20
br label %395
422: ; preds = %395
br label %423
423: ; preds = %422, %389
%424 = load double*, double** %24
%425 = getelementptr inbounds double, double* %424, i64 0
%426 = load double, double* %425
%427 = fneg double %426
%428 = load double*, double** %24
%429 = getelementptr inbounds double, double* %428, i64 1
%430 = load double, double* %429
%431 = call double @atan2(double %427, double %430)
%432 = load double*, double** %16
store double %431, double* %432
%433 = load double*, double** %24
%434 = getelementptr inbounds double, double* %433, i64 2
%435 = load double, double* %434
%436 = fneg double %435
%437 = call double @acos(double %436)
%438 = load double*, double** %17
store double %437, double* %438
%439 = load double*, double** %16
%440 = load double, double* %439
%441 = call double @sin(double %440)
store double %441, double* %21
%442 = load double*, double** %16
%443 = load double, double* %442
%444 = call double @cos(double %443)
store double %444, double* %22
%445 = load double*, double** %25
%446 = getelementptr inbounds double, double* %445, i64 0
%447 = load double, double* %446
%448 = load double, double* %21
%449 = load double*, double** %25
%450 = getelementptr inbounds double, double* %449, i64 1
%451 = load double, double* %450
%452 = load double, double* %22
%453 = fmul double %451, %452
%454 = fneg double %453
%455 = call double @llvm.fmuladd.f64(double %447, double %448, double %454)
%456 = load double*, double** %25
%457 = getelementptr inbounds double, double* %456, i64 0
%458 = load double, double* %457
%459 = load double, double* %22
%460 = load double*, double** %25
%461 = getelementptr inbounds double, double* %460, i64 1
%462 = load double, double* %461
%463 = load double, double* %21
%464 = fmul double %462, %463
%465 = call double @llvm.fmuladd.f64(double %458, double %459, double %464)
%466 = fneg double %465
%467 = load double*, double** %24
%468 = getelementptr inbounds double, double* %467, i64 2
%469 = load double, double* %468
%470 = fmul double %466, %469
%471 = call double @atan2(double %455, double %470)
%472 = load double*, double** %18
store double %471, double* %472
%473 = load double*, double** %13
%474 = load double, double* %473
%475 = load i64, i64* @M_PI
%476 = sitofp i64 %475 to double
%477 = fdiv double %476, 1.800000e+02
%478 = fdiv double %474, %477
%479 = load double*, double** %13
store double %478, double* %479
%480 = load double*, double** %13
%481 = load double, double* %480
%482 = fcmp olt double %481, 0.000000e+00
br i1 %482, label %483, label %487
483: ; preds = %423
%484 = load double*, double** %13
%485 = load double, double* %484
%486 = fadd double %485, 3.600000e+02
store double %486, double* %484
br label %487
487: ; preds = %483, %423
%488 = load double*, double** %14
%489 = load double, double* %488
%490 = load i64, i64* @M_PI
%491 = sitofp i64 %490 to double
%492 = fdiv double %491, 1.800000e+02
%493 = fdiv double %489, %492
%494 = load double*, double** %14
store double %493, double* %494
%495 = load double*, double** %15
%496 = load double, double* %495
%497 = load i64, i64* @M_PI
%498 = sitofp i64 %497 to double
%499 = fdiv double %498, 1.800000e+02
%500 = fdiv double %496, %499
%501 = load double*, double** %15
store double %500, double* %501
%502 = load double*, double** %16
%503 = load double, double* %502
%504 = load i64, i64* @M_PI
%505 = sitofp i64 %504 to double
%506 = fdiv double %505, 1.800000e+02
%507 = fdiv double %503, %506
%508 = load double*, double** %16
store double %507, double* %508
%509 = load double*, double** %16
%510 = load double, double* %509
%511 = fcmp olt double %510, 0.000000e+00
br i1 %511, label %512, label %516
512: ; preds = %487
%513 = load double*, double** %16
%514 = load double, double* %513
%515 = fadd double %514, 3.600000e+02
store double %515, double* %513
br label %516
516: ; preds = %512, %487
%517 = load double*, double** %17
%518 = load double, double* %517
%519 = load i64, i64* @M_PI
%520 = sitofp i64 %519 to double
%521 = fdiv double %520, 1.800000e+02
%522 = fdiv double %518, %521
%523 = load double*, double** %17
store double %522, double* %523
%524 = load double*, double** %18
%525 = load double, double* %524
%526 = load i64, i64* @M_PI
%527 = sitofp i64 %526 to double
%528 = fdiv double %527, 1.800000e+02
%529 = fdiv double %525, %528
%530 = load double*, double** %18
store double %529, double* %530
%531 = load double*, double** %24
%532 = bitcast double* %531 to i8*
%533 = bitcast i8* %532 to i8**
%534 = call i32 @free(i8** %533)
%535 = load double*, double** %25
%536 = bitcast double* %535 to i8*
%537 = bitcast i8* %536 to i8**
%538 = call i32 @free(i8** %537)
store i32 0, i32* %20
br label %539
539: ; preds = %551, %516
%540 = load i32, i32* %20
%541 = icmp slt i32 %540, 3
br i1 %541, label %542, label %554
542: ; preds = %539
%543 = load double**, double*** %23
%544 = load i32, i32* %20
%545 = sext i32 %544 to i64
%546 = getelementptr inbounds double*, double** %543, i64 %545
%547 = load double*, double** %546
%548 = bitcast double* %547 to i8*
%549 = bitcast i8* %548 to i8**
%550 = call i32 @free(i8** %549)
br label %551
551: ; preds = %542
%552 = load i32, i32* %20
%553 = add nsw i32 %552, 1
store i32 %553, i32* %20
br label %539
554: ; preds = %539
%555 = load double**, double*** %23
%556 = bitcast double** %555 to i8**
%557 = call i32 @free(i8** %556)
ret void
}

LLVM IR (-O2):
@M_PI = global i64 0
define void @get_planes(double* %0, double** %1, double* %2, double* nocapture %3, double* nocapture %4, double* nocapture %5, double* nocapture %6, double* nocapture %7, double* nocapture %8) {
%10 = alloca i32
%11 = bitcast i32* %10 to i8*
%12 = tail call double** @double_alloc2(i32 3, i32 3)
%13 = tail call double* @double_alloc(i32 3)
%14 = tail call double* @double_alloc(i32 3)
%15 = tail call i32 @set_mt(double* %0, double** %1)
%16 = call i32 @jacobi(double** %1, i32 3, i32 3, double* %2, double** %12, i32* %10)
%17 = call i32 @eigsrt(double* %2, double** %12, i32 3)
%18 = getelementptr inbounds double*, double** %12, i64 2
%19 = load double*, double** %18
%20 = load double, double* %19
%21 = fcmp olt double %20, 0.000000e+00
br i1 %21, label %22, label %32
22: ; preds = %9
%23 = load double*, double** %12
%24 = load double, double* %23
%25 = fneg double %24
store double %25, double* %23
%26 = getelementptr inbounds double*, double** %12, i64 1
%27 = load double*, double** %26
%28 = load double, double* %27
%29 = fneg double %28
store double %29, double* %27
%30 = load double, double* %19
%31 = fneg double %30
store double %31, double* %19
br label %32
32: ; preds = %22, %9
%33 = phi double [ %31, %22 ], [ %20, %9 ]
%34 = getelementptr inbounds double, double* %19, i64 2
%35 = load double, double* %34
%36 = fcmp olt double %35, 0.000000e+00
br i1 %36, label %41, label %37
37: ; preds = %32
%38 = getelementptr inbounds double*, double** %12, i64 1
%39 = load double*, double** %38
%40 = load double*, double** %12
br label %54
41: ; preds = %32
%42 = load double*, double** %12
%43 = getelementptr inbounds double, double* %42, i64 2
%44 = load double, double* %43
%45 = fneg double %44
store double %45, double* %43
%46 = getelementptr inbounds double*, double** %12, i64 1
%47 = load double*, double** %46
%48 = getelementptr inbounds double, double* %47, i64 2
%49 = load double, double* %48
%50 = fneg double %49
store double %50, double* %48
%51 = load double, double* %34
%52 = fneg double %51
store double %52, double* %34
%53 = load double, double* %19
br label %54
54: ; preds = %37, %41
%55 = phi double* [ %40, %37 ], [ %42, %41 ]
%56 = phi double [ %33, %37 ], [ %53, %41 ]
%57 = phi double [ %35, %37 ], [ %52, %41 ]
%58 = phi double* [ %39, %37 ], [ %47, %41 ]
%59 = getelementptr inbounds double*, double** %12, i64 1
%60 = load double, double* %58
%61 = getelementptr inbounds double, double* %58, i64 2
%62 = load double, double* %61
%63 = fneg double %62
%64 = fmul double %56, %63
%65 = call double @llvm.fmuladd.f64(double %60, double %57, double %64)
%66 = getelementptr inbounds double, double* %55, i64 1
store double %65, double* %66
%67 = load double, double* %19
%68 = getelementptr inbounds double, double* %55, i64 2
%69 = load double, double* %68
%70 = load double, double* %34
%71 = load double, double* %55
%72 = fneg double %70
%73 = fmul double %71, %72
%74 = call double @llvm.fmuladd.f64(double %67, double %69, double %73)
%75 = getelementptr inbounds double, double* %58, i64 1
store double %74, double* %75
%76 = load double, double* %55
%77 = load double, double* %61
%78 = load double, double* %68
%79 = load double, double* %58
%80 = fneg double %78
%81 = fmul double %79, %80
%82 = call double @llvm.fmuladd.f64(double %76, double %77, double %81)
%83 = getelementptr inbounds double, double* %19, i64 1
store double %82, double* %83
%84 = getelementptr inbounds double*, double** %1, i64 1
%85 = load double*, double** %84
%86 = load double, double* %85
%87 = load double*, double** %1
%88 = getelementptr inbounds double, double* %87, i64 1
store double %86, double* %88
%89 = getelementptr inbounds double*, double** %1, i64 2
%90 = load double*, double** %89
%91 = load double, double* %90
%92 = getelementptr inbounds double, double* %87, i64 2
store double %91, double* %92
%93 = getelementptr inbounds double, double* %90, i64 1
%94 = load double, double* %93
%95 = getelementptr inbounds double, double* %85, i64 2
store double %94, double* %95
%96 = load double, double* %55
%97 = load double, double* %68
%98 = fadd double %96, %97
%99 = call double @sqrt(i32 2)
%100 = fdiv double %98, %99
store double %100, double* %13
%101 = load double*, double** %12
%102 = load double, double* %101
%103 = getelementptr inbounds double, double* %101, i64 2
%104 = load double, double* %103
%105 = fsub double %102, %104
%106 = call double @sqrt(i32 2)
%107 = fdiv double %105, %106
store double %107, double* %14
%108 = load double*, double** %59
%109 = load double, double* %108
%110 = getelementptr inbounds double, double* %108, i64 2
%111 = load double, double* %110
%112 = fadd double %109, %111
%113 = call double @sqrt(i32 2)
%114 = fdiv double %112, %113
%115 = getelementptr inbounds double, double* %13, i64 1
store double %114, double* %115
%116 = load double*, double** %59
%117 = load double, double* %116
%118 = getelementptr inbounds double, double* %116, i64 2
%119 = load double, double* %118
%120 = fsub double %117, %119
%121 = call double @sqrt(i32 2)
%122 = fdiv double %120, %121
%123 = getelementptr inbounds double, double* %14, i64 1
store double %122, double* %123
%124 = load double*, double** %18
%125 = load double, double* %124
%126 = getelementptr inbounds double, double* %124, i64 2
%127 = load double, double* %126
%128 = fadd double %125, %127
%129 = call double @sqrt(i32 2)
%130 = fdiv double %128, %129
%131 = getelementptr inbounds double, double* %13, i64 2
store double %130, double* %131
%132 = load double*, double** %18
%133 = load double, double* %132
%134 = getelementptr inbounds double, double* %132, i64 2
%135 = load double, double* %134
%136 = fsub double %133, %135
%137 = call double @sqrt(i32 2)
%138 = fdiv double %136, %137
%139 = getelementptr inbounds double, double* %14, i64 2
store double %138, double* %139
%140 = load double, double* %131
%141 = fcmp ogt double %140, 0.000000e+00
br i1 %141, label %142, label %155
142: ; preds = %54
%143 = load double, double* %13
%144 = fneg double %143
store double %144, double* %13
%145 = load double, double* %14
%146 = fneg double %145
store double %146, double* %14
%147 = load double, double* %115
%148 = fneg double %147
store double %148, double* %115
%149 = load double, double* %123
%150 = fneg double %149
store double %150, double* %123
%151 = load double, double* %131
%152 = fneg double %151
store double %152, double* %131
%153 = load double, double* %139
%154 = fneg double %153
store double %154, double* %139
br label %155
155: ; preds = %142, %54
%156 = load double, double* %13
%157 = fneg double %156
%158 = load double, double* %115
%159 = call double @atan2(double %157, double %158)
store double %159, double* %3
%160 = load double, double* %131
%161 = fneg double %160
%162 = call double @acos(double %161)
store double %162, double* %4
%163 = load double, double* %3
%164 = call double @sin(double %163)
%165 = load double, double* %3
%166 = call double @cos(double %165)
%167 = load double, double* %14
%168 = load double, double* %123
%169 = fneg double %168
%170 = fmul double %166, %169
%171 = call double @llvm.fmuladd.f64(double %167, double %164, double %170)
%172 = fmul double %164, %168
%173 = call double @llvm.fmuladd.f64(double %167, double %166, double %172)
%174 = fneg double %173
%175 = load double, double* %131
%176 = fmul double %175, %174
%177 = call double @atan2(double %171, double %176)
store double %177, double* %5
%178 = load double*, double** %12
%179 = load double, double* %178
%180 = getelementptr inbounds double, double* %178, i64 2
%181 = load double, double* %180
%182 = fsub double %179, %181
%183 = call double @sqrt(i32 2)
%184 = fdiv double %182, %183
store double %184, double* %13
%185 = load double*, double** %12
%186 = load double, double* %185
%187 = getelementptr inbounds double, double* %185, i64 2
%188 = load double, double* %187
%189 = fadd double %186, %188
%190 = call double @sqrt(i32 2)
%191 = fdiv double %189, %190
store double %191, double* %14
%192 = load double*, double** %59
%193 = load double, double* %192
%194 = getelementptr inbounds double, double* %192, i64 2
%195 = load double, double* %194
%196 = fsub double %193, %195
%197 = call double @sqrt(i32 2)
%198 = fdiv double %196, %197
store double %198, double* %115
%199 = load double*, double** %59
%200 = load double, double* %199
%201 = getelementptr inbounds double, double* %199, i64 2
%202 = load double, double* %201
%203 = fadd double %200, %202
%204 = call double @sqrt(i32 2)
%205 = fdiv double %203, %204
store double %205, double* %123
%206 = load double*, double** %18
%207 = load double, double* %206
%208 = getelementptr inbounds double, double* %206, i64 2
%209 = load double, double* %208
%210 = fsub double %207, %209
%211 = call double @sqrt(i32 2)
%212 = fdiv double %210, %211
store double %212, double* %131
%213 = load double*, double** %18
%214 = load double, double* %213
%215 = getelementptr inbounds double, double* %213, i64 2
%216 = load double, double* %215
%217 = fadd double %214, %216
%218 = call double @sqrt(i32 2)
%219 = fdiv double %217, %218
store double %219, double* %139
%220 = load double, double* %131
%221 = fcmp ogt double %220, 0.000000e+00
br i1 %221, label %222, label %235
222: ; preds = %155
%223 = load double, double* %13
%224 = fneg double %223
store double %224, double* %13
%225 = load double, double* %14
%226 = fneg double %225
store double %226, double* %14
%227 = load double, double* %115
%228 = fneg double %227
store double %228, double* %115
%229 = load double, double* %123
%230 = fneg double %229
store double %230, double* %123
%231 = load double, double* %131
%232 = fneg double %231
store double %232, double* %131
%233 = load double, double* %139
%234 = fneg double %233
store double %234, double* %139
br label %235
235: ; preds = %222, %155
%236 = load double, double* %13
%237 = fneg double %236
%238 = load double, double* %115
%239 = call double @atan2(double %237, double %238)
store double %239, double* %6
%240 = load double, double* %131
%241 = fneg double %240
%242 = call double @acos(double %241)
store double %242, double* %7
%243 = load double, double* %6
%244 = call double @sin(double %243)
%245 = load double, double* %6
%246 = call double @cos(double %245)
%247 = load double, double* %14
%248 = load double, double* %123
%249 = fneg double %248
%250 = fmul double %246, %249
%251 = call double @llvm.fmuladd.f64(double %247, double %244, double %250)
%252 = fmul double %244, %248
%253 = call double @llvm.fmuladd.f64(double %247, double %246, double %252)
%254 = fneg double %253
%255 = load double, double* %131
%256 = fmul double %255, %254
%257 = call double @atan2(double %251, double %256)
store double %257, double* %8
%258 = load double, double* %3
%259 = load i64, i64* @M_PI
%260 = sitofp i64 %259 to double
%261 = fdiv double %260, 1.800000e+02
%262 = fdiv double %258, %261
%263 = fcmp olt double %262, 0.000000e+00
%264 = fadd double %262, 3.600000e+02
%265 = select i1 %263, double %264, double %262
store double %265, double* %3
%266 = load double, double* %4
%267 = fdiv double %266, %261
store double %267, double* %4
%268 = load double, double* %5
%269 = fdiv double %268, %261
store double %269, double* %5
%270 = load double, double* %6
%271 = fdiv double %270, %261
%272 = fcmp olt double %271, 0.000000e+00
%273 = fadd double %271, 3.600000e+02
%274 = select i1 %272, double %273, double %271
store double %274, double* %6
%275 = load double, double* %7
%276 = fdiv double %275, %261
store double %276, double* %7
%277 = load double, double* %8
%278 = fdiv double %277, %261
store double %278, double* %8
%279 = bitcast double* %13 to i8**
%280 = call i32 @free(i8** %279)
%281 = bitcast double* %14 to i8**
%282 = call i32 @free(i8** %281)
%283 = bitcast double** %12 to i8***
%284 = load i8**, i8*** %283
%285 = call i32 @free(i8** %284)
%286 = bitcast double** %59 to i8***
%287 = load i8**, i8*** %286
%288 = call i32 @free(i8** %287)
%289 = bitcast double** %18 to i8***
%290 = load i8**, i8*** %289
%291 = call i32 @free(i8** %290)
%292 = bitcast double** %12 to i8**
%293 = call i32 @free(i8** %292)
ret void
}