#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 M_PI;
double cos(double);
double fabs(double);
scalar_t__ pow(double, int);
double sin(double);
double sqrt(scalar_t__);
void rt(double rtxyz, double ptx, double ptyz, double *pt_x, double *pt_yz) {
  double lin;
  lin = sqrt(pow(ptx, 2) + pow(ptyz, 2));
  if ((rtxyz > 0) && (rtxyz < 90)) {
    *pt_x = lin * cos(rtxyz * M_PI / 180.0);
    *pt_yz = lin * sin(rtxyz * M_PI / 180.0);
  } else if ((rtxyz > 90) && (rtxyz < 180)) {
    rtxyz = rtxyz - 90;
    *pt_x = -fabs(lin * sin(rtxyz * M_PI / 180.0));
    *pt_yz = fabs(lin * cos(rtxyz * M_PI / 180.0));
  } else if ((rtxyz > 180) && (rtxyz < 270)) {
    rtxyz = rtxyz - 180;
    *pt_x = -fabs(lin * cos(rtxyz * M_PI / 180.0));
    *pt_yz = -fabs(lin * sin(rtxyz * M_PI / 180.0));
  } else if ((rtxyz > 270) && (rtxyz < 360)) {
    rtxyz = rtxyz - 270;
    *pt_x = fabs(lin * sin(rtxyz * M_PI / 180.0));
    *pt_yz = -fabs(lin * cos(rtxyz * M_PI / 180.0));
  } else if (rtxyz == 90) {
    *pt_x = 0;
    *pt_yz = lin;
  } else if (rtxyz == 180) {
    *pt_x = -lin;
    *pt_yz = 0;
  } else if (rtxyz == 270) {
    *pt_x = 0;
    *pt_yz = -lin;
  } else if (rtxyz == 0 || rtxyz == 360) {
    *pt_x = lin;
    *pt_yz = 0;
  }
}


