#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 *);
void imprimirRegiao(int x, int y) {
  if (x == 0 || y == 0) {
    printf("divisa\n");
  } else {
    if (x > 0) {
      if (y > 0) {
        printf("NE\n");
      } else {
        printf("SE\n");
      }
    } else {
      if (y > 0) {
        printf("NO\n");
      } else {
        printf("SO\n");
      }
    }
  }
}


x86 assembly (clang, -O0):
<imprimirRegiao>:
push   %rbp
mov    %rsp,%rbp
sub    $0x10,%rsp
mov    %edi,-0x4(%rbp)
mov    %esi,-0x8(%rbp)
cmpl   $0x0,-0x4(%rbp)
je     1132 <imprimirRegiao+0x22>
cmpl   $0x0,-0x8(%rbp)
jne    1143 <imprimirRegiao+0x33>
lea    0xec7(%rip),%rdi
call   1030 <printf@plt>
jmp    11aa <imprimirRegiao+0x9a>
cmpl   $0x0,-0x4(%rbp)
jle    1179 <imprimirRegiao+0x69>
cmpl   $0x0,-0x8(%rbp)
jle    1168 <imprimirRegiao+0x58>
lea    0xeaa(%rip),%rdi
call   1030 <printf@plt>
jmp    1174 <imprimirRegiao+0x64>
lea    0xe9d(%rip),%rdi
call   1030 <printf@plt>
jmp    11a5 <imprimirRegiao+0x95>
cmpl   $0x0,-0x8(%rbp)
jle    1194 <imprimirRegiao+0x84>
lea    0xe86(%rip),%rdi
call   1030 <printf@plt>
jmp    11a0 <imprimirRegiao+0x90>
lea    0xe79(%rip),%rdi
call   1030 <printf@plt>
jmp    11a5 <imprimirRegiao+0x95>
jmp    11aa <imprimirRegiao+0x9a>
add    $0x10,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<imprimirRegiao>:
mov    %edi,%eax
lea    0xef3(%rip),%rdi
test   %eax,%eax
je     114b <imprimirRegiao+0x3b>
test   %esi,%esi
je     114b <imprimirRegiao+0x3b>
test   %eax,%eax
jle    1137 <imprimirRegiao+0x27>
test   %esi,%esi
lea    0xedb(%rip),%rax
lea    0xed1(%rip),%rdi
jmp    1147 <imprimirRegiao+0x37>
test   %esi,%esi
lea    0xec3(%rip),%rax
lea    0xeb9(%rip),%rdi
cmovg  %rax,%rdi
jmp    1030 <puts@plt>

LLVM IR (-O0):
@.str = [8 x i8] c"divisa\0A\00"
@.str.1 = [4 x i8] c"NE\0A\00"
@.str.2 = [4 x i8] c"SE\0A\00"
@.str.3 = [4 x i8] c"NO\0A\00"
@.str.4 = [4 x i8] c"SO\0A\00"
define void @imprimirRegiao(i32 %0, i32 %1) {
%3 = alloca i32
%4 = alloca i32
store i32 %0, i32* %3
store i32 %1, i32* %4
%5 = load i32, i32* %3
%6 = icmp eq i32 %5, 0
br i1 %6, label %10, label %7
7: ; preds = %2
%8 = load i32, i32* %4
%9 = icmp eq i32 %8, 0
br i1 %9, label %10, label %12
10: ; preds = %7, %2
%11 = call i32 @printf(i8* getelementptr inbounds ([8 x i8], [8 x i8]* @.str, i64 0, i64 0))
br label %32
12: ; preds = %7
%13 = load i32, i32* %3
%14 = icmp sgt i32 %13, 0
br i1 %14, label %15, label %23
15: ; preds = %12
%16 = load i32, i32* %4
%17 = icmp sgt i32 %16, 0
br i1 %17, label %18, label %20
18: ; preds = %15
%19 = call i32 @printf(i8* getelementptr inbounds ([4 x i8], [4 x i8]* @.str.1, i64 0, i64 0))
br label %22
20: ; preds = %15
%21 = call i32 @printf(i8* getelementptr inbounds ([4 x i8], [4 x i8]* @.str.2, i64 0, i64 0))
br label %22
22: ; preds = %20, %18
br label %31
23: ; preds = %12
%24 = load i32, i32* %4
%25 = icmp sgt i32 %24, 0
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 %30
28: ; preds = %23
%29 = call i32 @printf(i8* getelementptr inbounds ([4 x i8], [4 x i8]* @.str.4, i64 0, i64 0))
br label %30
30: ; preds = %28, %26
br label %31
31: ; preds = %30, %22
br label %32
32: ; preds = %31, %10
ret void
}

LLVM IR (-O2):
@str = [3 x i8] c"SO\00"
@str.5 = [3 x i8] c"NO\00"
@str.6 = [3 x i8] c"SE\00"
@str.7 = [3 x i8] c"NE\00"
@str.8 = [7 x i8] c"divisa\00"
define void @imprimirRegiao(i32 %0, i32 %1) {
%3 = icmp eq i32 %0, 0
%4 = icmp eq i32 %1, 0
%5 = or i1 %3, %4
br i1 %5, label %13, label %6
6: ; preds = %2
%7 = icmp sgt i32 %0, 0
%8 = icmp sgt i32 %1, 0
br i1 %7, label %9, label %11
9: ; preds = %6
%10 = select i1 %8, i8* getelementptr inbounds ([3 x i8], [3 x i8]* @str.7, i64 0, i64 0), i8* getelementptr inbounds ([3 x i8], [3 x i8]* @str.6, i64 0, i64 0)
br label %13
11: ; preds = %6
%12 = select i1 %8, i8* getelementptr inbounds ([3 x i8], [3 x i8]* @str.5, i64 0, i64 0), i8* getelementptr inbounds ([3 x i8], [3 x i8]* @str, i64 0, i64 0)
br label %13
13: ; preds = %11, %9, %2
%14 = phi i8* [ getelementptr inbounds ([7 x i8], [7 x i8]* @str.8, i64 0, i64 0), %2 ], [ %10, %9 ], [ %12, %11 ]
%15 = tail call i32 @puts(i8* dereferenceable(1) %14)
ret void
}