#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 n, x;
  scanf("%d", &n);
  while (n-- > 0) {
    scanf("%d", &x);
    if (x == 0) {
      printf("NULL\n");
    } else {
      if (x % 2 == 0) {
        printf("EVEN ");
      } else {
        printf("ODD ");
      }
      if (x < 0) {
        printf("NEGATIVE\n");
      } else {
        printf("POSITIVE\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>
mov    -0x8(%rbp),%eax
mov    %eax,%ecx
add    $0xffffffff,%ecx
mov    %ecx,-0x8(%rbp)
cmp    $0x0,%eax
jle    11e0 <main+0xc0>
lea    0xea6(%rip),%rdi
lea    -0xc(%rbp),%rsi
call   1040 <scanf@plt>
cmpl   $0x0,-0xc(%rbp)
jne    117e <main+0x5e>
lea    0xe8f(%rip),%rdi
call   1030 <printf@plt>
jmp    11db <main+0xbb>
mov    -0xc(%rbp),%eax
mov    $0x2,%ecx
cltd
idiv   %ecx
cmp    $0x0,%edx
jne    11a3 <main+0x83>
lea    0xe70(%rip),%rdi
call   1030 <printf@plt>
jmp    11af <main+0x8f>
lea    0xe65(%rip),%rdi
call   1030 <printf@plt>
cmpl   $0x0,-0xc(%rbp)
jge    11ca <main+0xaa>
lea    0xe54(%rip),%rdi
call   1030 <printf@plt>
jmp    11d6 <main+0xb6>
lea    0xe4d(%rip),%rdi
call   1030 <printf@plt>
jmp    11db <main+0xbb>
jmp    113f <main+0x1f>
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    0xebe(%rip),%rdi
mov    %rsp,%rsi
call   1050 <scanf@plt>
mov    (%rsp),%eax
lea    -0x1(%rax),%ecx
mov    %ecx,(%rsp)
test   %eax,%eax
jle    11da <main+0xaa>
lea    0xe9e(%rip),%r14
lea    0x4(%rsp),%r15
lea    0xeb2(%rip),%rbx
lea    0xe8e(%rip),%r12
lea    0xe9b(%rip),%rbp
lea    0xe8b(%rip),%r13
jmp    11a2 <main+0x72>
cs nopw 0x0(%rax,%rax,1)
nop
call   1030 <puts@plt>
mov    (%rsp),%eax
lea    -0x1(%rax),%ecx
mov    %ecx,(%rsp)
test   %eax,%eax
jle    11da <main+0xaa>
mov    %r14,%rdi
mov    %r15,%rsi
call   1050 <scanf@plt>
mov    0x4(%rsp),%eax
mov    %rbx,%rdi
test   %eax,%eax
je     1190 <main+0x60>
mov    %r12,%rdi
test   $0x1,%al
je     11c6 <main+0x96>
lea    0xe43(%rip),%rdi
call   1040 <printf@plt>
cmpl   $0x0,0x4(%rsp)
mov    %rbp,%rdi
js     1190 <main+0x60>
mov    %r13,%rdi
jmp    1190 <main+0x60>
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 = [6 x i8] c"EVEN \00"
@.str.3 = [5 x i8] c"ODD \00"
@.str.4 = [10 x i8] c"NEGATIVE\0A\00"
@.str.5 = [10 x i8] c"POSITIVE\0A\00"
define i32 @main() {
%1 = alloca i32
%2 = alloca i32
%3 = alloca i32
store i32 0, i32* %1
%4 = call i32 @scanf(i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str, i64 0, i64 0), i32* %2)
br label %5
5: ; preds = %31, %0
%6 = load i32, i32* %2
%7 = add nsw i32 %6, -1
store i32 %7, i32* %2
%8 = icmp sgt i32 %6, 0
br i1 %8, label %9, label %32
9: ; preds = %5
%10 = call i32 @scanf(i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str, i64 0, i64 0), i32* %3)
%11 = load i32, i32* %3
%12 = icmp eq i32 %11, 0
br i1 %12, label %13, label %15
13: ; preds = %9
%14 = call i32 @printf(i8* getelementptr inbounds ([6 x i8], [6 x i8]* @.str.1, i64 0, i64 0))
br label %31
15: ; preds = %9
%16 = load i32, i32* %3
%17 = srem i32 %16, 2
%18 = icmp eq i32 %17, 0
br i1 %18, label %19, label %21
19: ; preds = %15
%20 = call i32 @printf(i8* getelementptr inbounds ([6 x i8], [6 x i8]* @.str.2, i64 0, i64 0))
br label %23
21: ; preds = %15
%22 = call i32 @printf(i8* getelementptr inbounds ([5 x i8], [5 x i8]* @.str.3, i64 0, i64 0))
br label %23
23: ; preds = %21, %19
%24 = load i32, i32* %3
%25 = icmp slt i32 %24, 0
br i1 %25, label %26, label %28
26: ; preds = %23
%27 = call i32 @printf(i8* getelementptr inbounds ([10 x i8], [10 x i8]* @.str.4, i64 0, i64 0))
br label %30
28: ; preds = %23
%29 = call i32 @printf(i8* getelementptr inbounds ([10 x i8], [10 x i8]* @.str.5, i64 0, i64 0))
br label %30
30: ; preds = %28, %26
br label %31
31: ; preds = %30, %13
br label %5
32: ; preds = %5
ret i32 0
}

LLVM IR (-O2):
@.str = [3 x i8] c"%d\00"
@.str.2 = [6 x i8] c"EVEN \00"
@.str.3 = [5 x i8] c"ODD \00"
@str = [9 x i8] c"POSITIVE\00"
@str.6 = [9 x i8] c"NEGATIVE\00"
@str.7 = [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 = add nsw i32 %6, -1
store i32 %7, i32* %1
%8 = icmp sgt i32 %6, 0
br i1 %8, label %9, label %27
9: ; preds = %0, %21
%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 %21, label %13
13: ; preds = %9
%14 = and i32 %11, 1
%15 = icmp eq i32 %14, 0
%16 = select i1 %15, i8* getelementptr inbounds ([6 x i8], [6 x i8]* @.str.2, i64 0, i64 0), i8* getelementptr inbounds ([5 x i8], [5 x i8]* @.str.3, i64 0, i64 0)
%17 = call i32 @printf(i8* dereferenceable(1) %16)
%18 = load i32, i32* %2
%19 = icmp slt i32 %18, 0
%20 = select i1 %19, i8* getelementptr inbounds ([9 x i8], [9 x i8]* @str.6, i64 0, i64 0), i8* getelementptr inbounds ([9 x i8], [9 x i8]* @str, i64 0, i64 0)
br label %21
21: ; preds = %13, %9
%22 = phi i8* [ getelementptr inbounds ([5 x i8], [5 x i8]* @str.7, i64 0, i64 0), %9 ], [ %20, %13 ]
%23 = call i32 @puts(i8* dereferenceable(1) %22)
%24 = load i32, i32* %1
%25 = add nsw i32 %24, -1
store i32 %25, i32* %1
%26 = icmp sgt i32 %24, 0
br i1 %26, label %9, label %27
27: ; preds = %21, %0
ret i32 0
}