x86 assembly (clang, -O0):
<rt>:
push   %rbp
mov    %rsp,%rbp
sub    $0x80,%rsp
movsd  %xmm0,-0x8(%rbp)
movsd  %xmm1,-0x10(%rbp)
movsd  %xmm2,-0x18(%rbp)
mov    %rdi,-0x20(%rbp)
mov    %rsi,-0x28(%rbp)
movsd  -0x10(%rbp),%xmm0
mov    $0x2,%edi
call   1050 <pow@plt>
mov    %rax,-0x38(%rbp)
movsd  -0x18(%rbp),%xmm0
mov    $0x2,%edi
call   1050 <pow@plt>
mov    -0x38(%rbp),%rdi
add    %rax,%rdi
call   1060 <sqrt@plt>
movsd  %xmm0,-0x30(%rbp)
movsd  -0x8(%rbp),%xmm0
xorps  %xmm1,%xmm1
ucomisd %xmm1,%xmm0
jbe    123d <rt+0xfd>
movsd  0xe51(%rip),%xmm0
ucomisd -0x8(%rbp),%xmm0
jbe    123d <rt+0xfd>
movsd  -0x30(%rbp),%xmm0
movsd  %xmm0,-0x48(%rbp)
movsd  -0x8(%rbp),%xmm0
mov    0x2e18(%rip),%rax
mulsd  (%rax),%xmm0
movsd  0xe2c(%rip),%xmm1
divsd  %xmm1,%xmm0
call   1040 <cos@plt>
movaps %xmm0,%xmm1
movsd  -0x48(%rbp),%xmm0
mulsd  %xmm1,%xmm0
mov    -0x20(%rbp),%rax
movsd  %xmm0,(%rax)
movsd  -0x30(%rbp),%xmm0
movsd  %xmm0,-0x40(%rbp)
movsd  -0x8(%rbp),%xmm0
mov    0x2dd9(%rip),%rax
mulsd  (%rax),%xmm0
movsd  0xded(%rip),%xmm1
divsd  %xmm1,%xmm0
call   1030 <sin@plt>
movaps %xmm0,%xmm1
movsd  -0x40(%rbp),%xmm0
mulsd  %xmm1,%xmm0
mov    -0x28(%rbp),%rax
movsd  %xmm0,(%rax)
jmp    1675 <rt+0x535>
movsd  -0x8(%rbp),%xmm0
movsd  0xdb6(%rip),%xmm1
ucomisd %xmm1,%xmm0
jbe    132d <rt+0x1ed>
movsd  0xdac(%rip),%xmm0
ucomisd -0x8(%rbp),%xmm0
jbe    132d <rt+0x1ed>
movsd  -0x8(%rbp),%xmm0
movsd  0xd8c(%rip),%xmm1
subsd  %xmm1,%xmm0
movsd  %xmm0,-0x8(%rbp)
movsd  -0x30(%rbp),%xmm0
movsd  %xmm0,-0x58(%rbp)
movsd  -0x8(%rbp),%xmm0
mov    0x2d55(%rip),%rax
mulsd  (%rax),%xmm0
movsd  0xd69(%rip),%xmm1
divsd  %xmm1,%xmm0
call   1030 <sin@plt>
movaps %xmm0,%xmm1
movsd  -0x58(%rbp),%xmm0
mulsd  %xmm1,%xmm0
movaps 0xd65(%rip),%xmm1
pand   %xmm1,%xmm0
movq   %xmm0,%rax
movabs $0x8000000000000000,%rcx
xor    %rcx,%rax
movq   %rax,%xmm0
mov    -0x20(%rbp),%rax
movsd  %xmm0,(%rax)
movsd  -0x30(%rbp),%xmm0
movsd  %xmm0,-0x50(%rbp)
movsd  -0x8(%rbp),%xmm0
mov    0x2cf4(%rip),%rax
mulsd  (%rax),%xmm0
movsd  0xd08(%rip),%xmm1
divsd  %xmm1,%xmm0
call   1040 <cos@plt>
movaps %xmm0,%xmm1
movsd  -0x50(%rbp),%xmm0
mulsd  %xmm1,%xmm0
movaps 0xd04(%rip),%xmm1
pand   %xmm1,%xmm0
mov    -0x28(%rbp),%rax
movsd  %xmm0,(%rax)
jmp    1670 <rt+0x530>
movsd  -0x8(%rbp),%xmm0
movsd  0xcce(%rip),%xmm1
ucomisd %xmm1,%xmm0
jbe    1434 <rt+0x2f4>
movsd  0xcc4(%rip),%xmm0
ucomisd -0x8(%rbp),%xmm0
jbe    1434 <rt+0x2f4>
movsd  -0x8(%rbp),%xmm0
movsd  0xca4(%rip),%xmm1
subsd  %xmm1,%xmm0
movsd  %xmm0,-0x8(%rbp)
movsd  -0x30(%rbp),%xmm0
movsd  %xmm0,-0x68(%rbp)
movsd  -0x8(%rbp),%xmm0
mov    0x2c65(%rip),%rax
mulsd  (%rax),%xmm0
movsd  0xc79(%rip),%xmm1
divsd  %xmm1,%xmm0
call   1040 <cos@plt>
movaps %xmm0,%xmm1
movsd  -0x68(%rbp),%xmm0
mulsd  %xmm1,%xmm0
movaps 0xc75(%rip),%xmm1
pand   %xmm1,%xmm0
movq   %xmm0,%rax
movabs $0x8000000000000000,%rcx
xor    %rcx,%rax
movq   %rax,%xmm0
mov    -0x20(%rbp),%rax
movsd  %xmm0,(%rax)
movsd  -0x30(%rbp),%xmm0
movsd  %xmm0,-0x60(%rbp)
movsd  -0x8(%rbp),%xmm0
mov    0x2c04(%rip),%rax
mulsd  (%rax),%xmm0
movsd  0xc18(%rip),%xmm1
divsd  %xmm1,%xmm0
call   1030 <sin@plt>
movaps %xmm0,%xmm1
movsd  -0x60(%rbp),%xmm0
mulsd  %xmm1,%xmm0
movaps 0xc14(%rip),%xmm1
pand   %xmm1,%xmm0
movq   %xmm0,%rax
movabs $0x8000000000000000,%rcx
xor    %rcx,%rax
movq   %rax,%xmm0
mov    -0x28(%rbp),%rax
movsd  %xmm0,(%rax)
jmp    166b <rt+0x52b>
movsd  -0x8(%rbp),%xmm0
movsd  0xbcf(%rip),%xmm1
ucomisd %xmm1,%xmm0
jbe    1524 <rt+0x3e4>
movsd  0xbc5(%rip),%xmm0
ucomisd -0x8(%rbp),%xmm0
jbe    1524 <rt+0x3e4>
movsd  -0x8(%rbp),%xmm0
movsd  0xba5(%rip),%xmm1
subsd  %xmm1,%xmm0
movsd  %xmm0,-0x8(%rbp)
movsd  -0x30(%rbp),%xmm0
movsd  %xmm0,-0x78(%rbp)
movsd  -0x8(%rbp),%xmm0
mov    0x2b5e(%rip),%rax
mulsd  (%rax),%xmm0
movsd  0xb72(%rip),%xmm1
divsd  %xmm1,%xmm0
call   1030 <sin@plt>
movaps %xmm0,%xmm1
movsd  -0x78(%rbp),%xmm0
mulsd  %xmm1,%xmm0
movaps 0xb6e(%rip),%xmm1
pand   %xmm1,%xmm0
mov    -0x20(%rbp),%rax
movsd  %xmm0,(%rax)
movsd  -0x30(%rbp),%xmm0
movsd  %xmm0,-0x70(%rbp)
movsd  -0x8(%rbp),%xmm0
mov    0x2b14(%rip),%rax
mulsd  (%rax),%xmm0
movsd  0xb28(%rip),%xmm1
divsd  %xmm1,%xmm0
call   1040 <cos@plt>
movaps %xmm0,%xmm1
movsd  -0x70(%rbp),%xmm0
mulsd  %xmm1,%xmm0
movaps 0xb24(%rip),%xmm1
pand   %xmm1,%xmm0
movq   %xmm0,%rax
movabs $0x8000000000000000,%rcx
xor    %rcx,%rax
movq   %rax,%xmm0
mov    -0x28(%rbp),%rax
movsd  %xmm0,(%rax)
jmp    1666 <rt+0x526>
movsd  -0x8(%rbp),%xmm0
movsd  0xacf(%rip),%xmm1
ucomisd %xmm1,%xmm0
jne    155e <rt+0x41e>
jp     155e <rt+0x41e>
mov    -0x20(%rbp),%rax
xorps  %xmm0,%xmm0
movsd  %xmm0,(%rax)
movsd  -0x30(%rbp),%xmm0
mov    -0x28(%rbp),%rax
movsd  %xmm0,(%rax)
jmp    1661 <rt+0x521>
movsd  -0x8(%rbp),%xmm0
movsd  0xa9d(%rip),%xmm1
ucomisd %xmm1,%xmm0
jne    15af <rt+0x46f>
jp     15af <rt+0x46f>
movsd  -0x30(%rbp),%xmm0
movq   %xmm0,%rax
movabs $0x8000000000000000,%rcx
xor    %rcx,%rax
movq   %rax,%xmm0
mov    -0x20(%rbp),%rax
movsd  %xmm0,(%rax)
mov    -0x28(%rbp),%rax
xorps  %xmm0,%xmm0
movsd  %xmm0,(%rax)
jmp    165c <rt+0x51c>
movsd  -0x8(%rbp),%xmm0
movsd  0xa54(%rip),%xmm1
ucomisd %xmm1,%xmm0
jne    1600 <rt+0x4c0>
jp     1600 <rt+0x4c0>
mov    -0x20(%rbp),%rax
xorps  %xmm0,%xmm0
movsd  %xmm0,(%rax)
movsd  -0x30(%rbp),%xmm0
movq   %xmm0,%rax
movabs $0x8000000000000000,%rcx
xor    %rcx,%rax
movq   %rax,%xmm0
mov    -0x28(%rbp),%rax
movsd  %xmm0,(%rax)
jmp    1657 <rt+0x517>
movsd  -0x8(%rbp),%xmm0
xorps  %xmm1,%xmm1
ucomisd %xmm1,%xmm0
jne    161d <rt+0x4dd>
jp     161d <rt+0x4dd>
jmp    163a <rt+0x4fa>
movsd  -0x8(%rbp),%xmm0
movsd  0x9ee(%rip),%xmm1
ucomisd %xmm1,%xmm0
jne    1652 <rt+0x512>
jp     1652 <rt+0x512>
movsd  -0x30(%rbp),%xmm0
mov    -0x20(%rbp),%rax
movsd  %xmm0,(%rax)
mov    -0x28(%rbp),%rax
xorps  %xmm0,%xmm0
movsd  %xmm0,(%rax)
jmp    1657 <rt+0x517>
jmp    165c <rt+0x51c>
jmp    1661 <rt+0x521>
jmp    1666 <rt+0x526>
jmp    166b <rt+0x52b>
jmp    1670 <rt+0x530>
jmp    1675 <rt+0x535>
add    $0x80,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<rt>:
push   %r15
push   %r14
push   %rbx
sub    $0x20,%rsp
mov    %rsi,%r14
mov    %rdi,%r15
movsd  %xmm2,0x10(%rsp)
movsd  %xmm0,0x8(%rsp)
movaps %xmm1,%xmm0
mov    $0x2,%edi
call   1050 <pow@plt>
mov    %rax,%rbx
movsd  0x10(%rsp),%xmm0
mov    $0x2,%edi
call   1050 <pow@plt>
add    %rax,%rbx
mov    %rbx,%rdi
call   1060 <sqrt@plt>
movsd  0x8(%rsp),%xmm1
movapd %xmm0,0x10(%rsp)
xorpd  %xmm0,%xmm0
ucomisd %xmm0,%xmm1
jbe    11f3 <rt+0xb3>
movsd  0xe5c(%rip),%xmm0
ucomisd %xmm1,%xmm0
jbe    11f3 <rt+0xb3>
mov    0x2e37(%rip),%rbx
movsd  (%rbx),%xmm0
mulsd  %xmm1,%xmm0
divsd  0xe47(%rip),%xmm0
call   1040 <cos@plt>
mulsd  0x10(%rsp),%xmm0
movsd  %xmm0,(%r15)
movsd  0x8(%rsp),%xmm0
mulsd  (%rbx),%xmm0
divsd  0xe25(%rip),%xmm0
call   1030 <sin@plt>
mulsd  0x10(%rsp),%xmm0
jmp    1356 <rt+0x216>
ucomisd 0xe05(%rip),%xmm1
jbe    126e <rt+0x12e>
movsd  0xe03(%rip),%xmm2
ucomisd %xmm1,%xmm2
jbe    126e <rt+0x12e>
addsd  0xe1d(%rip),%xmm1
movsd  %xmm1,0x8(%rsp)
mov    0x2dc8(%rip),%rbx
movsd  (%rbx),%xmm0
mulsd  %xmm1,%xmm0
divsd  %xmm2,%xmm0
call   1030 <sin@plt>
mulsd  0x10(%rsp),%xmm0
orpd   0xe01(%rip),%xmm0
movlpd %xmm0,(%r15)
movsd  0x8(%rsp),%xmm0
mulsd  (%rbx),%xmm0
divsd  0xdb2(%rip),%xmm0
call   1040 <cos@plt>
mulsd  0x10(%rsp),%xmm0
andpd  0xde7(%rip),%xmm0
jmp    1356 <rt+0x216>
ucomisd 0xd92(%rip),%xmm1
jbe    12dc <rt+0x19c>
movsd  0xd90(%rip),%xmm0
ucomisd %xmm1,%xmm0
jbe    12dc <rt+0x19c>
addsd  0xd9a(%rip),%xmm1
movsd  %xmm1,0x8(%rsp)
mov    0x2d4d(%rip),%rbx
movsd  (%rbx),%xmm0
mulsd  %xmm1,%xmm0
divsd  0xd5d(%rip),%xmm0
call   1040 <cos@plt>
mulsd  0x10(%rsp),%xmm0
orpd   0xd82(%rip),%xmm0
movlpd %xmm0,(%r15)
movsd  0x8(%rsp),%xmm0
mulsd  (%rbx),%xmm0
divsd  0xd33(%rip),%xmm0
call   1030 <sin@plt>
jmp    1348 <rt+0x208>
ucomisd 0xd2c(%rip),%xmm1
jbe    1365 <rt+0x225>
movsd  0xd2a(%rip),%xmm0
ucomisd %xmm1,%xmm0
jbe    1365 <rt+0x225>
addsd  0xd24(%rip),%xmm1
movsd  %xmm1,0x8(%rsp)
mov    0x2cdf(%rip),%rbx
movsd  (%rbx),%xmm0
mulsd  %xmm1,%xmm0
divsd  0xcef(%rip),%xmm0
call   1030 <sin@plt>
mulsd  0x10(%rsp),%xmm0
andpd  0xd24(%rip),%xmm0
movlpd %xmm0,(%r15)
movsd  0x8(%rsp),%xmm0
mulsd  (%rbx),%xmm0
divsd  0xcc5(%rip),%xmm0
call   1040 <cos@plt>
mulsd  0x10(%rsp),%xmm0
orpd   0xcea(%rip),%xmm0
movsd  %xmm0,(%r14)
add    $0x20,%rsp
pop    %rbx
pop    %r14
pop    %r15
ret
ucomisd 0xc93(%rip),%xmm1
jne    1380 <rt+0x240>
jp     1380 <rt+0x240>
movq   $0x0,(%r15)
movapd 0x10(%rsp),%xmm0
jmp    1356 <rt+0x216>
ucomisd 0xc80(%rip),%xmm1
jne    13a5 <rt+0x265>
jp     13a5 <rt+0x265>
movapd 0x10(%rsp),%xmm0
xorpd  0xca6(%rip),%xmm0
movlpd %xmm0,(%r15)
xorpd  %xmm0,%xmm0
jmp    1356 <rt+0x216>
ucomisd 0xc63(%rip),%xmm1
jne    13c8 <rt+0x288>
jp     13c8 <rt+0x288>
movq   $0x0,(%r15)
movapd 0x10(%rsp),%xmm0
xorpd  0xc7a(%rip),%xmm0
jmp    1356 <rt+0x216>
xorpd  %xmm0,%xmm0
ucomisd %xmm0,%xmm1
jne    13d4 <rt+0x294>
jnp    13e8 <rt+0x2a8>
ucomisd 0xc3c(%rip),%xmm1
jne    135b <rt+0x21b>
jp     135b <rt+0x21b>
movapd 0x10(%rsp),%xmm1
movsd  %xmm1,(%r15)
jmp    1356 <rt+0x216>

