#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);
double atan2(double, double);
int cos(double);
double fabs(double);
int /*<<< orphan*/ range(double *, double);
int sin(double);
void riset(double ra, double dec, double lt, double dis, double *lstr,
           double *lsts, double *azr, double *azs, int *status) {
  double h;
  double cos_h;
  double z;
  double zmin, zmax;
  double xaz, yaz;
  int shemi;
  if ((shemi = (lt < 0.)) != 0) {
    lt = -lt;
    dec = -dec;
  }
  z = (3.141592653589793 / 2.) + dis;
  zmin = fabs(dec - lt);
  zmax = 3.141592653589793 - fabs(dec + lt);
  if (zmax <= z + (1e-9)) {
    *status = -1;
    return;
  }
  if (zmin >= z - (1e-9)) {
    *status = 1;
    return;
  }
  cos_h = (cos(z) - sin(lt) * sin(dec)) / (cos(lt) * cos(dec));
  if (cos_h >= 1.)
    h = 0.;
  else if (cos_h <= -1.)
    h = 3.141592653589793;
  else
    h = acos(cos_h);
  xaz = sin(dec) * cos(lt) - cos(dec) * cos(h) * sin(lt);
  yaz = -1. * cos(dec) * sin(h);
  if (xaz == 0.) {
    if (yaz > 0)
      *azs = 3.141592653589793 / 2;
    else
      *azs = -3.141592653589793 / 2;
  } else
    *azs = atan2(yaz, xaz);
  if (shemi)
    *azs = 3.141592653589793 - *azs;
  range(azs, 2. * 3.141592653589793);
  *azr = 2. * 3.141592653589793 - *azs;
  range(azr, 2. * 3.141592653589793);
  *lstr = ((((ra - h) * 180. / 3.141592653589793)) / 15.);
  range(lstr, 24.0);
  *lsts = ((((ra + h) * 180. / 3.141592653589793)) / 15.);
  range(lsts, 24.0);
  *status = 0;
}


