#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 rand();
int /*<<< orphan*/ srand(int /*<<< orphan*/);
int /*<<< orphan*/ time(int /*<<< orphan*/ *);
int main() {
  int a[200], b[200], i;
  int contador_pares_a, contador_pares_b, contador_impares_a,
      contador_impares_b, contador_multp_2_a, contador_multp_2_b,
      contador_multp_3_a, contador_multp_3_b, contador_multp_5_a,
      contador_multp_5_b, contador_multp_7_a, contador_multp_7_b;
  float acumulador_a, acumulador_b, promedio_a, promedio_b;
  contador_impares_a = contador_impares_b = contador_pares_a =
      contador_pares_b = contador_multp_2_a = contador_multp_2_b =
          contador_multp_3_a = contador_multp_3_b = contador_multp_5_a =
              contador_multp_5_b = contador_multp_7_a = contador_multp_7_b = 0;
  acumulador_a = acumulador_b = 0;
  srand(time(NULL));
  for (i = 0; i < 200; i++) {
    a[i] = rand() % 200 + 1;
    b[i] = rand() % 200 + 1;
  }
  for (i = 0; i < 200; i++) {
    if (a[i] % 2 == 0) {
      contador_pares_a++;
      contador_multp_2_a++;
    } else
      contador_impares_a++;
    if (b[i] % 2 == 0) {
      contador_pares_b++;
      contador_multp_2_b++;
    } else
      contador_impares_b++;
    if (a[i] % 3 == 0)
      contador_multp_3_a++;
    if (b[i] % 3 == 0)
      contador_multp_3_b++;
    if (a[i] % 5 == 0)
      contador_multp_5_a++;
    if (b[i] % 5 == 0)
      contador_multp_5_b++;
    if (a[i] % 7 == 0)
      contador_multp_7_a++;
    if (b[i] % 7 == 0)
      contador_multp_7_b++;
    acumulador_a += a[i];
    acumulador_b += b[i];
  }
  printf("\nVECTORES "
         "CARGADOS\n\nA[i]\t\tB[i]\n-----------------------------------\n");
  for (i = 0; i < 200; i++) {
    printf("%d\t\t%d\n", a[i], b[i]);
  }
  printf("\n\nEl numero de numeros pares en A es %d e impares es %d.\n",
         contador_pares_a, contador_impares_a);
  printf("El numero de numeros pares en B es %d e impares es %d.\n\n",
         contador_pares_b, contador_impares_b);
  printf("En A hay %d multiplos de 2, %d multiplos de 3, %d multiplos de 5 y "
         "%d multiplos de 7.\n",
         contador_multp_2_a, contador_multp_3_a, contador_multp_5_a,
         contador_multp_7_a);
  printf("En B hay %d multiplos de 2, %d multiplos de 3, %d multiplos de 5 y "
         "%d multiplos de 7.\n\n\n",
         contador_multp_2_b, contador_multp_3_b, contador_multp_5_b,
         contador_multp_7_b);
  promedio_a = (float)acumulador_a / (float)200;
  promedio_b = (float)acumulador_b / (float)200;
  printf("El promedio de los numeros de A fue %f.\n", promedio_a);
  printf("El promedio de los numeros de B fue %f.\n\n", promedio_b);
  return 0;
}


