#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 */
double acos(double);
int /*<<< orphan*/ printf(char *, double);
double sin(double);
int get_angle(double trans[3][4], double *wa, double *wb, double *wc) {
  double a, b, c;
  double sina, cosa, sinb, cosb, sinc, cosc;
  if (trans[2][2] > 1.0) {
    printf("cos(beta) = %f\n", trans[2][2]);
    trans[2][2] = -1.0;
  } else if (trans[2][2] < -1.0) {
    printf("cos(beta) = %f\n", trans[2][2]);
    trans[2][2] = -1.0;
  }
  cosb = trans[2][2];
  b = acos(cosb);
  sinb = sin(b);
  if (b >= 0.000001 || b <= -0.000001) {
    cosa = trans[0][2] / sinb;
    sina = trans[1][2] / sinb;
    if (cosa > 1.0) {
      printf("cos(alph) = %f\n", cosa);
      cosa = 1.0;
      sina = 0.0;
    }
    if (cosa < -1.0) {
      printf("cos(alph) = %f\n", cosa);
      cosa = -1.0;
      sina = 0.0;
    }
    if (sina > 1.0) {
      printf("sin(alph) = %f\n", sina);
      sina = 1.0;
      cosa = 0.0;
    }
    if (sina < -1.0) {
      printf("sin(alph) = %f\n", sina);
      sina = -1.0;
      cosa = 0.0;
    }
    a = acos(cosa);
    if (sina < 0)
      a = -a;
    sinc = (trans[2][1] * trans[0][2] - trans[2][0] * trans[1][2]) /
           (trans[0][2] * trans[0][2] + trans[1][2] * trans[1][2]);
    cosc = -(trans[0][2] * trans[2][0] + trans[1][2] * trans[2][1]) /
           (trans[0][2] * trans[0][2] + trans[1][2] * trans[1][2]);
    if (cosc > 1.0) {
      printf("cos(r) = %f\n", cosc);
      cosc = 1.0;
      sinc = 0.0;
    }
    if (cosc < -1.0) {
      printf("cos(r) = %f\n", cosc);
      cosc = -1.0;
      sinc = 0.0;
    }
    if (sinc > 1.0) {
      printf("sin(r) = %f\n", sinc);
      sinc = 1.0;
      cosc = 0.0;
    }
    if (sinc < -1.0) {
      printf("sin(r) = %f\n", sinc);
      sinc = -1.0;
      cosc = 0.0;
    }
    c = acos(cosc);
    if (sinc < 0)
      c = -c;
  } else {
    a = b = 0.0;
    cosa = cosb = 1.0;
    sina = sinb = 0.0;
    cosc = trans[0][0];
    sinc = trans[1][0];
    if (cosc > 1.0) {
      printf("cos(r) = %f\n", cosc);
      cosc = 1.0;
      sinc = 0.0;
    }
    if (cosc < -1.0) {
      printf("cos(r) = %f\n", cosc);
      cosc = -1.0;
      sinc = 0.0;
    }
    if (sinc > 1.0) {
      printf("sin(r) = %f\n", sinc);
      sinc = 1.0;
      cosc = 0.0;
    }
    if (sinc < -1.0) {
      printf("sin(r) = %f\n", sinc);
      sinc = -1.0;
      cosc = 0.0;
    }
    c = acos(cosc);
    if (sinc < 0)
      c = -c;
  }
  *wa = a;
  *wb = b;
  *wc = c;
  return (0);
}


