#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 /*<<< orphan*/ system(char *);
main() {
  int I, A, aux1, aux2, aux3, aux4;
  aux1 = 0;
  aux2 = 0;
  aux3 = 0;
  aux4 = 0;
  for (I = 0; I < 5; I++) {
    scanf("%d", &A);
    if (A % 2 == 0)
      aux1++;
    else
      aux2++;
    if (A > 0)
      aux3++;
    else if (A < 0)
      aux4++;
  }
  printf("%d valor(es) par(es)\n", aux1);
  printf("%d valor(es) impar(es)\n", aux2);
  printf("%d valor(es) positivo(s)\n", aux3);
  printf("%d valor(es) negativo(s)\n", aux4);
  system("pause");
  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,-0x8(%rbp)
cmpl   $0x5,-0x8(%rbp)
jge    11ea <main+0xba>
lea    0xe8d(%rip),%rdi
lea    -0xc(%rbp),%rsi
call   1050 <scanf@plt>
mov    -0xc(%rbp),%eax
mov    $0x2,%ecx
cltd
idiv   %ecx
cmp    $0x0,%edx
jne    119e <main+0x6e>
mov    -0x10(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0x10(%rbp)
jmp    11a7 <main+0x77>
mov    -0x14(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0x14(%rbp)
cmpl   $0x0,-0xc(%rbp)
jle    11bf <main+0x8f>
mov    -0x18(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0x18(%rbp)
jmp    11d7 <main+0xa7>
cmpl   $0x0,-0xc(%rbp)
jge    11d2 <main+0xa2>
mov    -0x1c(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0x1c(%rbp)
jmp    11d7 <main+0xa7>
jmp    11dc <main+0xac>
mov    -0x8(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0x8(%rbp)
jmp    1162 <main+0x32>
mov    -0x10(%rbp),%esi
lea    0xe0f(%rip),%rdi
call   1040 <printf@plt>
mov    -0x14(%rbp),%esi
lea    0xe16(%rip),%rdi
call   1040 <printf@plt>
mov    -0x18(%rbp),%esi
lea    0xe1f(%rip),%rdi
call   1040 <printf@plt>
mov    -0x1c(%rbp),%esi
lea    0xe2a(%rip),%rdi
call   1040 <printf@plt>
lea    0xe38(%rip),%rdi
call   1030 <system@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    0xebe(%rip),%rbx
mov    %rsp,%r14
mov    %rbx,%rdi
mov    %r14,%rsi
call   1050 <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   1050 <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    0xe45(%rip),%rdi
mov    %rsp,%rsi
call   1050 <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    0xe02(%rip),%rbp
mov    %rbp,%rdi
mov    %rsp,%rsi
call   1050 <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   1050 <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    0xd7f(%rip),%rdi
call   1040 <printf@plt>
lea    0xd89(%rip),%rdi
mov    %ebp,%esi
call   1040 <printf@plt>
lea    0xd93(%rip),%rdi
mov    %r14d,%esi
call   1040 <printf@plt>
lea    0xd9e(%rip),%rdi
mov    %ebx,%esi
call   1040 <printf@plt>
lea    0xdaa(%rip),%rdi
call   1030 <system@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"
@.str.5 = [6 x i8] c"pause\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* %2
br label %8
8: ; preds = %36, %0
%9 = load i32, i32* %2
%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* %3)
%13 = load i32, i32* %3
%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* %3
%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* %3
%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* %2
%38 = add nsw i32 %37, 1
store i32 %38, i32* %2
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)
%48 = call i32 @system(i8* getelementptr inbounds ([6 x i8], [6 x i8]* @.str.5, i64 0, i64 0))
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"
@.str.5 = [6 x i8] c"pause\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)
%63 = call i32 @system(i8* getelementptr inbounds ([6 x i8], [6 x i8]* @.str.5, i64 0, i64 0))
ret i32 0
}