#define NULL ((void *)0)
typedef unsigned long size_t; // Customize by platform.
typedef long intptr_t;
typedef unsigned long uintptr_t;
typedef long scalar_t__; // Either arithmetic or pointer type.
/* By default, we understand bool (as a convenience). */
typedef int bool;
#define false 0
#define true 1

/* Forward declarations */

/* Type definitions */

/* Variables and functions */
int cos(double const);
double sin(double const);
double sqrt(double);
double to_radians(double const);
int find_side(double *sides, const double *angles) {
  double a, b, c;
  register int i;
  a = b = c = 0;
  for (i = 0; i < 3; i++) {
    const double A = to_radians(angles[(i + 0)]);
    const double B = to_radians(angles[(i + 1) % 3]);
    const double C = to_radians(angles[(i + 2) % 3]);
    a = sides[(i + 0)];
    b = sides[(i + 1) % 3];
    c = sides[(i + 2) % 3];
    if (!((a) > 0) && ((A) > 0) && ((b) > 0) && ((B) > 0)) {
      a = sin(A) * b / sin(B);
      goto new_info;
    }
    if (!((a) > 0) && ((A) > 0) && ((c) > 0) && ((C) > 0)) {
      a = sin(A) * c / sin(C);
      goto new_info;
    }
    if (!((b) > 0) && ((B) > 0) && ((a) > 0) && ((A) > 0)) {
      b = sin(B) * a / sin(A);
      goto new_info;
    }
    if (!((b) > 0) && ((B) > 0) && ((c) > 0) && ((C) > 0)) {
      b = sin(B) * c / sin(C);
      goto new_info;
    }
    if (!((c) > 0) && ((C) > 0) && ((a) > 0) && ((A) > 0)) {
      c = sin(C) * a / sin(A);
      goto new_info;
    }
    if (!((c) > 0) && ((C) > 0) && ((b) > 0) && ((B) > 0)) {
      c = sin(C) * b / sin(B);
      goto new_info;
    }
    if (!((c) > 0) && ((C) > 0) && ((a) > 0) && ((b) > 0)) {
      c = sqrt(a * a + b * b - 2 * a * b * cos(C));
      goto new_info;
    }
    if (!((b) > 0) && ((B) > 0) && ((a) > 0) && ((c) > 0)) {
      b = sqrt(a * a + c * c - 2 * a * c * cos(B));
      goto new_info;
    }
    if (!((a) > 0) && ((A) > 0) && ((a) > 0) && ((b) > 0)) {
      a = sqrt(b * b + c * c - 2 * b * c * cos(A));
      goto new_info;
    }
  }
  return 0;
new_info:
  sides[(i + 0) % 3] = a;
  sides[(i + 1) % 3] = b;
  sides[(i + 2) % 3] = c;
  return 1;
}


