#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(void) {
  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 (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");
  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    1182 <main+0x62>
jp     1182 <main+0x62>
movss  -0xc(%rbp),%xmm0
xorps  %xmm1,%xmm1
ucomiss %xmm1,%xmm0
jne    1182 <main+0x62>
jp     1182 <main+0x62>
lea    0xe8e(%rip),%rdi
call   1030 <printf@plt>
jmp    12a7 <main+0x187>
movss  -0x8(%rbp),%xmm0
xorps  %xmm1,%xmm1
ucomiss %xmm1,%xmm0
jne    11aa <main+0x8a>
jp     11aa <main+0x8a>
lea    0xe6e(%rip),%rdi
call   1030 <printf@plt>
jmp    12a2 <main+0x182>
movss  -0xc(%rbp),%xmm0
xorps  %xmm1,%xmm1
ucomiss %xmm1,%xmm0
jne    11d2 <main+0xb2>
jp     11d2 <main+0xb2>
lea    0xe4e(%rip),%rdi
call   1030 <printf@plt>
jmp    129d <main+0x17d>
movss  -0x8(%rbp),%xmm0
xorps  %xmm1,%xmm1
ucomiss %xmm1,%xmm0
jbe    1205 <main+0xe5>
movss  -0xc(%rbp),%xmm0
xorps  %xmm1,%xmm1
ucomiss %xmm1,%xmm0
jbe    1205 <main+0xe5>
lea    0xe23(%rip),%rdi
call   1030 <printf@plt>
jmp    1298 <main+0x178>
xorps  %xmm0,%xmm0
ucomiss -0x8(%rbp),%xmm0
jbe    1234 <main+0x114>
movss  -0xc(%rbp),%xmm0
xorps  %xmm1,%xmm1
ucomiss %xmm1,%xmm0
jbe    1234 <main+0x114>
lea    0xdf8(%rip),%rdi
call   1030 <printf@plt>
jmp    1293 <main+0x173>
xorps  %xmm0,%xmm0
ucomiss -0x8(%rbp),%xmm0
jbe    125f <main+0x13f>
xorps  %xmm0,%xmm0
ucomiss -0xc(%rbp),%xmm0
jbe    125f <main+0x13f>
lea    0xdd1(%rip),%rdi
call   1030 <printf@plt>
jmp    128e <main+0x16e>
movss  -0x8(%rbp),%xmm0
xorps  %xmm1,%xmm1
ucomiss %xmm1,%xmm0
jbe    1289 <main+0x169>
xorps  %xmm0,%xmm0
ucomiss -0xc(%rbp),%xmm0
jbe    1289 <main+0x169>
lea    0xda6(%rip),%rdi
call   1030 <printf@plt>
jmp    128e <main+0x16e>
jmp    1293 <main+0x173>
jmp    1298 <main+0x178>
jmp    129d <main+0x17d>
jmp    12a2 <main+0x182>
jmp    12a7 <main+0x187>
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
movss  (%rsp),%xmm0
xorps  %xmm2,%xmm2
ucomiss %xmm0,%xmm2
lea    0xecc(%rip),%rax
lea    0xecc(%rip),%rdi
cmovne %rax,%rdi
cmovp  %rax,%rdi
ucomiss %xmm1,%xmm2
cmovne %rax,%rdi
cmovp  %rax,%rdi
lea    0xea4(%rip),%rax
cmovne %rax,%rdi
cmovp  %rax,%rdi
ucomiss %xmm2,%xmm1
jne    117d <main+0x5d>
jnp    11da <main+0xba>
ucomiss %xmm2,%xmm0
jne    1184 <main+0x64>
jnp    11da <main+0xba>
xorps  %xmm2,%xmm2
ucomiss %xmm2,%xmm1
jbe    119a <main+0x7a>
ucomiss %xmm2,%xmm0
jbe    119a <main+0x7a>
lea    0xe77(%rip),%rdi
jmp    11da <main+0xba>
ucomiss %xmm1,%xmm2
jbe    11b0 <main+0x90>
xorps  %xmm2,%xmm2
ucomiss %xmm2,%xmm0
jbe    11b0 <main+0x90>
lea    0xe5e(%rip),%rdi
jmp    11da <main+0xba>
xorps  %xmm2,%xmm2
ucomiss %xmm1,%xmm2
jbe    11c6 <main+0xa6>
ucomiss %xmm0,%xmm2
jbe    11c6 <main+0xa6>
lea    0xe45(%rip),%rdi
jmp    11da <main+0xba>
ucomiss %xmm2,%xmm1
jbe    11df <main+0xbf>
xorps  %xmm1,%xmm1
ucomiss %xmm0,%xmm1
jbe    11df <main+0xbf>
lea    0xe2c(%rip),%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() {
%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 @printf(i8* getelementptr inbounds ([8 x i8], [8 x i8]* @.str.1, i64 0, i64 0))
br label %60
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 @printf(i8* getelementptr inbounds ([8 x i8], [8 x i8]* @.str.2, i64 0, i64 0))
br label %59
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 @printf(i8* getelementptr inbounds ([8 x i8], [8 x i8]* @.str.3, i64 0, i64 0))
br label %58
22: ; preds = %17
%23 = load float, float* %2
%24 = fcmp ogt float %23, 0.000000e+00
br i1 %24, label %25, label %30
25: ; preds = %22
%26 = load float, float* %3
%27 = fcmp ogt float %26, 0.000000e+00
br i1 %27, label %28, label %30
28: ; preds = %25
%29 = call i32 @printf(i8* getelementptr inbounds ([4 x i8], [4 x i8]* @.str.4, i64 0, i64 0))
br label %57
30: ; preds = %25, %22
%31 = load float, float* %2
%32 = fcmp olt float %31, 0.000000e+00
br i1 %32, label %33, label %38
33: ; preds = %30
%34 = load float, float* %3
%35 = fcmp ogt float %34, 0.000000e+00
br i1 %35, label %36, label %38
36: ; preds = %33
%37 = call i32 @printf(i8* getelementptr inbounds ([4 x i8], [4 x i8]* @.str.5, i64 0, i64 0))
br label %56
38: ; preds = %33, %30
%39 = load float, float* %2
%40 = fcmp olt float %39, 0.000000e+00
br i1 %40, label %41, label %46
41: ; preds = %38
%42 = load float, float* %3
%43 = fcmp olt float %42, 0.000000e+00
br i1 %43, label %44, label %46
44: ; preds = %41
%45 = call i32 @printf(i8* getelementptr inbounds ([4 x i8], [4 x i8]* @.str.6, i64 0, i64 0))
br label %55
46: ; preds = %41, %38
%47 = load float, float* %2
%48 = fcmp ogt float %47, 0.000000e+00
br i1 %48, label %49, label %54
49: ; preds = %46
%50 = load float, float* %3
%51 = fcmp olt float %50, 0.000000e+00
br i1 %51, label %52, label %54
52: ; preds = %49
%53 = call i32 @printf(i8* getelementptr inbounds ([4 x i8], [4 x i8]* @.str.7, i64 0, i64 0))
br label %54
54: ; preds = %52, %49, %46
br label %55
55: ; preds = %54, %44
br label %56
56: ; preds = %55, %36
br label %57
57: ; preds = %56, %28
br label %58
58: ; preds = %57, %20
br label %59
59: ; preds = %58, %15
br label %60
60: ; preds = %59, %10
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() {
%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
%11 = select i1 %10, 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)
%12 = select i1 %7, i1 true, i1 %9
%13 = select i1 %7, i8* %11, i8* getelementptr inbounds ([7 x i8], [7 x i8]* @str.11, i64 0, i64 0)
br i1 %12, label %26, label %14
14: ; preds = %0
%15 = fcmp ogt float %6, 0.000000e+00
%16 = fcmp ogt float %8, 0.000000e+00
%17 = select i1 %15, i1 %16, i1 false
br i1 %17, label %26, label %18
18: ; preds = %14
%19 = fcmp olt float %6, 0.000000e+00
%20 = select i1 %19, i1 %16, i1 false
br i1 %20, label %26, label %21
21: ; preds = %18
%22 = fcmp olt float %8, 0.000000e+00
%23 = select i1 %19, i1 %22, i1 false
br i1 %23, label %26, label %24
24: ; preds = %21
%25 = select i1 %15, i1 %22, i1 false
br i1 %25, label %26, label %29
26: ; preds = %0, %24, %21, %18, %14
%27 = phi i8* [ %13, %0 ], [ getelementptr inbounds ([3 x i8], [3 x i8]* @str.10, i64 0, i64 0), %14 ], [ getelementptr inbounds ([3 x i8], [3 x i8]* @str.9, i64 0, i64 0), %18 ], [ getelementptr inbounds ([3 x i8], [3 x i8]* @str.8, i64 0, i64 0), %21 ], [ getelementptr inbounds ([3 x i8], [3 x i8]* @str, i64 0, i64 0), %24 ]
%28 = call i32 @puts(i8* dereferenceable(1) %27)
br label %29
29: ; preds = %26, %24
ret i32 0
}