#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 /*<<< orphan*/ system(char *);
int main() {
  double X, Y;
  scanf("%lf %lf", &X, &Y);
  if (X == Y && Y == 0)
    printf("Origem\n");
  else if (X != 0 && Y == 0)
    printf("Eixo X\n");
  else if (X == 0 && Y != 0)
    printf("Eixo Y\n");
  else if (X > 0 && Y > 0)
    printf("Q1\n");
  else if (X <= 0 && Y >= 0)
    printf("Q2\n");
  else if (X < 0 && Y < 0)
    printf("Q3\n");
  else if (X > 0 && Y < 0)
    printf("Q4\n");
  system("pause");
  return 0;
}


x86 assembly (clang, -O0):
<main>:
push   %rbp
mov    %rsp,%rbp
sub    $0x20,%rsp
movl   $0x0,-0x4(%rbp)
lea    0xeba(%rip),%rdi
lea    -0x10(%rbp),%rsi
lea    -0x18(%rbp),%rdx
call   1050 <scanf@plt>
movsd  -0x10(%rbp),%xmm0
ucomisd -0x18(%rbp),%xmm0
jne    1192 <main+0x62>
jp     1192 <main+0x62>
movsd  -0x18(%rbp),%xmm0
xorps  %xmm1,%xmm1
ucomisd %xmm1,%xmm0
jne    1192 <main+0x62>
jp     1192 <main+0x62>
lea    0xe80(%rip),%rdi
call   1040 <printf@plt>
jmp    12fb <main+0x1cb>
movsd  -0x10(%rbp),%xmm0
xorps  %xmm1,%xmm1
ucomisd %xmm1,%xmm0
jne    11af <main+0x7f>
jp     11af <main+0x7f>
jmp    11d8 <main+0xa8>
movsd  -0x18(%rbp),%xmm0
xorps  %xmm1,%xmm1
ucomisd %xmm1,%xmm0
jne    11d8 <main+0xa8>
jp     11d8 <main+0xa8>
lea    0xe42(%rip),%rdi
call   1040 <printf@plt>
jmp    12f6 <main+0x1c6>
movsd  -0x10(%rbp),%xmm0
xorps  %xmm1,%xmm1
ucomisd %xmm1,%xmm0
jne    121e <main+0xee>
jp     121e <main+0xee>
movsd  -0x18(%rbp),%xmm0
xorps  %xmm1,%xmm1
ucomisd %xmm1,%xmm0
jne    120d <main+0xdd>
jp     120d <main+0xdd>
jmp    121e <main+0xee>
lea    0xe04(%rip),%rdi
call   1040 <printf@plt>
jmp    12f1 <main+0x1c1>
movsd  -0x10(%rbp),%xmm0
xorps  %xmm1,%xmm1
ucomisd %xmm1,%xmm0
jbe    1253 <main+0x123>
movsd  -0x18(%rbp),%xmm0
xorps  %xmm1,%xmm1
ucomisd %xmm1,%xmm0
jbe    1253 <main+0x123>
lea    0xdd7(%rip),%rdi
call   1040 <printf@plt>
jmp    12ec <main+0x1bc>
xorps  %xmm0,%xmm0
ucomisd -0x10(%rbp),%xmm0
jb     1284 <main+0x154>
movsd  -0x18(%rbp),%xmm0
xorps  %xmm1,%xmm1
ucomisd %xmm1,%xmm0
jb     1284 <main+0x154>
lea    0xdaa(%rip),%rdi
call   1040 <printf@plt>
jmp    12e7 <main+0x1b7>
xorps  %xmm0,%xmm0
ucomisd -0x10(%rbp),%xmm0
jbe    12b1 <main+0x181>
xorps  %xmm0,%xmm0
ucomisd -0x18(%rbp),%xmm0
jbe    12b1 <main+0x181>
lea    0xd81(%rip),%rdi
call   1040 <printf@plt>
jmp    12e2 <main+0x1b2>
movsd  -0x10(%rbp),%xmm0
xorps  %xmm1,%xmm1
ucomisd %xmm1,%xmm0
jbe    12dd <main+0x1ad>
xorps  %xmm0,%xmm0
ucomisd -0x18(%rbp),%xmm0
jbe    12dd <main+0x1ad>
lea    0xd54(%rip),%rdi
call   1040 <printf@plt>
jmp    12e2 <main+0x1b2>
jmp    12e7 <main+0x1b7>
jmp    12ec <main+0x1bc>
jmp    12f1 <main+0x1c1>
jmp    12f6 <main+0x1c6>
jmp    12fb <main+0x1cb>
lea    0xd2e(%rip),%rdi
call   1030 <system@plt>
xor    %eax,%eax
add    $0x20,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<main>:
sub    $0x18,%rsp
lea    0xec5(%rip),%rdi
lea    0x10(%rsp),%rsi
lea    0x8(%rsp),%rdx
call   1050 <scanf@plt>
movsd  0x10(%rsp),%xmm1
movsd  0x8(%rsp),%xmm0
ucomisd %xmm0,%xmm1
jne    1176 <main+0x46>
jp     1176 <main+0x46>
xorpd  %xmm2,%xmm2
ucomisd %xmm2,%xmm0
jne    1176 <main+0x46>
jp     1176 <main+0x46>
lea    0xeb7(%rip),%rdi
jmp    1212 <main+0xe2>
xorpd  %xmm2,%xmm2
ucomisd %xmm2,%xmm1
jne    1182 <main+0x52>
jnp    1193 <main+0x63>
ucomisd %xmm2,%xmm0
jne    1193 <main+0x63>
jp     1193 <main+0x63>
lea    0xe90(%rip),%rdi
jmp    1212 <main+0xe2>
ucomisd %xmm2,%xmm1
jne    11b0 <main+0x80>
jp     11b0 <main+0x80>
xorpd  %xmm2,%xmm2
ucomisd %xmm2,%xmm0
jne    11a7 <main+0x77>
jnp    11b0 <main+0x80>
lea    0xe6c(%rip),%rdi
jmp    1212 <main+0xe2>
xorpd  %xmm2,%xmm2
ucomisd %xmm2,%xmm1
jbe    11c9 <main+0x99>
ucomisd %xmm2,%xmm0
jbe    11c9 <main+0x99>
lea    0xe50(%rip),%rdi
jmp    1212 <main+0xe2>
ucomisd %xmm1,%xmm2
jb     11e2 <main+0xb2>
xorpd  %xmm2,%xmm2
ucomisd %xmm2,%xmm0
jb     11e2 <main+0xb2>
lea    0xe34(%rip),%rdi
jmp    1212 <main+0xe2>
xorpd  %xmm2,%xmm2
ucomisd %xmm1,%xmm2
jbe    11fb <main+0xcb>
ucomisd %xmm0,%xmm2
jbe    11fb <main+0xcb>
lea    0xe18(%rip),%rdi
jmp    1212 <main+0xe2>
ucomisd %xmm2,%xmm1
jbe    1217 <main+0xe7>
xorpd  %xmm1,%xmm1
ucomisd %xmm0,%xmm1
jbe    1217 <main+0xe7>
lea    0xdfc(%rip),%rdi
call   1030 <puts@plt>
lea    0xdea(%rip),%rdi
call   1040 <system@plt>
xor    %eax,%eax
add    $0x18,%rsp
ret

