#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 *);
int main() {
  float total = 0, max, min, odd, promedio, even;
  int a, c, i;
  printf("\n\n\n");
  printf("Digite el numero de elementos:\n");
  scanf("%d", &a);
  printf("Digite %d elementos:\n", a);
  int numb[a];
  for (c = 0; c < a; c++) {
    scanf("%d", &numb[c]);
    total += numb[c];
    if (c == 0) {
      max = numb[0];
      min = numb[0];
    }
    if (numb[c] > max) {
      max = numb[c];
    }
    if (numb[c] < min) {
      min = numb[c];
    }
  }
  promedio = (float)total / (float)a;
  printf("El promedio es : %4.2f \n", promedio);
  printf("El mayor es    : %4.0f \n", max);
  printf("El menor es    : %4.0f \n", min);
  printf("Los numeros pares son: \n");
  for (i = 0; i < a; i++) {
    if (numb[i] % 2 == 0) {
      printf("%d ,", numb[i]);
      printf("\n");
    }
  }
  printf("Los numeros nones son:");
  for (i = 0; i < a; i++) {
    if (numb[i] % 2 != 0) {
      printf("%d ,", numb[i]);
      printf("\n");
    }
  }
  printf("\n\n\n");
  return 0;
}


x86 assembly (clang, -O0):
<main>:
push   %rbp
mov    %rsp,%rbp
sub    $0x50,%rsp
movl   $0x0,-0x4(%rbp)
movl   $0x0,-0x8(%rbp)
lea    0xec3(%rip),%rdi
xor    %eax,%eax
mov    %al,-0x41(%rbp)
call   1030 <printf@plt>
mov    -0x41(%rbp),%al
lea    0xeb3(%rip),%rdi
call   1030 <printf@plt>
lea    0xec7(%rip),%rdi
lea    -0x20(%rbp),%rsi
call   1040 <scanf@plt>
mov    -0x41(%rbp),%al
mov    -0x20(%rbp),%esi
lea    0xeb4(%rip),%rdi
call   1030 <printf@plt>
mov    -0x20(%rbp),%eax
mov    %rsp,%rcx
mov    %rcx,-0x30(%rbp)
lea    0xf(,%rax,4),%rdx
and    $0xfffffffffffffff0,%rdx
mov    %rsp,%rcx
sub    %rdx,%rcx
mov    %rcx,-0x40(%rbp)
mov    %rcx,%rsp
mov    %rax,-0x38(%rbp)
movl   $0x0,-0x24(%rbp)
mov    -0x24(%rbp),%eax
cmp    -0x20(%rbp),%eax
jge    126d <main+0x14d>
mov    -0x40(%rbp),%rsi
movslq -0x24(%rbp),%rax
shl    $0x2,%rax
add    %rax,%rsi
lea    0xe5c(%rip),%rdi
call   1040 <scanf@plt>
mov    -0x40(%rbp),%rax
movslq -0x24(%rbp),%rcx
cvtsi2ssl (%rax,%rcx,4),%xmm0
addss  -0x8(%rbp),%xmm0
movss  %xmm0,-0x8(%rbp)
cmpl   $0x0,-0x24(%rbp)
jne    1204 <main+0xe4>
mov    -0x40(%rbp),%rax
cvtsi2ssl (%rax),%xmm0
movss  %xmm0,-0xc(%rbp)
cvtsi2ssl (%rax),%xmm0
movss  %xmm0,-0x10(%rbp)
mov    -0x40(%rbp),%rax
movslq -0x24(%rbp),%rcx
cvtsi2ssl (%rax,%rcx,4),%xmm0
ucomiss -0xc(%rbp),%xmm0
jbe    122d <main+0x10d>
mov    -0x40(%rbp),%rax
movslq -0x24(%rbp),%rcx
cvtsi2ssl (%rax,%rcx,4),%xmm0
movss  %xmm0,-0xc(%rbp)
mov    -0x40(%rbp),%rax
movslq -0x24(%rbp),%rcx
cvtsi2ssl (%rax,%rcx,4),%xmm1
movss  -0x10(%rbp),%xmm0
ucomiss %xmm1,%xmm0
jbe    125a <main+0x13a>
mov    -0x40(%rbp),%rax
movslq -0x24(%rbp),%rcx
cvtsi2ssl (%rax,%rcx,4),%xmm0
movss  %xmm0,-0x10(%rbp)
jmp    125f <main+0x13f>
mov    -0x24(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0x24(%rbp)
jmp    11a6 <main+0x86>
movss  -0x8(%rbp),%xmm0
cvtsi2ssl -0x20(%rbp),%xmm1
divss  %xmm1,%xmm0
movss  %xmm0,-0x18(%rbp)
movss  -0x18(%rbp),%xmm0
cvtss2sd %xmm0,%xmm0
lea    0xdad(%rip),%rdi
mov    $0x1,%al
call   1030 <printf@plt>
movss  -0xc(%rbp),%xmm0
cvtss2sd %xmm0,%xmm0
lea    0xdaf(%rip),%rdi
mov    $0x1,%al
call   1030 <printf@plt>
movss  -0x10(%rbp),%xmm0
cvtss2sd %xmm0,%xmm0
lea    0xdb1(%rip),%rdi
mov    $0x1,%al
call   1030 <printf@plt>
lea    0xdbc(%rip),%rdi
mov    $0x0,%al
call   1030 <printf@plt>
movl   $0x0,-0x28(%rbp)
mov    -0x28(%rbp),%eax
cmp    -0x20(%rbp),%eax
jge    133c <main+0x21c>
mov    -0x40(%rbp),%rax
movslq -0x28(%rbp),%rcx
mov    (%rax,%rcx,4),%eax
mov    $0x2,%ecx
cltd
idiv   %ecx
cmp    $0x0,%edx
jne    1329 <main+0x209>
mov    -0x40(%rbp),%rax
movslq -0x28(%rbp),%rcx
mov    (%rax,%rcx,4),%esi
lea    0xd8d(%rip),%rdi
mov    $0x0,%al
call   1030 <printf@plt>
lea    0xce0(%rip),%rdi
mov    $0x0,%al
call   1030 <printf@plt>
jmp    132e <main+0x20e>
mov    -0x28(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0x28(%rbp)
jmp    12da <main+0x1ba>
lea    0xd63(%rip),%rdi
mov    $0x0,%al
call   1030 <printf@plt>
movl   $0x0,-0x28(%rbp)
mov    -0x28(%rbp),%eax
cmp    -0x20(%rbp),%eax
jge    13b3 <main+0x293>
mov    -0x40(%rbp),%rax
movslq -0x28(%rbp),%rcx
mov    (%rax,%rcx,4),%eax
mov    $0x2,%ecx
cltd
idiv   %ecx
cmp    $0x0,%edx
je     13a0 <main+0x280>
mov    -0x40(%rbp),%rax
movslq -0x28(%rbp),%rcx
mov    (%rax,%rcx,4),%esi
lea    0xd16(%rip),%rdi
mov    $0x0,%al
call   1030 <printf@plt>
lea    0xc69(%rip),%rdi
mov    $0x0,%al
call   1030 <printf@plt>
jmp    13a5 <main+0x285>
mov    -0x28(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0x28(%rbp)
jmp    1351 <main+0x231>
lea    0xc46(%rip),%rdi
mov    $0x0,%al
call   1030 <printf@plt>
movl   $0x0,-0x4(%rbp)
mov    -0x30(%rbp),%rax
mov    %rax,%rsp
mov    -0x4(%rbp),%eax
mov    %rbp,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<main>:
push   %rbp
mov    %rsp,%rbp
push   %r15
push   %r14
push   %r13
push   %r12
push   %rbx
sub    $0x18,%rsp
lea    0xf5f(%rip),%rdi
call   1040 <puts@plt>
lea    0xf1c(%rip),%rdi
call   1040 <puts@plt>
lea    0xe90(%rip),%rdi
lea    -0x2c(%rbp),%rsi
call   1060 <scanf@plt>
mov    -0x2c(%rbp),%esi
lea    0xe80(%rip),%rdi
xor    %eax,%eax
call   1050 <printf@plt>
mov    %rsp,%r12
mov    -0x2c(%rbp),%eax
mov    %rsp,%r14
lea    0xf(,%rax,4),%rax
and    $0xfffffffffffffff0,%rax
sub    %rax,%r14
mov    %r14,%rsp
mov    -0x2c(%rbp),%eax
test   %eax,%eax
jle    1244 <main+0x104>
lea    0xe49(%rip),%rdi
mov    %r14,%rsi
call   1060 <scanf@plt>
cvtsi2ssl (%r14),%xmm1
mov    -0x2c(%rbp),%eax
cmp    $0x2,%eax
jl     1249 <main+0x109>
lea    0x4(%r14),%rbx
mov    $0x1,%r13d
lea    0xe23(%rip),%r15
movaps %xmm1,%xmm2
movaps %xmm1,%xmm0
cs nopw 0x0(%rax,%rax,1)
nopl   (%rax)
movss  %xmm1,-0x34(%rbp)
movss  %xmm0,-0x30(%rbp)
movss  %xmm2,-0x38(%rbp)
mov    %r15,%rdi
mov    %rbx,%rsi
call   1060 <scanf@plt>
movss  -0x34(%rbp),%xmm1
xorps  %xmm0,%xmm0
cvtsi2ssl (%rbx),%xmm0
addss  %xmm0,%xmm1
movaps %xmm0,%xmm2
maxss  -0x38(%rbp),%xmm2
minss  -0x30(%rbp),%xmm0
add    $0x1,%r13
movslq -0x2c(%rbp),%rax
add    $0x4,%rbx
cmp    %rax,%r13
jl     11f0 <main+0xb0>
movss  %xmm0,-0x34(%rbp)
movss  %xmm2,-0x30(%rbp)
jmp    1253 <main+0x113>
xorps  %xmm1,%xmm1
jmp    1253 <main+0x113>
movss  %xmm1,-0x34(%rbp)
movss  %xmm1,-0x30(%rbp)
xorps  %xmm0,%xmm0
cvtsi2ss %eax,%xmm0
divss  %xmm0,%xmm1
xorps  %xmm0,%xmm0
cvtss2sd %xmm1,%xmm0
lea    0xdad(%rip),%rdi
mov    $0x1,%al
call   1050 <printf@plt>
movss  -0x30(%rbp),%xmm0
cvtss2sd %xmm0,%xmm0
lea    0xdaf(%rip),%rdi
mov    $0x1,%al
call   1050 <printf@plt>
movss  -0x34(%rbp),%xmm0
cvtss2sd %xmm0,%xmm0
lea    0xdb1(%rip),%rdi
mov    $0x1,%al
call   1050 <printf@plt>
lea    0xdf7(%rip),%rdi
call   1040 <puts@plt>
mov    -0x2c(%rbp),%eax
test   %eax,%eax
jle    12ef <main+0x1af>
lea    0xda9(%rip),%r15
xor    %ebx,%ebx
jmp    12cc <main+0x18c>
nop
add    $0x1,%rbx
movslq %eax,%rcx
cmp    %rcx,%rbx
jge    12ef <main+0x1af>
mov    (%r14,%rbx,4),%esi
test   $0x1,%sil
jne    12c0 <main+0x180>
mov    %r15,%rdi
xor    %eax,%eax
call   1050 <printf@plt>
mov    $0xa,%edi
call   1030 <putchar@plt>
mov    -0x2c(%rbp),%eax
jmp    12c0 <main+0x180>
lea    0xd73(%rip),%rdi
xor    %eax,%eax
call   1050 <printf@plt>
mov    -0x2c(%rbp),%eax
test   %eax,%eax
jle    133f <main+0x1ff>
lea    0xd59(%rip),%r15
xor    %ebx,%ebx
jmp    131c <main+0x1dc>
nop
add    $0x1,%rbx
movslq %eax,%rcx
cmp    %rcx,%rbx
jge    133f <main+0x1ff>
mov    (%r14,%rbx,4),%esi
test   $0x1,%sil
je     1310 <main+0x1d0>
mov    %r15,%rdi
xor    %eax,%eax
call   1050 <printf@plt>
mov    $0xa,%edi
call   1030 <putchar@plt>
mov    -0x2c(%rbp),%eax
jmp    1310 <main+0x1d0>
lea    0xd71(%rip),%rdi
call   1040 <puts@plt>
mov    %r12,%rsp
xor    %eax,%eax
lea    -0x28(%rbp),%rsp
pop    %rbx
pop    %r12
pop    %r13
pop    %r14
pop    %r15
pop    %rbp
ret

LLVM IR (-O0):
@.str = [4 x i8] c"\0A\0A\0A\00"
@.str.1 = [32 x i8] c"Digite el numero de elementos:\0A\00"
@.str.2 = [3 x i8] c"%d\00"
@.str.3 = [22 x i8] c"Digite %d elementos:\0A\00"
@.str.4 = [25 x i8] c"El promedio es : %4.2f \0A\00"
@.str.5 = [25 x i8] c"El mayor es : %4.0f \0A\00"
@.str.6 = [25 x i8] c"El menor es : %4.0f \0A\00"
@.str.7 = [25 x i8] c"Los numeros pares son: \0A\00"
@.str.8 = [5 x i8] c"%d ,\00"
@.str.9 = [2 x i8] c"\0A\00"
@.str.10 = [23 x i8] c"Los numeros nones son:\00"
define i32 @main() {
%1 = alloca i32
%2 = alloca float
%3 = alloca float
%4 = alloca float
%5 = alloca float
%6 = alloca float
%7 = alloca float
%8 = alloca i32
%9 = alloca i32
%10 = alloca i32
%11 = alloca i8*
%12 = alloca i64
store i32 0, i32* %1
store float 0.000000e+00, float* %2
%13 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([4 x i8], [4 x i8]* @.str, i64 0, i64 0))
%14 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([32 x i8], [32 x i8]* @.str.1, i64 0, i64 0))
%15 = call i32 @scanf(i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str.2, i64 0, i64 0), i32* %8)
%16 = load i32, i32* %8
%17 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([22 x i8], [22 x i8]* @.str.3, i64 0, i64 0), i32 %16)
%18 = load i32, i32* %8
%19 = zext i32 %18 to i64
%20 = call i8* @llvm.stacksave()
store i8* %20, i8** %11
%21 = alloca i32, i64 %19
store i64 %19, i64* %12
store i32 0, i32* %9
br label %22
22: ; preds = %76, %0
%23 = load i32, i32* %9
%24 = load i32, i32* %8
%25 = icmp slt i32 %23, %24
br i1 %25, label %26, label %79
26: ; preds = %22
%27 = load i32, i32* %9
%28 = sext i32 %27 to i64
%29 = getelementptr inbounds i32, i32* %21, i64 %28
%30 = call i32 @scanf(i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str.2, i64 0, i64 0), i32* %29)
%31 = load i32, i32* %9
%32 = sext i32 %31 to i64
%33 = getelementptr inbounds i32, i32* %21, i64 %32
%34 = load i32, i32* %33
%35 = sitofp i32 %34 to float
%36 = load float, float* %2
%37 = fadd float %36, %35
store float %37, float* %2
%38 = load i32, i32* %9
%39 = icmp eq i32 %38, 0
br i1 %39, label %40, label %47
40: ; preds = %26
%41 = getelementptr inbounds i32, i32* %21, i64 0
%42 = load i32, i32* %41
%43 = sitofp i32 %42 to float
store float %43, float* %3
%44 = getelementptr inbounds i32, i32* %21, i64 0
%45 = load i32, i32* %44
%46 = sitofp i32 %45 to float
store float %46, float* %4
br label %47
47: ; preds = %40, %26
%48 = load i32, i32* %9
%49 = sext i32 %48 to i64
%50 = getelementptr inbounds i32, i32* %21, i64 %49
%51 = load i32, i32* %50
%52 = sitofp i32 %51 to float
%53 = load float, float* %3
%54 = fcmp ogt float %52, %53
br i1 %54, label %55, label %61
55: ; preds = %47
%56 = load i32, i32* %9
%57 = sext i32 %56 to i64
%58 = getelementptr inbounds i32, i32* %21, i64 %57
%59 = load i32, i32* %58
%60 = sitofp i32 %59 to float
store float %60, float* %3
br label %61
61: ; preds = %55, %47
%62 = load i32, i32* %9
%63 = sext i32 %62 to i64
%64 = getelementptr inbounds i32, i32* %21, i64 %63
%65 = load i32, i32* %64
%66 = sitofp i32 %65 to float
%67 = load float, float* %4
%68 = fcmp olt float %66, %67
br i1 %68, label %69, label %75
69: ; preds = %61
%70 = load i32, i32* %9
%71 = sext i32 %70 to i64
%72 = getelementptr inbounds i32, i32* %21, i64 %71
%73 = load i32, i32* %72
%74 = sitofp i32 %73 to float
store float %74, float* %4
br label %75
75: ; preds = %69, %61
br label %76
76: ; preds = %75
%77 = load i32, i32* %9
%78 = add nsw i32 %77, 1
store i32 %78, i32* %9
br label %22
79: ; preds = %22
%80 = load float, float* %2
%81 = load i32, i32* %8
%82 = sitofp i32 %81 to float
%83 = fdiv float %80, %82
store float %83, float* %6
%84 = load float, float* %6
%85 = fpext float %84 to double
%86 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([25 x i8], [25 x i8]* @.str.4, i64 0, i64 0), double %85)
%87 = load float, float* %3
%88 = fpext float %87 to double
%89 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([25 x i8], [25 x i8]* @.str.5, i64 0, i64 0), double %88)
%90 = load float, float* %4
%91 = fpext float %90 to double
%92 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([25 x i8], [25 x i8]* @.str.6, i64 0, i64 0), double %91)
%93 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([25 x i8], [25 x i8]* @.str.7, i64 0, i64 0))
store i32 0, i32* %10
br label %94
94: ; preds = %113, %79
%95 = load i32, i32* %10
%96 = load i32, i32* %8
%97 = icmp slt i32 %95, %96
br i1 %97, label %98, label %116
98: ; preds = %94
%99 = load i32, i32* %10
%100 = sext i32 %99 to i64
%101 = getelementptr inbounds i32, i32* %21, i64 %100
%102 = load i32, i32* %101
%103 = srem i32 %102, 2
%104 = icmp eq i32 %103, 0
br i1 %104, label %105, label %112
105: ; preds = %98
%106 = load i32, i32* %10
%107 = sext i32 %106 to i64
%108 = getelementptr inbounds i32, i32* %21, i64 %107
%109 = load i32, i32* %108
%110 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([5 x i8], [5 x i8]* @.str.8, i64 0, i64 0), i32 %109)
%111 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([2 x i8], [2 x i8]* @.str.9, i64 0, i64 0))
br label %112
112: ; preds = %105, %98
br label %113
113: ; preds = %112
%114 = load i32, i32* %10
%115 = add nsw i32 %114, 1
store i32 %115, i32* %10
br label %94
116: ; preds = %94
%117 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([23 x i8], [23 x i8]* @.str.10, i64 0, i64 0))
store i32 0, i32* %10
br label %118
118: ; preds = %137, %116
%119 = load i32, i32* %10
%120 = load i32, i32* %8
%121 = icmp slt i32 %119, %120
br i1 %121, label %122, label %140
122: ; preds = %118
%123 = load i32, i32* %10
%124 = sext i32 %123 to i64
%125 = getelementptr inbounds i32, i32* %21, i64 %124
%126 = load i32, i32* %125
%127 = srem i32 %126, 2
%128 = icmp ne i32 %127, 0
br i1 %128, label %129, label %136
129: ; preds = %122
%130 = load i32, i32* %10
%131 = sext i32 %130 to i64
%132 = getelementptr inbounds i32, i32* %21, i64 %131
%133 = load i32, i32* %132
%134 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([5 x i8], [5 x i8]* @.str.8, i64 0, i64 0), i32 %133)
%135 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([2 x i8], [2 x i8]* @.str.9, i64 0, i64 0))
br label %136
136: ; preds = %129, %122
br label %137
137: ; preds = %136
%138 = load i32, i32* %10
%139 = add nsw i32 %138, 1
store i32 %139, i32* %10
br label %118
140: ; preds = %118
%141 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([4 x i8], [4 x i8]* @.str, i64 0, i64 0))
store i32 0, i32* %1
%142 = load i8*, i8** %11
%143 = load i32, i32* %1
ret i32 %143
}

