#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 n, i, x;
  scanf("%d", &n);
  if (n < 10000) {
    for (i = 1; i <= n; i++) {
      scanf("%d", &x);
      if (x < 0 && x % 2 != 0) {
        printf("ODD NEGATIVE\n");
      } else if (x == 0) {
        printf("NULL\n");
      } else if (x % 2 != 0 && x > 0) {
        printf("ODD POSITIVE\n");
      } else if (x % 2 == 0 && x < 0) {
        printf("EVEN NEGATIVE\n");
      } else if (x > 0 && x % 2 == 0) {
        printf("EVEN 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>
cmpl   $0x2710,-0x8(%rbp)
jge    126d <main+0x14d>
movl   $0x1,-0xc(%rbp)
mov    -0xc(%rbp),%eax
cmp    -0x8(%rbp),%eax
jg     1268 <main+0x148>
lea    0xe9a(%rip),%rdi
lea    -0x10(%rbp),%rsi
call   1040 <scanf@plt>
cmpl   $0x0,-0x10(%rbp)
jge    119e <main+0x7e>
mov    -0x10(%rbp),%eax
mov    $0x2,%ecx
cltd
idiv   %ecx
cmp    $0x0,%edx
je     119e <main+0x7e>
lea    0xe6f(%rip),%rdi
call   1030 <printf@plt>
jmp    1255 <main+0x135>
cmpl   $0x0,-0x10(%rbp)
jne    11b9 <main+0x99>
lea    0xe62(%rip),%rdi
call   1030 <printf@plt>
jmp    1250 <main+0x130>
mov    -0x10(%rbp),%eax
mov    $0x2,%ecx
cltd
idiv   %ecx
cmp    $0x0,%edx
je     11e8 <main+0xc8>
cmpl   $0x0,-0x10(%rbp)
jle    11e8 <main+0xc8>
lea    0xe39(%rip),%rdi
call   1030 <printf@plt>
jmp    124b <main+0x12b>
mov    -0x10(%rbp),%eax
mov    $0x2,%ecx
cltd
idiv   %ecx
cmp    $0x0,%edx
jne    1217 <main+0xf7>
cmpl   $0x0,-0x10(%rbp)
jge    1217 <main+0xf7>
lea    0xe18(%rip),%rdi
call   1030 <printf@plt>
jmp    1246 <main+0x126>
cmpl   $0x0,-0x10(%rbp)
jle    1241 <main+0x121>
mov    -0x10(%rbp),%eax
mov    $0x2,%ecx
cltd
idiv   %ecx
cmp    $0x0,%edx
jne    1241 <main+0x121>
lea    0xdf8(%rip),%rdi
call   1030 <printf@plt>
jmp    1246 <main+0x126>
jmp    124b <main+0x12b>
jmp    1250 <main+0x130>
jmp    1255 <main+0x135>
jmp    125a <main+0x13a>
mov    -0xc(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0xc(%rbp)
jmp    1153 <main+0x33>
jmp    126d <main+0x14d>
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>
mov    $0xffffd8f0,%eax
add    (%rsp),%eax
cmp    $0xffffd8f1,%eax
jb     11dd <main+0xbd>
xor    %ebp,%ebp
lea    0xeaa(%rip),%r14
lea    0x4(%rsp),%r15
lea    0xecf(%rip),%rbx
lea    0xec3(%rip),%r12
lea    0xeaf(%rip),%r13
mov    %r14,%rdi
mov    %r15,%rsi
call   1040 <scanf@plt>
mov    0x4(%rsp),%eax
mov    %eax,%ecx
not    %ecx
mov    %rbx,%rdi
test   $0x80000001,%ecx
je     11d0 <main+0xb0>
mov    %r12,%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    11ae <main+0x8e>
mov    %r13,%rdi
test   %ecx,%ecx
jne    11d0 <main+0xb0>
test   %eax,%eax
jns    11bd <main+0x9d>
lea    0xe58(%rip),%rdi
test   %ecx,%ecx
je     11d0 <main+0xb0>
test   %eax,%eax
jle    11d5 <main+0xb5>
lea    0xe3b(%rip),%rdi
test   %ecx,%ecx
jne    11d5 <main+0xb5>
nopl   0x0(%rax)
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 = [14 x i8] c"ODD NEGATIVE\0A\00"
@.str.2 = [6 x i8] c"NULL\0A\00"
@.str.3 = [14 x i8] c"ODD POSITIVE\0A\00"
@.str.4 = [15 x i8] c"EVEN NEGATIVE\0A\00"
@.str.5 = [15 x i8] c"EVEN POSITIVE\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)
%6 = load i32, i32* %2
%7 = icmp slt i32 %6, 10000
br i1 %7, label %8, label %64
8: ; preds = %0
store i32 1, i32* %3
br label %9
9: ; preds = %60, %8
%10 = load i32, i32* %3
%11 = load i32, i32* %2
%12 = icmp sle i32 %10, %11
br i1 %12, label %13, label %63
13: ; preds = %9
%14 = call i32 @scanf(i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str, i64 0, i64 0), i32* %4)
%15 = load i32, i32* %4
%16 = icmp slt i32 %15, 0
br i1 %16, label %17, label %23
17: ; preds = %13
%18 = load i32, i32* %4
%19 = srem i32 %18, 2
%20 = icmp ne i32 %19, 0
br i1 %20, label %21, label %23
21: ; preds = %17
%22 = call i32 @printf(i8* getelementptr inbounds ([14 x i8], [14 x i8]* @.str.1, i64 0, i64 0))
br label %59
23: ; preds = %17, %13
%24 = load i32, i32* %4
%25 = icmp eq i32 %24, 0
br i1 %25, label %26, label %28
26: ; preds = %23
%27 = call i32 @printf(i8* getelementptr inbounds ([6 x i8], [6 x i8]* @.str.2, i64 0, i64 0))
br label %58
28: ; preds = %23
%29 = load i32, i32* %4
%30 = srem i32 %29, 2
%31 = icmp ne i32 %30, 0
br i1 %31, label %32, label %37
32: ; preds = %28
%33 = load i32, i32* %4
%34 = icmp sgt i32 %33, 0
br i1 %34, label %35, label %37
35: ; preds = %32
%36 = call i32 @printf(i8* getelementptr inbounds ([14 x i8], [14 x i8]* @.str.3, i64 0, i64 0))
br label %57
37: ; preds = %32, %28
%38 = load i32, i32* %4
%39 = srem i32 %38, 2
%40 = icmp eq i32 %39, 0
br i1 %40, label %41, label %46
41: ; preds = %37
%42 = load i32, i32* %4
%43 = icmp slt i32 %42, 0
br i1 %43, label %44, label %46
44: ; preds = %41
%45 = call i32 @printf(i8* getelementptr inbounds ([15 x i8], [15 x i8]* @.str.4, i64 0, i64 0))
br label %56
46: ; preds = %41, %37
%47 = load i32, i32* %4
%48 = icmp sgt i32 %47, 0
br i1 %48, label %49, label %55
49: ; preds = %46
%50 = load i32, i32* %4
%51 = srem i32 %50, 2
%52 = icmp eq i32 %51, 0
br i1 %52, label %53, label %55
53: ; preds = %49
%54 = call i32 @printf(i8* getelementptr inbounds ([15 x i8], [15 x i8]* @.str.5, i64 0, i64 0))
br label %55
55: ; preds = %53, %49, %46
br label %56
56: ; preds = %55, %44
br label %57
57: ; preds = %56, %35
br label %58
58: ; preds = %57, %26
br label %59
59: ; preds = %58, %21
br label %60
60: ; preds = %59
%61 = load i32, i32* %3
%62 = add nsw i32 %61, 1
store i32 %62, i32* %3
br label %9
63: ; preds = %9
br label %64
64: ; preds = %63, %0
ret i32 0
}

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