#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*/ imprimirFilaDeMatriz(int **, int);
int /*<<< orphan*/ printf(char *, ...);
void ordenDescendente(int control[1000][5], int registros, int columna) {
  if (registros > 0) {
    printf("Orden Ascendente Por ");
    switch (columna) {
    case 0:
      printf("ID: \n");
      break;
    case 1:
      printf("Edad:\n");
      break;
    case 2:
      printf("Pacientes:\n");
      break;
    case 3:
      printf("Horario:\n");
      break;
    case 4:
      printf("Piso:\n");
      break;
    }
    printf("%15s", "ID");
    printf("%15s", "Edad");
    printf("%15s", "Pacientes");
    printf("%15s", "Horario");
    printf("%15s\n", "Piso");
    int maxValor;
    int minPosicion = 0;
    int posicionesVisitadas[1000];
    for (int i = 0; i < registros; i++) {
      posicionesVisitadas[i] = -1;
    }
    for (int c = 0; c < registros; c++) {
      maxValor = 0;
      minPosicion = 0;
      for (int i = 0; i < registros; i++) {
        if (control[i][columna] > maxValor && posicionesVisitadas[i] == -1) {
          maxValor = control[i][columna];
          minPosicion = i;
        }
      }
      posicionesVisitadas[minPosicion] = 1;
      imprimirFilaDeMatriz(control, minPosicion);
    }
  } else {
    printf("Matriz Vacia\n");
  }
}


