#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 *, double, double);
int /*<<< orphan*/ scanf(char *, double *, double *);
int main() {
  double x, y, a, b, c;
  int i, j, k;
  scanf("(%lf, %lf)", &x, &y);
  if (x > 1e-10 && y > 1e-10)
    printf("(%.1lf, %.1lf) is in quadrand I\n", x, y);
  else if (x > 1e-10 && y < -1e-10)
    printf("(%.1lf, %.1lf) is in quadrand IV\n", x, y);
  else if (x < -1e-10 && y < -1e-10)
    printf("(%.1lf, %.1lf) is in quadrand III\n", x, y);
  else if (x < -1e-10 && y > 1e-10)
    printf("(%.1lf, %.1lf) is in quadrand II\n", x, y);
  else if (x > -1e-10 && x < 1e-10 && y < -1e-10 || y > 1e-10)
    printf("(%.1lf, %.1lf) is on the y axis\n", x, y);
  else if (y > -1e-10 && y < 1e-10 && x < -1e-10 || x > 1e-10)
    printf("(%.1lf, %.1lf) is on the x axis\n", x, y);
  else if (x > -1e-10 && x < 1e-10 && y > -1e-10 && y < 1e-10)
    printf("(%.1lf, %.1lf) is origin\n", x, y);
  return 0;
}


