#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, X;
  scanf(" %d", &N);
  while (N > 0) {
    scanf(" %d", &X);
    if (X == 0)
      printf("NULL\n");
    if (X % 2 == 0 && X != 0)
      printf("EVEN ");
    if (X % 2 != 0)
      printf("ODD ");
    if (X > 0)
      printf("POSITIVE\n");
    if (X < 0)
      printf("NEGATIVE\n");
    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   $0x0,-0x8(%rbp)
jle    11f3 <main+0xd3>
lea    0xeb0(%rip),%rdi
lea    -0xc(%rbp),%rsi
call   1040 <scanf@plt>
cmpl   $0x0,-0xc(%rbp)
jne    116f <main+0x4f>
lea    0xe9a(%rip),%rdi
call   1030 <printf@plt>
mov    -0xc(%rbp),%eax
mov    $0x2,%ecx
cltd
idiv   %ecx
cmp    $0x0,%edx
jne    1199 <main+0x79>
cmpl   $0x0,-0xc(%rbp)
je     1199 <main+0x79>
lea    0xe76(%rip),%rdi
call   1030 <printf@plt>
mov    -0xc(%rbp),%eax
mov    $0x2,%ecx
cltd
idiv   %ecx
cmp    $0x0,%edx
je     11b9 <main+0x99>
lea    0xe5c(%rip),%rdi
call   1030 <printf@plt>
cmpl   $0x0,-0xc(%rbp)
jle    11cf <main+0xaf>
lea    0xe4b(%rip),%rdi
call   1030 <printf@plt>
cmpl   $0x0,-0xc(%rbp)
jge    11e5 <main+0xc5>
lea    0xe3f(%rip),%rdi
call   1030 <printf@plt>
mov    -0x8(%rbp),%eax
add    $0xffffffff,%eax
mov    %eax,-0x8(%rbp)
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
lea    0x4(%rsp),%rsi
call   1050 <scanf@plt>
cmpl   $0x0,0x4(%rsp)
jle    11fa <main+0xca>
lea    0xea2(%rip),%r14
mov    %rsp,%rbx
lea    0xe9c(%rip),%r12
lea    0xea9(%rip),%r13
lea    0xe99(%rip),%rbp
lea    0xe8d(%rip),%r15
jmp    1190 <main+0x60>
nop
mov    0x4(%rsp),%eax
lea    -0x1(%rax),%ecx
mov    %ecx,0x4(%rsp)
cmp    $0x1,%eax
jle    11fa <main+0xca>
mov    %r14,%rdi
mov    %rbx,%rsi
call   1050 <scanf@plt>
mov    (%rsp),%eax
test   %eax,%eax
jne    11b1 <main+0x81>
lea    0xe78(%rip),%rdi
call   1030 <puts@plt>
mov    (%rsp),%eax
mov    %eax,%ecx
and    $0x1,%ecx
test   %eax,%eax
je     11ce <main+0x9e>
test   %ecx,%ecx
jne    11ce <main+0x9e>
mov    %r12,%rdi
call   1040 <printf@plt>
mov    (%rsp),%eax
mov    %eax,%ecx
and    $0x1,%ecx
test   %ecx,%ecx
je     11dd <main+0xad>
mov    %r15,%rdi
call   1040 <printf@plt>
mov    (%rsp),%eax
test   %eax,%eax
jle    11ec <main+0xbc>
mov    %r13,%rdi
call   1030 <puts@plt>
mov    (%rsp),%eax
test   %eax,%eax
jns    1180 <main+0x50>
mov    %rbp,%rdi
call   1030 <puts@plt>
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 = [4 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"POSITIVE\0A\00"
@.str.5 = [10 x i8] c"NEGATIVE\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 ([4 x i8], [4 x i8]* @.str, i64 0, i64 0), i32* %2)
br label %5
5: ; preds = %39, %0
%6 = load i32, i32* %2
%7 = icmp sgt i32 %6, 0
br i1 %7, label %8, label %42
8: ; preds = %5
%9 = call i32 @scanf(i8* getelementptr inbounds ([4 x i8], [4 x i8]* @.str, i64 0, i64 0), i32* %3)
%10 = load i32, i32* %3
%11 = icmp eq i32 %10, 0
br i1 %11, label %12, label %14
12: ; preds = %8
%13 = call i32 @printf(i8* getelementptr inbounds ([6 x i8], [6 x i8]* @.str.1, i64 0, i64 0))
br label %14
14: ; preds = %12, %8
%15 = load i32, i32* %3
%16 = srem i32 %15, 2
%17 = icmp eq i32 %16, 0
br i1 %17, label %18, label %23
18: ; preds = %14
%19 = load i32, i32* %3
%20 = icmp ne i32 %19, 0
br i1 %20, label %21, label %23
21: ; preds = %18
%22 = call i32 @printf(i8* getelementptr inbounds ([6 x i8], [6 x i8]* @.str.2, i64 0, i64 0))
br label %23
23: ; preds = %21, %18, %14
%24 = load i32, i32* %3
%25 = srem i32 %24, 2
%26 = icmp ne i32 %25, 0
br i1 %26, label %27, label %29
27: ; preds = %23
%28 = call i32 @printf(i8* getelementptr inbounds ([5 x i8], [5 x i8]* @.str.3, i64 0, i64 0))
br label %29
29: ; preds = %27, %23
%30 = load i32, i32* %3
%31 = icmp sgt i32 %30, 0
br i1 %31, label %32, label %34
32: ; preds = %29
%33 = call i32 @printf(i8* getelementptr inbounds ([10 x i8], [10 x i8]* @.str.4, i64 0, i64 0))
br label %34
34: ; preds = %32, %29
%35 = load i32, i32* %3
%36 = icmp slt i32 %35, 0
br i1 %36, label %37, label %39
37: ; preds = %34
%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, %34
%40 = load i32, i32* %2
%41 = add nsw i32 %40, -1
store i32 %41, i32* %2
br label %5
42: ; preds = %5
ret i32 0
}

LLVM IR (-O2):
@.str = [4 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"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 ([4 x i8], [4 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 %47
8: ; preds = %0, %43
%9 = call i32 @scanf(i8* getelementptr inbounds ([4 x i8], [4 x i8]* @.str, i64 0, i64 0), i32* %2)
%10 = load i32, i32* %2
%11 = icmp eq i32 %10, 0
br i1 %11, label %12, label %15
12: ; preds = %8
%13 = call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([5 x i8], [5 x i8]* @str.7, i64 0, i64 0))
%14 = load i32, i32* %2
br label %15
15: ; preds = %12, %8
%16 = phi i32 [ %14, %12 ], [ %10, %8 ]
%17 = and i32 %16, 1
%18 = icmp eq i32 %17, 0
%19 = icmp ne i32 %16, 0
%20 = and i1 %19, %18
br i1 %20, label %21, label %25
21: ; preds = %15
%22 = call i32 @printf(i8* dereferenceable(1) getelementptr inbounds ([6 x i8], [6 x i8]* @.str.2, i64 0, i64 0))
%23 = load i32, i32* %2
%24 = and i32 %23, 1
br label %25
25: ; preds = %21, %15
%26 = phi i32 [ %24, %21 ], [ %17, %15 ]
%27 = phi i32 [ %23, %21 ], [ %16, %15 ]
%28 = icmp eq i32 %26, 0
br i1 %28, label %32, label %29
29: ; preds = %25
%30 = call i32 @printf(i8* dereferenceable(1) getelementptr inbounds ([5 x i8], [5 x i8]* @.str.3, i64 0, i64 0))
%31 = load i32, i32* %2
br label %32
32: ; preds = %29, %25
%33 = phi i32 [ %31, %29 ], [ %27, %25 ]
%34 = icmp sgt i32 %33, 0
br i1 %34, label %35, label %38
35: ; preds = %32
%36 = call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([9 x i8], [9 x i8]* @str.6, i64 0, i64 0))
%37 = load i32, i32* %2
br label %38
38: ; preds = %35, %32
%39 = phi i32 [ %37, %35 ], [ %33, %32 ]
%40 = icmp slt i32 %39, 0
br i1 %40, label %41, label %43
41: ; preds = %38
%42 = call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([9 x i8], [9 x i8]* @str, i64 0, i64 0))
br label %43
43: ; preds = %41, %38
%44 = load i32, i32* %1
%45 = add nsw i32 %44, -1
store i32 %45, i32* %1
%46 = icmp sgt i32 %44, 1
br i1 %46, label %8, label %47
47: ; preds = %43, %0
ret i32 0
}