#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 range, n, a;
  scanf("%i", &range);
  for (a = 1; a <= range; a++) {
    scanf("%i", &n);
    if (n == 0)
      printf("NULL\n");
    else if (n > 0) {
      if (!(n % 2))
        printf("EVEN ");
      else
        printf("ODD ");
      printf("POSITIVE\n");
    } else {
      if (!(n % 2))
        printf("EVEN ");
      else
        printf("ODD ");
      printf("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,-0x10(%rbp)
mov    -0x10(%rbp),%eax
cmp    -0x8(%rbp),%eax
jg     1212 <main+0xf2>
lea    0xea7(%rip),%rdi
lea    -0xc(%rbp),%rsi
call   1040 <scanf@plt>
cmpl   $0x0,-0xc(%rbp)
jne    117d <main+0x5d>
lea    0xe90(%rip),%rdi
call   1030 <printf@plt>
jmp    120b <main+0xeb>
cmpl   $0x0,-0xc(%rbp)
jle    11c9 <main+0xa9>
mov    -0xc(%rbp),%eax
mov    $0x2,%ecx
cltd
idiv   %ecx
cmp    $0x0,%edx
jne    11ac <main+0x8c>
lea    0xe67(%rip),%rdi
call   1030 <printf@plt>
jmp    11b8 <main+0x98>
lea    0xe5c(%rip),%rdi
call   1030 <printf@plt>
lea    0xe55(%rip),%rdi
call   1030 <printf@plt>
jmp    1206 <main+0xe6>
mov    -0xc(%rbp),%eax
mov    $0x2,%ecx
cltd
idiv   %ecx
cmp    $0x0,%edx
jne    11ee <main+0xce>
lea    0xe25(%rip),%rdi
call   1030 <printf@plt>
jmp    11fa <main+0xda>
lea    0xe1a(%rip),%rdi
call   1030 <printf@plt>
lea    0xe1d(%rip),%rdi
call   1030 <printf@plt>
jmp    120b <main+0xeb>
movl   $0x0,-0x4(%rbp)
mov    -0x4(%rbp),%eax
add    $0x10,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<main>:
push   %rbx
sub    $0x10,%rsp
lea    0xec4(%rip),%rdi
lea    0xc(%rsp),%rsi
call   1050 <scanf@plt>
cmpl   $0x0,0xc(%rsp)
jle    11a2 <main+0x72>
lea    0xeac(%rip),%rdi
lea    0x8(%rsp),%rsi
call   1050 <scanf@plt>
mov    0x8(%rsp),%eax
test   %eax,%eax
je     1193 <main+0x63>
lea    0xeaa(%rip),%rcx
lea    0xe9a(%rip),%rbx
cmovg  %rcx,%rbx
test   $0x1,%al
lea    0xe82(%rip),%rax
lea    0xe81(%rip),%rdi
cmove  %rax,%rdi
call   1040 <printf@plt>
jmp    119a <main+0x6a>
lea    0xe86(%rip),%rbx
mov    %rbx,%rdi
call   1030 <puts@plt>
xor    %eax,%eax
add    $0x10,%rsp
pop    %rbx
ret

LLVM IR (-O0):
@.str = [3 x i8] c"%i\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"POSITIVE\0A\00"
@.str.5 = [10 x i8] c"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* %4
br label %6
6: ; preds = %41, %0
%7 = load i32, i32* %4
%8 = load i32, i32* %2
%9 = icmp sle i32 %7, %8
br i1 %9, label %10, label %44
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 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 %40
16: ; preds = %10
%17 = load i32, i32* %3
%18 = icmp sgt i32 %17, 0
br i1 %18, label %19, label %29
19: ; preds = %16
%20 = load i32, i32* %3
%21 = srem i32 %20, 2
%22 = icmp ne i32 %21, 0
br i1 %22, label %25, label %23
23: ; preds = %19
%24 = call i32 @printf(i8* getelementptr inbounds ([6 x i8], [6 x i8]* @.str.2, i64 0, i64 0))
br label %27
25: ; preds = %19
%26 = call i32 @printf(i8* getelementptr inbounds ([5 x i8], [5 x i8]* @.str.3, i64 0, i64 0))
br label %27
27: ; preds = %25, %23
%28 = call i32 @printf(i8* getelementptr inbounds ([10 x i8], [10 x i8]* @.str.4, i64 0, i64 0))
br label %39
29: ; preds = %16
%30 = load i32, i32* %3
%31 = srem i32 %30, 2
%32 = icmp ne i32 %31, 0
br i1 %32, label %35, label %33
33: ; preds = %29
%34 = call i32 @printf(i8* getelementptr inbounds ([6 x i8], [6 x i8]* @.str.2, i64 0, i64 0))
br label %37
35: ; preds = %29
%36 = call i32 @printf(i8* getelementptr inbounds ([5 x i8], [5 x i8]* @.str.3, i64 0, i64 0))
br label %37
37: ; preds = %35, %33
%38 = call i32 @printf(i8* getelementptr inbounds ([10 x i8], [10 x i8]* @.str.5, i64 0, i64 0))
br label %39
39: ; preds = %37, %27
br label %40
40: ; preds = %39, %14
store i32 0, i32* %1
br label %44
41: ; No predecessors!
%42 = load i32, i32* %4
%43 = add nsw i32 %42, 1
store i32 %43, i32* %4
br label %6
44: ; preds = %40, %6
%45 = load i32, i32* %1
ret i32 %45
}

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