x86 assembly (clang, -O0):
<find_side>:
push   %rbp
mov    %rsp,%rbp
sub    $0xf0,%rsp
mov    %rdi,-0x10(%rbp)
mov    %rsi,-0x18(%rbp)
xorps  %xmm0,%xmm0
movsd  %xmm0,-0x30(%rbp)
xorps  %xmm0,%xmm0
movsd  %xmm0,-0x28(%rbp)
xorps  %xmm0,%xmm0
movsd  %xmm0,-0x20(%rbp)
movl   $0x0,-0x34(%rbp)
cmpl   $0x3,-0x34(%rbp)
jge    17de <find_side+0x69e>
mov    -0x18(%rbp),%rax
mov    -0x34(%rbp),%ecx
add    $0x0,%ecx
movslq %ecx,%rcx
movsd  (%rax,%rcx,8),%xmm0
call   1030 <to_radians@plt>
movsd  %xmm0,-0x40(%rbp)
mov    -0x18(%rbp),%rax
mov    %rax,-0x70(%rbp)
mov    -0x34(%rbp),%eax
add    $0x1,%eax
mov    $0x3,%ecx
cltd
idiv   %ecx
mov    -0x70(%rbp),%rax
movslq %edx,%rcx
movsd  (%rax,%rcx,8),%xmm0
call   1030 <to_radians@plt>
movsd  %xmm0,-0x48(%rbp)
mov    -0x18(%rbp),%rax
mov    %rax,-0x68(%rbp)
mov    -0x34(%rbp),%eax
add    $0x2,%eax
mov    $0x3,%ecx
cltd
idiv   %ecx
mov    -0x68(%rbp),%rax
movslq %edx,%rcx
movsd  (%rax,%rcx,8),%xmm0
call   1030 <to_radians@plt>
movsd  %xmm0,-0x50(%rbp)
mov    -0x10(%rbp),%rax
mov    -0x34(%rbp),%ecx
add    $0x0,%ecx
movslq %ecx,%rcx
movsd  (%rax,%rcx,8),%xmm0
movsd  %xmm0,-0x20(%rbp)
mov    -0x10(%rbp),%rax
mov    %rax,-0x60(%rbp)
mov    -0x34(%rbp),%eax
add    $0x1,%eax
mov    $0x3,%ecx
cltd
idiv   %ecx
mov    -0x60(%rbp),%rax
movslq %edx,%rcx
movsd  (%rax,%rcx,8),%xmm0
movsd  %xmm0,-0x28(%rbp)
mov    -0x10(%rbp),%rax
mov    %rax,-0x58(%rbp)
mov    -0x34(%rbp),%eax
add    $0x2,%eax
mov    $0x3,%ecx
cltd
idiv   %ecx
mov    -0x58(%rbp),%rax
movslq %edx,%rcx
movsd  (%rax,%rcx,8),%xmm0
movsd  %xmm0,-0x30(%rbp)
movsd  -0x20(%rbp),%xmm0
xorps  %xmm1,%xmm1
ucomisd %xmm1,%xmm0
ja     12d1 <find_side+0x191>
movsd  -0x40(%rbp),%xmm0
xorps  %xmm1,%xmm1
ucomisd %xmm1,%xmm0
jbe    12d1 <find_side+0x191>
movsd  -0x28(%rbp),%xmm0
xorps  %xmm1,%xmm1
ucomisd %xmm1,%xmm0
jbe    12d1 <find_side+0x191>
movsd  -0x48(%rbp),%xmm0
xorps  %xmm1,%xmm1
ucomisd %xmm1,%xmm0
jbe    12d1 <find_side+0x191>
movsd  -0x40(%rbp),%xmm0
call   1040 <sin@plt>
mulsd  -0x28(%rbp),%xmm0
movsd  %xmm0,-0x78(%rbp)
movsd  -0x48(%rbp),%xmm0
call   1040 <sin@plt>
movaps %xmm0,%xmm1
movsd  -0x78(%rbp),%xmm0
divsd  %xmm1,%xmm0
movsd  %xmm0,-0x20(%rbp)
jmp    17ea <find_side+0x6aa>
movsd  -0x20(%rbp),%xmm0
xorps  %xmm1,%xmm1
ucomisd %xmm1,%xmm0
ja     134d <find_side+0x20d>
movsd  -0x40(%rbp),%xmm0
xorps  %xmm1,%xmm1
ucomisd %xmm1,%xmm0
jbe    134d <find_side+0x20d>
movsd  -0x30(%rbp),%xmm0
xorps  %xmm1,%xmm1
ucomisd %xmm1,%xmm0
jbe    134d <find_side+0x20d>
movsd  -0x50(%rbp),%xmm0
xorps  %xmm1,%xmm1
ucomisd %xmm1,%xmm0
jbe    134d <find_side+0x20d>
movsd  -0x40(%rbp),%xmm0
call   1040 <sin@plt>
mulsd  -0x30(%rbp),%xmm0
movsd  %xmm0,-0x80(%rbp)
movsd  -0x50(%rbp),%xmm0
call   1040 <sin@plt>
movaps %xmm0,%xmm1
movsd  -0x80(%rbp),%xmm0
divsd  %xmm1,%xmm0
movsd  %xmm0,-0x20(%rbp)
jmp    17ea <find_side+0x6aa>
movsd  -0x28(%rbp),%xmm0
xorps  %xmm1,%xmm1
ucomisd %xmm1,%xmm0
ja     13cf <find_side+0x28f>
movsd  -0x48(%rbp),%xmm0
xorps  %xmm1,%xmm1
ucomisd %xmm1,%xmm0
jbe    13cf <find_side+0x28f>
movsd  -0x20(%rbp),%xmm0
xorps  %xmm1,%xmm1
ucomisd %xmm1,%xmm0
jbe    13cf <find_side+0x28f>
movsd  -0x40(%rbp),%xmm0
xorps  %xmm1,%xmm1
ucomisd %xmm1,%xmm0
jbe    13cf <find_side+0x28f>
movsd  -0x48(%rbp),%xmm0
call   1040 <sin@plt>
mulsd  -0x20(%rbp),%xmm0
movsd  %xmm0,-0x88(%rbp)
ff
movsd  -0x40(%rbp),%xmm0
call   1040 <sin@plt>
movaps %xmm0,%xmm1
movsd  -0x88(%rbp),%xmm0
ff
divsd  %xmm1,%xmm0
movsd  %xmm0,-0x28(%rbp)
jmp    17ea <find_side+0x6aa>
movsd  -0x28(%rbp),%xmm0
xorps  %xmm1,%xmm1
ucomisd %xmm1,%xmm0
ja     1451 <find_side+0x311>
movsd  -0x48(%rbp),%xmm0
xorps  %xmm1,%xmm1
ucomisd %xmm1,%xmm0
jbe    1451 <find_side+0x311>
movsd  -0x30(%rbp),%xmm0
xorps  %xmm1,%xmm1
ucomisd %xmm1,%xmm0
jbe    1451 <find_side+0x311>
movsd  -0x50(%rbp),%xmm0
xorps  %xmm1,%xmm1
ucomisd %xmm1,%xmm0
jbe    1451 <find_side+0x311>
movsd  -0x48(%rbp),%xmm0
call   1040 <sin@plt>
mulsd  -0x30(%rbp),%xmm0
movsd  %xmm0,-0x90(%rbp)
ff
movsd  -0x50(%rbp),%xmm0
call   1040 <sin@plt>
movaps %xmm0,%xmm1
movsd  -0x90(%rbp),%xmm0
ff
divsd  %xmm1,%xmm0
movsd  %xmm0,-0x28(%rbp)
jmp    17ea <find_side+0x6aa>
movsd  -0x30(%rbp),%xmm0
xorps  %xmm1,%xmm1
ucomisd %xmm1,%xmm0
ja     14d3 <find_side+0x393>
movsd  -0x50(%rbp),%xmm0
xorps  %xmm1,%xmm1
ucomisd %xmm1,%xmm0
jbe    14d3 <find_side+0x393>
movsd  -0x20(%rbp),%xmm0
xorps  %xmm1,%xmm1
ucomisd %xmm1,%xmm0
jbe    14d3 <find_side+0x393>
movsd  -0x40(%rbp),%xmm0
xorps  %xmm1,%xmm1
ucomisd %xmm1,%xmm0
jbe    14d3 <find_side+0x393>
movsd  -0x50(%rbp),%xmm0
call   1040 <sin@plt>
mulsd  -0x20(%rbp),%xmm0
movsd  %xmm0,-0x98(%rbp)
ff
movsd  -0x40(%rbp),%xmm0
call   1040 <sin@plt>
movaps %xmm0,%xmm1
movsd  -0x98(%rbp),%xmm0
ff
divsd  %xmm1,%xmm0
movsd  %xmm0,-0x30(%rbp)
jmp    17ea <find_side+0x6aa>
movsd  -0x30(%rbp),%xmm0
xorps  %xmm1,%xmm1
ucomisd %xmm1,%xmm0
ja     1555 <find_side+0x415>
movsd  -0x50(%rbp),%xmm0
xorps  %xmm1,%xmm1
ucomisd %xmm1,%xmm0
jbe    1555 <find_side+0x415>
movsd  -0x28(%rbp),%xmm0
xorps  %xmm1,%xmm1
ucomisd %xmm1,%xmm0
jbe    1555 <find_side+0x415>
movsd  -0x48(%rbp),%xmm0
xorps  %xmm1,%xmm1
ucomisd %xmm1,%xmm0
jbe    1555 <find_side+0x415>
movsd  -0x50(%rbp),%xmm0
call   1040 <sin@plt>
mulsd  -0x28(%rbp),%xmm0
movsd  %xmm0,-0xa0(%rbp)
ff
movsd  -0x48(%rbp),%xmm0
call   1040 <sin@plt>
movaps %xmm0,%xmm1
movsd  -0xa0(%rbp),%xmm0
ff
divsd  %xmm1,%xmm0
movsd  %xmm0,-0x30(%rbp)
jmp    17ea <find_side+0x6aa>
movsd  -0x30(%rbp),%xmm0
xorps  %xmm1,%xmm1
ucomisd %xmm1,%xmm0
ja     1627 <find_side+0x4e7>
movsd  -0x50(%rbp),%xmm0
xorps  %xmm1,%xmm1
ucomisd %xmm1,%xmm0
jbe    1627 <find_side+0x4e7>
movsd  -0x20(%rbp),%xmm0
xorps  %xmm1,%xmm1
ucomisd %xmm1,%xmm0
jbe    1627 <find_side+0x4e7>
movsd  -0x28(%rbp),%xmm0
xorps  %xmm1,%xmm1
ucomisd %xmm1,%xmm0
jbe    1627 <find_side+0x4e7>
movsd  -0x20(%rbp),%xmm0
movsd  -0x20(%rbp),%xmm2
movsd  -0x28(%rbp),%xmm1
mulsd  -0x28(%rbp),%xmm1
mulsd  %xmm2,%xmm0
addsd  %xmm1,%xmm0
movsd  %xmm0,-0xa8(%rbp)
ff
movsd  0xa37(%rip),%xmm0
mulsd  -0x20(%rbp),%xmm0
mulsd  -0x28(%rbp),%xmm0
movsd  %xmm0,-0xb0(%rbp)
ff
movsd  -0x50(%rbp),%xmm0
call   1050 <cos@plt>
movsd  -0xb0(%rbp),%xmm0
ff
movsd  -0xa8(%rbp),%xmm1
ff
cvtsi2sd %eax,%xmm2
movq   %xmm0,%rax
movabs $0x8000000000000000,%rcx
xor    %rcx,%rax
movq   %rax,%xmm0
mulsd  %xmm2,%xmm0
addsd  %xmm1,%xmm0
call   1060 <sqrt@plt>
movsd  %xmm0,-0x30(%rbp)
jmp    17ea <find_side+0x6aa>
movsd  -0x28(%rbp),%xmm0
xorps  %xmm1,%xmm1
ucomisd %xmm1,%xmm0
ja     16f9 <find_side+0x5b9>
movsd  -0x48(%rbp),%xmm0
xorps  %xmm1,%xmm1
ucomisd %xmm1,%xmm0
jbe    16f9 <find_side+0x5b9>
movsd  -0x20(%rbp),%xmm0
xorps  %xmm1,%xmm1
ucomisd %xmm1,%xmm0
jbe    16f9 <find_side+0x5b9>
movsd  -0x30(%rbp),%xmm0
xorps  %xmm1,%xmm1
ucomisd %xmm1,%xmm0
jbe    16f9 <find_side+0x5b9>
movsd  -0x20(%rbp),%xmm0
movsd  -0x20(%rbp),%xmm2
movsd  -0x30(%rbp),%xmm1
mulsd  -0x30(%rbp),%xmm1
mulsd  %xmm2,%xmm0
addsd  %xmm1,%xmm0
movsd  %xmm0,-0xb8(%rbp)
ff
movsd  0x965(%rip),%xmm0
mulsd  -0x20(%rbp),%xmm0
mulsd  -0x30(%rbp),%xmm0
movsd  %xmm0,-0xc0(%rbp)
ff
movsd  -0x48(%rbp),%xmm0
call   1050 <cos@plt>
movsd  -0xc0(%rbp),%xmm0
ff
movsd  -0xb8(%rbp),%xmm1
ff
cvtsi2sd %eax,%xmm2
movq   %xmm0,%rax
movabs $0x8000000000000000,%rcx
xor    %rcx,%rax
movq   %rax,%xmm0
mulsd  %xmm2,%xmm0
addsd  %xmm1,%xmm0
call   1060 <sqrt@plt>
movsd  %xmm0,-0x28(%rbp)
jmp    17ea <find_side+0x6aa>
movsd  -0x20(%rbp),%xmm0
xorps  %xmm1,%xmm1
ucomisd %xmm1,%xmm0
ja     17cb <find_side+0x68b>
movsd  -0x40(%rbp),%xmm0
xorps  %xmm1,%xmm1
ucomisd %xmm1,%xmm0
jbe    17cb <find_side+0x68b>
movsd  -0x20(%rbp),%xmm0
xorps  %xmm1,%xmm1
ucomisd %xmm1,%xmm0
jbe    17cb <find_side+0x68b>
movsd  -0x28(%rbp),%xmm0
xorps  %xmm1,%xmm1
ucomisd %xmm1,%xmm0
jbe    17cb <find_side+0x68b>
movsd  -0x28(%rbp),%xmm0
movsd  -0x28(%rbp),%xmm2
movsd  -0x30(%rbp),%xmm1
mulsd  -0x30(%rbp),%xmm1
mulsd  %xmm2,%xmm0
addsd  %xmm1,%xmm0
movsd  %xmm0,-0xc8(%rbp)
ff
movsd  0x893(%rip),%xmm0
mulsd  -0x28(%rbp),%xmm0
mulsd  -0x30(%rbp),%xmm0
movsd  %xmm0,-0xd0(%rbp)
ff
movsd  -0x40(%rbp),%xmm0
call   1050 <cos@plt>
movsd  -0xd0(%rbp),%xmm0
ff
movsd  -0xc8(%rbp),%xmm1
ff
cvtsi2sd %eax,%xmm2
movq   %xmm0,%rax
movabs $0x8000000000000000,%rcx
xor    %rcx,%rax
movq   %rax,%xmm0
mulsd  %xmm2,%xmm0
addsd  %xmm1,%xmm0
call   1060 <sqrt@plt>
movsd  %xmm0,-0x20(%rbp)
jmp    17ea <find_side+0x6aa>
jmp    17d0 <find_side+0x690>
mov    -0x34(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0x34(%rbp)
jmp    1172 <find_side+0x32>
movl   $0x0,-0x4(%rbp)
jmp    1878 <find_side+0x738>
movsd  -0x20(%rbp),%xmm0
mov    -0x10(%rbp),%rax
mov    %rax,-0xe8(%rbp)
mov    -0x34(%rbp),%eax
add    $0x0,%eax
mov    $0x3,%ecx
cltd
idiv   %ecx
mov    -0xe8(%rbp),%rax
movslq %edx,%rcx
movsd  %xmm0,(%rax,%rcx,8)
movsd  -0x28(%rbp),%xmm0
mov    -0x10(%rbp),%rax
mov    %rax,-0xe0(%rbp)
mov    -0x34(%rbp),%eax
add    $0x1,%eax
mov    $0x3,%ecx
cltd
idiv   %ecx
mov    -0xe0(%rbp),%rax
movslq %edx,%rcx
movsd  %xmm0,(%rax,%rcx,8)
movsd  -0x30(%rbp),%xmm0
mov    -0x10(%rbp),%rax
mov    %rax,-0xd8(%rbp)
mov    -0x34(%rbp),%eax
add    $0x2,%eax
mov    $0x3,%ecx
cltd
idiv   %ecx
mov    -0xd8(%rbp),%rax
movslq %edx,%rcx
movsd  %xmm0,(%rax,%rcx,8)
movl   $0x1,-0x4(%rbp)
mov    -0x4(%rbp),%eax
add    $0xf0,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<find_side>:
push   %rbp
push   %r15
push   %r14
push   %r13
push   %r12
push   %rbx
sub    $0x58,%rsp
lea    0x10(%rdi),%rax
mov    %rax,0x10(%rsp)
lea    0x10(%rsi),%rax
mov    %rax,0x8(%rsp)
mov    %rdi,0x40(%rsp)
lea    0x8(%rdi),%rax
mov    %rax,0x50(%rsp)
mov    %rsi,0x18(%rsp)
lea    0x8(%rsi),%rax
mov    %rax,0x48(%rsp)
mov    $0x2,%edi
mov    $0x1,%r9d
xor    %esi,%esi
xor    %ebx,%ebx
mov    %rdi,%rax
movabs $0xaaaaaaaaaaaaaaab,%rbp
aa aa aa
mul    %rbp
mov    %rdx,%rcx
mov    %rsi,%r13
mov    %r9,%rax
mul    %rbp
cmp    $0x18,%rsi
je     13e3 <find_side+0x2a3>
mov    %rdi,0x30(%rsp)
mov    %r9,0x38(%rsp)
mov    %rbx,%rbp
shl    $0x2,%rcx
and    $0xfffffffffffffff8,%rcx
lea    (%rcx,%rcx,2),%rax
mov    0x10(%rsp),%r14
sub    %rax,%r14
mov    0x8(%rsp),%rbx
sub    %rax,%rbx
shl    $0x2,%rdx
and    $0xfffffffffffffff8,%rdx
lea    (%rdx,%rdx,2),%rax
mov    0x50(%rsp),%r15
sub    %rax,%r15
mov    0x48(%rsp),%r12
sub    %rax,%r12
mov    0x18(%rsp),%rax
movsd  (%rax,%r13,1),%xmm0
call   1030 <to_radians@plt>
movsd  %xmm0,0x20(%rsp)
movsd  (%r12,%r13,1),%xmm0
call   1030 <to_radians@plt>
movsd  %xmm0,0x28(%rsp)
movsd  (%rbx,%r13,1),%xmm0
call   1030 <to_radians@plt>
movsd  0x28(%rsp),%xmm5
movsd  0x20(%rsp),%xmm4
movapd %xmm0,%xmm6
xorpd  %xmm0,%xmm0
mov    0x40(%rsp),%rax
movsd  (%rax,%r13,1),%xmm3
movsd  (%r15,%r13,1),%xmm2
movsd  (%r14,%r13,1),%xmm1
ucomisd %xmm0,%xmm3
setbe  %cl
ucomisd %xmm0,%xmm4
seta   %r8b
and    %cl,%r8b
cmp    $0x1,%r8b
jne    127b <find_side+0x13b>
ucomisd %xmm0,%xmm2
jbe    127b <find_side+0x13b>
ucomisd %xmm0,%xmm5
ja     13ea <find_side+0x2aa>
ucomisd %xmm0,%xmm1
seta   %cl
and    %r8b,%cl
cmp    $0x1,%cl
jne    1294 <find_side+0x154>
ucomisd %xmm0,%xmm6
ja     1413 <find_side+0x2d3>
ucomisd %xmm0,%xmm5
seta   %cl
ucomisd %xmm0,%xmm2
setbe  %dl
and    %cl,%dl
ucomisd %xmm0,%xmm3
seta   %cl
and    %dl,%cl
cmp    $0x1,%cl
jne    12bc <find_side+0x17c>
ucomisd %xmm0,%xmm4
ja     145d <find_side+0x31d>
ucomisd %xmm0,%xmm1
seta   %bl
and    %bl,%dl
cmp    $0x1,%dl
mov    %rbp,%r14
mov    0x38(%rsp),%r15
mov    0x30(%rsp),%rbp
jne    12e1 <find_side+0x1a1>
ucomisd %xmm0,%xmm6
ja     14b1 <find_side+0x371>
ucomisd %xmm0,%xmm3
seta   %dl
ucomisd %xmm0,%xmm6
seta   %al
ucomisd %xmm0,%xmm1
setbe  %bl
and    %al,%bl
and    %bl,%dl
cmp    $0x1,%dl
jne    1309 <find_side+0x1c9>
ucomisd %xmm0,%xmm4
ja     14fb <find_side+0x3bb>
ucomisd %xmm0,%xmm2
seta   %al
and    %al,%bl
cmp    $0x1,%bl
jne    1321 <find_side+0x1e1>
ucomisd %xmm0,%xmm5
ja     1524 <find_side+0x3e4>
ucomisd %xmm0,%xmm2
seta   %al
and    %al,%dl
cmp    $0x1,%dl
je     15e3 <find_side+0x4a3>
ucomisd %xmm0,%xmm1
seta   %al
and    %al,%cl
cmp    $0x1,%cl
je     1652 <find_side+0x512>
ucomisd %xmm0,%xmm3
setbe  %al
xor    $0x1,%r8b
lea    0x8(%r13),%rsi
lea    0x1(%rbp),%rdi
lea    0x1(%r15),%r9
lea    0x1(%r14),%rbx
or     %al,%r8b
jne    118b <find_side+0x4b>
ucomisd %xmm0,%xmm2
jbe    118b <find_side+0x4b>
movapd %xmm1,%xmm0
mulsd  %xmm1,%xmm0
movapd %xmm2,%xmm3
mulsd  %xmm2,%xmm3
addsd  %xmm0,%xmm3
movsd  %xmm3,0x28(%rsp)
movapd %xmm4,%xmm0
movsd  %xmm1,0x8(%rsp)
movsd  %xmm2,0x10(%rsp)
call   1050 <cos@plt>
movsd  0x10(%rsp),%xmm3
movsd  0x8(%rsp),%xmm2
cvtsi2sd %eax,%xmm1
movsd  0xc46(%rip),%xmm0
mulsd  %xmm3,%xmm0
mulsd  %xmm2,%xmm0
mulsd  %xmm1,%xmm0
addsd  0x28(%rsp),%xmm0
xorpd  %xmm1,%xmm1
ucomisd %xmm1,%xmm0
jb     16f2 <find_side+0x5b2>
sqrtsd %xmm0,%xmm4
jmp    1566 <find_side+0x426>
xor    %eax,%eax
jmp    15d4 <find_side+0x494>
movapd %xmm4,%xmm0
movsd  %xmm1,0x8(%rsp)
movsd  %xmm2,0x10(%rsp)
call   1040 <sin@plt>
mulsd  0x10(%rsp),%xmm0
movsd  %xmm0,0x18(%rsp)
movsd  0x28(%rsp),%xmm0
jmp    1440 <find_side+0x300>
movapd %xmm4,%xmm0
movsd  %xmm1,0x8(%rsp)
movsd  %xmm2,0x10(%rsp)
movsd  %xmm6,0x20(%rsp)
call   1040 <sin@plt>
mulsd  0x8(%rsp),%xmm0
movsd  %xmm0,0x18(%rsp)
movsd  0x20(%rsp),%xmm0
call   1040 <sin@plt>
movsd  0x18(%rsp),%xmm4
movsd  0x10(%rsp),%xmm3
movsd  0x8(%rsp),%xmm2
divsd  %xmm0,%xmm4
jmp    149f <find_side+0x35f>
movapd %xmm5,%xmm0
movsd  %xmm1,0x8(%rsp)
movsd  %xmm3,0x18(%rsp)
call   1040 <sin@plt>
mulsd  0x18(%rsp),%xmm0
movsd  %xmm0,0x10(%rsp)
movsd  0x20(%rsp),%xmm0
call   1040 <sin@plt>
movsd  0x18(%rsp),%xmm4
movsd  0x10(%rsp),%xmm3
movsd  0x8(%rsp),%xmm2
divsd  %xmm0,%xmm3
mov    %rbp,%r14
mov    0x38(%rsp),%r15
mov    0x30(%rsp),%rbp
jmp    1566 <find_side+0x426>
movapd %xmm5,%xmm0
movsd  %xmm1,0x8(%rsp)
movsd  %xmm3,0x18(%rsp)
movsd  %xmm6,0x20(%rsp)
call   1040 <sin@plt>
mulsd  0x8(%rsp),%xmm0
movsd  %xmm0,0x10(%rsp)
movsd  0x20(%rsp),%xmm0
call   1040 <sin@plt>
movsd  0x18(%rsp),%xmm4
movsd  0x10(%rsp),%xmm3
movsd  0x8(%rsp),%xmm2
divsd  %xmm0,%xmm3
jmp    1566 <find_side+0x426>
movapd %xmm6,%xmm0
movsd  %xmm2,0x10(%rsp)
movsd  %xmm3,0x18(%rsp)
call   1040 <sin@plt>
mulsd  0x18(%rsp),%xmm0
movsd  %xmm0,0x8(%rsp)
movsd  0x20(%rsp),%xmm0
jmp    154b <find_side+0x40b>
movapd %xmm6,%xmm0
movsd  %xmm2,0x10(%rsp)
movsd  %xmm3,0x18(%rsp)
call   1040 <sin@plt>
mulsd  0x10(%rsp),%xmm0
movsd  %xmm0,0x8(%rsp)
movsd  0x28(%rsp),%xmm0
call   1040 <sin@plt>
movsd  0x18(%rsp),%xmm4
movsd  0x10(%rsp),%xmm3
movsd  0x8(%rsp),%xmm2
divsd  %xmm0,%xmm2
mov    %rbp,%rax
movabs $0xaaaaaaaaaaaaaaab,%rbp
aa aa aa
mul    %rbp
shl    $0x2,%rdx
and    $0xfffffffffffffff8,%rdx
lea    (%rdx,%rdx,2),%rax
mov    0x40(%rsp),%rdi
mov    %rdi,%rcx
sub    %rax,%rcx
mov    %r15,%rax
mul    %rbp
shl    $0x2,%rdx
and    $0xfffffffffffffff8,%rdx
lea    (%rdx,%rdx,2),%rax
mov    %rdi,%rsi
sub    %rax,%rsi
mov    %r14,%rax
mul    %rbp
shl    $0x2,%rdx
and    $0xfffffffffffffff8,%rdx
lea    (%rdx,%rdx,2),%rax
sub    %rax,%rdi
movsd  %xmm4,0x0(%r13,%rdi,1)
movsd  %xmm3,0x8(%r13,%rsi,1)
movsd  %xmm2,0x10(%r13,%rcx,1)
mov    $0x1,%eax
add    $0x58,%rsp
pop    %rbx
pop    %r12
pop    %r13
pop    %r14
pop    %r15
pop    %rbp
ret
movapd %xmm2,%xmm0
mulsd  %xmm2,%xmm0
movapd %xmm3,%xmm1
mulsd  %xmm3,%xmm1
addsd  %xmm0,%xmm1
movsd  %xmm1,0x20(%rsp)
movapd %xmm6,%xmm0
movsd  %xmm2,0x10(%rsp)
movsd  %xmm3,0x18(%rsp)
call   1050 <cos@plt>
movsd  0x18(%rsp),%xmm4
movsd  0x10(%rsp),%xmm3
xorps  %xmm1,%xmm1
cvtsi2sd %eax,%xmm1
movsd  0x9d3(%rip),%xmm0
mulsd  %xmm4,%xmm0
mulsd  %xmm3,%xmm0
mulsd  %xmm1,%xmm0
addsd  0x20(%rsp),%xmm0
xorpd  %xmm1,%xmm1
ucomisd %xmm1,%xmm0
jb     16be <find_side+0x57e>
sqrtsd %xmm0,%xmm2
jmp    1566 <find_side+0x426>
movapd %xmm1,%xmm0
mulsd  %xmm1,%xmm0
movapd %xmm3,%xmm2
mulsd  %xmm3,%xmm2
addsd  %xmm0,%xmm2
movsd  %xmm2,0x20(%rsp)
movapd %xmm5,%xmm0
movsd  %xmm1,0x8(%rsp)
movsd  %xmm3,0x18(%rsp)
call   1050 <cos@plt>
movsd  0x18(%rsp),%xmm4
movsd  0x8(%rsp),%xmm2
cvtsi2sd %eax,%xmm1
movsd  0x967(%rip),%xmm0
mulsd  %xmm4,%xmm0
mulsd  %xmm2,%xmm0
mulsd  %xmm1,%xmm0
addsd  0x20(%rsp),%xmm0
xorpd  %xmm1,%xmm1
ucomisd %xmm1,%xmm0
jb     16d8 <find_side+0x598>
sqrtsd %xmm0,%xmm3
jmp    1566 <find_side+0x426>
call   1060 <sqrt@plt>
movsd  0x18(%rsp),%xmm4
movsd  0x10(%rsp),%xmm3
movapd %xmm0,%xmm2
jmp    1566 <find_side+0x426>
call   1060 <sqrt@plt>
movsd  0x18(%rsp),%xmm4
movsd  0x8(%rsp),%xmm2
movapd %xmm0,%xmm3
jmp    1566 <find_side+0x426>
call   1060 <sqrt@plt>
movsd  0x10(%rsp),%xmm3
movsd  0x8(%rsp),%xmm2
movapd %xmm0,%xmm4
jmp    1566 <find_side+0x426>

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

LLVM IR (-O2):
define i32 @find_side(double* nocapture %0, double* nocapture %1) {
br label %3
3: ; preds = %111, %2
%4 = phi i64 [ %10, %111 ], [ 0, %2 ]
%5 = icmp eq i64 %4, 3
br i1 %5, label %133, label %6
6: ; preds = %3
%7 = getelementptr inbounds double, double* %1, i64 %4
%8 = load double, double* %7
%9 = tail call double @to_radians(double %8)
%10 = add nuw nsw i64 %4, 1
%11 = trunc i64 %10 to i8
%12 = urem i8 %11, 3
%13 = zext i8 %12 to i64
%14 = getelementptr inbounds double, double* %1, i64 %13
%15 = load double, double* %14
%16 = tail call double @to_radians(double %15)
%17 = trunc i64 %4 to i8
%18 = add i8 %17, 2
%19 = urem i8 %18, 3
%20 = zext i8 %19 to i64
%21 = getelementptr inbounds double, double* %1, i64 %20
%22 = load double, double* %21
%23 = tail call double @to_radians(double %22)
%24 = getelementptr inbounds double, double* %0, i64 %4
%25 = load double, double* %24
%26 = getelementptr inbounds double, double* %0, i64 %13
%27 = load double, double* %26
%28 = getelementptr inbounds double, double* %0, i64 %20
%29 = load double, double* %28
%30 = fcmp ule double %25, 0.000000e+00
%31 = fcmp ogt double %9, 0.000000e+00
%32 = select i1 %30, i1 %31, i1 false
%33 = fcmp ogt double %27, 0.000000e+00
%34 = select i1 %32, i1 %33, i1 false
%35 = fcmp ogt double %16, 0.000000e+00
%36 = select i1 %34, i1 %35, i1 false
br i1 %36, label %37, label %42
37: ; preds = %6
%38 = tail call double @sin(double %9)
%39 = fmul double %27, %38
%40 = tail call double @sin(double %16)
%41 = fdiv double %39, %40
br label %123
42: ; preds = %6
%43 = fcmp ogt double %29, 0.000000e+00
%44 = select i1 %32, i1 %43, i1 false
%45 = fcmp ogt double %23, 0.000000e+00
%46 = select i1 %44, i1 %45, i1 false
br i1 %46, label %47, label %52
47: ; preds = %42
%48 = tail call double @sin(double %9)
%49 = fmul double %29, %48
%50 = tail call double @sin(double %23)
%51 = fdiv double %49, %50
br label %123
52: ; preds = %42
%53 = fcmp ule double %27, 0.000000e+00
%54 = select i1 %53, i1 %35, i1 false
%55 = fcmp ogt double %25, 0.000000e+00
%56 = select i1 %54, i1 %55, i1 false
%57 = select i1 %56, i1 %31, i1 false
br i1 %57, label %58, label %63
58: ; preds = %52
%59 = tail call double @sin(double %16)
%60 = fmul double %25, %59
%61 = tail call double @sin(double %9)
%62 = fdiv double %60, %61
br label %123
63: ; preds = %52
%64 = select i1 %54, i1 %43, i1 false
%65 = select i1 %64, i1 %45, i1 false
br i1 %65, label %66, label %71
66: ; preds = %63
%67 = tail call double @sin(double %16)
%68 = fmul double %29, %67
%69 = tail call double @sin(double %23)
%70 = fdiv double %68, %69
br label %123
71: ; preds = %63
%72 = fcmp ule double %29, 0.000000e+00
%73 = select i1 %72, i1 %45, i1 false
%74 = select i1 %73, i1 %55, i1 false
%75 = select i1 %74, i1 %31, i1 false
br i1 %75, label %76, label %81
76: ; preds = %71
%77 = tail call double @sin(double %23)
%78 = fmul double %25, %77
%79 = tail call double @sin(double %9)
%80 = fdiv double %78, %79
br label %123
81: ; preds = %71
%82 = select i1 %73, i1 %33, i1 false
%83 = select i1 %82, i1 %35, i1 false
br i1 %83, label %84, label %89
84: ; preds = %81
%85 = tail call double @sin(double %23)
%86 = fmul double %27, %85
%87 = tail call double @sin(double %16)
%88 = fdiv double %86, %87
br label %123
89: ; preds = %81
%90 = select i1 %74, i1 %33, i1 false
br i1 %90, label %91, label %100
91: ; preds = %89
%92 = fmul double %27, %27
%93 = tail call double @llvm.fmuladd.f64(double %25, double %25, double %92)
%94 = tail call i32 @cos(double %23)
%95 = sitofp i32 %94 to double
%96 = fmul double %25, -2.000000e+00
%97 = fmul double %96, %27
%98 = tail call double @llvm.fmuladd.f64(double %97, double %95, double %93)
%99 = tail call double @sqrt(double %98)
br label %123
100: ; preds = %89
%101 = select i1 %56, i1 %43, i1 false
br i1 %101, label %102, label %111
102: ; preds = %100
%103 = fmul double %29, %29
%104 = tail call double @llvm.fmuladd.f64(double %25, double %25, double %103)
%105 = tail call i32 @cos(double %16)
%106 = sitofp i32 %105 to double
%107 = fmul double %25, -2.000000e+00
%108 = fmul double %107, %29
%109 = tail call double @llvm.fmuladd.f64(double %108, double %106, double %104)
%110 = tail call double @sqrt(double %109)
br label %123
111: ; preds = %100
%112 = and i1 %55, %32
%113 = select i1 %112, i1 %33, i1 false
br i1 %113, label %114, label %3
114: ; preds = %111
%115 = fmul double %29, %29
%116 = tail call double @llvm.fmuladd.f64(double %27, double %27, double %115)
%117 = tail call i32 @cos(double %9)
%118 = sitofp i32 %117 to double
%119 = fmul double %27, -2.000000e+00
%120 = fmul double %119, %29
%121 = tail call double @llvm.fmuladd.f64(double %120, double %118, double %116)
%122 = tail call double @sqrt(double %121)
br label %123
123: ; preds = %37, %47, %58, %66, %76, %84, %91, %102, %114
%124 = phi double [ %29, %114 ], [ %29, %102 ], [ %99, %91 ], [ %88, %84 ], [ %80, %76 ], [ %29, %66 ], [ %29, %58 ], [ %29, %47 ], [ %29, %37 ]
%125 = phi double [ %27, %114 ], [ %110, %102 ], [ %27, %91 ], [ %27, %84 ], [ %27, %76 ], [ %70, %66 ], [ %62, %58 ], [ %27, %47 ], [ %27, %37 ]
%126 = phi double [ %122, %114 ], [ %25, %102 ], [ %25, %91 ], [ %25, %84 ], [ %25, %76 ], [ %25, %66 ], [ %25, %58 ], [ %51, %47 ], [ %41, %37 ]
%127 = getelementptr inbounds double, double* %0, i64 %20
%128 = getelementptr inbounds double, double* %0, i64 %13
%129 = trunc i64 %4 to i8
%130 = urem i8 %129, 3
%131 = zext i8 %130 to i64
%132 = getelementptr inbounds double, double* %0, i64 %131
store double %126, double* %132
store double %125, double* %128
store double %124, double* %127
br label %133
133: ; preds = %3, %123
%134 = phi i32 [ 1, %123 ], [ 0, %3 ]
ret i32 %134
}