LLVM IR (-O0):
@M_PI = global double 0.000000e+00
define void @rt(double %0, double %1, double %2, double* %3, double* %4) {
%6 = alloca double
%7 = alloca double
%8 = alloca double
%9 = alloca double*
%10 = alloca double*
%11 = alloca double
store double %0, double* %6
store double %1, double* %7
store double %2, double* %8
store double* %3, double** %9
store double* %4, double** %10
%12 = load double, double* %7
%13 = call i64 @pow(double %12, i32 2)
%14 = load double, double* %8
%15 = call i64 @pow(double %14, i32 2)
%16 = add nsw i64 %13, %15
%17 = call double @sqrt(i64 %16)
store double %17, double* %11
%18 = load double, double* %6
%19 = fcmp ogt double %18, 0.000000e+00
br i1 %19, label %20, label %40
20: ; preds = %5
%21 = load double, double* %6
%22 = fcmp olt double %21, 9.000000e+01
br i1 %22, label %23, label %40
23: ; preds = %20
%24 = load double, double* %11
%25 = load double, double* %6
%26 = load double, double* @M_PI
%27 = fmul double %25, %26
%28 = fdiv double %27, 1.800000e+02
%29 = call double @cos(double %28)
%30 = fmul double %24, %29
%31 = load double*, double** %9
store double %30, double* %31
%32 = load double, double* %11
%33 = load double, double* %6
%34 = load double, double* @M_PI
%35 = fmul double %33, %34
%36 = fdiv double %35, 1.800000e+02
%37 = call double @sin(double %36)
%38 = fmul double %32, %37
%39 = load double*, double** %10
store double %38, double* %39
br label %165
40: ; preds = %20, %5
%41 = load double, double* %6
%42 = fcmp ogt double %41, 9.000000e+01
br i1 %42, label %43, label %68
43: ; preds = %40
%44 = load double, double* %6
%45 = fcmp olt double %44, 1.800000e+02
br i1 %45, label %46, label %68
46: ; preds = %43
%47 = load double, double* %6
%48 = fsub double %47, 9.000000e+01
store double %48, double* %6
%49 = load double, double* %11
%50 = load double, double* %6
%51 = load double, double* @M_PI
%52 = fmul double %50, %51
%53 = fdiv double %52, 1.800000e+02
%54 = call double @sin(double %53)
%55 = fmul double %49, %54
%56 = call double @llvm.fabs.f64(double %55)
%57 = fneg double %56
%58 = load double*, double** %9
store double %57, double* %58
%59 = load double, double* %11
%60 = load double, double* %6
%61 = load double, double* @M_PI
%62 = fmul double %60, %61
%63 = fdiv double %62, 1.800000e+02
%64 = call double @cos(double %63)
%65 = fmul double %59, %64
%66 = call double @llvm.fabs.f64(double %65)
%67 = load double*, double** %10
store double %66, double* %67
br label %164
68: ; preds = %43, %40
%69 = load double, double* %6
%70 = fcmp ogt double %69, 1.800000e+02
br i1 %70, label %71, label %97
71: ; preds = %68
%72 = load double, double* %6
%73 = fcmp olt double %72, 2.700000e+02
br i1 %73, label %74, label %97
74: ; preds = %71
%75 = load double, double* %6
%76 = fsub double %75, 1.800000e+02
store double %76, double* %6
%77 = load double, double* %11
%78 = load double, double* %6
%79 = load double, double* @M_PI
%80 = fmul double %78, %79
%81 = fdiv double %80, 1.800000e+02
%82 = call double @cos(double %81)
%83 = fmul double %77, %82
%84 = call double @llvm.fabs.f64(double %83)
%85 = fneg double %84
%86 = load double*, double** %9
store double %85, double* %86
%87 = load double, double* %11
%88 = load double, double* %6
%89 = load double, double* @M_PI
%90 = fmul double %88, %89
%91 = fdiv double %90, 1.800000e+02
%92 = call double @sin(double %91)
%93 = fmul double %87, %92
%94 = call double @llvm.fabs.f64(double %93)
%95 = fneg double %94
%96 = load double*, double** %10
store double %95, double* %96
br label %163
97: ; preds = %71, %68
%98 = load double, double* %6
%99 = fcmp ogt double %98, 2.700000e+02
br i1 %99, label %100, label %125
100: ; preds = %97
%101 = load double, double* %6
%102 = fcmp olt double %101, 3.600000e+02
br i1 %102, label %103, label %125
103: ; preds = %100
%104 = load double, double* %6
%105 = fsub double %104, 2.700000e+02
store double %105, double* %6
%106 = load double, double* %11
%107 = load double, double* %6
%108 = load double, double* @M_PI
%109 = fmul double %107, %108
%110 = fdiv double %109, 1.800000e+02
%111 = call double @sin(double %110)
%112 = fmul double %106, %111
%113 = call double @llvm.fabs.f64(double %112)
%114 = load double*, double** %9
store double %113, double* %114
%115 = load double, double* %11
%116 = load double, double* %6
%117 = load double, double* @M_PI
%118 = fmul double %116, %117
%119 = fdiv double %118, 1.800000e+02
%120 = call double @cos(double %119)
%121 = fmul double %115, %120
%122 = call double @llvm.fabs.f64(double %121)
%123 = fneg double %122
%124 = load double*, double** %10
store double %123, double* %124
br label %162
125: ; preds = %100, %97
%126 = load double, double* %6
%127 = fcmp oeq double %126, 9.000000e+01
br i1 %127, label %128, label %132
128: ; preds = %125
%129 = load double*, double** %9
store double 0.000000e+00, double* %129
%130 = load double, double* %11
%131 = load double*, double** %10
store double %130, double* %131
br label %161
132: ; preds = %125
%133 = load double, double* %6
%134 = fcmp oeq double %133, 1.800000e+02
br i1 %134, label %135, label %140
135: ; preds = %132
%136 = load double, double* %11
%137 = fneg double %136
%138 = load double*, double** %9
store double %137, double* %138
%139 = load double*, double** %10
store double 0.000000e+00, double* %139
br label %160
140: ; preds = %132
%141 = load double, double* %6
%142 = fcmp oeq double %141, 2.700000e+02
br i1 %142, label %143, label %148
143: ; preds = %140
%144 = load double*, double** %9
store double 0.000000e+00, double* %144
%145 = load double, double* %11
%146 = fneg double %145
%147 = load double*, double** %10
store double %146, double* %147
br label %159
148: ; preds = %140
%149 = load double, double* %6
%150 = fcmp oeq double %149, 0.000000e+00
br i1 %150, label %154, label %151
151: ; preds = %148
%152 = load double, double* %6
%153 = fcmp oeq double %152, 3.600000e+02
br i1 %153, label %154, label %158
154: ; preds = %151, %148
%155 = load double, double* %11
%156 = load double*, double** %9
store double %155, double* %156
%157 = load double*, double** %10
store double 0.000000e+00, double* %157
br label %158
158: ; preds = %154, %151
br label %159
159: ; preds = %158, %143
br label %160
160: ; preds = %159, %135
br label %161
161: ; preds = %160, %128
br label %162
162: ; preds = %161, %103
br label %163
163: ; preds = %162, %74
br label %164
164: ; preds = %163, %46
br label %165
165: ; preds = %164, %23
ret void
}