LLVM IR (-O2):
@.str.2 = [3 x i8] c"%d\00"
@.str.3 = [22 x i8] c"Digite %d elementos:\0A\00"
@.str.4 = [25 x i8] c"El promedio es : %4.2f \0A\00"
@.str.5 = [25 x i8] c"El mayor es : %4.0f \0A\00"
@.str.6 = [25 x i8] c"El menor es : %4.0f \0A\00"
@.str.8 = [5 x i8] c"%d ,\00"
@.str.10 = [23 x i8] c"Los numeros nones son:\00"
@str.11 = [31 x i8] c"Digite el numero de elementos:\00"
@str.12 = [24 x i8] c"Los numeros pares son: \00"
@str.13 = [3 x i8] c"\0A\0A\00"
define i32 @main() {
%1 = alloca i32
%2 = bitcast i32* %1 to i8*
%3 = tail call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([3 x i8], [3 x i8]* @str.13, i64 0, i64 0))
%4 = tail call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([31 x i8], [31 x i8]* @str.11, i64 0, i64 0))
%5 = call i32 @scanf(i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str.2, i64 0, i64 0), i32* %1)
%6 = load i32, i32* %1
%7 = call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([22 x i8], [22 x i8]* @.str.3, i64 0, i64 0), i32 %6)
%8 = load i32, i32* %1
%9 = zext i32 %8 to i64
%10 = call i8* @llvm.stacksave()
%11 = alloca i32, i64 %9
%12 = load i32, i32* %1
%13 = icmp sgt i32 %12, 0
br i1 %13, label %14, label %38
14: ; preds = %0
%15 = call i32 @scanf(i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str.2, i64 0, i64 0), i32* %11)
%16 = load i32, i32* %11
%17 = sitofp i32 %16 to float
%18 = load i32, i32* %1
%19 = icmp sgt i32 %18, 1
br i1 %19, label %20, label %38
20: ; preds = %14, %20
%21 = phi i64 [ %34, %20 ], [ 1, %14 ]
%22 = phi float [ %29, %20 ], [ %17, %14 ]
%23 = phi float [ %31, %20 ], [ %17, %14 ]
%24 = phi float [ %33, %20 ], [ %17, %14 ]
%25 = getelementptr inbounds i32, i32* %11, i64 %21
%26 = call i32 @scanf(i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str.2, i64 0, i64 0), i32* %25)
%27 = load i32, i32* %25
%28 = sitofp i32 %27 to float
%29 = fadd float %22, %28
%30 = fcmp olt float %23, %28
%31 = select i1 %30, float %28, float %23
%32 = fcmp ogt float %24, %28
%33 = select i1 %32, float %28, float %24
%34 = add nuw nsw i64 %21, 1
%35 = load i32, i32* %1
%36 = sext i32 %35 to i64
%37 = icmp slt i64 %34, %36
br i1 %37, label %20, label %38
38: ; preds = %20, %14, %0
%39 = phi float [ undef, %0 ], [ %17, %14 ], [ %33, %20 ]
%40 = phi float [ undef, %0 ], [ %17, %14 ], [ %31, %20 ]
%41 = phi float [ 0.000000e+00, %0 ], [ %17, %14 ], [ %29, %20 ]
%42 = phi i32 [ %12, %0 ], [ %18, %14 ], [ %35, %20 ]
%43 = sitofp i32 %42 to float
%44 = fdiv float %41, %43
%45 = fpext float %44 to double
%46 = call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([25 x i8], [25 x i8]* @.str.4, i64 0, i64 0), double %45)
%47 = fpext float %40 to double
%48 = call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([25 x i8], [25 x i8]* @.str.5, i64 0, i64 0), double %47)
%49 = fpext float %39 to double
%50 = call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([25 x i8], [25 x i8]* @.str.6, i64 0, i64 0), double %49)
%51 = call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([24 x i8], [24 x i8]* @str.12, i64 0, i64 0))
%52 = load i32, i32* %1
%53 = icmp sgt i32 %52, 0
br i1 %53, label %54, label %70
54: ; preds = %38, %65
%55 = phi i32 [ %66, %65 ], [ %52, %38 ]
%56 = phi i64 [ %67, %65 ], [ 0, %38 ]
%57 = getelementptr inbounds i32, i32* %11, i64 %56
%58 = load i32, i32* %57
%59 = and i32 %58, 1
%60 = icmp eq i32 %59, 0
br i1 %60, label %61, label %65
61: ; preds = %54
%62 = call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([5 x i8], [5 x i8]* @.str.8, i64 0, i64 0), i32 %58)
%63 = call i32 @putchar(i32 10)
%64 = load i32, i32* %1
br label %65
65: ; preds = %54, %61
%66 = phi i32 [ %55, %54 ], [ %64, %61 ]
%67 = add nuw nsw i64 %56, 1
%68 = sext i32 %66 to i64
%69 = icmp slt i64 %67, %68
br i1 %69, label %54, label %70
70: ; preds = %65, %38
%71 = call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([23 x i8], [23 x i8]* @.str.10, i64 0, i64 0))
%72 = load i32, i32* %1
%73 = icmp sgt i32 %72, 0
br i1 %73, label %74, label %90
74: ; preds = %70, %85
%75 = phi i32 [ %86, %85 ], [ %72, %70 ]
%76 = phi i64 [ %87, %85 ], [ 0, %70 ]
%77 = getelementptr inbounds i32, i32* %11, i64 %76
%78 = load i32, i32* %77
%79 = and i32 %78, 1
%80 = icmp eq i32 %79, 0
br i1 %80, label %85, label %81
81: ; preds = %74
%82 = call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([5 x i8], [5 x i8]* @.str.8, i64 0, i64 0), i32 %78)
%83 = call i32 @putchar(i32 10)
%84 = load i32, i32* %1
br label %85
85: ; preds = %74, %81
%86 = phi i32 [ %75, %74 ], [ %84, %81 ]
%87 = add nuw nsw i64 %76, 1
%88 = sext i32 %86 to i64
%89 = icmp slt i64 %87, %88
br i1 %89, label %74, label %90
90: ; preds = %85, %70
%91 = call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([3 x i8], [3 x i8]* @str.13, i64 0, i64 0))
ret i32 0
}