#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 *, int *);
int main(void) {
  int valor, i, n;
  scanf("%d", &valor);
  for (i = 1; i <= valor; i++) {
    scanf("%d", &n);
    if (n == 0) {
      printf("NULL\n");
    } else if (n % 2 == 0 && n > 0) {
      printf("EVEN POSITIVE\n");
    } else if (n % 2 == 0 && n < 0) {
      printf("EVEN NEGATIVE\n");
    } else if (n % 2 != 0 && n > 0) {
      printf("ODD POSITIVE\n");
    } else if (n % 2 != 0 && n < 0) {
      printf("ODD NEGATIVE\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
call   1040 <scanf@plt>
movl   $0x1,-0xc(%rbp)
mov    -0xc(%rbp),%eax
cmp    -0x8(%rbp),%eax
jg     125b <main+0x13b>
lea    0xea7(%rip),%rdi
lea    -0x10(%rbp),%rsi
call   1040 <scanf@plt>
cmpl   $0x0,-0x10(%rbp)
jne    117d <main+0x5d>
lea    0xe90(%rip),%rdi
call   1030 <printf@plt>
jmp    1248 <main+0x128>
mov    -0x10(%rbp),%eax
mov    $0x2,%ecx
cltd
idiv   %ecx
cmp    $0x0,%edx
jne    11ac <main+0x8c>
cmpl   $0x0,-0x10(%rbp)
jle    11ac <main+0x8c>
lea    0xe67(%rip),%rdi
call   1030 <printf@plt>
jmp    1243 <main+0x123>
mov    -0x10(%rbp),%eax
mov    $0x2,%ecx
cltd
idiv   %ecx
cmp    $0x0,%edx
jne    11db <main+0xbb>
cmpl   $0x0,-0x10(%rbp)
jge    11db <main+0xbb>
lea    0xe47(%rip),%rdi
call   1030 <printf@plt>
jmp    123e <main+0x11e>
mov    -0x10(%rbp),%eax
mov    $0x2,%ecx
cltd
idiv   %ecx
cmp    $0x0,%edx
je     120a <main+0xea>
cmpl   $0x0,-0x10(%rbp)
jle    120a <main+0xea>
lea    0xe27(%rip),%rdi
call   1030 <printf@plt>
jmp    1239 <main+0x119>
mov    -0x10(%rbp),%eax
mov    $0x2,%ecx
cltd
idiv   %ecx
cmp    $0x0,%edx
je     1234 <main+0x114>
cmpl   $0x0,-0x10(%rbp)
jge    1234 <main+0x114>
lea    0xe06(%rip),%rdi
call   1030 <printf@plt>
jmp    1239 <main+0x119>
jmp    123e <main+0x11e>
jmp    1243 <main+0x123>
jmp    1248 <main+0x128>
jmp    124d <main+0x12d>
mov    -0xc(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0xc(%rbp)
jmp    1146 <main+0x26>
xor    %eax,%eax
add    $0x10,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<main>:
push   %rbp
push   %r15
push   %r14
push   %r13
push   %r12
push   %rbx
push   %rax
lea    0xece(%rip),%rdi
mov    %rsp,%rsi
call   1040 <scanf@plt>
cmpl   $0x0,(%rsp)
jle    11dd <main+0xbd>
xor    %ebp,%ebp
lea    0xeb3(%rip),%r14
lea    0x4(%rsp),%r15
lea    0xee0(%rip),%rbx
lea    0xecb(%rip),%r12
lea    0xeb6(%rip),%r13
nopw   0x0(%rax,%rax,1)
mov    %r14,%rdi
mov    %r15,%rsi
call   1040 <scanf@plt>
mov    0x4(%rsp),%eax
mov    %rbx,%rdi
test   %eax,%eax
je     11d0 <main+0xb0>
mov    %eax,%edx
shr    $0x1f,%edx
add    %eax,%edx
and    $0xfffffffe,%edx
mov    %eax,%ecx
sub    %edx,%ecx
test   %eax,%eax
jle    119f <main+0x7f>
mov    %r12,%rdi
test   %ecx,%ecx
je     11d0 <main+0xb0>
test   %eax,%eax
jns    11aa <main+0x8a>
mov    %r13,%rdi
test   %ecx,%ecx
je     11d0 <main+0xb0>
test   %eax,%eax
jle    11b9 <main+0x99>
lea    0xe5b(%rip),%rdi
test   %ecx,%ecx
jne    11d0 <main+0xb0>
test   %eax,%eax
jns    11d5 <main+0xb5>
lea    0xe3f(%rip),%rdi
test   %ecx,%ecx
je     11d5 <main+0xb5>
nopl   0x0(%rax,%rax,1)
call   1030 <puts@plt>
add    $0x1,%ebp
cmp    (%rsp),%ebp
jl     1170 <main+0x50>
xor    %eax,%eax
add    $0x8,%rsp
pop    %rbx
pop    %r12
pop    %r13
pop    %r14
pop    %r15
pop    %rbp
ret

LLVM IR (-O0):
@.str = [3 x i8] c"%d\00"
@.str.1 = [6 x i8] c"NULL\0A\00"
@.str.2 = [15 x i8] c"EVEN POSITIVE\0A\00"
@.str.3 = [15 x i8] c"EVEN NEGATIVE\0A\00"
@.str.4 = [14 x i8] c"ODD POSITIVE\0A\00"
@.str.5 = [14 x i8] c"ODD NEGATIVE\0A\00"
define i32 @main() {
%1 = alloca i32
%2 = alloca i32
%3 = alloca i32
%4 = alloca i32
store i32 0, i32* %1
%5 = call i32 @scanf(i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str, i64 0, i64 0), i32* %2)
store i32 1, i32* %3
br label %6
6: ; preds = %57, %0
%7 = load i32, i32* %3
%8 = load i32, i32* %2
%9 = icmp sle i32 %7, %8
br i1 %9, label %10, label %60
10: ; preds = %6
%11 = call i32 @scanf(i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str, i64 0, i64 0), i32* %4)
%12 = load i32, i32* %4
%13 = icmp eq i32 %12, 0
br i1 %13, label %14, label %16
14: ; preds = %10
%15 = call i32 @printf(i8* getelementptr inbounds ([6 x i8], [6 x i8]* @.str.1, i64 0, i64 0))
br label %56
16: ; preds = %10
%17 = load i32, i32* %4
%18 = srem i32 %17, 2
%19 = icmp eq i32 %18, 0
br i1 %19, label %20, label %25
20: ; preds = %16
%21 = load i32, i32* %4
%22 = icmp sgt i32 %21, 0
br i1 %22, label %23, label %25
23: ; preds = %20
%24 = call i32 @printf(i8* getelementptr inbounds ([15 x i8], [15 x i8]* @.str.2, i64 0, i64 0))
br label %55
25: ; preds = %20, %16
%26 = load i32, i32* %4
%27 = srem i32 %26, 2
%28 = icmp eq i32 %27, 0
br i1 %28, label %29, label %34
29: ; preds = %25
%30 = load i32, i32* %4
%31 = icmp slt i32 %30, 0
br i1 %31, label %32, label %34
32: ; preds = %29
%33 = call i32 @printf(i8* getelementptr inbounds ([15 x i8], [15 x i8]* @.str.3, i64 0, i64 0))
br label %54
34: ; preds = %29, %25
%35 = load i32, i32* %4
%36 = srem i32 %35, 2
%37 = icmp ne i32 %36, 0
br i1 %37, label %38, label %43
38: ; preds = %34
%39 = load i32, i32* %4
%40 = icmp sgt i32 %39, 0
br i1 %40, label %41, label %43
41: ; preds = %38
%42 = call i32 @printf(i8* getelementptr inbounds ([14 x i8], [14 x i8]* @.str.4, i64 0, i64 0))
br label %53
43: ; preds = %38, %34
%44 = load i32, i32* %4
%45 = srem i32 %44, 2
%46 = icmp ne i32 %45, 0
br i1 %46, label %47, label %52
47: ; preds = %43
%48 = load i32, i32* %4
%49 = icmp slt i32 %48, 0
br i1 %49, label %50, label %52
50: ; preds = %47
%51 = call i32 @printf(i8* getelementptr inbounds ([14 x i8], [14 x i8]* @.str.5, i64 0, i64 0))
br label %52
52: ; preds = %50, %47, %43
br label %53
53: ; preds = %52, %41
br label %54
54: ; preds = %53, %32
br label %55
55: ; preds = %54, %23
br label %56
56: ; preds = %55, %14
br label %57
57: ; preds = %56
%58 = load i32, i32* %3
%59 = add nsw i32 %58, 1
store i32 %59, i32* %3
br label %6
60: ; preds = %6
ret i32 0
}

LLVM IR (-O2):
@.str = [3 x i8] c"%d\00"
@str = [13 x i8] c"ODD NEGATIVE\00"
@str.6 = [13 x i8] c"ODD POSITIVE\00"
@str.7 = [14 x i8] c"EVEN NEGATIVE\00"
@str.8 = [14 x i8] c"EVEN POSITIVE\00"
@str.9 = [5 x i8] c"NULL\00"
define i32 @main() {
%1 = alloca i32
%2 = alloca i32
%3 = bitcast i32* %1 to i8*
%4 = bitcast i32* %2 to i8*
%5 = call i32 @scanf(i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str, i64 0, i64 0), i32* %1)
%6 = load i32, i32* %1
%7 = icmp slt i32 %6, 1
br i1 %7, label %33, label %8
8: ; preds = %0, %29
%9 = phi i32 [ %30, %29 ], [ 1, %0 ]
%10 = call i32 @scanf(i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str, i64 0, i64 0), i32* %2)
%11 = load i32, i32* %2
%12 = icmp eq i32 %11, 0
br i1 %12, label %26, label %13
13: ; preds = %8
%14 = srem i32 %11, 2
%15 = icmp eq i32 %14, 0
%16 = icmp sgt i32 %11, 0
%17 = and i1 %16, %15
br i1 %17, label %26, label %18
18: ; preds = %13
%19 = icmp slt i32 %11, 0
%20 = and i1 %19, %15
br i1 %20, label %26, label %21
21: ; preds = %18
%22 = icmp ne i32 %14, 0
%23 = and i1 %16, %22
br i1 %23, label %26, label %24
24: ; preds = %21
%25 = and i1 %19, %22
br i1 %25, label %26, label %29
26: ; preds = %24, %21, %18, %13, %8
%27 = phi i8* [ getelementptr inbounds ([5 x i8], [5 x i8]* @str.9, i64 0, i64 0), %8 ], [ getelementptr inbounds ([14 x i8], [14 x i8]* @str.8, i64 0, i64 0), %13 ], [ getelementptr inbounds ([14 x i8], [14 x i8]* @str.7, i64 0, i64 0), %18 ], [ getelementptr inbounds ([13 x i8], [13 x i8]* @str.6, i64 0, i64 0), %21 ], [ getelementptr inbounds ([13 x i8], [13 x i8]* @str, i64 0, i64 0), %24 ]
%28 = call i32 @puts(i8* dereferenceable(1) %27)
br label %29
29: ; preds = %26, %24
%30 = add nuw nsw i32 %9, 1
%31 = load i32, i32* %1
%32 = icmp slt i32 %9, %31
br i1 %32, label %8, label %33
33: ; preds = %29, %0
ret i32 0
}