#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 /*<<< orphan*/ printf(char *);
int /*<<< orphan*/ scanf(char *, double *, double *);
int main() {
  double x, y;
  scanf("%lf %lf", &x, &y);
  while (x != 0 || y != 0) {
    if (x < 0) {
      if (y <= (1 / (float)3) * x && y >= 3 * x)
        printf("INTERIOR\n");
      else
        printf("EXTERIOR\n");
    } else {
      if (y <= 3 * x && y >= (1 / (float)3) * x)
        printf("INTERIOR\n");
      else
        printf("EXTERIOR\n");
    }
    scanf("%lf %lf", &x, &y);
  }
  return 0;
}


x86 assembly (clang, -O0):
<main>:
push   %rbp
mov    %rsp,%rbp
sub    $0x20,%rsp
movl   $0x0,-0x4(%rbp)
lea    0xeda(%rip),%rdi
lea    -0x10(%rbp),%rsi
lea    -0x18(%rbp),%rdx
call   1040 <scanf@plt>
movsd  -0x10(%rbp),%xmm0
mov    $0x1,%al
xorps  %xmm1,%xmm1
ucomisd %xmm1,%xmm0
mov    %al,-0x19(%rbp)
jne    1177 <main+0x57>
jp     1177 <main+0x57>
movsd  -0x18(%rbp),%xmm0
xorps  %xmm1,%xmm1
ucomisd %xmm1,%xmm0
setne  %al
setp   %cl
or     %cl,%al
mov    %al,-0x19(%rbp)
mov    -0x19(%rbp),%al
test   $0x1,%al
jne    1187 <main+0x67>
jmp    1262 <main+0x142>
xorps  %xmm0,%xmm0
ucomisd -0x10(%rbp),%xmm0
jbe    11ef <main+0xcf>
movsd  -0x18(%rbp),%xmm1
movsd  0xe66(%rip),%xmm0
mulsd  -0x10(%rbp),%xmm0
ucomisd %xmm1,%xmm0
jb     11de <main+0xbe>
movsd  -0x18(%rbp),%xmm0
movsd  0xe42(%rip),%xmm1
mulsd  -0x10(%rbp),%xmm1
ucomisd %xmm1,%xmm0
jb     11de <main+0xbe>
lea    0xe44(%rip),%rdi
call   1030 <printf@plt>
jmp    11ea <main+0xca>
lea    0xe3d(%rip),%rdi
call   1030 <printf@plt>
jmp    1249 <main+0x129>
movsd  -0x18(%rbp),%xmm1
movsd  0xe04(%rip),%xmm0
mulsd  -0x10(%rbp),%xmm0
ucomisd %xmm1,%xmm0
jb     1238 <main+0x118>
movsd  -0x18(%rbp),%xmm0
movsd  0xdf0(%rip),%xmm1
mulsd  -0x10(%rbp),%xmm1
ucomisd %xmm1,%xmm0
jb     1238 <main+0x118>
lea    0xdea(%rip),%rdi
call   1030 <printf@plt>
jmp    1244 <main+0x124>
lea    0xde3(%rip),%rdi
call   1030 <printf@plt>
jmp    1249 <main+0x129>
lea    0xdc0(%rip),%rdi
lea    -0x10(%rbp),%rsi
lea    -0x18(%rbp),%rdx
call   1040 <scanf@plt>
jmp    1143 <main+0x23>
xor    %eax,%eax
add    $0x20,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<main>:
push   %r15
push   %r14
push   %r13
push   %r12
push   %rbx
sub    $0x10,%rsp
lea    0xedc(%rip),%rdi
lea    0x8(%rsp),%rsi
mov    %rsp,%rdx
call   1040 <scanf@plt>
movsd  0x8(%rsp),%xmm1
xorpd  %xmm2,%xmm2
ucomisd %xmm2,%xmm1
movsd  (%rsp),%xmm0
jne    1164 <main+0x44>
jp     1164 <main+0x44>
ucomisd %xmm2,%xmm0
jne    1164 <main+0x44>
jnp    120a <main+0xea>
lea    0xead(%rip),%rbx
lea    0xeaf(%rip),%r13
lea    0xe97(%rip),%r14
lea    0x8(%rsp),%r15
mov    %rsp,%r12
cs nopw 0x0(%rax,%rax,1)
nopl   0x0(%rax,%rax,1)
ucomisd %xmm1,%xmm2
jbe    11b0 <main+0x90>
movapd %xmm1,%xmm2
mulsd  0xe66(%rip),%xmm2
mulsd  0xe56(%rip),%xmm1
jmp    11c4 <main+0xa4>
nopl   0x0(%rax)
movapd %xmm1,%xmm2
mulsd  0xe44(%rip),%xmm2
mulsd  0xe44(%rip),%xmm1
ucomisd %xmm1,%xmm0
mov    %rbx,%rdi
jb     11d0 <main+0xb0>
mov    %r13,%rdi
ucomisd %xmm0,%xmm2
cmovb  %rbx,%rdi
call   1030 <puts@plt>
mov    %r14,%rdi
mov    %r15,%rsi
mov    %r12,%rdx
call   1040 <scanf@plt>
movsd  0x8(%rsp),%xmm1
xorpd  %xmm2,%xmm2
ucomisd %xmm2,%xmm1
movsd  (%rsp),%xmm0
jne    1190 <main+0x70>
jp     1190 <main+0x70>
ucomisd %xmm2,%xmm0
jne    1190 <main+0x70>
jp     1190 <main+0x70>
xor    %eax,%eax
add    $0x10,%rsp
pop    %rbx
pop    %r12
pop    %r13
pop    %r14
pop    %r15
ret

