#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() {
  int i, n, esum = 0, osum = 0, psum = 0, nsum = 0;
  for (i = 1; i <= 5; i++) {
    scanf("%d", &n);
    if (n >= 0 && n % 2 == 0 || n < 0 && n % 2 == -0) {
      esum++;
    }
    if (n >= 0 && n % 2 != 0 || n < 0 && n % 2 != -0) {
      osum++;
    }
    if (n > 0) {
      psum++;
    }
    if (n < 0) {
      nsum++;
    }
  }
  printf("%d valor(es) par(es)\n", esum);
  printf("%d valor(es) impar(es)\n", osum);
  printf("%d valor(es) positivo(s)\n", psum);
  printf("%d valor(es) negativo(s)\n", nsum);
  return 0;
}


x86 assembly (clang, -O0):
<main>:
push   %rbp
mov    %rsp,%rbp
sub    $0x20,%rsp
movl   $0x0,-0x4(%rbp)
movl   $0x0,-0x10(%rbp)
movl   $0x0,-0x14(%rbp)
movl   $0x0,-0x18(%rbp)
movl   $0x0,-0x1c(%rbp)
movl   $0x1,-0x8(%rbp)
cmpl   $0x5,-0x8(%rbp)
jg     122f <main+0x10f>
lea    0xe9d(%rip),%rdi
lea    -0xc(%rbp),%rsi
call   1040 <scanf@plt>
cmpl   $0x0,-0xc(%rbp)
jl     118a <main+0x6a>
mov    -0xc(%rbp),%eax
mov    $0x2,%ecx
cltd
idiv   %ecx
cmp    $0x0,%edx
je     11a8 <main+0x88>
cmpl   $0x0,-0xc(%rbp)
jge    11b1 <main+0x91>
mov    -0xc(%rbp),%eax
mov    $0x2,%ecx
cltd
idiv   %ecx
cmp    $0x0,%edx
jne    11b1 <main+0x91>
mov    -0x10(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0x10(%rbp)
cmpl   $0x0,-0xc(%rbp)
jl     11cf <main+0xaf>
mov    -0xc(%rbp),%eax
mov    $0x2,%ecx
cltd
idiv   %ecx
cmp    $0x0,%edx
jne    11ed <main+0xcd>
cmpl   $0x0,-0xc(%rbp)
jge    11f6 <main+0xd6>
mov    -0xc(%rbp),%eax
mov    $0x2,%ecx
cltd
idiv   %ecx
cmp    $0x0,%edx
je     11f6 <main+0xd6>
mov    -0x14(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0x14(%rbp)
cmpl   $0x0,-0xc(%rbp)
jle    1209 <main+0xe9>
mov    -0x18(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0x18(%rbp)
cmpl   $0x0,-0xc(%rbp)
jge    121c <main+0xfc>
mov    -0x1c(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0x1c(%rbp)
jmp    1221 <main+0x101>
mov    -0x8(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0x8(%rbp)
jmp    1152 <main+0x32>
mov    -0x10(%rbp),%esi
lea    0xdca(%rip),%rdi
call   1030 <printf@plt>
mov    -0x14(%rbp),%esi
lea    0xdd1(%rip),%rdi
call   1030 <printf@plt>
mov    -0x18(%rbp),%esi
lea    0xdda(%rip),%rdi
call   1030 <printf@plt>
mov    -0x1c(%rbp),%esi
lea    0xde5(%rip),%rdi
call   1030 <printf@plt>
xor    %eax,%eax
add    $0x20,%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),%rbx
mov    %rsp,%r13
mov    %rbx,%rdi
mov    %r13,%rsi
call   1040 <scanf@plt>
mov    (%rsp),%ebp
mov    %ebp,%eax
and    $0x1,%eax
mov    %eax,%r14d
mov    %eax,%r15d
xor    $0x1,%r14d
xor    %r12d,%r12d
test   %ebp,%ebp
setg   %r12b
shr    $0x1f,%ebp
mov    %rbx,%rdi
mov    %r13,%rsi
call   1040 <scanf@plt>
mov    (%rsp),%r13d
mov    %r13d,%ebx
and    $0x1,%ebx
add    %ebx,%r15d
mov    %r15d,0x4(%rsp)
xor    $0x1,%ebx
add    %r14d,%ebx
xor    %r15d,%r15d
test   %r13d,%r13d
setg   %r15b
add    %r12d,%r15d
shr    $0x1f,%r13d
add    %ebp,%r13d
lea    0xe64(%rip),%rdi
mov    %rsp,%rsi
call   1040 <scanf@plt>
mov    (%rsp),%r14d
mov    %r14d,%ebp
and    $0x1,%ebp
add    %ebp,0x4(%rsp)
xor    $0x1,%ebp
add    %ebx,%ebp
xor    %r12d,%r12d
test   %r14d,%r14d
setg   %r12b
add    %r15d,%r12d
shr    $0x1f,%r14d
add    %r13d,%r14d
lea    0xe2e(%rip),%rdi
mov    %rsp,%rsi
call   1040 <scanf@plt>
mov    (%rsp),%r13d
mov    %r13d,%ebx
and    $0x1,%ebx
add    %ebx,0x4(%rsp)
xor    $0x1,%ebx
add    %ebp,%ebx
xor    %r15d,%r15d
test   %r13d,%r13d
setg   %r15b
add    %r12d,%r15d
shr    $0x1f,%r13d
add    %r14d,%r13d
lea    0xdf8(%rip),%rdi
mov    %rsp,%rsi
call   1040 <scanf@plt>
mov    (%rsp),%ebp
mov    %ebp,%esi
and    $0x1,%esi
mov    0x4(%rsp),%r14d
add    %esi,%r14d
xor    $0x1,%esi
add    %ebx,%esi
xor    %ebx,%ebx
test   %ebp,%ebp
setg   %bl
add    %r15d,%ebx
shr    $0x1f,%ebp
add    %r13d,%ebp
lea    0xdc7(%rip),%rdi
call   1030 <printf@plt>
lea    0xdd1(%rip),%rdi
mov    %r14d,%esi
call   1030 <printf@plt>
lea    0xdda(%rip),%rdi
mov    %ebx,%esi
call   1030 <printf@plt>
lea    0xde6(%rip),%rdi
mov    %ebp,%esi
call   1030 <printf@plt>
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 = [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 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* %2
br label %8
8: ; preds = %59, %0
%9 = load i32, i32* %2
%10 = icmp sle i32 %9, 5
br i1 %10, label %11, label %62
11: ; preds = %8
%12 = call i32 @scanf(i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str, i64 0, i64 0), i32* %3)
%13 = load i32, i32* %3
%14 = icmp sge i32 %13, 0
br i1 %14, label %15, label %19
15: ; preds = %11
%16 = load i32, i32* %3
%17 = srem i32 %16, 2
%18 = icmp eq i32 %17, 0
br i1 %18, label %26, label %19
19: ; preds = %15, %11
%20 = load i32, i32* %3
%21 = icmp slt i32 %20, 0
br i1 %21, label %22, label %29
22: ; preds = %19
%23 = load i32, i32* %3
%24 = srem i32 %23, 2
%25 = icmp eq i32 %24, 0
br i1 %25, label %26, label %29
26: ; preds = %22, %15
%27 = load i32, i32* %4
%28 = add nsw i32 %27, 1
store i32 %28, i32* %4
br label %29
29: ; preds = %26, %22, %19
%30 = load i32, i32* %3
%31 = icmp sge i32 %30, 0
br i1 %31, label %32, label %36
32: ; preds = %29
%33 = load i32, i32* %3
%34 = srem i32 %33, 2
%35 = icmp ne i32 %34, 0
br i1 %35, label %43, label %36
36: ; preds = %32, %29
%37 = load i32, i32* %3
%38 = icmp slt i32 %37, 0
br i1 %38, label %39, label %46
39: ; preds = %36
%40 = load i32, i32* %3
%41 = srem i32 %40, 2
%42 = icmp ne i32 %41, 0
br i1 %42, label %43, label %46
43: ; preds = %39, %32
%44 = load i32, i32* %5
%45 = add nsw i32 %44, 1
store i32 %45, i32* %5
br label %46
46: ; preds = %43, %39, %36
%47 = load i32, i32* %3
%48 = icmp sgt i32 %47, 0
br i1 %48, label %49, label %52
49: ; preds = %46
%50 = load i32, i32* %6
%51 = add nsw i32 %50, 1
store i32 %51, i32* %6
br label %52
52: ; preds = %49, %46
%53 = load i32, i32* %3
%54 = icmp slt i32 %53, 0
br i1 %54, label %55, label %58
55: ; preds = %52
%56 = load i32, i32* %7
%57 = add nsw i32 %56, 1
store i32 %57, i32* %7
br label %58
58: ; preds = %55, %52
br label %59
59: ; preds = %58
%60 = load i32, i32* %2
%61 = add nsw i32 %60, 1
store i32 %61, i32* %2
br label %8
62: ; preds = %8
%63 = load i32, i32* %4
%64 = call i32 @printf(i8* getelementptr inbounds ([22 x i8], [22 x i8]* @.str.1, i64 0, i64 0), i32 %63)
%65 = load i32, i32* %5
%66 = call i32 @printf(i8* getelementptr inbounds ([24 x i8], [24 x i8]* @.str.2, i64 0, i64 0), i32 %65)
%67 = load i32, i32* %6
%68 = call i32 @printf(i8* getelementptr inbounds ([26 x i8], [26 x i8]* @.str.3, i64 0, i64 0), i32 %67)
%69 = load i32, i32* %7
%70 = call i32 @printf(i8* getelementptr inbounds ([26 x i8], [26 x i8]* @.str.4, i64 0, i64 0), i32 %69)
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 i32
%2 = bitcast i32* %1 to i8*
%3 = call i32 @scanf(i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str, i64 0, i64 0), i32* %1)
%4 = load i32, i32* %1
%5 = and i32 %4, 1
%6 = and i32 %4, 1
%7 = xor i32 %6, 1
%8 = icmp sgt i32 %4, 0
%9 = zext i1 %8 to i32
%10 = lshr i32 %4, 31
%11 = call i32 @scanf(i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str, i64 0, i64 0), i32* %1)
%12 = load i32, i32* %1
%13 = and i32 %12, 1
%14 = and i32 %12, 1
%15 = xor i32 %14, 1
%16 = add nuw nsw i32 %7, %15
%17 = add nuw nsw i32 %5, %13
%18 = icmp sgt i32 %12, 0
%19 = zext i1 %18 to i32
%20 = add nuw nsw i32 %9, %19
%21 = lshr i32 %12, 31
%22 = add nuw nsw i32 %21, %10
%23 = call i32 @scanf(i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str, i64 0, i64 0), i32* %1)
%24 = load i32, i32* %1
%25 = and i32 %24, 1
%26 = and i32 %24, 1
%27 = xor i32 %26, 1
%28 = add nuw nsw i32 %16, %27
%29 = add nuw nsw i32 %17, %25
%30 = icmp sgt i32 %24, 0
%31 = zext i1 %30 to i32
%32 = add nuw nsw i32 %20, %31
%33 = lshr i32 %24, 31
%34 = add nuw nsw i32 %33, %22
%35 = call i32 @scanf(i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str, i64 0, i64 0), i32* %1)
%36 = load i32, i32* %1
%37 = and i32 %36, 1
%38 = and i32 %36, 1
%39 = xor i32 %38, 1
%40 = add nuw nsw i32 %28, %39
%41 = add nuw nsw i32 %29, %37
%42 = icmp sgt i32 %36, 0
%43 = zext i1 %42 to i32
%44 = add nuw nsw i32 %32, %43
%45 = lshr i32 %36, 31
%46 = add nuw nsw i32 %45, %34
%47 = call i32 @scanf(i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str, i64 0, i64 0), i32* %1)
%48 = load i32, i32* %1
%49 = and i32 %48, 1
%50 = and i32 %48, 1
%51 = xor i32 %50, 1
%52 = add nuw nsw i32 %40, %51
%53 = add nuw nsw i32 %41, %49
%54 = icmp sgt i32 %48, 0
%55 = zext i1 %54 to i32
%56 = add nuw nsw i32 %44, %55
%57 = lshr i32 %48, 31
%58 = add nuw nsw i32 %57, %46
%59 = call i32 @printf(i8* getelementptr inbounds ([22 x i8], [22 x i8]* @.str.1, i64 0, i64 0), i32 %52)
%60 = call i32 @printf(i8* getelementptr inbounds ([24 x i8], [24 x i8]* @.str.2, i64 0, i64 0), i32 %53)
%61 = call i32 @printf(i8* getelementptr inbounds ([26 x i8], [26 x i8]* @.str.3, i64 0, i64 0), i32 %56)
%62 = call i32 @printf(i8* getelementptr inbounds ([26 x i8], [26 x i8]* @.str.4, i64 0, i64 0), i32 %58)
ret i32 0
}