#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 *, float *, float *);
int main() {
  float x, y;
  scanf("%f%f", &x, &y);
  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");
  } else if (x == 0 && y != 0) {
    printf("Eixo Y\n");
  } else if (x != 0 && y == 0) {
    printf("Eixo X\n");
  } else if (x == 0 && y == 0) {
    printf("Origem\n");
  }
  return 0;
}


x86 assembly (clang, -O0):
<main>:
push   %rbp
mov    %rsp,%rbp
sub    $0x10,%rsp
movl   $0x0,-0x4(%rbp)
lea    0xeca(%rip),%rdi
lea    -0x8(%rbp),%rsi
lea    -0xc(%rbp),%rdx
call   1040 <scanf@plt>
movss  -0x8(%rbp),%xmm0
xorps  %xmm1,%xmm1
ucomiss %xmm1,%xmm0
jbe    1176 <main+0x56>
movss  -0xc(%rbp),%xmm0
xorps  %xmm1,%xmm1
ucomiss %xmm1,%xmm0
jbe    1176 <main+0x56>
lea    0xe99(%rip),%rdi
call   1030 <printf@plt>
jmp    12df <main+0x1bf>
xorps  %xmm0,%xmm0
ucomiss -0x8(%rbp),%xmm0
jbe    11a5 <main+0x85>
movss  -0xc(%rbp),%xmm0
xorps  %xmm1,%xmm1
ucomiss %xmm1,%xmm0
jbe    11a5 <main+0x85>
lea    0xe6e(%rip),%rdi
call   1030 <printf@plt>
jmp    12da <main+0x1ba>
xorps  %xmm0,%xmm0
ucomiss -0x8(%rbp),%xmm0
jbe    11d0 <main+0xb0>
xorps  %xmm0,%xmm0
ucomiss -0xc(%rbp),%xmm0
jbe    11d0 <main+0xb0>
lea    0xe47(%rip),%rdi
call   1030 <printf@plt>
jmp    12d5 <main+0x1b5>
movss  -0x8(%rbp),%xmm0
xorps  %xmm1,%xmm1
ucomiss %xmm1,%xmm0
jbe    11ff <main+0xdf>
xorps  %xmm0,%xmm0
ucomiss -0xc(%rbp),%xmm0
jbe    11ff <main+0xdf>
lea    0xe1c(%rip),%rdi
call   1030 <printf@plt>
jmp    12d0 <main+0x1b0>
movss  -0x8(%rbp),%xmm0
xorps  %xmm1,%xmm1
ucomiss %xmm1,%xmm0
jne    1243 <main+0x123>
jp     1243 <main+0x123>
movss  -0xc(%rbp),%xmm0
xorps  %xmm1,%xmm1
ucomiss %xmm1,%xmm0
jne    1232 <main+0x112>
jp     1232 <main+0x112>
jmp    1243 <main+0x123>
lea    0xddc(%rip),%rdi
call   1030 <printf@plt>
jmp    12cb <main+0x1ab>
movss  -0x8(%rbp),%xmm0
xorps  %xmm1,%xmm1
ucomiss %xmm1,%xmm0
jne    125f <main+0x13f>
jp     125f <main+0x13f>
jmp    1287 <main+0x167>
movss  -0xc(%rbp),%xmm0
xorps  %xmm1,%xmm1
ucomiss %xmm1,%xmm0
jne    1287 <main+0x167>
jp     1287 <main+0x167>
lea    0xda0(%rip),%rdi
call   1030 <printf@plt>
jmp    12c6 <main+0x1a6>
movss  -0x8(%rbp),%xmm0
xorps  %xmm1,%xmm1
ucomiss %xmm1,%xmm0
jne    12c1 <main+0x1a1>
jp     12c1 <main+0x1a1>
movss  -0xc(%rbp),%xmm0
xorps  %xmm1,%xmm1
ucomiss %xmm1,%xmm0
jne    12c1 <main+0x1a1>
jp     12c1 <main+0x1a1>
lea    0xd69(%rip),%rdi
call   1030 <printf@plt>
jmp    12c6 <main+0x1a6>
jmp    12cb <main+0x1ab>
jmp    12d0 <main+0x1b0>
jmp    12d5 <main+0x1b5>
jmp    12da <main+0x1ba>
jmp    12df <main+0x1bf>
xor    %eax,%eax
add    $0x10,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<main>:
push   %rax
lea    0xed8(%rip),%rdi
lea    0x4(%rsp),%rsi
mov    %rsp,%rdx
call   1040 <scanf@plt>
movss  0x4(%rsp),%xmm1
xorps  %xmm2,%xmm2
ucomiss %xmm2,%xmm1
movss  (%rsp),%xmm0
jbe    1159 <main+0x39>
ucomiss %xmm2,%xmm0
jbe    1159 <main+0x39>
lea    0xecf(%rip),%rdi
jmp    11e7 <main+0xc7>
ucomiss %xmm1,%xmm2
jbe    116f <main+0x4f>
xorps  %xmm2,%xmm2
ucomiss %xmm2,%xmm0
jbe    116f <main+0x4f>
lea    0xeb3(%rip),%rdi
jmp    11e7 <main+0xc7>
xorps  %xmm2,%xmm2
ucomiss %xmm1,%xmm2
jbe    1185 <main+0x65>
ucomiss %xmm0,%xmm2
jbe    1185 <main+0x65>
lea    0xe9a(%rip),%rdi
jmp    11e7 <main+0xc7>
ucomiss %xmm2,%xmm1
jbe    119b <main+0x7b>
xorps  %xmm2,%xmm2
ucomiss %xmm0,%xmm2
jbe    119b <main+0x7b>
lea    0xe81(%rip),%rdi
jmp    11e7 <main+0xc7>
xorps  %xmm2,%xmm2
ucomiss %xmm2,%xmm1
jne    11b5 <main+0x95>
jp     11b5 <main+0x95>
ucomiss %xmm2,%xmm0
jne    11ac <main+0x8c>
jnp    11b5 <main+0x95>
lea    0xe60(%rip),%rdi
jmp    11e7 <main+0xc7>
ucomiss %xmm2,%xmm1
jne    11bc <main+0x9c>
jnp    11cf <main+0xaf>
xorps  %xmm2,%xmm2
ucomiss %xmm2,%xmm0
jne    11cf <main+0xaf>
jp     11cf <main+0xaf>
lea    0xe3f(%rip),%rdi
jmp    11e7 <main+0xc7>
xorps  %xmm2,%xmm2
ucomiss %xmm2,%xmm1
jne    11ec <main+0xcc>
jp     11ec <main+0xcc>
ucomiss %xmm2,%xmm0
jne    11ec <main+0xcc>
jp     11ec <main+0xcc>
lea    0xe1e(%rip),%rdi
call   1030 <puts@plt>
xor    %eax,%eax
pop    %rcx
ret

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

