#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 /*<<< orphan*/ scanf(char *, int *);
void main() {
  int v1[10], v2[5], i, par = 0, aux = 0, soma, j, impar, div;
  printf("Digite os valores para o vetor 1:\n");
  for (i = 0; i < 10; i++) {
    printf("v1[%d] = ", i);
    scanf(" %d", &v1[i]);
    if (v1[i] % 2 == 0)
      par++;
  }
  printf("\nDigite os valores para o vetor 2:\n");
  for (i = 0; i < 5; i++) {
    printf("v2[%d] = ", i);
    scanf(" %d", &v2[i]);
  }
  int r1[par];
  printf("\nVetor resultante 1: ");
  for (i = 0; i < 10; i++) {
    if (v1[i] % 2 == 0) {
      soma = v1[i];
      for (j = 0; j < 5; j++) {
        soma += v2[j];
      }
      r1[aux] = soma;
      aux++;
      printf("%d ", r1[aux - 1]);
    }
  }
  aux = 0;
  if (par != 10) {
    impar = 10 - par;
    int r2[impar];
    printf("\nVetor resultante 2: ");
    for (i = 0; i < 10; i++) {
      if (v1[i] % 2 != 0) {
        div = 0;
        for (j = 0; j < 5; j++) {
          if (v1[i] % v2[j] == 0)
            div++;
        }
        r2[aux] = div;
        aux++;
        printf("%d ", r2[aux - 1]);
      }
    }
    printf("\n");
  } else
    printf("\nVetor resultante 2: nao ha numeros impares em v1.\n");
}


