#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() {
  int qtt;
  int num;
  scanf("%d", &qtt);
  int i;
  for (i = 0; i < qtt; i++) {
    scanf("%d", &num);
    if (num) {
      if (num % 2)
        printf("ODD ");
      else
        printf("EVEN ");
      if (num > 0)
        printf("POSITIVE\n");
      else
        printf("NEGATIVE\n");
    } else {
      printf("NULL\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   $0x0,-0x10(%rbp)
mov    -0x10(%rbp),%eax
cmp    -0x8(%rbp),%eax
jge    11e8 <main+0xc8>
lea    0xea7(%rip),%rdi
lea    -0xc(%rbp),%rsi
call   1040 <scanf@plt>
cmpl   $0x0,-0xc(%rbp)
je     11c9 <main+0xa9>
mov    -0xc(%rbp),%eax
mov    $0x2,%ecx
cltd
idiv   %ecx
cmp    $0x0,%edx
je     1191 <main+0x71>
lea    0xe7c(%rip),%rdi
call   1030 <printf@plt>
jmp    119d <main+0x7d>
lea    0xe70(%rip),%rdi
call   1030 <printf@plt>
cmpl   $0x0,-0xc(%rbp)
jle    11b8 <main+0x98>
lea    0xe60(%rip),%rdi
call   1030 <printf@plt>
jmp    11c4 <main+0xa4>
lea    0xe59(%rip),%rdi
call   1030 <printf@plt>
jmp    11d5 <main+0xb5>
lea    0xe52(%rip),%rdi
call   1030 <printf@plt>
jmp    11da <main+0xba>
mov    -0x10(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0x10(%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    0xebe(%rip),%rdi
lea    0x4(%rsp),%rsi
call   1050 <scanf@plt>
cmpl   $0x0,0x4(%rsp)
jle    11c8 <main+0x98>
xor    %ebp,%ebp
lea    0xea4(%rip),%r14
mov    %rsp,%r15
lea    0xea8(%rip),%rbx
lea    0xe9b(%rip),%r12
lea    0xea8(%rip),%r13
jmp    118e <main+0x5e>
cs nopw 0x0(%rax,%rax,1)
call   1030 <puts@plt>
add    $0x1,%ebp
cmp    0x4(%rsp),%ebp
jge    11c8 <main+0x98>
mov    %r14,%rdi
mov    %r15,%rsi
call   1050 <scanf@plt>
mov    (%rsp),%eax
mov    %rbx,%rdi
test   %eax,%eax
je     1180 <main+0x50>
mov    %r12,%rdi
test   $0x1,%al
je     11b1 <main+0x81>
lea    0xe52(%rip),%rdi
call   1040 <printf@plt>
cmpl   $0x0,(%rsp)
mov    %r13,%rdi
jg     1180 <main+0x50>
lea    0xe4d(%rip),%rdi
jmp    1180 <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 = [5 x i8] c"ODD \00"
@.str.2 = [6 x i8] c"EVEN \00"
@.str.3 = [10 x i8] c"POSITIVE\0A\00"
@.str.4 = [10 x i8] c"NEGATIVE\0A\00"
@.str.5 = [6 x i8] c"NULL\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 0, i32* %4
br label %6
6: ; preds = %33, %0
%7 = load i32, i32* %4
%8 = load i32, i32* %2
%9 = icmp slt i32 %7, %8
br i1 %9, label %10, label %36
10: ; preds = %6
%11 = call i32 @scanf(i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str, i64 0, i64 0), i32* %3)
%12 = load i32, i32* %3
%13 = icmp ne i32 %12, 0
br i1 %13, label %14, label %30
14: ; preds = %10
%15 = load i32, i32* %3
%16 = srem i32 %15, 2
%17 = icmp ne i32 %16, 0
br i1 %17, label %18, label %20
18: ; preds = %14
%19 = call i32 @printf(i8* getelementptr inbounds ([5 x i8], [5 x i8]* @.str.1, i64 0, i64 0))
br label %22
20: ; preds = %14
%21 = call i32 @printf(i8* getelementptr inbounds ([6 x i8], [6 x i8]* @.str.2, i64 0, i64 0))
br label %22
22: ; preds = %20, %18
%23 = load i32, i32* %3
%24 = icmp sgt i32 %23, 0
br i1 %24, label %25, label %27
25: ; preds = %22
%26 = call i32 @printf(i8* getelementptr inbounds ([10 x i8], [10 x i8]* @.str.3, i64 0, i64 0))
br label %29
27: ; preds = %22
%28 = call i32 @printf(i8* getelementptr inbounds ([10 x i8], [10 x i8]* @.str.4, i64 0, i64 0))
br label %29
29: ; preds = %27, %25
br label %32
30: ; preds = %10
%31 = call i32 @printf(i8* getelementptr inbounds ([6 x i8], [6 x i8]* @.str.5, i64 0, i64 0))
br label %32
32: ; preds = %30, %29
br label %33
33: ; preds = %32
%34 = load i32, i32* %4
%35 = add nsw i32 %34, 1
store i32 %35, i32* %4
br label %6
36: ; preds = %6
ret i32 0
}

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