#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 M_PI;
double const sqrt(double const);
double const tan(double);
bool isInside(const int P, const int X, const int Y) {
  const double R = 50;
  const double x = X - 50;
  const double y = Y - 50;
  if (P == 0)
    return false;
  if (x == 0 && y == 0)
    return true;
  if (sqrt(x * x + y * y) > R)
    return false;
  if (x == 0) {
    if (y > 0)
      return P > 0;
    if (y < 0)
      return P >= 50;
  }
  if (y == 0) {
    if (x > 0)
      return P >= 25;
    if (x < 0)
      return P >= 75;
  }
  int zone;
  if (x > 0 && y > 0)
    zone = 1;
  else if (x > 0 && y < 0)
    zone = 2;
  else if (x < 0 && y < 0)
    zone = 3;
  else
    zone = 4;
  int pZone;
  if (P <= 25)
    pZone = 1;
  else if (P <= 50)
    pZone = 2;
  else if (P <= 75)
    pZone = 3;
  else
    pZone = 4;
  if (pZone != zone) {
    return pZone > zone;
  }
  double radian = 2 * M_PI * P / 100;
  double h;
  switch (zone) {
  case 1:
    h = x * tan(M_PI / 2 - radian);
    return y >= h;
  case 2:
    h = x * tan(radian - M_PI / 2);
    return y >= -h;
  case 3:
    h = -x * tan(M_PI * 3 / 2 - radian);
    return y <= -h;
  case 4:
    h = -x * tan(radian - M_PI * 3 / 2);
    return y <= h;
  }
  return false;
}