x86 assembly (clang, -O0):
<main>:
push   %rbp
mov    %rsp,%rbp
sub    $0xa0,%rsp
movl   $0x0,-0x58(%rbp)
movl   $0x0,-0x5c(%rbp)
lea    0xec0(%rip),%rdi
mov    $0x0,%al
call   1030 <printf@plt>
movl   $0x0,-0x54(%rbp)
cmpl   $0xa,-0x54(%rbp)
jge    11b9 <main+0x99>
mov    -0x54(%rbp),%esi
lea    0xec1(%rip),%rdi
mov    $0x0,%al
call   1030 <printf@plt>
movslq -0x54(%rbp),%rax
lea    -0x30(%rbp),%rsi
shl    $0x2,%rax
add    %rax,%rsi
lea    0xeae(%rip),%rdi
call   1040 <scanf@plt>
movslq -0x54(%rbp),%rax
mov    -0x30(%rbp,%rax,4),%eax
mov    $0x2,%ecx
cltd
idiv   %ecx
cmp    $0x0,%edx
jne    11a6 <main+0x86>
mov    -0x58(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0x58(%rbp)
jmp    11ab <main+0x8b>
mov    -0x54(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0x54(%rbp)
jmp    114e <main+0x2e>
lea    0xe71(%rip),%rdi
mov    $0x0,%al
call   1030 <printf@plt>
movl   $0x0,-0x54(%rbp)
cmpl   $0x5,-0x54(%rbp)
jge    1212 <main+0xf2>
mov    -0x54(%rbp),%esi
lea    0xe73(%rip),%rdi
mov    $0x0,%al
call   1030 <printf@plt>
movslq -0x54(%rbp),%rax
lea    -0x50(%rbp),%rsi
shl    $0x2,%rax
add    %rax,%rsi
lea    0xe2e(%rip),%rdi
call   1040 <scanf@plt>
mov    -0x54(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0x54(%rbp)
jmp    11ce <main+0xae>
mov    -0x58(%rbp),%eax
mov    %rsp,%rcx
mov    %rcx,-0x78(%rbp)
lea    0xf(,%rax,4),%rdx
and    $0xfffffffffffffff0,%rdx
mov    %rsp,%rcx
sub    %rdx,%rcx
mov    %rcx,-0x98(%rbp)
mov    %rcx,%rsp
mov    %rax,-0x80(%rbp)
lea    0xe1c(%rip),%rdi
mov    $0x0,%al
call   1030 <printf@plt>
movl   $0x0,-0x54(%rbp)
cmpl   $0xa,-0x54(%rbp)
jge    12f3 <main+0x1d3>
movslq -0x54(%rbp),%rax
mov    -0x30(%rbp,%rax,4),%eax
mov    $0x2,%ecx
cltd
idiv   %ecx
cmp    $0x0,%edx
jne    12e0 <main+0x1c0>
movslq -0x54(%rbp),%rax
mov    -0x30(%rbp,%rax,4),%eax
mov    %eax,-0x60(%rbp)
movl   $0x0,-0x64(%rbp)
cmpl   $0x5,-0x64(%rbp)
jge    12ac <main+0x18c>
movslq -0x64(%rbp),%rax
mov    -0x50(%rbp,%rax,4),%eax
add    -0x60(%rbp),%eax
mov    %eax,-0x60(%rbp)
mov    -0x64(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0x64(%rbp)
jmp    1286 <main+0x166>
mov    -0x98(%rbp),%rax
mov    -0x60(%rbp),%edx
movslq -0x5c(%rbp),%rcx
mov    %edx,(%rax,%rcx,4)
mov    -0x5c(%rbp),%ecx
add    $0x1,%ecx
mov    %ecx,-0x5c(%rbp)
mov    -0x5c(%rbp),%ecx
sub    $0x1,%ecx
movslq %ecx,%rcx
mov    (%rax,%rcx,4),%esi
lea    0xd9c(%rip),%rdi
mov    $0x0,%al
call   1030 <printf@plt>
jmp    12e5 <main+0x1c5>
mov    -0x54(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0x54(%rbp)
jmp    1251 <main+0x131>
movl   $0x0,-0x5c(%rbp)
cmpl   $0xa,-0x58(%rbp)
je     142b <main+0x30b>
mov    -0x58(%rbp),%ecx
mov    $0xa,%eax
sub    %ecx,%eax
mov    %eax,-0x68(%rbp)
mov    -0x68(%rbp),%eax
mov    %rsp,%rcx
mov    %rcx,-0x88(%rbp)
lea    0xf(,%rax,4),%rdx
and    $0xfffffffffffffff0,%rdx
mov    %rsp,%rcx
sub    %rdx,%rcx
mov    %rcx,-0xa0(%rbp)
mov    %rcx,%rsp
mov    %rax,-0x90(%rbp)
lea    0xd31(%rip),%rdi
mov    $0x0,%al
call   1030 <printf@plt>
movl   $0x0,-0x54(%rbp)
cmpl   $0xa,-0x54(%rbp)
jge    140e <main+0x2ee>
movslq -0x54(%rbp),%rax
mov    -0x30(%rbp,%rax,4),%eax
mov    $0x2,%ecx
cltd
idiv   %ecx
cmp    $0x0,%edx
je     13fb <main+0x2db>
movl   $0x0,-0x6c(%rbp)
movl   $0x0,-0x64(%rbp)
cmpl   $0x5,-0x64(%rbp)
jge    13c7 <main+0x2a7>
movslq -0x54(%rbp),%rax
mov    -0x30(%rbp,%rax,4),%eax
movslq -0x64(%rbp),%rcx
cltd
idivl  -0x50(%rbp,%rcx,4)
cmp    $0x0,%edx
jne    13b4 <main+0x294>
mov    -0x6c(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0x6c(%rbp)
jmp    13b9 <main+0x299>
mov    -0x64(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0x64(%rbp)
jmp    1387 <main+0x267>
mov    -0xa0(%rbp),%rax
mov    -0x6c(%rbp),%edx
movslq -0x5c(%rbp),%rcx
mov    %edx,(%rax,%rcx,4)
mov    -0x5c(%rbp),%ecx
add    $0x1,%ecx
mov    %ecx,-0x5c(%rbp)
mov    -0x5c(%rbp),%ecx
sub    $0x1,%ecx
movslq %ecx,%rcx
mov    (%rax,%rcx,4),%esi
lea    0xc81(%rip),%rdi
mov    $0x0,%al
call   1030 <printf@plt>
jmp    1400 <main+0x2e0>
mov    -0x54(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0x54(%rbp)
jmp    1356 <main+0x236>
lea    0xcac(%rip),%rdi
mov    $0x0,%al
call   1030 <printf@plt>
mov    -0x88(%rbp),%rax
mov    %rax,%rsp
jmp    1439 <main+0x319>
lea    0xc5d(%rip),%rdi
mov    $0x0,%al
call   1030 <printf@plt>
mov    -0x78(%rbp),%rax
mov    %rax,%rsp
mov    %rbp,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<main>:
push   %rbp
push   %r15
push   %r14
push   %r13
push   %r12
push   %rbx
sub    $0x68,%rsp
lea    0xef3(%rip),%rdi
call   1040 <puts@plt>
lea    0xe9f(%rip),%r14
mov    %r14,%rdi
xor    %esi,%esi
xor    %eax,%eax
call   1050 <printf@plt>
lea    0xe96(%rip),%rbp
lea    0x20(%rsp),%rsi
mov    %rbp,%rdi
call   1060 <scanf@plt>
mov    0x20(%rsp),%r13d
not    %r13d
mov    %r14,%rdi
mov    $0x1,%esi
xor    %eax,%eax
call   1050 <printf@plt>
lea    0x24(%rsp),%rsi
mov    %rbp,%rdi
call   1060 <scanf@plt>
mov    0x24(%rsp),%eax
not    %eax
and    $0x1,%eax
mov    %eax,0x5c(%rsp)
mov    %r14,%rdi
mov    $0x2,%esi
xor    %eax,%eax
call   1050 <printf@plt>
lea    0x28(%rsp),%rsi
mov    %rbp,%rdi
call   1060 <scanf@plt>
mov    0x28(%rsp),%eax
not    %eax
and    $0x1,%eax
mov    %eax,0x58(%rsp)
mov    %r14,%rdi
mov    $0x3,%esi
xor    %eax,%eax
call   1050 <printf@plt>
lea    0x2c(%rsp),%rsi
mov    %rbp,%rdi
call   1060 <scanf@plt>
mov    0x2c(%rsp),%eax
not    %eax
and    $0x1,%eax
mov    %eax,0x54(%rsp)
mov    %r14,%rdi
mov    $0x4,%esi
xor    %eax,%eax
call   1050 <printf@plt>
lea    0x30(%rsp),%rsi
mov    %rbp,%rdi
call   1060 <scanf@plt>
mov    0x30(%rsp),%eax
not    %eax
and    $0x1,%eax
mov    %eax,0x50(%rsp)
mov    %r14,%rdi
mov    $0x5,%esi
xor    %eax,%eax
call   1050 <printf@plt>
lea    0x34(%rsp),%rsi
mov    %rbp,%rdi
call   1060 <scanf@plt>
mov    0x34(%rsp),%eax
not    %eax
and    $0x1,%eax
mov    %eax,0x4c(%rsp)
mov    %r14,%rdi
mov    $0x6,%esi
xor    %eax,%eax
call   1050 <printf@plt>
lea    0x38(%rsp),%rsi
mov    %rbp,%rdi
call   1060 <scanf@plt>
mov    0x38(%rsp),%eax
not    %eax
and    $0x1,%eax
mov    %eax,0x48(%rsp)
mov    %r14,%rdi
mov    $0x7,%esi
xor    %eax,%eax
call   1050 <printf@plt>
lea    0x3c(%rsp),%rsi
mov    %rbp,%rdi
call   1060 <scanf@plt>
mov    0x3c(%rsp),%r15d
not    %r15d
and    $0x1,%r15d
mov    %r14,%rdi
mov    $0x8,%esi
xor    %eax,%eax
call   1050 <printf@plt>
lea    0x40(%rsp),%rsi
mov    %rbp,%rdi
call   1060 <scanf@plt>
mov    0x40(%rsp),%r12d
not    %r12d
and    $0x1,%r12d
mov    %r14,%rdi
mov    $0x9,%esi
xor    %eax,%eax
call   1050 <printf@plt>
lea    0x44(%rsp),%rsi
mov    %rbp,%rdi
call   1060 <scanf@plt>
mov    0x44(%rsp),%r14d
not    %r14d
and    $0x1,%r14d
lea    0xd6c(%rip),%rdi
call   1040 <puts@plt>
lea    0xd04(%rip),%rbx
mov    %rbx,%rdi
xor    %esi,%esi
xor    %eax,%eax
call   1050 <printf@plt>
mov    %rsp,%rsi
mov    %rbp,%rdi
call   1060 <scanf@plt>
mov    %rbx,%rdi
mov    $0x1,%esi
xor    %eax,%eax
call   1050 <printf@plt>
lea    0x4(%rsp),%rsi
mov    %rbp,%rdi
call   1060 <scanf@plt>
mov    %rbx,%rdi
mov    $0x2,%esi
xor    %eax,%eax
call   1050 <printf@plt>
lea    0x8(%rsp),%rsi
mov    %rbp,%rdi
call   1060 <scanf@plt>
mov    %rbx,%rdi
mov    $0x3,%esi
xor    %eax,%eax
call   1050 <printf@plt>
lea    0xc(%rsp),%rsi
mov    %rbp,%rdi
call   1060 <scanf@plt>
mov    %rbx,%rdi
mov    $0x4,%esi
xor    %eax,%eax
call   1050 <printf@plt>
lea    0x10(%rsp),%rsi
mov    %rbp,%rdi
call   1060 <scanf@plt>
mov    %rsp,0x60(%rsp)
and    $0x1,%r13d
add    0x5c(%rsp),%r13d
add    0x58(%rsp),%r13d
add    0x54(%rsp),%r13d
add    0x50(%rsp),%r13d
add    0x4c(%rsp),%r13d
add    0x48(%rsp),%r13d
add    %r15d,%r13d
add    %r12d,%r13d
lea    0xc53(%rip),%rdi
xor    %eax,%eax
call   1050 <printf@plt>
lea    0xc5b(%rip),%rbx
xor    %ebp,%ebp
jmp    13ea <main+0x2aa>
nopw   0x0(%rax,%rax,1)
add    $0x1,%rbp
cmp    $0xa,%rbp
je     141f <main+0x2df>
mov    0x20(%rsp,%rbp,4),%eax
test   $0x1,%al
jne    13e0 <main+0x2a0>
movdqu 0x4(%rsp),%xmm0
pshufd $0xee,%xmm0,%xmm1
paddd  %xmm0,%xmm1
pshufd $0x55,%xmm1,%xmm0
paddd  %xmm1,%xmm0
movd   %xmm0,%esi
add    (%rsp),%esi
add    %eax,%esi
mov    %rbx,%rdi
xor    %eax,%eax
call   1050 <printf@plt>
jmp    13e0 <main+0x2a0>
add    %r13d,%r14d
cmp    $0xa,%r14d
jne    1439 <main+0x2f9>
lea    0xc5e(%rip),%rdi
call   1040 <puts@plt>
jmp    14ce <main+0x38e>
mov    %rsp,%r14
lea    0xbef(%rip),%rdi
xor    %eax,%eax
call   1050 <printf@plt>
lea    0xbdd(%rip),%rbx
xor    %ebp,%ebp
jmp    146a <main+0x32a>
cs nopw 0x0(%rax,%rax,1)
nop
add    $0x1,%rbp
cmp    $0xa,%rbp
je     14c1 <main+0x381>
mov    0x20(%rsp,%rbp,4),%ecx
test   $0x1,%cl
je     1460 <main+0x320>
mov    %ecx,%eax
cltd
idivl  (%rsp)
xor    %esi,%esi
test   %edx,%edx
sete   %sil
mov    %ecx,%eax
cltd
idivl  0x4(%rsp)
cmp    $0x1,%edx
adc    $0x0,%esi
mov    %ecx,%eax
cltd
idivl  0x8(%rsp)
cmp    $0x1,%edx
adc    $0x0,%esi
mov    %ecx,%eax
cltd
idivl  0xc(%rsp)
cmp    $0x1,%edx
adc    $0x0,%esi
mov    %ecx,%eax
cltd
idivl  0x10(%rsp)
cmp    $0x1,%edx
adc    $0x0,%esi
mov    %rbx,%rdi
xor    %eax,%eax
call   1050 <printf@plt>
jmp    1460 <main+0x320>
mov    $0xa,%edi
call   1030 <putchar@plt>
mov    %r14,%rsp
mov    0x60(%rsp),%rsp
add    $0x68,%rsp
pop    %rbx
pop    %r12
pop    %r13
pop    %r14
pop    %r15
pop    %rbp
ret

LLVM IR (-O0):
@.str = [35 x i8] c"Digite os valores para o vetor 1:\0A\00"
@.str.1 = [10 x i8] c"v1[%d] = \00"
@.str.2 = [4 x i8] c" %d\00"
@.str.3 = [36 x i8] c"\0ADigite os valores para o vetor 2:\0A\00"
@.str.4 = [10 x i8] c"v2[%d] = \00"
@.str.5 = [22 x i8] c"\0AVetor resultante 1: \00"
@.str.6 = [4 x i8] c"%d \00"
@.str.7 = [22 x i8] c"\0AVetor resultante 2: \00"
@.str.8 = [2 x i8] c"\0A\00"
@.str.9 = [52 x i8] c"\0AVetor resultante 2: nao ha numeros impares em v1.\0A\00"
define void @main() {
%1 = alloca [10 x i32]
%2 = alloca [5 x i32]
%3 = alloca i32
%4 = alloca i32
%5 = alloca i32
%6 = alloca i32
%7 = alloca i32
%8 = alloca i32
%9 = alloca i32
%10 = alloca i8*
%11 = alloca i64
%12 = alloca i8*
%13 = alloca i64
store i32 0, i32* %4
store i32 0, i32* %5
%14 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([35 x i8], [35 x i8]* @.str, i64 0, i64 0))
store i32 0, i32* %3
br label %15
15: ; preds = %35, %0
%16 = load i32, i32* %3
%17 = icmp slt i32 %16, 10
br i1 %17, label %18, label %38
18: ; preds = %15
%19 = load i32, i32* %3
%20 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([10 x i8], [10 x i8]* @.str.1, i64 0, i64 0), i32 %19)
%21 = load i32, i32* %3
%22 = sext i32 %21 to i64
%23 = getelementptr inbounds [10 x i32], [10 x i32]* %1, i64 0, i64 %22
%24 = call i32 @scanf(i8* getelementptr inbounds ([4 x i8], [4 x i8]* @.str.2, i64 0, i64 0), i32* %23)
%25 = load i32, i32* %3
%26 = sext i32 %25 to i64
%27 = getelementptr inbounds [10 x i32], [10 x i32]* %1, i64 0, i64 %26
%28 = load i32, i32* %27
%29 = srem i32 %28, 2
%30 = icmp eq i32 %29, 0
br i1 %30, label %31, label %34
31: ; preds = %18
%32 = load i32, i32* %4
%33 = add nsw i32 %32, 1
store i32 %33, i32* %4
br label %34
34: ; preds = %31, %18
br label %35
35: ; preds = %34
%36 = load i32, i32* %3
%37 = add nsw i32 %36, 1
store i32 %37, i32* %3
br label %15
38: ; preds = %15
%39 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([36 x i8], [36 x i8]* @.str.3, i64 0, i64 0))
store i32 0, i32* %3
br label %40
40: ; preds = %50, %38
%41 = load i32, i32* %3
%42 = icmp slt i32 %41, 5
br i1 %42, label %43, label %53
43: ; preds = %40
%44 = load i32, i32* %3
%45 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([10 x i8], [10 x i8]* @.str.4, i64 0, i64 0), i32 %44)
%46 = load i32, i32* %3
%47 = sext i32 %46 to i64
%48 = getelementptr inbounds [5 x i32], [5 x i32]* %2, i64 0, i64 %47
%49 = call i32 @scanf(i8* getelementptr inbounds ([4 x i8], [4 x i8]* @.str.2, i64 0, i64 0), i32* %48)
br label %50
50: ; preds = %43
%51 = load i32, i32* %3
%52 = add nsw i32 %51, 1
store i32 %52, i32* %3
br label %40
53: ; preds = %40
%54 = load i32, i32* %4
%55 = zext i32 %54 to i64
%56 = call i8* @llvm.stacksave()
store i8* %56, i8** %10
%57 = alloca i32, i64 %55
store i64 %55, i64* %11
%58 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([22 x i8], [22 x i8]* @.str.5, i64 0, i64 0))
store i32 0, i32* %3
br label %59
59: ; preds = %101, %53
%60 = load i32, i32* %3
%61 = icmp slt i32 %60, 10
br i1 %61, label %62, label %104
62: ; preds = %59
%63 = load i32, i32* %3
%64 = sext i32 %63 to i64
%65 = getelementptr inbounds [10 x i32], [10 x i32]* %1, i64 0, i64 %64
%66 = load i32, i32* %65
%67 = srem i32 %66, 2
%68 = icmp eq i32 %67, 0
br i1 %68, label %69, label %100
69: ; preds = %62
%70 = load i32, i32* %3
%71 = sext i32 %70 to i64
%72 = getelementptr inbounds [10 x i32], [10 x i32]* %1, i64 0, i64 %71
%73 = load i32, i32* %72
store i32 %73, i32* %6
store i32 0, i32* %7
br label %74
74: ; preds = %84, %69
%75 = load i32, i32* %7
%76 = icmp slt i32 %75, 5
br i1 %76, label %77, label %87
77: ; preds = %74
%78 = load i32, i32* %7
%79 = sext i32 %78 to i64
%80 = getelementptr inbounds [5 x i32], [5 x i32]* %2, i64 0, i64 %79
%81 = load i32, i32* %80
%82 = load i32, i32* %6
%83 = add nsw i32 %82, %81
store i32 %83, i32* %6
br label %84
84: ; preds = %77
%85 = load i32, i32* %7
%86 = add nsw i32 %85, 1
store i32 %86, i32* %7
br label %74
87: ; preds = %74
%88 = load i32, i32* %6
%89 = load i32, i32* %5
%90 = sext i32 %89 to i64
%91 = getelementptr inbounds i32, i32* %57, i64 %90
store i32 %88, i32* %91
%92 = load i32, i32* %5
%93 = add nsw i32 %92, 1
store i32 %93, i32* %5
%94 = load i32, i32* %5
%95 = sub nsw i32 %94, 1
%96 = sext i32 %95 to i64
%97 = getelementptr inbounds i32, i32* %57, i64 %96
%98 = load i32, i32* %97
%99 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([4 x i8], [4 x i8]* @.str.6, i64 0, i64 0), i32 %98)
br label %100
100: ; preds = %87, %62
br label %101
101: ; preds = %100
%102 = load i32, i32* %3
%103 = add nsw i32 %102, 1
store i32 %103, i32* %3
br label %59
104: ; preds = %59
store i32 0, i32* %5
%105 = load i32, i32* %4
%106 = icmp ne i32 %105, 10
br i1 %106, label %107, label %167
107: ; preds = %104
%108 = load i32, i32* %4
%109 = sub nsw i32 10, %108
store i32 %109, i32* %8
%110 = load i32, i32* %8
%111 = zext i32 %110 to i64
%112 = call i8* @llvm.stacksave()
store i8* %112, i8** %12
%113 = alloca i32, i64 %111
store i64 %111, i64* %13
%114 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([22 x i8], [22 x i8]* @.str.7, i64 0, i64 0))
store i32 0, i32* %3
br label %115
115: ; preds = %161, %107
%116 = load i32, i32* %3
%117 = icmp slt i32 %116, 10
br i1 %117, label %118, label %164
118: ; preds = %115
%119 = load i32, i32* %3
%120 = sext i32 %119 to i64
%121 = getelementptr inbounds [10 x i32], [10 x i32]* %1, i64 0, i64 %120
%122 = load i32, i32* %121
%123 = srem i32 %122, 2
%124 = icmp ne i32 %123, 0
br i1 %124, label %125, label %160
125: ; preds = %118
store i32 0, i32* %9
store i32 0, i32* %7
br label %126
126: ; preds = %144, %125
%127 = load i32, i32* %7
%128 = icmp slt i32 %127, 5
br i1 %128, label %129, label %147
129: ; preds = %126
%130 = load i32, i32* %3
%131 = sext i32 %130 to i64
%132 = getelementptr inbounds [10 x i32], [10 x i32]* %1, i64 0, i64 %131
%133 = load i32, i32* %132
%134 = load i32, i32* %7
%135 = sext i32 %134 to i64
%136 = getelementptr inbounds [5 x i32], [5 x i32]* %2, i64 0, i64 %135
%137 = load i32, i32* %136
%138 = srem i32 %133, %137
%139 = icmp eq i32 %138, 0
br i1 %139, label %140, label %143
140: ; preds = %129
%141 = load i32, i32* %9
%142 = add nsw i32 %141, 1
store i32 %142, i32* %9
br label %143
143: ; preds = %140, %129
br label %144
144: ; preds = %143
%145 = load i32, i32* %7
%146 = add nsw i32 %145, 1
store i32 %146, i32* %7
br label %126
147: ; preds = %126
%148 = load i32, i32* %9
%149 = load i32, i32* %5
%150 = sext i32 %149 to i64
%151 = getelementptr inbounds i32, i32* %113, i64 %150
store i32 %148, i32* %151
%152 = load i32, i32* %5
%153 = add nsw i32 %152, 1
store i32 %153, i32* %5
%154 = load i32, i32* %5
%155 = sub nsw i32 %154, 1
%156 = sext i32 %155 to i64
%157 = getelementptr inbounds i32, i32* %113, i64 %156
%158 = load i32, i32* %157
%159 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([4 x i8], [4 x i8]* @.str.6, i64 0, i64 0), i32 %158)
br label %160
160: ; preds = %147, %118
br label %161
161: ; preds = %160
%162 = load i32, i32* %3
%163 = add nsw i32 %162, 1
store i32 %163, i32* %3
br label %115
164: ; preds = %115
%165 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([2 x i8], [2 x i8]* @.str.8, i64 0, i64 0))
%166 = load i8*, i8** %12
br label %169
167: ; preds = %104
%168 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([52 x i8], [52 x i8]* @.str.9, i64 0, i64 0))
br label %169
169: ; preds = %167, %164
%170 = load i8*, i8** %10
ret void
}