x86 assembly (clang, -O0):
<ordenDescendente>:
push   %rbp
mov    %rsp,%rbp
sub    $0xfe0,%rsp
mov    %rdi,-0x8(%rbp)
mov    %esi,-0xc(%rbp)
mov    %edx,-0x10(%rbp)
cmpl   $0x0,-0xc(%rbp)
jle    136a <ordenDescendente+0x24a>
lea    0xece(%rip),%rdi
xor    %eax,%eax
call   1030 <printf@plt>
mov    -0x10(%rbp),%eax
mov    %rax,-0xfd8(%rbp)
sub    $0x4,%rax
ja     11d2 <ordenDescendente+0xb2>
mov    -0xfd8(%rbp),%rax
lea    0xe91(%rip),%rcx
movslq (%rcx,%rax,4),%rax
add    %rcx,%rax
jmp    *%rax
lea    0xeab(%rip),%rdi
mov    $0x0,%al
call   1030 <printf@plt>
jmp    11d2 <ordenDescendente+0xb2>
lea    0xe9e(%rip),%rdi
mov    $0x0,%al
call   1030 <printf@plt>
jmp    11d2 <ordenDescendente+0xb2>
lea    0xe92(%rip),%rdi
mov    $0x0,%al
call   1030 <printf@plt>
jmp    11d2 <ordenDescendente+0xb2>
lea    0xe8b(%rip),%rdi
mov    $0x0,%al
call   1030 <printf@plt>
jmp    11d2 <ordenDescendente+0xb2>
lea    0xe82(%rip),%rdi
mov    $0x0,%al
call   1030 <printf@plt>
lea    0xe7b(%rip),%rdi
lea    0xe79(%rip),%rsi
mov    $0x0,%al
call   1030 <printf@plt>
lea    0xe66(%rip),%rdi
lea    0xe67(%rip),%rsi
mov    $0x0,%al
call   1030 <printf@plt>
lea    0xe51(%rip),%rdi
lea    0xe57(%rip),%rsi
mov    $0x0,%al
call   1030 <printf@plt>
lea    0xe3c(%rip),%rdi
lea    0xe4c(%rip),%rsi
mov    $0x0,%al
call   1030 <printf@plt>
lea    0xe46(%rip),%rdi
lea    0xe45(%rip),%rsi
mov    $0x0,%al
call   1030 <printf@plt>
movl   $0x0,-0x18(%rbp)
movl   $0x0,-0xfc4(%rbp)
mov    -0xfc4(%rbp),%eax
cmp    -0xc(%rbp),%eax
jge    1281 <ordenDescendente+0x161>
movslq -0xfc4(%rbp),%rax
movl   $0xffffffff,-0xfc0(%rbp,%rax,4)
ff ff ff ff
mov    -0xfc4(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0xfc4(%rbp)
jmp    124c <ordenDescendente+0x12c>
movl   $0x0,-0xfc8(%rbp)
mov    -0xfc8(%rbp),%eax
cmp    -0xc(%rbp),%eax
jge    1365 <ordenDescendente+0x245>
movl   $0x0,-0x14(%rbp)
movl   $0x0,-0x18(%rbp)
movl   $0x0,-0xfcc(%rbp)
mov    -0xfcc(%rbp),%eax
cmp    -0xc(%rbp),%eax
jge    1336 <ordenDescendente+0x216>
mov    -0x8(%rbp),%rax
movslq -0xfcc(%rbp),%rcx
imul   $0x14,%rcx,%rcx
add    %rcx,%rax
movslq -0x10(%rbp),%rcx
mov    (%rax,%rcx,4),%eax
cmp    -0x14(%rbp),%eax
jle    131d <ordenDescendente+0x1fd>
movslq -0xfcc(%rbp),%rax
cmpl   $0xffffffff,-0xfc0(%rbp,%rax,4)
ff
jne    131d <ordenDescendente+0x1fd>
mov    -0x8(%rbp),%rax
movslq -0xfcc(%rbp),%rcx
imul   $0x14,%rcx,%rcx
add    %rcx,%rax
movslq -0x10(%rbp),%rcx
mov    (%rax,%rcx,4),%eax
mov    %eax,-0x14(%rbp)
mov    -0xfcc(%rbp),%eax
mov    %eax,-0x18(%rbp)
jmp    1322 <ordenDescendente+0x202>
mov    -0xfcc(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0xfcc(%rbp)
jmp    12b2 <ordenDescendente+0x192>
movslq -0x18(%rbp),%rax
movl   $0x1,-0xfc0(%rbp,%rax,4)
mov    -0x8(%rbp),%rdi
mov    -0x18(%rbp),%esi
call   1040 <imprimirFilaDeMatriz@plt>
mov    -0xfc8(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0xfc8(%rbp)
jmp    128b <ordenDescendente+0x16b>
jmp    1378 <ordenDescendente+0x258>
lea    0xd0d(%rip),%rdi
mov    $0x0,%al
call   1030 <printf@plt>
add    $0xfe0,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<ordenDescendente>:
test   %esi,%esi
jle    12d7 <ordenDescendente+0x197>
push   %rbp
push   %r15
push   %r14
push   %r13
push   %r12
push   %rbx
sub    $0xfb8,%rsp
mov    %edx,%r15d
mov    %esi,%r13d
mov    %rdi,%r14
lea    0xe97(%rip),%rdi
xor    %r12d,%r12d
xor    %eax,%eax
call   1040 <printf@plt>
movslq %r15d,%rbx
cmp    $0x4,%r15d
ja     118f <ordenDescendente+0x4f>
lea    0xef1(%rip),%rax
movslq (%rax,%rbx,4),%rdi
add    %rax,%rdi
call   1030 <puts@plt>
lea    0xe80(%rip),%r15
lea    0xe7e(%rip),%rsi
mov    %r15,%rdi
xor    %eax,%eax
call   1040 <printf@plt>
lea    0xe70(%rip),%rsi
mov    %r15,%rdi
xor    %eax,%eax
call   1040 <printf@plt>
lea    0xe64(%rip),%rsi
mov    %r15,%rdi
xor    %eax,%eax
call   1040 <printf@plt>
lea    0xe5d(%rip),%rsi
mov    %r15,%rdi
xor    %eax,%eax
call   1040 <printf@plt>
lea    0xe54(%rip),%rdi
lea    0xe53(%rip),%rsi
xor    %eax,%eax
call   1040 <printf@plt>
mov    %r13d,%r15d
lea    0x0(,%r15,4),%rdx
lea    0x10(%rsp),%rdi
mov    $0xff,%esi
call   1050 <memset@plt>
mov    %rbx,%rax
mov    %r15d,%ebx
and    $0xfffffffe,%ebx
mov    %rax,0x8(%rsp)
lea    (%r14,%rax,4),%rax
mov    %rax,(%rsp)
jmp    124c <ordenDescendente+0x10c>
cs nopw 0x0(%rax,%rax,1)
nopl   0x0(%rax,%rax,1)
movslq %ecx,%rsi
movl   $0x1,0x10(%rsp,%rsi,4)
mov    %r14,%rdi
call   1060 <imprimirFilaDeMatriz@plt>
add    $0x1,%r12d
cmp    %r13d,%r12d
je     12c5 <ordenDescendente+0x185>
xor    %eax,%eax
cmp    $0x1,%r13d
jne    1280 <ordenDescendente+0x140>
xor    %ecx,%ecx
xor    %edx,%edx
test   $0x1,%r15b
je     1230 <ordenDescendente+0xf0>
lea    (%rax,%rax,4),%rsi
lea    (%r14,%rsi,4),%rsi
mov    0x8(%rsp),%rdi
cmp    %edx,(%rsi,%rdi,4)
jle    1230 <ordenDescendente+0xf0>
cmpl   $0xffffffff,0x10(%rsp,%rax,4)
cmove  %eax,%ecx
jmp    1230 <ordenDescendente+0xf0>
nopw   0x0(%rax,%rax,1)
mov    (%rsp),%rsi
xor    %ecx,%ecx
xor    %edx,%edx
jmp    129d <ordenDescendente+0x15d>
nopw   0x0(%rax,%rax,1)
add    $0x2,%rax
add    $0x28,%rsi
cmp    %rax,%rbx
je     1258 <ordenDescendente+0x118>
mov    (%rsi),%edi
cmp    %edx,%edi
jle    12ae <ordenDescendente+0x16e>
cmpl   $0xffffffff,0x10(%rsp,%rax,4)
cmove  %edi,%edx
cmove  %eax,%ecx
mov    0x14(%rsi),%edi
cmp    %edx,%edi
jle    1290 <ordenDescendente+0x150>
lea    0x1(%rax),%ebp
cmpl   $0xffffffff,0x14(%rsp,%rax,4)
cmove  %edi,%edx
cmove  %ebp,%ecx
jmp    1290 <ordenDescendente+0x150>
add    $0xfb8,%rsp
pop    %rbx
pop    %r12
pop    %r13
pop    %r14
pop    %r15
pop    %rbp
ret
lea    0xd62(%rip),%rdi
jmp    1030 <puts@plt>

LLVM IR (-O0):
@.str = [22 x i8] c"Orden Ascendente Por \00"
@.str.1 = [6 x i8] c"ID: \0A\00"
@.str.2 = [7 x i8] c"Edad:\0A\00"
@.str.3 = [12 x i8] c"Pacientes:\0A\00"
@.str.4 = [10 x i8] c"Horario:\0A\00"
@.str.5 = [7 x i8] c"Piso:\0A\00"
@.str.6 = [5 x i8] c"%15s\00"
@.str.7 = [3 x i8] c"ID\00"
@.str.8 = [5 x i8] c"Edad\00"
@.str.9 = [10 x i8] c"Pacientes\00"
@.str.10 = [8 x i8] c"Horario\00"
@.str.11 = [6 x i8] c"%15s\0A\00"
@.str.12 = [5 x i8] c"Piso\00"
@.str.13 = [14 x i8] c"Matriz Vacia\0A\00"
define void @ordenDescendente([5 x i32]* %0, i32 %1, i32 %2) {
%4 = alloca [5 x i32]*
%5 = alloca i32
%6 = alloca i32
%7 = alloca i32
%8 = alloca i32
%9 = alloca [1000 x i32]
%10 = alloca i32
%11 = alloca i32
%12 = alloca i32
store [5 x i32]* %0, [5 x i32]** %4
store i32 %1, i32* %5
store i32 %2, i32* %6
%13 = load i32, i32* %5
%14 = icmp sgt i32 %13, 0
br i1 %14, label %15, label %98
15: ; preds = %3
%16 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([22 x i8], [22 x i8]* @.str, i64 0, i64 0))
%17 = load i32, i32* %6
switch i32 %17, label %28 [
i32 0, label %18
i32 1, label %20
i32 2, label %22
i32 3, label %24
i32 4, label %26
]
18: ; preds = %15
%19 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([6 x i8], [6 x i8]* @.str.1, i64 0, i64 0))
br label %28
20: ; preds = %15
%21 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([7 x i8], [7 x i8]* @.str.2, i64 0, i64 0))
br label %28
22: ; preds = %15
%23 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([12 x i8], [12 x i8]* @.str.3, i64 0, i64 0))
br label %28
24: ; preds = %15
%25 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([10 x i8], [10 x i8]* @.str.4, i64 0, i64 0))
br label %28
26: ; preds = %15
%27 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([7 x i8], [7 x i8]* @.str.5, i64 0, i64 0))
br label %28
28: ; preds = %15, %26, %24, %22, %20, %18
%29 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([5 x i8], [5 x i8]* @.str.6, i64 0, i64 0), i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str.7, i64 0, i64 0))
%30 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([5 x i8], [5 x i8]* @.str.6, i64 0, i64 0), i8* getelementptr inbounds ([5 x i8], [5 x i8]* @.str.8, i64 0, i64 0))
%31 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([5 x i8], [5 x i8]* @.str.6, i64 0, i64 0), i8* getelementptr inbounds ([10 x i8], [10 x i8]* @.str.9, i64 0, i64 0))
%32 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([5 x i8], [5 x i8]* @.str.6, i64 0, i64 0), i8* getelementptr inbounds ([8 x i8], [8 x i8]* @.str.10, i64 0, i64 0))
%33 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([6 x i8], [6 x i8]* @.str.11, i64 0, i64 0), i8* getelementptr inbounds ([5 x i8], [5 x i8]* @.str.12, i64 0, i64 0))
store i32 0, i32* %8
store i32 0, i32* %10
br label %34
34: ; preds = %42, %28
%35 = load i32, i32* %10
%36 = load i32, i32* %5
%37 = icmp slt i32 %35, %36
br i1 %37, label %38, label %45
38: ; preds = %34
%39 = load i32, i32* %10
%40 = sext i32 %39 to i64
%41 = getelementptr inbounds [1000 x i32], [1000 x i32]* %9, i64 0, i64 %40
store i32 -1, i32* %41
br label %42
42: ; preds = %38
%43 = load i32, i32* %10
%44 = add nsw i32 %43, 1
store i32 %44, i32* %10
br label %34
45: ; preds = %34
store i32 0, i32* %11
br label %46
46: ; preds = %94, %45
%47 = load i32, i32* %11
%48 = load i32, i32* %5
%49 = icmp slt i32 %47, %48
br i1 %49, label %50, label %97
50: ; preds = %46
store i32 0, i32* %7
store i32 0, i32* %8
store i32 0, i32* %12
br label %51
51: ; preds = %83, %50
%52 = load i32, i32* %12
%53 = load i32, i32* %5
%54 = icmp slt i32 %52, %53
br i1 %54, label %55, label %86
55: ; preds = %51
%56 = load [5 x i32]*, [5 x i32]** %4
%57 = load i32, i32* %12
%58 = sext i32 %57 to i64
%59 = getelementptr inbounds [5 x i32], [5 x i32]* %56, i64 %58
%60 = load i32, i32* %6
%61 = sext i32 %60 to i64
%62 = getelementptr inbounds [5 x i32], [5 x i32]* %59, i64 0, i64 %61
%63 = load i32, i32* %62
%64 = load i32, i32* %7
%65 = icmp sgt i32 %63, %64
br i1 %65, label %66, label %82
66: ; preds = %55
%67 = load i32, i32* %12
%68 = sext i32 %67 to i64
%69 = getelementptr inbounds [1000 x i32], [1000 x i32]* %9, i64 0, i64 %68
%70 = load i32, i32* %69
%71 = icmp eq i32 %70, -1
br i1 %71, label %72, label %82
72: ; preds = %66
%73 = load [5 x i32]*, [5 x i32]** %4
%74 = load i32, i32* %12
%75 = sext i32 %74 to i64
%76 = getelementptr inbounds [5 x i32], [5 x i32]* %73, i64 %75
%77 = load i32, i32* %6
%78 = sext i32 %77 to i64
%79 = getelementptr inbounds [5 x i32], [5 x i32]* %76, i64 0, i64 %78
%80 = load i32, i32* %79
store i32 %80, i32* %7
%81 = load i32, i32* %12
store i32 %81, i32* %8
br label %82
82: ; preds = %72, %66, %55
br label %83
83: ; preds = %82
%84 = load i32, i32* %12
%85 = add nsw i32 %84, 1
store i32 %85, i32* %12
br label %51
86: ; preds = %51
%87 = load i32, i32* %8
%88 = sext i32 %87 to i64
%89 = getelementptr inbounds [1000 x i32], [1000 x i32]* %9, i64 0, i64 %88
store i32 1, i32* %89
%90 = load [5 x i32]*, [5 x i32]** %4
%91 = bitcast [5 x i32]* %90 to i32**
%92 = load i32, i32* %8
%93 = call i32 @imprimirFilaDeMatriz(i32** %91, i32 %92)
br label %94
94: ; preds = %86
%95 = load i32, i32* %11
%96 = add nsw i32 %95, 1
store i32 %96, i32* %11
br label %46
97: ; preds = %46
br label %100
98: ; preds = %3
%99 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([14 x i8], [14 x i8]* @.str.13, i64 0, i64 0))
br label %100
100: ; preds = %98, %97
ret void
}

