#define NULL ((void *)0)
typedef unsigned long size_t; // Customize by platform.
typedef long intptr_t;
typedef unsigned long uintptr_t;
typedef long scalar_t__; // Either arithmetic or pointer type.
/* By default, we understand bool (as a convenience). */
typedef int bool;
#define false 0
#define true 1

/* Forward declarations */

/* Type definitions */

/* Variables and functions */
int /*<<< orphan*/ printf(char *, ...);
int /*<<< orphan*/ scanf(char *, int *);
int main() {
  int numero[4][5];
  int i, j, maior, menor, menori, menorj, maiori, maiorj, negativos = 0,
                                                          col3 = 0;
  printf("Vamos analisar uma matriz 4x5!\nForneca os valores dela, ao todo "
         "20.\n(A matriz sera orientada por Linhas)\n");
  for (j = 0; j < 5; j++) {
    for (i = 0; i < 4; i++) {
      scanf("%d", &numero[i][j]);
    }
  }
  printf("\n");
  for (i = 0; i < 4; i++) {
    printf("Linha %d:  ", (i + 1));
    for (j = 0; j < 5; j++) {
      printf("%d ", numero[i][j]);
    }
    printf("\n");
  }
  printf("\n\nMatriz dos Dados:\n");
  for (i = 0; i < 4; i++) {
    for (j = 0; j < 5; j++) {
      printf("[%d]\t", numero[i][j]);
    }
    printf("\n");
  }
  maior = numero[0][0];
  menor = numero[0][0];
  maiori = 0;
  maiorj = 0;
  menori = 0;
  menorj = 0;
  for (j = 0; j < 5; j++) {
    for (i = 0; i < 4; i++) {
      if (numero[i][j] > maior) {
        maior = numero[i][j];
        maiori = i;
        maiorj = j;
      } else if (numero[i][j] < menor) {
        menor = numero[i][j];
        menori = i;
        menorj = j;
      }
      if (numero[i][j] < 0) {
        negativos++;
      }
      if (j == 2) {
        col3 = col3 + numero[i][j];
      }
    }
  }
  printf("\n\nO maior numero digitado e o: %d [Pos: %d %d]\n e o menor numero "
         "digitado e o: %d [Pos: %d %d]\n\n",
         maior, maiori, maiorj, menor, menori, menorj);
  printf("A soma dos elementos da terceira coluna e: %d\n\n", col3);
  printf("Foram inseridos %d numeros negativos e %d numeros positivos.\n",
         negativos, (20 - negativos));
  return 0;
}


