#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 asin(double);
double cos(double);
double ellipse2tr(double, double, double, double, double, double, double,
                  double);
double fabs(double);
double sin(double);
double sqrt(double);
int istanpt(double x, double y, double A1, double B1, double AA, double BB,
            double CC, double DD, double EE, double FF) {
  double x1, y1, x2, y2, theta, test1, test2, branch, eps_radian;
  if (fabs(x) > A1)
    x = (x < 0) ? -A1 : A1;
  if (y < 0.0)
    theta = (2.0 * (2.0 * asin(1.0))) - acos(x / A1);
  else
    theta = acos(x / A1);
  branch = sqrt(x * x + y * y);
  if (branch < 100.0 * +1.0E-06)
    eps_radian = 2.0 * +1.0E-06;
  else
    eps_radian = asin(2.0 * +1.0E-06 / branch);
  x1 = A1 * cos(theta + eps_radian);
  y1 = B1 * sin(theta + eps_radian);
  x2 = A1 * cos(theta - eps_radian);
  y2 = B1 * sin(theta - eps_radian);
  test1 = ellipse2tr(x1, y1, AA, BB, CC, DD, EE, FF);
  test2 = ellipse2tr(x2, y2, AA, BB, CC, DD, EE, FF);
  if ((test1 * test2) > 0.0)
    return 114;
  else
    return 113;
}


