#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 */
long double fabsl(long double);
long double sqrtl(long double);
__attribute__((const)) bool
mandelbrot_in_biggest_mu_atom(long double x, long double y, long double y2) {
  if (x < -1.25L || x > -0.75L || y > 0.25L || y < -0.25L)
    return false;
  long double lx = x + 1;
  long double modulus = sqrtl(lx * lx + y2);
  return fabsl(modulus) < 0.25L;
}


x86 assembly (clang, -O0):
<mandelbrot_in_biggest_mu_atom>:
push   %rbp
mov    %rsp,%rbp
sub    $0x70,%rsp
fldt   0x30(%rbp)
fldt   0x20(%rbp)
fldt   0x10(%rbp)
fstpt  -0x20(%rbp)
fstpt  -0x30(%rbp)
fstpt  -0x40(%rbp)
fldt   -0x20(%rbp)
flds   0xecd(%rip)
fucomip %st(1),%st
fstp   %st(0)
ja     118e <mandelbrot_in_biggest_mu_atom+0x7e>
jmp    1142 <mandelbrot_in_biggest_mu_atom+0x32>
fldt   -0x20(%rbp)
flds   0xeb9(%rip)
fxch   %st(1)
fucomip %st(1),%st
fstp   %st(0)
ja     118e <mandelbrot_in_biggest_mu_atom+0x7e>
jmp    115c <mandelbrot_in_biggest_mu_atom+0x4c>
fldt   -0x30(%rbp)
flds   0xea3(%rip)
fxch   %st(1)
fucomip %st(1),%st
fstp   %st(0)
ja     118e <mandelbrot_in_biggest_mu_atom+0x7e>
jmp    1176 <mandelbrot_in_biggest_mu_atom+0x66>
fldt   -0x30(%rbp)
flds   0xe8d(%rip)
fucomip %st(1),%st
fstp   %st(0)
jbe    119a <mandelbrot_in_biggest_mu_atom+0x8a>
jmp    118e <mandelbrot_in_biggest_mu_atom+0x7e>
movl   $0x0,-0x4(%rbp)
jmp    11d7 <mandelbrot_in_biggest_mu_atom+0xc7>
fldt   -0x20(%rbp)
fld1
faddp  %st,%st(1)
fstpt  -0x50(%rbp)
fldt   -0x50(%rbp)
fldt   -0x40(%rbp)
fxch   %st(1)
fmul   %st,%st(0)
faddp  %st,%st(1)
mov    %rsp,%rax
fstpt  (%rax)
call   1030 <sqrtl@plt>
fstpt  -0x60(%rbp)
fldt   -0x60(%rbp)
fabs
flds   0xe40(%rip)
fucomip %st(1),%st
fstp   %st(0)
seta   %al
and    $0x1,%al
movzbl %al,%eax
mov    %eax,-0x4(%rbp)
mov    -0x4(%rbp),%eax
add    $0x70,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<mandelbrot_in_biggest_mu_atom>:
sub    $0x28,%rsp
fldt   0x50(%rsp)
fldt   0x30(%rsp)
fldt   0x40(%rsp)
flds   0xeda(%rip)
xor    %eax,%eax
fxch   %st(1)
fucomi %st(1),%st
seta   %al
neg    %eax
movd   %eax,%xmm0
flds   0xec9(%rip)
xor    %eax,%eax
fxch   %st(3)
fucomi %st(3),%st
fstp   %st(3)
seta   %al
neg    %eax
movd   %eax,%xmm1
punpckldq %xmm0,%xmm1
flds   0xeb2(%rip)
xor    %eax,%eax
fucomip %st(3),%st
seta   %al
neg    %eax
flds   0xea7(%rip)
xor    %ecx,%ecx
fucomip %st(1),%st
fstp   %st(0)
seta   %cl
movd   %eax,%xmm0
neg    %ecx
movd   %ecx,%xmm2
punpckldq %xmm0,%xmm2
punpcklqdq %xmm1,%xmm2
movmskps %xmm2,%ecx
xor    %eax,%eax
test   %ecx,%ecx
jne    11b6 <mandelbrot_in_biggest_mu_atom+0xa6>
fld1
faddp  %st,%st(2)
fxch   %st(1)
fmul   %st,%st(0)
faddp  %st,%st(2)
fxch   %st(1)
fstpt  (%rsp)
fstpt  0x1c(%rsp)
call   1030 <sqrtl@plt>
fabs
xor    %eax,%eax
fldt   0x1c(%rsp)
fucomip %st(1),%st
fstp   %st(0)
seta   %al
fldz
fldz
fldz
fstp   %st(2)
fstp   %st(0)
fstp   %st(0)
add    $0x28,%rsp
ret