LLVM IR (-O2):
@M_PI = global double 0.000000e+00
define void @rt(double %0, double %1, double %2, double* nocapture writeonly %3, double* nocapture writeonly %4) {
%6 = tail call i64 @pow(double %1, i32 2)
%7 = tail call i64 @pow(double %2, i32 2)
%8 = add nsw i64 %7, %6
%9 = tail call double @sqrt(i64 %8)
%10 = fcmp ogt double %0, 0.000000e+00
%11 = fcmp olt double %0, 9.000000e+01
%12 = and i1 %10, %11
br i1 %12, label %13, label %24
13: ; preds = %5
%14 = load double, double* @M_PI
%15 = fmul double %14, %0
%16 = fdiv double %15, 1.800000e+02
%17 = tail call double @cos(double %16)
%18 = fmul double %9, %17
store double %18, double* %3
%19 = load double, double* @M_PI
%20 = fmul double %19, %0
%21 = fdiv double %20, 1.800000e+02
%22 = tail call double @sin(double %21)
%23 = fmul double %9, %22
br label %98
24: ; preds = %5
%25 = fcmp ogt double %0, 9.000000e+01
%26 = fcmp olt double %0, 1.800000e+02
%27 = and i1 %25, %26
br i1 %27, label %28, label %43
28: ; preds = %24
%29 = fadd double %0, -9.000000e+01
%30 = load double, double* @M_PI
%31 = fmul double %29, %30
%32 = fdiv double %31, 1.800000e+02
%33 = tail call double @sin(double %32)
%34 = fmul double %9, %33
%35 = tail call double @llvm.fabs.f64(double %34)
%36 = fneg double %35
store double %36, double* %3
%37 = load double, double* @M_PI
%38 = fmul double %29, %37
%39 = fdiv double %38, 1.800000e+02
%40 = tail call double @cos(double %39)
%41 = fmul double %9, %40
%42 = tail call double @llvm.fabs.f64(double %41)
br label %98
43: ; preds = %24
%44 = fcmp ogt double %0, 1.800000e+02
%45 = fcmp olt double %0, 2.700000e+02
%46 = and i1 %44, %45
br i1 %46, label %47, label %63
47: ; preds = %43
%48 = fadd double %0, -1.800000e+02
%49 = load double, double* @M_PI
%50 = fmul double %48, %49
%51 = fdiv double %50, 1.800000e+02
%52 = tail call double @cos(double %51)
%53 = fmul double %9, %52
%54 = tail call double @llvm.fabs.f64(double %53)
%55 = fneg double %54
store double %55, double* %3
%56 = load double, double* @M_PI
%57 = fmul double %48, %56
%58 = fdiv double %57, 1.800000e+02
%59 = tail call double @sin(double %58)
%60 = fmul double %9, %59
%61 = tail call double @llvm.fabs.f64(double %60)
%62 = fneg double %61
br label %98
63: ; preds = %43
%64 = fcmp ogt double %0, 2.700000e+02
%65 = fcmp olt double %0, 3.600000e+02
%66 = and i1 %64, %65
br i1 %66, label %67, label %82
67: ; preds = %63
%68 = fadd double %0, -2.700000e+02
%69 = load double, double* @M_PI
%70 = fmul double %68, %69
%71 = fdiv double %70, 1.800000e+02
%72 = tail call double @sin(double %71)
%73 = fmul double %9, %72
%74 = tail call double @llvm.fabs.f64(double %73)
store double %74, double* %3
%75 = load double, double* @M_PI
%76 = fmul double %68, %75
%77 = fdiv double %76, 1.800000e+02
%78 = tail call double @cos(double %77)
%79 = fmul double %9, %78
%80 = tail call double @llvm.fabs.f64(double %79)
%81 = fneg double %80
br label %98
82: ; preds = %63
%83 = fcmp oeq double %0, 9.000000e+01
br i1 %83, label %84, label %85
84: ; preds = %82
store double 0.000000e+00, double* %3
br label %98
85: ; preds = %82
%86 = fcmp oeq double %0, 1.800000e+02
br i1 %86, label %87, label %89
87: ; preds = %85
%88 = fneg double %9
store double %88, double* %3
br label %98
89: ; preds = %85
%90 = fcmp oeq double %0, 2.700000e+02
br i1 %90, label %91, label %93
91: ; preds = %89
store double 0.000000e+00, double* %3
%92 = fneg double %9
br label %98
93: ; preds = %89
%94 = fcmp oeq double %0, 0.000000e+00
%95 = fcmp oeq double %0, 3.600000e+02
%96 = or i1 %94, %95
br i1 %96, label %97, label %100
97: ; preds = %93
store double %9, double* %3
br label %98
98: ; preds = %13, %47, %84, %91, %97, %87, %67, %28
%99 = phi double [ %42, %28 ], [ %81, %67 ], [ 0.000000e+00, %87 ], [ 0.000000e+00, %97 ], [ %92, %91 ], [ %9, %84 ], [ %62, %47 ], [ %23, %13 ]
store double %99, double* %4
br label %100
100: ; preds = %98, %93
ret void
}