x86 assembly (clang, -O0):
<isInside>:
push   %rbp
mov    %rsp,%rbp
sub    $0x70,%rsp
mov    %edi,-0x8(%rbp)
mov    %esi,-0xc(%rbp)
mov    %edx,-0x10(%rbp)
movsd  0xec7(%rip),%xmm0
movsd  %xmm0,-0x18(%rbp)
mov    -0xc(%rbp),%eax
sub    $0x32,%eax
cvtsi2sd %eax,%xmm0
movsd  %xmm0,-0x20(%rbp)
mov    -0x10(%rbp),%eax
sub    $0x32,%eax
cvtsi2sd %eax,%xmm0
movsd  %xmm0,-0x28(%rbp)
cmpl   $0x0,-0x8(%rbp)
jne    1172 <isInside+0x52>
movl   $0x0,-0x4(%rbp)
jmp    15e3 <isInside+0x4c3>
movsd  -0x20(%rbp),%xmm0
xorps  %xmm1,%xmm1
ucomisd %xmm1,%xmm0
jne    11ae <isInside+0x8e>
jp     11ae <isInside+0x8e>
movsd  -0x28(%rbp),%xmm0
xorps  %xmm1,%xmm1
ucomisd %xmm1,%xmm0
jne    11ae <isInside+0x8e>
jp     11ae <isInside+0x8e>
movl   $0x1,-0x4(%rbp)
jmp    15e3 <isInside+0x4c3>
movsd  -0x20(%rbp),%xmm0
movsd  -0x20(%rbp),%xmm2
movsd  -0x28(%rbp),%xmm1
mulsd  -0x28(%rbp),%xmm1
mulsd  %xmm2,%xmm0
addsd  %xmm1,%xmm0
call   1040 <sqrt@plt>
movsd  0xe29(%rip),%xmm1
ucomisd %xmm1,%xmm0
jbe    11ed <isInside+0xcd>
movl   $0x0,-0x4(%rbp)
jmp    15e3 <isInside+0x4c3>
movsd  -0x20(%rbp),%xmm0
xorps  %xmm1,%xmm1
ucomisd %xmm1,%xmm0
jne    1252 <isInside+0x132>
jp     1252 <isInside+0x132>
movsd  -0x28(%rbp),%xmm0
xorps  %xmm1,%xmm1
ucomisd %xmm1,%xmm0
jbe    122b <isInside+0x10b>
cmpl   $0x0,-0x8(%rbp)
setg   %al
and    $0x1,%al
movzbl %al,%eax
mov    %eax,-0x4(%rbp)
jmp    15e3 <isInside+0x4c3>
xorps  %xmm0,%xmm0
ucomisd -0x28(%rbp),%xmm0
jbe    124d <isInside+0x12d>
cmpl   $0x32,-0x8(%rbp)
setge  %al
and    $0x1,%al
movzbl %al,%eax
mov    %eax,-0x4(%rbp)
jmp    15e3 <isInside+0x4c3>
jmp    1252 <isInside+0x132>
movsd  -0x28(%rbp),%xmm0
xorps  %xmm1,%xmm1
ucomisd %xmm1,%xmm0
jne    12b7 <isInside+0x197>
jp     12b7 <isInside+0x197>
movsd  -0x20(%rbp),%xmm0
xorps  %xmm1,%xmm1
ucomisd %xmm1,%xmm0
jbe    1290 <isInside+0x170>
cmpl   $0x19,-0x8(%rbp)
setge  %al
and    $0x1,%al
movzbl %al,%eax
mov    %eax,-0x4(%rbp)
jmp    15e3 <isInside+0x4c3>
xorps  %xmm0,%xmm0
ucomisd -0x20(%rbp),%xmm0
jbe    12b2 <isInside+0x192>
cmpl   $0x4b,-0x8(%rbp)
setge  %al
and    $0x1,%al
movzbl %al,%eax
mov    %eax,-0x4(%rbp)
jmp    15e3 <isInside+0x4c3>
jmp    12b7 <isInside+0x197>
movsd  -0x20(%rbp),%xmm0
xorps  %xmm1,%xmm1
ucomisd %xmm1,%xmm0
jbe    12e7 <isInside+0x1c7>
movsd  -0x28(%rbp),%xmm0
xorps  %xmm1,%xmm1
ucomisd %xmm1,%xmm0
jbe    12e7 <isInside+0x1c7>
movl   $0x1,-0x2c(%rbp)
jmp    134c <isInside+0x22c>
movsd  -0x20(%rbp),%xmm0
xorps  %xmm1,%xmm1
ucomisd %xmm1,%xmm0
jbe    1313 <isInside+0x1f3>
xorps  %xmm0,%xmm0
ucomisd -0x28(%rbp),%xmm0
jbe    1313 <isInside+0x1f3>
movl   $0x2,-0x2c(%rbp)
jmp    1347 <isInside+0x227>
xorps  %xmm0,%xmm0
ucomisd -0x20(%rbp),%xmm0
jbe    133b <isInside+0x21b>
xorps  %xmm0,%xmm0
ucomisd -0x28(%rbp),%xmm0
jbe    133b <isInside+0x21b>
movl   $0x3,-0x2c(%rbp)
jmp    1342 <isInside+0x222>
movl   $0x4,-0x2c(%rbp)
jmp    1347 <isInside+0x227>
jmp    134c <isInside+0x22c>
cmpl   $0x19,-0x8(%rbp)
jg     1362 <isInside+0x242>
movl   $0x1,-0x30(%rbp)
jmp    139f <isInside+0x27f>
cmpl   $0x32,-0x8(%rbp)
jg     1378 <isInside+0x258>
movl   $0x2,-0x30(%rbp)
jmp    139a <isInside+0x27a>
cmpl   $0x4b,-0x8(%rbp)
jg     138e <isInside+0x26e>
movl   $0x3,-0x30(%rbp)
jmp    1395 <isInside+0x275>
movl   $0x4,-0x30(%rbp)
jmp    139a <isInside+0x27a>
jmp    139f <isInside+0x27f>
mov    -0x30(%rbp),%eax
cmp    -0x2c(%rbp),%eax
je     13c1 <isInside+0x2a1>
mov    -0x30(%rbp),%eax
cmp    -0x2c(%rbp),%eax
setg   %al
and    $0x1,%al
movzbl %al,%eax
mov    %eax,-0x4(%rbp)
jmp    15e3 <isInside+0x4c3>
mov    0x2c20(%rip),%rax
mov    (%rax),%eax
mov    -0x8(%rbp),%ecx
imul   %ecx,%eax
add    %eax,%eax
cltq
imul   $0x51eb851f,%rax,%rax
mov    %rax,%rcx
shr    $0x3f,%rcx
sar    $0x25,%rax
add    %ecx,%eax
cvtsi2sd %eax,%xmm0
movsd  %xmm0,-0x38(%rbp)
mov    -0x2c(%rbp),%eax
add    $0xffffffff,%eax
mov    %eax,%ecx
mov    %rcx,-0x48(%rbp)
sub    $0x3,%eax
ja     15dc <isInside+0x4bc>
mov    -0x48(%rbp),%rax
lea    0xbf7(%rip),%rcx
movslq (%rcx,%rax,4),%rax
add    %rcx,%rax
jmp    *%rax
movsd  -0x20(%rbp),%xmm0
movsd  %xmm0,-0x50(%rbp)
mov    0x2bbd(%rip),%rax
mov    (%rax),%eax
mov    $0x2,%ecx
cltd
idiv   %ecx
cvtsi2sd %eax,%xmm0
subsd  -0x38(%rbp),%xmm0
call   1030 <tan@plt>
movaps %xmm0,%xmm1
movsd  -0x50(%rbp),%xmm0
mulsd  %xmm1,%xmm0
movsd  %xmm0,-0x40(%rbp)
movsd  -0x28(%rbp),%xmm0
ucomisd -0x40(%rbp),%xmm0
setae  %al
and    $0x1,%al
movzbl %al,%eax
mov    %eax,-0x4(%rbp)
jmp    15e3 <isInside+0x4c3>
movsd  -0x20(%rbp),%xmm0
movsd  %xmm0,-0x58(%rbp)
movsd  -0x38(%rbp),%xmm0
mov    0x2b64(%rip),%rax
mov    (%rax),%eax
mov    $0x2,%ecx
cltd
idiv   %ecx
cvtsi2sd %eax,%xmm1
subsd  %xmm1,%xmm0
call   1030 <tan@plt>
movaps %xmm0,%xmm1
movsd  -0x58(%rbp),%xmm0
mulsd  %xmm1,%xmm0
movsd  %xmm0,-0x40(%rbp)
movsd  -0x28(%rbp),%xmm0
movsd  -0x40(%rbp),%xmm1
movq   %xmm1,%rax
movabs $0x8000000000000000,%rcx
xor    %rcx,%rax
movq   %rax,%xmm1
ucomisd %xmm1,%xmm0
setae  %al
and    $0x1,%al
movzbl %al,%eax
mov    %eax,-0x4(%rbp)
jmp    15e3 <isInside+0x4c3>
movsd  -0x20(%rbp),%xmm0
movq   %xmm0,%rax
movabs $0x8000000000000000,%rcx
xor    %rcx,%rax
movq   %rax,%xmm0
movsd  %xmm0,-0x60(%rbp)
mov    0x2adf(%rip),%rax
imul   $0x3,(%rax),%eax
mov    $0x2,%ecx
cltd
idiv   %ecx
cvtsi2sd %eax,%xmm0
subsd  -0x38(%rbp),%xmm0
call   1030 <tan@plt>
movaps %xmm0,%xmm1
movsd  -0x60(%rbp),%xmm0
mulsd  %xmm1,%xmm0
movsd  %xmm0,-0x40(%rbp)
movsd  -0x28(%rbp),%xmm1
movsd  -0x40(%rbp),%xmm0
movq   %xmm0,%rax
movabs $0x8000000000000000,%rcx
xor    %rcx,%rax
movq   %rax,%xmm0
ucomisd %xmm1,%xmm0
setae  %al
and    $0x1,%al
movzbl %al,%eax
mov    %eax,-0x4(%rbp)
jmp    15e3 <isInside+0x4c3>
movsd  -0x20(%rbp),%xmm0
movq   %xmm0,%rax
movabs $0x8000000000000000,%rcx
xor    %rcx,%rax
movq   %rax,%xmm0
movsd  %xmm0,-0x68(%rbp)
movsd  -0x38(%rbp),%xmm0
mov    0x2a53(%rip),%rax
imul   $0x3,(%rax),%eax
mov    $0x2,%ecx
cltd
idiv   %ecx
cvtsi2sd %eax,%xmm1
subsd  %xmm1,%xmm0
call   1030 <tan@plt>
movaps %xmm0,%xmm1
movsd  -0x68(%rbp),%xmm0
mulsd  %xmm1,%xmm0
movsd  %xmm0,-0x40(%rbp)
movsd  -0x28(%rbp),%xmm1
movsd  -0x40(%rbp),%xmm0
ucomisd %xmm1,%xmm0
setae  %al
and    $0x1,%al
movzbl %al,%eax
mov    %eax,-0x4(%rbp)
jmp    15e3 <isInside+0x4c3>
movl   $0x0,-0x4(%rbp)
mov    -0x4(%rbp),%eax
add    $0x70,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<isInside>:
push   %rbp
push   %r15
push   %r14
push   %r12
push   %rbx
sub    $0x20,%rsp
test   %edi,%edi
je     1193 <isInside+0x73>
mov    %edx,%r12d
mov    %esi,%r15d
lea    -0x32(%r15),%ebp
lea    -0x32(%r12),%ebx
mov    $0x1,%al
mov    %ebp,%ecx
or     %ebx,%ecx
je     1195 <isInside+0x75>
mov    %edi,%r14d
cvtsi2sd %ebp,%xmm0
cvtsi2sd %ebx,%xmm1
movsd  %xmm1,0x8(%rsp)
mulsd  %xmm1,%xmm1
movapd %xmm0,0x10(%rsp)
mulsd  %xmm0,%xmm0
addsd  %xmm1,%xmm0
xorpd  %xmm1,%xmm1
ucomisd %xmm1,%xmm0
jb     1184 <isInside+0x64>
sqrtsd %xmm0,%xmm0
ucomisd 0xe80(%rip),%xmm0
ja     1193 <isInside+0x73>
jmp    11a5 <isInside+0x85>
call   1040 <sqrt@plt>
ucomisd 0xe6f(%rip),%xmm0
jbe    11a5 <isInside+0x85>
xor    %eax,%eax
movzbl %al,%eax
add    $0x20,%rsp
pop    %rbx
pop    %r12
pop    %r14
pop    %r15
pop    %rbp
ret
test   %ebp,%ebp
je     11d8 <isInside+0xb8>
test   %ebx,%ebx
je     11e6 <isInside+0xc6>
cmp    $0x33,%r15d
jl     11be <isInside+0x9e>
mov    $0x1,%eax
cmp    $0x32,%r12d
jg     1218 <isInside+0xf8>
cmp    $0x32,%r12d
setl   %cl
cmp    $0x33,%r15d
jl     1205 <isInside+0xe5>
mov    $0x2,%eax
cmp    $0x32,%r12d
jl     1218 <isInside+0xf8>
jmp    1205 <isInside+0xe5>
cmp    $0x33,%r12d
jl     11f9 <isInside+0xd9>
test   %r14d,%r14d
setg   %al
jmp    1195 <isInside+0x75>
cmp    $0x33,%r15d
jl     12c2 <isInside+0x1a2>
cmp    $0x19,%r14d
setge  %al
jmp    1195 <isInside+0x75>
cmp    $0x32,%r12d
jne    12ce <isInside+0x1ae>
xor    %ecx,%ecx
cmp    $0x32,%r15d
setl   %al
and    %cl,%al
movzbl %al,%ecx
mov    $0x4,%eax
sub    %ecx,%eax
mov    $0x1,%ecx
cmp    $0x1a,%r14d
jl     123a <isInside+0x11a>
mov    $0x2,%ecx
cmp    $0x33,%r14d
jb     123a <isInside+0x11a>
cmp    $0x4c,%r14d
mov    $0x4,%ecx
sbb    $0x0,%ecx
cmp    %eax,%ecx
jne    12ba <isInside+0x19a>
add    $0xffffffff,%eax
cmp    $0x3,%eax
ja     1193 <isInside+0x73>
mov    0x2d97(%rip),%rcx
mov    (%rcx),%ecx
imul   %ecx,%r14d
add    %r14d,%r14d
movslq %r14d,%rdx
imul   $0x51eb851f,%rdx,%rdx
mov    %rdx,%rsi
shr    $0x3f,%rsi
sar    $0x25,%rdx
add    %esi,%edx
xorps  %xmm0,%xmm0
cvtsi2sd %edx,%xmm0
lea    0xda1(%rip),%rdx
movslq (%rdx,%rax,4),%rax
add    %rdx,%rax
jmp    *%rax
mov    %ecx,%eax
shr    $0x1f,%eax
add    %ecx,%eax
sar    %eax
xorps  %xmm1,%xmm1
cvtsi2sd %eax,%xmm1
subsd  %xmm0,%xmm1
movapd %xmm1,%xmm0
call   1030 <tan@plt>
mulsd  0x10(%rsp),%xmm0
movsd  0x8(%rsp),%xmm1
ucomisd %xmm0,%xmm1
jmp    1367 <isInside+0x247>
seta   %al
jmp    1195 <isInside+0x75>
cmp    $0x4b,%r14d
setge  %al
jmp    1195 <isInside+0x75>
cmp    $0x32,%r14d
setge  %al
jmp    1195 <isInside+0x75>
mov    %ecx,%eax
shr    $0x1f,%eax
add    %ecx,%eax
sar    %eax
xorps  %xmm1,%xmm1
cvtsi2sd %eax,%xmm1
subsd  %xmm1,%xmm0
call   1030 <tan@plt>
xorpd  0xd15(%rip),%xmm0
movapd 0x10(%rsp),%xmm1
mulsd  %xmm0,%xmm1
movsd  0x8(%rsp),%xmm0
ucomisd %xmm1,%xmm0
jmp    1367 <isInside+0x247>
lea    (%rcx,%rcx,2),%eax
mov    %eax,%ecx
shr    $0x1f,%ecx
add    %eax,%ecx
sar    %ecx
xorps  %xmm1,%xmm1
cvtsi2sd %ecx,%xmm1
subsd  %xmm0,%xmm1
movapd %xmm1,%xmm0
jmp    1356 <isInside+0x236>
movaps 0x10(%rsp),%xmm1
xorps  0xcd6(%rip),%xmm1
movaps %xmm1,0x10(%rsp)
lea    (%rcx,%rcx,2),%eax
mov    %eax,%ecx
shr    $0x1f,%ecx
add    %eax,%ecx
sar    %ecx
xorps  %xmm1,%xmm1
cvtsi2sd %ecx,%xmm1
subsd  %xmm1,%xmm0
call   1030 <tan@plt>
mulsd  0x10(%rsp),%xmm0
ucomisd 0x8(%rsp),%xmm0
setae  %al
jmp    1195 <isInside+0x75>

