#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);
int /*<<< orphan*/ scanf(char *, int *);
int main(void) {
  int n[5], i, positivo = 0, negativo = 0, par = 0, impar = 0;
  for (i = 1; i <= 5; i++) {
    scanf("%d", &n[i]);
    if (n[i] % 2 == 0) {
      par++;
    }
    if (n[i] % 2 == 1 || n[i] % 2 == -1) {
      impar++;
    }
    if (n[i] > 0) {
      positivo++;
    }
    if (n[i] < 0) {
      negativo++;
    }
  }
  printf("%d valor(es) par(es)\n", par);
  printf("%d valor(es) impar(es)\n", impar);
  printf("%d valor(es) positivo(s)\n", positivo);
  printf("%d valor(es) negativo(s)\n", negativo);
  return 0;
}


x86 assembly (clang, -O0):
<main>:
push   %rbp
mov    %rsp,%rbp
sub    $0x40,%rsp
movl   $0x0,-0x4(%rbp)
movl   $0x0,-0x28(%rbp)
movl   $0x0,-0x2c(%rbp)
movl   $0x0,-0x30(%rbp)
movl   $0x0,-0x34(%rbp)
movl   $0x1,-0x24(%rbp)
cmpl   $0x5,-0x24(%rbp)
jg     1217 <main+0xf7>
movslq -0x24(%rbp),%rax
lea    -0x20(%rbp),%rsi
shl    $0x2,%rax
add    %rax,%rsi
lea    0xe8e(%rip),%rdi
call   1040 <scanf@plt>
movslq -0x24(%rbp),%rax
mov    -0x20(%rbp,%rax,4),%eax
mov    $0x2,%ecx
cltd
idiv   %ecx
cmp    $0x0,%edx
jne    1199 <main+0x79>
mov    -0x30(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0x30(%rbp)
movslq -0x24(%rbp),%rax
mov    -0x20(%rbp,%rax,4),%eax
mov    $0x2,%ecx
cltd
idiv   %ecx
cmp    $0x1,%edx
je     11cb <main+0xab>
movslq -0x24(%rbp),%rax
mov    -0x20(%rbp,%rax,4),%eax
mov    $0x2,%ecx
cltd
idiv   %ecx
cmp    $0xffffffff,%edx
jne    11d4 <main+0xb4>
mov    -0x34(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0x34(%rbp)
movslq -0x24(%rbp),%rax
cmpl   $0x0,-0x20(%rbp,%rax,4)
jle    11ec <main+0xcc>
mov    -0x28(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0x28(%rbp)
movslq -0x24(%rbp),%rax
cmpl   $0x0,-0x20(%rbp,%rax,4)
jge    1204 <main+0xe4>
mov    -0x2c(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0x2c(%rbp)
jmp    1209 <main+0xe9>
mov    -0x24(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0x24(%rbp)
jmp    1152 <main+0x32>
mov    -0x30(%rbp),%esi
lea    0xde2(%rip),%rdi
call   1030 <printf@plt>
mov    -0x34(%rbp),%esi
lea    0xde9(%rip),%rdi
call   1030 <printf@plt>
mov    -0x28(%rbp),%esi
lea    0xdf2(%rip),%rdi
call   1030 <printf@plt>
mov    -0x2c(%rbp),%esi
lea    0xdfd(%rip),%rdi
call   1030 <printf@plt>
xor    %eax,%eax
add    $0x40,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<main>:
push   %rbp
push   %r15
push   %r14
push   %r13
push   %r12
push   %rbx
sub    $0x48,%rsp
lea    0x14(%rsp),%rsi
lea    0xed6(%rip),%rbp
mov    %rbp,%rdi
call   1040 <scanf@plt>
mov    0x14(%rsp),%ecx
mov    %ecx,%eax
shr    $0x1f,%eax
mov    %rax,0x40(%rsp)
add    %ecx,%eax
and    $0xfffffffe,%eax
mov    %rcx,0x38(%rsp)
sub    %eax,%ecx
cmp    $0x1,%ecx
sete   %al
cmp    $0xffffffff,%ecx
sete   %cl
or     %al,%cl
movzbl %cl,%ebx
lea    0x18(%rsp),%rsi
mov    %rbp,%rdi
call   1040 <scanf@plt>
mov    0x18(%rsp),%eax
mov    %eax,%ebp
shr    $0x1f,%ebp
lea    (%rax,%rbp,1),%ecx
and    $0xfffffffe,%ecx
mov    %rax,0x30(%rsp)
sub    %ecx,%eax
cmp    $0x1,%eax
je     119a <main+0x7a>
cmp    $0xffffffff,%eax
jne    119d <main+0x7d>
add    $0x1,%ebx
lea    0x1c(%rsp),%rsi
lea    0xe67(%rip),%rdi
call   1040 <scanf@plt>
mov    0x1c(%rsp),%r14d
mov    %r14d,%r12d
shr    $0x1f,%r12d
lea    (%r14,%r12,1),%ecx
and    $0xfffffffe,%ecx
mov    %r14d,%eax
sub    %ecx,%eax
cmp    $0x1,%eax
je     11d0 <main+0xb0>
cmp    $0xffffffff,%eax
jne    11d3 <main+0xb3>
add    $0x1,%ebx
mov    %ebx,0xc(%rsp)
lea    0x20(%rsp),%rsi
lea    0xe2d(%rip),%rdi
call   1040 <scanf@plt>
mov    0x20(%rsp),%r13d
mov    %r13d,%r15d
shr    $0x1f,%r15d
lea    (%r15,%r13,1),%ecx
and    $0xfffffffe,%ecx
mov    %r13d,%eax
sub    %ecx,%eax
cmp    $0x1,%eax
je     120a <main+0xea>
cmp    $0xffffffff,%eax
jne    120f <main+0xef>
addl   $0x1,0xc(%rsp)
lea    0x24(%rsp),%rsi
lea    0xdf5(%rip),%rdi
call   1040 <scanf@plt>
mov    0x24(%rsp),%eax
mov    %eax,%ebx
shr    $0x1f,%ebx
lea    (%rax,%rbx,1),%edx
and    $0xfffffffe,%edx
mov    %eax,%ecx
sub    %edx,%ecx
cmp    $0x1,%ecx
je     123d <main+0x11d>
cmp    $0xffffffff,%ecx
jne    1242 <main+0x122>
addl   $0x1,0xc(%rsp)
mov    %eax,%ecx
not    %ecx
movd   0x38(%rsp),%xmm0
movd   0x30(%rsp),%xmm1
movdqa %xmm1,%xmm2
punpckldq %xmm0,%xmm2
movd   %r14d,%xmm3
movd   %r13d,%xmm4
movdqa %xmm4,%xmm5
punpckldq %xmm3,%xmm5
punpcklqdq %xmm2,%xmm5
pandn  0xd88(%rip),%xmm5
and    $0x1,%ecx
pshufd $0xee,%xmm5,%xmm2
paddd  %xmm5,%xmm2
pshufd $0x55,%xmm2,%xmm5
paddd  %xmm2,%xmm5
movd   %xmm5,%esi
add    %ecx,%esi
add    0x40(%rsp),%ebp
add    %ebp,%r12d
add    %r12d,%r15d
punpckldq %xmm4,%xmm3
punpckldq %xmm1,%xmm0
punpcklqdq %xmm3,%xmm0
pxor   %xmm1,%xmm1
pcmpgtd %xmm1,%xmm0
xor    %ecx,%ecx
test   %eax,%eax
setg   %cl
movmskps %xmm0,%eax
mov    %eax,%edx
shr    %dl
and    $0x5,%dl
sub    %dl,%al
mov    %eax,%edx
and    $0x33,%dl
shr    $0x2,%al
and    $0x33,%al
add    %dl,%al
mov    %eax,%edx
shr    $0x4,%dl
add    %al,%dl
and    $0xf,%dl
movzbl %dl,%ebp
add    %ecx,%ebp
add    %r15d,%ebx
lea    0xd2a(%rip),%rdi
call   1030 <printf@plt>
lea    0xd34(%rip),%rdi
mov    0xc(%rsp),%esi
call   1030 <printf@plt>
lea    0xd3c(%rip),%rdi
mov    %ebp,%esi
call   1030 <printf@plt>
lea    0xd48(%rip),%rdi
mov    %ebx,%esi
call   1030 <printf@plt>
xor    %eax,%eax
add    $0x48,%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 = [22 x i8] c"%d valor(es) par(es)\0A\00"
@.str.2 = [24 x i8] c"%d valor(es) impar(es)\0A\00"
@.str.3 = [26 x i8] c"%d valor(es) positivo(s)\0A\00"
@.str.4 = [26 x i8] c"%d valor(es) negativo(s)\0A\00"
define i32 @main() {
%1 = alloca i32
%2 = alloca [5 x i32]
%3 = alloca i32
%4 = alloca i32
%5 = alloca i32
%6 = alloca i32
%7 = alloca i32
store i32 0, i32* %1
store i32 0, i32* %4
store i32 0, i32* %5
store i32 0, i32* %6
store i32 0, i32* %7
store i32 1, i32* %3
br label %8
8: ; preds = %61, %0
%9 = load i32, i32* %3
%10 = icmp sle i32 %9, 5
br i1 %10, label %11, label %64
11: ; preds = %8
%12 = load i32, i32* %3
%13 = sext i32 %12 to i64
%14 = getelementptr inbounds [5 x i32], [5 x i32]* %2, i64 0, i64 %13
%15 = call i32 @scanf(i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str, i64 0, i64 0), i32* %14)
%16 = load i32, i32* %3
%17 = sext i32 %16 to i64
%18 = getelementptr inbounds [5 x i32], [5 x i32]* %2, i64 0, i64 %17
%19 = load i32, i32* %18
%20 = srem i32 %19, 2
%21 = icmp eq i32 %20, 0
br i1 %21, label %22, label %25
22: ; preds = %11
%23 = load i32, i32* %6
%24 = add nsw i32 %23, 1
store i32 %24, i32* %6
br label %25
25: ; preds = %22, %11
%26 = load i32, i32* %3
%27 = sext i32 %26 to i64
%28 = getelementptr inbounds [5 x i32], [5 x i32]* %2, i64 0, i64 %27
%29 = load i32, i32* %28
%30 = srem i32 %29, 2
%31 = icmp eq i32 %30, 1
br i1 %31, label %39, label %32
32: ; preds = %25
%33 = load i32, i32* %3
%34 = sext i32 %33 to i64
%35 = getelementptr inbounds [5 x i32], [5 x i32]* %2, i64 0, i64 %34
%36 = load i32, i32* %35
%37 = srem i32 %36, 2
%38 = icmp eq i32 %37, -1
br i1 %38, label %39, label %42
39: ; preds = %32, %25
%40 = load i32, i32* %7
%41 = add nsw i32 %40, 1
store i32 %41, i32* %7
br label %42
42: ; preds = %39, %32
%43 = load i32, i32* %3
%44 = sext i32 %43 to i64
%45 = getelementptr inbounds [5 x i32], [5 x i32]* %2, i64 0, i64 %44
%46 = load i32, i32* %45
%47 = icmp sgt i32 %46, 0
br i1 %47, label %48, label %51
48: ; preds = %42
%49 = load i32, i32* %4
%50 = add nsw i32 %49, 1
store i32 %50, i32* %4
br label %51
51: ; preds = %48, %42
%52 = load i32, i32* %3
%53 = sext i32 %52 to i64
%54 = getelementptr inbounds [5 x i32], [5 x i32]* %2, i64 0, i64 %53
%55 = load i32, i32* %54
%56 = icmp slt i32 %55, 0
br i1 %56, label %57, label %60
57: ; preds = %51
%58 = load i32, i32* %5
%59 = add nsw i32 %58, 1
store i32 %59, i32* %5
br label %60
60: ; preds = %57, %51
br label %61
61: ; preds = %60
%62 = load i32, i32* %3
%63 = add nsw i32 %62, 1
store i32 %63, i32* %3
br label %8
64: ; preds = %8
%65 = load i32, i32* %6
%66 = call i32 @printf(i8* getelementptr inbounds ([22 x i8], [22 x i8]* @.str.1, i64 0, i64 0), i32 %65)
%67 = load i32, i32* %7
%68 = call i32 @printf(i8* getelementptr inbounds ([24 x i8], [24 x i8]* @.str.2, i64 0, i64 0), i32 %67)
%69 = load i32, i32* %4
%70 = call i32 @printf(i8* getelementptr inbounds ([26 x i8], [26 x i8]* @.str.3, i64 0, i64 0), i32 %69)
%71 = load i32, i32* %5
%72 = call i32 @printf(i8* getelementptr inbounds ([26 x i8], [26 x i8]* @.str.4, i64 0, i64 0), i32 %71)
ret i32 0
}

LLVM IR (-O2):
@.str = [3 x i8] c"%d\00"
@.str.1 = [22 x i8] c"%d valor(es) par(es)\0A\00"
@.str.2 = [24 x i8] c"%d valor(es) impar(es)\0A\00"
@.str.3 = [26 x i8] c"%d valor(es) positivo(s)\0A\00"
@.str.4 = [26 x i8] c"%d valor(es) negativo(s)\0A\00"
define i32 @main() {
%1 = alloca [5 x i32]
%2 = bitcast [5 x i32]* %1 to i8*
%3 = getelementptr inbounds [5 x i32], [5 x i32]* %1, i64 0, i64 1
%4 = call i32 @scanf(i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str, i64 0, i64 0), i32* %3)
%5 = load i32, i32* %3
%6 = srem i32 %5, 2
%7 = icmp eq i32 %6, 1
%8 = icmp eq i32 %6, -1
%9 = or i1 %7, %8
%10 = zext i1 %9 to i32
%11 = getelementptr inbounds [5 x i32], [5 x i32]* %1, i64 0, i64 2
%12 = call i32 @scanf(i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str, i64 0, i64 0), i32* %11)
%13 = load i32, i32* %11
%14 = srem i32 %13, 2
switch i32 %14, label %17 [
i32 1, label %15
i32 -1, label %15
]
15: ; preds = %0, %0
%16 = select i1 %9, i32 2, i32 1
br label %17
17: ; preds = %15, %0
%18 = phi i32 [ %16, %15 ], [ %10, %0 ]
%19 = getelementptr inbounds [5 x i32], [5 x i32]* %1, i64 0, i64 3
%20 = call i32 @scanf(i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str, i64 0, i64 0), i32* %19)
%21 = load i32, i32* %19
%22 = srem i32 %21, 2
switch i32 %22, label %25 [
i32 1, label %23
i32 -1, label %23
]
23: ; preds = %17, %17
%24 = add nuw nsw i32 %18, 1
br label %25
25: ; preds = %23, %17
%26 = phi i32 [ %24, %23 ], [ %18, %17 ]
%27 = getelementptr inbounds [5 x i32], [5 x i32]* %1, i64 0, i64 4
%28 = call i32 @scanf(i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str, i64 0, i64 0), i32* %27)
%29 = load i32, i32* %27
%30 = srem i32 %29, 2
switch i32 %30, label %33 [
i32 1, label %31
i32 -1, label %31
]
31: ; preds = %25, %25
%32 = add nuw nsw i32 %26, 1
br label %33
33: ; preds = %31, %25
%34 = phi i32 [ %32, %31 ], [ %26, %25 ]
%35 = getelementptr inbounds [5 x i32], [5 x i32]* %1, i64 0, i64 5
%36 = call i32 @scanf(i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str, i64 0, i64 0), i32* %35)
%37 = load i32, i32* %35
%38 = srem i32 %37, 2
switch i32 %38, label %41 [
i32 1, label %39
i32 -1, label %39
]
39: ; preds = %33, %33
%40 = add nuw nsw i32 %34, 1
br label %41
41: ; preds = %39, %33
%42 = phi i32 [ %40, %39 ], [ %34, %33 ]
%43 = and i32 %37, 1
%44 = xor i32 %43, 1
%45 = insertelement <4 x i32> poison, i32 %29, i64 0
%46 = insertelement <4 x i32> %45, i32 %21, i64 1
%47 = insertelement <4 x i32> %46, i32 %13, i64 2
%48 = insertelement <4 x i32> %47, i32 %5, i64 3
%49 = and <4 x i32> %48, <i32 1, i32 1, i32 1, i32 1>
%50 = xor <4 x i32> %49, <i32 1, i32 1, i32 1, i32 1>
%51 = call i32 @llvm.vector.reduce.add.v4i32(<4 x i32> %50)
%52 = add nuw nsw i32 %44, %51
%53 = lshr i32 %29, 31
%54 = lshr i32 %21, 31
%55 = lshr i32 %13, 31
%56 = lshr i32 %5, 31
%57 = add nuw nsw i32 %55, %56
%58 = add nuw nsw i32 %54, %57
%59 = add nuw nsw i32 %53, %58
%60 = insertelement <4 x i32> poison, i32 %5, i64 0
%61 = insertelement <4 x i32> %60, i32 %13, i64 1
%62 = insertelement <4 x i32> %61, i32 %21, i64 2
%63 = insertelement <4 x i32> %62, i32 %29, i64 3
%64 = icmp sgt <4 x i32> %63, zeroinitializer
%65 = icmp sgt i32 %37, 0
%66 = zext i1 %65 to i32
%67 = bitcast <4 x i1> %64 to i4
%68 = call i4 @llvm.ctpop.i4(i4 %67)
%69 = zext i4 %68 to i32
%70 = add nuw nsw i32 %69, %66
%71 = lshr i32 %37, 31
%72 = add nuw nsw i32 %71, %59
%73 = call i32 @printf(i8* getelementptr inbounds ([22 x i8], [22 x i8]* @.str.1, i64 0, i64 0), i32 %52)
%74 = call i32 @printf(i8* getelementptr inbounds ([24 x i8], [24 x i8]* @.str.2, i64 0, i64 0), i32 %42)
%75 = call i32 @printf(i8* getelementptr inbounds ([26 x i8], [26 x i8]* @.str.3, i64 0, i64 0), i32 %70)
%76 = call i32 @printf(i8* getelementptr inbounds ([26 x i8], [26 x i8]* @.str.4, i64 0, i64 0), i32 %72)
ret i32 0
}