x86 assembly (clang, -O0):
<main>:
push   %rbp
mov    %rsp,%rbp
sub    $0x40,%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
movsd  0xeb0(%rip),%xmm1
ucomisd %xmm1,%xmm0
jbe    118c <main+0x6c>
movsd  -0x18(%rbp),%xmm0
movsd  0xe99(%rip),%xmm1
ucomisd %xmm1,%xmm0
jbe    118c <main+0x6c>
movsd  -0x10(%rbp),%xmm0
movsd  -0x18(%rbp),%xmm1
lea    0xe99(%rip),%rdi
call   1030 <printf@plt>
jmp    13bd <main+0x29d>
movsd  -0x10(%rbp),%xmm0
movsd  0xe67(%rip),%xmm1
ucomisd %xmm1,%xmm0
jbe    11d1 <main+0xb1>
movsd  0xe5d(%rip),%xmm0
ucomisd -0x18(%rbp),%xmm0
jbe    11d1 <main+0xb1>
movsd  -0x10(%rbp),%xmm0
movsd  -0x18(%rbp),%xmm1
lea    0xe75(%rip),%rdi
call   1030 <printf@plt>
jmp    13b8 <main+0x298>
movsd  0xe2f(%rip),%xmm0
ucomisd -0x10(%rbp),%xmm0
jbe    1212 <main+0xf2>
movsd  0xe1c(%rip),%xmm0
ucomisd -0x18(%rbp),%xmm0
jbe    1212 <main+0xf2>
movsd  -0x10(%rbp),%xmm0
movsd  -0x18(%rbp),%xmm1
lea    0xe56(%rip),%rdi
call   1030 <printf@plt>
jmp    13b3 <main+0x293>
movsd  0xdee(%rip),%xmm0
ucomisd -0x10(%rbp),%xmm0
jbe    1257 <main+0x137>
movsd  -0x18(%rbp),%xmm0
movsd  0xdce(%rip),%xmm1
ucomisd %xmm1,%xmm0
jbe    1257 <main+0x137>
movsd  -0x10(%rbp),%xmm0
movsd  -0x18(%rbp),%xmm1
lea    0xe34(%rip),%rdi
call   1030 <printf@plt>
jmp    13ae <main+0x28e>
movsd  -0x10(%rbp),%xmm0
movsd  0xda4(%rip),%xmm1
ucomisd %xmm1,%xmm0
jbe    1294 <main+0x174>
movsd  0xd8a(%rip),%xmm0
ucomisd -0x10(%rbp),%xmm0
jbe    1294 <main+0x174>
movsd  0xd7f(%rip),%xmm0
ucomisd -0x18(%rbp),%xmm0
ja     12ab <main+0x18b>
movsd  -0x18(%rbp),%xmm0
movsd  0xd5f(%rip),%xmm1
ucomisd %xmm1,%xmm0
jbe    12c6 <main+0x1a6>
movsd  -0x10(%rbp),%xmm0
movsd  -0x18(%rbp),%xmm1
lea    0xde7(%rip),%rdi
call   1030 <printf@plt>
jmp    13a9 <main+0x289>
movsd  -0x18(%rbp),%xmm0
movsd  0xd35(%rip),%xmm1
ucomisd %xmm1,%xmm0
jbe    1303 <main+0x1e3>
movsd  0xd1b(%rip),%xmm0
ucomisd -0x18(%rbp),%xmm0
jbe    1303 <main+0x1e3>
movsd  0xd10(%rip),%xmm0
ucomisd -0x10(%rbp),%xmm0
ja     131a <main+0x1fa>
movsd  -0x10(%rbp),%xmm0
movsd  0xcf0(%rip),%xmm1
ucomisd %xmm1,%xmm0
jbe    1335 <main+0x215>
movsd  -0x10(%rbp),%xmm0
movsd  -0x18(%rbp),%xmm1
lea    0xd99(%rip),%rdi
call   1030 <printf@plt>
jmp    13a4 <main+0x284>
movsd  -0x10(%rbp),%xmm0
movsd  0xcc6(%rip),%xmm1
ucomisd %xmm1,%xmm0
jbe    139f <main+0x27f>
movsd  0xcac(%rip),%xmm0
ucomisd -0x10(%rbp),%xmm0
jbe    139f <main+0x27f>
movsd  -0x18(%rbp),%xmm0
movsd  0xc9c(%rip),%xmm1
ucomisd %xmm1,%xmm0
jbe    139f <main+0x27f>
movsd  0xc82(%rip),%xmm0
ucomisd -0x18(%rbp),%xmm0
jbe    139f <main+0x27f>
movsd  -0x10(%rbp),%xmm0
movsd  -0x18(%rbp),%xmm1
lea    0xd4b(%rip),%rdi
call   1030 <printf@plt>
jmp    13a4 <main+0x284>
jmp    13a9 <main+0x289>
jmp    13ae <main+0x28e>
jmp    13b3 <main+0x293>
jmp    13b8 <main+0x298>
jmp    13bd <main+0x29d>
xor    %eax,%eax
add    $0x40,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<main>:
sub    $0x18,%rsp
lea    0xee5(%rip),%rdi
lea    0x10(%rsp),%rsi
lea    0x8(%rsp),%rdx
call   1040 <scanf@plt>
movsd  0x10(%rsp),%xmm0
ucomisd 0xeb8(%rip),%xmm0
movsd  0x8(%rsp),%xmm1
jbe    1166 <main+0x46>
ucomisd 0xea8(%rip),%xmm1
jbe    1166 <main+0x46>
lea    0xeba(%rip),%rdi
jmp    1246 <main+0x126>
ucomisd 0xe92(%rip),%xmm0
jbe    118a <main+0x6a>
movsd  0xe90(%rip),%xmm2
ucomisd %xmm1,%xmm2
jbe    118a <main+0x6a>
lea    0xeb7(%rip),%rdi
jmp    1246 <main+0x126>
movsd  0xe76(%rip),%xmm3
ucomisd %xmm0,%xmm3
jbe    11aa <main+0x8a>
ucomisd %xmm1,%xmm3
jbe    11aa <main+0x8a>
lea    0xeb9(%rip),%rdi
jmp    1246 <main+0x126>
ucomisd %xmm0,%xmm3
jbe    11c6 <main+0xa6>
ucomisd 0xe48(%rip),%xmm1
jbe    11c6 <main+0xa6>
lea    0xec0(%rip),%rdi
jmp    1246 <main+0x126>
ucomisd %xmm1,%xmm3
seta   %cl
ucomisd %xmm3,%xmm0
seta   %dl
movsd  0xe24(%rip),%xmm2
ucomisd %xmm0,%xmm2
seta   %al
and    %dl,%al
lea    0xeb7(%rip),%rdi
test   %cl,%al
jne    1246 <main+0x126>
ucomisd 0xe08(%rip),%xmm1
ja     1246 <main+0x126>
ucomisd %xmm0,%xmm3
seta   %sil
ucomisd %xmm3,%xmm1
seta   %dl
ucomisd %xmm1,%xmm2
seta   %cl
and    %dl,%cl
lea    0xeab(%rip),%rdi
test   %sil,%cl
jne    1246 <main+0x126>
ucomisd 0xdda(%rip),%xmm0
ja     1246 <main+0x126>
ucomisd 0xdd8(%rip),%xmm1
seta   %cl
and    %cl,%al
cmp    $0x1,%al
jne    124b <main+0x12b>
ucomisd %xmm1,%xmm2
jbe    124b <main+0x12b>
lea    0xe9f(%rip),%rdi
call   1030 <printf@plt>
xor    %eax,%eax
add    $0x18,%rsp
ret