LLVM IR (-O0):
@M_PI = global i32 0
define i32 @isInside(i32 %0, i32 %1, i32 %2) {
%4 = alloca i32
%5 = alloca i32
%6 = alloca i32
%7 = alloca i32
%8 = alloca double
%9 = alloca double
%10 = alloca double
%11 = alloca i32
%12 = alloca i32
%13 = alloca double
%14 = alloca double
store i32 %0, i32* %5
store i32 %1, i32* %6
store i32 %2, i32* %7
store double 5.000000e+01, double* %8
%15 = load i32, i32* %6
%16 = sub nsw i32 %15, 50
%17 = sitofp i32 %16 to double
store double %17, double* %9
%18 = load i32, i32* %7
%19 = sub nsw i32 %18, 50
%20 = sitofp i32 %19 to double
store double %20, double* %10
%21 = load i32, i32* %5
%22 = icmp eq i32 %21, 0
br i1 %22, label %23, label %24
23: ; preds = %3
store i32 0, i32* %4
br label %192
24: ; preds = %3
%25 = load double, double* %9
%26 = fcmp oeq double %25, 0.000000e+00
br i1 %26, label %27, label %31
27: ; preds = %24
%28 = load double, double* %10
%29 = fcmp oeq double %28, 0.000000e+00
br i1 %29, label %30, label %31
30: ; preds = %27
store i32 1, i32* %4
br label %192
31: ; preds = %27, %24
%32 = load double, double* %9
%33 = load double, double* %9
%34 = load double, double* %10
%35 = load double, double* %10
%36 = fmul double %34, %35
%37 = call double @llvm.fmuladd.f64(double %32, double %33, double %36)
%38 = call double @sqrt(double %37)
%39 = fcmp ogt double %38, 5.000000e+01
br i1 %39, label %40, label %41
40: ; preds = %31
store i32 0, i32* %4
br label %192
41: ; preds = %31
%42 = load double, double* %9
%43 = fcmp oeq double %42, 0.000000e+00
br i1 %43, label %44, label %59
44: ; preds = %41
%45 = load double, double* %10
%46 = fcmp ogt double %45, 0.000000e+00
br i1 %46, label %47, label %51
47: ; preds = %44
%48 = load i32, i32* %5
%49 = icmp sgt i32 %48, 0
%50 = zext i1 %49 to i32
store i32 %50, i32* %4
br label %192
51: ; preds = %44
%52 = load double, double* %10
%53 = fcmp olt double %52, 0.000000e+00
br i1 %53, label %54, label %58
54: ; preds = %51
%55 = load i32, i32* %5
%56 = icmp sge i32 %55, 50
%57 = zext i1 %56 to i32
store i32 %57, i32* %4
br label %192
58: ; preds = %51
br label %59
59: ; preds = %58, %41
%60 = load double, double* %10
%61 = fcmp oeq double %60, 0.000000e+00
br i1 %61, label %62, label %77
62: ; preds = %59
%63 = load double, double* %9
%64 = fcmp ogt double %63, 0.000000e+00
br i1 %64, label %65, label %69
65: ; preds = %62
%66 = load i32, i32* %5
%67 = icmp sge i32 %66, 25
%68 = zext i1 %67 to i32
store i32 %68, i32* %4
br label %192
69: ; preds = %62
%70 = load double, double* %9
%71 = fcmp olt double %70, 0.000000e+00
br i1 %71, label %72, label %76
72: ; preds = %69
%73 = load i32, i32* %5
%74 = icmp sge i32 %73, 75
%75 = zext i1 %74 to i32
store i32 %75, i32* %4
br label %192
76: ; preds = %69
br label %77
77: ; preds = %76, %59
%78 = load double, double* %9
%79 = fcmp ogt double %78, 0.000000e+00
br i1 %79, label %80, label %84
80: ; preds = %77
%81 = load double, double* %10
%82 = fcmp ogt double %81, 0.000000e+00
br i1 %82, label %83, label %84
83: ; preds = %80
store i32 1, i32* %11
br label %101
84: ; preds = %80, %77
%85 = load double, double* %9
%86 = fcmp ogt double %85, 0.000000e+00
br i1 %86, label %87, label %91
87: ; preds = %84
%88 = load double, double* %10
%89 = fcmp olt double %88, 0.000000e+00
br i1 %89, label %90, label %91
90: ; preds = %87
store i32 2, i32* %11
br label %100
91: ; preds = %87, %84
%92 = load double, double* %9
%93 = fcmp olt double %92, 0.000000e+00
br i1 %93, label %94, label %98
94: ; preds = %91
%95 = load double, double* %10
%96 = fcmp olt double %95, 0.000000e+00
br i1 %96, label %97, label %98
97: ; preds = %94
store i32 3, i32* %11
br label %99
98: ; preds = %94, %91
store i32 4, i32* %11
br label %99
99: ; preds = %98, %97
br label %100
100: ; preds = %99, %90
br label %101
101: ; preds = %100, %83
%102 = load i32, i32* %5
%103 = icmp sle i32 %102, 25
br i1 %103, label %104, label %105
104: ; preds = %101
store i32 1, i32* %12
br label %116
105: ; preds = %101
%106 = load i32, i32* %5
%107 = icmp sle i32 %106, 50
br i1 %107, label %108, label %109
108: ; preds = %105
store i32 2, i32* %12
br label %115
109: ; preds = %105
%110 = load i32, i32* %5
%111 = icmp sle i32 %110, 75
br i1 %111, label %112, label %113
112: ; preds = %109
store i32 3, i32* %12
br label %114
113: ; preds = %109
store i32 4, i32* %12
br label %114
114: ; preds = %113, %112
br label %115
115: ; preds = %114, %108
br label %116
116: ; preds = %115, %104
%117 = load i32, i32* %12
%118 = load i32, i32* %11
%119 = icmp ne i32 %117, %118
br i1 %119, label %120, label %125
120: ; preds = %116
%121 = load i32, i32* %12
%122 = load i32, i32* %11
%123 = icmp sgt i32 %121, %122
%124 = zext i1 %123 to i32
store i32 %124, i32* %4
br label %192
125: ; preds = %116
%126 = load i32, i32* @M_PI
%127 = mul nsw i32 2, %126
%128 = load i32, i32* %5
%129 = mul nsw i32 %127, %128
%130 = sdiv i32 %129, 100
%131 = sitofp i32 %130 to double
store double %131, double* %13
%132 = load i32, i32* %11
switch i32 %132, label %191 [
i32 1, label %133
i32 2, label %146
i32 3, label %160
i32 4, label %176
]
133: ; preds = %125
%134 = load double, double* %9
%135 = load i32, i32* @M_PI
%136 = sdiv i32 %135, 2
%137 = sitofp i32 %136 to double
%138 = load double, double* %13
%139 = fsub double %137, %138
%140 = call double @tan(double %139)
%141 = fmul double %134, %140
store double %141, double* %14
%142 = load double, double* %10
%143 = load double, double* %14
%144 = fcmp oge double %142, %143
%145 = zext i1 %144 to i32
store i32 %145, i32* %4
br label %192
146: ; preds = %125
%147 = load double, double* %9
%148 = load double, double* %13
%149 = load i32, i32* @M_PI
%150 = sdiv i32 %149, 2
%151 = sitofp i32 %150 to double
%152 = fsub double %148, %151
%153 = call double @tan(double %152)
%154 = fmul double %147, %153
store double %154, double* %14
%155 = load double, double* %10
%156 = load double, double* %14
%157 = fneg double %156
%158 = fcmp oge double %155, %157
%159 = zext i1 %158 to i32
store i32 %159, i32* %4
br label %192
160: ; preds = %125
%161 = load double, double* %9
%162 = fneg double %161
%163 = load i32, i32* @M_PI
%164 = mul nsw i32 %163, 3
%165 = sdiv i32 %164, 2
%166 = sitofp i32 %165 to double
%167 = load double, double* %13
%168 = fsub double %166, %167
%169 = call double @tan(double %168)
%170 = fmul double %162, %169
store double %170, double* %14
%171 = load double, double* %10
%172 = load double, double* %14
%173 = fneg double %172
%174 = fcmp ole double %171, %173
%175 = zext i1 %174 to i32
store i32 %175, i32* %4
br label %192
176: ; preds = %125
%177 = load double, double* %9
%178 = fneg double %177
%179 = load double, double* %13
%180 = load i32, i32* @M_PI
%181 = mul nsw i32 %180, 3
%182 = sdiv i32 %181, 2
%183 = sitofp i32 %182 to double
%184 = fsub double %179, %183
%185 = call double @tan(double %184)
%186 = fmul double %178, %185
store double %186, double* %14
%187 = load double, double* %10
%188 = load double, double* %14
%189 = fcmp ole double %187, %188
%190 = zext i1 %189 to i32
store i32 %190, i32* %4
br label %192
191: ; preds = %125
store i32 0, i32* %4
br label %192
192: ; preds = %191, %176, %160, %146, %133, %120, %72, %65, %54, %47, %40, %30, %23
%193 = load i32, i32* %4
ret i32 %193
}

