#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 numero, i;
  int pares = 0, impares = 0, positivos = 0, negativos = 0;
  for (i = 0; i < 5; i++) {
    scanf("%d", &numero);
    if (numero % 2 == 0) {
      pares++;
    } else {
      impares++;
    }
    if (numero > 0) {
      positivos++;
    } else if (numero < 0) {
      negativos++;
    }
  }
  printf("%d valor(es) par(es)\n", pares);
  printf("%d valor(es) impar(es)\n", impares);
  printf("%d valor(es) positivo(s)\n", positivos);
  printf("%d valor(es) negativo(s)\n", negativos);
  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   $0x0,-0xc(%rbp)
cmpl   $0x5,-0xc(%rbp)
jge    11da <main+0xba>
lea    0xe9d(%rip),%rdi
lea    -0x8(%rbp),%rsi
call   1040 <scanf@plt>
mov    -0x8(%rbp),%eax
mov    $0x2,%ecx
cltd
idiv   %ecx
cmp    $0x0,%edx
jne    118e <main+0x6e>
mov    -0x10(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0x10(%rbp)
jmp    1197 <main+0x77>
mov    -0x14(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0x14(%rbp)
cmpl   $0x0,-0x8(%rbp)
jle    11af <main+0x8f>
mov    -0x18(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0x18(%rbp)
jmp    11c7 <main+0xa7>
cmpl   $0x0,-0x8(%rbp)
jge    11c2 <main+0xa2>
mov    -0x1c(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0x1c(%rbp)
jmp    11c7 <main+0xa7>
jmp    11cc <main+0xac>
mov    -0xc(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0xc(%rbp)
jmp    1152 <main+0x32>
mov    -0x10(%rbp),%esi
lea    0xe1f(%rip),%rdi
call   1030 <printf@plt>
mov    -0x14(%rbp),%esi
lea    0xe26(%rip),%rdi
call   1030 <printf@plt>
mov    -0x18(%rbp),%esi
lea    0xe2f(%rip),%rdi
call   1030 <printf@plt>
mov    -0x1c(%rbp),%esi
lea    0xe3a(%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,%r14
mov    %rbx,%rdi
mov    %r14,%rsi
call   1040 <scanf@plt>
mov    (%rsp),%eax
mov    %eax,%ebp
and    $0x1,%ebp
mov    %ebp,%r12d
xor    $0x1,%r12d
mov    %eax,%r15d
shr    $0x1f,%r15d
xor    %ecx,%ecx
xor    %edx,%edx
test   %eax,%eax
setg   %dl
mov    %edx,0x4(%rsp)
cmovg  %ecx,%r15d
mov    %rbx,%rdi
mov    %r14,%rsi
call   1040 <scanf@plt>
mov    (%rsp),%eax
mov    %eax,%ebx
and    $0x1,%ebx
mov    %ebx,%r14d
xor    $0x1,%r14d
add    %r12d,%r14d
add    %ebp,%ebx
mov    %eax,%ebp
shr    $0x1f,%ebp
xor    %r13d,%r13d
test   %eax,%eax
setg   %r13b
mov    $0x0,%eax
cmovg  %eax,%ebp
add    0x4(%rsp),%r13d
add    %r15d,%ebp
lea    0xe55(%rip),%rdi
mov    %rsp,%rsi
call   1040 <scanf@plt>
mov    (%rsp),%eax
mov    %eax,%r12d
and    $0x1,%r12d
mov    %r12d,%r15d
xor    $0x1,%r15d
add    %r14d,%r15d
add    %ebx,%r12d
mov    %eax,%ebx
shr    $0x1f,%ebx
xor    %ecx,%ecx
test   %eax,%eax
setg   %cl
mov    $0x0,%eax
cmovg  %eax,%ebx
add    %r13d,%ecx
mov    %ecx,0x4(%rsp)
add    %ebp,%ebx
lea    0xe12(%rip),%rbp
mov    %rbp,%rdi
mov    %rsp,%rsi
call   1040 <scanf@plt>
mov    (%rsp),%eax
mov    %eax,%r14d
and    $0x1,%r14d
mov    %r14d,%ecx
xor    $0x1,%ecx
add    %r15d,%ecx
mov    %ecx,%r15d
add    %r12d,%r14d
mov    %eax,%r13d
shr    $0x1f,%r13d
xor    %r12d,%r12d
test   %eax,%eax
setg   %r12b
mov    $0x0,%eax
cmovg  %eax,%r13d
add    0x4(%rsp),%r12d
add    %ebx,%r13d
mov    %rbp,%rdi
mov    %rsp,%rsi
call   1040 <scanf@plt>
mov    (%rsp),%eax
mov    %eax,%ebp
and    $0x1,%ebp
mov    %ebp,%esi
xor    $0x1,%esi
add    %r15d,%esi
add    %r14d,%ebp
mov    %eax,%ebx
shr    $0x1f,%ebx
xor    %r14d,%r14d
test   %eax,%eax
setg   %r14b
mov    $0x0,%eax
cmovg  %eax,%ebx
add    %r12d,%r14d
add    %r13d,%ebx
lea    0xd8f(%rip),%rdi
call   1030 <printf@plt>
lea    0xd99(%rip),%rdi
mov    %ebp,%esi
call   1030 <printf@plt>
lea    0xda3(%rip),%rdi
mov    %r14d,%esi
call   1030 <printf@plt>
lea    0xdae(%rip),%rdi
mov    %ebx,%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 0, i32* %3
br label %8
8: ; preds = %36, %0
%9 = load i32, i32* %3
%10 = icmp slt 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 = srem i32 %13, 2
%15 = icmp eq i32 %14, 0
br i1 %15, label %16, label %19
16: ; preds = %11
%17 = load i32, i32* %4
%18 = add nsw i32 %17, 1
store i32 %18, i32* %4
br label %22
19: ; preds = %11
%20 = load i32, i32* %5
%21 = add nsw i32 %20, 1
store i32 %21, i32* %5
br label %22
22: ; preds = %19, %16
%23 = load i32, i32* %2
%24 = icmp sgt i32 %23, 0
br i1 %24, label %25, label %28
25: ; preds = %22
%26 = load i32, i32* %6
%27 = add nsw i32 %26, 1
store i32 %27, i32* %6
br label %35
28: ; preds = %22
%29 = load i32, i32* %2
%30 = icmp slt i32 %29, 0
br i1 %30, label %31, label %34
31: ; preds = %28
%32 = load i32, i32* %7
%33 = add nsw i32 %32, 1
store i32 %33, i32* %7
br label %34
34: ; preds = %31, %28
br label %35
35: ; preds = %34, %25
br label %36
36: ; preds = %35
%37 = load i32, i32* %3
%38 = add nsw i32 %37, 1
store i32 %38, i32* %3
br label %8
39: ; preds = %8
%40 = load i32, i32* %4
%41 = call i32 @printf(i8* getelementptr inbounds ([22 x i8], [22 x i8]* @.str.1, i64 0, i64 0), i32 %40)
%42 = load i32, i32* %5
%43 = call i32 @printf(i8* getelementptr inbounds ([24 x i8], [24 x i8]* @.str.2, i64 0, i64 0), i32 %42)
%44 = load i32, i32* %6
%45 = call i32 @printf(i8* getelementptr inbounds ([26 x i8], [26 x i8]* @.str.3, i64 0, i64 0), i32 %44)
%46 = load i32, i32* %7
%47 = call i32 @printf(i8* getelementptr inbounds ([26 x i8], [26 x i8]* @.str.4, i64 0, i64 0), i32 %46)
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 = xor i32 %5, 1
%7 = icmp sgt i32 %4, 0
%8 = lshr i32 %4, 31
%9 = zext i1 %7 to i32
%10 = select i1 %7, i32 0, i32 %8
%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 = xor i32 %13, 1
%15 = add nuw nsw i32 %14, %6
%16 = add nuw nsw i32 %13, %5
%17 = icmp sgt i32 %12, 0
%18 = lshr i32 %12, 31
%19 = zext i1 %17 to i32
%20 = add nuw nsw i32 %9, %19
%21 = select i1 %17, i32 0, i32 %18
%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 = xor i32 %25, 1
%27 = add nuw nsw i32 %26, %15
%28 = add nuw nsw i32 %25, %16
%29 = icmp sgt i32 %24, 0
%30 = lshr i32 %24, 31
%31 = zext i1 %29 to i32
%32 = add nuw nsw i32 %20, %31
%33 = select i1 %29, i32 0, i32 %30
%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 = xor i32 %37, 1
%39 = add nuw nsw i32 %38, %27
%40 = add nuw nsw i32 %37, %28
%41 = icmp sgt i32 %36, 0
%42 = lshr i32 %36, 31
%43 = zext i1 %41 to i32
%44 = add nuw nsw i32 %32, %43
%45 = select i1 %41, i32 0, i32 %42
%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 = xor i32 %49, 1
%51 = add nuw nsw i32 %50, %39
%52 = add nuw nsw i32 %49, %40
%53 = icmp sgt i32 %48, 0
%54 = lshr i32 %48, 31
%55 = zext i1 %53 to i32
%56 = add nuw nsw i32 %44, %55
%57 = select i1 %53, i32 0, i32 %54
%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 %51)
%60 = call i32 @printf(i8* getelementptr inbounds ([24 x i8], [24 x i8]* @.str.2, i64 0, i64 0), i32 %52)
%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
}