x86 assembly (clang, -O0):
<main>:
push   %rbp
mov    %rsp,%rbp
sub    $0x90,%rsp
movl   $0x0,-0x4(%rbp)
movl   $0x0,-0x84(%rbp)
movl   $0x0,-0x88(%rbp)
lea    0xeb3(%rip),%rdi
mov    $0x0,%al
call   1030 <printf@plt>
movl   $0x0,-0x68(%rbp)
cmpl   $0x5,-0x68(%rbp)
jge    11bd <main+0x9d>
movl   $0x0,-0x64(%rbp)
cmpl   $0x4,-0x64(%rbp)
jge    11aa <main+0x8a>
movslq -0x64(%rbp),%rax
lea    -0x60(%rbp),%rsi
imul   $0x14,%rax,%rax
add    %rax,%rsi
movslq -0x68(%rbp),%rax
shl    $0x2,%rax
add    %rax,%rsi
lea    0xed3(%rip),%rdi
call   1040 <scanf@plt>
mov    -0x64(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0x64(%rbp)
jmp    116c <main+0x4c>
jmp    11af <main+0x8f>
mov    -0x68(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0x68(%rbp)
jmp    115b <main+0x3b>
lea    0xf33(%rip),%rdi
mov    $0x0,%al
call   1030 <printf@plt>
movl   $0x0,-0x64(%rbp)
cmpl   $0x4,-0x64(%rbp)
jge    124f <main+0x12f>
mov    -0x64(%rbp),%esi
add    $0x1,%esi
lea    0xe84(%rip),%rdi
mov    $0x0,%al
call   1030 <printf@plt>
movl   $0x0,-0x68(%rbp)
cmpl   $0x5,-0x68(%rbp)
jge    1233 <main+0x113>
movslq -0x64(%rbp),%rcx
lea    -0x60(%rbp),%rax
imul   $0x14,%rcx,%rcx
add    %rcx,%rax
movslq -0x68(%rbp),%rcx
mov    (%rax,%rcx,4),%esi
lea    0xe5b(%rip),%rdi
mov    $0x0,%al
call   1030 <printf@plt>
mov    -0x68(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0x68(%rbp)
jmp    11f7 <main+0xd7>
lea    0xebd(%rip),%rdi
mov    $0x0,%al
call   1030 <printf@plt>
mov    -0x64(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0x64(%rbp)
jmp    11d2 <main+0xb2>
lea    0xe27(%rip),%rdi
mov    $0x0,%al
call   1030 <printf@plt>
movl   $0x0,-0x64(%rbp)
cmpl   $0x4,-0x64(%rbp)
jge    12cd <main+0x1ad>
movl   $0x0,-0x68(%rbp)
cmpl   $0x5,-0x68(%rbp)
jge    12b1 <main+0x191>
movslq -0x64(%rbp),%rcx
lea    -0x60(%rbp),%rax
imul   $0x14,%rcx,%rcx
add    %rcx,%rax
movslq -0x68(%rbp),%rcx
mov    (%rax,%rcx,4),%esi
lea    0xdf6(%rip),%rdi
mov    $0x0,%al
call   1030 <printf@plt>
mov    -0x68(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0x68(%rbp)
jmp    1275 <main+0x155>
lea    0xe3f(%rip),%rdi
mov    $0x0,%al
call   1030 <printf@plt>
mov    -0x64(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0x64(%rbp)
jmp    1264 <main+0x144>
mov    -0x60(%rbp),%eax
mov    %eax,-0x6c(%rbp)
mov    -0x60(%rbp),%eax
mov    %eax,-0x70(%rbp)
movl   $0x0,-0x7c(%rbp)
movl   $0x0,-0x80(%rbp)
movl   $0x0,-0x74(%rbp)
movl   $0x0,-0x78(%rbp)
movl   $0x0,-0x68(%rbp)
cmpl   $0x5,-0x68(%rbp)
jge    1427 <main+0x307>
movl   $0x0,-0x64(%rbp)
cmpl   $0x4,-0x64(%rbp)
jge    1414 <main+0x2f4>
movslq -0x64(%rbp),%rcx
lea    -0x60(%rbp),%rax
imul   $0x14,%rcx,%rcx
add    %rcx,%rax
movslq -0x68(%rbp),%rcx
mov    (%rax,%rcx,4),%eax
cmp    -0x6c(%rbp),%eax
jle    1360 <main+0x240>
movslq -0x64(%rbp),%rcx
lea    -0x60(%rbp),%rax
imul   $0x14,%rcx,%rcx
add    %rcx,%rax
movslq -0x68(%rbp),%rcx
mov    (%rax,%rcx,4),%eax
mov    %eax,-0x6c(%rbp)
mov    -0x64(%rbp),%eax
mov    %eax,-0x7c(%rbp)
mov    -0x68(%rbp),%eax
mov    %eax,-0x80(%rbp)
jmp    13a9 <main+0x289>
movslq -0x64(%rbp),%rcx
lea    -0x60(%rbp),%rax
imul   $0x14,%rcx,%rcx
add    %rcx,%rax
movslq -0x68(%rbp),%rcx
mov    (%rax,%rcx,4),%eax
cmp    -0x70(%rbp),%eax
jge    13a4 <main+0x284>
movslq -0x64(%rbp),%rcx
lea    -0x60(%rbp),%rax
imul   $0x14,%rcx,%rcx
add    %rcx,%rax
movslq -0x68(%rbp),%rcx
mov    (%rax,%rcx,4),%eax
mov    %eax,-0x70(%rbp)
mov    -0x64(%rbp),%eax
mov    %eax,-0x74(%rbp)
mov    -0x68(%rbp),%eax
mov    %eax,-0x78(%rbp)
jmp    13a9 <main+0x289>
movslq -0x64(%rbp),%rcx
lea    -0x60(%rbp),%rax
imul   $0x14,%rcx,%rcx
add    %rcx,%rax
movslq -0x68(%rbp),%rcx
cmpl   $0x0,(%rax,%rcx,4)
jge    13d5 <main+0x2b5>
mov    -0x84(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0x84(%rbp)
cmpl   $0x2,-0x68(%rbp)
jne    1401 <main+0x2e1>
mov    -0x88(%rbp),%eax
movslq -0x64(%rbp),%rdx
lea    -0x60(%rbp),%rcx
imul   $0x14,%rdx,%rdx
add    %rdx,%rcx
movslq -0x68(%rbp),%rdx
add    (%rcx,%rdx,4),%eax
mov    %eax,-0x88(%rbp)
jmp    1406 <main+0x2e6>
mov    -0x64(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0x64(%rbp)
jmp    130d <main+0x1ed>
jmp    1419 <main+0x2f9>
mov    -0x68(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0x68(%rbp)
jmp    12fc <main+0x1dc>
mov    -0x6c(%rbp),%esi
mov    -0x7c(%rbp),%edx
mov    -0x80(%rbp),%ecx
mov    -0x70(%rbp),%r8d
mov    -0x74(%rbp),%r9d
mov    -0x78(%rbp),%eax
lea    0xc56(%rip),%rdi
mov    %eax,(%rsp)
mov    $0x0,%al
call   1030 <printf@plt>
mov    -0x88(%rbp),%esi
lea    0xca0(%rip),%rdi
mov    $0x0,%al
call   1030 <printf@plt>
mov    -0x84(%rbp),%esi
mov    $0x14,%edx
sub    -0x84(%rbp),%edx
lea    0xcb1(%rip),%rdi
mov    $0x0,%al
call   1030 <printf@plt>
xor    %eax,%eax
add    $0x90,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<main>:
push   %rbp
push   %r15
push   %r14
push   %rbx
sub    $0x68,%rsp
lea    0xf97(%rip),%rdi
call   1040 <puts@plt>
lea    0xea3(%rip),%rbx
lea    0x10(%rsp),%rsi
mov    %rbx,%rdi
call   1060 <scanf@plt>
lea    0x24(%rsp),%rsi
mov    %rbx,%rdi
call   1060 <scanf@plt>
lea    0x38(%rsp),%rsi
mov    %rbx,%rdi
call   1060 <scanf@plt>
lea    0x4c(%rsp),%rsi
mov    %rbx,%rdi
call   1060 <scanf@plt>
lea    0x14(%rsp),%rsi
mov    %rbx,%rdi
call   1060 <scanf@plt>
lea    0x28(%rsp),%rsi
mov    %rbx,%rdi
call   1060 <scanf@plt>
lea    0x3c(%rsp),%rsi
mov    %rbx,%rdi
call   1060 <scanf@plt>
lea    0x50(%rsp),%rsi
mov    %rbx,%rdi
call   1060 <scanf@plt>
lea    0x18(%rsp),%rsi
mov    %rbx,%rdi
call   1060 <scanf@plt>
lea    0x2c(%rsp),%rsi
mov    %rbx,%rdi
call   1060 <scanf@plt>
lea    0x40(%rsp),%rsi
mov    %rbx,%rdi
call   1060 <scanf@plt>
lea    0x54(%rsp),%rsi
mov    %rbx,%rdi
call   1060 <scanf@plt>
lea    0x1c(%rsp),%rsi
mov    %rbx,%rdi
call   1060 <scanf@plt>
lea    0x30(%rsp),%rsi
mov    %rbx,%rdi
call   1060 <scanf@plt>
lea    0x44(%rsp),%rsi
mov    %rbx,%rdi
call   1060 <scanf@plt>
lea    0x58(%rsp),%rsi
mov    %rbx,%rdi
call   1060 <scanf@plt>
lea    0x20(%rsp),%rsi
mov    %rbx,%rdi
call   1060 <scanf@plt>
lea    0x34(%rsp),%rsi
mov    %rbx,%rdi
call   1060 <scanf@plt>
lea    0x48(%rsp),%rsi
mov    %rbx,%rdi
call   1060 <scanf@plt>
lea    0x5c(%rsp),%rsi
mov    %rbx,%rdi
call   1060 <scanf@plt>
mov    $0xa,%edi
call   1030 <putchar@plt>
lea    0xd91(%rip),%r14
xor    %r15d,%r15d
mov    %r14,%rdi
mov    $0x1,%esi
xor    %eax,%eax
call   1050 <printf@plt>
mov    0x10(%rsp),%esi
lea    0xd80(%rip),%rbx
mov    %rbx,%rdi
xor    %eax,%eax
call   1050 <printf@plt>
mov    0x14(%rsp),%esi
mov    %rbx,%rdi
xor    %eax,%eax
call   1050 <printf@plt>
mov    0x18(%rsp),%esi
mov    %rbx,%rdi
xor    %eax,%eax
call   1050 <printf@plt>
mov    0x1c(%rsp),%esi
mov    %rbx,%rdi
xor    %eax,%eax
call   1050 <printf@plt>
mov    0x20(%rsp),%esi
mov    %rbx,%rdi
xor    %eax,%eax
call   1050 <printf@plt>
mov    $0xa,%edi
call   1030 <putchar@plt>
mov    %r14,%rdi
mov    $0x2,%esi
xor    %eax,%eax
call   1050 <printf@plt>
mov    0x24(%rsp),%esi
mov    %rbx,%rdi
xor    %eax,%eax
call   1050 <printf@plt>
mov    0x28(%rsp),%esi
mov    %rbx,%rdi
xor    %eax,%eax
call   1050 <printf@plt>
mov    0x2c(%rsp),%esi
mov    %rbx,%rdi
xor    %eax,%eax
call   1050 <printf@plt>
mov    0x30(%rsp),%esi
mov    %rbx,%rdi
xor    %eax,%eax
call   1050 <printf@plt>
mov    0x34(%rsp),%esi
mov    %rbx,%rdi
xor    %eax,%eax
call   1050 <printf@plt>
mov    $0xa,%edi
call   1030 <putchar@plt>
mov    %r14,%rdi
mov    $0x3,%esi
xor    %eax,%eax
call   1050 <printf@plt>
mov    0x38(%rsp),%esi
mov    %rbx,%rdi
xor    %eax,%eax
call   1050 <printf@plt>
mov    0x3c(%rsp),%esi
mov    %rbx,%rdi
xor    %eax,%eax
call   1050 <printf@plt>
mov    0x40(%rsp),%esi
mov    %rbx,%rdi
xor    %eax,%eax
call   1050 <printf@plt>
mov    0x44(%rsp),%esi
mov    %rbx,%rdi
xor    %eax,%eax
call   1050 <printf@plt>
mov    0x48(%rsp),%esi
mov    %rbx,%rdi
xor    %eax,%eax
call   1050 <printf@plt>
mov    $0xa,%edi
call   1030 <putchar@plt>
mov    %r14,%rdi
mov    $0x4,%esi
xor    %eax,%eax
call   1050 <printf@plt>
mov    0x4c(%rsp),%esi
mov    %rbx,%rdi
xor    %eax,%eax
call   1050 <printf@plt>
mov    0x50(%rsp),%esi
mov    %rbx,%rdi
xor    %eax,%eax
call   1050 <printf@plt>
mov    0x54(%rsp),%esi
mov    %rbx,%rdi
xor    %eax,%eax
call   1050 <printf@plt>
mov    0x58(%rsp),%esi
mov    %rbx,%rdi
xor    %eax,%eax
call   1050 <printf@plt>
mov    0x5c(%rsp),%esi
mov    %rbx,%rdi
xor    %eax,%eax
call   1050 <printf@plt>
mov    $0xa,%edi
call   1030 <putchar@plt>
lea    0xd52(%rip),%rdi
call   1040 <puts@plt>
mov    0x10(%rsp),%esi
lea    0xc04(%rip),%rbx
mov    %rbx,%rdi
xor    %eax,%eax
call   1050 <printf@plt>
mov    0x14(%rsp),%esi
mov    %rbx,%rdi
xor    %eax,%eax
call   1050 <printf@plt>
mov    0x18(%rsp),%esi
mov    %rbx,%rdi
xor    %eax,%eax
call   1050 <printf@plt>
mov    0x1c(%rsp),%esi
mov    %rbx,%rdi
xor    %eax,%eax
call   1050 <printf@plt>
mov    0x20(%rsp),%esi
mov    %rbx,%rdi
xor    %eax,%eax
call   1050 <printf@plt>
mov    $0xa,%edi
call   1030 <putchar@plt>
mov    0x24(%rsp),%esi
mov    %rbx,%rdi
xor    %eax,%eax
call   1050 <printf@plt>
mov    0x28(%rsp),%esi
mov    %rbx,%rdi
xor    %eax,%eax
call   1050 <printf@plt>
mov    0x2c(%rsp),%esi
mov    %rbx,%rdi
xor    %eax,%eax
call   1050 <printf@plt>
mov    0x30(%rsp),%esi
mov    %rbx,%rdi
xor    %eax,%eax
call   1050 <printf@plt>
mov    0x34(%rsp),%esi
mov    %rbx,%rdi
xor    %eax,%eax
call   1050 <printf@plt>
mov    $0xa,%edi
call   1030 <putchar@plt>
mov    0x38(%rsp),%esi
mov    %rbx,%rdi
xor    %eax,%eax
call   1050 <printf@plt>
mov    0x3c(%rsp),%esi
mov    %rbx,%rdi
xor    %eax,%eax
call   1050 <printf@plt>
mov    0x40(%rsp),%esi
mov    %rbx,%rdi
xor    %eax,%eax
call   1050 <printf@plt>
mov    0x44(%rsp),%esi
mov    %rbx,%rdi
xor    %eax,%eax
call   1050 <printf@plt>
mov    0x48(%rsp),%esi
mov    %rbx,%rdi
xor    %eax,%eax
call   1050 <printf@plt>
mov    $0xa,%edi
call   1030 <putchar@plt>
mov    0x4c(%rsp),%esi
mov    %rbx,%rdi
xor    %eax,%eax
call   1050 <printf@plt>
mov    0x50(%rsp),%esi
mov    %rbx,%rdi
xor    %eax,%eax
call   1050 <printf@plt>
mov    0x54(%rsp),%esi
mov    %rbx,%rdi
xor    %eax,%eax
call   1050 <printf@plt>
mov    0x58(%rsp),%esi
mov    %rbx,%rdi
xor    %eax,%eax
call   1050 <printf@plt>
mov    0x5c(%rsp),%esi
mov    %rbx,%rdi
xor    %eax,%eax
call   1050 <printf@plt>
mov    $0xa,%edi
call   1030 <putchar@plt>
mov    0x10(%rsp),%eax
xor    %r11d,%r11d
xor    %ebx,%ebx
xor    %ebp,%ebp
xor    %ecx,%ecx
xor    %edx,%edx
xor    %r10d,%r10d
xor    %r9d,%r9d
mov    %eax,%r8d
mov    %eax,%esi
cmp    %esi,%eax
jle    1580 <main+0x440>
nopl   0x0(%rax)
xor    %edx,%edx
mov    %eax,%esi
mov    %r11d,%ecx
jmp    158e <main+0x44e>
nopl   0x0(%rax)
cmp    %r8d,%eax
jge    158e <main+0x44e>
xor    %r9d,%r9d
mov    %eax,%r8d
mov    %r11d,%r10d
mov    %eax,%edi
shr    $0x1f,%edi
add    %ebp,%edi
cmp    $0x2,%r11
cmovne %r15d,%eax
add    %ebx,%eax
mov    0x24(%rsp,%r11,4),%ebp
cmp    %esi,%ebp
jle    15c0 <main+0x480>
mov    $0x1,%edx
mov    %ebp,%esi
mov    %r11d,%ecx
jmp    15d1 <main+0x491>
cs nopw 0x0(%rax,%rax,1)
xchg   %ax,%ax
cmp    %r8d,%ebp
jge    15d1 <main+0x491>
mov    $0x1,%r9d
mov    %ebp,%r8d
mov    %r11d,%r10d
mov    %ebp,%ebx
shr    $0x1f,%ebx
add    %edi,%ebx
cmp    $0x2,%r11
cmovne %r15d,%ebp
add    %eax,%ebp
mov    0x38(%rsp,%r11,4),%edi
cmp    %esi,%edi
jle    1600 <main+0x4c0>
mov    $0x2,%edx
mov    %edi,%esi
mov    %r11d,%ecx
jmp    1611 <main+0x4d1>
nopw   0x0(%rax,%rax,1)
cmp    %r8d,%edi
jge    1611 <main+0x4d1>
mov    $0x2,%r9d
mov    %edi,%r8d
mov    %r11d,%r10d
mov    %edi,%eax
shr    $0x1f,%eax
add    %ebx,%eax
cmp    $0x2,%r11
cmovne %r15d,%edi
add    %ebp,%edi
mov    0x4c(%rsp,%r11,4),%ebx
cmp    %esi,%ebx
jle    1640 <main+0x500>
mov    $0x3,%edx
mov    %ebx,%esi
mov    %r11d,%ecx
jmp    1651 <main+0x511>
nopw   0x0(%rax,%rax,1)
cmp    %r8d,%ebx
jge    1651 <main+0x511>
mov    $0x3,%r9d
mov    %ebx,%r8d
mov    %r11d,%r10d
mov    %ebx,%ebp
shr    $0x1f,%ebp
add    %eax,%ebp
cmp    $0x2,%r11
cmovne %r15d,%ebx
add    %edi,%ebx
cmp    $0x4,%r11
je     167e <main+0x53e>
mov    0x14(%rsp,%r11,4),%eax
add    $0x1,%r11
cmp    %esi,%eax
jle    1580 <main+0x440>
jmp    1570 <main+0x430>
mov    %r10d,(%rsp)
lea    0x990(%rip),%rdi
xor    %eax,%eax
call   1050 <printf@plt>
lea    0x9e3(%rip),%rdi
mov    %ebx,%esi
xor    %eax,%eax
call   1050 <printf@plt>
mov    $0x14,%edx
sub    %ebp,%edx
lea    0x9fc(%rip),%rdi
mov    %ebp,%esi
xor    %eax,%eax
call   1050 <printf@plt>
xor    %eax,%eax
add    $0x68,%rsp
pop    %rbx
pop    %r14
pop    %r15
pop    %rbp
ret

LLVM IR (-O0):
@.str = [106 x i8] c"Vamos analisar uma matriz 4x5!\0AForneca os valores dela, ao todo 20.\0A(A matriz sera orientada por Linhas)\0A\00"
@.str.1 = [3 x i8] c"%d\00"
@.str.2 = [2 x i8] c"\0A\00"
@.str.3 = [12 x i8] c"Linha %d: \00"
@.str.4 = [4 x i8] c"%d \00"
@.str.5 = [21 x i8] c"\0A\0AMatriz dos Dados:\0A\00"
@.str.6 = [6 x i8] c"[%d]\09\00"
@.str.7 = [97 x i8] c"\0A\0AO maior numero digitado e o: %d [Pos: %d %d]\0A e o menor numero digitado e o: %d [Pos: %d %d]\0A\0A\00"
@.str.8 = [48 x i8] c"A soma dos elementos da terceira coluna e: %d\0A\0A\00"
@.str.9 = [62 x i8] c"Foram inseridos %d numeros negativos e %d numeros positivos.\0A\00"
define i32 @main() {
%1 = alloca i32
%2 = alloca [4 x [5 x i32]]
%3 = alloca i32
%4 = alloca i32
%5 = alloca i32
%6 = alloca i32
%7 = alloca i32
%8 = alloca i32
%9 = alloca i32
%10 = alloca i32
%11 = alloca i32
%12 = alloca i32
store i32 0, i32* %1
store i32 0, i32* %11
store i32 0, i32* %12
%13 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([106 x i8], [106 x i8]* @.str, i64 0, i64 0))
store i32 0, i32* %4
br label %14
14: ; preds = %33, %0
%15 = load i32, i32* %4
%16 = icmp slt i32 %15, 5
br i1 %16, label %17, label %36
17: ; preds = %14
store i32 0, i32* %3
br label %18
18: ; preds = %29, %17
%19 = load i32, i32* %3
%20 = icmp slt i32 %19, 4
br i1 %20, label %21, label %32
21: ; preds = %18
%22 = load i32, i32* %3
%23 = sext i32 %22 to i64
%24 = getelementptr inbounds [4 x [5 x i32]], [4 x [5 x i32]]* %2, i64 0, i64 %23
%25 = load i32, i32* %4
%26 = sext i32 %25 to i64
%27 = getelementptr inbounds [5 x i32], [5 x i32]* %24, i64 0, i64 %26
%28 = call i32 @scanf(i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str.1, i64 0, i64 0), i32* %27)
br label %29
29: ; preds = %21
%30 = load i32, i32* %3
%31 = add nsw i32 %30, 1
store i32 %31, i32* %3
br label %18
32: ; preds = %18
br label %33
33: ; preds = %32
%34 = load i32, i32* %4
%35 = add nsw i32 %34, 1
store i32 %35, i32* %4
br label %14
36: ; preds = %14
%37 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([2 x i8], [2 x i8]* @.str.2, i64 0, i64 0))
store i32 0, i32* %3
br label %38
38: ; preds = %62, %36
%39 = load i32, i32* %3
%40 = icmp slt i32 %39, 4
br i1 %40, label %41, label %65
41: ; preds = %38
%42 = load i32, i32* %3
%43 = add nsw i32 %42, 1
%44 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([12 x i8], [12 x i8]* @.str.3, i64 0, i64 0), i32 %43)
store i32 0, i32* %4
br label %45
45: ; preds = %57, %41
%46 = load i32, i32* %4
%47 = icmp slt i32 %46, 5
br i1 %47, label %48, label %60
48: ; preds = %45
%49 = load i32, i32* %3
%50 = sext i32 %49 to i64
%51 = getelementptr inbounds [4 x [5 x i32]], [4 x [5 x i32]]* %2, i64 0, i64 %50
%52 = load i32, i32* %4
%53 = sext i32 %52 to i64
%54 = getelementptr inbounds [5 x i32], [5 x i32]* %51, i64 0, i64 %53
%55 = load i32, i32* %54
%56 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([4 x i8], [4 x i8]* @.str.4, i64 0, i64 0), i32 %55)
br label %57
57: ; preds = %48
%58 = load i32, i32* %4
%59 = add nsw i32 %58, 1
store i32 %59, i32* %4
br label %45
60: ; preds = %45
%61 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([2 x i8], [2 x i8]* @.str.2, i64 0, i64 0))
br label %62
62: ; preds = %60
%63 = load i32, i32* %3
%64 = add nsw i32 %63, 1
store i32 %64, i32* %3
br label %38
65: ; preds = %38
%66 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([21 x i8], [21 x i8]* @.str.5, i64 0, i64 0))
store i32 0, i32* %3
br label %67
67: ; preds = %88, %65
%68 = load i32, i32* %3
%69 = icmp slt i32 %68, 4
br i1 %69, label %70, label %91
70: ; preds = %67
store i32 0, i32* %4
br label %71
71: ; preds = %83, %70
%72 = load i32, i32* %4
%73 = icmp slt i32 %72, 5
br i1 %73, label %74, label %86
74: ; preds = %71
%75 = load i32, i32* %3
%76 = sext i32 %75 to i64
%77 = getelementptr inbounds [4 x [5 x i32]], [4 x [5 x i32]]* %2, i64 0, i64 %76
%78 = load i32, i32* %4
%79 = sext i32 %78 to i64
%80 = getelementptr inbounds [5 x i32], [5 x i32]* %77, i64 0, i64 %79
%81 = load i32, i32* %80
%82 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([6 x i8], [6 x i8]* @.str.6, i64 0, i64 0), i32 %81)
br label %83
83: ; preds = %74
%84 = load i32, i32* %4
%85 = add nsw i32 %84, 1
store i32 %85, i32* %4
br label %71
86: ; preds = %71
%87 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([2 x i8], [2 x i8]* @.str.2, i64 0, i64 0))
br label %88
88: ; preds = %86
%89 = load i32, i32* %3
%90 = add nsw i32 %89, 1
store i32 %90, i32* %3
br label %67
91: ; preds = %67
%92 = getelementptr inbounds [4 x [5 x i32]], [4 x [5 x i32]]* %2, i64 0, i64 0
%93 = getelementptr inbounds [5 x i32], [5 x i32]* %92, i64 0, i64 0
%94 = load i32, i32* %93
store i32 %94, i32* %5
%95 = getelementptr inbounds [4 x [5 x i32]], [4 x [5 x i32]]* %2, i64 0, i64 0
%96 = getelementptr inbounds [5 x i32], [5 x i32]* %95, i64 0, i64 0
%97 = load i32, i32* %96
store i32 %97, i32* %6
store i32 0, i32* %9
store i32 0, i32* %10
store i32 0, i32* %7
store i32 0, i32* %8
store i32 0, i32* %4
br label %98
98: ; preds = %176, %91
%99 = load i32, i32* %4
%100 = icmp slt i32 %99, 5
br i1 %100, label %101, label %179
101: ; preds = %98
store i32 0, i32* %3
br label %102
102: ; preds = %172, %101
%103 = load i32, i32* %3
%104 = icmp slt i32 %103, 4
br i1 %104, label %105, label %175
105: ; preds = %102
%106 = load i32, i32* %3
%107 = sext i32 %106 to i64
%108 = getelementptr inbounds [4 x [5 x i32]], [4 x [5 x i32]]* %2, i64 0, i64 %107
%109 = load i32, i32* %4
%110 = sext i32 %109 to i64
%111 = getelementptr inbounds [5 x i32], [5 x i32]* %108, i64 0, i64 %110
%112 = load i32, i32* %111
%113 = load i32, i32* %5
%114 = icmp sgt i32 %112, %113
br i1 %114, label %115, label %125
115: ; preds = %105
%116 = load i32, i32* %3
%117 = sext i32 %116 to i64
%118 = getelementptr inbounds [4 x [5 x i32]], [4 x [5 x i32]]* %2, i64 0, i64 %117
%119 = load i32, i32* %4
%120 = sext i32 %119 to i64
%121 = getelementptr inbounds [5 x i32], [5 x i32]* %118, i64 0, i64 %120
%122 = load i32, i32* %121
store i32 %122, i32* %5
%123 = load i32, i32* %3
store i32 %123, i32* %9
%124 = load i32, i32* %4
store i32 %124, i32* %10
br label %146
125: ; preds = %105
%126 = load i32, i32* %3
%127 = sext i32 %126 to i64
%128 = getelementptr inbounds [4 x [5 x i32]], [4 x [5 x i32]]* %2, i64 0, i64 %127
%129 = load i32, i32* %4
%130 = sext i32 %129 to i64
%131 = getelementptr inbounds [5 x i32], [5 x i32]* %128, i64 0, i64 %130
%132 = load i32, i32* %131
%133 = load i32, i32* %6
%134 = icmp slt i32 %132, %133
br i1 %134, label %135, label %145
135: ; preds = %125
%136 = load i32, i32* %3
%137 = sext i32 %136 to i64
%138 = getelementptr inbounds [4 x [5 x i32]], [4 x [5 x i32]]* %2, i64 0, i64 %137
%139 = load i32, i32* %4
%140 = sext i32 %139 to i64
%141 = getelementptr inbounds [5 x i32], [5 x i32]* %138, i64 0, i64 %140
%142 = load i32, i32* %141
store i32 %142, i32* %6
%143 = load i32, i32* %3
store i32 %143, i32* %7
%144 = load i32, i32* %4
store i32 %144, i32* %8
br label %145
145: ; preds = %135, %125
br label %146
146: ; preds = %145, %115
%147 = load i32, i32* %3
%148 = sext i32 %147 to i64
%149 = getelementptr inbounds [4 x [5 x i32]], [4 x [5 x i32]]* %2, i64 0, i64 %148
%150 = load i32, i32* %4
%151 = sext i32 %150 to i64
%152 = getelementptr inbounds [5 x i32], [5 x i32]* %149, i64 0, i64 %151
%153 = load i32, i32* %152
%154 = icmp slt i32 %153, 0
br i1 %154, label %155, label %158
155: ; preds = %146
%156 = load i32, i32* %11
%157 = add nsw i32 %156, 1
store i32 %157, i32* %11
br label %158
158: ; preds = %155, %146
%159 = load i32, i32* %4
%160 = icmp eq i32 %159, 2
br i1 %160, label %161, label %171
161: ; preds = %158
%162 = load i32, i32* %12
%163 = load i32, i32* %3
%164 = sext i32 %163 to i64
%165 = getelementptr inbounds [4 x [5 x i32]], [4 x [5 x i32]]* %2, i64 0, i64 %164
%166 = load i32, i32* %4
%167 = sext i32 %166 to i64
%168 = getelementptr inbounds [5 x i32], [5 x i32]* %165, i64 0, i64 %167
%169 = load i32, i32* %168
%170 = add nsw i32 %162, %169
store i32 %170, i32* %12
br label %171
171: ; preds = %161, %158
br label %172
172: ; preds = %171
%173 = load i32, i32* %3
%174 = add nsw i32 %173, 1
store i32 %174, i32* %3
br label %102
175: ; preds = %102
br label %176
176: ; preds = %175
%177 = load i32, i32* %4
%178 = add nsw i32 %177, 1
store i32 %178, i32* %4
br label %98
179: ; preds = %98
%180 = load i32, i32* %5
%181 = load i32, i32* %9
%182 = load i32, i32* %10
%183 = load i32, i32* %6
%184 = load i32, i32* %7
%185 = load i32, i32* %8
%186 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([97 x i8], [97 x i8]* @.str.7, i64 0, i64 0), i32 %180, i32 %181, i32 %182, i32 %183, i32 %184, i32 %185)
%187 = load i32, i32* %12
%188 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([48 x i8], [48 x i8]* @.str.8, i64 0, i64 0), i32 %187)
%189 = load i32, i32* %11
%190 = load i32, i32* %11
%191 = sub nsw i32 20, %190
%192 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([62 x i8], [62 x i8]* @.str.9, i64 0, i64 0), i32 %189, i32 %191)
ret i32 0
}