x86 assembly (clang, -O0):
<istanpt>:
push   %rbp
mov    %rsp,%rbp
sub    $0xc0,%rsp
movsd  0x18(%rbp),%xmm8
movsd  0x10(%rbp),%xmm8
movsd  %xmm0,-0x10(%rbp)
movsd  %xmm1,-0x18(%rbp)
movsd  %xmm2,-0x20(%rbp)
movsd  %xmm3,-0x28(%rbp)
movsd  %xmm4,-0x30(%rbp)
movsd  %xmm5,-0x38(%rbp)
movsd  %xmm6,-0x40(%rbp)
movsd  %xmm7,-0x48(%rbp)
movsd  -0x10(%rbp),%xmm0
movaps 0xe55(%rip),%xmm1
pand   %xmm1,%xmm0
ucomisd -0x20(%rbp),%xmm0
jbe    120b <istanpt+0xab>
xorps  %xmm0,%xmm0
ucomisd -0x10(%rbp),%xmm0
jbe    11f1 <istanpt+0x91>
movsd  -0x20(%rbp),%xmm0
movq   %xmm0,%rax
movabs $0x8000000000000000,%rcx
xor    %rcx,%rax
movq   %rax,%xmm0
movsd  %xmm0,-0x98(%rbp)
ff
jmp    11fe <istanpt+0x9e>
movsd  -0x20(%rbp),%xmm0
movsd  %xmm0,-0x98(%rbp)
ff
movsd  -0x98(%rbp),%xmm0
ff
movsd  %xmm0,-0x10(%rbp)
xorps  %xmm0,%xmm0
ucomisd -0x18(%rbp),%xmm0
jbe    1280 <istanpt+0x120>
movsd  0xdf7(%rip),%xmm0
call   1050 <asin@plt>
movaps %xmm0,%xmm1
movsd  0xddf(%rip),%xmm0
mulsd  %xmm1,%xmm0
movsd  %xmm0,-0xa0(%rbp)
ff
movsd  -0x10(%rbp),%xmm0
divsd  -0x20(%rbp),%xmm0
call   1030 <acos@plt>
movaps %xmm0,%xmm1
movsd  -0xa0(%rbp),%xmm0
ff
movq   %xmm1,%rax
movabs $0x8000000000000000,%rcx
xor    %rcx,%rax
movq   %rax,%xmm1
addsd  %xmm0,%xmm0
addsd  %xmm1,%xmm0
movsd  %xmm0,-0x70(%rbp)
jmp    1294 <istanpt+0x134>
movsd  -0x10(%rbp),%xmm0
divsd  -0x20(%rbp),%xmm0
call   1030 <acos@plt>
movsd  %xmm0,-0x70(%rbp)
movsd  -0x10(%rbp),%xmm0
movsd  -0x10(%rbp),%xmm2
movsd  -0x18(%rbp),%xmm1
mulsd  -0x18(%rbp),%xmm1
mulsd  %xmm2,%xmm0
addsd  %xmm1,%xmm0
call   1080 <sqrt@plt>
movsd  %xmm0,-0x88(%rbp)
ff
movsd  0xd5b(%rip),%xmm0
ucomisd -0x88(%rbp),%xmm0
ff
jbe    12e8 <istanpt+0x188>
movsd  0xd4d(%rip),%xmm0
movsd  %xmm0,-0x90(%rbp)
ff
jmp    1305 <istanpt+0x1a5>
movsd  0xd38(%rip),%xmm0
divsd  -0x88(%rbp),%xmm0
ff
call   1050 <asin@plt>
movsd  %xmm0,-0x90(%rbp)
ff
movsd  -0x20(%rbp),%xmm0
movsd  %xmm0,-0xc0(%rbp)
ff
movsd  -0x70(%rbp),%xmm0
addsd  -0x90(%rbp),%xmm0
ff
call   1070 <cos@plt>
movaps %xmm0,%xmm1
movsd  -0xc0(%rbp),%xmm0
ff
mulsd  %xmm1,%xmm0
movsd  %xmm0,-0x50(%rbp)
movsd  -0x28(%rbp),%xmm0
movsd  %xmm0,-0xb8(%rbp)
ff
movsd  -0x70(%rbp),%xmm0
addsd  -0x90(%rbp),%xmm0
ff
call   1040 <sin@plt>
movaps %xmm0,%xmm1
movsd  -0xb8(%rbp),%xmm0
ff
mulsd  %xmm1,%xmm0
movsd  %xmm0,-0x58(%rbp)
movsd  -0x20(%rbp),%xmm0
movsd  %xmm0,-0xb0(%rbp)
ff
movsd  -0x70(%rbp),%xmm0
subsd  -0x90(%rbp),%xmm0
ff
call   1070 <cos@plt>
movaps %xmm0,%xmm1
movsd  -0xb0(%rbp),%xmm0
ff
mulsd  %xmm1,%xmm0
movsd  %xmm0,-0x60(%rbp)
movsd  -0x28(%rbp),%xmm0
movsd  %xmm0,-0xa8(%rbp)
ff
movsd  -0x70(%rbp),%xmm0
subsd  -0x90(%rbp),%xmm0
ff
call   1040 <sin@plt>
movaps %xmm0,%xmm1
movsd  -0xa8(%rbp),%xmm0
ff
mulsd  %xmm1,%xmm0
movsd  %xmm0,-0x68(%rbp)
movsd  -0x50(%rbp),%xmm0
movsd  -0x58(%rbp),%xmm1
movsd  -0x30(%rbp),%xmm2
movsd  -0x38(%rbp),%xmm3
movsd  -0x40(%rbp),%xmm4
movsd  -0x48(%rbp),%xmm5
movsd  0x10(%rbp),%xmm6
movsd  0x18(%rbp),%xmm7
call   1060 <ellipse2tr@plt>
movsd  %xmm0,-0x78(%rbp)
movsd  -0x60(%rbp),%xmm0
movsd  -0x68(%rbp),%xmm1
movsd  -0x30(%rbp),%xmm2
movsd  -0x38(%rbp),%xmm3
movsd  -0x40(%rbp),%xmm4
movsd  -0x48(%rbp),%xmm5
movsd  0x10(%rbp),%xmm6
movsd  0x18(%rbp),%xmm7
call   1060 <ellipse2tr@plt>
movsd  %xmm0,-0x80(%rbp)
movsd  -0x78(%rbp),%xmm0
mulsd  -0x80(%rbp),%xmm0
xorps  %xmm1,%xmm1
ucomisd %xmm1,%xmm0
jbe    1458 <istanpt+0x2f8>
movl   $0x72,-0x4(%rbp)
jmp    145f <istanpt+0x2ff>
movl   $0x71,-0x4(%rbp)
mov    -0x4(%rbp),%eax
add    $0xc0,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<istanpt>:
sub    $0x68,%rsp
movsd  %xmm7,0x48(%rsp)
movsd  %xmm6,0x40(%rsp)
movsd  %xmm5,0x38(%rsp)
movsd  %xmm4,0x30(%rsp)
movsd  %xmm3,(%rsp)
movsd  %xmm1,0x8(%rsp)
movapd 0xe71(%rip),%xmm1
andpd  %xmm0,%xmm1
movapd 0xe75(%rip),%xmm4
xorpd  %xmm2,%xmm4
xorpd  %xmm5,%xmm5
movapd %xmm0,%xmm3
cmpltsd %xmm5,%xmm3
andpd  %xmm3,%xmm4
andnpd %xmm2,%xmm3
orpd   %xmm4,%xmm3
movapd %xmm2,%xmm4
cmpltsd %xmm1,%xmm4
andpd  %xmm4,%xmm3
andnpd %xmm0,%xmm4
orpd   %xmm3,%xmm4
movapd %xmm4,0x20(%rsp)
movapd %xmm4,%xmm0
movapd %xmm2,0x50(%rsp)
divsd  %xmm2,%xmm0
call   1030 <acos@plt>
movsd  0xe32(%rip),%xmm1
subsd  %xmm0,%xmm1
movsd  0x8(%rsp),%xmm4
movapd %xmm4,%xmm3
xorpd  %xmm5,%xmm5
cmpltsd %xmm5,%xmm3
movapd %xmm3,%xmm2
andnpd %xmm0,%xmm2
movapd 0x20(%rsp),%xmm0
andpd  %xmm1,%xmm3
orpd   %xmm2,%xmm3
movapd %xmm3,0x10(%rsp)
mulsd  %xmm4,%xmm4
mulsd  %xmm0,%xmm0
addsd  %xmm4,%xmm0
ucomisd %xmm5,%xmm0
jb     1239 <istanpt+0xd9>
sqrtsd %xmm0,%xmm0
jmp    123e <istanpt+0xde>
call   1080 <sqrt@plt>
movsd  0xdea(%rip),%xmm1
ucomisd %xmm0,%xmm1
jbe    1256 <istanpt+0xf6>
movsd  0xdd4(%rip),%xmm0
jmp    126b <istanpt+0x10b>
movsd  0xdca(%rip),%xmm1
divsd  %xmm0,%xmm1
movapd %xmm1,%xmm0
call   1050 <asin@plt>
movsd  %xmm0,0x60(%rsp)
movapd 0x10(%rsp),%xmm1
addsd  %xmm0,%xmm1
movsd  %xmm1,0x20(%rsp)
movapd %xmm1,%xmm0
call   1070 <cos@plt>
mulsd  0x50(%rsp),%xmm0
movsd  %xmm0,0x8(%rsp)
movsd  0x20(%rsp),%xmm0
call   1040 <sin@plt>
mulsd  (%rsp),%xmm0
movsd  %xmm0,0x20(%rsp)
movapd 0x10(%rsp),%xmm0
subsd  0x60(%rsp),%xmm0
movapd %xmm0,0x10(%rsp)
call   1070 <cos@plt>
mulsd  0x50(%rsp),%xmm0
movsd  %xmm0,0x50(%rsp)
movapd 0x10(%rsp),%xmm0
call   1040 <sin@plt>
movsd  (%rsp),%xmm1
mulsd  %xmm0,%xmm1
movsd  %xmm1,(%rsp)
movsd  0x8(%rsp),%xmm0
movsd  0x20(%rsp),%xmm1
movsd  0x30(%rsp),%xmm2
movsd  0x38(%rsp),%xmm3
movsd  0x40(%rsp),%xmm4
movsd  0x48(%rsp),%xmm5
movsd  0x70(%rsp),%xmm6
movsd  0x78(%rsp),%xmm7
call   1060 <ellipse2tr@plt>
movsd  %xmm0,0x10(%rsp)
movsd  0x50(%rsp),%xmm0
movsd  (%rsp),%xmm1
movsd  0x30(%rsp),%xmm2
movsd  0x38(%rsp),%xmm3
movsd  0x40(%rsp),%xmm4
movsd  0x48(%rsp),%xmm5
movsd  0x70(%rsp),%xmm6
movsd  0x78(%rsp),%xmm7
call   1060 <ellipse2tr@plt>
mulsd  0x10(%rsp),%xmm0
xorpd  %xmm1,%xmm1
xor    %eax,%eax
ucomisd %xmm1,%xmm0
seta   %al
add    $0x71,%eax
add    $0x68,%rsp
ret

