#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 EXIT_SUCCESS;
int /*<<< orphan*/ printf(char *);
int /*<<< orphan*/ scanf(char *, float *, float *);
int main(int argc, char **argv) {
  float x, y;
  scanf("%f %f", &x, &y);
  if (x == 0) {
    if (y == 0) {
      printf("Origem\n");
    } else {
      printf("Eixo Y\n");
    }
  } else if (y == 0) {
    printf("Eixo X\n");
  } else if (x > 0) {
    if (y > 0) {
      printf("Q1\n");
    } else {
      printf("Q4\n");
    }
  } else {
    if (y > 0) {
      printf("Q2\n");
    } else {
      printf("Q3\n");
    }
  }
  return (EXIT_SUCCESS);
}


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    119a <main+0x7a>
jp     119a <main+0x7a>
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    1195 <main+0x75>
lea    0xe7e(%rip),%rdi
call   1030 <printf@plt>
jmp    1243 <main+0x123>
movss  -0x18(%rbp),%xmm0
xorps  %xmm1,%xmm1
ucomiss %xmm1,%xmm0
jne    11c2 <main+0xa2>
jp     11c2 <main+0xa2>
lea    0xe5e(%rip),%rdi
call   1030 <printf@plt>
jmp    123e <main+0x11e>
movss  -0x14(%rbp),%xmm0
xorps  %xmm1,%xmm1
ucomiss %xmm1,%xmm0
jbe    1206 <main+0xe6>
movss  -0x18(%rbp),%xmm0
xorps  %xmm1,%xmm1
ucomiss %xmm1,%xmm0
jbe    11f5 <main+0xd5>
lea    0xe33(%rip),%rdi
call   1030 <printf@plt>
jmp    1201 <main+0xe1>
lea    0xe26(%rip),%rdi
call   1030 <printf@plt>
jmp    1239 <main+0x119>
movss  -0x18(%rbp),%xmm0
xorps  %xmm1,%xmm1
ucomiss %xmm1,%xmm0
jbe    1228 <main+0x108>
lea    0xe08(%rip),%rdi
call   1030 <printf@plt>
jmp    1234 <main+0x114>
lea    0xdfb(%rip),%rdi
call   1030 <printf@plt>
jmp    1239 <main+0x119>
jmp    123e <main+0x11e>
jmp    1243 <main+0x123>
mov    0x2d96(%rip),%rax
mov    (%rax),%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),%xmm1
xorps  %xmm2,%xmm2
ucomiss %xmm2,%xmm1
movss  (%rsp),%xmm0
jne    1165 <main+0x45>
jp     1165 <main+0x45>
ucomiss %xmm2,%xmm0
lea    0xec5(%rip),%rax
lea    0xec5(%rip),%rdi
cmovne %rax,%rdi
cmovp  %rax,%rdi
jmp    11a5 <main+0x85>
ucomiss %xmm2,%xmm0
jne    1175 <main+0x55>
jp     1175 <main+0x55>
lea    0xe9f(%rip),%rdi
jmp    11a5 <main+0x85>
xorps  %xmm2,%xmm2
ucomiss %xmm2,%xmm1
jbe    1190 <main+0x70>
ucomiss %xmm2,%xmm0
lea    0xe88(%rip),%rax
lea    0xe7e(%rip),%rdi
jmp    11a1 <main+0x81>
ucomiss %xmm2,%xmm0
lea    0xe6f(%rip),%rax
lea    0xe65(%rip),%rdi
cmova  %rax,%rdi
call   1030 <puts@plt>
mov    0x2e2f(%rip),%rax
mov    (%rax),%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"Q4\0A\00"
@.str.6 = [4 x i8] c"Q2\0A\00"
@.str.7 = [4 x i8] c"Q3\0A\00"
@EXIT_SUCCESS = global i32 0
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 %19
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 %18
16: ; preds = %11
%17 = call i32 @printf(i8* getelementptr inbounds ([8 x i8], [8 x i8]* @.str.2, i64 0, i64 0))
br label %18
18: ; preds = %16, %14
br label %45
19: ; preds = %2
%20 = load float, float* %7
%21 = fcmp oeq float %20, 0.000000e+00
br i1 %21, label %22, label %24
22: ; preds = %19
%23 = call i32 @printf(i8* getelementptr inbounds ([8 x i8], [8 x i8]* @.str.3, i64 0, i64 0))
br label %44
24: ; preds = %19
%25 = load float, float* %6
%26 = fcmp ogt float %25, 0.000000e+00
br i1 %26, label %27, label %35
27: ; preds = %24
%28 = load float, float* %7
%29 = fcmp ogt float %28, 0.000000e+00
br i1 %29, label %30, label %32
30: ; preds = %27
%31 = call i32 @printf(i8* getelementptr inbounds ([4 x i8], [4 x i8]* @.str.4, i64 0, i64 0))
br label %34
32: ; preds = %27
%33 = call i32 @printf(i8* getelementptr inbounds ([4 x i8], [4 x i8]* @.str.5, i64 0, i64 0))
br label %34
34: ; preds = %32, %30
br label %43
35: ; preds = %24
%36 = load float, float* %7
%37 = fcmp ogt float %36, 0.000000e+00
br i1 %37, label %38, label %40
38: ; preds = %35
%39 = call i32 @printf(i8* getelementptr inbounds ([4 x i8], [4 x i8]* @.str.6, i64 0, i64 0))
br label %42
40: ; preds = %35
%41 = call i32 @printf(i8* getelementptr inbounds ([4 x i8], [4 x i8]* @.str.7, i64 0, i64 0))
br label %42
42: ; preds = %40, %38
br label %43
43: ; preds = %42, %34
br label %44
44: ; preds = %43, %22
br label %45
45: ; preds = %44, %18
%46 = load i32, i32* @EXIT_SUCCESS
ret i32 %46
}

LLVM IR (-O2):
@.str = [6 x i8] c"%f %f\00"
@EXIT_SUCCESS = global i32 0
@str = [3 x i8] c"Q3\00"
@str.8 = [3 x i8] c"Q2\00"
@str.9 = [3 x i8] c"Q4\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
br i1 %9, label %12, label %14
12: ; preds = %2
%13 = select i1 %11, 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)
br label %22
14: ; preds = %2
br i1 %11, label %22, label %15
15: ; preds = %14
%16 = fcmp ogt float %8, 0.000000e+00
%17 = fcmp ogt float %10, 0.000000e+00
br i1 %16, label %18, label %20
18: ; preds = %15
%19 = select i1 %17, i8* getelementptr inbounds ([3 x i8], [3 x i8]* @str.10, i64 0, i64 0), i8* getelementptr inbounds ([3 x i8], [3 x i8]* @str.9, i64 0, i64 0)
br label %22
20: ; preds = %15
%21 = select i1 %17, 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 %22
22: ; preds = %20, %18, %14, %12
%23 = phi i8* [ %13, %12 ], [ getelementptr inbounds ([7 x i8], [7 x i8]* @str.11, i64 0, i64 0), %14 ], [ %19, %18 ], [ %21, %20 ]
%24 = call i32 @puts(i8* dereferenceable(1) %23)
%25 = load i32, i32* @EXIT_SUCCESS
ret i32 %25
}