x86 assembly (clang, -O0):
<main>:
push   %rbp
mov    %rsp,%rbp
sub    $0x6a0,%rsp
movl   $0x0,-0x4(%rbp)
movl   $0x0,-0x684(%rbp)
movl   $0x0,-0x680(%rbp)
movl   $0x0,-0x67c(%rbp)
movl   $0x0,-0x678(%rbp)
movl   $0x0,-0x674(%rbp)
movl   $0x0,-0x670(%rbp)
movl   $0x0,-0x66c(%rbp)
movl   $0x0,-0x668(%rbp)
movl   $0x0,-0x65c(%rbp)
movl   $0x0,-0x658(%rbp)
movl   $0x0,-0x664(%rbp)
movl   $0x0,-0x660(%rbp)
xorps  %xmm0,%xmm0
movss  %xmm0,-0x68c(%rbp)
ff
xorps  %xmm0,%xmm0
movss  %xmm0,-0x688(%rbp)
ff
xor    %eax,%eax
mov    %eax,%edi
call   1050 <time@plt>
mov    %eax,%edi
call   1040 <srand@plt>
movl   $0x0,-0x654(%rbp)
cmpl   $0xc8,-0x654(%rbp)
jge    125e <main+0x11e>
mov    $0x0,%al
call   1060 <rand@plt>
mov    $0xc8,%ecx
cltd
idiv   %ecx
add    $0x1,%edx
movslq -0x654(%rbp),%rax
mov    %edx,-0x330(%rbp,%rax,4)
mov    $0x0,%al
call   1060 <rand@plt>
mov    $0xc8,%ecx
cltd
idiv   %ecx
add    $0x1,%edx
movslq -0x654(%rbp),%rax
mov    %edx,-0x650(%rbp,%rax,4)
mov    -0x654(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0x654(%rbp)
jmp    11fa <main+0xba>
movl   $0x0,-0x654(%rbp)
cmpl   $0xc8,-0x654(%rbp)
jge    1482 <main+0x342>
movslq -0x654(%rbp),%rax
mov    -0x330(%rbp,%rax,4),%eax
mov    $0x2,%ecx
cltd
idiv   %ecx
cmp    $0x0,%edx
jne    12ba <main+0x17a>
mov    -0x658(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0x658(%rbp)
mov    -0x668(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0x668(%rbp)
jmp    12c9 <main+0x189>
mov    -0x660(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0x660(%rbp)
movslq -0x654(%rbp),%rax
mov    -0x650(%rbp,%rax,4),%eax
mov    $0x2,%ecx
cltd
idiv   %ecx
cmp    $0x0,%edx
jne    130b <main+0x1cb>
mov    -0x65c(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0x65c(%rbp)
mov    -0x66c(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0x66c(%rbp)
jmp    131a <main+0x1da>
mov    -0x664(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0x664(%rbp)
movslq -0x654(%rbp),%rax
mov    -0x330(%rbp,%rax,4),%eax
mov    $0x3,%ecx
cltd
idiv   %ecx
cmp    $0x0,%edx
jne    1348 <main+0x208>
mov    -0x670(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0x670(%rbp)
movslq -0x654(%rbp),%rax
mov    -0x650(%rbp,%rax,4),%eax
mov    $0x3,%ecx
cltd
idiv   %ecx
cmp    $0x0,%edx
jne    1376 <main+0x236>
mov    -0x674(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0x674(%rbp)
movslq -0x654(%rbp),%rax
mov    -0x330(%rbp,%rax,4),%eax
mov    $0x5,%ecx
cltd
idiv   %ecx
cmp    $0x0,%edx
jne    13a4 <main+0x264>
mov    -0x678(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0x678(%rbp)
movslq -0x654(%rbp),%rax
mov    -0x650(%rbp,%rax,4),%eax
mov    $0x5,%ecx
cltd
idiv   %ecx
cmp    $0x0,%edx
jne    13d2 <main+0x292>
mov    -0x67c(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0x67c(%rbp)
movslq -0x654(%rbp),%rax
mov    -0x330(%rbp,%rax,4),%eax
mov    $0x7,%ecx
cltd
idiv   %ecx
cmp    $0x0,%edx
jne    1400 <main+0x2c0>
mov    -0x680(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0x680(%rbp)
movslq -0x654(%rbp),%rax
mov    -0x650(%rbp,%rax,4),%eax
mov    $0x7,%ecx
cltd
idiv   %ecx
cmp    $0x0,%edx
jne    142e <main+0x2ee>
mov    -0x684(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0x684(%rbp)
movslq -0x654(%rbp),%rax
cvtsi2ssl -0x330(%rbp,%rax,4),%xmm0
ff ff
addss  -0x688(%rbp),%xmm0
ff
movss  %xmm0,-0x688(%rbp)
ff
movslq -0x654(%rbp),%rax
cvtsi2ssl -0x650(%rbp,%rax,4),%xmm0
ff ff
addss  -0x68c(%rbp),%xmm0
ff
movss  %xmm0,-0x68c(%rbp)
ff
mov    -0x654(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0x654(%rbp)
jmp    1268 <main+0x128>
lea    0xb7b(%rip),%rdi
mov    $0x0,%al
call   1030 <printf@plt>
movl   $0x0,-0x654(%rbp)
cmpl   $0xc8,-0x654(%rbp)
jge    14e8 <main+0x3a8>
movslq -0x654(%rbp),%rax
mov    -0x330(%rbp,%rax,4),%esi
movslq -0x654(%rbp),%rax
mov    -0x650(%rbp,%rax,4),%edx
lea    0xb7b(%rip),%rdi
mov    $0x0,%al
call   1030 <printf@plt>
mov    -0x654(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0x654(%rbp)
jmp    149a <main+0x35a>
mov    -0x658(%rbp),%esi
mov    -0x660(%rbp),%edx
lea    0xb55(%rip),%rdi
mov    $0x0,%al
call   1030 <printf@plt>
mov    -0x65c(%rbp),%esi
mov    -0x664(%rbp),%edx
lea    0xb75(%rip),%rdi
mov    $0x0,%al
call   1030 <printf@plt>
mov    -0x668(%rbp),%esi
mov    -0x670(%rbp),%edx
mov    -0x678(%rbp),%ecx
mov    -0x680(%rbp),%r8d
lea    0xb87(%rip),%rdi
mov    $0x0,%al
call   1030 <printf@plt>
mov    -0x66c(%rbp),%esi
mov    -0x674(%rbp),%edx
mov    -0x67c(%rbp),%ecx
mov    -0x684(%rbp),%r8d
lea    0xbb7(%rip),%rdi
mov    $0x0,%al
call   1030 <printf@plt>
movss  -0x688(%rbp),%xmm0
ff
movss  0xa86(%rip),%xmm1
divss  %xmm1,%xmm0
movss  %xmm0,-0x690(%rbp)
ff
movss  -0x68c(%rbp),%xmm0
ff
movss  0xa6a(%rip),%xmm1
divss  %xmm1,%xmm0
movss  %xmm0,-0x694(%rbp)
ff
movss  -0x690(%rbp),%xmm0
ff
cvtss2sd %xmm0,%xmm0
lea    0xbbe(%rip),%rdi
mov    $0x1,%al
call   1030 <printf@plt>
movss  -0x694(%rbp),%xmm0
ff
cvtss2sd %xmm0,%xmm0
lea    0xbcd(%rip),%rdi
mov    $0x1,%al
call   1030 <printf@plt>
xor    %eax,%eax
add    $0x6a0,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<main>:
push   %rbp
push   %r15
push   %r14
push   %r13
push   %r12
push   %rbx
sub    $0x688,%rsp
xor    %edi,%edi
call   1060 <time@plt>
mov    %eax,%edi
call   1050 <srand@plt>
xor    %ebx,%ebx
cs nopw 0x0(%rax,%rax,1)
nopl   0x0(%rax,%rax,1)
xor    %eax,%eax
call   1070 <rand@plt>
cltq
imul   $0x51eb851f,%rax,%rcx
mov    %rcx,%rdx
shr    $0x3f,%rdx
sar    $0x26,%rcx
add    %edx,%ecx
imul   $0xc8,%ecx,%ecx
neg    %ecx
add    %ecx,%eax
add    $0x1,%eax
mov    %eax,0x360(%rsp,%rbx,4)
xor    %eax,%eax
call   1070 <rand@plt>
cltq
imul   $0x51eb851f,%rax,%rcx
mov    %rcx,%rdx
shr    $0x3f,%rdx
sar    $0x26,%rcx
add    %edx,%ecx
imul   $0xc8,%ecx,%ecx
neg    %ecx
add    %ecx,%eax
add    $0x1,%eax
mov    %eax,0x40(%rsp,%rbx,4)
add    $0x1,%rbx
cmp    $0xc8,%rbx
jne    1180 <main+0x30>
xorps  %xmm2,%xmm2
xor    %eax,%eax
xor    %esi,%esi
xor    %r8d,%r8d
xor    %r9d,%r9d
xor    %r10d,%r10d
xor    %r11d,%r11d
xor    %r14d,%r14d
xor    %ebx,%ebx
xor    %edi,%edi
xor    %ebp,%ebp
xor    %r15d,%r15d
xor    %r13d,%r13d
xor    %r12d,%r12d
cs nopw 0x0(%rax,%rax,1)
nopl   0x0(%rax,%rax,1)
mov    0x360(%rsp,%rax,4),%ecx
mov    %ecx,%edx
and    $0x1,%edx
add    %edx,%r13d
xor    $0x1,%edx
add    %edx,%ebp
add    %edx,%esi
mov    %esi,(%rsp)
mov    0x40(%rsp,%rax,4),%edx
mov    %edx,%esi
and    $0x1,%esi
add    %esi,%r15d
xor    $0x1,%esi
add    %esi,%r12d
add    %esi,%edi
imul   $0xaaaaaaab,%ecx,%esi
add    $0x2aaaaaaa,%esi
cmp    $0x55555555,%esi
adc    $0x0,%ebx
imul   $0xaaaaaaab,%edx,%esi
add    $0x2aaaaaaa,%esi
cmp    $0x55555555,%esi
adc    $0x0,%r14d
imul   $0xcccccccd,%ecx,%esi
add    $0x19999999,%esi
cmp    $0x33333333,%esi
adc    $0x0,%r11d
imul   $0xcccccccd,%edx,%esi
add    $0x19999999,%esi
cmp    $0x33333333,%esi
adc    $0x0,%r10d
imul   $0xb6db6db7,%ecx,%esi
add    $0x12492492,%esi
cmp    $0x24924925,%esi
adc    $0x0,%r9d
imul   $0xb6db6db7,%edx,%esi
add    $0x12492492,%esi
cmp    $0x24924925,%esi
mov    (%rsp),%esi
movd   %ecx,%xmm0
movd   %edx,%xmm1
adc    $0x0,%r8d
punpckldq %xmm0,%xmm1
cvtdq2ps %xmm1,%xmm0
addps  %xmm0,%xmm2
add    $0x1,%rax
cmp    $0xc8,%rax
jne    1220 <main+0xd0>
mov    %r13d,0x4(%rsp)
mov    %r12d,0x8(%rsp)
mov    %r15d,0xc(%rsp)
mov    %ebp,0x10(%rsp)
mov    %ebx,0x14(%rsp)
mov    %r11d,0x18(%rsp)
mov    %r9d,0x1c(%rsp)
mov    %edi,0x20(%rsp)
mov    %r14d,0x24(%rsp)
mov    %r10d,0x28(%rsp)
mov    %r8d,0x2c(%rsp)
movaps %xmm2,0x30(%rsp)
lea    0xe4d(%rip),%rdi
call   1030 <puts@plt>
lea    0xcc3(%rip),%rbx
xor    %r14d,%r14d
cs nopw 0x0(%rax,%rax,1)
xchg   %ax,%ax
mov    0x360(%rsp,%r14,4),%esi
mov    0x40(%rsp,%r14,4),%edx
mov    %rbx,%rdi
xor    %eax,%eax
call   1040 <printf@plt>
add    $0x1,%r14
cmp    $0xc8,%r14
jne    1350 <main+0x200>
lea    0xc91(%rip),%rdi
mov    (%rsp),%esi
mov    0x4(%rsp),%edx
xor    %eax,%eax
call   1040 <printf@plt>
lea    0xcb6(%rip),%rdi
mov    0x8(%rsp),%esi
mov    0xc(%rsp),%edx
xor    %eax,%eax
call   1040 <printf@plt>
lea    0xcd9(%rip),%rdi
mov    0x10(%rsp),%esi
mov    0x14(%rsp),%edx
mov    0x18(%rsp),%ecx
mov    0x1c(%rsp),%r8d
xor    %eax,%eax
call   1040 <printf@plt>
lea    0xd11(%rip),%rdi
mov    0x20(%rsp),%esi
mov    0x24(%rsp),%edx
mov    0x28(%rsp),%ecx
mov    0x2c(%rsp),%r8d
xor    %eax,%eax
call   1040 <printf@plt>
movaps 0x30(%rsp),%xmm2
movaps %xmm2,%xmm0
shufps $0x55,%xmm2,%xmm0
movss  0xc0f(%rip),%xmm1
divss  %xmm1,%xmm0
divss  %xmm1,%xmm2
movaps %xmm2,0x30(%rsp)
cvtss2sd %xmm0,%xmm0
lea    0xd26(%rip),%rdi
mov    $0x1,%al
call   1040 <printf@plt>
movaps 0x30(%rsp),%xmm0
cvtss2sd %xmm0,%xmm0
lea    0xd38(%rip),%rdi
mov    $0x1,%al
call   1040 <printf@plt>
xor    %eax,%eax
add    $0x688,%rsp
pop    %rbx
pop    %r12
pop    %r13
pop    %r14
pop    %r15
pop    %rbp
ret

LLVM IR (-O0):
@.str = [68 x i8] c"\0AVECTORES CARGADOS\0A\0AA[i]\09\09B[i]\0A-----------------------------------\0A\00"
@.str.1 = [8 x i8] c"%d\09\09%d\0A\00"
@.str.2 = [58 x i8] c"\0A\0AEl numero de numeros pares en A es %d e impares es %d.\0A\00"
@.str.3 = [57 x i8] c"El numero de numeros pares en B es %d e impares es %d.\0A\0A\00"
@.str.4 = [87 x i8] c"En A hay %d multiplos de 2, %d multiplos de 3, %d multiplos de 5 y %d multiplos de 7.\0A\00"
@.str.5 = [89 x i8] c"En B hay %d multiplos de 2, %d multiplos de 3, %d multiplos de 5 y %d multiplos de 7.\0A\0A\0A\00"
@.str.6 = [41 x i8] c"El promedio de los numeros de A fue %f.\0A\00"
@.str.7 = [42 x i8] c"El promedio de los numeros de B fue %f.\0A\0A\00"
define i32 @main() {
%1 = alloca i32
%2 = alloca [200 x i32]
%3 = alloca [200 x i32]
%4 = alloca i32
%5 = alloca i32
%6 = alloca i32
%7 = alloca i32
%8 = alloca i32
%9 = alloca i32
%10 = alloca i32
%11 = alloca i32
%12 = alloca i32
%13 = alloca i32
%14 = alloca i32
%15 = alloca i32
%16 = alloca i32
%17 = alloca float
%18 = alloca float
%19 = alloca float
%20 = alloca float
store i32 0, i32* %1
store i32 0, i32* %16
store i32 0, i32* %15
store i32 0, i32* %14
store i32 0, i32* %13
store i32 0, i32* %12
store i32 0, i32* %11
store i32 0, i32* %10
store i32 0, i32* %9
store i32 0, i32* %6
store i32 0, i32* %5
store i32 0, i32* %8
store i32 0, i32* %7
store float 0.000000e+00, float* %18
store float 0.000000e+00, float* %17
%21 = call i32 @time(i32* null)
%22 = call i32 @srand(i32 %21)
store i32 0, i32* %4
br label %23
23: ; preds = %39, %0
%24 = load i32, i32* %4
%25 = icmp slt i32 %24, 200
br i1 %25, label %26, label %42
26: ; preds = %23
%27 = call i32 (...) @rand()
%28 = srem i32 %27, 200
%29 = add nsw i32 %28, 1
%30 = load i32, i32* %4
%31 = sext i32 %30 to i64
%32 = getelementptr inbounds [200 x i32], [200 x i32]* %2, i64 0, i64 %31
store i32 %29, i32* %32
%33 = call i32 (...) @rand()
%34 = srem i32 %33, 200
%35 = add nsw i32 %34, 1
%36 = load i32, i32* %4
%37 = sext i32 %36 to i64
%38 = getelementptr inbounds [200 x i32], [200 x i32]* %3, i64 0, i64 %37
store i32 %35, i32* %38
br label %39
39: ; preds = %26
%40 = load i32, i32* %4
%41 = add nsw i32 %40, 1
store i32 %41, i32* %4
br label %23
42: ; preds = %23
store i32 0, i32* %4
br label %43
43: ; preds = %151, %42
%44 = load i32, i32* %4
%45 = icmp slt i32 %44, 200
br i1 %45, label %46, label %154
46: ; preds = %43
%47 = load i32, i32* %4
%48 = sext i32 %47 to i64
%49 = getelementptr inbounds [200 x i32], [200 x i32]* %2, i64 0, i64 %48
%50 = load i32, i32* %49
%51 = srem i32 %50, 2
%52 = icmp eq i32 %51, 0
br i1 %52, label %53, label %58
53: ; preds = %46
%54 = load i32, i32* %5
%55 = add nsw i32 %54, 1
store i32 %55, i32* %5
%56 = load i32, i32* %9
%57 = add nsw i32 %56, 1
store i32 %57, i32* %9
br label %61
58: ; preds = %46
%59 = load i32, i32* %7
%60 = add nsw i32 %59, 1
store i32 %60, i32* %7
br label %61
61: ; preds = %58, %53
%62 = load i32, i32* %4
%63 = sext i32 %62 to i64
%64 = getelementptr inbounds [200 x i32], [200 x i32]* %3, i64 0, i64 %63
%65 = load i32, i32* %64
%66 = srem i32 %65, 2
%67 = icmp eq i32 %66, 0
br i1 %67, label %68, label %73
68: ; preds = %61
%69 = load i32, i32* %6
%70 = add nsw i32 %69, 1
store i32 %70, i32* %6
%71 = load i32, i32* %10
%72 = add nsw i32 %71, 1
store i32 %72, i32* %10
br label %76
73: ; preds = %61
%74 = load i32, i32* %8
%75 = add nsw i32 %74, 1
store i32 %75, i32* %8
br label %76
76: ; preds = %73, %68
%77 = load i32, i32* %4
%78 = sext i32 %77 to i64
%79 = getelementptr inbounds [200 x i32], [200 x i32]* %2, i64 0, i64 %78
%80 = load i32, i32* %79
%81 = srem i32 %80, 3
%82 = icmp eq i32 %81, 0
br i1 %82, label %83, label %86
83: ; preds = %76
%84 = load i32, i32* %11
%85 = add nsw i32 %84, 1
store i32 %85, i32* %11
br label %86
86: ; preds = %83, %76
%87 = load i32, i32* %4
%88 = sext i32 %87 to i64
%89 = getelementptr inbounds [200 x i32], [200 x i32]* %3, i64 0, i64 %88
%90 = load i32, i32* %89
%91 = srem i32 %90, 3
%92 = icmp eq i32 %91, 0
br i1 %92, label %93, label %96
93: ; preds = %86
%94 = load i32, i32* %12
%95 = add nsw i32 %94, 1
store i32 %95, i32* %12
br label %96
96: ; preds = %93, %86
%97 = load i32, i32* %4
%98 = sext i32 %97 to i64
%99 = getelementptr inbounds [200 x i32], [200 x i32]* %2, i64 0, i64 %98
%100 = load i32, i32* %99
%101 = srem i32 %100, 5
%102 = icmp eq i32 %101, 0
br i1 %102, label %103, label %106
103: ; preds = %96
%104 = load i32, i32* %13
%105 = add nsw i32 %104, 1
store i32 %105, i32* %13
br label %106
106: ; preds = %103, %96
%107 = load i32, i32* %4
%108 = sext i32 %107 to i64
%109 = getelementptr inbounds [200 x i32], [200 x i32]* %3, i64 0, i64 %108
%110 = load i32, i32* %109
%111 = srem i32 %110, 5
%112 = icmp eq i32 %111, 0
br i1 %112, label %113, label %116
113: ; preds = %106
%114 = load i32, i32* %14
%115 = add nsw i32 %114, 1
store i32 %115, i32* %14
br label %116
116: ; preds = %113, %106
%117 = load i32, i32* %4
%118 = sext i32 %117 to i64
%119 = getelementptr inbounds [200 x i32], [200 x i32]* %2, i64 0, i64 %118
%120 = load i32, i32* %119
%121 = srem i32 %120, 7
%122 = icmp eq i32 %121, 0
br i1 %122, label %123, label %126
123: ; preds = %116
%124 = load i32, i32* %15
%125 = add nsw i32 %124, 1
store i32 %125, i32* %15
br label %126
126: ; preds = %123, %116
%127 = load i32, i32* %4
%128 = sext i32 %127 to i64
%129 = getelementptr inbounds [200 x i32], [200 x i32]* %3, i64 0, i64 %128
%130 = load i32, i32* %129
%131 = srem i32 %130, 7
%132 = icmp eq i32 %131, 0
br i1 %132, label %133, label %136
133: ; preds = %126
%134 = load i32, i32* %16
%135 = add nsw i32 %134, 1
store i32 %135, i32* %16
br label %136
136: ; preds = %133, %126
%137 = load i32, i32* %4
%138 = sext i32 %137 to i64
%139 = getelementptr inbounds [200 x i32], [200 x i32]* %2, i64 0, i64 %138
%140 = load i32, i32* %139
%141 = sitofp i32 %140 to float
%142 = load float, float* %17
%143 = fadd float %142, %141
store float %143, float* %17
%144 = load i32, i32* %4
%145 = sext i32 %144 to i64
%146 = getelementptr inbounds [200 x i32], [200 x i32]* %3, i64 0, i64 %145
%147 = load i32, i32* %146
%148 = sitofp i32 %147 to float
%149 = load float, float* %18
%150 = fadd float %149, %148
store float %150, float* %18
br label %151
151: ; preds = %136
%152 = load i32, i32* %4
%153 = add nsw i32 %152, 1
store i32 %153, i32* %4
br label %43
154: ; preds = %43
%155 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([68 x i8], [68 x i8]* @.str, i64 0, i64 0))
store i32 0, i32* %4
br label %156
156: ; preds = %169, %154
%157 = load i32, i32* %4
%158 = icmp slt i32 %157, 200
br i1 %158, label %159, label %172
159: ; preds = %156
%160 = load i32, i32* %4
%161 = sext i32 %160 to i64
%162 = getelementptr inbounds [200 x i32], [200 x i32]* %2, i64 0, i64 %161
%163 = load i32, i32* %162
%164 = load i32, i32* %4
%165 = sext i32 %164 to i64
%166 = getelementptr inbounds [200 x i32], [200 x i32]* %3, i64 0, i64 %165
%167 = load i32, i32* %166
%168 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([8 x i8], [8 x i8]* @.str.1, i64 0, i64 0), i32 %163, i32 %167)
br label %169
169: ; preds = %159
%170 = load i32, i32* %4
%171 = add nsw i32 %170, 1
store i32 %171, i32* %4
br label %156
172: ; preds = %156
%173 = load i32, i32* %5
%174 = load i32, i32* %7
%175 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([58 x i8], [58 x i8]* @.str.2, i64 0, i64 0), i32 %173, i32 %174)
%176 = load i32, i32* %6
%177 = load i32, i32* %8
%178 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([57 x i8], [57 x i8]* @.str.3, i64 0, i64 0), i32 %176, i32 %177)
%179 = load i32, i32* %9
%180 = load i32, i32* %11
%181 = load i32, i32* %13
%182 = load i32, i32* %15
%183 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([87 x i8], [87 x i8]* @.str.4, i64 0, i64 0), i32 %179, i32 %180, i32 %181, i32 %182)
%184 = load i32, i32* %10
%185 = load i32, i32* %12
%186 = load i32, i32* %14
%187 = load i32, i32* %16
%188 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([89 x i8], [89 x i8]* @.str.5, i64 0, i64 0), i32 %184, i32 %185, i32 %186, i32 %187)
%189 = load float, float* %17
%190 = fdiv float %189, 2.000000e+02
store float %190, float* %19
%191 = load float, float* %18
%192 = fdiv float %191, 2.000000e+02
store float %192, float* %20
%193 = load float, float* %19
%194 = fpext float %193 to double
%195 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([41 x i8], [41 x i8]* @.str.6, i64 0, i64 0), double %194)
%196 = load float, float* %20
%197 = fpext float %196 to double
%198 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([42 x i8], [42 x i8]* @.str.7, i64 0, i64 0), double %197)
ret i32 0
}

LLVM IR (-O2):
@.str.1 = [8 x i8] c"%d\09\09%d\0A\00"
@.str.2 = [58 x i8] c"\0A\0AEl numero de numeros pares en A es %d e impares es %d.\0A\00"
@.str.3 = [57 x i8] c"El numero de numeros pares en B es %d e impares es %d.\0A\0A\00"
@.str.4 = [87 x i8] c"En A hay %d multiplos de 2, %d multiplos de 3, %d multiplos de 5 y %d multiplos de 7.\0A\00"
@.str.5 = [89 x i8] c"En B hay %d multiplos de 2, %d multiplos de 3, %d multiplos de 5 y %d multiplos de 7.\0A\0A\0A\00"
@.str.6 = [41 x i8] c"El promedio de los numeros de A fue %f.\0A\00"
@.str.7 = [42 x i8] c"El promedio de los numeros de B fue %f.\0A\0A\00"
@str = [67 x i8] c"\0AVECTORES CARGADOS\0A\0AA[i]\09\09B[i]\0A-----------------------------------\00"
define i32 @main() {
%1 = alloca [200 x i32]
%2 = alloca [200 x i32]
%3 = bitcast [200 x i32]* %1 to i8*
%4 = bitcast [200 x i32]* %2 to i8*
%5 = tail call i32 @time(i32* null)
%6 = tail call i32 @srand(i32 %5)
br label %7
7: ; preds = %0, %7
%8 = phi i64 [ 0, %0 ], [ %17, %7 ]
%9 = tail call i32 (...) @rand()
%10 = srem i32 %9, 200
%11 = add nsw i32 %10, 1
%12 = getelementptr inbounds [200 x i32], [200 x i32]* %1, i64 0, i64 %8
store i32 %11, i32* %12
%13 = tail call i32 (...) @rand()
%14 = srem i32 %13, 200
%15 = add nsw i32 %14, 1
%16 = getelementptr inbounds [200 x i32], [200 x i32]* %2, i64 0, i64 %8
store i32 %15, i32* %16
%17 = add nuw nsw i64 %8, 1
%18 = icmp eq i64 %17, 200
br i1 %18, label %19, label %7
19: ; preds = %7, %19
%20 = phi i64 [ %76, %19 ], [ 0, %7 ]
%21 = phi i32 [ %40, %19 ], [ 0, %7 ]
%22 = phi i32 [ %71, %19 ], [ 0, %7 ]
%23 = phi i32 [ %67, %19 ], [ 0, %7 ]
%24 = phi i32 [ %63, %19 ], [ 0, %7 ]
%25 = phi i32 [ %59, %19 ], [ 0, %7 ]
%26 = phi i32 [ %55, %19 ], [ 0, %7 ]
%27 = phi i32 [ %51, %19 ], [ 0, %7 ]
%28 = phi i32 [ %47, %19 ], [ 0, %7 ]
%29 = phi i32 [ %39, %19 ], [ 0, %7 ]
%30 = phi i32 [ %46, %19 ], [ 0, %7 ]
%31 = phi i32 [ %37, %19 ], [ 0, %7 ]
%32 = phi i32 [ %45, %19 ], [ 0, %7 ]
%33 = phi <2 x float> [ %75, %19 ], [ zeroinitializer, %7 ]
%34 = getelementptr inbounds [200 x i32], [200 x i32]* %1, i64 0, i64 %20
%35 = load i32, i32* %34
%36 = and i32 %35, 1
%37 = add nuw nsw i32 %36, %31
%38 = xor i32 %36, 1
%39 = add nuw nsw i32 %38, %29
%40 = add nuw nsw i32 %38, %21
%41 = getelementptr inbounds [200 x i32], [200 x i32]* %2, i64 0, i64 %20
%42 = load i32, i32* %41
%43 = and i32 %42, 1
%44 = xor i32 %43, 1
%45 = add nuw nsw i32 %44, %32
%46 = add nuw nsw i32 %43, %30
%47 = add nuw nsw i32 %44, %28
%48 = srem i32 %35, 3
%49 = icmp eq i32 %48, 0
%50 = zext i1 %49 to i32
%51 = add nuw nsw i32 %27, %50
%52 = srem i32 %42, 3
%53 = icmp eq i32 %52, 0
%54 = zext i1 %53 to i32
%55 = add nuw nsw i32 %26, %54
%56 = srem i32 %35, 5
%57 = icmp eq i32 %56, 0
%58 = zext i1 %57 to i32
%59 = add nuw nsw i32 %25, %58
%60 = srem i32 %42, 5
%61 = icmp eq i32 %60, 0
%62 = zext i1 %61 to i32
%63 = add nuw nsw i32 %24, %62
%64 = srem i32 %35, 7
%65 = icmp eq i32 %64, 0
%66 = zext i1 %65 to i32
%67 = add nuw nsw i32 %23, %66
%68 = srem i32 %42, 7
%69 = icmp eq i32 %68, 0
%70 = zext i1 %69 to i32
%71 = add nuw nsw i32 %22, %70
%72 = insertelement <2 x i32> poison, i32 %42, i64 0
%73 = insertelement <2 x i32> %72, i32 %35, i64 1
%74 = sitofp <2 x i32> %73 to <2 x float>
%75 = fadd <2 x float> %33, %74
%76 = add nuw nsw i64 %20, 1
%77 = icmp eq i64 %76, 200
br i1 %77, label %78, label %19
78: ; preds = %19
%79 = tail call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([67 x i8], [67 x i8]* @str, i64 0, i64 0))
br label %80
80: ; preds = %78, %80
%81 = phi i64 [ 0, %78 ], [ %87, %80 ]
%82 = getelementptr inbounds [200 x i32], [200 x i32]* %1, i64 0, i64 %81
%83 = load i32, i32* %82
%84 = getelementptr inbounds [200 x i32], [200 x i32]* %2, i64 0, i64 %81
%85 = load i32, i32* %84
%86 = tail call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([8 x i8], [8 x i8]* @.str.1, i64 0, i64 0), i32 %83, i32 %85)
%87 = add nuw nsw i64 %81, 1
%88 = icmp eq i64 %87, 200
br i1 %88, label %89, label %80
89: ; preds = %80
%90 = tail call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([58 x i8], [58 x i8]* @.str.2, i64 0, i64 0), i32 %40, i32 %37)
%91 = tail call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([57 x i8], [57 x i8]* @.str.3, i64 0, i64 0), i32 %45, i32 %46)
%92 = tail call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([87 x i8], [87 x i8]* @.str.4, i64 0, i64 0), i32 %39, i32 %51, i32 %59, i32 %67)
%93 = tail call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([89 x i8], [89 x i8]* @.str.5, i64 0, i64 0), i32 %47, i32 %55, i32 %63, i32 %71)
%94 = extractelement <2 x float> %75, i64 1
%95 = fdiv float %94, 2.000000e+02
%96 = extractelement <2 x float> %75, i64 0
%97 = fdiv float %96, 2.000000e+02
%98 = fpext float %95 to double
%99 = tail call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([41 x i8], [41 x i8]* @.str.6, i64 0, i64 0), double %98)
%100 = fpext float %97 to double
%101 = tail call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([42 x i8], [42 x i8]* @.str.7, i64 0, i64 0), double %100)
ret i32 0
}