#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 *, ...);
scalar_t__ scanf(char *, double *);
int main() {
  double t[20000];
  int n = 0;
  while (scanf("%lf", &t[n]) > 0) {
    n++;
  }
  double med = 0, min = t[0], max = t[0], soma = 0;
  for (int j = 0; j < n; j++) {
    soma += t[j];
    if (t[j] > max)
      max = t[j];
    if (t[j] < min) {
      min = t[j];
    }
  }
  med = soma / n;
  printf("med = %.3lf, min = %.3lf, max = %.3lf\n", med, min, max);
  soma = 0;
  int n_temp_acima_med = 0;
  for (int j = 0; j < n; j++) {
    if (t[j] > med) {
      soma += t[j];
      n_temp_acima_med++;
    }
  }
  double med_acima_media = soma / n_temp_acima_med;
  printf("Média das temperaturas acima da média: %.3lf\n", med_acima_media);
  double intervalo[20] = {0.0};
  for (int x = 0; x <= 20; x++) {
    intervalo[x] = min + x * (max - min) / 20;
  }
  int aux[20] = {0};
  for (int i = 0; i <= n; i++) {
    for (int j = 0; j < 20; j++) {
      if (t[i] >= intervalo[j] && t[i] < intervalo[j + 1]) {
        aux[j]++;
      }
    }
  }
  for (int x = 0; x < 20; x++) {
    printf("aux[%d]=%d\n", x, aux[x]);
  }
  char histograma[20][20];
  for (int i = 0; i < 20; i++) {
    for (int j = 0; j < 20; j++) {
      histograma[i][j] = ' ';
    }
  }
  for (int i = 0; i < 20; i++) {
    int j = 0;
    while (j <= aux[i] / 122) {
      histograma[i][j] = '*';
      j++;
    }
  }
  for (int i = 0; i < 20; i++) {
    printf("Temperaturas entre %6.3lf e %6.3lf: ", intervalo[i],
           intervalo[i + 1]);
    for (int j = 0; j < 20; j++) {
      printf("%c", histograma[i][j]);
    }
    printf("\n");
  }
  printf("Histograma na vertical:\n");
  for (int lin = 19; lin >= 0; lin--) {
    for (int col = 0; col < 20; col++) {
      printf("%c", histograma[col][lin]);
    }
    printf("\n");
  }
  return 0;
}