LLVM IR (-O0):
define i32 @istanpt(double %0, double %1, double %2, double %3, double %4, double %5, double %6, double %7, double %8, double %9) {
%11 = alloca i32
%12 = alloca double
%13 = alloca double
%14 = alloca double
%15 = alloca double
%16 = alloca double
%17 = alloca double
%18 = alloca double
%19 = alloca double
%20 = alloca double
%21 = alloca double
%22 = alloca double
%23 = alloca double
%24 = alloca double
%25 = alloca double
%26 = alloca double
%27 = alloca double
%28 = alloca double
%29 = alloca double
%30 = alloca double
store double %0, double* %12
store double %1, double* %13
store double %2, double* %14
store double %3, double* %15
store double %4, double* %16
store double %5, double* %17
store double %6, double* %18
store double %7, double* %19
store double %8, double* %20
store double %9, double* %21
%31 = load double, double* %12
%32 = call double @llvm.fabs.f64(double %31)
%33 = load double, double* %14
%34 = fcmp ogt double %32, %33
br i1 %34, label %35, label %45
35: ; preds = %10
%36 = load double, double* %12
%37 = fcmp olt double %36, 0.000000e+00
br i1 %37, label %38, label %41
38: ; preds = %35
%39 = load double, double* %14
%40 = fneg double %39
br label %43
41: ; preds = %35
%42 = load double, double* %14
br label %43
43: ; preds = %41, %38
%44 = phi double [ %40, %38 ], [ %42, %41 ]
store double %44, double* %12
br label %45
45: ; preds = %43, %10
%46 = load double, double* %13
%47 = fcmp olt double %46, 0.000000e+00
br i1 %47, label %48, label %57
48: ; preds = %45
%49 = call double @asin(double 1.000000e+00)
%50 = fmul double 2.000000e+00, %49
%51 = load double, double* %12
%52 = load double, double* %14
%53 = fdiv double %51, %52
%54 = call double @acos(double %53)
%55 = fneg double %54
%56 = call double @llvm.fmuladd.f64(double 2.000000e+00, double %50, double %55)
store double %56, double* %26
br label %62
57: ; preds = %45
%58 = load double, double* %12
%59 = load double, double* %14
%60 = fdiv double %58, %59
%61 = call double @acos(double %60)
store double %61, double* %26
br label %62
62: ; preds = %57, %48
%63 = load double, double* %12
%64 = load double, double* %12
%65 = load double, double* %13
%66 = load double, double* %13
%67 = fmul double %65, %66
%68 = call double @llvm.fmuladd.f64(double %63, double %64, double %67)
%69 = call double @sqrt(double %68)
store double %69, double* %29
%70 = load double, double* %29
%71 = fcmp olt double %70, 0x3F1A36E2EB1C432C
br i1 %71, label %72, label %73
72: ; preds = %62
store double 2.000000e-06, double* %30
br label %77
73: ; preds = %62
%74 = load double, double* %29
%75 = fdiv double 2.000000e-06, %74
%76 = call double @asin(double %75)
store double %76, double* %30
br label %77
77: ; preds = %73, %72
%78 = load double, double* %14
%79 = load double, double* %26
%80 = load double, double* %30
%81 = fadd double %79, %80
%82 = call double @cos(double %81)
%83 = fmul double %78, %82
store double %83, double* %22
%84 = load double, double* %15
%85 = load double, double* %26
%86 = load double, double* %30
%87 = fadd double %85, %86
%88 = call double @sin(double %87)
%89 = fmul double %84, %88
store double %89, double* %23
%90 = load double, double* %14
%91 = load double, double* %26
%92 = load double, double* %30
%93 = fsub double %91, %92
%94 = call double @cos(double %93)
%95 = fmul double %90, %94
store double %95, double* %24
%96 = load double, double* %15
%97 = load double, double* %26
%98 = load double, double* %30
%99 = fsub double %97, %98
%100 = call double @sin(double %99)
%101 = fmul double %96, %100
store double %101, double* %25
%102 = load double, double* %22
%103 = load double, double* %23
%104 = load double, double* %16
%105 = load double, double* %17
%106 = load double, double* %18
%107 = load double, double* %19
%108 = load double, double* %20
%109 = load double, double* %21
%110 = call double @ellipse2tr(double %102, double %103, double %104, double %105, double %106, double %107, double %108, double %109)
store double %110, double* %27
%111 = load double, double* %24
%112 = load double, double* %25
%113 = load double, double* %16
%114 = load double, double* %17
%115 = load double, double* %18
%116 = load double, double* %19
%117 = load double, double* %20
%118 = load double, double* %21
%119 = call double @ellipse2tr(double %111, double %112, double %113, double %114, double %115, double %116, double %117, double %118)
store double %119, double* %28
%120 = load double, double* %27
%121 = load double, double* %28
%122 = fmul double %120, %121
%123 = fcmp ogt double %122, 0.000000e+00
br i1 %123, label %124, label %125
124: ; preds = %77
store i32 114, i32* %11
br label %126
125: ; preds = %77
store i32 113, i32* %11
br label %126
126: ; preds = %125, %124
%127 = load i32, i32* %11
ret i32 %127
}

