#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("Origem\n");
  } else if (x == 0) {
    printf("Eixo Y\n");
  } else if (y == 0) {
    printf("Eixo X\n");
  } else if (y > 0) {
    printf("Q%d\n", (x < 0) ? 2 : 1);
  } else {
    printf("Q%d\n", (x < 0) ? 3 : 4);
  }
  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
jne    1184 <main+0x64>
jp     1184 <main+0x64>
movss  -0xc(%rbp),%xmm0
xorps  %xmm1,%xmm1
ucomiss %xmm1,%xmm0
jne    1184 <main+0x64>
jp     1184 <main+0x64>
lea    0xe8e(%rip),%rdi
mov    $0x0,%al
call   1030 <printf@plt>
jmp    1249 <main+0x129>
movss  -0x8(%rbp),%xmm0
xorps  %xmm1,%xmm1
ucomiss %xmm1,%xmm0
jne    11ae <main+0x8e>
jp     11ae <main+0x8e>
lea    0xe6c(%rip),%rdi
mov    $0x0,%al
call   1030 <printf@plt>
jmp    1244 <main+0x124>
movss  -0xc(%rbp),%xmm0
xorps  %xmm1,%xmm1
ucomiss %xmm1,%xmm0
jne    11d8 <main+0xb8>
jp     11d8 <main+0xb8>
lea    0xe4a(%rip),%rdi
mov    $0x0,%al
call   1030 <printf@plt>
jmp    123f <main+0x11f>
movss  -0xc(%rbp),%xmm0
xorps  %xmm1,%xmm1
ucomiss %xmm1,%xmm0
jbe    1214 <main+0xf4>
movss  -0x8(%rbp),%xmm1
xorps  %xmm0,%xmm0
mov    $0x1,%esi
mov    $0x2,%eax
ucomiss %xmm1,%xmm0
cmova  %eax,%esi
lea    0xe16(%rip),%rdi
mov    $0x0,%al
call   1030 <printf@plt>
jmp    123a <main+0x11a>
movss  -0x8(%rbp),%xmm1
xorps  %xmm0,%xmm0
mov    $0x4,%esi
mov    $0x3,%eax
ucomiss %xmm1,%xmm0
cmova  %eax,%esi
lea    0xdeb(%rip),%rdi
mov    $0x0,%al
call   1030 <printf@plt>
jmp    123f <main+0x11f>
jmp    1244 <main+0x124>
jmp    1249 <main+0x129>
xor    %eax,%eax
add    $0x10,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<main>:
push   %rax
lea    0xec8(%rip),%rdi
lea    0x4(%rsp),%rsi
mov    %rsp,%rdx
call   1050 <scanf@plt>
movss  0x4(%rsp),%xmm0
xorps  %xmm2,%xmm2
ucomiss %xmm2,%xmm0
movss  (%rsp),%xmm1
jne    116f <main+0x3f>
jp     116f <main+0x3f>
ucomiss %xmm2,%xmm1
jne    116f <main+0x3f>
jp     116f <main+0x3f>
lea    0xeb1(%rip),%rdi
call   1030 <puts@plt>
jmp    11cc <main+0x9c>
ucomiss %xmm2,%xmm0
jne    1184 <main+0x54>
jp     1184 <main+0x54>
lea    0xe95(%rip),%rdi
call   1030 <puts@plt>
jmp    11cc <main+0x9c>
xorps  %xmm2,%xmm2
ucomiss %xmm2,%xmm1
jne    119c <main+0x6c>
jp     119c <main+0x6c>
lea    0xe76(%rip),%rdi
call   1030 <puts@plt>
jmp    11cc <main+0x9c>
xorps  %xmm1,%xmm1
jbe    11af <main+0x7f>
xor    %esi,%esi
ucomiss %xmm0,%xmm1
seta   %sil
add    $0x1,%esi
jmp    11be <main+0x8e>
xor    %eax,%eax
ucomiss %xmm0,%xmm1
seta   %al
mov    $0x4,%esi
sub    %eax,%esi
lea    0xe41(%rip),%rdi
xor    %eax,%eax
call   1040 <printf@plt>
xor    %eax,%eax
pop    %rcx
ret