x86 assembly (clang, -O0):
<get_angle>:
push   %rbp
mov    %rsp,%rbp
sub    $0x70,%rsp
mov    %rdi,-0x8(%rbp)
mov    %rsi,-0x10(%rbp)
mov    %rdx,-0x18(%rbp)
mov    %rcx,-0x20(%rbp)
mov    -0x8(%rbp),%rax
movsd  0x50(%rax),%xmm0
movsd  0xea7(%rip),%xmm1
ucomisd %xmm1,%xmm0
jbe    118e <get_angle+0x5e>
mov    -0x8(%rbp),%rax
movsd  0x50(%rax),%xmm0
lea    0xead(%rip),%rdi
call   1030 <printf@plt>
mov    -0x8(%rbp),%rax
movsd  0xe84(%rip),%xmm0
movsd  %xmm0,0x50(%rax)
jmp    11d0 <get_angle+0xa0>
mov    -0x8(%rbp),%rax
movsd  0xe6e(%rip),%xmm0
ucomisd 0x50(%rax),%xmm0
jbe    11cb <get_angle+0x9b>
mov    -0x8(%rbp),%rax
movsd  0x50(%rax),%xmm0
lea    0xe6b(%rip),%rdi
call   1030 <printf@plt>
mov    -0x8(%rbp),%rax
movsd  0xe42(%rip),%xmm0
movsd  %xmm0,0x50(%rax)
jmp    11d0 <get_angle+0xa0>
mov    -0x8(%rbp),%rax
movsd  0x50(%rax),%xmm0
movsd  %xmm0,-0x58(%rbp)
movsd  -0x58(%rbp),%xmm0
call   1040 <acos@plt>
movsd  %xmm0,-0x30(%rbp)
movsd  -0x30(%rbp),%xmm0
call   1050 <sin@plt>
movsd  %xmm0,-0x50(%rbp)
movsd  -0x30(%rbp),%xmm0
movsd  0xe07(%rip),%xmm1
ucomisd %xmm1,%xmm0
jae    1226 <get_angle+0xf6>
movsd  0xdfd(%rip),%xmm0
ucomisd -0x30(%rbp),%xmm0
jb     1595 <get_angle+0x465>
mov    -0x8(%rbp),%rax
movsd  0x10(%rax),%xmm0
divsd  -0x50(%rbp),%xmm0
movsd  %xmm0,-0x48(%rbp)
mov    -0x8(%rbp),%rax
movsd  0x30(%rax),%xmm0
divsd  -0x50(%rbp),%xmm0
movsd  %xmm0,-0x40(%rbp)
movsd  -0x48(%rbp),%xmm0
movsd  0xda7(%rip),%xmm1
ucomisd %xmm1,%xmm0
jbe    1289 <get_angle+0x159>
movsd  -0x48(%rbp),%xmm0
lea    0xdc1(%rip),%rdi
call   1030 <printf@plt>
movsd  0xd84(%rip),%xmm0
movsd  %xmm0,-0x48(%rbp)
xorps  %xmm0,%xmm0
movsd  %xmm0,-0x40(%rbp)
movsd  0xd77(%rip),%xmm0
ucomisd -0x48(%rbp),%xmm0
jbe    12c2 <get_angle+0x192>
movsd  -0x48(%rbp),%xmm0
lea    0xd88(%rip),%rdi
call   1030 <printf@plt>
movsd  0xd53(%rip),%xmm0
movsd  %xmm0,-0x48(%rbp)
xorps  %xmm0,%xmm0
movsd  %xmm0,-0x40(%rbp)
movsd  -0x40(%rbp),%xmm0
movsd  0xd31(%rip),%xmm1
ucomisd %xmm1,%xmm0
jbe    12ff <get_angle+0x1cf>
movsd  -0x40(%rbp),%xmm0
lea    0xd5b(%rip),%rdi
call   1030 <printf@plt>
movsd  0xd0e(%rip),%xmm0
movsd  %xmm0,-0x40(%rbp)
xorps  %xmm0,%xmm0
movsd  %xmm0,-0x48(%rbp)
movsd  0xd01(%rip),%xmm0
ucomisd -0x40(%rbp),%xmm0
jbe    1338 <get_angle+0x208>
movsd  -0x40(%rbp),%xmm0
lea    0xd22(%rip),%rdi
call   1030 <printf@plt>
movsd  0xcdd(%rip),%xmm0
movsd  %xmm0,-0x40(%rbp)
xorps  %xmm0,%xmm0
movsd  %xmm0,-0x48(%rbp)
movsd  -0x48(%rbp),%xmm0
call   1040 <acos@plt>
movsd  %xmm0,-0x28(%rbp)
xorps  %xmm0,%xmm0
ucomisd -0x40(%rbp),%xmm0
jbe    1376 <get_angle+0x246>
movsd  -0x28(%rbp),%xmm0
movq   %xmm0,%rax
movabs $0x8000000000000000,%rcx
xor    %rcx,%rax
movq   %rax,%xmm0
movsd  %xmm0,-0x28(%rbp)
mov    -0x8(%rbp),%rax
movsd  0x48(%rax),%xmm0
mov    -0x8(%rbp),%rax
movsd  0x10(%rax),%xmm2
mov    -0x8(%rbp),%rax
movsd  0x40(%rax),%xmm1
mov    -0x8(%rbp),%rax
mulsd  0x30(%rax),%xmm1
movq   %xmm1,%rax
movabs $0x8000000000000000,%rcx
xor    %rcx,%rax
movq   %rax,%xmm1
mulsd  %xmm2,%xmm0
addsd  %xmm1,%xmm0
mov    -0x8(%rbp),%rax
movsd  0x10(%rax),%xmm1
mov    -0x8(%rbp),%rax
movsd  0x10(%rax),%xmm3
mov    -0x8(%rbp),%rax
movsd  0x30(%rax),%xmm2
mov    -0x8(%rbp),%rax
mulsd  0x30(%rax),%xmm2
mulsd  %xmm3,%xmm1
addsd  %xmm2,%xmm1
divsd  %xmm1,%xmm0
movsd  %xmm0,-0x60(%rbp)
mov    -0x8(%rbp),%rax
movsd  0x10(%rax),%xmm0
mov    -0x8(%rbp),%rax
movsd  0x40(%rax),%xmm2
mov    -0x8(%rbp),%rax
movsd  0x30(%rax),%xmm1
mov    -0x8(%rbp),%rax
mulsd  0x48(%rax),%xmm1
mulsd  %xmm2,%xmm0
addsd  %xmm1,%xmm0
movq   %xmm0,%rax
movabs $0x8000000000000000,%rcx
xor    %rcx,%rax
movq   %rax,%xmm0
mov    -0x8(%rbp),%rax
movsd  0x10(%rax),%xmm1
mov    -0x8(%rbp),%rax
movsd  0x10(%rax),%xmm3
mov    -0x8(%rbp),%rax
movsd  0x30(%rax),%xmm2
mov    -0x8(%rbp),%rax
mulsd  0x30(%rax),%xmm2
mulsd  %xmm3,%xmm1
addsd  %xmm2,%xmm1
divsd  %xmm1,%xmm0
movsd  %xmm0,-0x68(%rbp)
movsd  -0x68(%rbp),%xmm0
movsd  0xb8d(%rip),%xmm1
ucomisd %xmm1,%xmm0
jbe    14a3 <get_angle+0x373>
movsd  -0x68(%rbp),%xmm0
lea    0xbc7(%rip),%rdi
call   1030 <printf@plt>
movsd  0xb6a(%rip),%xmm0
movsd  %xmm0,-0x68(%rbp)
xorps  %xmm0,%xmm0
movsd  %xmm0,-0x60(%rbp)
movsd  0xb5d(%rip),%xmm0
ucomisd -0x68(%rbp),%xmm0
jbe    14dc <get_angle+0x3ac>
movsd  -0x68(%rbp),%xmm0
lea    0xb8e(%rip),%rdi
call   1030 <printf@plt>
movsd  0xb39(%rip),%xmm0
movsd  %xmm0,-0x68(%rbp)
xorps  %xmm0,%xmm0
movsd  %xmm0,-0x60(%rbp)
movsd  -0x60(%rbp),%xmm0
movsd  0xb17(%rip),%xmm1
ucomisd %xmm1,%xmm0
jbe    1519 <get_angle+0x3e9>
movsd  -0x60(%rbp),%xmm0
lea    0xb5e(%rip),%rdi
call   1030 <printf@plt>
movsd  0xaf4(%rip),%xmm0
movsd  %xmm0,-0x60(%rbp)
xorps  %xmm0,%xmm0
movsd  %xmm0,-0x68(%rbp)
movsd  0xae7(%rip),%xmm0
ucomisd -0x60(%rbp),%xmm0
jbe    1552 <get_angle+0x422>
movsd  -0x60(%rbp),%xmm0
lea    0xb25(%rip),%rdi
call   1030 <printf@plt>
movsd  0xac3(%rip),%xmm0
movsd  %xmm0,-0x60(%rbp)
xorps  %xmm0,%xmm0
movsd  %xmm0,-0x68(%rbp)
movsd  -0x68(%rbp),%xmm0
call   1040 <acos@plt>
movsd  %xmm0,-0x38(%rbp)
xorps  %xmm0,%xmm0
ucomisd -0x60(%rbp),%xmm0
jbe    1590 <get_angle+0x460>
movsd  -0x38(%rbp),%xmm0
movq   %xmm0,%rax
movabs $0x8000000000000000,%rcx
xor    %rcx,%rax
movq   %rax,%xmm0
movsd  %xmm0,-0x38(%rbp)
jmp    1719 <get_angle+0x5e9>
xorps  %xmm0,%xmm0
movsd  %xmm0,-0x30(%rbp)
xorps  %xmm0,%xmm0
movsd  %xmm0,-0x28(%rbp)
movsd  0xa53(%rip),%xmm0
movsd  %xmm0,-0x58(%rbp)
movsd  0xa46(%rip),%xmm0
movsd  %xmm0,-0x48(%rbp)
xorps  %xmm0,%xmm0
movsd  %xmm0,-0x50(%rbp)
xorps  %xmm0,%xmm0
movsd  %xmm0,-0x40(%rbp)
mov    -0x8(%rbp),%rax
movsd  (%rax),%xmm0
movsd  %xmm0,-0x68(%rbp)
mov    -0x8(%rbp),%rax
movsd  0x20(%rax),%xmm0
movsd  %xmm0,-0x60(%rbp)
movsd  -0x68(%rbp),%xmm0
movsd  0xa09(%rip),%xmm1
ucomisd %xmm1,%xmm0
jbe    1627 <get_angle+0x4f7>
movsd  -0x68(%rbp),%xmm0
lea    0xa43(%rip),%rdi
call   1030 <printf@plt>
movsd  0x9e6(%rip),%xmm0
movsd  %xmm0,-0x68(%rbp)
xorps  %xmm0,%xmm0
movsd  %xmm0,-0x60(%rbp)
movsd  0x9d9(%rip),%xmm0
ucomisd -0x68(%rbp),%xmm0
jbe    1660 <get_angle+0x530>
movsd  -0x68(%rbp),%xmm0
lea    0xa0a(%rip),%rdi
call   1030 <printf@plt>
movsd  0x9b5(%rip),%xmm0
movsd  %xmm0,-0x68(%rbp)
xorps  %xmm0,%xmm0
movsd  %xmm0,-0x60(%rbp)
movsd  -0x60(%rbp),%xmm0
movsd  0x993(%rip),%xmm1
ucomisd %xmm1,%xmm0
jbe    169d <get_angle+0x56d>
movsd  -0x60(%rbp),%xmm0
lea    0x9da(%rip),%rdi
call   1030 <printf@plt>
movsd  0x970(%rip),%xmm0
movsd  %xmm0,-0x60(%rbp)
xorps  %xmm0,%xmm0
movsd  %xmm0,-0x68(%rbp)
movsd  0x963(%rip),%xmm0
ucomisd -0x60(%rbp),%xmm0
jbe    16d6 <get_angle+0x5a6>
movsd  -0x60(%rbp),%xmm0
lea    0x9a1(%rip),%rdi
call   1030 <printf@plt>
movsd  0x93f(%rip),%xmm0
movsd  %xmm0,-0x60(%rbp)
xorps  %xmm0,%xmm0
movsd  %xmm0,-0x68(%rbp)
movsd  -0x68(%rbp),%xmm0
call   1040 <acos@plt>
movsd  %xmm0,-0x38(%rbp)
xorps  %xmm0,%xmm0
ucomisd -0x60(%rbp),%xmm0
jbe    1714 <get_angle+0x5e4>
movsd  -0x38(%rbp),%xmm0
movq   %xmm0,%rax
movabs $0x8000000000000000,%rcx
xor    %rcx,%rax
movq   %rax,%xmm0
movsd  %xmm0,-0x38(%rbp)
jmp    1719 <get_angle+0x5e9>
movsd  -0x28(%rbp),%xmm0
mov    -0x10(%rbp),%rax
movsd  %xmm0,(%rax)
movsd  -0x30(%rbp),%xmm0
mov    -0x18(%rbp),%rax
movsd  %xmm0,(%rax)
movsd  -0x38(%rbp),%xmm0
mov    -0x20(%rbp),%rax
movsd  %xmm0,(%rax)
xor    %eax,%eax
add    $0x70,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<get_angle>:
push   %r15
push   %r14
push   %r12
push   %rbx
sub    $0x28,%rsp
mov    %rcx,%r14
mov    %rdx,%r15
mov    %rsi,%r12
mov    %rdi,%rbx
movsd  0x50(%rdi),%xmm0
ucomisd 0xeac(%rip),%xmm0
ja     1164 <get_angle+0x34>
movsd  0xeaa(%rip),%xmm1
ucomisd %xmm0,%xmm1
jbe    1186 <get_angle+0x56>
lea    0xed5(%rip),%rdi
call   1030 <printf@plt>
movabs $0xbff0000000000000,%rax
mov    %rax,0x50(%rbx)
movsd  0xe82(%rip),%xmm0
call   1040 <acos@plt>
movapd %xmm0,(%rsp)
call   1050 <sin@plt>
movapd (%rsp),%xmm2
ucomisd 0xe6e(%rip),%xmm2
jae    11de <get_angle+0xae>
movsd  0xe6c(%rip),%xmm1
ucomisd %xmm2,%xmm1
jae    11de <get_angle+0xae>
movsd  (%rbx),%xmm0
ucomisd 0xe42(%rip),%xmm0
jbe    121f <get_angle+0xef>
lea    0xea9(%rip),%rdi
call   1030 <printf@plt>
movsd  0xe2c(%rip),%xmm0
call   1040 <acos@plt>
jmp    146c <get_angle+0x33c>
movsd  0x30(%rbx),%xmm3
movhpd 0x10(%rbx),%xmm3
unpcklpd %xmm0,%xmm0
divpd  %xmm0,%xmm3
movapd %xmm3,%xmm0
unpckhpd %xmm3,%xmm0
ucomisd 0xe00(%rip),%xmm0
jbe    124b <get_angle+0x11b>
lea    0xe47(%rip),%rdi
call   1030 <printf@plt>
xorpd  %xmm3,%xmm3
movhpd 0xde6(%rip),%xmm3
jmp    130c <get_angle+0x1dc>
movsd  0xde1(%rip),%xmm1
ucomisd %xmm0,%xmm1
jbe    1276 <get_angle+0x146>
lea    0xe3c(%rip),%rdi
call   1030 <printf@plt>
movsd  0xdc7(%rip),%xmm0
call   1040 <acos@plt>
jmp    146c <get_angle+0x33c>
movsd  0xdb5(%rip),%xmm1
ucomisd %xmm0,%xmm1
jbe    12a3 <get_angle+0x173>
lea    0xdf0(%rip),%rdi
call   1030 <printf@plt>
xorpd  %xmm3,%xmm3
movhpd 0xd97(%rip),%xmm3
jmp    130c <get_angle+0x1dc>
movsd  0x20(%rbx),%xmm2
ucomisd 0xd7d(%rip),%xmm2
jbe    12c7 <get_angle+0x197>
lea    0xdf1(%rip),%rdi
movapd %xmm2,%xmm0
call   1030 <printf@plt>
xorpd  %xmm0,%xmm0
call   1040 <acos@plt>
jmp    146c <get_angle+0x33c>
ucomisd 0xd55(%rip),%xmm3
jbe    12ee <get_angle+0x1be>
lea    0xdac(%rip),%rdi
movapd %xmm3,%xmm0
call   1030 <printf@plt>
movsd  0xd3b(%rip),%xmm3
jmp    130c <get_angle+0x1dc>
ucomisd %xmm2,%xmm1
jbe    144b <get_angle+0x31b>
lea    0xda5(%rip),%rdi
movapd %xmm2,%xmm0
call   1030 <printf@plt>
movsd  0xd37(%rip),%xmm0
jmp    1464 <get_angle+0x334>
ucomisd %xmm3,%xmm1
jbe    130c <get_angle+0x1dc>
lea    0xd65(%rip),%rdi
movapd %xmm3,%xmm0
call   1030 <printf@plt>
movsd  0xcfc(%rip),%xmm3
movapd %xmm3,0x10(%rsp)
unpckhpd %xmm3,%xmm3
movapd %xmm3,%xmm0
call   1040 <acos@plt>
movapd 0xd09(%rip),%xmm5
movapd %xmm0,%xmm1
xorpd  %xmm5,%xmm1
xorpd  %xmm2,%xmm2
movapd 0x10(%rsp),%xmm3
cmpltsd %xmm2,%xmm3
andpd  %xmm3,%xmm1
andnpd %xmm0,%xmm3
orpd   %xmm1,%xmm3
movapd %xmm3,0x10(%rsp)
movsd  0x48(%rbx),%xmm7
movsd  0x40(%rbx),%xmm4
movsd  0x10(%rbx),%xmm2
movsd  0x30(%rbx),%xmm1
movapd %xmm1,%xmm0
mulsd  %xmm1,%xmm0
movapd %xmm2,%xmm3
mulsd  %xmm2,%xmm3
addsd  %xmm0,%xmm3
movapd %xmm7,%xmm6
mulsd  %xmm1,%xmm6
movapd %xmm2,%xmm0
mulsd  %xmm4,%xmm0
addsd  %xmm6,%xmm0
xorpd  %xmm5,%xmm0
divsd  %xmm3,%xmm0
ucomisd 0xc64(%rip),%xmm0
jbe    13b4 <get_angle+0x284>
lea    0xccb(%rip),%rdi
call   1030 <printf@plt>
movsd  0xc4e(%rip),%xmm0
jmp    1406 <get_angle+0x2d6>
movsd  0xc4c(%rip),%xmm5
ucomisd %xmm0,%xmm5
jbe    13d8 <get_angle+0x2a8>
lea    0xca7(%rip),%rdi
call   1030 <printf@plt>
movsd  0xc32(%rip),%xmm0
jmp    1406 <get_angle+0x2d6>
mulsd  %xmm4,%xmm1
mulsd  %xmm2,%xmm7
subsd  %xmm1,%xmm7
divsd  %xmm3,%xmm7
ucomisd 0xc10(%rip),%xmm7
jbe    1418 <get_angle+0x2e8>
lea    0xc84(%rip),%rdi
movapd %xmm7,%xmm0
call   1030 <printf@plt>
xorpd  %xmm0,%xmm0
call   1040 <acos@plt>
movapd (%rsp),%xmm1
movapd 0x10(%rsp),%xmm2
jmp    1474 <get_angle+0x344>
ucomisd %xmm7,%xmm5
jbe    1492 <get_angle+0x362>
lea    0xc58(%rip),%rdi
movapd %xmm7,%xmm0
call   1030 <printf@plt>
movsd  0xbea(%rip),%xmm0
movapd (%rsp),%xmm1
movapd 0x10(%rsp),%xmm2
xorpd  0xbe7(%rip),%xmm0
jmp    1474 <get_angle+0x344>
movsd  %xmm2,(%rsp)
call   1040 <acos@plt>
xorpd  %xmm2,%xmm2
ucomisd (%rsp),%xmm2
xorpd  %xmm1,%xmm1
jbe    1474 <get_angle+0x344>
xorpd  0xbc4(%rip),%xmm0
xorpd  %xmm2,%xmm2
xorpd  %xmm1,%xmm1
movsd  %xmm2,(%r12)
movsd  %xmm1,(%r15)
movsd  %xmm0,(%r14)
xor    %eax,%eax
add    $0x28,%rsp
pop    %rbx
pop    %r12
pop    %r14
pop    %r15
ret
movsd  %xmm7,0x20(%rsp)
call   1040 <acos@plt>
xorpd  %xmm1,%xmm1
ucomisd 0x20(%rsp),%xmm1
movapd (%rsp),%xmm1
movapd 0x10(%rsp),%xmm2
jbe    1474 <get_angle+0x344>
xorpd  0xb74(%rip),%xmm0
jmp    1474 <get_angle+0x344>

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