LLVM IR (-O2):
define i32 @istanpt(double %0, double %1, double %2, double %3, double %4, double %5, double %6, double %7, double %8, double %9) {
%11 = tail call double @llvm.fabs.f64(double %0)
%12 = fcmp ogt double %11, %2
%13 = fcmp olt double %0, 0.000000e+00
%14 = fneg double %2
%15 = select i1 %13, double %14, double %2
%16 = select i1 %12, double %15, double %0
%17 = fcmp olt double %1, 0.000000e+00
%18 = fdiv double %16, %2
%19 = tail call double @acos(double %18)
%20 = fsub double 0x401921FB54442D18, %19
%21 = select i1 %17, double %20, double %19
%22 = fmul double %1, %1
%23 = tail call double @llvm.fmuladd.f64(double %16, double %16, double %22)
%24 = tail call double @sqrt(double %23)
%25 = fcmp olt double %24, 0x3F1A36E2EB1C432C
br i1 %25, label %29, label %26
26: ; preds = %10
%27 = fdiv double 2.000000e-06, %24
%28 = tail call double @asin(double %27)
br label %29
29: ; preds = %10, %26
%30 = phi double [ %28, %26 ], [ 2.000000e-06, %10 ]
%31 = fadd double %21, %30
%32 = tail call double @cos(double %31)
%33 = fmul double %32, %2
%34 = tail call double @sin(double %31)
%35 = fmul double %34, %3
%36 = fsub double %21, %30
%37 = tail call double @cos(double %36)
%38 = fmul double %37, %2
%39 = tail call double @sin(double %36)
%40 = fmul double %39, %3
%41 = tail call double @ellipse2tr(double %33, double %35, double %4, double %5, double %6, double %7, double %8, double %9)
%42 = tail call double @ellipse2tr(double %38, double %40, double %4, double %5, double %6, double %7, double %8, double %9)
%43 = fmul double %41, %42
%44 = fcmp ogt double %43, 0.000000e+00
%45 = select i1 %44, i32 114, i32 113
ret i32 %45
}