LLVM IR (-O2):
@.str.1 = [3 x i8] c"%d\00"
@.str.3 = [12 x i8] c"Linha %d: \00"
@.str.4 = [4 x i8] c"%d \00"
@.str.6 = [6 x i8] c"[%d]\09\00"
@.str.7 = [97 x i8] c"\0A\0AO maior numero digitado e o: %d [Pos: %d %d]\0A e o menor numero digitado e o: %d [Pos: %d %d]\0A\0A\00"
@.str.8 = [48 x i8] c"A soma dos elementos da terceira coluna e: %d\0A\0A\00"
@.str.9 = [62 x i8] c"Foram inseridos %d numeros negativos e %d numeros positivos.\0A\00"
@str = [105 x i8] c"Vamos analisar uma matriz 4x5!\0AForneca os valores dela, ao todo 20.\0A(A matriz sera orientada por Linhas)\00"
@str.10 = [20 x i8] c"\0A\0AMatriz dos Dados:\00"
define i32 @main() {
%1 = alloca [4 x [5 x i32]]
%2 = bitcast [4 x [5 x i32]]* %1 to i8*
%3 = tail call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([105 x i8], [105 x i8]* @str, i64 0, i64 0))
%4 = getelementptr inbounds [4 x [5 x i32]], [4 x [5 x i32]]* %1, i64 0, i64 0, i64 0
%5 = call i32 @scanf(i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str.1, i64 0, i64 0), i32* %4)
%6 = getelementptr inbounds [4 x [5 x i32]], [4 x [5 x i32]]* %1, i64 0, i64 1, i64 0
%7 = call i32 @scanf(i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str.1, i64 0, i64 0), i32* %6)
%8 = getelementptr inbounds [4 x [5 x i32]], [4 x [5 x i32]]* %1, i64 0, i64 2, i64 0
%9 = call i32 @scanf(i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str.1, i64 0, i64 0), i32* %8)
%10 = getelementptr inbounds [4 x [5 x i32]], [4 x [5 x i32]]* %1, i64 0, i64 3, i64 0
%11 = call i32 @scanf(i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str.1, i64 0, i64 0), i32* %10)
%12 = getelementptr inbounds [4 x [5 x i32]], [4 x [5 x i32]]* %1, i64 0, i64 0, i64 1
%13 = call i32 @scanf(i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str.1, i64 0, i64 0), i32* %12)
%14 = getelementptr inbounds [4 x [5 x i32]], [4 x [5 x i32]]* %1, i64 0, i64 1, i64 1
%15 = call i32 @scanf(i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str.1, i64 0, i64 0), i32* %14)
%16 = getelementptr inbounds [4 x [5 x i32]], [4 x [5 x i32]]* %1, i64 0, i64 2, i64 1
%17 = call i32 @scanf(i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str.1, i64 0, i64 0), i32* %16)
%18 = getelementptr inbounds [4 x [5 x i32]], [4 x [5 x i32]]* %1, i64 0, i64 3, i64 1
%19 = call i32 @scanf(i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str.1, i64 0, i64 0), i32* %18)
%20 = getelementptr inbounds [4 x [5 x i32]], [4 x [5 x i32]]* %1, i64 0, i64 0, i64 2
%21 = call i32 @scanf(i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str.1, i64 0, i64 0), i32* %20)
%22 = getelementptr inbounds [4 x [5 x i32]], [4 x [5 x i32]]* %1, i64 0, i64 1, i64 2
%23 = call i32 @scanf(i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str.1, i64 0, i64 0), i32* %22)
%24 = getelementptr inbounds [4 x [5 x i32]], [4 x [5 x i32]]* %1, i64 0, i64 2, i64 2
%25 = call i32 @scanf(i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str.1, i64 0, i64 0), i32* %24)
%26 = getelementptr inbounds [4 x [5 x i32]], [4 x [5 x i32]]* %1, i64 0, i64 3, i64 2
%27 = call i32 @scanf(i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str.1, i64 0, i64 0), i32* %26)
%28 = getelementptr inbounds [4 x [5 x i32]], [4 x [5 x i32]]* %1, i64 0, i64 0, i64 3
%29 = call i32 @scanf(i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str.1, i64 0, i64 0), i32* %28)
%30 = getelementptr inbounds [4 x [5 x i32]], [4 x [5 x i32]]* %1, i64 0, i64 1, i64 3
%31 = call i32 @scanf(i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str.1, i64 0, i64 0), i32* %30)
%32 = getelementptr inbounds [4 x [5 x i32]], [4 x [5 x i32]]* %1, i64 0, i64 2, i64 3
%33 = call i32 @scanf(i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str.1, i64 0, i64 0), i32* %32)
%34 = getelementptr inbounds [4 x [5 x i32]], [4 x [5 x i32]]* %1, i64 0, i64 3, i64 3
%35 = call i32 @scanf(i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str.1, i64 0, i64 0), i32* %34)
%36 = getelementptr inbounds [4 x [5 x i32]], [4 x [5 x i32]]* %1, i64 0, i64 0, i64 4
%37 = call i32 @scanf(i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str.1, i64 0, i64 0), i32* %36)
%38 = getelementptr inbounds [4 x [5 x i32]], [4 x [5 x i32]]* %1, i64 0, i64 1, i64 4
%39 = call i32 @scanf(i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str.1, i64 0, i64 0), i32* %38)
%40 = getelementptr inbounds [4 x [5 x i32]], [4 x [5 x i32]]* %1, i64 0, i64 2, i64 4
%41 = call i32 @scanf(i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str.1, i64 0, i64 0), i32* %40)
%42 = getelementptr inbounds [4 x [5 x i32]], [4 x [5 x i32]]* %1, i64 0, i64 3, i64 4
%43 = call i32 @scanf(i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str.1, i64 0, i64 0), i32* %42)
%44 = call i32 @putchar(i32 10)
%45 = call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([12 x i8], [12 x i8]* @.str.3, i64 0, i64 0), i32 1)
%46 = load i32, i32* %4
%47 = call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([4 x i8], [4 x i8]* @.str.4, i64 0, i64 0), i32 %46)
%48 = load i32, i32* %12
%49 = call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([4 x i8], [4 x i8]* @.str.4, i64 0, i64 0), i32 %48)
%50 = load i32, i32* %20
%51 = call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([4 x i8], [4 x i8]* @.str.4, i64 0, i64 0), i32 %50)
%52 = load i32, i32* %28
%53 = call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([4 x i8], [4 x i8]* @.str.4, i64 0, i64 0), i32 %52)
%54 = load i32, i32* %36
%55 = call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([4 x i8], [4 x i8]* @.str.4, i64 0, i64 0), i32 %54)
%56 = call i32 @putchar(i32 10)
%57 = call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([12 x i8], [12 x i8]* @.str.3, i64 0, i64 0), i32 2)
%58 = load i32, i32* %6
%59 = call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([4 x i8], [4 x i8]* @.str.4, i64 0, i64 0), i32 %58)
%60 = load i32, i32* %14
%61 = call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([4 x i8], [4 x i8]* @.str.4, i64 0, i64 0), i32 %60)
%62 = load i32, i32* %22
%63 = call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([4 x i8], [4 x i8]* @.str.4, i64 0, i64 0), i32 %62)
%64 = load i32, i32* %30
%65 = call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([4 x i8], [4 x i8]* @.str.4, i64 0, i64 0), i32 %64)
%66 = load i32, i32* %38
%67 = call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([4 x i8], [4 x i8]* @.str.4, i64 0, i64 0), i32 %66)
%68 = call i32 @putchar(i32 10)
%69 = call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([12 x i8], [12 x i8]* @.str.3, i64 0, i64 0), i32 3)
%70 = load i32, i32* %8
%71 = call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([4 x i8], [4 x i8]* @.str.4, i64 0, i64 0), i32 %70)
%72 = load i32, i32* %16
%73 = call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([4 x i8], [4 x i8]* @.str.4, i64 0, i64 0), i32 %72)
%74 = load i32, i32* %24
%75 = call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([4 x i8], [4 x i8]* @.str.4, i64 0, i64 0), i32 %74)
%76 = load i32, i32* %32
%77 = call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([4 x i8], [4 x i8]* @.str.4, i64 0, i64 0), i32 %76)
%78 = load i32, i32* %40
%79 = call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([4 x i8], [4 x i8]* @.str.4, i64 0, i64 0), i32 %78)
%80 = call i32 @putchar(i32 10)
%81 = call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([12 x i8], [12 x i8]* @.str.3, i64 0, i64 0), i32 4)
%82 = load i32, i32* %10
%83 = call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([4 x i8], [4 x i8]* @.str.4, i64 0, i64 0), i32 %82)
%84 = load i32, i32* %18
%85 = call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([4 x i8], [4 x i8]* @.str.4, i64 0, i64 0), i32 %84)
%86 = load i32, i32* %26
%87 = call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([4 x i8], [4 x i8]* @.str.4, i64 0, i64 0), i32 %86)
%88 = load i32, i32* %34
%89 = call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([4 x i8], [4 x i8]* @.str.4, i64 0, i64 0), i32 %88)
%90 = load i32, i32* %42
%91 = call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([4 x i8], [4 x i8]* @.str.4, i64 0, i64 0), i32 %90)
%92 = call i32 @putchar(i32 10)
%93 = call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([20 x i8], [20 x i8]* @str.10, i64 0, i64 0))
%94 = load i32, i32* %4
%95 = call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([6 x i8], [6 x i8]* @.str.6, i64 0, i64 0), i32 %94)
%96 = load i32, i32* %12
%97 = call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([6 x i8], [6 x i8]* @.str.6, i64 0, i64 0), i32 %96)
%98 = load i32, i32* %20
%99 = call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([6 x i8], [6 x i8]* @.str.6, i64 0, i64 0), i32 %98)
%100 = load i32, i32* %28
%101 = call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([6 x i8], [6 x i8]* @.str.6, i64 0, i64 0), i32 %100)
%102 = load i32, i32* %36
%103 = call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([6 x i8], [6 x i8]* @.str.6, i64 0, i64 0), i32 %102)
%104 = call i32 @putchar(i32 10)
%105 = load i32, i32* %6
%106 = call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([6 x i8], [6 x i8]* @.str.6, i64 0, i64 0), i32 %105)
%107 = load i32, i32* %14
%108 = call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([6 x i8], [6 x i8]* @.str.6, i64 0, i64 0), i32 %107)
%109 = load i32, i32* %22
%110 = call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([6 x i8], [6 x i8]* @.str.6, i64 0, i64 0), i32 %109)
%111 = load i32, i32* %30
%112 = call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([6 x i8], [6 x i8]* @.str.6, i64 0, i64 0), i32 %111)
%113 = load i32, i32* %38
%114 = call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([6 x i8], [6 x i8]* @.str.6, i64 0, i64 0), i32 %113)
%115 = call i32 @putchar(i32 10)
%116 = load i32, i32* %8
%117 = call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([6 x i8], [6 x i8]* @.str.6, i64 0, i64 0), i32 %116)
%118 = load i32, i32* %16
%119 = call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([6 x i8], [6 x i8]* @.str.6, i64 0, i64 0), i32 %118)
%120 = load i32, i32* %24
%121 = call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([6 x i8], [6 x i8]* @.str.6, i64 0, i64 0), i32 %120)
%122 = load i32, i32* %32
%123 = call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([6 x i8], [6 x i8]* @.str.6, i64 0, i64 0), i32 %122)
%124 = load i32, i32* %40
%125 = call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([6 x i8], [6 x i8]* @.str.6, i64 0, i64 0), i32 %124)
%126 = call i32 @putchar(i32 10)
%127 = load i32, i32* %10
%128 = call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([6 x i8], [6 x i8]* @.str.6, i64 0, i64 0), i32 %127)
%129 = load i32, i32* %18
%130 = call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([6 x i8], [6 x i8]* @.str.6, i64 0, i64 0), i32 %129)
%131 = load i32, i32* %26
%132 = call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([6 x i8], [6 x i8]* @.str.6, i64 0, i64 0), i32 %131)
%133 = load i32, i32* %34
%134 = call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([6 x i8], [6 x i8]* @.str.6, i64 0, i64 0), i32 %133)
%135 = load i32, i32* %42
%136 = call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([6 x i8], [6 x i8]* @.str.6, i64 0, i64 0), i32 %135)
%137 = call i32 @putchar(i32 10)
%138 = load i32, i32* %4
br label %139
139: ; preds = %220, %0
%140 = phi i32 [ %138, %0 ], [ %222, %220 ]
%141 = phi i64 [ 0, %0 ], [ %218, %220 ]
%142 = phi i32 [ 0, %0 ], [ %217, %220 ]
%143 = phi i32 [ 0, %0 ], [ %215, %220 ]
%144 = phi i32 [ 0, %0 ], [ %213, %220 ]
%145 = phi i32 [ 0, %0 ], [ %212, %220 ]
%146 = phi i32 [ 0, %0 ], [ %211, %220 ]
%147 = phi i32 [ 0, %0 ], [ %210, %220 ]
%148 = phi i32 [ %138, %0 ], [ %209, %220 ]
%149 = phi i32 [ %138, %0 ], [ %208, %220 ]
%150 = icmp eq i64 %141, 2
%151 = icmp sgt i32 %140, %149
%152 = trunc i64 %141 to i32
br i1 %151, label %156, label %153
153: ; preds = %139
%154 = icmp slt i32 %140, %148
br i1 %154, label %155, label %156
155: ; preds = %153
br label %156
156: ; preds = %139, %153, %155
%157 = phi i32 [ %149, %155 ], [ %149, %153 ], [ %140, %139 ]
%158 = phi i32 [ %140, %155 ], [ %148, %153 ], [ %148, %139 ]
%159 = phi i32 [ 0, %155 ], [ %147, %153 ], [ %147, %139 ]
%160 = phi i32 [ %152, %155 ], [ %146, %153 ], [ %146, %139 ]
%161 = phi i32 [ %145, %155 ], [ %145, %153 ], [ 0, %139 ]
%162 = phi i32 [ %144, %155 ], [ %144, %153 ], [ %152, %139 ]
%163 = lshr i32 %140, 31
%164 = add nsw i32 %163, %143
%165 = select i1 %150, i32 %140, i32 0
%166 = add nsw i32 %165, %142
%167 = getelementptr inbounds [4 x [5 x i32]], [4 x [5 x i32]]* %1, i64 0, i64 1, i64 %141
%168 = load i32, i32* %167
%169 = icmp sgt i32 %168, %157
br i1 %169, label %173, label %170
170: ; preds = %156
%171 = icmp slt i32 %168, %158
br i1 %171, label %172, label %173
172: ; preds = %170
br label %173
173: ; preds = %172, %170, %156
%174 = phi i32 [ %157, %172 ], [ %157, %170 ], [ %168, %156 ]
%175 = phi i32 [ %168, %172 ], [ %158, %170 ], [ %158, %156 ]
%176 = phi i32 [ 1, %172 ], [ %159, %170 ], [ %159, %156 ]
%177 = phi i32 [ %152, %172 ], [ %160, %170 ], [ %160, %156 ]
%178 = phi i32 [ %161, %172 ], [ %161, %170 ], [ 1, %156 ]
%179 = phi i32 [ %162, %172 ], [ %162, %170 ], [ %152, %156 ]
%180 = lshr i32 %168, 31
%181 = add nsw i32 %180, %164
%182 = select i1 %150, i32 %168, i32 0
%183 = add nsw i32 %182, %166
%184 = getelementptr inbounds [4 x [5 x i32]], [4 x [5 x i32]]* %1, i64 0, i64 2, i64 %141
%185 = load i32, i32* %184
%186 = icmp sgt i32 %185, %174
br i1 %186, label %190, label %187
187: ; preds = %173
%188 = icmp slt i32 %185, %175
br i1 %188, label %189, label %190
189: ; preds = %187
br label %190
190: ; preds = %189, %187, %173
%191 = phi i32 [ %174, %189 ], [ %174, %187 ], [ %185, %173 ]
%192 = phi i32 [ %185, %189 ], [ %175, %187 ], [ %175, %173 ]
%193 = phi i32 [ 2, %189 ], [ %176, %187 ], [ %176, %173 ]
%194 = phi i32 [ %152, %189 ], [ %177, %187 ], [ %177, %173 ]
%195 = phi i32 [ %178, %189 ], [ %178, %187 ], [ 2, %173 ]
%196 = phi i32 [ %179, %189 ], [ %179, %187 ], [ %152, %173 ]
%197 = lshr i32 %185, 31
%198 = add nsw i32 %197, %181
%199 = select i1 %150, i32 %185, i32 0
%200 = add nsw i32 %199, %183
%201 = getelementptr inbounds [4 x [5 x i32]], [4 x [5 x i32]]* %1, i64 0, i64 3, i64 %141
%202 = load i32, i32* %201
%203 = icmp sgt i32 %202, %191
br i1 %203, label %207, label %204
204: ; preds = %190
%205 = icmp slt i32 %202, %192
br i1 %205, label %206, label %207
206: ; preds = %204
br label %207
207: ; preds = %206, %204, %190
%208 = phi i32 [ %191, %206 ], [ %191, %204 ], [ %202, %190 ]
%209 = phi i32 [ %202, %206 ], [ %192, %204 ], [ %192, %190 ]
%210 = phi i32 [ 3, %206 ], [ %193, %204 ], [ %193, %190 ]
%211 = phi i32 [ %152, %206 ], [ %194, %204 ], [ %194, %190 ]
%212 = phi i32 [ %195, %206 ], [ %195, %204 ], [ 3, %190 ]
%213 = phi i32 [ %196, %206 ], [ %196, %204 ], [ %152, %190 ]
%214 = lshr i32 %202, 31
%215 = add nsw i32 %214, %198
%216 = select i1 %150, i32 %202, i32 0
%217 = add nsw i32 %216, %200
%218 = add nuw nsw i64 %141, 1
%219 = icmp eq i64 %218, 5
br i1 %219, label %223, label %220
220: ; preds = %207
%221 = getelementptr inbounds [4 x [5 x i32]], [4 x [5 x i32]]* %1, i64 0, i64 0, i64 %218
%222 = load i32, i32* %221
br label %139
223: ; preds = %207
%224 = call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([97 x i8], [97 x i8]* @.str.7, i64 0, i64 0), i32 %208, i32 %212, i32 %213, i32 %209, i32 %210, i32 %211)
%225 = call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([48 x i8], [48 x i8]* @.str.8, i64 0, i64 0), i32 %217)
%226 = sub nsw i32 20, %215
%227 = call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([62 x i8], [62 x i8]* @.str.9, i64 0, i64 0), i32 %215, i32 %226)
ret i32 0
}