LLVM IR (-O0):
@.str = [6 x i8] c"%f %f\00"
@.str.1 = [8 x i8] c"Origem\0A\00"
@.str.2 = [8 x i8] c"Eixo Y\0A\00"
@.str.3 = [8 x i8] c"Eixo X\0A\00"
@.str.4 = [5 x i8] c"Q%d\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 ([6 x i8], [6 x i8]* @.str, i64 0, i64 0), float* %2, float* %3)
%5 = load float, float* %2
%6 = fcmp oeq float %5, 0.000000e+00
br i1 %6, label %7, label %12
7: ; preds = %0
%8 = load float, float* %3
%9 = fcmp oeq float %8, 0.000000e+00
br i1 %9, label %10, label %12
10: ; preds = %7
%11 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([8 x i8], [8 x i8]* @.str.1, i64 0, i64 0))
br label %40
12: ; preds = %7, %0
%13 = load float, float* %2
%14 = fcmp oeq float %13, 0.000000e+00
br i1 %14, label %15, label %17
15: ; preds = %12
%16 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([8 x i8], [8 x i8]* @.str.2, i64 0, i64 0))
br label %39
17: ; preds = %12
%18 = load float, float* %3
%19 = fcmp oeq float %18, 0.000000e+00
br i1 %19, label %20, label %22
20: ; preds = %17
%21 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([8 x i8], [8 x i8]* @.str.3, i64 0, i64 0))
br label %38
22: ; preds = %17
%23 = load float, float* %3
%24 = fcmp ogt float %23, 0.000000e+00
br i1 %24, label %25, label %31
25: ; preds = %22
%26 = load float, float* %2
%27 = fcmp olt float %26, 0.000000e+00
%28 = zext i1 %27 to i64
%29 = select i1 %27, i32 2, i32 1
%30 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([5 x i8], [5 x i8]* @.str.4, i64 0, i64 0), i32 %29)
br label %37
31: ; preds = %22
%32 = load float, float* %2
%33 = fcmp olt float %32, 0.000000e+00
%34 = zext i1 %33 to i64
%35 = select i1 %33, i32 3, i32 4
%36 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([5 x i8], [5 x i8]* @.str.4, i64 0, i64 0), i32 %35)
br label %37
37: ; preds = %31, %25
br label %38
38: ; preds = %37, %20
br label %39
39: ; preds = %38, %15
br label %40
40: ; preds = %39, %10
ret i32 0
}

LLVM IR (-O2):
@.str = [6 x i8] c"%f %f\00"
@.str.4 = [5 x i8] c"Q%d\0A\00"
@str = [7 x i8] c"Eixo X\00"
@str.5 = [7 x i8] c"Eixo Y\00"
@str.6 = [7 x i8] c"Origem\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 ([6 x i8], [6 x i8]* @.str, i64 0, i64 0), float* %1, float* %2)
%6 = load float, float* %1
%7 = fcmp oeq float %6, 0.000000e+00
%8 = load float, float* %2
%9 = fcmp oeq float %8, 0.000000e+00
%10 = select i1 %7, i1 %9, i1 false
br i1 %10, label %11, label %13
11: ; preds = %0
%12 = call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([7 x i8], [7 x i8]* @str.6, i64 0, i64 0))
br label %28
13: ; preds = %0
br i1 %7, label %14, label %16
14: ; preds = %13
%15 = call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([7 x i8], [7 x i8]* @str.5, i64 0, i64 0))
br label %28
16: ; preds = %13
br i1 %9, label %17, label %19
17: ; preds = %16
%18 = call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([7 x i8], [7 x i8]* @str, i64 0, i64 0))
br label %28
19: ; preds = %16
%20 = fcmp ogt float %8, 0.000000e+00
%21 = fcmp olt float %6, 0.000000e+00
br i1 %20, label %22, label %25
22: ; preds = %19
%23 = select i1 %21, i32 2, i32 1
%24 = call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([5 x i8], [5 x i8]* @.str.4, i64 0, i64 0), i32 %23)
br label %28
25: ; preds = %19
%26 = select i1 %21, i32 3, i32 4
%27 = call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([5 x i8], [5 x i8]* @.str.4, i64 0, i64 0), i32 %26)
br label %28
28: ; preds = %14, %22, %25, %17, %11
ret i32 0
}