LLVM IR (-O2):
@.str = [16 x i8] c"cos(beta) = %f\0A\00"
@.str.1 = [16 x i8] c"cos(alph) = %f\0A\00"
@.str.2 = [16 x i8] c"sin(alph) = %f\0A\00"
@.str.3 = [13 x i8] c"cos(r) = %f\0A\00"
@.str.4 = [13 x i8] c"sin(r) = %f\0A\00"
define i32 @get_angle([4 x double]* nocapture %0, double* nocapture writeonly %1, double* nocapture writeonly %2, double* nocapture writeonly %3) {
%5 = getelementptr inbounds [4 x double], [4 x double]* %0, i64 2, i64 2
%6 = load double, double* %5
%7 = fcmp ogt double %6, 1.000000e+00
%8 = fcmp olt double %6, -1.000000e+00
%9 = or i1 %7, %8
br i1 %9, label %10, label %12
10: ; preds = %4
%11 = tail call i32 @printf(i8* getelementptr inbounds ([16 x i8], [16 x i8]* @.str, i64 0, i64 0), double %6)
store double -1.000000e+00, double* %5
br label %12
12: ; preds = %4, %10
%13 = phi double [ -1.000000e+00, %10 ], [ %6, %4 ]
%14 = tail call double @acos(double %13)
%15 = tail call double @sin(double %14)
%16 = fcmp oge double %14, 0x3EB0C6F7A0B5ED8D
%17 = fcmp ole double %14, 0xBEB0C6F7A0B5ED8D
%18 = or i1 %16, %17
br i1 %18, label %19, label %94
19: ; preds = %12
%20 = getelementptr inbounds [4 x double], [4 x double]* %0, i64 0, i64 2
%21 = load double, double* %20
%22 = getelementptr inbounds [4 x double], [4 x double]* %0, i64 1, i64 2
%23 = load double, double* %22
%24 = insertelement <2 x double> poison, double %23, i64 0
%25 = insertelement <2 x double> %24, double %21, i64 1
%26 = insertelement <2 x double> poison, double %15, i64 0
%27 = shufflevector <2 x double> %26, <2 x double> poison, <2 x i32> zeroinitializer
%28 = fdiv <2 x double> %25, %27
%29 = extractelement <2 x double> %28, i64 1
%30 = fcmp ogt double %29, 1.000000e+00
br i1 %30, label %31, label %33
31: ; preds = %19
%32 = tail call i32 @printf(i8* getelementptr inbounds ([16 x i8], [16 x i8]* @.str.1, i64 0, i64 0), double %29)
br label %46
33: ; preds = %19
%34 = fcmp olt double %29, -1.000000e+00
br i1 %34, label %35, label %37
35: ; preds = %33
%36 = tail call i32 @printf(i8* getelementptr inbounds ([16 x i8], [16 x i8]* @.str.1, i64 0, i64 0), double %29)
br label %46
37: ; preds = %33
%38 = extractelement <2 x double> %28, i64 0
%39 = fcmp ogt double %38, 1.000000e+00
br i1 %39, label %40, label %42
40: ; preds = %37
%41 = tail call i32 @printf(i8* getelementptr inbounds ([16 x i8], [16 x i8]* @.str.2, i64 0, i64 0), double %38)
br label %46
42: ; preds = %37
%43 = fcmp olt double %38, -1.000000e+00
br i1 %43, label %44, label %46
44: ; preds = %42
%45 = tail call i32 @printf(i8* getelementptr inbounds ([16 x i8], [16 x i8]* @.str.2, i64 0, i64 0), double %38)
br label %46
46: ; preds = %31, %35, %40, %44, %42
%47 = phi <2 x double> [ <double -1.000000e+00, double 0.000000e+00>, %44 ], [ %28, %42 ], [ <double 1.000000e+00, double 0.000000e+00>, %40 ], [ <double 0.000000e+00, double -1.000000e+00>, %35 ], [ <double 0.000000e+00, double 1.000000e+00>, %31 ]
%48 = extractelement <2 x double> %47, i64 1
%49 = tail call double @acos(double %48)
%50 = extractelement <2 x double> %47, i64 0
%51 = fcmp olt double %50, 0.000000e+00
%52 = fneg double %49
%53 = select i1 %51, double %52, double %49
%54 = getelementptr inbounds [4 x double], [4 x double]* %0, i64 2, i64 1
%55 = load double, double* %54
%56 = load double, double* %20
%57 = getelementptr inbounds [4 x double], [4 x double]* %0, i64 2, i64 0
%58 = load double, double* %57
%59 = load double, double* %22
%60 = fneg double %58
%61 = fmul double %59, %60
%62 = tail call double @llvm.fmuladd.f64(double %55, double %56, double %61)
%63 = fmul double %59, %59
%64 = tail call double @llvm.fmuladd.f64(double %56, double %56, double %63)
%65 = fdiv double %62, %64
%66 = fmul double %55, %59
%67 = tail call double @llvm.fmuladd.f64(double %56, double %58, double %66)
%68 = fneg double %67
%69 = fdiv double %68, %64
%70 = fcmp ogt double %69, 1.000000e+00
br i1 %70, label %71, label %73
71: ; preds = %46
%72 = tail call i32 @printf(i8* getelementptr inbounds ([13 x i8], [13 x i8]* @.str.3, i64 0, i64 0), double %69)
br label %81
73: ; preds = %46
%74 = fcmp olt double %69, -1.000000e+00
br i1 %74, label %75, label %77
75: ; preds = %73
%76 = tail call i32 @printf(i8* getelementptr inbounds ([13 x i8], [13 x i8]* @.str.3, i64 0, i64 0), double %69)
br label %81
77: ; preds = %73
%78 = fcmp ogt double %65, 1.000000e+00
br i1 %78, label %79, label %84
79: ; preds = %77
%80 = tail call i32 @printf(i8* getelementptr inbounds ([13 x i8], [13 x i8]* @.str.4, i64 0, i64 0), double %65)
br label %81
81: ; preds = %71, %75, %79
%82 = phi double [ 0.000000e+00, %79 ], [ 1.000000e+00, %71 ], [ -1.000000e+00, %75 ]
%83 = tail call double @acos(double %82)
br label %123
84: ; preds = %77
%85 = fcmp olt double %65, -1.000000e+00
br i1 %85, label %86, label %88
86: ; preds = %84
%87 = tail call i32 @printf(i8* getelementptr inbounds ([13 x i8], [13 x i8]* @.str.4, i64 0, i64 0), double %65)
br label %91
88: ; preds = %84
%89 = tail call double @acos(double %69)
%90 = fcmp olt double %65, 0.000000e+00
br i1 %90, label %91, label %123
91: ; preds = %86, %88
%92 = phi double [ 0x3FF921FB54442D18, %86 ], [ %89, %88 ]
%93 = fneg double %92
br label %123
94: ; preds = %12
%95 = getelementptr inbounds [4 x double], [4 x double]* %0, i64 0, i64 0
%96 = load double, double* %95
%97 = getelementptr inbounds [4 x double], [4 x double]* %0, i64 1, i64 0
%98 = load double, double* %97
%99 = fcmp ogt double %96, 1.000000e+00
br i1 %99, label %100, label %102
100: ; preds = %94
%101 = tail call i32 @printf(i8* getelementptr inbounds ([13 x i8], [13 x i8]* @.str.3, i64 0, i64 0), double %96)
br label %110
102: ; preds = %94
%103 = fcmp olt double %96, -1.000000e+00
br i1 %103, label %104, label %106
104: ; preds = %102
%105 = tail call i32 @printf(i8* getelementptr inbounds ([13 x i8], [13 x i8]* @.str.3, i64 0, i64 0), double %96)
br label %110
106: ; preds = %102
%107 = fcmp ogt double %98, 1.000000e+00
br i1 %107, label %108, label %113
108: ; preds = %106
%109 = tail call i32 @printf(i8* getelementptr inbounds ([13 x i8], [13 x i8]* @.str.4, i64 0, i64 0), double %98)
br label %110
110: ; preds = %100, %104, %108
%111 = phi double [ 0.000000e+00, %108 ], [ 1.000000e+00, %100 ], [ -1.000000e+00, %104 ]
%112 = tail call double @acos(double %111)
br label %123
113: ; preds = %106
%114 = fcmp olt double %98, -1.000000e+00
br i1 %114, label %115, label %117
115: ; preds = %113
%116 = tail call i32 @printf(i8* getelementptr inbounds ([13 x i8], [13 x i8]* @.str.4, i64 0, i64 0), double %98)
br label %120
117: ; preds = %113
%118 = tail call double @acos(double %96)
%119 = fcmp olt double %98, 0.000000e+00
br i1 %119, label %120, label %123
120: ; preds = %115, %117
%121 = phi double [ 0x3FF921FB54442D18, %115 ], [ %118, %117 ]
%122 = fneg double %121
br label %123
123: ; preds = %110, %81, %117, %120, %88, %91
%124 = phi double [ %53, %91 ], [ %53, %88 ], [ 0.000000e+00, %120 ], [ 0.000000e+00, %117 ], [ %53, %81 ], [ 0.000000e+00, %110 ]
%125 = phi double [ %14, %91 ], [ %14, %88 ], [ 0.000000e+00, %120 ], [ 0.000000e+00, %117 ], [ %14, %81 ], [ 0.000000e+00, %110 ]
%126 = phi double [ %93, %91 ], [ %89, %88 ], [ %122, %120 ], [ %118, %117 ], [ %83, %81 ], [ %112, %110 ]
store double %124, double* %1
store double %125, double* %2
store double %126, double* %3
ret i32 0
}