x86 assembly (clang, -O0):
<main>:
push   %rbp
mov    %rsp,%rbp
sub    $0x27420,%rsp
movl   $0x0,-0x4(%rbp)
movl   $0x0,-0x27114(%rbp)
movslq -0x27114(%rbp),%rax
lea    -0x27110(%rbp),%rsi
shl    $0x3,%rax
add    %rax,%rsi
lea    0xea0(%rip),%rdi
call   1050 <scanf@plt>
cmp    $0x0,%rax
jle    118b <main+0x5b>
mov    -0x27114(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0x27114(%rbp)
jmp    114c <main+0x1c>
xorps  %xmm0,%xmm0
movsd  %xmm0,-0x27120(%rbp)
ff
movsd  -0x27110(%rbp),%xmm0
ff
movsd  %xmm0,-0x27128(%rbp)
ff
movsd  -0x27110(%rbp),%xmm0
ff
movsd  %xmm0,-0x27130(%rbp)
ff
xorps  %xmm0,%xmm0
movsd  %xmm0,-0x27138(%rbp)
ff
movl   $0x0,-0x2713c(%rbp)
mov    -0x2713c(%rbp),%eax
cmp    -0x27114(%rbp),%eax
jge    1286 <main+0x156>
movslq -0x2713c(%rbp),%rax
movsd  -0x27110(%rbp,%rax,8),%xmm0
fd ff
addsd  -0x27138(%rbp),%xmm0
ff
movsd  %xmm0,-0x27138(%rbp)
ff
movslq -0x2713c(%rbp),%rax
movsd  -0x27110(%rbp,%rax,8),%xmm0
fd ff
ucomisd -0x27130(%rbp),%xmm0
ff
jbe    1233 <main+0x103>
movslq -0x2713c(%rbp),%rax
movsd  -0x27110(%rbp,%rax,8),%xmm0
fd ff
movsd  %xmm0,-0x27130(%rbp)
ff
movslq -0x2713c(%rbp),%rax
movsd  -0x27110(%rbp,%rax,8),%xmm1
fd ff
movsd  -0x27128(%rbp),%xmm0
ff
ucomisd %xmm1,%xmm0
jbe    126d <main+0x13d>
movslq -0x2713c(%rbp),%rax
movsd  -0x27110(%rbp,%rax,8),%xmm0
fd ff
movsd  %xmm0,-0x27128(%rbp)
ff
jmp    1272 <main+0x142>
mov    -0x2713c(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0x2713c(%rbp)
jmp    11cb <main+0x9b>
movsd  -0x27138(%rbp),%xmm0
ff
cvtsi2sdl -0x27114(%rbp),%xmm1
ff
divsd  %xmm1,%xmm0
movsd  %xmm0,-0x27120(%rbp)
ff
movsd  -0x27120(%rbp),%xmm0
ff
movsd  -0x27128(%rbp),%xmm1
ff
movsd  -0x27130(%rbp),%xmm2
ff
lea    0xd4b(%rip),%rdi
mov    $0x3,%al
call   1030 <printf@plt>
xorps  %xmm0,%xmm0
movsd  %xmm0,-0x27138(%rbp)
ff
movl   $0x0,-0x27140(%rbp)
movl   $0x0,-0x27144(%rbp)
mov    -0x27144(%rbp),%eax
cmp    -0x27114(%rbp),%eax
jge    135f <main+0x22f>
movslq -0x27144(%rbp),%rax
movsd  -0x27110(%rbp,%rax,8),%xmm0
fd ff
ucomisd -0x27120(%rbp),%xmm0
ff
jbe    1346 <main+0x216>
movslq -0x27144(%rbp),%rax
movsd  -0x27110(%rbp,%rax,8),%xmm0
fd ff
addsd  -0x27138(%rbp),%xmm0
ff
movsd  %xmm0,-0x27138(%rbp)
ff
mov    -0x27140(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0x27140(%rbp)
jmp    134b <main+0x21b>
mov    -0x27144(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0x27144(%rbp)
jmp    12e7 <main+0x1b7>
movsd  -0x27138(%rbp),%xmm0
ff
cvtsi2sdl -0x27140(%rbp),%xmm1
ff
divsd  %xmm1,%xmm0
movsd  %xmm0,-0x27150(%rbp)
ff
movsd  -0x27150(%rbp),%xmm0
ff
lea    0xca9(%rip),%rdi
mov    $0x1,%al
call   1030 <printf@plt>
lea    -0x271f0(%rbp),%rdi
xor    %esi,%esi
mov    $0xa0,%edx
call   1040 <memset@plt>
movl   $0x0,-0x271f4(%rbp)
cmpl   $0x14,-0x271f4(%rbp)
jg     1413 <main+0x2e3>
movsd  -0x27128(%rbp),%xmm0
ff
cvtsi2sdl -0x271f4(%rbp),%xmm1
ff
movsd  -0x27130(%rbp),%xmm2
ff
subsd  -0x27128(%rbp),%xmm2
ff
mulsd  %xmm2,%xmm1
movsd  0xc19(%rip),%xmm2
divsd  %xmm2,%xmm1
addsd  %xmm1,%xmm0
movslq -0x271f4(%rbp),%rax
movsd  %xmm0,-0x271f0(%rbp,%rax,8)
fd ff
mov    -0x271f4(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0x271f4(%rbp)
jmp    13ae <main+0x27e>
lea    -0x27250(%rbp),%rdi
xor    %esi,%esi
mov    $0x50,%edx
call   1040 <memset@plt>
movl   $0x0,-0x27254(%rbp)
mov    -0x27254(%rbp),%eax
cmp    -0x27114(%rbp),%eax
jg     14f7 <main+0x3c7>
movl   $0x0,-0x27258(%rbp)
cmpl   $0x14,-0x27258(%rbp)
jge    14de <main+0x3ae>
movslq -0x27254(%rbp),%rax
movsd  -0x27110(%rbp,%rax,8),%xmm0
fd ff
movslq -0x27258(%rbp),%rax
ucomisd -0x271f0(%rbp,%rax,8),%xmm0
fd ff
jb     14c5 <main+0x395>
movslq -0x27254(%rbp),%rax
movsd  -0x27110(%rbp,%rax,8),%xmm1
fd ff
mov    -0x27258(%rbp),%eax
add    $0x1,%eax
cltq
movsd  -0x271f0(%rbp,%rax,8),%xmm0
fd ff
ucomisd %xmm1,%xmm0
jbe    14c5 <main+0x395>
movslq -0x27258(%rbp),%rax
mov    -0x27250(%rbp,%rax,4),%ecx
add    $0x1,%ecx
mov    %ecx,-0x27250(%rbp,%rax,4)
jmp    14ca <main+0x39a>
mov    -0x27258(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0x27258(%rbp)
jmp    144c <main+0x31c>
jmp    14e3 <main+0x3b3>
mov    -0x27254(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0x27254(%rbp)
jmp    1430 <main+0x300>
movl   $0x0,-0x2725c(%rbp)
cmpl   $0x14,-0x2725c(%rbp)
jge    1544 <main+0x414>
mov    -0x2725c(%rbp),%esi
movslq -0x2725c(%rbp),%rax
mov    -0x27250(%rbp,%rax,4),%edx
lea    0xb3a(%rip),%rdi
mov    $0x0,%al
call   1030 <printf@plt>
mov    -0x2725c(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0x2725c(%rbp)
jmp    1501 <main+0x3d1>
movl   $0x0,-0x273f4(%rbp)
cmpl   $0x14,-0x273f4(%rbp)
jge    15bf <main+0x48f>
movl   $0x0,-0x273f8(%rbp)
cmpl   $0x14,-0x273f8(%rbp)
jge    15a6 <main+0x476>
movslq -0x273f4(%rbp),%rcx
lea    -0x273f0(%rbp),%rax
imul   $0x14,%rcx,%rcx
add    %rcx,%rax
movslq -0x273f8(%rbp),%rcx
movb   $0x20,(%rax,%rcx,1)
mov    -0x273f8(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0x273f8(%rbp)
jmp    1565 <main+0x435>
jmp    15ab <main+0x47b>
mov    -0x273f4(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0x273f4(%rbp)
jmp    154e <main+0x41e>
movl   $0x0,-0x273fc(%rbp)
cmpl   $0x14,-0x273fc(%rbp)
jge    165f <main+0x52f>
movl   $0x0,-0x27400(%rbp)
mov    -0x27400(%rbp),%eax
mov    %eax,-0x27414(%rbp)
movslq -0x273fc(%rbp),%rax
mov    -0x27250(%rbp,%rax,4),%eax
mov    $0x7a,%ecx
cltd
idiv   %ecx
mov    %eax,%ecx
mov    -0x27414(%rbp),%eax
cmp    %ecx,%eax
jg     1646 <main+0x516>
movslq -0x273fc(%rbp),%rcx
lea    -0x273f0(%rbp),%rax
imul   $0x14,%rcx,%rcx
add    %rcx,%rax
movslq -0x27400(%rbp),%rcx
movb   $0x2a,(%rax,%rcx,1)
mov    -0x27400(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0x27400(%rbp)
jmp    15e0 <main+0x4b0>
jmp    164b <main+0x51b>
mov    -0x273fc(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0x273fc(%rbp)
jmp    15c9 <main+0x499>
movl   $0x0,-0x27404(%rbp)
cmpl   $0x14,-0x27404(%rbp)
jge    1723 <main+0x5f3>
movslq -0x27404(%rbp),%rax
movsd  -0x271f0(%rbp,%rax,8),%xmm0
fd ff
mov    -0x27404(%rbp),%eax
add    $0x1,%eax
cltq
movsd  -0x271f0(%rbp,%rax,8),%xmm1
fd ff
lea    0x9ce(%rip),%rdi
mov    $0x2,%al
call   1030 <printf@plt>
movl   $0x0,-0x27408(%rbp)
cmpl   $0x14,-0x27408(%rbp)
jge    1701 <main+0x5d1>
movslq -0x27404(%rbp),%rcx
lea    -0x273f0(%rbp),%rax
imul   $0x14,%rcx,%rcx
add    %rcx,%rax
movslq -0x27408(%rbp),%rcx
movsbl (%rax,%rcx,1),%esi
lea    0x9ae(%rip),%rdi
mov    $0x0,%al
call   1030 <printf@plt>
mov    -0x27408(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0x27408(%rbp)
jmp    16b2 <main+0x582>
lea    0x9a6(%rip),%rdi
mov    $0x0,%al
call   1030 <printf@plt>
mov    -0x27404(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0x27404(%rbp)
jmp    1669 <main+0x539>
lea    0x96d(%rip),%rdi
mov    $0x0,%al
call   1030 <printf@plt>
movl   $0x13,-0x2740c(%rbp)
cmpl   $0x0,-0x2740c(%rbp)
jl     17c3 <main+0x693>
movl   $0x0,-0x27410(%rbp)
cmpl   $0x14,-0x27410(%rbp)
jge    17a1 <main+0x671>
movslq -0x27410(%rbp),%rcx
lea    -0x273f0(%rbp),%rax
imul   $0x14,%rcx,%rcx
add    %rcx,%rax
movslq -0x2740c(%rbp),%rcx
movsbl (%rax,%rcx,1),%esi
lea    0x90e(%rip),%rdi
mov    $0x0,%al
call   1030 <printf@plt>
mov    -0x27410(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0x27410(%rbp)
jmp    1752 <main+0x622>
lea    0x906(%rip),%rdi
mov    $0x0,%al
call   1030 <printf@plt>
mov    -0x2740c(%rbp),%eax
add    $0xffffffff,%eax
mov    %eax,-0x2740c(%rbp)
jmp    173b <main+0x60b>
xor    %eax,%eax
add    $0x27420,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<main>:
push   %r15
push   %r14
push   %rbx
sub    $0x273b0,%rsp
mov    $0xffffffffffffffff,%r15
lea    0x2b0(%rsp),%rbx
lea    0xf4e(%rip),%r14
cs nopw 0x0(%rax,%rax,1)
nopl   0x0(%rax)
mov    %r14,%rdi
mov    %rbx,%rsi
call   1070 <scanf@plt>
add    $0x1,%r15
add    $0x8,%rbx
test   %rax,%rax
jg     1180 <main+0x30>
movsd  0x2b0(%rsp),%xmm2
test   %r15d,%r15d
je     11c0 <main+0x70>
mov    %r15d,%ebx
xorpd  %xmm0,%xmm0
addsd  %xmm2,%xmm0
cmp    $0x1,%rbx
jne    11fc <main+0xac>
movapd %xmm2,%xmm1
jmp    129d <main+0x14d>
cvtsi2sd %r15d,%xmm1
xorpd  %xmm0,%xmm0
divsd  %xmm1,%xmm0
lea    0xef0(%rip),%rdi
movapd %xmm2,%xmm1
mov    $0x3,%al
movapd %xmm2,(%rsp)
call   1050 <printf@plt>
movsd  0xe14(%rip),%xmm0
movapd (%rsp),%xmm1
movapd %xmm1,0x70(%rsp)
jmp    1323 <main+0x1d3>
lea    -0x1(%rbx),%rax
cmp    $0x2,%rbx
jne    1211 <main+0xc1>
mov    $0x1,%ecx
movapd %xmm2,%xmm1
jmp    1278 <main+0x128>
mov    %r15d,%edx
add    $0xffffffffffffffff,%rdx
and    $0xfffffffffffffffe,%rdx
neg    %rdx
mov    $0x1,%ecx
movapd %xmm2,%xmm5
nopl   0x0(%rax,%rax,1)
movsd  0x2b0(%rsp,%rcx,8),%xmm4
movsd  0x2b8(%rsp,%rcx,8),%xmm1
addsd  %xmm4,%xmm0
movapd %xmm4,%xmm3
maxsd  %xmm2,%xmm3
minsd  %xmm5,%xmm4
addsd  %xmm1,%xmm0
movapd %xmm1,%xmm2
maxsd  %xmm3,%xmm2
minsd  %xmm4,%xmm1
lea    (%rdx,%rcx,1),%rsi
add    $0x2,%rsi
add    $0x2,%rcx
movapd %xmm1,%xmm5
cmp    $0x1,%rsi
jne    1230 <main+0xe0>
test   $0x1,%al
je     129d <main+0x14d>
movsd  0x2b0(%rsp,%rcx,8),%xmm4
addsd  %xmm4,%xmm0
movapd %xmm4,%xmm3
maxsd  %xmm2,%xmm3
minsd  %xmm1,%xmm4
movapd %xmm3,%xmm2
movapd %xmm4,%xmm1
xorps  %xmm3,%xmm3
cvtsi2sd %r15d,%xmm3
divsd  %xmm3,%xmm0
lea    0xe14(%rip),%rdi
movsd  %xmm0,0x18(%rsp)
movapd %xmm1,0x70(%rsp)
movapd %xmm2,(%rsp)
mov    $0x3,%al
call   1050 <printf@plt>
test   %r15d,%r15d
je     131b <main+0x1cb>
cmp    $0x1,%ebx
jne    199b <main+0x84b>
xorpd  %xmm0,%xmm0
xor    %ecx,%ecx
xor    %eax,%eax
movsd  0x18(%rsp),%xmm4
test   $0x1,%r15b
je     130e <main+0x1be>
movsd  0x2b0(%rsp,%rcx,8),%xmm1
xor    %ecx,%ecx
ucomisd %xmm4,%xmm1
seta   %dl
ja     1306 <main+0x1b6>
movsd  0xd02(%rip),%xmm1
addsd  %xmm1,%xmm0
mov    %dl,%cl
add    %ecx,%eax
xorps  %xmm1,%xmm1
cvtsi2sd %eax,%xmm1
divsd  %xmm1,%xmm0
jmp    1323 <main+0x1d3>
movsd  0xcdd(%rip),%xmm0
lea    0xdc1(%rip),%rdi
mov    $0x1,%al
call   1050 <printf@plt>
xorpd  %xmm0,%xmm0
movapd (%rsp),%xmm5
movapd 0x70(%rsp),%xmm6
subsd  %xmm6,%xmm5
movapd %xmm5,%xmm1
unpcklpd %xmm5,%xmm1
movapd %xmm6,%xmm2
unpcklpd %xmm6,%xmm2
xorpd  %xmm4,%xmm4
movhpd 0xcb0(%rip),%xmm4
mulpd  %xmm1,%xmm4
movapd 0xcb4(%rip),%xmm3
divpd  %xmm3,%xmm4
addpd  %xmm2,%xmm4
movapd %xmm4,0x80(%rsp)
movapd 0xcab(%rip),%xmm4
mulpd  %xmm1,%xmm4
divpd  %xmm3,%xmm4
addpd  %xmm2,%xmm4
movapd %xmm4,0x90(%rsp)
movapd 0xc9e(%rip),%xmm4
mulpd  %xmm1,%xmm4
divpd  %xmm3,%xmm4
addpd  %xmm2,%xmm4
movapd %xmm4,0xa0(%rsp)
movapd 0xc91(%rip),%xmm4
mulpd  %xmm1,%xmm4
divpd  %xmm3,%xmm4
addpd  %xmm2,%xmm4
movapd %xmm4,0xb0(%rsp)
movapd 0xc84(%rip),%xmm4
mulpd  %xmm1,%xmm4
divpd  %xmm3,%xmm4
addpd  %xmm2,%xmm4
movapd %xmm4,0xc0(%rsp)
movapd 0xc77(%rip),%xmm4
mulpd  %xmm1,%xmm4
divpd  %xmm3,%xmm4
addpd  %xmm2,%xmm4
movapd %xmm4,0xd0(%rsp)
movapd 0xc6a(%rip),%xmm4
mulpd  %xmm1,%xmm4
divpd  %xmm3,%xmm4
addpd  %xmm2,%xmm4
movapd %xmm4,0xe0(%rsp)
movapd 0xc5d(%rip),%xmm4
mulpd  %xmm1,%xmm4
divpd  %xmm3,%xmm4
addpd  %xmm2,%xmm4
movapd %xmm4,0xf0(%rsp)
movapd 0xc50(%rip),%xmm4
mulpd  %xmm1,%xmm4
divpd  %xmm3,%xmm4
addpd  %xmm2,%xmm4
mulpd  0xc4c(%rip),%xmm1
movapd %xmm4,0x100(%rsp)
divpd  %xmm3,%xmm1
addpd  %xmm2,%xmm1
movapd %xmm1,0x110(%rsp)
movsd  0xb92(%rip),%xmm1
mulsd  %xmm1,%xmm5
divsd  %xmm1,%xmm5
addsd  %xmm6,%xmm5
movsd  %xmm5,0x120(%rsp)
movapd %xmm0,0x60(%rsp)
movapd %xmm0,0x50(%rsp)
movapd %xmm0,0x40(%rsp)
movapd %xmm0,0x30(%rsp)
movapd %xmm0,0x20(%rsp)
add    $0x1,%r15d
xor    %eax,%eax
jmp    14d9 <main+0x389>
cs nopw 0x0(%rax,%rax,1)
nopl   0x0(%rax,%rax,1)
add    $0x1,%rax
cmp    %r15,%rax
je     153d <main+0x3ed>
movsd  0x2b0(%rsp,%rax,8),%xmm0
xor    %edx,%edx
jmp    14f6 <main+0x3a6>
cs nopw 0x0(%rax,%rax,1)
cmp    $0x14,%rdx
je     14d0 <main+0x380>
mov    %rdx,%rcx
ucomisd 0x80(%rsp,%rdx,8),%xmm0
jb     1518 <main+0x3c8>
movsd  0x88(%rsp,%rcx,8),%xmm1
ucomisd %xmm0,%xmm1
jbe    1518 <main+0x3c8>
addl   $0x1,0x20(%rsp,%rcx,4)
lea    0x2(%rcx),%rdx
ucomisd 0x88(%rsp,%rcx,8),%xmm0
jb     14f0 <main+0x3a0>
movsd  0x90(%rsp,%rcx,8),%xmm1
ucomisd %xmm0,%xmm1
jbe    14f0 <main+0x3a0>
addl   $0x1,0x24(%rsp,%rcx,4)
jmp    14f0 <main+0x3a0>
mov    0x20(%rsp),%edx
lea    0xbd3(%rip),%rbx
mov    %rbx,%rdi
xor    %esi,%esi
xor    %eax,%eax
call   1050 <printf@plt>
mov    0x24(%rsp),%edx
mov    %rbx,%rdi
mov    $0x1,%esi
xor    %eax,%eax
call   1050 <printf@plt>
mov    0x28(%rsp),%edx
mov    %rbx,%rdi
mov    $0x2,%esi
xor    %eax,%eax
call   1050 <printf@plt>
mov    0x2c(%rsp),%edx
mov    %rbx,%rdi
mov    $0x3,%esi
xor    %eax,%eax
call   1050 <printf@plt>
mov    0x30(%rsp),%edx
mov    %rbx,%rdi
mov    $0x4,%esi
xor    %eax,%eax
call   1050 <printf@plt>
mov    0x34(%rsp),%edx
mov    %rbx,%rdi
mov    $0x5,%esi
xor    %eax,%eax
call   1050 <printf@plt>
mov    0x38(%rsp),%edx
mov    %rbx,%rdi
mov    $0x6,%esi
xor    %eax,%eax
call   1050 <printf@plt>
mov    0x3c(%rsp),%edx
mov    %rbx,%rdi
mov    $0x7,%esi
xor    %eax,%eax
call   1050 <printf@plt>
mov    0x40(%rsp),%edx
mov    %rbx,%rdi
mov    $0x8,%esi
xor    %eax,%eax
call   1050 <printf@plt>
mov    0x44(%rsp),%edx
mov    %rbx,%rdi
mov    $0x9,%esi
xor    %eax,%eax
call   1050 <printf@plt>
mov    0x48(%rsp),%edx
mov    %rbx,%rdi
mov    $0xa,%esi
xor    %eax,%eax
call   1050 <printf@plt>
mov    0x4c(%rsp),%edx
mov    %rbx,%rdi
mov    $0xb,%esi
xor    %eax,%eax
call   1050 <printf@plt>
mov    0x50(%rsp),%edx
mov    %rbx,%rdi
mov    $0xc,%esi
xor    %eax,%eax
call   1050 <printf@plt>
mov    0x54(%rsp),%edx
mov    %rbx,%rdi
mov    $0xd,%esi
xor    %eax,%eax
call   1050 <printf@plt>
mov    0x58(%rsp),%edx
mov    %rbx,%rdi
mov    $0xe,%esi
xor    %eax,%eax
call   1050 <printf@plt>
mov    0x5c(%rsp),%edx
mov    %rbx,%rdi
mov    $0xf,%esi
xor    %eax,%eax
call   1050 <printf@plt>
mov    0x60(%rsp),%edx
mov    %rbx,%rdi
mov    $0x10,%esi
xor    %eax,%eax
call   1050 <printf@plt>
mov    0x64(%rsp),%edx
mov    %rbx,%rdi
mov    $0x11,%esi
xor    %eax,%eax
call   1050 <printf@plt>
mov    0x68(%rsp),%edx
mov    %rbx,%rdi
mov    $0x12,%esi
xor    %eax,%eax
call   1050 <printf@plt>
mov    0x6c(%rsp),%edx
mov    %rbx,%rdi
mov    $0x13,%esi
xor    %eax,%eax
call   1050 <printf@plt>
lea    0x120(%rsp),%r14
mov    $0x190,%edx
mov    %r14,%rdi
mov    $0x20,%esi
call   1060 <memset@plt>
mov    $0x1,%ebx
jmp    16ee <main+0x59e>
xchg   %ax,%ax
add    $0x2,%rbx
add    $0x28,%r14
cmp    $0x15,%rbx
je     1751 <main+0x601>
mov    0x1c(%rsp,%rbx,4),%eax
cmp    $0xffffff87,%eax
jl     171e <main+0x5ce>
cltq
imul   $0x4325c53f,%rax,%rdx
mov    %rdx,%rax
shr    $0x3f,%rax
sar    $0x25,%rdx
add    %eax,%edx
add    $0x1,%rdx
mov    %r14,%rdi
mov    $0x2a,%esi
call   1060 <memset@plt>
mov    0x20(%rsp,%rbx,4),%eax
cmp    $0xffffff87,%eax
jl     16e0 <main+0x590>
cltq
imul   $0x4325c53f,%rax,%rdx
mov    %rdx,%rax
shr    $0x3f,%rax
sar    $0x25,%rdx
add    %eax,%edx
lea    0x14(%r14),%rdi
add    $0x1,%rdx
mov    $0x2a,%esi
call   1060 <memset@plt>
jmp    16e0 <main+0x590>
movsd  0x80(%rsp),%xmm0
lea    0x133(%rsp),%rbx
mov    $0x1,%r15d
lea    0x9b8(%rip),%r14
nop
movsd  0x80(%rsp,%r15,8),%xmm1
movsd  %xmm1,(%rsp)
mov    %r14,%rdi
mov    $0x2,%al
call   1050 <printf@plt>
movsbl -0x13(%rbx),%edi
call   1030 <putchar@plt>
movsbl -0x12(%rbx),%edi
call   1030 <putchar@plt>
movsbl -0x11(%rbx),%edi
call   1030 <putchar@plt>
movsbl -0x10(%rbx),%edi
call   1030 <putchar@plt>
movsbl -0xf(%rbx),%edi
call   1030 <putchar@plt>
movsbl -0xe(%rbx),%edi
call   1030 <putchar@plt>
movsbl -0xd(%rbx),%edi
call   1030 <putchar@plt>
movsbl -0xc(%rbx),%edi
call   1030 <putchar@plt>
movsbl -0xb(%rbx),%edi
call   1030 <putchar@plt>
movsbl -0xa(%rbx),%edi
call   1030 <putchar@plt>
movsbl -0x9(%rbx),%edi
call   1030 <putchar@plt>
movsbl -0x8(%rbx),%edi
call   1030 <putchar@plt>
movsbl -0x7(%rbx),%edi
call   1030 <putchar@plt>
movsbl -0x6(%rbx),%edi
call   1030 <putchar@plt>
movsbl -0x5(%rbx),%edi
call   1030 <putchar@plt>
movsbl -0x4(%rbx),%edi
call   1030 <putchar@plt>
movsbl -0x3(%rbx),%edi
call   1030 <putchar@plt>
movsbl -0x2(%rbx),%edi
call   1030 <putchar@plt>
movsbl -0x1(%rbx),%edi
call   1030 <putchar@plt>
movsbl (%rbx),%edi
call   1030 <putchar@plt>
mov    $0xa,%edi
call   1030 <putchar@plt>
add    $0x14,%rbx
add    $0x1,%r15
movsd  (%rsp),%xmm0
cmp    $0x15,%r15
jne    1770 <main+0x620>
lea    0x8e8(%rip),%rdi
call   1040 <puts@plt>
xor    %ebx,%ebx
nopl   0x0(%rax,%rax,1)
movsbl 0x133(%rsp,%rbx,1),%edi
call   1030 <putchar@plt>
movsbl 0x147(%rsp,%rbx,1),%edi
call   1030 <putchar@plt>
movsbl 0x15b(%rsp,%rbx,1),%edi
call   1030 <putchar@plt>
movsbl 0x16f(%rsp,%rbx,1),%edi
call   1030 <putchar@plt>
movsbl 0x183(%rsp,%rbx,1),%edi
call   1030 <putchar@plt>
movsbl 0x197(%rsp,%rbx,1),%edi
call   1030 <putchar@plt>
movsbl 0x1ab(%rsp,%rbx,1),%edi
call   1030 <putchar@plt>
movsbl 0x1bf(%rsp,%rbx,1),%edi
call   1030 <putchar@plt>
movsbl 0x1d3(%rsp,%rbx,1),%edi
call   1030 <putchar@plt>
movsbl 0x1e7(%rsp,%rbx,1),%edi
call   1030 <putchar@plt>
movsbl 0x1fb(%rsp,%rbx,1),%edi
call   1030 <putchar@plt>
movsbl 0x20f(%rsp,%rbx,1),%edi
call   1030 <putchar@plt>
movsbl 0x223(%rsp,%rbx,1),%edi
call   1030 <putchar@plt>
movsbl 0x237(%rsp,%rbx,1),%edi
call   1030 <putchar@plt>
movsbl 0x24b(%rsp,%rbx,1),%edi
call   1030 <putchar@plt>
movsbl 0x25f(%rsp,%rbx,1),%edi
call   1030 <putchar@plt>
movsbl 0x273(%rsp,%rbx,1),%edi
call   1030 <putchar@plt>
movsbl 0x287(%rsp,%rbx,1),%edi
call   1030 <putchar@plt>
movsbl 0x29b(%rsp,%rbx,1),%edi
call   1030 <putchar@plt>
movsbl 0x2af(%rsp,%rbx,1),%edi
call   1030 <putchar@plt>
mov    $0xa,%edi
call   1030 <putchar@plt>
add    $0xffffffffffffffff,%rbx
cmp    $0xffffffffffffffec,%rbx
jne    1870 <main+0x720>
xor    %eax,%eax
add    $0x273b0,%rsp
pop    %rbx
pop    %r14
pop    %r15
ret
mov    %r15d,%edx
mov    %r15d,%eax
and    $0x1,%eax
sub    %rax,%rdx
xorpd  %xmm0,%xmm0
xor    %ecx,%ecx
movsd  0x653(%rip),%xmm1
xor    %eax,%eax
movsd  0x18(%rsp),%xmm4
jmp    19da <main+0x88a>
nop
addsd  %xmm2,%xmm0
addsd  %xmm3,%xmm0
mov    %bl,%sil
add    %esi,%eax
add    $0x2,%rcx
cmp    %rcx,%rdx
je     12e4 <main+0x194>
movsd  0x2b0(%rsp,%rcx,8),%xmm2
xor    %esi,%esi
ucomisd %xmm4,%xmm2
seta   %bl
ja     19f2 <main+0x8a2>
movapd %xmm1,%xmm2
movsd  0x2b8(%rsp,%rcx,8),%xmm3
mov    %bl,%sil
add    %esi,%eax
xor    %esi,%esi
ucomisd %xmm4,%xmm3
seta   %bl
ja     19c0 <main+0x870>
movapd %xmm1,%xmm3
jmp    19c0 <main+0x870>

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

LLVM IR (-O2):
@.str = [4 x i8] c"%lf\00"
@.str.1 = [39 x i8] c"med = %.3lf, min = %.3lf, max = %.3lf\0A\00"
@.str.2 = [48 x i8] c"M\C3\A9dia das temperaturas acima da m\C3\A9dia: %.3lf\0A\00"
@.str.3 = [12 x i8] c"aux[%d]=%d\0A\00"
@.str.4 = [37 x i8] c"Temperaturas entre %6.3lf e %6.3lf: \00"
@str = [24 x i8] c"Histograma na vertical:\00"
define i32 @main() {
%1 = alloca [20000 x double]
%2 = alloca [20 x double]
%3 = alloca [20 x i32]
%4 = alloca [20 x [20 x i8]]
%5 = getelementptr inbounds [20 x [20 x i8]], [20 x [20 x i8]]* %4, i64 0, i64 0, i64 0
%6 = bitcast [20000 x double]* %1 to i8*
br label %7
7: ; preds = %7, %0
%8 = phi i64 [ %12, %7 ], [ 0, %0 ]
%9 = getelementptr inbounds [20000 x double], [20000 x double]* %1, i64 0, i64 %8
%10 = call i64 @scanf(i8* getelementptr inbounds ([4 x i8], [4 x i8]* @.str, i64 0, i64 0), double* %9)
%11 = icmp sgt i64 %10, 0
%12 = add nuw i64 %8, 1
br i1 %11, label %7, label %13
13: ; preds = %7
%14 = trunc i64 %8 to i32
%15 = getelementptr inbounds [20000 x double], [20000 x double]* %1, i64 0, i64 0
%16 = load double, double* %15
%17 = icmp eq i32 %14, 0
br i1 %17, label %18, label %22
18: ; preds = %13
%19 = sitofp i32 %14 to double
%20 = fdiv double 0.000000e+00, %19
%21 = call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([39 x i8], [39 x i8]* @.str.1, i64 0, i64 0), double %20, double %16, double %16)
br label %105
22: ; preds = %13
%23 = and i64 %8, 4294967295
%24 = fadd double %16, 0.000000e+00
%25 = icmp eq i64 %23, 1
br i1 %25, label %49, label %26
26: ; preds = %22
%27 = add nsw i64 %23, -1
%28 = and i64 %27, 1
%29 = icmp eq i64 %23, 2
br i1 %29, label %32, label %30
30: ; preds = %26
%31 = and i64 %27, -2
br label %61
32: ; preds = %61, %26
%33 = phi double [ undef, %26 ], [ %77, %61 ]
%34 = phi double [ undef, %26 ], [ %79, %61 ]
%35 = phi double [ undef, %26 ], [ %81, %61 ]
%36 = phi i64 [ 1, %26 ], [ %82, %61 ]
%37 = phi double [ %16, %26 ], [ %81, %61 ]
%38 = phi double [ %16, %26 ], [ %79, %61 ]
%39 = phi double [ %24, %26 ], [ %77, %61 ]
%40 = icmp eq i64 %28, 0
br i1 %40, label %49, label %41
41: ; preds = %32
%42 = getelementptr inbounds [20000 x double], [20000 x double]* %1, i64 0, i64 %36
%43 = load double, double* %42
%44 = fadd double %39, %43
%45 = fcmp ogt double %43, %38
%46 = select i1 %45, double %43, double %38
%47 = fcmp olt double %43, %37
%48 = select i1 %47, double %43, double %37
br label %49
49: ; preds = %41, %32, %22
%50 = phi double [ %24, %22 ], [ %33, %32 ], [ %44, %41 ]
%51 = phi double [ %16, %22 ], [ %34, %32 ], [ %46, %41 ]
%52 = phi double [ %16, %22 ], [ %35, %32 ], [ %48, %41 ]
%53 = sitofp i32 %14 to double
%54 = fdiv double %50, %53
%55 = call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([39 x i8], [39 x i8]* @.str.1, i64 0, i64 0), double %54, double %52, double %51)
br i1 %17, label %105, label %56
56: ; preds = %49
%57 = and i64 %8, 1
%58 = icmp eq i64 %23, 1
br i1 %58, label %85, label %59
59: ; preds = %56
%60 = sub nsw i64 %23, %57
br label %172
61: ; preds = %61, %30
%62 = phi i64 [ 1, %30 ], [ %82, %61 ]
%63 = phi double [ %16, %30 ], [ %81, %61 ]
%64 = phi double [ %16, %30 ], [ %79, %61 ]
%65 = phi double [ %24, %30 ], [ %77, %61 ]
%66 = phi i64 [ 0, %30 ], [ %83, %61 ]
%67 = getelementptr inbounds [20000 x double], [20000 x double]* %1, i64 0, i64 %62
%68 = load double, double* %67
%69 = fadd double %65, %68
%70 = fcmp ogt double %68, %64
%71 = select i1 %70, double %68, double %64
%72 = fcmp olt double %68, %63
%73 = select i1 %72, double %68, double %63
%74 = add nuw nsw i64 %62, 1
%75 = getelementptr inbounds [20000 x double], [20000 x double]* %1, i64 0, i64 %74
%76 = load double, double* %75
%77 = fadd double %69, %76
%78 = fcmp ogt double %76, %71
%79 = select i1 %78, double %76, double %71
%80 = fcmp olt double %76, %73
%81 = select i1 %80, double %76, double %73
%82 = add nuw nsw i64 %62, 2
%83 = add i64 %66, 2
%84 = icmp eq i64 %83, %31
br i1 %84, label %32, label %61
85: ; preds = %172, %56
%86 = phi double [ undef, %56 ], [ %189, %172 ]
%87 = phi i32 [ undef, %56 ], [ %191, %172 ]
%88 = phi i64 [ 0, %56 ], [ %192, %172 ]
%89 = phi i32 [ 0, %56 ], [ %191, %172 ]
%90 = phi double [ 0.000000e+00, %56 ], [ %189, %172 ]
%91 = icmp eq i64 %57, 0
br i1 %91, label %100, label %92
92: ; preds = %85
%93 = getelementptr inbounds [20000 x double], [20000 x double]* %1, i64 0, i64 %88
%94 = load double, double* %93
%95 = fcmp ogt double %94, %54
%96 = select i1 %95, double %94, double -0.000000e+00
%97 = fadd double %90, %96
%98 = zext i1 %95 to i32
%99 = add nuw nsw i32 %89, %98
br label %100
100: ; preds = %85, %92
%101 = phi double [ %86, %85 ], [ %97, %92 ]
%102 = phi i32 [ %87, %85 ], [ %99, %92 ]
%103 = sitofp i32 %102 to double
%104 = fdiv double %101, %103
br label %105
105: ; preds = %18, %100, %49
%106 = phi double [ %51, %100 ], [ %51, %49 ], [ %16, %18 ]
%107 = phi double [ %52, %100 ], [ %52, %49 ], [ %16, %18 ]
%108 = phi double [ %104, %100 ], [ 0x7FF8000000000000, %49 ], [ 0x7FF8000000000000, %18 ]
%109 = call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([48 x i8], [48 x i8]* @.str.2, i64 0, i64 0), double %108)
%110 = bitcast [20 x double]* %2 to i8*
%111 = fsub double %106, %107
%112 = insertelement <2 x double> poison, double %111, i64 0
%113 = shufflevector <2 x double> %112, <2 x double> poison, <2 x i32> zeroinitializer
%114 = insertelement <2 x double> poison, double %107, i64 0
%115 = shufflevector <2 x double> %114, <2 x double> poison, <2 x i32> zeroinitializer
%116 = fmul <2 x double> %113, <double 0.000000e+00, double 1.000000e+00>
%117 = fdiv <2 x double> %116, <double 2.000000e+01, double 2.000000e+01>
%118 = fadd <2 x double> %115, %117
%119 = bitcast [20 x double]* %2 to <2 x double>*
store <2 x double> %118, <2 x double>* %119
%120 = fmul <2 x double> %113, <double 2.000000e+00, double 3.000000e+00>
%121 = fdiv <2 x double> %120, <double 2.000000e+01, double 2.000000e+01>
%122 = fadd <2 x double> %115, %121
%123 = getelementptr inbounds [20 x double], [20 x double]* %2, i64 0, i64 2
%124 = bitcast double* %123 to <2 x double>*
store <2 x double> %122, <2 x double>* %124
%125 = fmul <2 x double> %113, <double 4.000000e+00, double 5.000000e+00>
%126 = fdiv <2 x double> %125, <double 2.000000e+01, double 2.000000e+01>
%127 = fadd <2 x double> %115, %126
%128 = getelementptr inbounds [20 x double], [20 x double]* %2, i64 0, i64 4
%129 = bitcast double* %128 to <2 x double>*
store <2 x double> %127, <2 x double>* %129
%130 = fmul <2 x double> %113, <double 6.000000e+00, double 7.000000e+00>
%131 = fdiv <2 x double> %130, <double 2.000000e+01, double 2.000000e+01>
%132 = fadd <2 x double> %115, %131
%133 = getelementptr inbounds [20 x double], [20 x double]* %2, i64 0, i64 6
%134 = bitcast double* %133 to <2 x double>*
store <2 x double> %132, <2 x double>* %134
%135 = fmul <2 x double> %113, <double 8.000000e+00, double 9.000000e+00>
%136 = fdiv <2 x double> %135, <double 2.000000e+01, double 2.000000e+01>
%137 = fadd <2 x double> %115, %136
%138 = getelementptr inbounds [20 x double], [20 x double]* %2, i64 0, i64 8
%139 = bitcast double* %138 to <2 x double>*
store <2 x double> %137, <2 x double>* %139
%140 = fmul <2 x double> %113, <double 1.000000e+01, double 1.100000e+01>
%141 = fdiv <2 x double> %140, <double 2.000000e+01, double 2.000000e+01>
%142 = fadd <2 x double> %115, %141
%143 = getelementptr inbounds [20 x double], [20 x double]* %2, i64 0, i64 10
%144 = bitcast double* %143 to <2 x double>*
store <2 x double> %142, <2 x double>* %144
%145 = fmul <2 x double> %113, <double 1.200000e+01, double 1.300000e+01>
%146 = fdiv <2 x double> %145, <double 2.000000e+01, double 2.000000e+01>
%147 = fadd <2 x double> %115, %146
%148 = getelementptr inbounds [20 x double], [20 x double]* %2, i64 0, i64 12
%149 = bitcast double* %148 to <2 x double>*
store <2 x double> %147, <2 x double>* %149
%150 = fmul <2 x double> %113, <double 1.400000e+01, double 1.500000e+01>
%151 = fdiv <2 x double> %150, <double 2.000000e+01, double 2.000000e+01>
%152 = fadd <2 x double> %115, %151
%153 = getelementptr inbounds [20 x double], [20 x double]* %2, i64 0, i64 14
%154 = bitcast double* %153 to <2 x double>*
store <2 x double> %152, <2 x double>* %154
%155 = fmul <2 x double> %113, <double 1.600000e+01, double 1.700000e+01>
%156 = fdiv <2 x double> %155, <double 2.000000e+01, double 2.000000e+01>
%157 = fadd <2 x double> %115, %156
%158 = getelementptr inbounds [20 x double], [20 x double]* %2, i64 0, i64 16
%159 = bitcast double* %158 to <2 x double>*
store <2 x double> %157, <2 x double>* %159
%160 = fmul <2 x double> %113, <double 1.800000e+01, double 1.900000e+01>
%161 = fdiv <2 x double> %160, <double 2.000000e+01, double 2.000000e+01>
%162 = fadd <2 x double> %115, %161
%163 = getelementptr inbounds [20 x double], [20 x double]* %2, i64 0, i64 18
%164 = bitcast double* %163 to <2 x double>*
store <2 x double> %162, <2 x double>* %164
%165 = fmul double %111, 2.000000e+01
%166 = fdiv double %165, 2.000000e+01
%167 = fadd double %107, %166
%168 = getelementptr inbounds [20 x double], [20 x double]* %2, i64 0, i64 20
store double %167, double* %168
%169 = bitcast [20 x i32]* %3 to i8*
%170 = add i64 %8, 1
%171 = and i64 %170, 4294967295
br label %195
172: ; preds = %172, %59
%173 = phi i64 [ 0, %59 ], [ %192, %172 ]
%174 = phi i32 [ 0, %59 ], [ %191, %172 ]
%175 = phi double [ 0.000000e+00, %59 ], [ %189, %172 ]
%176 = phi i64 [ 0, %59 ], [ %193, %172 ]
%177 = getelementptr inbounds [20000 x double], [20000 x double]* %1, i64 0, i64 %173
%178 = load double, double* %177
%179 = fcmp ogt double %178, %54
%180 = select i1 %179, double %178, double -0.000000e+00
%181 = fadd double %175, %180
%182 = zext i1 %179 to i32
%183 = add nuw nsw i32 %174, %182
%184 = or i64 %173, 1
%185 = getelementptr inbounds [20000 x double], [20000 x double]* %1, i64 0, i64 %184
%186 = load double, double* %185
%187 = fcmp ogt double %186, %54
%188 = select i1 %187, double %186, double -0.000000e+00
%189 = fadd double %181, %188
%190 = zext i1 %187 to i32
%191 = add nuw nsw i32 %183, %190
%192 = add nuw nsw i64 %173, 2
%193 = add i64 %176, 2
%194 = icmp eq i64 %193, %60
br i1 %194, label %85, label %172
195: ; preds = %105, %199
%196 = phi i64 [ 0, %105 ], [ %200, %199 ]
%197 = getelementptr inbounds [20000 x double], [20000 x double]* %1, i64 0, i64 %196
%198 = load double, double* %197
br label %264
199: ; preds = %291
%200 = add nuw nsw i64 %196, 1
%201 = icmp eq i64 %200, %171
br i1 %201, label %202, label %195
202: ; preds = %199
%203 = getelementptr inbounds [20 x i32], [20 x i32]* %3, i64 0, i64 0
%204 = load i32, i32* %203
%205 = call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([12 x i8], [12 x i8]* @.str.3, i64 0, i64 0), i32 0, i32 %204)
%206 = getelementptr inbounds [20 x i32], [20 x i32]* %3, i64 0, i64 1
%207 = load i32, i32* %206
%208 = call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([12 x i8], [12 x i8]* @.str.3, i64 0, i64 0), i32 1, i32 %207)
%209 = getelementptr inbounds [20 x i32], [20 x i32]* %3, i64 0, i64 2
%210 = load i32, i32* %209
%211 = call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([12 x i8], [12 x i8]* @.str.3, i64 0, i64 0), i32 2, i32 %210)
%212 = getelementptr inbounds [20 x i32], [20 x i32]* %3, i64 0, i64 3
%213 = load i32, i32* %212
%214 = call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([12 x i8], [12 x i8]* @.str.3, i64 0, i64 0), i32 3, i32 %213)
%215 = getelementptr inbounds [20 x i32], [20 x i32]* %3, i64 0, i64 4
%216 = load i32, i32* %215
%217 = call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([12 x i8], [12 x i8]* @.str.3, i64 0, i64 0), i32 4, i32 %216)
%218 = getelementptr inbounds [20 x i32], [20 x i32]* %3, i64 0, i64 5
%219 = load i32, i32* %218
%220 = call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([12 x i8], [12 x i8]* @.str.3, i64 0, i64 0), i32 5, i32 %219)
%221 = getelementptr inbounds [20 x i32], [20 x i32]* %3, i64 0, i64 6
%222 = load i32, i32* %221
%223 = call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([12 x i8], [12 x i8]* @.str.3, i64 0, i64 0), i32 6, i32 %222)
%224 = getelementptr inbounds [20 x i32], [20 x i32]* %3, i64 0, i64 7
%225 = load i32, i32* %224
%226 = call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([12 x i8], [12 x i8]* @.str.3, i64 0, i64 0), i32 7, i32 %225)
%227 = getelementptr inbounds [20 x i32], [20 x i32]* %3, i64 0, i64 8
%228 = load i32, i32* %227
%229 = call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([12 x i8], [12 x i8]* @.str.3, i64 0, i64 0), i32 8, i32 %228)
%230 = getelementptr inbounds [20 x i32], [20 x i32]* %3, i64 0, i64 9
%231 = load i32, i32* %230
%232 = call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([12 x i8], [12 x i8]* @.str.3, i64 0, i64 0), i32 9, i32 %231)
%233 = getelementptr inbounds [20 x i32], [20 x i32]* %3, i64 0, i64 10
%234 = load i32, i32* %233
%235 = call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([12 x i8], [12 x i8]* @.str.3, i64 0, i64 0), i32 10, i32 %234)
%236 = getelementptr inbounds [20 x i32], [20 x i32]* %3, i64 0, i64 11
%237 = load i32, i32* %236
%238 = call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([12 x i8], [12 x i8]* @.str.3, i64 0, i64 0), i32 11, i32 %237)
%239 = getelementptr inbounds [20 x i32], [20 x i32]* %3, i64 0, i64 12
%240 = load i32, i32* %239
%241 = call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([12 x i8], [12 x i8]* @.str.3, i64 0, i64 0), i32 12, i32 %240)
%242 = getelementptr inbounds [20 x i32], [20 x i32]* %3, i64 0, i64 13
%243 = load i32, i32* %242
%244 = call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([12 x i8], [12 x i8]* @.str.3, i64 0, i64 0), i32 13, i32 %243)
%245 = getelementptr inbounds [20 x i32], [20 x i32]* %3, i64 0, i64 14
%246 = load i32, i32* %245
%247 = call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([12 x i8], [12 x i8]* @.str.3, i64 0, i64 0), i32 14, i32 %246)
%248 = getelementptr inbounds [20 x i32], [20 x i32]* %3, i64 0, i64 15
%249 = load i32, i32* %248
%250 = call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([12 x i8], [12 x i8]* @.str.3, i64 0, i64 0), i32 15, i32 %249)
%251 = getelementptr inbounds [20 x i32], [20 x i32]* %3, i64 0, i64 16
%252 = load i32, i32* %251
%253 = call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([12 x i8], [12 x i8]* @.str.3, i64 0, i64 0), i32 16, i32 %252)
%254 = getelementptr inbounds [20 x i32], [20 x i32]* %3, i64 0, i64 17
%255 = load i32, i32* %254
%256 = call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([12 x i8], [12 x i8]* @.str.3, i64 0, i64 0), i32 17, i32 %255)
%257 = getelementptr inbounds [20 x i32], [20 x i32]* %3, i64 0, i64 18
%258 = load i32, i32* %257
%259 = call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([12 x i8], [12 x i8]* @.str.3, i64 0, i64 0), i32 18, i32 %258)
%260 = getelementptr inbounds [20 x i32], [20 x i32]* %3, i64 0, i64 19
%261 = load i32, i32* %260
%262 = call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([12 x i8], [12 x i8]* @.str.3, i64 0, i64 0), i32 19, i32 %261)
%263 = getelementptr inbounds [20 x [20 x i8]], [20 x [20 x i8]]* %4, i64 0, i64 0, i64 0
br label %293
264: ; preds = %291, %195
%265 = phi i64 [ 0, %195 ], [ %282, %291 ]
%266 = getelementptr inbounds [20 x double], [20 x double]* %2, i64 0, i64 %265
%267 = load double, double* %266
%268 = fcmp ult double %198, %267
%269 = or i64 %265, 1
br i1 %268, label %278, label %270
270: ; preds = %264
%271 = getelementptr inbounds [20 x double], [20 x double]* %2, i64 0, i64 %269
%272 = load double, double* %271
%273 = fcmp olt double %198, %272
br i1 %273, label %274, label %278
274: ; preds = %270
%275 = getelementptr inbounds [20 x i32], [20 x i32]* %3, i64 0, i64 %265
%276 = load i32, i32* %275
%277 = add nsw i32 %276, 1
store i32 %277, i32* %275
br label %278
278: ; preds = %264, %270, %274
%279 = getelementptr inbounds [20 x double], [20 x double]* %2, i64 0, i64 %269
%280 = load double, double* %279
%281 = fcmp ult double %198, %280
%282 = add nuw nsw i64 %265, 2
br i1 %281, label %291, label %283
283: ; preds = %278
%284 = getelementptr inbounds [20 x double], [20 x double]* %2, i64 0, i64 %282
%285 = load double, double* %284
%286 = fcmp olt double %198, %285
br i1 %286, label %287, label %291
287: ; preds = %283
%288 = getelementptr inbounds [20 x i32], [20 x i32]* %3, i64 0, i64 %269
%289 = load i32, i32* %288
%290 = add nsw i32 %289, 1
store i32 %290, i32* %288
br label %291
291: ; preds = %287, %283, %278
%292 = icmp eq i64 %282, 20
br i1 %292, label %199, label %264
293: ; preds = %313, %202
%294 = phi i64 [ 0, %202 ], [ %314, %313 ]
%295 = getelementptr inbounds [20 x i32], [20 x i32]* %3, i64 0, i64 %294
%296 = load i32, i32* %295
%297 = icmp slt i32 %296, -121
br i1 %297, label %303, label %298
298: ; preds = %293
%299 = sdiv i32 %296, 122
%300 = getelementptr [20 x [20 x i8]], [20 x [20 x i8]]* %4, i64 0, i64 %294, i64 0
%301 = zext i32 %299 to i64
%302 = add nuw nsw i64 %301, 1
br label %303
303: ; preds = %298, %293
%304 = or i64 %294, 1
%305 = getelementptr inbounds [20 x i32], [20 x i32]* %3, i64 0, i64 %304
%306 = load i32, i32* %305
%307 = icmp slt i32 %306, -121
br i1 %307, label %313, label %308
308: ; preds = %303
%309 = sdiv i32 %306, 122
%310 = getelementptr [20 x [20 x i8]], [20 x [20 x i8]]* %4, i64 0, i64 %304, i64 0
%311 = zext i32 %309 to i64
%312 = add nuw nsw i64 %311, 1
br label %313
313: ; preds = %308, %303
%314 = add nuw nsw i64 %294, 2
%315 = icmp eq i64 %314, 20
br i1 %315, label %316, label %293
316: ; preds = %313
%317 = getelementptr inbounds [20 x double], [20 x double]* %2, i64 0, i64 0
%318 = load double, double* %317
br label %321
319: ; preds = %321
%320 = call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([24 x i8], [24 x i8]* @str, i64 0, i64 0))
br label %410
321: ; preds = %316, %321
%322 = phi double [ %318, %316 ], [ %326, %321 ]
%323 = phi i64 [ 0, %316 ], [ %324, %321 ]
%324 = add nuw nsw i64 %323, 1
%325 = getelementptr inbounds [20 x double], [20 x double]* %2, i64 0, i64 %324
%326 = load double, double* %325
%327 = call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([37 x i8], [37 x i8]* @.str.4, i64 0, i64 0), double %322, double %326)
%328 = getelementptr inbounds [20 x [20 x i8]], [20 x [20 x i8]]* %4, i64 0, i64 %323, i64 0
%329 = load i8, i8* %328
%330 = sext i8 %329 to i32
%331 = call i32 @putchar(i32 %330)
%332 = getelementptr inbounds [20 x [20 x i8]], [20 x [20 x i8]]* %4, i64 0, i64 %323, i64 1
%333 = load i8, i8* %332
%334 = sext i8 %333 to i32
%335 = call i32 @putchar(i32 %334)
%336 = getelementptr inbounds [20 x [20 x i8]], [20 x [20 x i8]]* %4, i64 0, i64 %323, i64 2
%337 = load i8, i8* %336
%338 = sext i8 %337 to i32
%339 = call i32 @putchar(i32 %338)
%340 = getelementptr inbounds [20 x [20 x i8]], [20 x [20 x i8]]* %4, i64 0, i64 %323, i64 3
%341 = load i8, i8* %340
%342 = sext i8 %341 to i32
%343 = call i32 @putchar(i32 %342)
%344 = getelementptr inbounds [20 x [20 x i8]], [20 x [20 x i8]]* %4, i64 0, i64 %323, i64 4
%345 = load i8, i8* %344
%346 = sext i8 %345 to i32
%347 = call i32 @putchar(i32 %346)
%348 = getelementptr inbounds [20 x [20 x i8]], [20 x [20 x i8]]* %4, i64 0, i64 %323, i64 5
%349 = load i8, i8* %348
%350 = sext i8 %349 to i32
%351 = call i32 @putchar(i32 %350)
%352 = getelementptr inbounds [20 x [20 x i8]], [20 x [20 x i8]]* %4, i64 0, i64 %323, i64 6
%353 = load i8, i8* %352
%354 = sext i8 %353 to i32
%355 = call i32 @putchar(i32 %354)
%356 = getelementptr inbounds [20 x [20 x i8]], [20 x [20 x i8]]* %4, i64 0, i64 %323, i64 7
%357 = load i8, i8* %356
%358 = sext i8 %357 to i32
%359 = call i32 @putchar(i32 %358)
%360 = getelementptr inbounds [20 x [20 x i8]], [20 x [20 x i8]]* %4, i64 0, i64 %323, i64 8
%361 = load i8, i8* %360
%362 = sext i8 %361 to i32
%363 = call i32 @putchar(i32 %362)
%364 = getelementptr inbounds [20 x [20 x i8]], [20 x [20 x i8]]* %4, i64 0, i64 %323, i64 9
%365 = load i8, i8* %364
%366 = sext i8 %365 to i32
%367 = call i32 @putchar(i32 %366)
%368 = getelementptr inbounds [20 x [20 x i8]], [20 x [20 x i8]]* %4, i64 0, i64 %323, i64 10
%369 = load i8, i8* %368
%370 = sext i8 %369 to i32
%371 = call i32 @putchar(i32 %370)
%372 = getelementptr inbounds [20 x [20 x i8]], [20 x [20 x i8]]* %4, i64 0, i64 %323, i64 11
%373 = load i8, i8* %372
%374 = sext i8 %373 to i32
%375 = call i32 @putchar(i32 %374)
%376 = getelementptr inbounds [20 x [20 x i8]], [20 x [20 x i8]]* %4, i64 0, i64 %323, i64 12
%377 = load i8, i8* %376
%378 = sext i8 %377 to i32
%379 = call i32 @putchar(i32 %378)
%380 = getelementptr inbounds [20 x [20 x i8]], [20 x [20 x i8]]* %4, i64 0, i64 %323, i64 13
%381 = load i8, i8* %380
%382 = sext i8 %381 to i32
%383 = call i32 @putchar(i32 %382)
%384 = getelementptr inbounds [20 x [20 x i8]], [20 x [20 x i8]]* %4, i64 0, i64 %323, i64 14
%385 = load i8, i8* %384
%386 = sext i8 %385 to i32
%387 = call i32 @putchar(i32 %386)
%388 = getelementptr inbounds [20 x [20 x i8]], [20 x [20 x i8]]* %4, i64 0, i64 %323, i64 15
%389 = load i8, i8* %388
%390 = sext i8 %389 to i32
%391 = call i32 @putchar(i32 %390)
%392 = getelementptr inbounds [20 x [20 x i8]], [20 x [20 x i8]]* %4, i64 0, i64 %323, i64 16
%393 = load i8, i8* %392
%394 = sext i8 %393 to i32
%395 = call i32 @putchar(i32 %394)
%396 = getelementptr inbounds [20 x [20 x i8]], [20 x [20 x i8]]* %4, i64 0, i64 %323, i64 17
%397 = load i8, i8* %396
%398 = sext i8 %397 to i32
%399 = call i32 @putchar(i32 %398)
%400 = getelementptr inbounds [20 x [20 x i8]], [20 x [20 x i8]]* %4, i64 0, i64 %323, i64 18
%401 = load i8, i8* %400
%402 = sext i8 %401 to i32
%403 = call i32 @putchar(i32 %402)
%404 = getelementptr inbounds [20 x [20 x i8]], [20 x [20 x i8]]* %4, i64 0, i64 %323, i64 19
%405 = load i8, i8* %404
%406 = sext i8 %405 to i32
%407 = call i32 @putchar(i32 %406)
%408 = call i32 @putchar(i32 10)
%409 = icmp eq i64 %324, 20
br i1 %409, label %319, label %321
410: ; preds = %319, %410
%411 = phi i64 [ 19, %319 ], [ %493, %410 ]
%412 = getelementptr inbounds [20 x [20 x i8]], [20 x [20 x i8]]* %4, i64 0, i64 0, i64 %411
%413 = load i8, i8* %412
%414 = sext i8 %413 to i32
%415 = call i32 @putchar(i32 %414)
%416 = getelementptr inbounds [20 x [20 x i8]], [20 x [20 x i8]]* %4, i64 0, i64 1, i64 %411
%417 = load i8, i8* %416
%418 = sext i8 %417 to i32
%419 = call i32 @putchar(i32 %418)
%420 = getelementptr inbounds [20 x [20 x i8]], [20 x [20 x i8]]* %4, i64 0, i64 2, i64 %411
%421 = load i8, i8* %420
%422 = sext i8 %421 to i32
%423 = call i32 @putchar(i32 %422)
%424 = getelementptr inbounds [20 x [20 x i8]], [20 x [20 x i8]]* %4, i64 0, i64 3, i64 %411
%425 = load i8, i8* %424
%426 = sext i8 %425 to i32
%427 = call i32 @putchar(i32 %426)
%428 = getelementptr inbounds [20 x [20 x i8]], [20 x [20 x i8]]* %4, i64 0, i64 4, i64 %411
%429 = load i8, i8* %428
%430 = sext i8 %429 to i32
%431 = call i32 @putchar(i32 %430)
%432 = getelementptr inbounds [20 x [20 x i8]], [20 x [20 x i8]]* %4, i64 0, i64 5, i64 %411
%433 = load i8, i8* %432
%434 = sext i8 %433 to i32
%435 = call i32 @putchar(i32 %434)
%436 = getelementptr inbounds [20 x [20 x i8]], [20 x [20 x i8]]* %4, i64 0, i64 6, i64 %411
%437 = load i8, i8* %436
%438 = sext i8 %437 to i32
%439 = call i32 @putchar(i32 %438)
%440 = getelementptr inbounds [20 x [20 x i8]], [20 x [20 x i8]]* %4, i64 0, i64 7, i64 %411
%441 = load i8, i8* %440
%442 = sext i8 %441 to i32
%443 = call i32 @putchar(i32 %442)
%444 = getelementptr inbounds [20 x [20 x i8]], [20 x [20 x i8]]* %4, i64 0, i64 8, i64 %411
%445 = load i8, i8* %444
%446 = sext i8 %445 to i32
%447 = call i32 @putchar(i32 %446)
%448 = getelementptr inbounds [20 x [20 x i8]], [20 x [20 x i8]]* %4, i64 0, i64 9, i64 %411
%449 = load i8, i8* %448
%450 = sext i8 %449 to i32
%451 = call i32 @putchar(i32 %450)
%452 = getelementptr inbounds [20 x [20 x i8]], [20 x [20 x i8]]* %4, i64 0, i64 10, i64 %411
%453 = load i8, i8* %452
%454 = sext i8 %453 to i32
%455 = call i32 @putchar(i32 %454)
%456 = getelementptr inbounds [20 x [20 x i8]], [20 x [20 x i8]]* %4, i64 0, i64 11, i64 %411
%457 = load i8, i8* %456
%458 = sext i8 %457 to i32
%459 = call i32 @putchar(i32 %458)
%460 = getelementptr inbounds [20 x [20 x i8]], [20 x [20 x i8]]* %4, i64 0, i64 12, i64 %411
%461 = load i8, i8* %460
%462 = sext i8 %461 to i32
%463 = call i32 @putchar(i32 %462)
%464 = getelementptr inbounds [20 x [20 x i8]], [20 x [20 x i8]]* %4, i64 0, i64 13, i64 %411
%465 = load i8, i8* %464
%466 = sext i8 %465 to i32
%467 = call i32 @putchar(i32 %466)
%468 = getelementptr inbounds [20 x [20 x i8]], [20 x [20 x i8]]* %4, i64 0, i64 14, i64 %411
%469 = load i8, i8* %468
%470 = sext i8 %469 to i32
%471 = call i32 @putchar(i32 %470)
%472 = getelementptr inbounds [20 x [20 x i8]], [20 x [20 x i8]]* %4, i64 0, i64 15, i64 %411
%473 = load i8, i8* %472
%474 = sext i8 %473 to i32
%475 = call i32 @putchar(i32 %474)
%476 = getelementptr inbounds [20 x [20 x i8]], [20 x [20 x i8]]* %4, i64 0, i64 16, i64 %411
%477 = load i8, i8* %476
%478 = sext i8 %477 to i32
%479 = call i32 @putchar(i32 %478)
%480 = getelementptr inbounds [20 x [20 x i8]], [20 x [20 x i8]]* %4, i64 0, i64 17, i64 %411
%481 = load i8, i8* %480
%482 = sext i8 %481 to i32
%483 = call i32 @putchar(i32 %482)
%484 = getelementptr inbounds [20 x [20 x i8]], [20 x [20 x i8]]* %4, i64 0, i64 18, i64 %411
%485 = load i8, i8* %484
%486 = sext i8 %485 to i32
%487 = call i32 @putchar(i32 %486)
%488 = getelementptr inbounds [20 x [20 x i8]], [20 x [20 x i8]]* %4, i64 0, i64 19, i64 %411
%489 = load i8, i8* %488
%490 = sext i8 %489 to i32
%491 = call i32 @putchar(i32 %490)
%492 = call i32 @putchar(i32 10)
%493 = add nsw i64 %411, -1
%494 = icmp eq i64 %411, 0
br i1 %494, label %495, label %410
495: ; preds = %410
ret i32 0
}