LLVM IR (-O2):
@M_PI = global i32 0
define i32 @isInside(i32 %0, i32 %1, i32 %2) {
%4 = add nsw i32 %1, -50
%5 = sitofp i32 %4 to double
%6 = add nsw i32 %2, -50
%7 = sitofp i32 %6 to double
%8 = icmp eq i32 %0, 0
br i1 %8, label %96, label %9
9: ; preds = %3
%10 = icmp eq i32 %4, 0
%11 = icmp eq i32 %6, 0
%12 = select i1 %10, i1 %11, i1 false
br i1 %12, label %96, label %13
13: ; preds = %9
%14 = fmul double %7, %7
%15 = tail call double @llvm.fmuladd.f64(double %5, double %5, double %14)
%16 = tail call double @sqrt(double %15)
%17 = fcmp ogt double %16, 5.000000e+01
br i1 %17, label %96, label %18
18: ; preds = %13
br i1 %10, label %19, label %27
19: ; preds = %18
%20 = icmp sgt i32 %2, 50
br i1 %20, label %21, label %23
21: ; preds = %19
%22 = icmp sgt i32 %0, 0
br label %96
23: ; preds = %19
%24 = icmp eq i32 %2, 50
br i1 %24, label %40, label %25
25: ; preds = %23
%26 = icmp sgt i32 %0, 49
br label %96
27: ; preds = %18
%28 = icmp sgt i32 %1, 50
br i1 %11, label %29, label %34
29: ; preds = %27
br i1 %28, label %30, label %32
30: ; preds = %29
%31 = icmp sgt i32 %0, 24
br label %96
32: ; preds = %29
%33 = icmp sgt i32 %0, 74
br label %96
34: ; preds = %27
%35 = icmp sgt i32 %2, 50
%36 = and i1 %28, %35
br i1 %36, label %45, label %37
37: ; preds = %34
%38 = icmp slt i32 %2, 50
%39 = and i1 %28, %38
br i1 %39, label %45, label %40
40: ; preds = %23, %37
%41 = phi i1 [ %38, %37 ], [ false, %23 ]
%42 = icmp slt i32 %1, 50
%43 = and i1 %42, %41
%44 = select i1 %43, i32 3, i32 4
br label %45
45: ; preds = %40, %37, %34
%46 = phi i32 [ 1, %34 ], [ 2, %37 ], [ %44, %40 ]
%47 = icmp slt i32 %0, 26
br i1 %47, label %53, label %48
48: ; preds = %45
%49 = icmp ult i32 %0, 51
br i1 %49, label %53, label %50
50: ; preds = %48
%51 = icmp ult i32 %0, 76
%52 = select i1 %51, i32 3, i32 4
br label %53
53: ; preds = %50, %48, %45
%54 = phi i32 [ 1, %45 ], [ 2, %48 ], [ %52, %50 ]
%55 = icmp eq i32 %54, %46
br i1 %55, label %58, label %56
56: ; preds = %53
%57 = icmp ugt i32 %54, %46
br label %96
58: ; preds = %53
%59 = load i32, i32* @M_PI
%60 = shl i32 %0, 1
%61 = mul i32 %60, %59
%62 = sdiv i32 %61, 100
%63 = sitofp i32 %62 to double
switch i32 %46, label %96 [
i32 1, label %64
i32 2, label %71
i32 3, label %79
i32 4, label %87
]
64: ; preds = %58
%65 = sdiv i32 %59, 2
%66 = sitofp i32 %65 to double
%67 = fsub double %66, %63
%68 = tail call double @tan(double %67)
%69 = fmul double %68, %5
%70 = fcmp ole double %69, %7
br label %96
71: ; preds = %58
%72 = sdiv i32 %59, 2
%73 = sitofp i32 %72 to double
%74 = fsub double %63, %73
%75 = tail call double @tan(double %74)
%76 = fneg double %75
%77 = fmul double %5, %76
%78 = fcmp ole double %77, %7
br label %96
79: ; preds = %58
%80 = mul nsw i32 %59, 3
%81 = sdiv i32 %80, 2
%82 = sitofp i32 %81 to double
%83 = fsub double %82, %63
%84 = tail call double @tan(double %83)
%85 = fmul double %84, %5
%86 = fcmp oge double %85, %7
br label %96
87: ; preds = %58
%88 = fneg double %5
%89 = mul nsw i32 %59, 3
%90 = sdiv i32 %89, 2
%91 = sitofp i32 %90 to double
%92 = fsub double %63, %91
%93 = tail call double @tan(double %92)
%94 = fmul double %93, %88
%95 = fcmp oge double %94, %7
br label %96
96: ; preds = %56, %58, %87, %79, %71, %64, %13, %9, %3, %32, %30, %25, %21
%97 = phi i1 [ %22, %21 ], [ %26, %25 ], [ %31, %30 ], [ %33, %32 ], [ false, %3 ], [ true, %9 ], [ false, %13 ], [ %57, %56 ], [ %95, %87 ], [ %86, %79 ], [ %78, %71 ], [ %70, %64 ], [ false, %58 ]
%98 = zext i1 %97 to i32
ret i32 %98
}