#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() {
  srand(time(0));
  int calis[2][3][10];
  float promedios_salon[2][3];
  float promedios_colegio[2] = {0};
  float p_actual = 0, p_total = 0;
  int x;
  for (int i = 0; i < 2; i++) {
    for (int j = 0; j < 3; j++) {
      p_actual = 0;
      for (int k = 0; k < 10; k++) {
        x = (rand() % 6) + 5;
        p_actual += x;
        p_total += x;
        promedios_colegio[i] += x;
        calis[i][j][k] = x;
      }
      promedios_salon[i][j] = p_actual / 10;
    }
    promedios_colegio[i] /= 30;
  }
  p_total /= 60;
  for (int i = 0; i < 2; i++) {
    printf("Calificaciones del colegio %d:\n\t", i + 1);
    printf("Promedio del colegio: %.2f\n\t", promedios_colegio[i]);
    for (int j = 0; j < 3; j++) {
      printf("Calificaciones del grupo %d:\n\t\t", j + 1);
      printf("Promedio del grupo: %.2f\n\t\t", promedios_salon[i][j]);
      for (int k = 0; k < 10; k++) {
        printf("%d%s", calis[i][j][k], (k == 9) ? "\n\n" : ", ");
      }
      printf("\t");
    }
    printf("\n");
  }
  printf("Promedio de todos los alumnos: %.2f\n", p_total);
  return 0;
}