LLVM IR (-O2):
@.str.1 = [10 x i8] c"v1[%d] = \00"
@.str.2 = [4 x i8] c" %d\00"
@.str.4 = [10 x i8] c"v2[%d] = \00"
@.str.5 = [22 x i8] c"\0AVetor resultante 1: \00"
@.str.6 = [4 x i8] c"%d \00"
@.str.7 = [22 x i8] c"\0AVetor resultante 2: \00"
@str = [34 x i8] c"Digite os valores para o vetor 1:\00"
@str.10 = [35 x i8] c"\0ADigite os valores para o vetor 2:\00"
@str.11 = [51 x i8] c"\0AVetor resultante 2: nao ha numeros impares em v1.\00"
define void @main() {
%1 = alloca [10 x i32]
%2 = alloca [5 x i32]
%3 = bitcast [10 x i32]* %1 to i8*
%4 = bitcast [5 x i32]* %2 to i8*
%5 = tail call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([34 x i8], [34 x i8]* @str, i64 0, i64 0))
%6 = call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([10 x i8], [10 x i8]* @.str.1, i64 0, i64 0), i32 0)
%7 = getelementptr inbounds [10 x i32], [10 x i32]* %1, i64 0, i64 0
%8 = call i32 @scanf(i8* getelementptr inbounds ([4 x i8], [4 x i8]* @.str.2, i64 0, i64 0), i32* %7)
%9 = load i32, i32* %7
%10 = and i32 %9, 1
%11 = call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([10 x i8], [10 x i8]* @.str.1, i64 0, i64 0), i32 1)
%12 = getelementptr inbounds [10 x i32], [10 x i32]* %1, i64 0, i64 1
%13 = call i32 @scanf(i8* getelementptr inbounds ([4 x i8], [4 x i8]* @.str.2, i64 0, i64 0), i32* %12)
%14 = load i32, i32* %12
%15 = and i32 %14, 1
%16 = xor i32 %15, 1
%17 = call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([10 x i8], [10 x i8]* @.str.1, i64 0, i64 0), i32 2)
%18 = getelementptr inbounds [10 x i32], [10 x i32]* %1, i64 0, i64 2
%19 = call i32 @scanf(i8* getelementptr inbounds ([4 x i8], [4 x i8]* @.str.2, i64 0, i64 0), i32* %18)
%20 = load i32, i32* %18
%21 = and i32 %20, 1
%22 = xor i32 %21, 1
%23 = call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([10 x i8], [10 x i8]* @.str.1, i64 0, i64 0), i32 3)
%24 = getelementptr inbounds [10 x i32], [10 x i32]* %1, i64 0, i64 3
%25 = call i32 @scanf(i8* getelementptr inbounds ([4 x i8], [4 x i8]* @.str.2, i64 0, i64 0), i32* %24)
%26 = load i32, i32* %24
%27 = and i32 %26, 1
%28 = xor i32 %27, 1
%29 = call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([10 x i8], [10 x i8]* @.str.1, i64 0, i64 0), i32 4)
%30 = getelementptr inbounds [10 x i32], [10 x i32]* %1, i64 0, i64 4
%31 = call i32 @scanf(i8* getelementptr inbounds ([4 x i8], [4 x i8]* @.str.2, i64 0, i64 0), i32* %30)
%32 = load i32, i32* %30
%33 = and i32 %32, 1
%34 = xor i32 %33, 1
%35 = call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([10 x i8], [10 x i8]* @.str.1, i64 0, i64 0), i32 5)
%36 = getelementptr inbounds [10 x i32], [10 x i32]* %1, i64 0, i64 5
%37 = call i32 @scanf(i8* getelementptr inbounds ([4 x i8], [4 x i8]* @.str.2, i64 0, i64 0), i32* %36)
%38 = load i32, i32* %36
%39 = and i32 %38, 1
%40 = xor i32 %39, 1
%41 = call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([10 x i8], [10 x i8]* @.str.1, i64 0, i64 0), i32 6)
%42 = getelementptr inbounds [10 x i32], [10 x i32]* %1, i64 0, i64 6
%43 = call i32 @scanf(i8* getelementptr inbounds ([4 x i8], [4 x i8]* @.str.2, i64 0, i64 0), i32* %42)
%44 = load i32, i32* %42
%45 = and i32 %44, 1
%46 = xor i32 %45, 1
%47 = call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([10 x i8], [10 x i8]* @.str.1, i64 0, i64 0), i32 7)
%48 = getelementptr inbounds [10 x i32], [10 x i32]* %1, i64 0, i64 7
%49 = call i32 @scanf(i8* getelementptr inbounds ([4 x i8], [4 x i8]* @.str.2, i64 0, i64 0), i32* %48)
%50 = load i32, i32* %48
%51 = and i32 %50, 1
%52 = xor i32 %51, 1
%53 = call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([10 x i8], [10 x i8]* @.str.1, i64 0, i64 0), i32 8)
%54 = getelementptr inbounds [10 x i32], [10 x i32]* %1, i64 0, i64 8
%55 = call i32 @scanf(i8* getelementptr inbounds ([4 x i8], [4 x i8]* @.str.2, i64 0, i64 0), i32* %54)
%56 = load i32, i32* %54
%57 = and i32 %56, 1
%58 = xor i32 %57, 1
%59 = call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([10 x i8], [10 x i8]* @.str.1, i64 0, i64 0), i32 9)
%60 = getelementptr inbounds [10 x i32], [10 x i32]* %1, i64 0, i64 9
%61 = call i32 @scanf(i8* getelementptr inbounds ([4 x i8], [4 x i8]* @.str.2, i64 0, i64 0), i32* %60)
%62 = load i32, i32* %60
%63 = and i32 %62, 1
%64 = xor i32 %63, 1
%65 = call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([35 x i8], [35 x i8]* @str.10, i64 0, i64 0))
%66 = call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([10 x i8], [10 x i8]* @.str.4, i64 0, i64 0), i32 0)
%67 = getelementptr inbounds [5 x i32], [5 x i32]* %2, i64 0, i64 0
%68 = call i32 @scanf(i8* getelementptr inbounds ([4 x i8], [4 x i8]* @.str.2, i64 0, i64 0), i32* %67)
%69 = call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([10 x i8], [10 x i8]* @.str.4, i64 0, i64 0), i32 1)
%70 = getelementptr inbounds [5 x i32], [5 x i32]* %2, i64 0, i64 1
%71 = call i32 @scanf(i8* getelementptr inbounds ([4 x i8], [4 x i8]* @.str.2, i64 0, i64 0), i32* %70)
%72 = call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([10 x i8], [10 x i8]* @.str.4, i64 0, i64 0), i32 2)
%73 = getelementptr inbounds [5 x i32], [5 x i32]* %2, i64 0, i64 2
%74 = call i32 @scanf(i8* getelementptr inbounds ([4 x i8], [4 x i8]* @.str.2, i64 0, i64 0), i32* %73)
%75 = call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([10 x i8], [10 x i8]* @.str.4, i64 0, i64 0), i32 3)
%76 = getelementptr inbounds [5 x i32], [5 x i32]* %2, i64 0, i64 3
%77 = call i32 @scanf(i8* getelementptr inbounds ([4 x i8], [4 x i8]* @.str.2, i64 0, i64 0), i32* %76)
%78 = call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([10 x i8], [10 x i8]* @.str.4, i64 0, i64 0), i32 4)
%79 = getelementptr inbounds [5 x i32], [5 x i32]* %2, i64 0, i64 4
%80 = call i32 @scanf(i8* getelementptr inbounds ([4 x i8], [4 x i8]* @.str.2, i64 0, i64 0), i32* %79)
%81 = xor i32 %10, 1
%82 = add nuw nsw i32 %16, %81
%83 = add nuw nsw i32 %22, %82
%84 = add nuw nsw i32 %28, %83
%85 = add nuw nsw i32 %34, %84
%86 = add nuw nsw i32 %40, %85
%87 = add nuw nsw i32 %46, %86
%88 = add nuw nsw i32 %52, %87
%89 = add nuw nsw i32 %58, %88
%90 = call i8* @llvm.stacksave()
%91 = call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([22 x i8], [22 x i8]* @.str.5, i64 0, i64 0))
%92 = bitcast i32* %70 to <4 x i32>*
br label %93
93: ; preds = %0, %106
%94 = phi i64 [ 0, %0 ], [ %107, %106 ]
%95 = getelementptr inbounds [10 x i32], [10 x i32]* %1, i64 0, i64 %94
%96 = load i32, i32* %95
%97 = and i32 %96, 1
%98 = icmp eq i32 %97, 0
br i1 %98, label %99, label %106
99: ; preds = %93
%100 = load i32, i32* %67
%101 = load <4 x i32>, <4 x i32>* %92
%102 = call i32 @llvm.vector.reduce.add.v4i32(<4 x i32> %101)
%103 = add nsw i32 %102, %100
%104 = add nsw i32 %103, %96
%105 = call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([4 x i8], [4 x i8]* @.str.6, i64 0, i64 0), i32 %104)
br label %106
106: ; preds = %93, %99
%107 = add nuw nsw i64 %94, 1
%108 = icmp eq i64 %107, 10
br i1 %108, label %109, label %93
109: ; preds = %106
%110 = add nuw nsw i32 %64, %89
%111 = icmp eq i32 %110, 10
br i1 %111, label %152, label %112
112: ; preds = %109
%113 = call i8* @llvm.stacksave()
%114 = call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([22 x i8], [22 x i8]* @.str.7, i64 0, i64 0))
br label %115
115: ; preds = %112, %147
%116 = phi i64 [ 0, %112 ], [ %148, %147 ]
%117 = getelementptr inbounds [10 x i32], [10 x i32]* %1, i64 0, i64 %116
%118 = load i32, i32* %117
%119 = and i32 %118, 1
%120 = icmp eq i32 %119, 0
br i1 %120, label %147, label %121
121: ; preds = %115
%122 = load i32, i32* %67
%123 = srem i32 %118, %122
%124 = icmp eq i32 %123, 0
%125 = zext i1 %124 to i32
%126 = load i32, i32* %70
%127 = srem i32 %118, %126
%128 = icmp eq i32 %127, 0
%129 = zext i1 %128 to i32
%130 = add nuw nsw i32 %125, %129
%131 = load i32, i32* %73
%132 = srem i32 %118, %131
%133 = icmp eq i32 %132, 0
%134 = zext i1 %133 to i32
%135 = add nuw nsw i32 %130, %134
%136 = load i32, i32* %76
%137 = srem i32 %118, %136
%138 = icmp eq i32 %137, 0
%139 = zext i1 %138 to i32
%140 = add nuw nsw i32 %135, %139
%141 = load i32, i32* %79
%142 = srem i32 %118, %141
%143 = icmp eq i32 %142, 0
%144 = zext i1 %143 to i32
%145 = add nuw nsw i32 %140, %144
%146 = call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([4 x i8], [4 x i8]* @.str.6, i64 0, i64 0), i32 %145)
br label %147
147: ; preds = %115, %121
%148 = add nuw nsw i64 %116, 1
%149 = icmp eq i64 %148, 10
br i1 %149, label %150, label %115
150: ; preds = %147
%151 = call i32 @putchar(i32 10)
br label %154
152: ; preds = %109
%153 = call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([51 x i8], [51 x i8]* @str.11, i64 0, i64 0))
br label %154
154: ; preds = %152, %150
ret void
}