LLVM IR (-O2):
@.str = [5 x i8] c"%f%f\00"
@str = [7 x i8] c"Origem\00"
@str.8 = [7 x i8] c"Eixo X\00"
@str.9 = [7 x i8] c"Eixo Y\00"
@str.10 = [3 x i8] c"Q4\00"
@str.11 = [3 x i8] c"Q3\00"
@str.12 = [3 x i8] c"Q2\00"
@str.13 = [3 x i8] c"Q1\00"
define i32 @main() {
%1 = alloca float
%2 = alloca float
%3 = bitcast float* %1 to i8*
%4 = bitcast float* %2 to i8*
%5 = call i32 @scanf(i8* getelementptr inbounds ([5 x i8], [5 x i8]* @.str, i64 0, i64 0), float* %1, float* %2)
%6 = load float, float* %1
%7 = fcmp ogt float %6, 0.000000e+00
%8 = load float, float* %2
%9 = fcmp ogt float %8, 0.000000e+00
%10 = select i1 %7, i1 %9, i1 false
br i1 %10, label %29, label %11
11: ; preds = %0
%12 = fcmp olt float %6, 0.000000e+00
%13 = select i1 %12, i1 %9, i1 false
br i1 %13, label %29, label %14
14: ; preds = %11
%15 = fcmp olt float %8, 0.000000e+00
%16 = select i1 %12, i1 %15, i1 false
br i1 %16, label %29, label %17
17: ; preds = %14
%18 = select i1 %7, i1 %15, i1 false
br i1 %18, label %29, label %19
19: ; preds = %17
%20 = fcmp oeq float %6, 0.000000e+00
%21 = fcmp une float %8, 0.000000e+00
%22 = select i1 %20, i1 %21, i1 false
br i1 %22, label %29, label %23
23: ; preds = %19
%24 = fcmp une float %6, 0.000000e+00
%25 = fcmp oeq float %8, 0.000000e+00
%26 = select i1 %24, i1 %25, i1 false
br i1 %26, label %29, label %27
27: ; preds = %23
%28 = select i1 %20, i1 %25, i1 false
br i1 %28, label %29, label %32
29: ; preds = %27, %23, %19, %17, %14, %11, %0
%30 = phi i8* [ getelementptr inbounds ([3 x i8], [3 x i8]* @str.13, i64 0, i64 0), %0 ], [ getelementptr inbounds ([3 x i8], [3 x i8]* @str.12, i64 0, i64 0), %11 ], [ getelementptr inbounds ([3 x i8], [3 x i8]* @str.11, i64 0, i64 0), %14 ], [ getelementptr inbounds ([3 x i8], [3 x i8]* @str.10, i64 0, i64 0), %17 ], [ getelementptr inbounds ([7 x i8], [7 x i8]* @str.9, i64 0, i64 0), %19 ], [ getelementptr inbounds ([7 x i8], [7 x i8]* @str.8, i64 0, i64 0), %23 ], [ getelementptr inbounds ([7 x i8], [7 x i8]* @str, i64 0, i64 0), %27 ]
%31 = call i32 @puts(i8* dereferenceable(1) %30)
br label %32
32: ; preds = %29, %27
ret i32 0
}