x86 assembly (clang, -O0):
<riset>:
push   %rbp
mov    %rsp,%rbp
sub    $0xb0,%rsp
movsd  %xmm0,-0x8(%rbp)
movsd  %xmm1,-0x10(%rbp)
movsd  %xmm2,-0x18(%rbp)
movsd  %xmm3,-0x20(%rbp)
mov    %rdi,-0x28(%rbp)
mov    %rsi,-0x30(%rbp)
mov    %rdx,-0x38(%rbp)
mov    %rcx,-0x40(%rbp)
mov    %r8,-0x48(%rbp)
xorps  %xmm0,%xmm0
ucomisd -0x18(%rbp),%xmm0
seta   %al
and    $0x1,%al
movzbl %al,%eax
mov    %eax,-0x84(%rbp)
cmp    $0x0,%eax
je     11e4 <riset+0x94>
movsd  -0x18(%rbp),%xmm0
movq   %xmm0,%rax
movabs $0x8000000000000000,%rcx
xor    %rcx,%rax
movq   %rax,%xmm0
movsd  %xmm0,-0x18(%rbp)
movsd  -0x10(%rbp),%xmm0
movq   %xmm0,%rax
movabs $0x8000000000000000,%rcx
xor    %rcx,%rax
movq   %rax,%xmm0
movsd  %xmm0,-0x10(%rbp)
movsd  0xe24(%rip),%xmm0
addsd  -0x20(%rbp),%xmm0
movsd  %xmm0,-0x60(%rbp)
movsd  -0x10(%rbp),%xmm0
subsd  -0x18(%rbp),%xmm0
movaps 0xe49(%rip),%xmm1
pand   %xmm1,%xmm0
movsd  %xmm0,-0x68(%rbp)
movsd  -0x10(%rbp),%xmm1
addsd  -0x18(%rbp),%xmm1
movaps 0xe2f(%rip),%xmm0
pand   %xmm0,%xmm1
movsd  0xddb(%rip),%xmm0
subsd  %xmm1,%xmm0
movsd  %xmm0,-0x70(%rbp)
movsd  -0x70(%rbp),%xmm1
movsd  0xdbd(%rip),%xmm0
addsd  -0x60(%rbp),%xmm0
ucomisd %xmm1,%xmm0
jb     1261 <riset+0x111>
mov    -0x48(%rbp),%rax
movl   $0xffffffff,(%rax)
jmp    1586 <riset+0x436>
movsd  -0x68(%rbp),%xmm0
movsd  -0x60(%rbp),%xmm1
movsd  0xd8d(%rip),%xmm2
subsd  %xmm2,%xmm1
ucomisd %xmm1,%xmm0
jb     1290 <riset+0x140>
mov    -0x48(%rbp),%rax
movl   $0x1,(%rax)
jmp    1586 <riset+0x436>
movsd  -0x60(%rbp),%xmm0
call   1070 <cos@plt>
mov    %eax,-0x90(%rbp)
movsd  -0x18(%rbp),%xmm0
call   1050 <sin@plt>
mov    %eax,-0x94(%rbp)
movsd  -0x10(%rbp),%xmm0
call   1050 <sin@plt>
mov    -0x94(%rbp),%ecx
mov    %eax,%edx
mov    -0x90(%rbp),%eax
imul   %edx,%ecx
sub    %ecx,%eax
mov    %eax,-0x88(%rbp)
movsd  -0x18(%rbp),%xmm0
call   1070 <cos@plt>
mov    %eax,-0x8c(%rbp)
movsd  -0x10(%rbp),%xmm0
call   1070 <cos@plt>
mov    -0x8c(%rbp),%ecx
mov    %eax,%edx
mov    -0x88(%rbp),%eax
imul   %edx,%ecx
cltd
idiv   %ecx
cvtsi2sd %eax,%xmm0
movsd  %xmm0,-0x58(%rbp)
movsd  -0x58(%rbp),%xmm0
movsd  0xd01(%rip),%xmm1
ucomisd %xmm1,%xmm0
jb     132e <riset+0x1de>
xorps  %xmm0,%xmm0
movsd  %xmm0,-0x50(%rbp)
jmp    1367 <riset+0x217>
movsd  0xcea(%rip),%xmm0
ucomisd -0x58(%rbp),%xmm0
jb     1353 <riset+0x203>
movsd  0xcbf(%rip),%xmm0
movsd  %xmm0,-0x50(%rbp)
jmp    1362 <riset+0x212>
movsd  -0x58(%rbp),%xmm0
call   1040 <acos@plt>
movsd  %xmm0,-0x50(%rbp)
jmp    1367 <riset+0x217>
movsd  -0x10(%rbp),%xmm0
call   1050 <sin@plt>
mov    %eax,-0xb0(%rbp)
movsd  -0x18(%rbp),%xmm0
call   1070 <cos@plt>
mov    %eax,%ecx
mov    -0xb0(%rbp),%eax
imul   %ecx,%eax
mov    %eax,-0xa4(%rbp)
movsd  -0x10(%rbp),%xmm0
call   1070 <cos@plt>
mov    %eax,-0xac(%rbp)
movsd  -0x50(%rbp),%xmm0
call   1070 <cos@plt>
mov    %eax,%ecx
mov    -0xac(%rbp),%eax
imul   %ecx,%eax
mov    %eax,-0xa8(%rbp)
movsd  -0x18(%rbp),%xmm0
call   1050 <sin@plt>
mov    -0xa8(%rbp),%ecx
mov    %eax,%edx
mov    -0xa4(%rbp),%eax
imul   %edx,%ecx
sub    %ecx,%eax
cvtsi2sd %eax,%xmm0
movsd  %xmm0,-0x78(%rbp)
movsd  -0x10(%rbp),%xmm0
call   1070 <cos@plt>
cvtsi2sd %eax,%xmm1
movsd  0xc27(%rip),%xmm0
mulsd  %xmm1,%xmm0
movsd  %xmm0,-0xa0(%rbp)
ff
movsd  -0x50(%rbp),%xmm0
call   1050 <sin@plt>
movsd  -0xa0(%rbp),%xmm0
ff
cvtsi2sd %eax,%xmm1
mulsd  %xmm1,%xmm0
movsd  %xmm0,-0x80(%rbp)
movsd  -0x78(%rbp),%xmm0
xorps  %xmm1,%xmm1
ucomisd %xmm1,%xmm0
jne    1478 <riset+0x328>
jp     1478 <riset+0x328>
movsd  -0x80(%rbp),%xmm0
xorps  %xmm1,%xmm1
ucomisd %xmm1,%xmm0
jbe    1463 <riset+0x313>
mov    -0x40(%rbp),%rax
movsd  0xbb6(%rip),%xmm0
movsd  %xmm0,(%rax)
jmp    1473 <riset+0x323>
mov    -0x40(%rbp),%rax
movsd  0xbb9(%rip),%xmm0
movsd  %xmm0,(%rax)
jmp    148f <riset+0x33f>
movsd  -0x80(%rbp),%xmm0
movsd  -0x78(%rbp),%xmm1
call   1030 <atan2@plt>
mov    -0x40(%rbp),%rax
movsd  %xmm0,(%rax)
cmpl   $0x0,-0x84(%rbp)
je     14b4 <riset+0x364>
mov    -0x40(%rbp),%rax
movsd  0xb60(%rip),%xmm0
subsd  (%rax),%xmm0
mov    -0x40(%rbp),%rax
movsd  %xmm0,(%rax)
mov    -0x40(%rbp),%rdi
movsd  0xb88(%rip),%xmm0
call   1060 <range@plt>
mov    -0x40(%rbp),%rax
movsd  0xb77(%rip),%xmm0
subsd  (%rax),%xmm0
mov    -0x38(%rbp),%rax
movsd  %xmm0,(%rax)
mov    -0x38(%rbp),%rdi
movsd  0xb5f(%rip),%xmm0
call   1060 <range@plt>
movsd  -0x8(%rbp),%xmm0
subsd  -0x50(%rbp),%xmm0
movsd  0xb40(%rip),%xmm1
mulsd  %xmm1,%xmm0
movsd  0xafc(%rip),%xmm1
divsd  %xmm1,%xmm0
movsd  0xb20(%rip),%xmm1
divsd  %xmm1,%xmm0
mov    -0x28(%rbp),%rax
movsd  %xmm0,(%rax)
mov    -0x28(%rbp),%rdi
movsd  0xb00(%rip),%xmm0
call   1060 <range@plt>
movsd  -0x8(%rbp),%xmm0
addsd  -0x50(%rbp),%xmm0
movsd  0xaf9(%rip),%xmm1
mulsd  %xmm1,%xmm0
movsd  0xab5(%rip),%xmm1
divsd  %xmm1,%xmm0
movsd  0xad9(%rip),%xmm1
divsd  %xmm1,%xmm0
mov    -0x30(%rbp),%rax
movsd  %xmm0,(%rax)
mov    -0x30(%rbp),%rdi
movsd  0xab9(%rip),%xmm0
call   1060 <range@plt>
mov    -0x48(%rbp),%rax
movl   $0x0,(%rax)
add    $0xb0,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<riset>:
push   %rbp
push   %r15
push   %r14
push   %r13
push   %r12
push   %rbx
sub    $0x68,%rsp
mov    %r8,%r13
mov    %rcx,%r15
xorpd  %xmm5,%xmm5
ucomisd %xmm2,%xmm5
movapd 0xe8c(%rip),%xmm6
movapd %xmm1,%xmm4
xorpd  %xmm6,%xmm4
ja     1184 <riset+0x34>
movapd %xmm2,%xmm6
jmp    1188 <riset+0x38>
xorpd  %xmm2,%xmm6
movapd %xmm2,%xmm7
cmpltsd %xmm5,%xmm7
andpd  %xmm7,%xmm4
andnpd %xmm1,%xmm7
addsd  0xe8f(%rip),%xmm3
orpd   %xmm4,%xmm7
movapd %xmm7,%xmm4
addsd  %xmm6,%xmm4
andpd  0xe5b(%rip),%xmm4
movsd  0xe7b(%rip),%xmm1
subsd  %xmm4,%xmm1
movsd  0xe77(%rip),%xmm4
addsd  %xmm3,%xmm4
mov    $0xffffffff,%eax
ucomisd %xmm1,%xmm4
jae    141e <riset+0x2ce>
movapd %xmm7,%xmm4
subsd  %xmm6,%xmm4
andpd  0xe24(%rip),%xmm4
movsd  0xe54(%rip),%xmm1
addsd  %xmm3,%xmm1
mov    $0x1,%eax
ucomisd %xmm1,%xmm4
jae    141e <riset+0x2ce>
movapd %xmm2,0x50(%rsp)
mov    %rdx,0x20(%rsp)
mov    %rdi,0x28(%rsp)
movsd  %xmm0,0x38(%rsp)
mov    %rsi,0x30(%rsp)
movapd %xmm3,%xmm0
movapd %xmm6,0x40(%rsp)
movapd %xmm7,0x10(%rsp)
call   1070 <cos@plt>
mov    %eax,%ebp
movaps 0x40(%rsp),%xmm0
call   1050 <sin@plt>
mov    %eax,%r14d
movaps 0x10(%rsp),%xmm0
call   1050 <sin@plt>
imul   %r14d,%eax
sub    %eax,%ebp
movaps 0x40(%rsp),%xmm0
call   1070 <cos@plt>
mov    %eax,%ebx
movapd 0x10(%rsp),%xmm0
call   1070 <cos@plt>
mov    %eax,%ecx
imul   %ebx,%ecx
mov    %ebp,%eax
cltd
idiv   %ecx
xorpd  %xmm0,%xmm0
test   %eax,%eax
jg     1295 <riset+0x145>
movsd  0xdb1(%rip),%xmm0
js     1295 <riset+0x145>
xorps  %xmm0,%xmm0
cvtsi2sd %eax,%xmm0
call   1040 <acos@plt>
movsd  %xmm0,0x8(%rsp)
movaps 0x10(%rsp),%xmm0
call   1050 <sin@plt>
mov    %eax,%ebx
movaps 0x40(%rsp),%xmm0
call   1070 <cos@plt>
mov    %eax,%ebp
imul   %ebx,%ebp
movaps 0x10(%rsp),%xmm0
call   1070 <cos@plt>
mov    %eax,%r14d
movsd  0x8(%rsp),%xmm0
call   1070 <cos@plt>
mov    %eax,%ebx
movaps 0x40(%rsp),%xmm0
call   1050 <sin@plt>
mov    %eax,%r12d
imul   %ebx,%r12d
imul   %r14d,%r12d
movaps 0x10(%rsp),%xmm0
call   1070 <cos@plt>
mov    %eax,%ebx
movsd  0x8(%rsp),%xmm0
call   1050 <sin@plt>
xorps  %xmm1,%xmm1
cvtsi2sd %ebx,%xmm1
xorpd  0xcf5(%rip),%xmm1
xorps  %xmm0,%xmm0
cvtsi2sd %eax,%xmm0
mulsd  %xmm1,%xmm0
sub    %r12d,%ebp
je     1329 <riset+0x1d9>
xorps  %xmm1,%xmm1
cvtsi2sd %ebp,%xmm1
call   1030 <atan2@plt>
jmp    1342 <riset+0x1f2>
xorpd  %xmm1,%xmm1
xor    %eax,%eax
ucomisd %xmm1,%xmm0
seta   %al
lea    0xce3(%rip),%rcx
movsd  (%rcx,%rax,8),%xmm0
mov    0x30(%rsp),%r14
mov    0x28(%rsp),%rbp
mov    0x20(%rsp),%rbx
movapd 0x50(%rsp),%xmm3
movsd  0xcd9(%rip),%xmm1
subsd  %xmm0,%xmm1
xorpd  %xmm2,%xmm2
cmpltsd %xmm2,%xmm3
andpd  %xmm3,%xmm1
andnpd %xmm0,%xmm3
orpd   %xmm1,%xmm3
movlpd %xmm3,(%r15)
movsd  0xccb(%rip),%xmm0
mov    %r15,%rdi
call   1060 <range@plt>
movsd  0xcbb(%rip),%xmm0
movapd %xmm0,%xmm1
subsd  (%r15),%xmm1
movsd  %xmm1,(%rbx)
mov    %rbx,%rdi
call   1060 <range@plt>
movsd  0x38(%rsp),%xmm0
subsd  0x8(%rsp),%xmm0
mulsd  0xc9a(%rip),%xmm0
divsd  0xc72(%rip),%xmm0
divsd  0xc92(%rip),%xmm0
movsd  %xmm0,0x0(%rbp)
movsd  0xc8d(%rip),%xmm0
mov    %rbp,%rdi
call   1060 <range@plt>
movsd  0x8(%rsp),%xmm0
addsd  0x38(%rsp),%xmm0
mulsd  0xc61(%rip),%xmm0
divsd  0xc39(%rip),%xmm0
divsd  0xc59(%rip),%xmm0
movsd  %xmm0,(%r14)
mov    %r14,%rdi
movsd  0xc51(%rip),%xmm0
call   1060 <range@plt>
xor    %eax,%eax
mov    %eax,0x0(%r13)
add    $0x68,%rsp
pop    %rbx
pop    %r12
pop    %r13
pop    %r14
pop    %r15
pop    %rbp
ret

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

