#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 */
char getch();
int /*<<< orphan*/ printf(char *, ...);
int /*<<< orphan*/ system(char *);
int main() {
  int mapa[15][15] = {
      {1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1},
      {1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 1},
      {1, 0, 3, 4, 5, 6, 0, 3, 4, 5, 6, 6, 5, 0, 1},
      {1, 0, 4, 0, 0, 5, 0, 4, 0, 0, 0, 0, 4, 0, 1},
      {1, 0, 5, 0, 3, 4, 0, 5, 0, 3, 0, 4, 3, 4, 1},
      {1, 0, 6, 0, 0, 0, 0, 6, 0, 4, 0, 0, 0, 0, 1},
      {1, 0, 0, 3, 4, 0, 4, 3, 0, 5, 4, 3, 4, 5, 1},
      {1, 3, 0, 0, 5, 0, 0, 0, 0, 6, 0, 0, 0, 0, 1},
      {1, 0, 0, 0, 0, 6, 0, 5, 4, 3, 0, 3, 4, 5, 1},
      {1, 0, 4, 5, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 1},
      {1, 0, 5, 0, 6, 3, 4, 5, 6, 5, 4, 3, 0, 5, 1},
      {1, 0, 6, 0, 5, 0, 0, 0, 0, 0, 2, 4, 0, 0, 1},
      {1, 0, 5, 0, 4, 0, 6, 5, 4, 3, 4, 5, 6, 0, 1},
      {1, 0, 0, 0, 0, 0, 0, 0, 3, 0, 0, 0, 0, 0, 1},
      {1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1},
  };
  int i, j, x, fp, cp;
  char tecla;
  printf("\n\t\t   LABERINTO");
  fp = 1;
  cp = 1;
  mapa[fp][cp] = 10;
  tecla = 0;
  for (i = 0; i < 15; i++) {
    printf("\n\t\t");
    for (j = 0; j < 15; j++) {
      if (mapa[i][j] == 0) {
        printf(" ");
      }
      if (mapa[i][j] == 1) {
        printf("@");
      }
      if (mapa[i][j] == 10) {
        printf("\1");
      }
      if (mapa[i][j] == 2) {
        printf("%c", 2);
      }
      if (mapa[i][j] == 3) {
        printf("%c", 3);
      }
      if (mapa[i][j] == 4) {
        printf("%c", 4);
      }
      if (mapa[i][j] == 5) {
        printf("%c", 5);
      }
      if (mapa[i][j] == 6) {
        printf("%c", 6);
      }
    }
  }
  while (tecla != 's' || tecla != 'S') {
    tecla = 0;
    tecla = getch();
    mapa[fp][cp] = 0;
    if (tecla == 77) {
      if (mapa[fp][cp + 1] == 0) {
        cp++;
      }
    }
    if (tecla == 75) {
      if (mapa[fp][cp - 1] == 0) {
        cp--;
      }
    }
    if (tecla == 80) {
      if (mapa[fp + 1][cp] == 0) {
        fp++;
      }
    }
    if (tecla == 72) {
      if (mapa[fp - 1][cp] == 0) {
        fp--;
      }
    }
    mapa[fp][cp] = 10;
    system("CLS");
    for (i = 0; i < 15; i++) {
      printf("\n\t\t");
      for (j = 0; j < 15; j++) {
        if (mapa[i][j] == 0) {
          printf(" ");
        }
        if (mapa[i][j] == 1) {
          printf("@");
        }
        if (mapa[i][j] == 10) {
          printf("\1");
        }
        if (mapa[i][j] == 2) {
          printf("%c", 2);
        }
        if (mapa[i][j] == 3) {
          printf("%c", 3);
        }
        if (mapa[i][j] == 4) {
          printf("%c", 4);
        }
        if (mapa[i][j] == 5) {
          printf("%c", 5);
        }
        if (mapa[i][j] == 6) {
          printf("%c", 6);
        }
      }
    }
  }
  system("pause");
  return 0;
}


