#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;
  int oddQtt = 0, negativeQtt = 0, positiveQtt = 0, totalQtt = 5;
  int i;
  for (i = 0; i < totalQtt; i++) {
    scanf("%d", &num);
    if (num % 2)
      oddQtt++;
    if (num < 0)
      negativeQtt++;
    else if (num > 0)
      positiveQtt++;
  }
  printf("%d valor(es) par(es)\n%d valor(es) impar(es)\n%d valor(es) "
         "positivo(s)\n%d valor(es) negativo(s)\n",
         (totalQtt - oddQtt), (oddQtt), (positiveQtt), (negativeQtt));
  return 0;
}


x86 assembly (clang, -O0):
<main>:
push   %rbp
mov    %rsp,%rbp
sub    $0x20,%rsp
movl   $0x0,-0x4(%rbp)
movl   $0x0,-0xc(%rbp)
movl   $0x0,-0x10(%rbp)
movl   $0x0,-0x14(%rbp)
movl   $0x5,-0x18(%rbp)
movl   $0x0,-0x1c(%rbp)
mov    -0x1c(%rbp),%eax
cmp    -0x18(%rbp),%eax
jge    11ce <main+0xae>
lea    0xe9b(%rip),%rdi
lea    -0x8(%rbp),%rsi
call   1040 <scanf@plt>
mov    -0x8(%rbp),%eax
mov    $0x2,%ecx
cltd
idiv   %ecx
cmp    $0x0,%edx
je     118b <main+0x6b>
mov    -0xc(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0xc(%rbp)
cmpl   $0x0,-0x8(%rbp)
jge    11a3 <main+0x83>
mov    -0x10(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0x10(%rbp)
jmp    11bb <main+0x9b>
cmpl   $0x0,-0x8(%rbp)
jle    11b6 <main+0x96>
mov    -0x14(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0x14(%rbp)
jmp    11bb <main+0x9b>
jmp    11c0 <main+0xa0>
mov    -0x1c(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0x1c(%rbp)
jmp    1152 <main+0x32>
mov    -0x18(%rbp),%esi
sub    -0xc(%rbp),%esi
mov    -0xc(%rbp),%edx
mov    -0x14(%rbp),%ecx
mov    -0x10(%rbp),%r8d
lea    0xe1e(%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),%r15
lea    0x4(%rsp),%r14
mov    %r15,%rdi
mov    %r14,%rsi
call   1040 <scanf@plt>
mov    0x4(%rsp),%eax
mov    %eax,%ebp
and    $0x1,%ebp
mov    %eax,%r13d
shr    $0x1f,%r13d
xor    %r12d,%r12d
test   %eax,%eax
setg   %r12b
mov    %r15,%rdi
mov    %r14,%rsi
call   1040 <scanf@plt>
mov    0x4(%rsp),%eax
mov    %eax,%ebx
and    $0x1,%ebx
add    %ebp,%ebx
mov    %eax,%ebp
shr    $0x1f,%ebp
add    %r13d,%ebp
xor    %r13d,%r13d
test   %eax,%eax
setg   %r13b
add    %r12d,%r13d
mov    %r15,%rdi
mov    %r14,%rsi
call   1040 <scanf@plt>
mov    0x4(%rsp),%eax
mov    %eax,%r12d
and    $0x1,%r12d
add    %ebx,%r12d
mov    %eax,%ebx
shr    $0x1f,%ebx
add    %ebp,%ebx
xor    %r14d,%r14d
test   %eax,%eax
setg   %r14b
add    %r13d,%r14d
mov    %r15,%rdi
lea    0x4(%rsp),%r13
mov    %r13,%rsi
call   1040 <scanf@plt>
mov    0x4(%rsp),%eax
mov    %eax,%ebp
and    $0x1,%ebp
add    %r12d,%ebp
mov    %eax,%r12d
shr    $0x1f,%r12d
add    %ebx,%r12d
xor    %ebx,%ebx
test   %eax,%eax
setg   %bl
add    %r14d,%ebx
mov    %r15,%rdi
mov    %r13,%rsi
call   1040 <scanf@plt>
mov    0x4(%rsp),%eax
mov    %eax,%edx
and    $0x1,%edx
add    %ebp,%edx
mov    %eax,%r8d
shr    $0x1f,%r8d
add    %r12d,%r8d
xor    %ecx,%ecx
test   %eax,%eax
setg   %cl
add    %ebx,%ecx
mov    $0x5,%esi
sub    %edx,%esi
lea    0xdeb(%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"%d\00"
@.str.1 = [95 x i8] c"%d valor(es) par(es)\0A%d valor(es) impar(es)\0A%d valor(es) positivo(s)\0A%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* %3
store i32 0, i32* %4
store i32 0, i32* %5
store i32 5, i32* %6
store i32 0, i32* %7
br label %8
8: ; preds = %34, %0
%9 = load i32, i32* %7
%10 = load i32, i32* %6
%11 = icmp slt i32 %9, %10
br i1 %11, label %12, label %37
12: ; preds = %8
%13 = call i32 @scanf(i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str, i64 0, i64 0), i32* %2)
%14 = load i32, i32* %2
%15 = srem i32 %14, 2
%16 = icmp ne i32 %15, 0
br i1 %16, label %17, label %20
17: ; preds = %12
%18 = load i32, i32* %3
%19 = add nsw i32 %18, 1
store i32 %19, i32* %3
br label %20
20: ; preds = %17, %12
%21 = load i32, i32* %2
%22 = icmp slt i32 %21, 0
br i1 %22, label %23, label %26
23: ; preds = %20
%24 = load i32, i32* %4
%25 = add nsw i32 %24, 1
store i32 %25, i32* %4
br label %33
26: ; preds = %20
%27 = load i32, i32* %2
%28 = icmp sgt i32 %27, 0
br i1 %28, label %29, label %32
29: ; preds = %26
%30 = load i32, i32* %5
%31 = add nsw i32 %30, 1
store i32 %31, i32* %5
br label %32
32: ; preds = %29, %26
br label %33
33: ; preds = %32, %23
br label %34
34: ; preds = %33
%35 = load i32, i32* %7
%36 = add nsw i32 %35, 1
store i32 %36, i32* %7
br label %8
37: ; preds = %8
%38 = load i32, i32* %6
%39 = load i32, i32* %3
%40 = sub nsw i32 %38, %39
%41 = load i32, i32* %3
%42 = load i32, i32* %5
%43 = load i32, i32* %4
%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"%d\00"
@.str.1 = [95 x i8] c"%d valor(es) par(es)\0A%d valor(es) impar(es)\0A%d valor(es) positivo(s)\0A%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 = lshr i32 %4, 31
%7 = icmp sgt i32 %4, 0
%8 = zext i1 %7 to i32
%9 = call i32 @scanf(i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str, i64 0, i64 0), i32* %1)
%10 = load i32, i32* %1
%11 = and i32 %10, 1
%12 = add nuw nsw i32 %11, %5
%13 = lshr i32 %10, 31
%14 = add nuw nsw i32 %13, %6
%15 = icmp sgt i32 %10, 0
%16 = zext i1 %15 to i32
%17 = add nuw nsw i32 %8, %16
%18 = call i32 @scanf(i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str, i64 0, i64 0), i32* %1)
%19 = load i32, i32* %1
%20 = and i32 %19, 1
%21 = add nuw nsw i32 %20, %12
%22 = lshr i32 %19, 31
%23 = add nuw nsw i32 %22, %14
%24 = icmp sgt i32 %19, 0
%25 = zext i1 %24 to i32
%26 = add nuw nsw i32 %17, %25
%27 = call i32 @scanf(i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str, i64 0, i64 0), i32* %1)
%28 = load i32, i32* %1
%29 = and i32 %28, 1
%30 = add nuw nsw i32 %29, %21
%31 = lshr i32 %28, 31
%32 = add nuw nsw i32 %31, %23
%33 = icmp sgt i32 %28, 0
%34 = zext i1 %33 to i32
%35 = add nuw nsw i32 %26, %34
%36 = call i32 @scanf(i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str, i64 0, i64 0), i32* %1)
%37 = load i32, i32* %1
%38 = and i32 %37, 1
%39 = add nuw nsw i32 %38, %30
%40 = lshr i32 %37, 31
%41 = add nuw nsw i32 %40, %32
%42 = icmp sgt i32 %37, 0
%43 = zext i1 %42 to i32
%44 = add nuw nsw i32 %35, %43
%45 = sub nuw nsw i32 5, %39
%46 = call i32 @printf(i8* getelementptr inbounds ([95 x i8], [95 x i8]* @.str.1, i64 0, i64 0), i32 %45, i32 %39, i32 %44, i32 %41)
ret i32 0
}