x86 assembly (clang, -O0):
<main>:
push   %rbp
mov    %rsp,%rbp
sub    $0x150,%rsp
movl   $0x0,-0x4(%rbp)
xor    %edi,%edi
call   1060 <time@plt>
mov    %eax,%edi
call   1050 <srand@plt>
lea    -0x128(%rbp),%rdi
xor    %esi,%esi
mov    $0x8,%edx
call   1040 <memset@plt>
xorps  %xmm0,%xmm0
movss  %xmm0,-0x12c(%rbp)
ff
xorps  %xmm0,%xmm0
movss  %xmm0,-0x130(%rbp)
ff
movl   $0x0,-0x138(%rbp)
cmpl   $0x2,-0x138(%rbp)
jge    131b <main+0x1cb>
movl   $0x0,-0x13c(%rbp)
cmpl   $0x3,-0x13c(%rbp)
jge    12e2 <main+0x192>
xorps  %xmm0,%xmm0
movss  %xmm0,-0x12c(%rbp)
ff
movl   $0x0,-0x140(%rbp)
cmpl   $0xa,-0x140(%rbp)
jge    1299 <main+0x149>
mov    $0x0,%al
call   1070 <rand@plt>
mov    $0x6,%ecx
cltd
idiv   %ecx
add    $0x5,%edx
mov    %edx,-0x134(%rbp)
cvtsi2ssl -0x134(%rbp),%xmm0
ff
addss  -0x12c(%rbp),%xmm0
ff
movss  %xmm0,-0x12c(%rbp)
ff
cvtsi2ssl -0x134(%rbp),%xmm0
ff
addss  -0x130(%rbp),%xmm0
ff
movss  %xmm0,-0x130(%rbp)
ff
cvtsi2ssl -0x134(%rbp),%xmm0
ff
movslq -0x138(%rbp),%rax
addss  -0x128(%rbp,%rax,4),%xmm0
ff ff
movss  %xmm0,-0x128(%rbp,%rax,4)
ff ff
mov    -0x134(%rbp),%edx
movslq -0x138(%rbp),%rcx
lea    -0x100(%rbp),%rax
imul   $0x78,%rcx,%rcx
add    %rcx,%rax
movslq -0x13c(%rbp),%rcx
imul   $0x28,%rcx,%rcx
add    %rcx,%rax
movslq -0x140(%rbp),%rcx
mov    %edx,(%rax,%rcx,4)
mov    -0x140(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0x140(%rbp)
jmp    11dc <main+0x8c>
movss  -0x12c(%rbp),%xmm0
ff
movss  0xd5f(%rip),%xmm1
divss  %xmm1,%xmm0
movslq -0x138(%rbp),%rcx
lea    -0x120(%rbp),%rax
imul   $0xc,%rcx,%rcx
add    %rcx,%rax
movslq -0x13c(%rbp),%rcx
movss  %xmm0,(%rax,%rcx,4)
mov    -0x13c(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0x13c(%rbp)
jmp    11ba <main+0x6a>
movslq -0x138(%rbp),%rax
movss  -0x128(%rbp,%rax,4),%xmm0
ff ff
movss  0xd0a(%rip),%xmm1
divss  %xmm1,%xmm0
movss  %xmm0,-0x128(%rbp,%rax,4)
ff ff
mov    -0x138(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0x138(%rbp)
jmp    11a3 <main+0x53>
movss  -0x130(%rbp),%xmm0
ff
movss  0xcd5(%rip),%xmm1
divss  %xmm1,%xmm0
movss  %xmm0,-0x130(%rbp)
ff
movl   $0x0,-0x144(%rbp)
cmpl   $0x2,-0x144(%rbp)
jge    14ad <main+0x35d>
mov    -0x144(%rbp),%esi
add    $0x1,%esi
lea    0xcae(%rip),%rdi
mov    $0x0,%al
call   1030 <printf@plt>
movslq -0x144(%rbp),%rax
movss  -0x128(%rbp,%rax,4),%xmm0
ff ff
cvtss2sd %xmm0,%xmm0
lea    0xcad(%rip),%rdi
mov    $0x1,%al
call   1030 <printf@plt>
movl   $0x0,-0x148(%rbp)
cmpl   $0x3,-0x148(%rbp)
jge    148b <main+0x33b>
mov    -0x148(%rbp),%esi
add    $0x1,%esi
lea    0xc9c(%rip),%rdi
mov    $0x0,%al
call   1030 <printf@plt>
movslq -0x144(%rbp),%rcx
lea    -0x120(%rbp),%rax
imul   $0xc,%rcx,%rcx
add    %rcx,%rax
movslq -0x148(%rbp),%rcx
movss  (%rax,%rcx,4),%xmm0
cvtss2sd %xmm0,%xmm0
lea    0xc89(%rip),%rdi
mov    $0x1,%al
call   1030 <printf@plt>
movl   $0x0,-0x14c(%rbp)
cmpl   $0xa,-0x14c(%rbp)
jge    1469 <main+0x319>
movslq -0x144(%rbp),%rcx
lea    -0x100(%rbp),%rax
imul   $0x78,%rcx,%rcx
add    %rcx,%rax
movslq -0x148(%rbp),%rcx
imul   $0x28,%rcx,%rcx
add    %rcx,%rax
movslq -0x14c(%rbp),%rcx
mov    (%rax,%rcx,4),%esi
mov    -0x14c(%rbp),%ecx
lea    0xc55(%rip),%rdx
lea    0xc4b(%rip),%rax
cmp    $0x9,%ecx
cmove  %rax,%rdx
lea    0xc38(%rip),%rdi
mov    $0x0,%al
call   1030 <printf@plt>
mov    -0x14c(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0x14c(%rbp)
jmp    13f2 <main+0x2a2>
lea    0xbf8(%rip),%rdi
mov    $0x0,%al
call   1030 <printf@plt>
mov    -0x148(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0x148(%rbp)
jmp    1391 <main+0x241>
lea    0xbfa(%rip),%rdi
mov    $0x0,%al
call   1030 <printf@plt>
mov    -0x144(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0x144(%rbp)
jmp    1341 <main+0x1f1>
movss  -0x130(%rbp),%xmm0
ff
cvtss2sd %xmm0,%xmm0
lea    0xbd1(%rip),%rdi
mov    $0x1,%al
call   1030 <printf@plt>
xor    %eax,%eax
add    $0x150,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<main>:
push   %rbp
push   %r15
push   %r14
push   %r13
push   %r12
push   %rbx
sub    $0x138,%rsp
xor    %edi,%edi
call   1060 <time@plt>
mov    %eax,%edi
call   1050 <srand@plt>
movq   $0x0,0x10(%rsp)
xorps  %xmm0,%xmm0
movss  %xmm0,0x8(%rsp)
mov    $0x1,%r12b
xor    %ebp,%ebp
cs nopw 0x0(%rax,%rax,1)
imul   $0x78,%rbp,%r15
lea    (%rsp,%r15,1),%r14
add    $0x40,%r14
xor    %ebx,%ebx
xorps  %xmm2,%xmm2
movss  0x8(%rsp),%xmm1
nopw   0x0(%rax,%rax,1)
movss  %xmm2,0xc(%rsp)
movss  %xmm1,0x8(%rsp)
xor    %eax,%eax
call   1070 <rand@plt>
movss  0xc(%rsp),%xmm2
movss  0x8(%rsp),%xmm1
cltq
imul   $0x2aaaaaab,%rax,%rcx
mov    %rcx,%rdx
shr    $0x3f,%rdx
shr    $0x20,%rcx
add    %edx,%ecx
add    %ecx,%ecx
lea    (%rcx,%rcx,2),%ecx
neg    %ecx
add    %ecx,%eax
add    $0x5,%eax
xorps  %xmm0,%xmm0
cvtsi2ss %eax,%xmm0
addss  %xmm0,%xmm2
addss  %xmm0,%xmm1
addss  0x10(%rsp,%rbp,4),%xmm0
movss  %xmm0,0x10(%rsp,%rbp,4)
mov    %eax,(%r14,%rbx,4)
add    $0x1,%rbx
cmp    $0xa,%rbx
jne    11b0 <main+0x60>
divss  0xdde(%rip),%xmm2
lea    0x0(,%rbp,2),%r13
add    %rbp,%r13
movss  %xmm2,0x20(%rsp,%r13,4)
lea    0x68(%rsp),%rax
lea    (%rax,%r15,1),%r14
xorps  %xmm3,%xmm3
xor    %ebx,%ebx
cs nopw 0x0(%rax,%rax,1)
nopl   0x0(%rax)
movss  %xmm3,0x1c(%rsp)
movss  %xmm0,0xc(%rsp)
movss  %xmm1,0x8(%rsp)
xor    %eax,%eax
call   1070 <rand@plt>
movss  0x1c(%rsp),%xmm3
movss  0x8(%rsp),%xmm1
cltq
imul   $0x2aaaaaab,%rax,%rcx
mov    %rcx,%rdx
shr    $0x3f,%rdx
shr    $0x20,%rcx
add    %edx,%ecx
add    %ecx,%ecx
lea    (%rcx,%rcx,2),%ecx
neg    %ecx
add    %ecx,%eax
add    $0x5,%eax
xorps  %xmm0,%xmm0
cvtsi2ss %eax,%xmm0
addss  %xmm0,%xmm3
addss  %xmm0,%xmm1
movss  0xc(%rsp),%xmm2
addss  %xmm0,%xmm2
movss  %xmm2,0xc(%rsp)
movss  0xc(%rsp),%xmm0
movss  %xmm0,0x10(%rsp,%rbp,4)
mov    %eax,(%r14,%rbx,4)
add    $0x1,%rbx
cmp    $0xa,%rbx
jne    1250 <main+0x100>
divss  0xd28(%rip),%xmm3
movss  %xmm3,0x24(%rsp,%r13,4)
lea    0x90(%rsp),%rax
add    %rax,%r15
xorps  %xmm3,%xmm3
xor    %ebx,%ebx
nop
movss  %xmm3,0x1c(%rsp)
movss  %xmm0,0xc(%rsp)
movss  %xmm1,0x8(%rsp)
xor    %eax,%eax
call   1070 <rand@plt>
movss  0x1c(%rsp),%xmm3
movss  0x8(%rsp),%xmm1
cltq
imul   $0x2aaaaaab,%rax,%rcx
mov    %rcx,%rdx
shr    $0x3f,%rdx
shr    $0x20,%rcx
add    %edx,%ecx
add    %ecx,%ecx
lea    (%rcx,%rcx,2),%ecx
neg    %ecx
add    %ecx,%eax
add    $0x5,%eax
xorps  %xmm0,%xmm0
cvtsi2ss %eax,%xmm0
addss  %xmm0,%xmm3
addss  %xmm0,%xmm1
movss  0xc(%rsp),%xmm2
addss  %xmm0,%xmm2
movss  %xmm2,0xc(%rsp)
movss  0xc(%rsp),%xmm0
movss  %xmm0,0x10(%rsp,%rbp,4)
mov    %eax,(%r15,%rbx,4)
add    $0x1,%rbx
cmp    $0xa,%rbx
jne    12f0 <main+0x1a0>
movss  %xmm1,0x8(%rsp)
divss  0xc82(%rip),%xmm3
movss  %xmm3,0x28(%rsp,%r13,4)
divss  0xc77(%rip),%xmm0
movss  %xmm0,0x10(%rsp,%rbp,4)
mov    $0x1,%ebp
test   $0x1,%r12b
mov    $0x0,%r12d
jne    1190 <main+0x40>
lea    0xc5d(%rip),%rdi
mov    $0x1,%esi
xor    %eax,%eax
call   1040 <printf@plt>
movss  0x10(%rsp),%xmm0
cvtss2sd %xmm0,%xmm0
lea    0xc61(%rip),%rbp
mov    %rbp,%rdi
mov    $0x1,%al
call   1040 <printf@plt>
lea    0xc6d(%rip),%r15
mov    %r15,%rdi
mov    $0x1,%esi
xor    %eax,%eax
call   1040 <printf@plt>
movss  0x20(%rsp),%xmm0
cvtss2sd %xmm0,%xmm0
lea    0xc6d(%rip),%r12
mov    %r12,%rdi
mov    $0x1,%al
call   1040 <printf@plt>
mov    0x40(%rsp),%esi
lea    0xc74(%rip),%rbx
lea    0xc75(%rip),%r14
mov    %rbx,%rdi
mov    %r14,%rdx
xor    %eax,%eax
call   1040 <printf@plt>
mov    0x44(%rsp),%esi
mov    %rbx,%rdi
mov    %r14,%rdx
xor    %eax,%eax
call   1040 <printf@plt>
mov    0x48(%rsp),%esi
mov    %rbx,%rdi
mov    %r14,%rdx
xor    %eax,%eax
call   1040 <printf@plt>
mov    0x4c(%rsp),%esi
mov    %rbx,%rdi
mov    %r14,%rdx
xor    %eax,%eax
call   1040 <printf@plt>
mov    0x50(%rsp),%esi
mov    %rbx,%rdi
mov    %r14,%rdx
xor    %eax,%eax
call   1040 <printf@plt>
mov    0x54(%rsp),%esi
mov    %rbx,%rdi
mov    %r14,%rdx
xor    %eax,%eax
call   1040 <printf@plt>
mov    0x58(%rsp),%esi
mov    %rbx,%rdi
mov    %r14,%rdx
xor    %eax,%eax
call   1040 <printf@plt>
mov    0x5c(%rsp),%esi
mov    %rbx,%rdi
mov    %r14,%rdx
xor    %eax,%eax
call   1040 <printf@plt>
mov    0x60(%rsp),%esi
mov    %rbx,%rdi
mov    %r14,%rdx
xor    %eax,%eax
call   1040 <printf@plt>
mov    0x64(%rsp),%esi
lea    0xbd2(%rip),%r13
mov    %rbx,%rdi
mov    %r13,%rdx
xor    %eax,%eax
call   1040 <printf@plt>
mov    $0x9,%edi
call   1030 <putchar@plt>
mov    %r15,%rdi
mov    $0x2,%esi
xor    %eax,%eax
call   1040 <printf@plt>
movss  0x24(%rsp),%xmm0
cvtss2sd %xmm0,%xmm0
mov    %r12,%rdi
mov    $0x1,%al
call   1040 <printf@plt>
mov    0x68(%rsp),%esi
mov    %rbx,%rdi
mov    %r14,%rdx
xor    %eax,%eax
call   1040 <printf@plt>
mov    0x6c(%rsp),%esi
mov    %rbx,%rdi
mov    %r14,%rdx
xor    %eax,%eax
call   1040 <printf@plt>
mov    0x70(%rsp),%esi
mov    %rbx,%rdi
mov    %r14,%rdx
xor    %eax,%eax
call   1040 <printf@plt>
mov    0x74(%rsp),%esi
mov    %rbx,%rdi
mov    %r14,%rdx
xor    %eax,%eax
call   1040 <printf@plt>
mov    0x78(%rsp),%esi
mov    %rbx,%rdi
mov    %r14,%rdx
xor    %eax,%eax
call   1040 <printf@plt>
mov    0x7c(%rsp),%esi
mov    %rbx,%rdi
mov    %r14,%rdx
xor    %eax,%eax
call   1040 <printf@plt>
mov    0x80(%rsp),%esi
mov    %rbx,%rdi
mov    %r14,%rdx
xor    %eax,%eax
call   1040 <printf@plt>
mov    0x84(%rsp),%esi
mov    %rbx,%rdi
mov    %r14,%rdx
xor    %eax,%eax
call   1040 <printf@plt>
mov    0x88(%rsp),%esi
mov    %rbx,%rdi
mov    %r14,%rdx
xor    %eax,%eax
call   1040 <printf@plt>
mov    0x8c(%rsp),%esi
mov    %rbx,%rdi
mov    %r13,%rdx
xor    %eax,%eax
call   1040 <printf@plt>
mov    $0x9,%edi
call   1030 <putchar@plt>
mov    %r15,%rdi
mov    $0x3,%esi
xor    %eax,%eax
call   1040 <printf@plt>
movss  0x28(%rsp),%xmm0
cvtss2sd %xmm0,%xmm0
mov    %r12,%rdi
mov    $0x1,%al
call   1040 <printf@plt>
mov    0x90(%rsp),%esi
mov    %rbx,%rdi
mov    %r14,%rdx
xor    %eax,%eax
call   1040 <printf@plt>
mov    0x94(%rsp),%esi
mov    %rbx,%rdi
mov    %r14,%rdx
xor    %eax,%eax
call   1040 <printf@plt>
mov    0x98(%rsp),%esi
mov    %rbx,%rdi
mov    %r14,%rdx
xor    %eax,%eax
call   1040 <printf@plt>
mov    0x9c(%rsp),%esi
mov    %rbx,%rdi
mov    %r14,%rdx
xor    %eax,%eax
call   1040 <printf@plt>
mov    0xa0(%rsp),%esi
mov    %rbx,%rdi
mov    %r14,%rdx
xor    %eax,%eax
call   1040 <printf@plt>
mov    0xa4(%rsp),%esi
mov    %rbx,%rdi
mov    %r14,%rdx
xor    %eax,%eax
call   1040 <printf@plt>
mov    0xa8(%rsp),%esi
mov    %rbx,%rdi
mov    %r14,%rdx
xor    %eax,%eax
call   1040 <printf@plt>
mov    0xac(%rsp),%esi
mov    %rbx,%rdi
mov    %r14,%rdx
xor    %eax,%eax
call   1040 <printf@plt>
mov    0xb0(%rsp),%esi
mov    %rbx,%rdi
mov    %r14,%rdx
xor    %eax,%eax
call   1040 <printf@plt>
mov    0xb4(%rsp),%esi
mov    %rbx,%rdi
mov    %r13,%rdx
xor    %eax,%eax
call   1040 <printf@plt>
mov    $0x9,%edi
call   1030 <putchar@plt>
mov    $0xa,%edi
call   1030 <putchar@plt>
lea    0x953(%rip),%rdi
mov    $0x2,%esi
xor    %eax,%eax
call   1040 <printf@plt>
movss  0x14(%rsp),%xmm0
cvtss2sd %xmm0,%xmm0
mov    %rbp,%rdi
mov    $0x1,%al
call   1040 <printf@plt>
mov    %r15,%rdi
mov    $0x1,%esi
xor    %eax,%eax
call   1040 <printf@plt>
movss  0x2c(%rsp),%xmm0
cvtss2sd %xmm0,%xmm0
mov    %r12,%rdi
mov    $0x1,%al
call   1040 <printf@plt>
mov    0xb8(%rsp),%esi
mov    %rbx,%rdi
mov    %r14,%rdx
xor    %eax,%eax
call   1040 <printf@plt>
mov    0xbc(%rsp),%esi
mov    %rbx,%rdi
mov    %r14,%rdx
xor    %eax,%eax
call   1040 <printf@plt>
mov    0xc0(%rsp),%esi
mov    %rbx,%rdi
mov    %r14,%rdx
xor    %eax,%eax
call   1040 <printf@plt>
mov    0xc4(%rsp),%esi
mov    %rbx,%rdi
mov    %r14,%rdx
xor    %eax,%eax
call   1040 <printf@plt>
mov    0xc8(%rsp),%esi
mov    %rbx,%rdi
mov    %r14,%rdx
xor    %eax,%eax
call   1040 <printf@plt>
mov    0xcc(%rsp),%esi
mov    %rbx,%rdi
mov    %r14,%rdx
xor    %eax,%eax
call   1040 <printf@plt>
mov    0xd0(%rsp),%esi
mov    %rbx,%rdi
mov    %r14,%rdx
xor    %eax,%eax
call   1040 <printf@plt>
mov    0xd4(%rsp),%esi
mov    %rbx,%rdi
mov    %r14,%rdx
xor    %eax,%eax
call   1040 <printf@plt>
mov    0xd8(%rsp),%esi
mov    %rbx,%rdi
mov    %r14,%rdx
xor    %eax,%eax
call   1040 <printf@plt>
mov    0xdc(%rsp),%esi
mov    %rbx,%rdi
mov    %r13,%rdx
xor    %eax,%eax
call   1040 <printf@plt>
mov    $0x9,%edi
call   1030 <putchar@plt>
mov    %r15,%rdi
mov    $0x2,%esi
xor    %eax,%eax
call   1040 <printf@plt>
movss  0x30(%rsp),%xmm0
cvtss2sd %xmm0,%xmm0
mov    %r12,%rdi
mov    $0x1,%al
call   1040 <printf@plt>
mov    0xe0(%rsp),%esi
mov    %rbx,%rdi
mov    %r14,%rdx
xor    %eax,%eax
call   1040 <printf@plt>
mov    0xe4(%rsp),%esi
mov    %rbx,%rdi
mov    %r14,%rdx
xor    %eax,%eax
call   1040 <printf@plt>
mov    0xe8(%rsp),%esi
mov    %rbx,%rdi
mov    %r14,%rdx
xor    %eax,%eax
call   1040 <printf@plt>
mov    0xec(%rsp),%esi
mov    %rbx,%rdi
mov    %r14,%rdx
xor    %eax,%eax
call   1040 <printf@plt>
mov    0xf0(%rsp),%esi
mov    %rbx,%rdi
mov    %r14,%rdx
xor    %eax,%eax
call   1040 <printf@plt>
mov    0xf4(%rsp),%esi
mov    %rbx,%rdi
mov    %r14,%rdx
xor    %eax,%eax
call   1040 <printf@plt>
mov    0xf8(%rsp),%esi
mov    %rbx,%rdi
mov    %r14,%rdx
xor    %eax,%eax
call   1040 <printf@plt>
mov    0xfc(%rsp),%esi
mov    %rbx,%rdi
mov    %r14,%rdx
xor    %eax,%eax
call   1040 <printf@plt>
mov    0x100(%rsp),%esi
mov    %rbx,%rdi
mov    %r14,%rdx
xor    %eax,%eax
call   1040 <printf@plt>
mov    0x104(%rsp),%esi
mov    %rbx,%rdi
mov    %r13,%rdx
xor    %eax,%eax
call   1040 <printf@plt>
mov    $0x9,%edi
call   1030 <putchar@plt>
mov    %r15,%rdi
mov    $0x3,%esi
xor    %eax,%eax
call   1040 <printf@plt>
movss  0x34(%rsp),%xmm0
cvtss2sd %xmm0,%xmm0
mov    %r12,%rdi
mov    $0x1,%al
call   1040 <printf@plt>
mov    0x108(%rsp),%esi
mov    %rbx,%rdi
mov    %r14,%rdx
xor    %eax,%eax
call   1040 <printf@plt>
mov    0x10c(%rsp),%esi
mov    %rbx,%rdi
mov    %r14,%rdx
xor    %eax,%eax
call   1040 <printf@plt>
mov    0x110(%rsp),%esi
mov    %rbx,%rdi
mov    %r14,%rdx
xor    %eax,%eax
call   1040 <printf@plt>
mov    0x114(%rsp),%esi
mov    %rbx,%rdi
mov    %r14,%rdx
xor    %eax,%eax
call   1040 <printf@plt>
mov    0x118(%rsp),%esi
mov    %rbx,%rdi
mov    %r14,%rdx
xor    %eax,%eax
call   1040 <printf@plt>
mov    0x11c(%rsp),%esi
mov    %rbx,%rdi
mov    %r14,%rdx
xor    %eax,%eax
call   1040 <printf@plt>
mov    0x120(%rsp),%esi
mov    %rbx,%rdi
mov    %r14,%rdx
xor    %eax,%eax
call   1040 <printf@plt>
mov    0x124(%rsp),%esi
mov    %rbx,%rdi
mov    %r14,%rdx
xor    %eax,%eax
call   1040 <printf@plt>
mov    0x128(%rsp),%esi
mov    %rbx,%rdi
mov    %r14,%rdx
xor    %eax,%eax
call   1040 <printf@plt>
mov    0x12c(%rsp),%esi
mov    %rbx,%rdi
mov    %r13,%rdx
xor    %eax,%eax
call   1040 <printf@plt>
mov    $0x9,%edi
call   1030 <putchar@plt>
mov    $0xa,%edi
call   1030 <putchar@plt>
movss  0x8(%rsp),%xmm0
divss  0x638(%rip),%xmm0
cvtss2sd %xmm0,%xmm0
lea    0x6b6(%rip),%rdi
mov    $0x1,%al
call   1040 <printf@plt>
xor    %eax,%eax
add    $0x138,%rsp
pop    %rbx
pop    %r12
pop    %r13
pop    %r14
pop    %r15
pop    %rbp
ret

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

LLVM IR (-O2):
@.str = [33 x i8] c"Calificaciones del colegio %d:\0A\09\00"
@.str.1 = [29 x i8] c"Promedio del colegio: %.2f\0A\09\00"
@.str.2 = [32 x i8] c"Calificaciones del grupo %d:\0A\09\09\00"
@.str.3 = [28 x i8] c"Promedio del grupo: %.2f\0A\09\09\00"
@.str.4 = [5 x i8] c"%d%s\00"
@.str.5 = [3 x i8] c"\0A\0A\00"
@.str.6 = [3 x i8] c", \00"
@.str.9 = [37 x i8] c"Promedio de todos los alumnos: %.2f\0A\00"
define i32 @main() {
%1 = alloca [2 x [3 x [10 x i32]]]
%2 = alloca [2 x [3 x float]]
%3 = alloca i64
%4 = bitcast i64* %3 to [2 x float]*
%5 = tail call i32 @time(i32 0)
%6 = tail call i32 @srand(i32 %5)
%7 = bitcast [2 x [3 x [10 x i32]]]* %1 to i8*
%8 = bitcast [2 x [3 x float]]* %2 to i8*
%9 = bitcast i64* %3 to i8*
store i64 0, i64* %3
br label %10
10: ; preds = %0, %283
%11 = phi i1 [ true, %0 ], [ false, %283 ]
%12 = phi i64 [ 0, %0 ], [ 1, %283 ]
%13 = phi float [ 0.000000e+00, %0 ], [ %278, %283 ]
%14 = getelementptr inbounds [2 x float], [2 x float]* %4, i64 0, i64 %12
br label %287
15: ; preds = %283
%16 = tail call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([33 x i8], [33 x i8]* @.str, i64 0, i64 0), i32 1)
%17 = bitcast i64* %3 to float*
%18 = load float, float* %17
%19 = fpext float %18 to double
%20 = tail call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([29 x i8], [29 x i8]* @.str.1, i64 0, i64 0), double %19)
%21 = tail call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([32 x i8], [32 x i8]* @.str.2, i64 0, i64 0), i32 1)
%22 = getelementptr inbounds [2 x [3 x float]], [2 x [3 x float]]* %2, i64 0, i64 0, i64 0
%23 = load float, float* %22
%24 = fpext float %23 to double
%25 = tail call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([28 x i8], [28 x i8]* @.str.3, i64 0, i64 0), double %24)
%26 = getelementptr inbounds [2 x [3 x [10 x i32]]], [2 x [3 x [10 x i32]]]* %1, i64 0, i64 0, i64 0, i64 0
%27 = load i32, i32* %26
%28 = tail call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([5 x i8], [5 x i8]* @.str.4, i64 0, i64 0), i32 %27, i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str.6, i64 0, i64 0))
%29 = getelementptr inbounds [2 x [3 x [10 x i32]]], [2 x [3 x [10 x i32]]]* %1, i64 0, i64 0, i64 0, i64 1
%30 = load i32, i32* %29
%31 = tail call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([5 x i8], [5 x i8]* @.str.4, i64 0, i64 0), i32 %30, i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str.6, i64 0, i64 0))
%32 = getelementptr inbounds [2 x [3 x [10 x i32]]], [2 x [3 x [10 x i32]]]* %1, i64 0, i64 0, i64 0, i64 2
%33 = load i32, i32* %32
%34 = tail call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([5 x i8], [5 x i8]* @.str.4, i64 0, i64 0), i32 %33, i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str.6, i64 0, i64 0))
%35 = getelementptr inbounds [2 x [3 x [10 x i32]]], [2 x [3 x [10 x i32]]]* %1, i64 0, i64 0, i64 0, i64 3
%36 = load i32, i32* %35
%37 = tail call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([5 x i8], [5 x i8]* @.str.4, i64 0, i64 0), i32 %36, i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str.6, i64 0, i64 0))
%38 = getelementptr inbounds [2 x [3 x [10 x i32]]], [2 x [3 x [10 x i32]]]* %1, i64 0, i64 0, i64 0, i64 4
%39 = load i32, i32* %38
%40 = tail call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([5 x i8], [5 x i8]* @.str.4, i64 0, i64 0), i32 %39, i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str.6, i64 0, i64 0))
%41 = getelementptr inbounds [2 x [3 x [10 x i32]]], [2 x [3 x [10 x i32]]]* %1, i64 0, i64 0, i64 0, i64 5
%42 = load i32, i32* %41
%43 = tail call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([5 x i8], [5 x i8]* @.str.4, i64 0, i64 0), i32 %42, i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str.6, i64 0, i64 0))
%44 = getelementptr inbounds [2 x [3 x [10 x i32]]], [2 x [3 x [10 x i32]]]* %1, i64 0, i64 0, i64 0, i64 6
%45 = load i32, i32* %44
%46 = tail call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([5 x i8], [5 x i8]* @.str.4, i64 0, i64 0), i32 %45, i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str.6, i64 0, i64 0))
%47 = getelementptr inbounds [2 x [3 x [10 x i32]]], [2 x [3 x [10 x i32]]]* %1, i64 0, i64 0, i64 0, i64 7
%48 = load i32, i32* %47
%49 = tail call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([5 x i8], [5 x i8]* @.str.4, i64 0, i64 0), i32 %48, i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str.6, i64 0, i64 0))
%50 = getelementptr inbounds [2 x [3 x [10 x i32]]], [2 x [3 x [10 x i32]]]* %1, i64 0, i64 0, i64 0, i64 8
%51 = load i32, i32* %50
%52 = tail call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([5 x i8], [5 x i8]* @.str.4, i64 0, i64 0), i32 %51, i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str.6, i64 0, i64 0))
%53 = getelementptr inbounds [2 x [3 x [10 x i32]]], [2 x [3 x [10 x i32]]]* %1, i64 0, i64 0, i64 0, i64 9
%54 = load i32, i32* %53
%55 = tail call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([5 x i8], [5 x i8]* @.str.4, i64 0, i64 0), i32 %54, i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str.5, i64 0, i64 0))
%56 = tail call i32 @putchar(i32 9)
%57 = tail call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([32 x i8], [32 x i8]* @.str.2, i64 0, i64 0), i32 2)
%58 = getelementptr inbounds [2 x [3 x float]], [2 x [3 x float]]* %2, i64 0, i64 0, i64 1
%59 = load float, float* %58
%60 = fpext float %59 to double
%61 = tail call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([28 x i8], [28 x i8]* @.str.3, i64 0, i64 0), double %60)
%62 = getelementptr inbounds [2 x [3 x [10 x i32]]], [2 x [3 x [10 x i32]]]* %1, i64 0, i64 0, i64 1, i64 0
%63 = load i32, i32* %62
%64 = tail call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([5 x i8], [5 x i8]* @.str.4, i64 0, i64 0), i32 %63, i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str.6, i64 0, i64 0))
%65 = getelementptr inbounds [2 x [3 x [10 x i32]]], [2 x [3 x [10 x i32]]]* %1, i64 0, i64 0, i64 1, i64 1
%66 = load i32, i32* %65
%67 = tail call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([5 x i8], [5 x i8]* @.str.4, i64 0, i64 0), i32 %66, i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str.6, i64 0, i64 0))
%68 = getelementptr inbounds [2 x [3 x [10 x i32]]], [2 x [3 x [10 x i32]]]* %1, i64 0, i64 0, i64 1, i64 2
%69 = load i32, i32* %68
%70 = tail call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([5 x i8], [5 x i8]* @.str.4, i64 0, i64 0), i32 %69, i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str.6, i64 0, i64 0))
%71 = getelementptr inbounds [2 x [3 x [10 x i32]]], [2 x [3 x [10 x i32]]]* %1, i64 0, i64 0, i64 1, i64 3
%72 = load i32, i32* %71
%73 = tail call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([5 x i8], [5 x i8]* @.str.4, i64 0, i64 0), i32 %72, i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str.6, i64 0, i64 0))
%74 = getelementptr inbounds [2 x [3 x [10 x i32]]], [2 x [3 x [10 x i32]]]* %1, i64 0, i64 0, i64 1, i64 4
%75 = load i32, i32* %74
%76 = tail call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([5 x i8], [5 x i8]* @.str.4, i64 0, i64 0), i32 %75, i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str.6, i64 0, i64 0))
%77 = getelementptr inbounds [2 x [3 x [10 x i32]]], [2 x [3 x [10 x i32]]]* %1, i64 0, i64 0, i64 1, i64 5
%78 = load i32, i32* %77
%79 = tail call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([5 x i8], [5 x i8]* @.str.4, i64 0, i64 0), i32 %78, i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str.6, i64 0, i64 0))
%80 = getelementptr inbounds [2 x [3 x [10 x i32]]], [2 x [3 x [10 x i32]]]* %1, i64 0, i64 0, i64 1, i64 6
%81 = load i32, i32* %80
%82 = tail call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([5 x i8], [5 x i8]* @.str.4, i64 0, i64 0), i32 %81, i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str.6, i64 0, i64 0))
%83 = getelementptr inbounds [2 x [3 x [10 x i32]]], [2 x [3 x [10 x i32]]]* %1, i64 0, i64 0, i64 1, i64 7
%84 = load i32, i32* %83
%85 = tail call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([5 x i8], [5 x i8]* @.str.4, i64 0, i64 0), i32 %84, i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str.6, i64 0, i64 0))
%86 = getelementptr inbounds [2 x [3 x [10 x i32]]], [2 x [3 x [10 x i32]]]* %1, i64 0, i64 0, i64 1, i64 8
%87 = load i32, i32* %86
%88 = tail call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([5 x i8], [5 x i8]* @.str.4, i64 0, i64 0), i32 %87, i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str.6, i64 0, i64 0))
%89 = getelementptr inbounds [2 x [3 x [10 x i32]]], [2 x [3 x [10 x i32]]]* %1, i64 0, i64 0, i64 1, i64 9
%90 = load i32, i32* %89
%91 = tail call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([5 x i8], [5 x i8]* @.str.4, i64 0, i64 0), i32 %90, i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str.5, i64 0, i64 0))
%92 = tail call i32 @putchar(i32 9)
%93 = tail call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([32 x i8], [32 x i8]* @.str.2, i64 0, i64 0), i32 3)
%94 = getelementptr inbounds [2 x [3 x float]], [2 x [3 x float]]* %2, i64 0, i64 0, i64 2
%95 = load float, float* %94
%96 = fpext float %95 to double
%97 = tail call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([28 x i8], [28 x i8]* @.str.3, i64 0, i64 0), double %96)
%98 = getelementptr inbounds [2 x [3 x [10 x i32]]], [2 x [3 x [10 x i32]]]* %1, i64 0, i64 0, i64 2, i64 0
%99 = load i32, i32* %98
%100 = tail call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([5 x i8], [5 x i8]* @.str.4, i64 0, i64 0), i32 %99, i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str.6, i64 0, i64 0))
%101 = getelementptr inbounds [2 x [3 x [10 x i32]]], [2 x [3 x [10 x i32]]]* %1, i64 0, i64 0, i64 2, i64 1
%102 = load i32, i32* %101
%103 = tail call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([5 x i8], [5 x i8]* @.str.4, i64 0, i64 0), i32 %102, i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str.6, i64 0, i64 0))
%104 = getelementptr inbounds [2 x [3 x [10 x i32]]], [2 x [3 x [10 x i32]]]* %1, i64 0, i64 0, i64 2, i64 2
%105 = load i32, i32* %104
%106 = tail call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([5 x i8], [5 x i8]* @.str.4, i64 0, i64 0), i32 %105, i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str.6, i64 0, i64 0))
%107 = getelementptr inbounds [2 x [3 x [10 x i32]]], [2 x [3 x [10 x i32]]]* %1, i64 0, i64 0, i64 2, i64 3
%108 = load i32, i32* %107
%109 = tail call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([5 x i8], [5 x i8]* @.str.4, i64 0, i64 0), i32 %108, i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str.6, i64 0, i64 0))
%110 = getelementptr inbounds [2 x [3 x [10 x i32]]], [2 x [3 x [10 x i32]]]* %1, i64 0, i64 0, i64 2, i64 4
%111 = load i32, i32* %110
%112 = tail call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([5 x i8], [5 x i8]* @.str.4, i64 0, i64 0), i32 %111, i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str.6, i64 0, i64 0))
%113 = getelementptr inbounds [2 x [3 x [10 x i32]]], [2 x [3 x [10 x i32]]]* %1, i64 0, i64 0, i64 2, i64 5
%114 = load i32, i32* %113
%115 = tail call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([5 x i8], [5 x i8]* @.str.4, i64 0, i64 0), i32 %114, i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str.6, i64 0, i64 0))
%116 = getelementptr inbounds [2 x [3 x [10 x i32]]], [2 x [3 x [10 x i32]]]* %1, i64 0, i64 0, i64 2, i64 6
%117 = load i32, i32* %116
%118 = tail call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([5 x i8], [5 x i8]* @.str.4, i64 0, i64 0), i32 %117, i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str.6, i64 0, i64 0))
%119 = getelementptr inbounds [2 x [3 x [10 x i32]]], [2 x [3 x [10 x i32]]]* %1, i64 0, i64 0, i64 2, i64 7
%120 = load i32, i32* %119
%121 = tail call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([5 x i8], [5 x i8]* @.str.4, i64 0, i64 0), i32 %120, i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str.6, i64 0, i64 0))
%122 = getelementptr inbounds [2 x [3 x [10 x i32]]], [2 x [3 x [10 x i32]]]* %1, i64 0, i64 0, i64 2, i64 8
%123 = load i32, i32* %122
%124 = tail call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([5 x i8], [5 x i8]* @.str.4, i64 0, i64 0), i32 %123, i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str.6, i64 0, i64 0))
%125 = getelementptr inbounds [2 x [3 x [10 x i32]]], [2 x [3 x [10 x i32]]]* %1, i64 0, i64 0, i64 2, i64 9
%126 = load i32, i32* %125
%127 = tail call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([5 x i8], [5 x i8]* @.str.4, i64 0, i64 0), i32 %126, i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str.5, i64 0, i64 0))
%128 = tail call i32 @putchar(i32 9)
%129 = tail call i32 @putchar(i32 10)
%130 = tail call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([33 x i8], [33 x i8]* @.str, i64 0, i64 0), i32 2)
%131 = getelementptr inbounds [2 x float], [2 x float]* %4, i64 0, i64 1
%132 = load float, float* %131
%133 = fpext float %132 to double
%134 = tail call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([29 x i8], [29 x i8]* @.str.1, i64 0, i64 0), double %133)
%135 = tail call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([32 x i8], [32 x i8]* @.str.2, i64 0, i64 0), i32 1)
%136 = getelementptr inbounds [2 x [3 x float]], [2 x [3 x float]]* %2, i64 0, i64 1, i64 0
%137 = load float, float* %136
%138 = fpext float %137 to double
%139 = tail call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([28 x i8], [28 x i8]* @.str.3, i64 0, i64 0), double %138)
%140 = getelementptr inbounds [2 x [3 x [10 x i32]]], [2 x [3 x [10 x i32]]]* %1, i64 0, i64 1, i64 0, i64 0
%141 = load i32, i32* %140
%142 = tail call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([5 x i8], [5 x i8]* @.str.4, i64 0, i64 0), i32 %141, i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str.6, i64 0, i64 0))
%143 = getelementptr inbounds [2 x [3 x [10 x i32]]], [2 x [3 x [10 x i32]]]* %1, i64 0, i64 1, i64 0, i64 1
%144 = load i32, i32* %143
%145 = tail call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([5 x i8], [5 x i8]* @.str.4, i64 0, i64 0), i32 %144, i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str.6, i64 0, i64 0))
%146 = getelementptr inbounds [2 x [3 x [10 x i32]]], [2 x [3 x [10 x i32]]]* %1, i64 0, i64 1, i64 0, i64 2
%147 = load i32, i32* %146
%148 = tail call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([5 x i8], [5 x i8]* @.str.4, i64 0, i64 0), i32 %147, i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str.6, i64 0, i64 0))
%149 = getelementptr inbounds [2 x [3 x [10 x i32]]], [2 x [3 x [10 x i32]]]* %1, i64 0, i64 1, i64 0, i64 3
%150 = load i32, i32* %149
%151 = tail call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([5 x i8], [5 x i8]* @.str.4, i64 0, i64 0), i32 %150, i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str.6, i64 0, i64 0))
%152 = getelementptr inbounds [2 x [3 x [10 x i32]]], [2 x [3 x [10 x i32]]]* %1, i64 0, i64 1, i64 0, i64 4
%153 = load i32, i32* %152
%154 = tail call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([5 x i8], [5 x i8]* @.str.4, i64 0, i64 0), i32 %153, i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str.6, i64 0, i64 0))
%155 = getelementptr inbounds [2 x [3 x [10 x i32]]], [2 x [3 x [10 x i32]]]* %1, i64 0, i64 1, i64 0, i64 5
%156 = load i32, i32* %155
%157 = tail call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([5 x i8], [5 x i8]* @.str.4, i64 0, i64 0), i32 %156, i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str.6, i64 0, i64 0))
%158 = getelementptr inbounds [2 x [3 x [10 x i32]]], [2 x [3 x [10 x i32]]]* %1, i64 0, i64 1, i64 0, i64 6
%159 = load i32, i32* %158
%160 = tail call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([5 x i8], [5 x i8]* @.str.4, i64 0, i64 0), i32 %159, i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str.6, i64 0, i64 0))
%161 = getelementptr inbounds [2 x [3 x [10 x i32]]], [2 x [3 x [10 x i32]]]* %1, i64 0, i64 1, i64 0, i64 7
%162 = load i32, i32* %161
%163 = tail call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([5 x i8], [5 x i8]* @.str.4, i64 0, i64 0), i32 %162, i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str.6, i64 0, i64 0))
%164 = getelementptr inbounds [2 x [3 x [10 x i32]]], [2 x [3 x [10 x i32]]]* %1, i64 0, i64 1, i64 0, i64 8
%165 = load i32, i32* %164
%166 = tail call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([5 x i8], [5 x i8]* @.str.4, i64 0, i64 0), i32 %165, i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str.6, i64 0, i64 0))
%167 = getelementptr inbounds [2 x [3 x [10 x i32]]], [2 x [3 x [10 x i32]]]* %1, i64 0, i64 1, i64 0, i64 9
%168 = load i32, i32* %167
%169 = tail call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([5 x i8], [5 x i8]* @.str.4, i64 0, i64 0), i32 %168, i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str.5, i64 0, i64 0))
%170 = tail call i32 @putchar(i32 9)
%171 = tail call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([32 x i8], [32 x i8]* @.str.2, i64 0, i64 0), i32 2)
%172 = getelementptr inbounds [2 x [3 x float]], [2 x [3 x float]]* %2, i64 0, i64 1, i64 1
%173 = load float, float* %172
%174 = fpext float %173 to double
%175 = tail call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([28 x i8], [28 x i8]* @.str.3, i64 0, i64 0), double %174)
%176 = getelementptr inbounds [2 x [3 x [10 x i32]]], [2 x [3 x [10 x i32]]]* %1, i64 0, i64 1, i64 1, i64 0
%177 = load i32, i32* %176
%178 = tail call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([5 x i8], [5 x i8]* @.str.4, i64 0, i64 0), i32 %177, i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str.6, i64 0, i64 0))
%179 = getelementptr inbounds [2 x [3 x [10 x i32]]], [2 x [3 x [10 x i32]]]* %1, i64 0, i64 1, i64 1, i64 1
%180 = load i32, i32* %179
%181 = tail call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([5 x i8], [5 x i8]* @.str.4, i64 0, i64 0), i32 %180, i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str.6, i64 0, i64 0))
%182 = getelementptr inbounds [2 x [3 x [10 x i32]]], [2 x [3 x [10 x i32]]]* %1, i64 0, i64 1, i64 1, i64 2
%183 = load i32, i32* %182
%184 = tail call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([5 x i8], [5 x i8]* @.str.4, i64 0, i64 0), i32 %183, i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str.6, i64 0, i64 0))
%185 = getelementptr inbounds [2 x [3 x [10 x i32]]], [2 x [3 x [10 x i32]]]* %1, i64 0, i64 1, i64 1, i64 3
%186 = load i32, i32* %185
%187 = tail call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([5 x i8], [5 x i8]* @.str.4, i64 0, i64 0), i32 %186, i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str.6, i64 0, i64 0))
%188 = getelementptr inbounds [2 x [3 x [10 x i32]]], [2 x [3 x [10 x i32]]]* %1, i64 0, i64 1, i64 1, i64 4
%189 = load i32, i32* %188
%190 = tail call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([5 x i8], [5 x i8]* @.str.4, i64 0, i64 0), i32 %189, i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str.6, i64 0, i64 0))
%191 = getelementptr inbounds [2 x [3 x [10 x i32]]], [2 x [3 x [10 x i32]]]* %1, i64 0, i64 1, i64 1, i64 5
%192 = load i32, i32* %191
%193 = tail call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([5 x i8], [5 x i8]* @.str.4, i64 0, i64 0), i32 %192, i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str.6, i64 0, i64 0))
%194 = getelementptr inbounds [2 x [3 x [10 x i32]]], [2 x [3 x [10 x i32]]]* %1, i64 0, i64 1, i64 1, i64 6
%195 = load i32, i32* %194
%196 = tail call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([5 x i8], [5 x i8]* @.str.4, i64 0, i64 0), i32 %195, i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str.6, i64 0, i64 0))
%197 = getelementptr inbounds [2 x [3 x [10 x i32]]], [2 x [3 x [10 x i32]]]* %1, i64 0, i64 1, i64 1, i64 7
%198 = load i32, i32* %197
%199 = tail call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([5 x i8], [5 x i8]* @.str.4, i64 0, i64 0), i32 %198, i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str.6, i64 0, i64 0))
%200 = getelementptr inbounds [2 x [3 x [10 x i32]]], [2 x [3 x [10 x i32]]]* %1, i64 0, i64 1, i64 1, i64 8
%201 = load i32, i32* %200
%202 = tail call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([5 x i8], [5 x i8]* @.str.4, i64 0, i64 0), i32 %201, i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str.6, i64 0, i64 0))
%203 = getelementptr inbounds [2 x [3 x [10 x i32]]], [2 x [3 x [10 x i32]]]* %1, i64 0, i64 1, i64 1, i64 9
%204 = load i32, i32* %203
%205 = tail call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([5 x i8], [5 x i8]* @.str.4, i64 0, i64 0), i32 %204, i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str.5, i64 0, i64 0))
%206 = tail call i32 @putchar(i32 9)
%207 = tail call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([32 x i8], [32 x i8]* @.str.2, i64 0, i64 0), i32 3)
%208 = getelementptr inbounds [2 x [3 x float]], [2 x [3 x float]]* %2, i64 0, i64 1, i64 2
%209 = load float, float* %208
%210 = fpext float %209 to double
%211 = tail call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([28 x i8], [28 x i8]* @.str.3, i64 0, i64 0), double %210)
%212 = getelementptr inbounds [2 x [3 x [10 x i32]]], [2 x [3 x [10 x i32]]]* %1, i64 0, i64 1, i64 2, i64 0
%213 = load i32, i32* %212
%214 = tail call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([5 x i8], [5 x i8]* @.str.4, i64 0, i64 0), i32 %213, i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str.6, i64 0, i64 0))
%215 = getelementptr inbounds [2 x [3 x [10 x i32]]], [2 x [3 x [10 x i32]]]* %1, i64 0, i64 1, i64 2, i64 1
%216 = load i32, i32* %215
%217 = tail call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([5 x i8], [5 x i8]* @.str.4, i64 0, i64 0), i32 %216, i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str.6, i64 0, i64 0))
%218 = getelementptr inbounds [2 x [3 x [10 x i32]]], [2 x [3 x [10 x i32]]]* %1, i64 0, i64 1, i64 2, i64 2
%219 = load i32, i32* %218
%220 = tail call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([5 x i8], [5 x i8]* @.str.4, i64 0, i64 0), i32 %219, i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str.6, i64 0, i64 0))
%221 = getelementptr inbounds [2 x [3 x [10 x i32]]], [2 x [3 x [10 x i32]]]* %1, i64 0, i64 1, i64 2, i64 3
%222 = load i32, i32* %221
%223 = tail call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([5 x i8], [5 x i8]* @.str.4, i64 0, i64 0), i32 %222, i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str.6, i64 0, i64 0))
%224 = getelementptr inbounds [2 x [3 x [10 x i32]]], [2 x [3 x [10 x i32]]]* %1, i64 0, i64 1, i64 2, i64 4
%225 = load i32, i32* %224
%226 = tail call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([5 x i8], [5 x i8]* @.str.4, i64 0, i64 0), i32 %225, i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str.6, i64 0, i64 0))
%227 = getelementptr inbounds [2 x [3 x [10 x i32]]], [2 x [3 x [10 x i32]]]* %1, i64 0, i64 1, i64 2, i64 5
%228 = load i32, i32* %227
%229 = tail call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([5 x i8], [5 x i8]* @.str.4, i64 0, i64 0), i32 %228, i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str.6, i64 0, i64 0))
%230 = getelementptr inbounds [2 x [3 x [10 x i32]]], [2 x [3 x [10 x i32]]]* %1, i64 0, i64 1, i64 2, i64 6
%231 = load i32, i32* %230
%232 = tail call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([5 x i8], [5 x i8]* @.str.4, i64 0, i64 0), i32 %231, i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str.6, i64 0, i64 0))
%233 = getelementptr inbounds [2 x [3 x [10 x i32]]], [2 x [3 x [10 x i32]]]* %1, i64 0, i64 1, i64 2, i64 7
%234 = load i32, i32* %233
%235 = tail call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([5 x i8], [5 x i8]* @.str.4, i64 0, i64 0), i32 %234, i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str.6, i64 0, i64 0))
%236 = getelementptr inbounds [2 x [3 x [10 x i32]]], [2 x [3 x [10 x i32]]]* %1, i64 0, i64 1, i64 2, i64 8
%237 = load i32, i32* %236
%238 = tail call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([5 x i8], [5 x i8]* @.str.4, i64 0, i64 0), i32 %237, i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str.6, i64 0, i64 0))
%239 = getelementptr inbounds [2 x [3 x [10 x i32]]], [2 x [3 x [10 x i32]]]* %1, i64 0, i64 1, i64 2, i64 9
%240 = load i32, i32* %239
%241 = tail call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([5 x i8], [5 x i8]* @.str.4, i64 0, i64 0), i32 %240, i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str.5, i64 0, i64 0))
%242 = tail call i32 @putchar(i32 9)
%243 = tail call i32 @putchar(i32 10)
%244 = fdiv float %278, 6.000000e+01
%245 = fpext float %244 to double
%246 = tail call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([37 x i8], [37 x i8]* @.str.9, i64 0, i64 0), double %245)
ret i32 0
247: ; preds = %287
%248 = fdiv float %295, 1.000000e+01
%249 = getelementptr inbounds [2 x [3 x float]], [2 x [3 x float]]* %2, i64 0, i64 %12, i64 0
store float %248, float* %249
br label %250
250: ; preds = %250, %247
%251 = phi float [ %298, %247 ], [ %261, %250 ]
%252 = phi i64 [ 0, %247 ], [ %263, %250 ]
%253 = phi float [ %296, %247 ], [ %260, %250 ]
%254 = phi float [ 0.000000e+00, %247 ], [ %259, %250 ]
%255 = tail call i32 (...) @rand()
%256 = srem i32 %255, 6
%257 = add nsw i32 %256, 5
%258 = sitofp i32 %257 to float
%259 = fadd float %254, %258
%260 = fadd float %253, %258
%261 = fadd float %251, %258
store float %261, float* %14
%262 = getelementptr inbounds [2 x [3 x [10 x i32]]], [2 x [3 x [10 x i32]]]* %1, i64 0, i64 %12, i64 1, i64 %252
store i32 %257, i32* %262
%263 = add nuw nsw i64 %252, 1
%264 = icmp eq i64 %263, 10
br i1 %264, label %265, label %250
265: ; preds = %250
%266 = fdiv float %259, 1.000000e+01
%267 = getelementptr inbounds [2 x [3 x float]], [2 x [3 x float]]* %2, i64 0, i64 %12, i64 1
store float %266, float* %267
br label %268
268: ; preds = %268, %265
%269 = phi float [ %261, %265 ], [ %279, %268 ]
%270 = phi i64 [ 0, %265 ], [ %281, %268 ]
%271 = phi float [ %260, %265 ], [ %278, %268 ]
%272 = phi float [ 0.000000e+00, %265 ], [ %277, %268 ]
%273 = tail call i32 (...) @rand()
%274 = srem i32 %273, 6
%275 = add nsw i32 %274, 5
%276 = sitofp i32 %275 to float
%277 = fadd float %272, %276
%278 = fadd float %271, %276
%279 = fadd float %269, %276
store float %279, float* %14
%280 = getelementptr inbounds [2 x [3 x [10 x i32]]], [2 x [3 x [10 x i32]]]* %1, i64 0, i64 %12, i64 2, i64 %270
store i32 %275, i32* %280
%281 = add nuw nsw i64 %270, 1
%282 = icmp eq i64 %281, 10
br i1 %282, label %283, label %268
283: ; preds = %268
%284 = fdiv float %277, 1.000000e+01
%285 = getelementptr inbounds [2 x [3 x float]], [2 x [3 x float]]* %2, i64 0, i64 %12, i64 2
store float %284, float* %285
%286 = fdiv float %279, 3.000000e+01
store float %286, float* %14
br i1 %11, label %10, label %15
287: ; preds = %10, %287
%288 = phi i64 [ 0, %10 ], [ %300, %287 ]
%289 = phi float [ %13, %10 ], [ %296, %287 ]
%290 = phi float [ 0.000000e+00, %10 ], [ %295, %287 ]
%291 = tail call i32 (...) @rand()
%292 = srem i32 %291, 6
%293 = add nsw i32 %292, 5
%294 = sitofp i32 %293 to float
%295 = fadd float %290, %294
%296 = fadd float %289, %294
%297 = load float, float* %14
%298 = fadd float %297, %294
store float %298, float* %14
%299 = getelementptr inbounds [2 x [3 x [10 x i32]]], [2 x [3 x [10 x i32]]]* %1, i64 0, i64 %12, i64 0, i64 %288
store i32 %293, i32* %299
%300 = add nuw nsw i64 %288, 1
%301 = icmp eq i64 %300, 10
br i1 %301, label %247, label %287
}