LLVM IR (-O0):
@.str = [8 x i8] c"%lf %lf\00"
@.str.1 = [8 x i8] c"Origem\0A\00"
@.str.2 = [8 x i8] c"Eixo X\0A\00"
@.str.3 = [8 x i8] c"Eixo Y\0A\00"
@.str.4 = [4 x i8] c"Q1\0A\00"
@.str.5 = [4 x i8] c"Q2\0A\00"
@.str.6 = [4 x i8] c"Q3\0A\00"
@.str.7 = [4 x i8] c"Q4\0A\00"
@.str.8 = [6 x i8] c"pause\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)
%5 = load double, double* %2
%6 = load double, double* %3
%7 = fcmp oeq double %5, %6
br i1 %7, label %8, label %13
8: ; preds = %0
%9 = load double, double* %3
%10 = fcmp oeq double %9, 0.000000e+00
br i1 %10, label %11, label %13
11: ; preds = %8
%12 = call i32 @printf(i8* getelementptr inbounds ([8 x i8], [8 x i8]* @.str.1, i64 0, i64 0))
br label %67
13: ; preds = %8, %0
%14 = load double, double* %2
%15 = fcmp une double %14, 0.000000e+00
br i1 %15, label %16, label %21
16: ; preds = %13
%17 = load double, double* %3
%18 = fcmp oeq double %17, 0.000000e+00
br i1 %18, label %19, label %21
19: ; preds = %16
%20 = call i32 @printf(i8* getelementptr inbounds ([8 x i8], [8 x i8]* @.str.2, i64 0, i64 0))
br label %66
21: ; preds = %16, %13
%22 = load double, double* %2
%23 = fcmp oeq double %22, 0.000000e+00
br i1 %23, label %24, label %29
24: ; preds = %21
%25 = load double, double* %3
%26 = fcmp une double %25, 0.000000e+00
br i1 %26, label %27, label %29
27: ; preds = %24
%28 = call i32 @printf(i8* getelementptr inbounds ([8 x i8], [8 x i8]* @.str.3, i64 0, i64 0))
br label %65
29: ; preds = %24, %21
%30 = load double, double* %2
%31 = fcmp ogt double %30, 0.000000e+00
br i1 %31, label %32, label %37
32: ; preds = %29
%33 = load double, double* %3
%34 = fcmp ogt double %33, 0.000000e+00
br i1 %34, label %35, label %37
35: ; preds = %32
%36 = call i32 @printf(i8* getelementptr inbounds ([4 x i8], [4 x i8]* @.str.4, i64 0, i64 0))
br label %64
37: ; preds = %32, %29
%38 = load double, double* %2
%39 = fcmp ole double %38, 0.000000e+00
br i1 %39, label %40, label %45
40: ; preds = %37
%41 = load double, double* %3
%42 = fcmp oge double %41, 0.000000e+00
br i1 %42, label %43, label %45
43: ; preds = %40
%44 = call i32 @printf(i8* getelementptr inbounds ([4 x i8], [4 x i8]* @.str.5, i64 0, i64 0))
br label %63
45: ; preds = %40, %37
%46 = load double, double* %2
%47 = fcmp olt double %46, 0.000000e+00
br i1 %47, label %48, label %53
48: ; preds = %45
%49 = load double, double* %3
%50 = fcmp olt double %49, 0.000000e+00
br i1 %50, label %51, label %53
51: ; preds = %48
%52 = call i32 @printf(i8* getelementptr inbounds ([4 x i8], [4 x i8]* @.str.6, i64 0, i64 0))
br label %62
53: ; preds = %48, %45
%54 = load double, double* %2
%55 = fcmp ogt double %54, 0.000000e+00
br i1 %55, label %56, label %61
56: ; preds = %53
%57 = load double, double* %3
%58 = fcmp olt double %57, 0.000000e+00
br i1 %58, label %59, label %61
59: ; preds = %56
%60 = call i32 @printf(i8* getelementptr inbounds ([4 x i8], [4 x i8]* @.str.7, i64 0, i64 0))
br label %61
61: ; preds = %59, %56, %53
br label %62
62: ; preds = %61, %51
br label %63
63: ; preds = %62, %43
br label %64
64: ; preds = %63, %35
br label %65
65: ; preds = %64, %27
br label %66
66: ; preds = %65, %19
br label %67
67: ; preds = %66, %11
%68 = call i32 @system(i8* getelementptr inbounds ([6 x i8], [6 x i8]* @.str.8, i64 0, i64 0))
ret i32 0
}