x86 assembly (clang, -O0):
<main>:
push   %rbp
mov    %rsp,%rbp
sub    $0x3b0,%rsp
movl   $0x0,-0x4(%rbp)
lea    -0x390(%rbp),%rdi
lea    0xea0(%rip),%rsi
mov    $0x384,%edx
call   1050 <memcpy@plt>
lea    0x1213(%rip),%rdi
mov    $0x0,%al
call   1040 <printf@plt>
movl   $0x1,-0x3a0(%rbp)
movl   $0x1,-0x3a4(%rbp)
movslq -0x3a0(%rbp),%rcx
lea    -0x390(%rbp),%rax
imul   $0x3c,%rcx,%rcx
add    %rcx,%rax
movslq -0x3a4(%rbp),%rcx
movl   $0xa,(%rax,%rcx,4)
movb   $0x0,-0x3a5(%rbp)
movl   $0x0,-0x394(%rbp)
cmpl   $0xf,-0x394(%rbp)
jge    13dd <main+0x29d>
lea    0x11c0(%rip),%rdi
mov    $0x0,%al
call   1040 <printf@plt>
movl   $0x0,-0x398(%rbp)
cmpl   $0xf,-0x398(%rbp)
jge    13c4 <main+0x284>
movslq -0x394(%rbp),%rcx
lea    -0x390(%rbp),%rax
imul   $0x3c,%rcx,%rcx
add    %rcx,%rax
movslq -0x398(%rbp),%rcx
cmpl   $0x0,(%rax,%rcx,4)
jne    1226 <main+0xe6>
lea    0x1179(%rip),%rdi
mov    $0x0,%al
call   1040 <printf@plt>
movslq -0x394(%rbp),%rcx
lea    -0x390(%rbp),%rax
imul   $0x3c,%rcx,%rcx
add    %rcx,%rax
movslq -0x398(%rbp),%rcx
cmpl   $0x1,(%rax,%rcx,4)
jne    125a <main+0x11a>
lea    0x1147(%rip),%rdi
mov    $0x0,%al
call   1040 <printf@plt>
movslq -0x394(%rbp),%rcx
lea    -0x390(%rbp),%rax
imul   $0x3c,%rcx,%rcx
add    %rcx,%rax
movslq -0x398(%rbp),%rcx
cmpl   $0xa,(%rax,%rcx,4)
jne    128e <main+0x14e>
lea    0x1115(%rip),%rdi
mov    $0x0,%al
call   1040 <printf@plt>
movslq -0x394(%rbp),%rcx
lea    -0x390(%rbp),%rax
imul   $0x3c,%rcx,%rcx
add    %rcx,%rax
movslq -0x398(%rbp),%rcx
cmpl   $0x2,(%rax,%rcx,4)
jne    12c7 <main+0x187>
lea    0x10e3(%rip),%rdi
mov    $0x2,%esi
mov    $0x0,%al
call   1040 <printf@plt>
movslq -0x394(%rbp),%rcx
lea    -0x390(%rbp),%rax
imul   $0x3c,%rcx,%rcx
add    %rcx,%rax
movslq -0x398(%rbp),%rcx
cmpl   $0x3,(%rax,%rcx,4)
jne    1300 <main+0x1c0>
lea    0x10aa(%rip),%rdi
mov    $0x3,%esi
mov    $0x0,%al
call   1040 <printf@plt>
movslq -0x394(%rbp),%rcx
lea    -0x390(%rbp),%rax
imul   $0x3c,%rcx,%rcx
add    %rcx,%rax
movslq -0x398(%rbp),%rcx
cmpl   $0x4,(%rax,%rcx,4)
jne    1339 <main+0x1f9>
lea    0x1071(%rip),%rdi
mov    $0x4,%esi
mov    $0x0,%al
call   1040 <printf@plt>
movslq -0x394(%rbp),%rcx
lea    -0x390(%rbp),%rax
imul   $0x3c,%rcx,%rcx
add    %rcx,%rax
movslq -0x398(%rbp),%rcx
cmpl   $0x5,(%rax,%rcx,4)
jne    1372 <main+0x232>
lea    0x1038(%rip),%rdi
mov    $0x5,%esi
mov    $0x0,%al
call   1040 <printf@plt>
movslq -0x394(%rbp),%rcx
lea    -0x390(%rbp),%rax
imul   $0x3c,%rcx,%rcx
add    %rcx,%rax
movslq -0x398(%rbp),%rcx
cmpl   $0x6,(%rax,%rcx,4)
jne    13ab <main+0x26b>
lea    0xfff(%rip),%rdi
mov    $0x6,%esi
mov    $0x0,%al
call   1040 <printf@plt>
jmp    13b0 <main+0x270>
mov    -0x398(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0x398(%rbp)
jmp    11e5 <main+0xa5>
jmp    13c9 <main+0x289>
mov    -0x394(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0x394(%rbp)
jmp    11c0 <main+0x80>
jmp    13e2 <main+0x2a2>
movsbl -0x3a5(%rbp),%ecx
mov    $0x1,%al
cmp    $0x73,%ecx
mov    %al,-0x3a6(%rbp)
jne    140d <main+0x2cd>
movsbl -0x3a5(%rbp),%eax
cmp    $0x53,%eax
setne  %al
mov    %al,-0x3a6(%rbp)
mov    -0x3a6(%rbp),%al
test   $0x1,%al
jne    1420 <main+0x2e0>
jmp    17ee <main+0x6ae>
movb   $0x0,-0x3a5(%rbp)
mov    $0x0,%al
call   1060 <getch@plt>
mov    %al,-0x3a5(%rbp)
movslq -0x3a0(%rbp),%rcx
lea    -0x390(%rbp),%rax
imul   $0x3c,%rcx,%rcx
add    %rcx,%rax
movslq -0x3a4(%rbp),%rcx
movl   $0x0,(%rax,%rcx,4)
movsbl -0x3a5(%rbp),%eax
cmp    $0x4d,%eax
jne    14a6 <main+0x366>
movslq -0x3a0(%rbp),%rcx
lea    -0x390(%rbp),%rax
imul   $0x3c,%rcx,%rcx
add    %rcx,%rax
mov    -0x3a4(%rbp),%ecx
add    $0x1,%ecx
movslq %ecx,%rcx
cmpl   $0x0,(%rax,%rcx,4)
jne    14a1 <main+0x361>
mov    -0x3a4(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0x3a4(%rbp)
jmp    14a6 <main+0x366>
movsbl -0x3a5(%rbp),%eax
cmp    $0x4b,%eax
jne    14f5 <main+0x3b5>
movslq -0x3a0(%rbp),%rcx
lea    -0x390(%rbp),%rax
imul   $0x3c,%rcx,%rcx
add    %rcx,%rax
mov    -0x3a4(%rbp),%ecx
sub    $0x1,%ecx
movslq %ecx,%rcx
cmpl   $0x0,(%rax,%rcx,4)
jne    14f0 <main+0x3b0>
mov    -0x3a4(%rbp),%eax
add    $0xffffffff,%eax
mov    %eax,-0x3a4(%rbp)
jmp    14f5 <main+0x3b5>
movsbl -0x3a5(%rbp),%eax
cmp    $0x50,%eax
jne    1544 <main+0x404>
mov    -0x3a0(%rbp),%eax
add    $0x1,%eax
movslq %eax,%rcx
lea    -0x390(%rbp),%rax
imul   $0x3c,%rcx,%rcx
add    %rcx,%rax
movslq -0x3a4(%rbp),%rcx
cmpl   $0x0,(%rax,%rcx,4)
jne    153f <main+0x3ff>
mov    -0x3a0(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0x3a0(%rbp)
jmp    1544 <main+0x404>
movsbl -0x3a5(%rbp),%eax
cmp    $0x48,%eax
jne    1593 <main+0x453>
mov    -0x3a0(%rbp),%eax
sub    $0x1,%eax
movslq %eax,%rcx
lea    -0x390(%rbp),%rax
imul   $0x3c,%rcx,%rcx
add    %rcx,%rax
movslq -0x3a4(%rbp),%rcx
cmpl   $0x0,(%rax,%rcx,4)
jne    158e <main+0x44e>
mov    -0x3a0(%rbp),%eax
add    $0xffffffff,%eax
mov    %eax,-0x3a0(%rbp)
jmp    1593 <main+0x453>
movslq -0x3a0(%rbp),%rcx
lea    -0x390(%rbp),%rax
imul   $0x3c,%rcx,%rcx
add    %rcx,%rax
movslq -0x3a4(%rbp),%rcx
movl   $0xa,(%rax,%rcx,4)
lea    0xde4(%rip),%rdi
call   1030 <system@plt>
movl   $0x0,-0x394(%rbp)
cmpl   $0xf,-0x394(%rbp)
jge    17e9 <main+0x6a9>
lea    0xdb4(%rip),%rdi
mov    $0x0,%al
call   1040 <printf@plt>
movl   $0x0,-0x398(%rbp)
cmpl   $0xf,-0x398(%rbp)
jge    17d0 <main+0x690>
movslq -0x394(%rbp),%rcx
lea    -0x390(%rbp),%rax
imul   $0x3c,%rcx,%rcx
add    %rcx,%rax
movslq -0x398(%rbp),%rcx
cmpl   $0x0,(%rax,%rcx,4)
jne    1632 <main+0x4f2>
lea    0xd6d(%rip),%rdi
mov    $0x0,%al
call   1040 <printf@plt>
movslq -0x394(%rbp),%rcx
lea    -0x390(%rbp),%rax
imul   $0x3c,%rcx,%rcx
add    %rcx,%rax
movslq -0x398(%rbp),%rcx
cmpl   $0x1,(%rax,%rcx,4)
jne    1666 <main+0x526>
lea    0xd3b(%rip),%rdi
mov    $0x0,%al
call   1040 <printf@plt>
movslq -0x394(%rbp),%rcx
lea    -0x390(%rbp),%rax
imul   $0x3c,%rcx,%rcx
add    %rcx,%rax
movslq -0x398(%rbp),%rcx
cmpl   $0xa,(%rax,%rcx,4)
jne    169a <main+0x55a>
lea    0xd09(%rip),%rdi
mov    $0x0,%al
call   1040 <printf@plt>
movslq -0x394(%rbp),%rcx
lea    -0x390(%rbp),%rax
imul   $0x3c,%rcx,%rcx
add    %rcx,%rax
movslq -0x398(%rbp),%rcx
cmpl   $0x2,(%rax,%rcx,4)
jne    16d3 <main+0x593>
lea    0xcd7(%rip),%rdi
mov    $0x2,%esi
mov    $0x0,%al
call   1040 <printf@plt>
movslq -0x394(%rbp),%rcx
lea    -0x390(%rbp),%rax
imul   $0x3c,%rcx,%rcx
add    %rcx,%rax
movslq -0x398(%rbp),%rcx
cmpl   $0x3,(%rax,%rcx,4)
jne    170c <main+0x5cc>
lea    0xc9e(%rip),%rdi
mov    $0x3,%esi
mov    $0x0,%al
call   1040 <printf@plt>
movslq -0x394(%rbp),%rcx
lea    -0x390(%rbp),%rax
imul   $0x3c,%rcx,%rcx
add    %rcx,%rax
movslq -0x398(%rbp),%rcx
cmpl   $0x4,(%rax,%rcx,4)
jne    1745 <main+0x605>
lea    0xc65(%rip),%rdi
mov    $0x4,%esi
mov    $0x0,%al
call   1040 <printf@plt>
movslq -0x394(%rbp),%rcx
lea    -0x390(%rbp),%rax
imul   $0x3c,%rcx,%rcx
add    %rcx,%rax
movslq -0x398(%rbp),%rcx
cmpl   $0x5,(%rax,%rcx,4)
jne    177e <main+0x63e>
lea    0xc2c(%rip),%rdi
mov    $0x5,%esi
mov    $0x0,%al
call   1040 <printf@plt>
movslq -0x394(%rbp),%rcx
lea    -0x390(%rbp),%rax
imul   $0x3c,%rcx,%rcx
add    %rcx,%rax
movslq -0x398(%rbp),%rcx
cmpl   $0x6,(%rax,%rcx,4)
jne    17b7 <main+0x677>
lea    0xbf3(%rip),%rdi
mov    $0x6,%esi
mov    $0x0,%al
call   1040 <printf@plt>
jmp    17bc <main+0x67c>
mov    -0x398(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0x398(%rbp)
jmp    15f1 <main+0x4b1>
jmp    17d5 <main+0x695>
mov    -0x394(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0x394(%rbp)
jmp    15cc <main+0x48c>
jmp    13e2 <main+0x2a2>
lea    0xbb0(%rip),%rdi
call   1030 <system@plt>
xor    %eax,%eax
add    $0x3b0,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<main>:
push   %rbp
push   %r15
push   %r14
push   %r13
push   %r12
push   %rbx
sub    $0x398,%rsp
lea    0xec8(%rip),%rsi
lea    0x10(%rsp),%r15
mov    $0x384,%edx
mov    %r15,%rdi
call   1060 <memcpy@plt>
lea    0x125f(%rip),%rdi
xor    %eax,%eax
call   1050 <printf@plt>
movl   $0xa,0x50(%rsp)
lea    0x1259(%rip),%r14
mov    $0x47f,%r13d
lea    0x1210(%rip),%rbx
xor    %r12d,%r12d
jmp    11be <main+0x6e>
nopl   0x0(%rax)
add    $0x1,%r12
add    $0x3c,%r15
cmp    $0xf,%r12
je     11f4 <main+0xa4>
mov    %r14,%rdi
xor    %eax,%eax
call   1050 <printf@plt>
xor    %ebp,%ebp
jmp    11da <main+0x8a>
nopl   0x0(%rax)
add    $0x1,%rbp
cmp    $0xf,%rbp
je     11b0 <main+0x60>
movslq (%r15,%rbp,4),%rax
cmp    $0xa,%rax
ja     11d0 <main+0x80>
bt     %eax,%r13d
jae    11d0 <main+0x80>
mov    (%rbx,%rax,4),%edi
call   1030 <putchar@plt>
jmp    11d0 <main+0x80>
mov    $0x1,%r14d
lea    0x11ef(%rip),%r15
mov    $0x47f,%ebp
mov    $0x1,%r12d
jmp    121a <main+0xca>
xchg   %ax,%ax
mov    0x8(%rsp),%r14
mov    0x4(%rsp),%r12d
xor    %eax,%eax
call   1070 <getch@plt>
movslq %r14d,%rdx
movslq %r12d,%rcx
imul   $0x3c,%rdx,%rdx
add    %rsp,%rdx
add    $0x10,%rdx
movl   $0x0,(%rdx,%rcx,4)
add    $0xb8,%al
cmp    $0x8,%al
ja     129c <main+0x14c>
movzbl %al,%eax
lea    0xdb7(%rip),%rsi
movslq (%rsi,%rax,4),%rax
add    %rsi,%rax
jmp    *%rax
lea    -0x1(%r14),%eax
jmp    1284 <main+0x134>
nopl   0x0(%rax,%rax,1)
lea    -0x1(%rcx),%r12d
cmpl   $0x0,-0x4(%rdx,%rcx,4)
cmovne %ecx,%r12d
jmp    129c <main+0x14c>
nop
lea    0x1(%rcx),%r12d
cmpl   $0x0,0x4(%rdx,%rcx,4)
cmovne %ecx,%r12d
jmp    129c <main+0x14c>
nop
lea    0x1(%r14),%eax
cltq
imul   $0x3c,%rax,%rdx
add    %rsp,%rdx
add    $0x10,%rdx
cmpl   $0x0,(%rdx,%rcx,4)
cmovne %r14d,%eax
mov    %eax,%r14d
mov    %r14,0x8(%rsp)
movslq %r14d,%rax
mov    %r12d,0x4(%rsp)
movslq %r12d,%rcx
imul   $0x3c,%rax,%rax
add    %rsp,%rax
add    $0x10,%rax
movl   $0xa,(%rax,%rcx,4)
lea    0x112f(%rip),%rdi
call   1040 <system@plt>
lea    0x10(%rsp),%r14
xor    %r13d,%r13d
jmp    12f2 <main+0x1a2>
cs nopw 0x0(%rax,%rax,1)
xchg   %ax,%ax
add    $0x1,%r13
add    $0x3c,%r14
cmp    $0xf,%r13
je     1210 <main+0xc0>
mov    %r15,%rdi
xor    %eax,%eax
call   1050 <printf@plt>
xor    %r12d,%r12d
jmp    131a <main+0x1ca>
cs nopw 0x0(%rax,%rax,1)
nopl   0x0(%rax,%rax,1)
add    $0x1,%r12
cmp    $0xf,%r12
je     12e0 <main+0x190>
movslq (%r14,%r12,4),%rax
cmp    $0xa,%rax
ja     1310 <main+0x1c0>
bt     %eax,%ebp
jae    1310 <main+0x1c0>
mov    (%rbx,%rax,4),%edi
call   1030 <putchar@plt>
jmp    1310 <main+0x1c0>

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

LLVM IR (-O2):
@__const.main.mapa = [15 x [15 x i32]] [[15 x i32] [i32 1, i32 1, i32 1, i32 1, i32 1, i32 1, i32 1, i32 1, i32 1, i32 1, i32 1, i32 1, i32 1, i32 1, i32 1], [15 x i32] [i32 1, i32 0, i32 0, i32 0, i32 0, i32 0, i32 0, i32 0, i32 0, i32 0, i32 0, i32 0, i32 0, i32 0, i32 1], [15 x i32] [i32 1, i32 0, i32 3, i32 4, i32 5, i32 6, i32 0, i32 3, i32 4, i32 5, i32 6, i32 6, i32 5, i32 0, i32 1], [15 x i32] [i32 1, i32 0, i32 4, i32 0, i32 0, i32 5, i32 0, i32 4, i32 0, i32 0, i32 0, i32 0, i32 4, i32 0, i32 1], [15 x i32] [i32 1, i32 0, i32 5, i32 0, i32 3, i32 4, i32 0, i32 5, i32 0, i32 3, i32 0, i32 4, i32 3, i32 4, i32 1], [15 x i32] [i32 1, i32 0, i32 6, i32 0, i32 0, i32 0, i32 0, i32 6, i32 0, i32 4, i32 0, i32 0, i32 0, i32 0, i32 1], [15 x i32] [i32 1, i32 0, i32 0, i32 3, i32 4, i32 0, i32 4, i32 3, i32 0, i32 5, i32 4, i32 3, i32 4, i32 5, i32 1], [15 x i32] [i32 1, i32 3, i32 0, i32 0, i32 5, i32 0, i32 0, i32 0, i32 0, i32 6, i32 0, i32 0, i32 0, i32 0, i32 1], [15 x i32] [i32 1, i32 0, i32 0, i32 0, i32 0, i32 6, i32 0, i32 5, i32 4, i32 3, i32 0, i32 3, i32 4, i32 5, i32 1], [15 x i32] [i32 1, i32 0, i32 4, i32 5, i32 0, i32 0, i32 0, i32 0, i32 0, i32 0, i32 0, i32 0, i32 0, i32 0, i32 1], [15 x i32] [i32 1, i32 0, i32 5, i32 0, i32 6, i32 3, i32 4, i32 5, i32 6, i32 5, i32 4, i32 3, i32 0, i32 5, i32 1], [15 x i32] [i32 1, i32 0, i32 6, i32 0, i32 5, i32 0, i32 0, i32 0, i32 0, i32 0, i32 2, i32 4, i32 0, i32 0, i32 1], [15 x i32] [i32 1, i32 0, i32 5, i32 0, i32 4, i32 0, i32 6, i32 5, i32 4, i32 3, i32 4, i32 5, i32 6, i32 0, i32 1], [15 x i32] [i32 1, i32 0, i32 0, i32 0, i32 0, i32 0, i32 0, i32 0, i32 3, i32 0, i32 0, i32 0, i32 0, i32 0, i32 1], [15 x i32] [i32 1, i32 1, i32 1, i32 1, i32 1, i32 1, i32 1, i32 1, i32 1, i32 1, i32 1, i32 1, i32 1, i32 1, i32 1]]
@.str = [16 x i8] c"\0A\09\09 LABERINTO\00"
@.str.1 = [4 x i8] c"\0A\09\09\00"
@.str.6 = [4 x i8] c"CLS\00"
@switch.table.main.8 = [11 x i32] [i32 32, i32 64, i32 2, i32 3, i32 4, i32 5, i32 6, i32 32, i32 32, i32 32, i32 1]
define i32 @main() {
%1 = alloca [15 x [15 x i32]]
%2 = bitcast [15 x [15 x i32]]* %1 to i8*
%3 = tail call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([16 x i8], [16 x i8]* @.str, i64 0, i64 0))
%4 = getelementptr inbounds [15 x [15 x i32]], [15 x [15 x i32]]* %1, i64 0, i64 1, i64 1
store i32 10, i32* %4
br label %5
5: ; preds = %0, %26
%6 = phi i64 [ 0, %0 ], [ %27, %26 ]
%7 = tail call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([4 x i8], [4 x i8]* @.str.1, i64 0, i64 0))
br label %8
8: ; preds = %5, %23
%9 = phi i64 [ 0, %5 ], [ %24, %23 ]
%10 = getelementptr inbounds [15 x [15 x i32]], [15 x [15 x i32]]* %1, i64 0, i64 %6, i64 %9
%11 = load i32, i32* %10
%12 = icmp ult i32 %11, 11
br i1 %12, label %13, label %23
13: ; preds = %8
%14 = trunc i32 %11 to i16
%15 = lshr i16 1151, %14
%16 = and i16 %15, 1
%17 = icmp eq i16 %16, 0
br i1 %17, label %23, label %18
18: ; preds = %13
%19 = sext i32 %11 to i64
%20 = getelementptr inbounds [11 x i32], [11 x i32]* @switch.table.main.8, i64 0, i64 %19
%21 = load i32, i32* %20
%22 = tail call i32 @putchar(i32 %21)
br label %23
23: ; preds = %13, %8, %18
%24 = add nuw nsw i64 %9, 1
%25 = icmp eq i64 %24, 15
br i1 %25, label %26, label %8
26: ; preds = %23
%27 = add nuw nsw i64 %6, 1
%28 = icmp eq i64 %27, 15
br i1 %28, label %29, label %5
29: ; preds = %92, %26
%30 = phi i32 [ 1, %26 ], [ %66, %92 ]
%31 = phi i32 [ 1, %26 ], [ %65, %92 ]
%32 = tail call signext i8 (...) @getch()
%33 = sext i32 %30 to i64
%34 = sext i32 %31 to i64
%35 = getelementptr inbounds [15 x [15 x i32]], [15 x [15 x i32]]* %1, i64 0, i64 %33, i64 %34
store i32 0, i32* %35
switch i8 %32, label %64 [
i8 77, label %36
i8 75, label %43
i8 80, label %50
i8 72, label %57
]
36: ; preds = %29
%37 = add nsw i32 %31, 1
%38 = sext i32 %37 to i64
%39 = getelementptr inbounds [15 x [15 x i32]], [15 x [15 x i32]]* %1, i64 0, i64 %33, i64 %38
%40 = load i32, i32* %39
%41 = icmp eq i32 %40, 0
%42 = select i1 %41, i32 %37, i32 %31
br label %64
43: ; preds = %29
%44 = add nsw i32 %31, -1
%45 = sext i32 %44 to i64
%46 = getelementptr inbounds [15 x [15 x i32]], [15 x [15 x i32]]* %1, i64 0, i64 %33, i64 %45
%47 = load i32, i32* %46
%48 = icmp eq i32 %47, 0
%49 = select i1 %48, i32 %44, i32 %31
br label %64
50: ; preds = %29
%51 = add nsw i32 %30, 1
%52 = sext i32 %51 to i64
%53 = getelementptr inbounds [15 x [15 x i32]], [15 x [15 x i32]]* %1, i64 0, i64 %52, i64 %34
%54 = load i32, i32* %53
%55 = icmp eq i32 %54, 0
%56 = select i1 %55, i32 %51, i32 %30
br label %64
57: ; preds = %29
%58 = add nsw i32 %30, -1
%59 = sext i32 %58 to i64
%60 = getelementptr inbounds [15 x [15 x i32]], [15 x [15 x i32]]* %1, i64 0, i64 %59, i64 %34
%61 = load i32, i32* %60
%62 = icmp eq i32 %61, 0
%63 = select i1 %62, i32 %58, i32 %30
br label %64
64: ; preds = %29, %43, %36, %50, %57
%65 = phi i32 [ %31, %57 ], [ %31, %50 ], [ %42, %36 ], [ %49, %43 ], [ %31, %29 ]
%66 = phi i32 [ %63, %57 ], [ %56, %50 ], [ %30, %36 ], [ %30, %43 ], [ %30, %29 ]
%67 = sext i32 %66 to i64
%68 = sext i32 %65 to i64
%69 = getelementptr inbounds [15 x [15 x i32]], [15 x [15 x i32]]* %1, i64 0, i64 %67, i64 %68
store i32 10, i32* %69
%70 = tail call i32 @system(i8* getelementptr inbounds ([4 x i8], [4 x i8]* @.str.6, i64 0, i64 0))
br label %71
71: ; preds = %64, %92
%72 = phi i64 [ 0, %64 ], [ %93, %92 ]
%73 = tail call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([4 x i8], [4 x i8]* @.str.1, i64 0, i64 0))
br label %74
74: ; preds = %71, %89
%75 = phi i64 [ 0, %71 ], [ %90, %89 ]
%76 = getelementptr inbounds [15 x [15 x i32]], [15 x [15 x i32]]* %1, i64 0, i64 %72, i64 %75
%77 = load i32, i32* %76
%78 = icmp ult i32 %77, 11
br i1 %78, label %79, label %89
79: ; preds = %74
%80 = trunc i32 %77 to i16
%81 = lshr i16 1151, %80
%82 = and i16 %81, 1
%83 = icmp eq i16 %82, 0
br i1 %83, label %89, label %84
84: ; preds = %79
%85 = sext i32 %77 to i64
%86 = getelementptr inbounds [11 x i32], [11 x i32]* @switch.table.main.8, i64 0, i64 %85
%87 = load i32, i32* %86
%88 = tail call i32 @putchar(i32 %87)
br label %89
89: ; preds = %79, %74, %84
%90 = add nuw nsw i64 %75, 1
%91 = icmp eq i64 %90, 15
br i1 %91, label %92, label %74
92: ; preds = %89
%93 = add nuw nsw i64 %72, 1
%94 = icmp eq i64 %93, 15
br i1 %94, label %29, label %71
}