#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 *, long *);
int main() {
  long int N;
  scanf("%ld", &N);
  if (N > 0) {
    if (N % 2 == 0) {
      printf("POSITIVO PAR\n");
    } else {
      printf("POSITIVO IMPAR\n");
    }
  } else if (N < 0) {
    if (N % 2 == 0) {
      printf("NEGATIVO PAR\n");
    } else {
      printf("NEGATIVO IMPAR\n");
    }
  } else {
    printf("NULO\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    -0x10(%rbp),%rsi
call   1040 <scanf@plt>
cmpq   $0x0,-0x10(%rbp)
jle    1184 <main+0x64>
mov    -0x10(%rbp),%rax
mov    $0x2,%ecx
cqto
idiv   %rcx
cmp    $0x0,%rdx
jne    1173 <main+0x53>
lea    0xe9b(%rip),%rdi
call   1030 <printf@plt>
jmp    117f <main+0x5f>
lea    0xe98(%rip),%rdi
call   1030 <printf@plt>
jmp    11da <main+0xba>
cmpq   $0x0,-0x10(%rbp)
jge    11c9 <main+0xa9>
mov    -0x10(%rbp),%rax
mov    $0x2,%ecx
cqto
idiv   %rcx
cmp    $0x0,%rdx
jne    11b8 <main+0x98>
lea    0xe74(%rip),%rdi
call   1030 <printf@plt>
jmp    11c4 <main+0xa4>
lea    0xe71(%rip),%rdi
call   1030 <printf@plt>
jmp    11d5 <main+0xb5>
lea    0xe70(%rip),%rdi
call   1030 <printf@plt>
jmp    11da <main+0xba>
xor    %eax,%eax
add    $0x10,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<main>:
push   %rax
lea    0xed8(%rip),%rdi
mov    %rsp,%rsi
call   1040 <scanf@plt>
mov    (%rsp),%rax
test   %rax,%rax
jle    114f <main+0x2f>
test   $0x1,%al
lea    0xef2(%rip),%rax
lea    0xedc(%rip),%rdi
cmove  %rax,%rdi
jmp    1158 <main+0x38>
js     1161 <main+0x41>
lea    0xeac(%rip),%rdi
call   1030 <puts@plt>
xor    %eax,%eax
pop    %rcx
ret
test   $0x1,%al
lea    0xeae(%rip),%rax
lea    0xe98(%rip),%rdi
jmp    1149 <main+0x29>

LLVM IR (-O0):
@.str = [4 x i8] c"%ld\00"
@.str.1 = [14 x i8] c"POSITIVO PAR\0A\00"
@.str.2 = [16 x i8] c"POSITIVO IMPAR\0A\00"
@.str.3 = [14 x i8] c"NEGATIVO PAR\0A\00"
@.str.4 = [16 x i8] c"NEGATIVO IMPAR\0A\00"
@.str.5 = [6 x i8] c"NULO\0A\00"
define i32 @main() {
%1 = alloca i32
%2 = alloca i64
store i32 0, i32* %1
%3 = call i32 @scanf(i8* getelementptr inbounds ([4 x i8], [4 x i8]* @.str, i64 0, i64 0), i64* %2)
%4 = load i64, i64* %2
%5 = icmp sgt i64 %4, 0
br i1 %5, label %6, label %15
6: ; preds = %0
%7 = load i64, i64* %2
%8 = srem i64 %7, 2
%9 = icmp eq i64 %8, 0
br i1 %9, label %10, label %12
10: ; preds = %6
%11 = call i32 @printf(i8* getelementptr inbounds ([14 x i8], [14 x i8]* @.str.1, i64 0, i64 0))
br label %14
12: ; preds = %6
%13 = call i32 @printf(i8* getelementptr inbounds ([16 x i8], [16 x i8]* @.str.2, i64 0, i64 0))
br label %14
14: ; preds = %12, %10
br label %30
15: ; preds = %0
%16 = load i64, i64* %2
%17 = icmp slt i64 %16, 0
br i1 %17, label %18, label %27
18: ; preds = %15
%19 = load i64, i64* %2
%20 = srem i64 %19, 2
%21 = icmp eq i64 %20, 0
br i1 %21, label %22, label %24
22: ; preds = %18
%23 = call i32 @printf(i8* getelementptr inbounds ([14 x i8], [14 x i8]* @.str.3, i64 0, i64 0))
br label %26
24: ; preds = %18
%25 = call i32 @printf(i8* getelementptr inbounds ([16 x i8], [16 x i8]* @.str.4, i64 0, i64 0))
br label %26
26: ; preds = %24, %22
br label %29
27: ; preds = %15
%28 = call i32 @printf(i8* getelementptr inbounds ([6 x i8], [6 x i8]* @.str.5, i64 0, i64 0))
br label %29
29: ; preds = %27, %26
br label %30
30: ; preds = %29, %14
ret i32 0
}

LLVM IR (-O2):
@.str = [4 x i8] c"%ld\00"
@str = [5 x i8] c"NULO\00"
@str.6 = [15 x i8] c"NEGATIVO IMPAR\00"
@str.7 = [13 x i8] c"NEGATIVO PAR\00"
@str.8 = [15 x i8] c"POSITIVO IMPAR\00"
@str.9 = [13 x i8] c"POSITIVO PAR\00"
define i32 @main() {
%1 = alloca i64
%2 = bitcast i64* %1 to i8*
%3 = call i32 @scanf(i8* getelementptr inbounds ([4 x i8], [4 x i8]* @.str, i64 0, i64 0), i64* %1)
%4 = load i64, i64* %1
%5 = icmp sgt i64 %4, 0
br i1 %5, label %6, label %10
6: ; preds = %0
%7 = and i64 %4, 1
%8 = icmp eq i64 %7, 0
%9 = select i1 %8, i8* getelementptr inbounds ([13 x i8], [13 x i8]* @str.9, i64 0, i64 0), i8* getelementptr inbounds ([15 x i8], [15 x i8]* @str.8, i64 0, i64 0)
br label %16
10: ; preds = %0
%11 = icmp slt i64 %4, 0
br i1 %11, label %12, label %16
12: ; preds = %10
%13 = and i64 %4, 1
%14 = icmp eq i64 %13, 0
%15 = select i1 %14, i8* getelementptr inbounds ([13 x i8], [13 x i8]* @str.7, i64 0, i64 0), i8* getelementptr inbounds ([15 x i8], [15 x i8]* @str.6, i64 0, i64 0)
br label %16
16: ; preds = %10, %12, %6
%17 = phi i8* [ %9, %6 ], [ %15, %12 ], [ getelementptr inbounds ([5 x i8], [5 x i8]* @str, i64 0, i64 0), %10 ]
%18 = call i32 @puts(i8* dereferenceable(1) %17)
ret i32 0
}