LLVM IR (-O0):
@.str = [8 x i8] c"%lf %lf\00"
@.str.1 = [10 x i8] c"INTERIOR\0A\00"
@.str.2 = [10 x i8] c"EXTERIOR\0A\00"
define i32 @main() {
%1 = alloca i32
%2 = alloca double
%3 = alloca double
store i32 0, i32* %1
%4 = call i32 @scanf(i8* getelementptr inbounds ([8 x i8], [8 x i8]* @.str, i64 0, i64 0), double* %2, double* %3)
br label %5
5: ; preds = %46, %0
%6 = load double, double* %2
%7 = fcmp une double %6, 0.000000e+00
br i1 %7, label %11, label %8
8: ; preds = %5
%9 = load double, double* %3
%10 = fcmp une double %9, 0.000000e+00
br label %11
11: ; preds = %8, %5
%12 = phi i1 [ true, %5 ], [ %10, %8 ]
br i1 %12, label %13, label %48
13: ; preds = %11
%14 = load double, double* %2
%15 = fcmp olt double %14, 0.000000e+00
br i1 %15, label %16, label %31
16: ; preds = %13
%17 = load double, double* %3
%18 = load double, double* %2
%19 = fmul double 0x3FD5555560000000, %18
%20 = fcmp ole double %17, %19
br i1 %20, label %21, label %28
21: ; preds = %16
%22 = load double, double* %3
%23 = load double, double* %2
%24 = fmul double 3.000000e+00, %23
%25 = fcmp oge double %22, %24
br i1 %25, label %26, label %28
26: ; preds = %21
%27 = call i32 @printf(i8* getelementptr inbounds ([10 x i8], [10 x i8]* @.str.1, i64 0, i64 0))
br label %30
28: ; preds = %21, %16
%29 = call i32 @printf(i8* getelementptr inbounds ([10 x i8], [10 x i8]* @.str.2, i64 0, i64 0))
br label %30
30: ; preds = %28, %26
br label %46
31: ; preds = %13
%32 = load double, double* %3
%33 = load double, double* %2
%34 = fmul double 3.000000e+00, %33
%35 = fcmp ole double %32, %34
br i1 %35, label %36, label %43
36: ; preds = %31
%37 = load double, double* %3
%38 = load double, double* %2
%39 = fmul double 0x3FD5555560000000, %38
%40 = fcmp oge double %37, %39
br i1 %40, label %41, label %43
41: ; preds = %36
%42 = call i32 @printf(i8* getelementptr inbounds ([10 x i8], [10 x i8]* @.str.1, i64 0, i64 0))
br label %45
43: ; preds = %36, %31
%44 = call i32 @printf(i8* getelementptr inbounds ([10 x i8], [10 x i8]* @.str.2, i64 0, i64 0))
br label %45
45: ; preds = %43, %41
br label %46
46: ; preds = %45, %30
%47 = call i32 @scanf(i8* getelementptr inbounds ([8 x i8], [8 x i8]* @.str, i64 0, i64 0), double* %2, double* %3)
br label %5
48: ; preds = %11
ret i32 0
}

LLVM IR (-O2):
@.str = [8 x i8] c"%lf %lf\00"
@str.4 = [9 x i8] c"EXTERIOR\00"
@str.5 = [9 x i8] c"INTERIOR\00"
define i32 @main() {
%1 = alloca double
%2 = alloca double
%3 = bitcast double* %1 to i8*
%4 = bitcast double* %2 to i8*
%5 = call i32 @scanf(i8* getelementptr inbounds ([8 x i8], [8 x i8]* @.str, i64 0, i64 0), double* %1, double* %2)
%6 = load double, double* %1
%7 = fcmp une double %6, 0.000000e+00
%8 = load double, double* %2
%9 = fcmp une double %8, 0.000000e+00
%10 = select i1 %7, i1 true, i1 %9
br i1 %10, label %11, label %38
11: ; preds = %0, %29
%12 = phi double [ %35, %29 ], [ %8, %0 ]
%13 = phi double [ %33, %29 ], [ %6, %0 ]
%14 = fcmp olt double %13, 0.000000e+00
br i1 %14, label %15, label %22
15: ; preds = %11
%16 = fmul double %13, 0x3FD5555560000000
%17 = fcmp ugt double %12, %16
%18 = fmul double %13, 3.000000e+00
%19 = fcmp ult double %12, %18
%20 = or i1 %17, %19
%21 = select i1 %20, i8* getelementptr inbounds ([9 x i8], [9 x i8]* @str.4, i64 0, i64 0), i8* getelementptr inbounds ([9 x i8], [9 x i8]* @str.5, i64 0, i64 0)
br label %29
22: ; preds = %11
%23 = fmul double %13, 3.000000e+00
%24 = fcmp ugt double %12, %23
%25 = fmul double %13, 0x3FD5555560000000
%26 = fcmp ult double %12, %25
%27 = or i1 %24, %26
%28 = select i1 %27, i8* getelementptr inbounds ([9 x i8], [9 x i8]* @str.4, i64 0, i64 0), i8* getelementptr inbounds ([9 x i8], [9 x i8]* @str.5, i64 0, i64 0)
br label %29
29: ; preds = %22, %15
%30 = phi i8* [ %21, %15 ], [ %28, %22 ]
%31 = call i32 @puts(i8* dereferenceable(1) %30)
%32 = call i32 @scanf(i8* getelementptr inbounds ([8 x i8], [8 x i8]* @.str, i64 0, i64 0), double* %1, double* %2)
%33 = load double, double* %1
%34 = fcmp une double %33, 0.000000e+00
%35 = load double, double* %2
%36 = fcmp une double %35, 0.000000e+00
%37 = select i1 %34, i1 true, i1 %36
br i1 %37, label %11, label %38
38: ; preds = %29, %0
ret i32 0
}