LLVM IR (-O0):
@.str = [11 x i8] c"(%lf, %lf)\00"
@.str.1 = [33 x i8] c"(%.1lf, %.1lf) is in quadrand I\0A\00"
@.str.2 = [34 x i8] c"(%.1lf, %.1lf) is in quadrand IV\0A\00"
@.str.3 = [35 x i8] c"(%.1lf, %.1lf) is in quadrand III\0A\00"
@.str.4 = [34 x i8] c"(%.1lf, %.1lf) is in quadrand II\0A\00"
@.str.5 = [33 x i8] c"(%.1lf, %.1lf) is on the y axis\0A\00"
@.str.6 = [33 x i8] c"(%.1lf, %.1lf) is on the x axis\0A\00"
@.str.7 = [26 x i8] c"(%.1lf, %.1lf) is origin\0A\00"
define i32 @main() {
%1 = alloca i32
%2 = alloca double
%3 = alloca double
%4 = alloca double
%5 = alloca double
%6 = alloca double
%7 = alloca i32
%8 = alloca i32
%9 = alloca i32
store i32 0, i32* %1
%10 = call i32 @scanf(i8* getelementptr inbounds ([11 x i8], [11 x i8]* @.str, i64 0, i64 0), double* %2, double* %3)
%11 = load double, double* %2
%12 = fcmp ogt double %11, 1.000000e-10
br i1 %12, label %13, label %20
13: ; preds = %0
%14 = load double, double* %3
%15 = fcmp ogt double %14, 1.000000e-10
br i1 %15, label %16, label %20
16: ; preds = %13
%17 = load double, double* %2
%18 = load double, double* %3
%19 = call i32 @printf(i8* getelementptr inbounds ([33 x i8], [33 x i8]* @.str.1, i64 0, i64 0), double %17, double %18)
br label %104
20: ; preds = %13, %0
%21 = load double, double* %2
%22 = fcmp ogt double %21, 1.000000e-10
br i1 %22, label %23, label %30
23: ; preds = %20
%24 = load double, double* %3
%25 = fcmp olt double %24, -1.000000e-10
br i1 %25, label %26, label %30
26: ; preds = %23
%27 = load double, double* %2
%28 = load double, double* %3
%29 = call i32 @printf(i8* getelementptr inbounds ([34 x i8], [34 x i8]* @.str.2, i64 0, i64 0), double %27, double %28)
br label %103
30: ; preds = %23, %20
%31 = load double, double* %2
%32 = fcmp olt double %31, -1.000000e-10
br i1 %32, label %33, label %40
33: ; preds = %30
%34 = load double, double* %3
%35 = fcmp olt double %34, -1.000000e-10
br i1 %35, label %36, label %40
36: ; preds = %33
%37 = load double, double* %2
%38 = load double, double* %3
%39 = call i32 @printf(i8* getelementptr inbounds ([35 x i8], [35 x i8]* @.str.3, i64 0, i64 0), double %37, double %38)
br label %102
40: ; preds = %33, %30
%41 = load double, double* %2
%42 = fcmp olt double %41, -1.000000e-10
br i1 %42, label %43, label %50
43: ; preds = %40
%44 = load double, double* %3
%45 = fcmp ogt double %44, 1.000000e-10
br i1 %45, label %46, label %50
46: ; preds = %43
%47 = load double, double* %2
%48 = load double, double* %3
%49 = call i32 @printf(i8* getelementptr inbounds ([34 x i8], [34 x i8]* @.str.4, i64 0, i64 0), double %47, double %48)
br label %101
50: ; preds = %43, %40
%51 = load double, double* %2
%52 = fcmp ogt double %51, -1.000000e-10
br i1 %52, label %53, label %59
53: ; preds = %50
%54 = load double, double* %2
%55 = fcmp olt double %54, 1.000000e-10
br i1 %55, label %56, label %59
56: ; preds = %53
%57 = load double, double* %3
%58 = fcmp olt double %57, -1.000000e-10
br i1 %58, label %62, label %59
59: ; preds = %56, %53, %50
%60 = load double, double* %3
%61 = fcmp ogt double %60, 1.000000e-10
br i1 %61, label %62, label %66
62: ; preds = %59, %56
%63 = load double, double* %2
%64 = load double, double* %3
%65 = call i32 @printf(i8* getelementptr inbounds ([33 x i8], [33 x i8]* @.str.5, i64 0, i64 0), double %63, double %64)
br label %100
66: ; preds = %59
%67 = load double, double* %3
%68 = fcmp ogt double %67, -1.000000e-10
br i1 %68, label %69, label %75
69: ; preds = %66
%70 = load double, double* %3
%71 = fcmp olt double %70, 1.000000e-10
br i1 %71, label %72, label %75
72: ; preds = %69
%73 = load double, double* %2
%74 = fcmp olt double %73, -1.000000e-10
br i1 %74, label %78, label %75
75: ; preds = %72, %69, %66
%76 = load double, double* %2
%77 = fcmp ogt double %76, 1.000000e-10
br i1 %77, label %78, label %82
78: ; preds = %75, %72
%79 = load double, double* %2
%80 = load double, double* %3
%81 = call i32 @printf(i8* getelementptr inbounds ([33 x i8], [33 x i8]* @.str.6, i64 0, i64 0), double %79, double %80)
br label %99
82: ; preds = %75
%83 = load double, double* %2
%84 = fcmp ogt double %83, -1.000000e-10
br i1 %84, label %85, label %98
85: ; preds = %82
%86 = load double, double* %2
%87 = fcmp olt double %86, 1.000000e-10
br i1 %87, label %88, label %98
88: ; preds = %85
%89 = load double, double* %3
%90 = fcmp ogt double %89, -1.000000e-10
br i1 %90, label %91, label %98
91: ; preds = %88
%92 = load double, double* %3
%93 = fcmp olt double %92, 1.000000e-10
br i1 %93, label %94, label %98
94: ; preds = %91
%95 = load double, double* %2
%96 = load double, double* %3
%97 = call i32 @printf(i8* getelementptr inbounds ([26 x i8], [26 x i8]* @.str.7, i64 0, i64 0), double %95, double %96)
br label %98
98: ; preds = %94, %91, %88, %85, %82
br label %99
99: ; preds = %98, %78
br label %100
100: ; preds = %99, %62
br label %101
101: ; preds = %100, %46
br label %102
102: ; preds = %101, %36
br label %103
103: ; preds = %102, %26
br label %104
104: ; preds = %103, %16
ret i32 0
}