LLVM IR (-O2):
define void @riset(double %0, double %1, double %2, double %3, double* %4, double* %5, double* %6, double* %7, i32* nocapture writeonly %8) {
%10 = fcmp olt double %2, 0.000000e+00
%11 = fneg double %2
%12 = fneg double %1
%13 = select i1 %10, double %11, double %2
%14 = select i1 %10, double %12, double %1
%15 = fadd double %3, 0x3FF921FB54442D18
%16 = fadd double %14, %13
%17 = tail call double @llvm.fabs.f64(double %16)
%18 = fsub double 0x400921FB54442D18, %17
%19 = fadd double %15, 1.000000e-09
%20 = fcmp ugt double %18, %19
br i1 %20, label %21, label %84
21: ; preds = %9
%22 = fsub double %14, %13
%23 = tail call double @llvm.fabs.f64(double %22)
%24 = fadd double %15, -1.000000e-09
%25 = fcmp ult double %23, %24
br i1 %25, label %26, label %84
26: ; preds = %21
%27 = tail call i32 @cos(double %15)
%28 = tail call i32 @sin(double %13)
%29 = tail call i32 @sin(double %14)
%30 = mul nsw i32 %29, %28
%31 = sub nsw i32 %27, %30
%32 = tail call i32 @cos(double %13)
%33 = tail call i32 @cos(double %14)
%34 = mul nsw i32 %33, %32
%35 = sdiv i32 %31, %34
%36 = sitofp i32 %35 to double
%37 = icmp sgt i32 %35, 0
br i1 %37, label %42, label %38
38: ; preds = %26
%39 = icmp slt i32 %35, 0
br i1 %39, label %42, label %40
40: ; preds = %38
%41 = tail call double @acos(double %36)
br label %42
42: ; preds = %38, %26, %40
%43 = phi double [ %41, %40 ], [ 0.000000e+00, %26 ], [ 0x400921FB54442D18, %38 ]
%44 = tail call i32 @sin(double %14)
%45 = tail call i32 @cos(double %13)
%46 = mul nsw i32 %45, %44
%47 = tail call i32 @cos(double %14)
%48 = tail call i32 @cos(double %43)
%49 = mul nsw i32 %48, %47
%50 = tail call i32 @sin(double %13)
%51 = mul nsw i32 %49, %50
%52 = sub nsw i32 %46, %51
%53 = tail call i32 @cos(double %14)
%54 = sitofp i32 %53 to double
%55 = fneg double %54
%56 = tail call i32 @sin(double %43)
%57 = sitofp i32 %56 to double
%58 = fmul double %55, %57
%59 = icmp eq i32 %52, 0
br i1 %59, label %60, label %63
60: ; preds = %42
%61 = fcmp ogt double %58, 0.000000e+00
%62 = select i1 %61, double 0x3FF921FB54442D18, double 0xBFF921FB54442D18
br label %66
63: ; preds = %42
%64 = sitofp i32 %52 to double
%65 = tail call double @atan2(double %58, double %64)
br label %66
66: ; preds = %60, %63
%67 = phi double [ %65, %63 ], [ %62, %60 ]
%68 = fsub double 0x400921FB54442D18, %67
%69 = select i1 %10, double %68, double %67
store double %69, double* %7
%70 = tail call i32 @range(double* %7, double 0x401921FB54442D18)
%71 = load double, double* %7
%72 = fsub double 0x401921FB54442D18, %71
store double %72, double* %6
%73 = tail call i32 @range(double* %6, double 0x401921FB54442D18)
%74 = fsub double %0, %43
%75 = fmul double %74, 1.800000e+02
%76 = fdiv double %75, 0x400921FB54442D18
%77 = fdiv double %76, 1.500000e+01
store double %77, double* %4
%78 = tail call i32 @range(double* %4, double 2.400000e+01)
%79 = fadd double %43, %0
%80 = fmul double %79, 1.800000e+02
%81 = fdiv double %80, 0x400921FB54442D18
%82 = fdiv double %81, 1.500000e+01
store double %82, double* %5
%83 = tail call i32 @range(double* %5, double 2.400000e+01)
br label %84
84: ; preds = %21, %9, %66
%85 = phi i32 [ 0, %66 ], [ -1, %9 ], [ 1, %21 ]
store i32 %85, i32* %8
ret void
}