#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(int argc, char const *argv[]) {
  float ponto_x, ponto_y;
  scanf("%f %f", &ponto_x, &ponto_y);
  if (ponto_x == 0 && ponto_y == 0) {
    printf("Origem\n");
  } else if (ponto_x == 0) {
    printf("Eixo Y\n");
  } else if (ponto_y == 0) {
    printf("Eixo X\n");
  } else if (ponto_x > 0 && ponto_y > 0) {
    printf("Q1\n");
  } else if (ponto_x < 0 && ponto_y > 0) {
    printf("Q2\n");
  } else if (ponto_x < 0 && ponto_y < 0) {
    printf("Q3\n");
  } else {
    printf("Q4\n");
  }
  return 0;
}


x86 assembly (clang, -O0):
<main>:
push   %rbp
mov    %rsp,%rbp
sub    $0x20,%rsp
movl   $0x0,-0x4(%rbp)
mov    %edi,-0x8(%rbp)
mov    %rsi,-0x10(%rbp)
lea    0xec3(%rip),%rdi
lea    -0x14(%rbp),%rsi
lea    -0x18(%rbp),%rdx
call   1040 <scanf@plt>
movss  -0x14(%rbp),%xmm0
xorps  %xmm1,%xmm1
ucomiss %xmm1,%xmm0
jne    1189 <main+0x69>
jp     1189 <main+0x69>
movss  -0x18(%rbp),%xmm0
xorps  %xmm1,%xmm1
ucomiss %xmm1,%xmm0
jne    1189 <main+0x69>
jp     1189 <main+0x69>
lea    0xe87(%rip),%rdi
call   1030 <printf@plt>
jmp    128b <main+0x16b>
movss  -0x14(%rbp),%xmm0
xorps  %xmm1,%xmm1
ucomiss %xmm1,%xmm0
jne    11b1 <main+0x91>
jp     11b1 <main+0x91>
lea    0xe67(%rip),%rdi
call   1030 <printf@plt>
jmp    1286 <main+0x166>
movss  -0x18(%rbp),%xmm0
xorps  %xmm1,%xmm1
ucomiss %xmm1,%xmm0
jne    11d9 <main+0xb9>
jp     11d9 <main+0xb9>
lea    0xe47(%rip),%rdi
call   1030 <printf@plt>
jmp    1281 <main+0x161>
movss  -0x14(%rbp),%xmm0
xorps  %xmm1,%xmm1
ucomiss %xmm1,%xmm0
jbe    120c <main+0xec>
movss  -0x18(%rbp),%xmm0
xorps  %xmm1,%xmm1
ucomiss %xmm1,%xmm0
jbe    120c <main+0xec>
lea    0xe1c(%rip),%rdi
call   1030 <printf@plt>
jmp    127c <main+0x15c>
xorps  %xmm0,%xmm0
ucomiss -0x14(%rbp),%xmm0
jbe    123b <main+0x11b>
movss  -0x18(%rbp),%xmm0
xorps  %xmm1,%xmm1
ucomiss %xmm1,%xmm0
jbe    123b <main+0x11b>
lea    0xdf1(%rip),%rdi
call   1030 <printf@plt>
jmp    1277 <main+0x157>
xorps  %xmm0,%xmm0
ucomiss -0x14(%rbp),%xmm0
jbe    1266 <main+0x146>
xorps  %xmm0,%xmm0
ucomiss -0x18(%rbp),%xmm0
jbe    1266 <main+0x146>
lea    0xdca(%rip),%rdi
call   1030 <printf@plt>
jmp    1272 <main+0x152>
lea    0xdbd(%rip),%rdi
call   1030 <printf@plt>
jmp    1277 <main+0x157>
jmp    127c <main+0x15c>
jmp    1281 <main+0x161>
jmp    1286 <main+0x166>
jmp    128b <main+0x16b>
xor    %eax,%eax
add    $0x20,%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),%xmm0
movss  (%rsp),%xmm1
xorps  %xmm2,%xmm2
ucomiss %xmm1,%xmm2
lea    0xecc(%rip),%rax
lea    0xecc(%rip),%rdi
cmovne %rax,%rdi
cmovp  %rax,%rdi
ucomiss %xmm0,%xmm2
cmovne %rax,%rdi
cmovp  %rax,%rdi
lea    0xea4(%rip),%rax
cmovne %rax,%rdi
cmovp  %rax,%rdi
ucomiss %xmm2,%xmm0
jne    117d <main+0x5d>
jnp    11cf <main+0xaf>
ucomiss %xmm2,%xmm1
jne    1184 <main+0x64>
jnp    11cf <main+0xaf>
xorps  %xmm2,%xmm2
ucomiss %xmm2,%xmm0
jbe    119a <main+0x7a>
ucomiss %xmm2,%xmm1
jbe    119a <main+0x7a>
lea    0xe77(%rip),%rdi
jmp    11cf <main+0xaf>
ucomiss %xmm0,%xmm2
jbe    11b0 <main+0x90>
xorps  %xmm2,%xmm2
ucomiss %xmm2,%xmm1
jbe    11b0 <main+0x90>
lea    0xe5e(%rip),%rdi
jmp    11cf <main+0xaf>
xorps  %xmm2,%xmm2
ucomiss %xmm1,%xmm2
lea    0xe4c(%rip),%rdi
lea    0xe42(%rip),%rax
cmovbe %rax,%rdi
ucomiss %xmm0,%xmm2
cmovbe %rax,%rdi
call   1030 <puts@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 = [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"
define i32 @main(i32 %0, i8** %1) {
%3 = alloca i32
%4 = alloca i32
%5 = alloca i8**
%6 = alloca float
%7 = alloca float
store i32 0, i32* %3
store i32 %0, i32* %4
store i8** %1, i8*** %5
%8 = call i32 @scanf(i8* getelementptr inbounds ([6 x i8], [6 x i8]* @.str, i64 0, i64 0), float* %6, float* %7)
%9 = load float, float* %6
%10 = fcmp oeq float %9, 0.000000e+00
br i1 %10, label %11, label %16
11: ; preds = %2
%12 = load float, float* %7
%13 = fcmp oeq float %12, 0.000000e+00
br i1 %13, label %14, label %16
14: ; preds = %11
%15 = call i32 @printf(i8* getelementptr inbounds ([8 x i8], [8 x i8]* @.str.1, i64 0, i64 0))
br label %57
16: ; preds = %11, %2
%17 = load float, float* %6
%18 = fcmp oeq float %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 %56
21: ; preds = %16
%22 = load float, float* %7
%23 = fcmp oeq float %22, 0.000000e+00
br i1 %23, label %24, label %26
24: ; preds = %21
%25 = call i32 @printf(i8* getelementptr inbounds ([8 x i8], [8 x i8]* @.str.3, i64 0, i64 0))
br label %55
26: ; preds = %21
%27 = load float, float* %6
%28 = fcmp ogt float %27, 0.000000e+00
br i1 %28, label %29, label %34
29: ; preds = %26
%30 = load float, float* %7
%31 = fcmp ogt float %30, 0.000000e+00
br i1 %31, label %32, label %34
32: ; preds = %29
%33 = call i32 @printf(i8* getelementptr inbounds ([4 x i8], [4 x i8]* @.str.4, i64 0, i64 0))
br label %54
34: ; preds = %29, %26
%35 = load float, float* %6
%36 = fcmp olt float %35, 0.000000e+00
br i1 %36, label %37, label %42
37: ; preds = %34
%38 = load float, float* %7
%39 = fcmp ogt float %38, 0.000000e+00
br i1 %39, label %40, label %42
40: ; preds = %37
%41 = call i32 @printf(i8* getelementptr inbounds ([4 x i8], [4 x i8]* @.str.5, i64 0, i64 0))
br label %53
42: ; preds = %37, %34
%43 = load float, float* %6
%44 = fcmp olt float %43, 0.000000e+00
br i1 %44, label %45, label %50
45: ; preds = %42
%46 = load float, float* %7
%47 = fcmp olt float %46, 0.000000e+00
br i1 %47, label %48, label %50
48: ; preds = %45
%49 = call i32 @printf(i8* getelementptr inbounds ([4 x i8], [4 x i8]* @.str.6, i64 0, i64 0))
br label %52
50: ; preds = %45, %42
%51 = call i32 @printf(i8* getelementptr inbounds ([4 x i8], [4 x i8]* @.str.7, i64 0, i64 0))
br label %52
52: ; preds = %50, %48
br label %53
53: ; preds = %52, %40
br label %54
54: ; preds = %53, %32
br label %55
55: ; preds = %54, %24
br label %56
56: ; preds = %55, %19
br label %57
57: ; preds = %56, %14
ret i32 0
}

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