LLVM IR (-O2):
@.str = [22 x i8] c"Orden Ascendente Por \00"
@.str.6 = [5 x i8] c"%15s\00"
@.str.7 = [3 x i8] c"ID\00"
@.str.8 = [5 x i8] c"Edad\00"
@.str.9 = [10 x i8] c"Pacientes\00"
@.str.10 = [8 x i8] c"Horario\00"
@.str.11 = [6 x i8] c"%15s\0A\00"
@.str.12 = [5 x i8] c"Piso\00"
@str = [13 x i8] c"Matriz Vacia\00"
@str.14 = [6 x i8] c"Piso:\00"
@str.15 = [9 x i8] c"Horario:\00"
@str.16 = [11 x i8] c"Pacientes:\00"
@str.17 = [6 x i8] c"Edad:\00"
@str.18 = [5 x i8] c"ID: \00"
@reltable.ordenDescendente = [5 x i32] [i32 trunc (i64 sub (i64 ptrtoint ([5 x i8]* @str.18 to i64), i64 ptrtoint ([5 x i32]* @reltable.ordenDescendente to i64)) to i32), i32 trunc (i64 sub (i64 ptrtoint ([6 x i8]* @str.17 to i64), i64 ptrtoint ([5 x i32]* @reltable.ordenDescendente to i64)) to i32), i32 trunc (i64 sub (i64 ptrtoint ([11 x i8]* @str.16 to i64), i64 ptrtoint ([5 x i32]* @reltable.ordenDescendente to i64)) to i32), i32 trunc (i64 sub (i64 ptrtoint ([9 x i8]* @str.15 to i64), i64 ptrtoint ([5 x i32]* @reltable.ordenDescendente to i64)) to i32), i32 trunc (i64 sub (i64 ptrtoint ([6 x i8]* @str.14 to i64), i64 ptrtoint ([5 x i32]* @reltable.ordenDescendente to i64)) to i32)]
define void @ordenDescendente([5 x i32]* %0, i32 %1, i32 %2) {
%4 = alloca [1000 x i32]
%5 = bitcast [1000 x i32]* %4 to i8*
%6 = icmp sgt i32 %1, 0
br i1 %6, label %7, label %90
7: ; preds = %3
%8 = tail call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([22 x i8], [22 x i8]* @.str, i64 0, i64 0))
%9 = icmp ult i32 %2, 5
br i1 %9, label %10, label %15
10: ; preds = %7
%11 = sext i32 %2 to i64
%12 = shl i64 %11, 2
%13 = call i8* @llvm.load.relative.i64(i8* bitcast ([5 x i32]* @reltable.ordenDescendente to i8*), i64 %12)
%14 = tail call i32 @puts(i8* dereferenceable(1) %13)
br label %15
15: ; preds = %7, %10
%16 = tail call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([5 x i8], [5 x i8]* @.str.6, i64 0, i64 0), i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str.7, i64 0, i64 0))
%17 = tail call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([5 x i8], [5 x i8]* @.str.6, i64 0, i64 0), i8* getelementptr inbounds ([5 x i8], [5 x i8]* @.str.8, i64 0, i64 0))
%18 = tail call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([5 x i8], [5 x i8]* @.str.6, i64 0, i64 0), i8* getelementptr inbounds ([10 x i8], [10 x i8]* @.str.9, i64 0, i64 0))
%19 = tail call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([5 x i8], [5 x i8]* @.str.6, i64 0, i64 0), i8* getelementptr inbounds ([8 x i8], [8 x i8]* @.str.10, i64 0, i64 0))
%20 = tail call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([6 x i8], [6 x i8]* @.str.11, i64 0, i64 0), i8* getelementptr inbounds ([5 x i8], [5 x i8]* @.str.12, i64 0, i64 0))
%21 = zext i32 %1 to i64
%22 = shl nuw nsw i64 %21, 2
%23 = sext i32 %2 to i64
%24 = bitcast [5 x i32]* %0 to i32**
%25 = zext i32 %1 to i64
%26 = and i64 %25, 1
%27 = icmp eq i32 %1, 1
%28 = and i64 %25, 4294967294
%29 = icmp eq i64 %26, 0
br label %30
30: ; preds = %48, %15
%31 = phi i32 [ 0, %15 ], [ %53, %48 ]
br i1 %27, label %33, label %55
32: ; preds = %48
br label %92
33: ; preds = %84, %30
%34 = phi i32 [ undef, %30 ], [ %86, %84 ]
%35 = phi i64 [ 0, %30 ], [ %87, %84 ]
%36 = phi i32 [ 0, %30 ], [ %86, %84 ]
%37 = phi i32 [ 0, %30 ], [ %85, %84 ]
br i1 %29, label %48, label %38
38: ; preds = %33
%39 = getelementptr inbounds [5 x i32], [5 x i32]* %0, i64 %35, i64 %23
%40 = load i32, i32* %39
%41 = icmp sgt i32 %40, %37
br i1 %41, label %42, label %48
42: ; preds = %38
%43 = getelementptr inbounds [1000 x i32], [1000 x i32]* %4, i64 0, i64 %35
%44 = load i32, i32* %43
%45 = icmp eq i32 %44, -1
%46 = trunc i64 %35 to i32
%47 = select i1 %45, i32 %46, i32 %36
br label %48
48: ; preds = %38, %42, %33
%49 = phi i32 [ %34, %33 ], [ %36, %38 ], [ %47, %42 ]
%50 = sext i32 %49 to i64
%51 = getelementptr inbounds [1000 x i32], [1000 x i32]* %4, i64 0, i64 %50
store i32 1, i32* %51
%52 = tail call i32 @imprimirFilaDeMatriz(i32** %24, i32 %49)
%53 = add nuw nsw i32 %31, 1
%54 = icmp eq i32 %53, %1
br i1 %54, label %32, label %30
55: ; preds = %30, %84
%56 = phi i64 [ %87, %84 ], [ 0, %30 ]
%57 = phi i32 [ %86, %84 ], [ 0, %30 ]
%58 = phi i32 [ %85, %84 ], [ 0, %30 ]
%59 = phi i64 [ %88, %84 ], [ 0, %30 ]
%60 = getelementptr inbounds [5 x i32], [5 x i32]* %0, i64 %56, i64 %23
%61 = load i32, i32* %60
%62 = icmp sgt i32 %61, %58
br i1 %62, label %63, label %70
63: ; preds = %55
%64 = getelementptr inbounds [1000 x i32], [1000 x i32]* %4, i64 0, i64 %56
%65 = load i32, i32* %64
%66 = icmp eq i32 %65, -1
%67 = select i1 %66, i32 %61, i32 %58
%68 = trunc i64 %56 to i32
%69 = select i1 %66, i32 %68, i32 %57
br label %70
70: ; preds = %63, %55
%71 = phi i32 [ %58, %55 ], [ %67, %63 ]
%72 = phi i32 [ %57, %55 ], [ %69, %63 ]
%73 = or i64 %56, 1
%74 = getelementptr inbounds [5 x i32], [5 x i32]* %0, i64 %73, i64 %23
%75 = load i32, i32* %74
%76 = icmp sgt i32 %75, %71
br i1 %76, label %77, label %84
77: ; preds = %70
%78 = getelementptr inbounds [1000 x i32], [1000 x i32]* %4, i64 0, i64 %73
%79 = load i32, i32* %78
%80 = icmp eq i32 %79, -1
%81 = select i1 %80, i32 %75, i32 %71
%82 = trunc i64 %73 to i32
%83 = select i1 %80, i32 %82, i32 %72
br label %84
84: ; preds = %77, %70
%85 = phi i32 [ %71, %70 ], [ %81, %77 ]
%86 = phi i32 [ %72, %70 ], [ %83, %77 ]
%87 = add nuw nsw i64 %56, 2
%88 = add i64 %59, 2
%89 = icmp eq i64 %88, %28
br i1 %89, label %33, label %55
90: ; preds = %3
%91 = tail call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([13 x i8], [13 x i8]* @str, i64 0, i64 0))
br label %92
92: ; preds = %90, %32
ret void
}