LLVM IR (-O2):
@.str = [11 x i8] c"(%lf, %lf)\00"
@.str.1 = [33 x i8] c"(%.1lf, %.1lf) is in quadrand I\0A\00"
@.str.2 = [34 x i8] c"(%.1lf, %.1lf) is in quadrand IV\0A\00"
@.str.3 = [35 x i8] c"(%.1lf, %.1lf) is in quadrand III\0A\00"
@.str.4 = [34 x i8] c"(%.1lf, %.1lf) is in quadrand II\0A\00"
@.str.5 = [33 x i8] c"(%.1lf, %.1lf) is on the y axis\0A\00"
@.str.6 = [33 x i8] c"(%.1lf, %.1lf) is on the x axis\0A\00"
@.str.7 = [26 x i8] c"(%.1lf, %.1lf) is origin\0A\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 ([11 x i8], [11 x i8]* @.str, i64 0, i64 0), double* %1, double* %2)
%6 = load double, double* %1
%7 = fcmp ogt double %6, 1.000000e-10
%8 = load double, double* %2
%9 = fcmp ogt double %8, 1.000000e-10
%10 = select i1 %7, i1 %9, i1 false
br i1 %10, label %34, label %11
11: ; preds = %0
%12 = fcmp olt double %8, -1.000000e-10
%13 = select i1 %7, i1 %12, i1 false
br i1 %13, label %34, label %14
14: ; preds = %11
%15 = fcmp olt double %6, -1.000000e-10
%16 = select i1 %15, i1 %12, i1 false
br i1 %16, label %34, label %17
17: ; preds = %14
%18 = select i1 %15, i1 %9, i1 false
br i1 %18, label %34, label %19
19: ; preds = %17
%20 = fcmp ogt double %6, -1.000000e-10
%21 = fcmp olt double %6, 1.000000e-10
%22 = and i1 %20, %21
%23 = select i1 %22, i1 %12, i1 false
%24 = select i1 %23, i1 true, i1 %9
br i1 %24, label %34, label %25
25: ; preds = %19
%26 = fcmp ogt double %8, -1.000000e-10
%27 = fcmp olt double %8, 1.000000e-10
%28 = and i1 %26, %27
%29 = select i1 %28, i1 %15, i1 false
%30 = select i1 %29, i1 true, i1 %7
br i1 %30, label %34, label %31
31: ; preds = %25
%32 = select i1 %22, i1 %26, i1 false
%33 = select i1 %32, i1 %27, i1 false
br i1 %33, label %34, label %37
34: ; preds = %31, %25, %19, %17, %14, %11, %0
%35 = phi i8* [ getelementptr inbounds ([33 x i8], [33 x i8]* @.str.1, i64 0, i64 0), %0 ], [ getelementptr inbounds ([34 x i8], [34 x i8]* @.str.2, i64 0, i64 0), %11 ], [ getelementptr inbounds ([35 x i8], [35 x i8]* @.str.3, i64 0, i64 0), %14 ], [ getelementptr inbounds ([34 x i8], [34 x i8]* @.str.4, i64 0, i64 0), %17 ], [ getelementptr inbounds ([33 x i8], [33 x i8]* @.str.5, i64 0, i64 0), %19 ], [ getelementptr inbounds ([33 x i8], [33 x i8]* @.str.6, i64 0, i64 0), %25 ], [ getelementptr inbounds ([26 x i8], [26 x i8]* @.str.7, i64 0, i64 0), %31 ]
%36 = call i32 @printf(i8* %35, double %6, double %8)
br label %37
37: ; preds = %34, %31
ret i32 0
}