LLVM IR (-O0):
define i32 @mandelbrot_in_biggest_mu_atom(x86_fp80 %0, x86_fp80 %1, x86_fp80 %2) {
%4 = alloca i32
%5 = alloca x86_fp80
%6 = alloca x86_fp80
%7 = alloca x86_fp80
%8 = alloca x86_fp80
%9 = alloca x86_fp80
store x86_fp80 %0, x86_fp80* %5
store x86_fp80 %1, x86_fp80* %6
store x86_fp80 %2, x86_fp80* %7
%10 = load x86_fp80, x86_fp80* %5
%11 = fcmp olt x86_fp80 %10, 0xKBFFFA000000000000000
br i1 %11, label %21, label %12
12: ; preds = %3
%13 = load x86_fp80, x86_fp80* %5
%14 = fcmp ogt x86_fp80 %13, 0xKBFFEC000000000000000
br i1 %14, label %21, label %15
15: ; preds = %12
%16 = load x86_fp80, x86_fp80* %6
%17 = fcmp ogt x86_fp80 %16, 0xK3FFD8000000000000000
br i1 %17, label %21, label %18
18: ; preds = %15
%19 = load x86_fp80, x86_fp80* %6
%20 = fcmp olt x86_fp80 %19, 0xKBFFD8000000000000000
br i1 %20, label %21, label %22
21: ; preds = %18, %15, %12, %3
store i32 0, i32* %4
br label %34
22: ; preds = %18
%23 = load x86_fp80, x86_fp80* %5
%24 = fadd x86_fp80 %23, 0xK3FFF8000000000000000
store x86_fp80 %24, x86_fp80* %8
%25 = load x86_fp80, x86_fp80* %8
%26 = load x86_fp80, x86_fp80* %8
%27 = load x86_fp80, x86_fp80* %7
%28 = call x86_fp80 @llvm.fmuladd.f80(x86_fp80 %25, x86_fp80 %26, x86_fp80 %27)
%29 = call x86_fp80 @sqrtl(x86_fp80 %28)
store x86_fp80 %29, x86_fp80* %9
%30 = load x86_fp80, x86_fp80* %9
%31 = call x86_fp80 @llvm.fabs.f80(x86_fp80 %30)
%32 = fcmp olt x86_fp80 %31, 0xK3FFD8000000000000000
%33 = zext i1 %32 to i32
store i32 %33, i32* %4
br label %34
34: ; preds = %22, %21
%35 = load i32, i32* %4
ret i32 %35
}

LLVM IR (-O2):
define i32 @mandelbrot_in_biggest_mu_atom(x86_fp80 %0, x86_fp80 %1, x86_fp80 %2) {
%4 = insertelement <4 x x86_fp80> <x86_fp80 poison, x86_fp80 poison, x86_fp80 0xKBFFEC000000000000000, x86_fp80 0xK3FFD8000000000000000>, x86_fp80 %1, i64 0
%5 = insertelement <4 x x86_fp80> %4, x86_fp80 %0, i64 1
%6 = insertelement <4 x x86_fp80> <x86_fp80 0xKBFFD8000000000000000, x86_fp80 0xKBFFFA000000000000000, x86_fp80 poison, x86_fp80 poison>, x86_fp80 %0, i64 2
%7 = insertelement <4 x x86_fp80> %6, x86_fp80 %1, i64 3
%8 = fcmp olt <4 x x86_fp80> %5, %7
%9 = bitcast <4 x i1> %8 to i4
%10 = icmp eq i4 %9, 0
br i1 %10, label %11, label %18
11: ; preds = %3
%12 = fadd x86_fp80 %0, 0xK3FFF8000000000000000
%13 = tail call x86_fp80 @llvm.fmuladd.f80(x86_fp80 %12, x86_fp80 %12, x86_fp80 %2)
%14 = tail call x86_fp80 @sqrtl(x86_fp80 %13)
%15 = tail call x86_fp80 @llvm.fabs.f80(x86_fp80 %14)
%16 = fcmp olt x86_fp80 %15, 0xK3FFD8000000000000000
%17 = zext i1 %16 to i32
br label %18
18: ; preds = %3, %11
%19 = phi i32 [ %17, %11 ], [ 0, %3 ]
ret i32 %19
}