LLVM IR (-O2):
@.str = [8 x i8] c"%lf %lf\00"
@.str.8 = [6 x i8] c"pause\00"
@str = [3 x i8] c"Q4\00"
@str.9 = [3 x i8] c"Q3\00"
@str.10 = [3 x i8] c"Q2\00"
@str.11 = [3 x i8] c"Q1\00"
@str.12 = [7 x i8] c"Eixo Y\00"
@str.13 = [7 x i8] c"Eixo X\00"
@str.14 = [7 x i8] c"Origem\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 = load double, double* %2
%8 = fcmp oeq double %6, %7
%9 = fcmp oeq double %7, 0.000000e+00
%10 = and i1 %8, %9
br i1 %10, label %32, label %11
11: ; preds = %0
%12 = fcmp une double %6, 0.000000e+00
%13 = select i1 %12, i1 %9, i1 false
br i1 %13, label %32, label %14
14: ; preds = %11
%15 = fcmp oeq double %6, 0.000000e+00
%16 = fcmp une double %7, 0.000000e+00
%17 = select i1 %15, i1 %16, i1 false
br i1 %17, label %32, label %18
18: ; preds = %14
%19 = fcmp ogt double %6, 0.000000e+00
%20 = fcmp ogt double %7, 0.000000e+00
%21 = select i1 %19, i1 %20, i1 false
br i1 %21, label %32, label %22
22: ; preds = %18
%23 = fcmp ole double %6, 0.000000e+00
%24 = fcmp oge double %7, 0.000000e+00
%25 = select i1 %23, i1 %24, i1 false
br i1 %25, label %32, label %26
26: ; preds = %22
%27 = fcmp olt double %6, 0.000000e+00
%28 = fcmp olt double %7, 0.000000e+00
%29 = select i1 %27, i1 %28, i1 false
br i1 %29, label %32, label %30
30: ; preds = %26
%31 = select i1 %19, i1 %28, i1 false
br i1 %31, label %32, label %35
32: ; preds = %30, %26, %22, %18, %14, %11, %0
%33 = phi i8* [ getelementptr inbounds ([7 x i8], [7 x i8]* @str.14, i64 0, i64 0), %0 ], [ getelementptr inbounds ([7 x i8], [7 x i8]* @str.13, i64 0, i64 0), %11 ], [ getelementptr inbounds ([7 x i8], [7 x i8]* @str.12, i64 0, i64 0), %14 ], [ getelementptr inbounds ([3 x i8], [3 x i8]* @str.11, i64 0, i64 0), %18 ], [ getelementptr inbounds ([3 x i8], [3 x i8]* @str.10, i64 0, i64 0), %22 ], [ getelementptr inbounds ([3 x i8], [3 x i8]* @str.9, i64 0, i64 0), %26 ], [ getelementptr inbounds ([3 x i8], [3 x i8]* @str, i64 0, i64 0), %30 ]
%34 = call i32 @puts(i8* dereferenceable(1) %33)
br label %35
35: ; preds = %32, %30
%36 = call i32 @system(i8* getelementptr inbounds ([6 x i8], [6 x i8]* @.str.8, i64 0, i64 0))
ret i32 0
}