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


x86 assembly (clang, -O0):
<main>:
push   %rbp
mov    %rsp,%rbp
sub    $0x20,%rsp
movl   $0x0,-0x4(%rbp)
movl   $0x0,-0x18(%rbp)
movl   $0x0,-0x14(%rbp)
movl   $0x0,-0x10(%rbp)
movl   $0x0,-0xc(%rbp)
movl   $0x1,-0x1c(%rbp)
cmpl   $0x5,-0x1c(%rbp)
jg     11da <main+0xba>
lea    0xe9d(%rip),%rdi
lea    -0x8(%rbp),%rsi
call   1040 <scanf@plt>
cmpl   $0x0,-0x8(%rbp)
jle    1184 <main+0x64>
mov    -0x14(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0x14(%rbp)
jmp    119c <main+0x7c>
cmpl   $0x0,-0x8(%rbp)
jge    1197 <main+0x77>
mov    -0x18(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0x18(%rbp)
jmp    119c <main+0x7c>
mov    -0x8(%rbp),%eax
mov    $0x2,%ecx
cltd
idiv   %ecx
cmp    $0x0,%edx
je     11be <main+0x9e>
mov    -0x10(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0x10(%rbp)
jmp    11c7 <main+0xa7>
mov    -0xc(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0xc(%rbp)
jmp    11cc <main+0xac>
mov    -0x1c(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0x1c(%rbp)
jmp    1152 <main+0x32>
mov    -0xc(%rbp),%esi
mov    -0x10(%rbp),%edx
mov    -0x14(%rbp),%ecx
mov    -0x18(%rbp),%r8d
lea    0xe15(%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),%rbp
mov    %rsp,%r13
mov    %rbp,%rdi
mov    %r13,%rsi
call   1040 <scanf@plt>
mov    (%rsp),%ebx
mov    %ebx,%r15d
shr    $0x1f,%r15d
xor    %eax,%eax
xor    %r14d,%r14d
test   %ebx,%ebx
setg   %r14b
cmovg  %eax,%r15d
and    $0x1,%ebx
mov    %ebx,%r12d
xor    $0x1,%r12d
mov    %rbp,%rdi
mov    %r13,%rsi
call   1040 <scanf@plt>
mov    (%rsp),%r13d
mov    %r13d,%ebp
shr    $0x1f,%ebp
xor    %eax,%eax
test   %r13d,%r13d
setg   %al
mov    $0x0,%ecx
cmovg  %ecx,%ebp
add    %r14d,%eax
mov    %eax,0x4(%rsp)
add    %r15d,%ebp
and    $0x1,%r13d
mov    %r13d,%r14d
xor    $0x1,%r14d
add    %r12d,%r14d
add    %ebx,%r13d
lea    0xe56(%rip),%rdi
mov    %rsp,%rsi
call   1040 <scanf@plt>
mov    (%rsp),%r15d
mov    %r15d,%ebx
shr    $0x1f,%ebx
xor    %ecx,%ecx
test   %r15d,%r15d
setg   %cl
mov    $0x0,%eax
cmovg  %eax,%ebx
add    0x4(%rsp),%ecx
mov    %ecx,0x4(%rsp)
add    %ebp,%ebx
and    $0x1,%r15d
mov    %r15d,%r12d
xor    $0x1,%r12d
add    %r14d,%r12d
add    %r13d,%r15d
lea    0xe12(%rip),%rdi
mov    %rsp,%rsi
call   1040 <scanf@plt>
mov    (%rsp),%r13d
mov    %r13d,%ebp
shr    $0x1f,%ebp
xor    %r14d,%r14d
test   %r13d,%r13d
setg   %r14b
mov    $0x0,%eax
cmovg  %eax,%ebp
add    0x4(%rsp),%r14d
add    %ebx,%ebp
and    $0x1,%r13d
mov    %r13d,%ebx
xor    $0x1,%ebx
add    %r12d,%ebx
add    %r15d,%r13d
lea    0xdd0(%rip),%rdi
mov    %rsp,%rsi
call   1040 <scanf@plt>
mov    (%rsp),%edx
mov    %edx,%r8d
shr    $0x1f,%r8d
xor    %ecx,%ecx
test   %edx,%edx
setg   %cl
mov    $0x0,%eax
cmovg  %eax,%r8d
add    %r14d,%ecx
add    %ebp,%r8d
and    $0x1,%edx
mov    %edx,%esi
xor    $0x1,%esi
add    %ebx,%esi
add    %r13d,%edx
lea    0xd97(%rip),%rdi
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"%i\00"
@.str.1 = [95 x i8] c"%i valor(es) par(es)\0A%i valor(es) impar(es)\0A%i valor(es) positivo(s)\0A%i 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* %6
store i32 0, i32* %5
store i32 0, i32* %4
store i32 0, i32* %3
store i32 1, i32* %7
br label %8
8: ; preds = %36, %0
%9 = load i32, i32* %7
%10 = icmp sle i32 %9, 5
br i1 %10, label %11, label %39
11: ; preds = %8
%12 = call i32 @scanf(i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str, i64 0, i64 0), i32* %2)
%13 = load i32, i32* %2
%14 = icmp sgt i32 %13, 0
br i1 %14, label %15, label %18
15: ; preds = %11
%16 = load i32, i32* %5
%17 = add nsw i32 %16, 1
store i32 %17, i32* %5
br label %25
18: ; preds = %11
%19 = load i32, i32* %2
%20 = icmp slt i32 %19, 0
br i1 %20, label %21, label %24
21: ; preds = %18
%22 = load i32, i32* %6
%23 = add nsw i32 %22, 1
store i32 %23, i32* %6
br label %24
24: ; preds = %21, %18
br label %25
25: ; preds = %24, %15
%26 = load i32, i32* %2
%27 = srem i32 %26, 2
%28 = icmp ne i32 %27, 0
br i1 %28, label %29, label %32
29: ; preds = %25
%30 = load i32, i32* %4
%31 = add nsw i32 %30, 1
store i32 %31, i32* %4
br label %35
32: ; preds = %25
%33 = load i32, i32* %3
%34 = add nsw i32 %33, 1
store i32 %34, i32* %3
br label %35
35: ; preds = %32, %29
br label %36
36: ; preds = %35
%37 = load i32, i32* %7
%38 = add nsw i32 %37, 1
store i32 %38, i32* %7
br label %8
39: ; preds = %8
%40 = load i32, i32* %3
%41 = load i32, i32* %4
%42 = load i32, i32* %5
%43 = load i32, i32* %6
%44 = call i32 @printf(i8* getelementptr inbounds ([95 x i8], [95 x i8]* @.str.1, i64 0, i64 0), i32 %40, i32 %41, i32 %42, i32 %43)
ret i32 0
}

LLVM IR (-O2):
@.str = [3 x i8] c"%i\00"
@.str.1 = [95 x i8] c"%i valor(es) par(es)\0A%i valor(es) impar(es)\0A%i valor(es) positivo(s)\0A%i 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 = icmp sgt i32 %4, 0
%6 = lshr i32 %4, 31
%7 = zext i1 %5 to i32
%8 = select i1 %5, i32 0, i32 %6
%9 = and i32 %4, 1
%10 = xor i32 %9, 1
%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 = icmp sgt i32 %12, 0
%14 = lshr i32 %12, 31
%15 = zext i1 %13 to i32
%16 = add nuw nsw i32 %7, %15
%17 = select i1 %13, i32 0, i32 %14
%18 = add nuw nsw i32 %17, %8
%19 = and i32 %12, 1
%20 = xor i32 %19, 1
%21 = add nuw nsw i32 %20, %10
%22 = add nuw nsw i32 %19, %9
%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 = icmp sgt i32 %24, 0
%26 = lshr i32 %24, 31
%27 = zext i1 %25 to i32
%28 = add nuw nsw i32 %16, %27
%29 = select i1 %25, i32 0, i32 %26
%30 = add nuw nsw i32 %29, %18
%31 = and i32 %24, 1
%32 = xor i32 %31, 1
%33 = add nuw nsw i32 %32, %21
%34 = add nuw nsw i32 %31, %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 = icmp sgt i32 %36, 0
%38 = lshr i32 %36, 31
%39 = zext i1 %37 to i32
%40 = add nuw nsw i32 %28, %39
%41 = select i1 %37, i32 0, i32 %38
%42 = add nuw nsw i32 %41, %30
%43 = and i32 %36, 1
%44 = xor i32 %43, 1
%45 = add nuw nsw i32 %44, %33
%46 = add nuw nsw i32 %43, %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 = icmp sgt i32 %48, 0
%50 = lshr i32 %48, 31
%51 = zext i1 %49 to i32
%52 = add nuw nsw i32 %40, %51
%53 = select i1 %49, i32 0, i32 %50
%54 = add nuw nsw i32 %53, %42
%55 = and i32 %48, 1
%56 = xor i32 %55, 1
%57 = add nuw nsw i32 %56, %45
%58 = add nuw nsw i32 %55, %46
%59 = call i32 @printf(i8* getelementptr inbounds ([95 x i8], [95 x i8]* @.str.1, i64 0, i64 0), i32 %57, i32 %58, i32 %52, i32 %54)
ret i32 0
}