#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*/ box(int /*<<< orphan*/, char, char);
int /*<<< orphan*/ clear();
int /*<<< orphan*/ endwin();
int /*<<< orphan*/ getch();
int /*<<< orphan*/ getchar();
int /*<<< orphan*/ getstr(char *);
int /*<<< orphan*/ initscr();
int /*<<< orphan*/ printw(char *, ...);
int /*<<< orphan*/ scanw(char *, int *);
int /*<<< orphan*/ scrl(int);
int /*<<< orphan*/ stdscr;
scalar_t__ strcasecmp(char *, char *);
int /*<<< orphan*/ strcpy(char *, char *);
void main() {
  initscr();
  box(stdscr, '*', '*');
  char names[20][20], places[20][20], cachaniggas[20][20], duranguense[20][20];
  int edad[5] = {0}, d = 0, c = 0, opt = 0, r = 0, swp = 0, iM = 0, im = 0;
  printw("Bienvenido Usuario.\nEste programa lee una lista de nombres, edades "
         "y lugares de nacimiento e imprime una estadistica del mismo\n");
  do {
    printw("\t\tREGISTRO #%d\n\n", r + 1);
    printw("Favor de introducir su nombre:\n>>");
    getstr(names[r]);
    printw("Favor de introducir su Lugar de Nacimiento:\n>>");
    getstr(places[r]);
    printw("Favor de introducir su edad:\n>>");
    scanw("%d", &edad[r]);
    getchar();
    r++;
    printw("Desea ingresar a otra persona al registro?\n\t0) NO\n\t1) SI\n>>");
    scanw("%d", &opt);
    getchar();
    scrl(7);
  } while (opt);
  clear();
  for (int x = 0; x < r; x++) {
    if (edad[x] > swp) {
      swp = edad[x];
      iM = x;
    } else if (strcasecmp(places[x], "mexicali") == 0) {
      strcpy(names[x], cachaniggas[c]);
      c++;
    }
  }
  for (int x = 0; x < r; x++) {
    if (edad[x] < swp) {
      swp = edad[x];
      im = x;
    } else if (strcasecmp(places[x], "durango") == 0) {
      strcpy(names[x], duranguense[d]);
      d++;
    }
  }
  printw(
      "Acontinuacion se imprime el registro resultante: [Presione Enter]\n\n");
  getch();
  printw("NOMBRE|EDAD|CIUDAD\n");
  for (int x = 0; x < r; x++)
    printw("%s\t%d\t%s\n", names[x], edad[x], places[x]);
  printw("\nLa persona mayor en la lista "
         "es:\n\n\tNombre:%s\n\tEdad:%d\n\tLugar Natal:%s\n",
         names[iM], edad[iM], places[iM]);
  printw("\nLa persona menor en la lista "
         "es:\n\n\tNombre:%s\n\tEdad:%d\n\tLugar Natal:%s\n",
         names[im], edad[im], places[im]);
  printw("\nLas personas nacidas en Mexicali son:\n");
  for (int x = 0; x < c; x++)
    printw("\t%d) %s\n", x + 1, cachaniggas[x]);
  printw("\nLas personas nacidas en Durango son:\n");
  for (int x = 0; x < d; x++)
    printw("\t%d) %s\n", x + 1, duranguense[x]);
  getch();
  endwin();
}


x86 assembly (clang, -O0):
<main>:
push   %rbp
mov    %rsp,%rbp
sub    $0x690,%rsp
mov    $0x0,%al
call   1050 <initscr@plt>
mov    0x2dff(%rip),%rax
mov    (%rax),%edi
mov    $0x2a,%edx
mov    %edx,%esi
call   1090 <box@plt>
lea    -0x660(%rbp),%rdi
xor    %esi,%esi
mov    $0x14,%edx
call   1060 <memset@plt>
movl   $0x0,-0x664(%rbp)
movl   $0x0,-0x668(%rbp)
movl   $0x0,-0x66c(%rbp)
movl   $0x0,-0x670(%rbp)
movl   $0x0,-0x674(%rbp)
movl   $0x0,-0x678(%rbp)
movl   $0x0,-0x67c(%rbp)
lea    0xda9(%rip),%rdi
mov    $0x0,%al
call   10a0 <printw@plt>
mov    -0x670(%rbp),%esi
add    $0x1,%esi
lea    0xe12(%rip),%rdi
mov    $0x0,%al
call   10a0 <printw@plt>
lea    0xe15(%rip),%rdi
mov    $0x0,%al
call   10a0 <printw@plt>
movslq -0x670(%rbp),%rax
lea    -0x190(%rbp),%rdi
imul   $0x14,%rax,%rax
add    %rax,%rdi
call   1070 <getstr@plt>
lea    0xe0f(%rip),%rdi
mov    $0x0,%al
call   10a0 <printw@plt>
movslq -0x670(%rbp),%rax
lea    -0x320(%rbp),%rdi
imul   $0x14,%rax,%rax
add    %rax,%rdi
call   1070 <getstr@plt>
lea    0xe16(%rip),%rdi
mov    $0x0,%al
call   10a0 <printw@plt>
movslq -0x670(%rbp),%rax
lea    -0x660(%rbp),%rsi
shl    $0x2,%rax
add    %rax,%rsi
lea    0xe13(%rip),%rdi
call   10e0 <scanw@plt>
mov    $0x0,%al
call   1080 <getchar@plt>
mov    -0x670(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0x670(%rbp)
lea    0xdf4(%rip),%rdi
mov    $0x0,%al
call   10a0 <printw@plt>
lea    0xde3(%rip),%rdi
lea    -0x66c(%rbp),%rsi
call   10e0 <scanw@plt>
mov    $0x0,%al
call   1080 <getchar@plt>
mov    $0x7,%edi
call   10d0 <scrl@plt>
cmpl   $0x0,-0x66c(%rbp)
jne    125e <main+0x8e>
mov    $0x0,%al
call   10f0 <clear@plt>
movl   $0x0,-0x680(%rbp)
mov    -0x680(%rbp),%eax
cmp    -0x670(%rbp),%eax
jge    1432 <main+0x262>
movslq -0x680(%rbp),%rax
mov    -0x660(%rbp,%rax,4),%eax
cmp    -0x674(%rbp),%eax
jle    13ab <main+0x1db>
movslq -0x680(%rbp),%rax
mov    -0x660(%rbp,%rax,4),%eax
mov    %eax,-0x674(%rbp)
mov    -0x680(%rbp),%eax
mov    %eax,-0x678(%rbp)
jmp    1419 <main+0x249>
movslq -0x680(%rbp),%rax
lea    -0x320(%rbp),%rdi
imul   $0x14,%rax,%rax
add    %rax,%rdi
lea    0xd7a(%rip),%rsi
call   1030 <strcasecmp@plt>
cmp    $0x0,%rax
jne    1414 <main+0x244>
movslq -0x680(%rbp),%rax
lea    -0x190(%rbp),%rdi
imul   $0x14,%rax,%rax
add    %rax,%rdi
movslq -0x668(%rbp),%rax
lea    -0x4b0(%rbp),%rsi
imul   $0x14,%rax,%rax
add    %rax,%rsi
call   1040 <strcpy@plt>
mov    -0x668(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0x668(%rbp)
jmp    1419 <main+0x249>
jmp    141e <main+0x24e>
mov    -0x680(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0x680(%rbp)
jmp    135a <main+0x18a>
movl   $0x0,-0x684(%rbp)
mov    -0x684(%rbp),%eax
cmp    -0x670(%rbp),%eax
jge    1514 <main+0x344>
movslq -0x684(%rbp),%rax
mov    -0x660(%rbp,%rax,4),%eax
cmp    -0x674(%rbp),%eax
jge    148d <main+0x2bd>
movslq -0x684(%rbp),%rax
mov    -0x660(%rbp,%rax,4),%eax
mov    %eax,-0x674(%rbp)
mov    -0x684(%rbp),%eax
mov    %eax,-0x67c(%rbp)
jmp    14fb <main+0x32b>
movslq -0x684(%rbp),%rax
lea    -0x320(%rbp),%rdi
imul   $0x14,%rax,%rax
add    %rax,%rdi
lea    0xca1(%rip),%rsi
call   1030 <strcasecmp@plt>
cmp    $0x0,%rax
jne    14f6 <main+0x326>
movslq -0x684(%rbp),%rax
lea    -0x190(%rbp),%rdi
imul   $0x14,%rax,%rax
add    %rax,%rdi
movslq -0x664(%rbp),%rax
lea    -0x640(%rbp),%rsi
imul   $0x14,%rax,%rax
add    %rax,%rsi
call   1040 <strcpy@plt>
mov    -0x664(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0x664(%rbp)
jmp    14fb <main+0x32b>
jmp    1500 <main+0x330>
mov    -0x684(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0x684(%rbp)
jmp    143c <main+0x26c>
lea    0xc37(%rip),%rdi
mov    $0x0,%al
call   10a0 <printw@plt>
mov    $0x0,%al
call   10b0 <getch@plt>
lea    0xc66(%rip),%rdi
mov    $0x0,%al
call   10a0 <printw@plt>
movl   $0x0,-0x688(%rbp)
mov    -0x688(%rbp),%eax
cmp    -0x670(%rbp),%eax
jge    15ad <main+0x3dd>
movslq -0x688(%rbp),%rax
lea    -0x190(%rbp),%rsi
imul   $0x14,%rax,%rax
add    %rax,%rsi
movslq -0x688(%rbp),%rax
mov    -0x660(%rbp,%rax,4),%edx
movslq -0x688(%rbp),%rax
lea    -0x320(%rbp),%rcx
imul   $0x14,%rax,%rax
add    %rax,%rcx
lea    0xc18(%rip),%rdi
mov    $0x0,%al
call   10a0 <printw@plt>
mov    -0x688(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0x688(%rbp)
jmp    1541 <main+0x371>
movslq -0x678(%rbp),%rax
lea    -0x190(%rbp),%rsi
imul   $0x14,%rax,%rax
add    %rax,%rsi
movslq -0x678(%rbp),%rax
mov    -0x660(%rbp,%rax,4),%edx
movslq -0x678(%rbp),%rax
lea    -0x320(%rbp),%rcx
imul   $0x14,%rax,%rax
add    %rax,%rcx
lea    0xbc8(%rip),%rdi
mov    $0x0,%al
call   10a0 <printw@plt>
movslq -0x67c(%rbp),%rax
lea    -0x190(%rbp),%rsi
imul   $0x14,%rax,%rax
add    %rax,%rsi
movslq -0x67c(%rbp),%rax
mov    -0x660(%rbp,%rax,4),%edx
movslq -0x67c(%rbp),%rax
lea    -0x320(%rbp),%rcx
imul   $0x14,%rax,%rax
add    %rax,%rcx
lea    0xbca(%rip),%rdi
mov    $0x0,%al
call   10a0 <printw@plt>
lea    0xc04(%rip),%rdi
mov    $0x0,%al
call   10a0 <printw@plt>
movl   $0x0,-0x68c(%rbp)
mov    -0x68c(%rbp),%eax
cmp    -0x668(%rbp),%eax
jge    16a3 <main+0x4d3>
mov    -0x68c(%rbp),%esi
add    $0x1,%esi
movslq -0x68c(%rbp),%rax
lea    -0x4b0(%rbp),%rdx
imul   $0x14,%rax,%rax
add    %rax,%rdx
lea    0xbe4(%rip),%rdi
mov    $0x0,%al
call   10a0 <printw@plt>
mov    -0x68c(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0x68c(%rbp)
jmp    1651 <main+0x481>
lea    0xbcb(%rip),%rdi
mov    $0x0,%al
call   10a0 <printw@plt>
movl   $0x0,-0x690(%rbp)
mov    -0x690(%rbp),%eax
cmp    -0x664(%rbp),%eax
jge    170d <main+0x53d>
mov    -0x690(%rbp),%esi
add    $0x1,%esi
movslq -0x690(%rbp),%rax
lea    -0x640(%rbp),%rdx
imul   $0x14,%rax,%rax
add    %rax,%rdx
lea    0xb7a(%rip),%rdi
mov    $0x0,%al
call   10a0 <printw@plt>
mov    -0x690(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0x690(%rbp)
jmp    16bb <main+0x4eb>
mov    $0x0,%al
call   10b0 <getch@plt>
mov    $0x0,%al
call   10c0 <endwin@plt>
add    $0x690,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<main>:
push   %rbp
push   %r15
push   %r14
push   %r13
push   %r12
push   %rbx
sub    $0x688,%rsp
xor    %eax,%eax
call   1050 <initscr@plt>
mov    0x2e09(%rip),%rax
mov    (%rax),%edi
mov    $0x2a,%esi
mov    $0x2a,%edx
call   1080 <box@plt>
xorps  %xmm0,%xmm0
movaps %xmm0,0x20(%rsp)
movl   $0x0,0x30(%rsp)
movl   $0x0,0x14(%rsp)
lea    0xdf1(%rip),%rdi
xor    %eax,%eax
call   1090 <printw@plt>
lea    0x20(%rsp),%r14
lea    0x1d0(%rsp),%r15
lea    0x40(%rsp),%rbx
lea    0xed3(%rip),%rbp
lea    0x14(%rsp),%r12
xor    %r13d,%r13d
nopw   0x0(%rax,%rax,1)
add    $0x1,%r13d
lea    0xe35(%rip),%rdi
mov    %r13d,%esi
xor    %eax,%eax
call   1090 <printw@plt>
lea    0xe35(%rip),%rdi
xor    %eax,%eax
call   1090 <printw@plt>
mov    %r15,%rdi
call   1060 <getstr@plt>
lea    0xe41(%rip),%rdi
xor    %eax,%eax
call   1090 <printw@plt>
mov    %rbx,%rdi
call   1060 <getstr@plt>
lea    0xe5a(%rip),%rdi
xor    %eax,%eax
call   1090 <printw@plt>
mov    %rbp,%rdi
mov    %r14,%rsi
call   10d0 <scanw@plt>
xor    %eax,%eax
call   1070 <getchar@plt>
lea    0xe5d(%rip),%rdi
xor    %eax,%eax
call   1090 <printw@plt>
mov    %rbp,%rdi
mov    %r12,%rsi
call   10d0 <scanw@plt>
xor    %eax,%eax
call   1070 <getchar@plt>
mov    $0x7,%edi
call   10c0 <scrl@plt>
add    $0x4,%r14
add    $0x14,%r15
add    $0x14,%rbx
cmpl   $0x0,0x14(%rsp)
jne    1240 <main+0x80>
xor    %r15d,%r15d
xor    %eax,%eax
call   10e0 <clear@plt>
mov    %r13d,%r12d
lea    0x40(%rsp),%rbx
lea    0x1d0(%rsp),%rbp
xor    %r13d,%r13d
xor    %r14d,%r14d
xor    %eax,%eax
mov    %rax,0x18(%rsp)
jmp    1327 <main+0x167>
nopl   0x0(%rax,%rax,1)
mov    %eax,%r14d
mov    %r15d,%r13d
add    $0x1,%r15
add    $0x14,%rbx
add    $0x14,%rbp
cmp    %r15,%r12
je     1380 <main+0x1c0>
mov    0x20(%rsp,%r15,4),%eax
cmp    %r14d,%eax
jg     1310 <main+0x150>
mov    %rbx,%rdi
lea    0xe06(%rip),%rsi
call   1030 <strcasecmp@plt>
test   %rax,%rax
jne    1316 <main+0x156>
mov    %r13d,0xc(%rsp)
mov    0x18(%rsp),%r13
movslq %r13d,%r13
lea    0x0(,%r13,4),%rax
add    %r13,%rax
lea    (%rsp,%rax,4),%rsi
add    $0x4f0,%rsi
mov    %rbp,%rdi
call   1040 <strcpy@plt>
add    $0x1,%r13d
mov    %r13,0x18(%rsp)
mov    0xc(%rsp),%r13d
jmp    1316 <main+0x156>
mov    %r13d,0xc(%rsp)
xor    %ebp,%ebp
lea    0x40(%rsp),%rbx
lea    0x1d0(%rsp),%r15
movl   $0x0,0x10(%rsp)
xor    %r13d,%r13d
jmp    13ca <main+0x20a>
cs nopw 0x0(%rax,%rax,1)
nopl   0x0(%rax,%rax,1)
mov    %ebp,%ecx
mov    %ebp,0x10(%rsp)
add    $0x1,%rbp
add    $0x14,%rbx
add    $0x14,%r15
mov    %eax,%r14d
cmp    %rbp,%r12
je     1411 <main+0x251>
mov    0x20(%rsp,%rbp,4),%eax
cmp    %r14d,%eax
jl     13b0 <main+0x1f0>
mov    %rbx,%rdi
lea    0xd6d(%rip),%rsi
call   1030 <strcasecmp@plt>
test   %rax,%rax
jne    140c <main+0x24c>
movslq %r13d,%r13
lea    0x0(,%r13,4),%rax
add    %r13,%rax
lea    (%rsp,%rax,4),%rsi
add    $0x360,%rsi
mov    %r15,%rdi
call   1040 <strcpy@plt>
add    $0x1,%r13d
mov    %r14d,%eax
jmp    13b6 <main+0x1f6>
lea    0xd3a(%rip),%rdi
xor    %eax,%eax
call   1090 <printw@plt>
xor    %eax,%eax
call   10a0 <getch@plt>
lea    0xd69(%rip),%rdi
xor    %eax,%eax
call   1090 <printw@plt>
lea    0x1d0(%rsp),%r15
lea    0x40(%rsp),%rbp
lea    0xd62(%rip),%r14
xor    %ebx,%ebx
nopw   0x0(%rax,%rax,1)
mov    0x20(%rsp,%rbx,4),%edx
mov    %r14,%rdi
mov    %r15,%rsi
mov    %rbp,%rcx
xor    %eax,%eax
call   1090 <printw@plt>
add    $0x1,%rbx
add    $0x14,%r15
add    $0x14,%rbp
cmp    %rbx,%r12
jne    1450 <main+0x290>
movslq 0xc(%rsp),%rax
lea    0x0(,%rax,4),%rcx
lea    (%rcx,%rcx,4),%rcx
lea    (%rsp,%rcx,1),%rsi
add    $0x1d0,%rsi
mov    0x20(%rsp,%rax,4),%edx
add    %rsp,%rcx
add    $0x40,%rcx
lea    0xd11(%rip),%rdi
xor    %eax,%eax
call   1090 <printw@plt>
movslq 0x10(%rsp),%rax
lea    0x0(,%rax,4),%rcx
lea    (%rcx,%rcx,4),%rcx
lea    (%rsp,%rcx,1),%rsi
add    $0x1d0,%rsi
mov    0x20(%rsp,%rax,4),%edx
add    %rsp,%rcx
add    $0x40,%rcx
lea    0xd24(%rip),%rdi
xor    %eax,%eax
call   1090 <printw@plt>
lea    0xd5e(%rip),%rdi
xor    %eax,%eax
call   1090 <printw@plt>
mov    0x18(%rsp),%rax
test   %eax,%eax
jle    152c <main+0x36c>
mov    %eax,%r15d
lea    0x4f0(%rsp),%rbx
lea    0xd64(%rip),%r14
xor    %ebp,%ebp
nopw   0x0(%rax,%rax,1)
add    $0x1,%rbp
mov    %r14,%rdi
mov    %ebp,%esi
mov    %rbx,%rdx
xor    %eax,%eax
call   1090 <printw@plt>
add    $0x14,%rbx
cmp    %rbp,%r15
jne    1510 <main+0x350>
lea    0xd42(%rip),%rdi
xor    %eax,%eax
call   1090 <printw@plt>
test   %r13d,%r13d
jle    157c <main+0x3bc>
mov    %r13d,%r15d
lea    0x360(%rsp),%rbx
lea    0xd1b(%rip),%r14
xor    %ebp,%ebp
cs nopw 0x0(%rax,%rax,1)
nopl   (%rax)
add    $0x1,%rbp
mov    %r14,%rdi
mov    %ebp,%esi
mov    %rbx,%rdx
xor    %eax,%eax
call   1090 <printw@plt>
add    $0x14,%rbx
cmp    %rbp,%r15
jne    1560 <main+0x3a0>
xor    %eax,%eax
call   10a0 <getch@plt>
xor    %eax,%eax
call   10b0 <endwin@plt>
add    $0x688,%rsp
pop    %rbx
pop    %r12
pop    %r13
pop    %r14
pop    %r15
pop    %rbp
ret

LLVM IR (-O0):
@stdscr = global i32 0
@.str = [128 x i8] c"Bienvenido Usuario.\0AEste programa lee una lista de nombres, edades y lugares de nacimiento e imprime una estadistica del mismo\0A\00"
@.str.1 = [17 x i8] c"\09\09REGISTRO #%d\0A\0A\00"
@.str.2 = [34 x i8] c"Favor de introducir su nombre:\0A>>\00"
@.str.3 = [47 x i8] c"Favor de introducir su Lugar de Nacimiento:\0A>>\00"
@.str.4 = [32 x i8] c"Favor de introducir su edad:\0A>>\00"
@.str.5 = [3 x i8] c"%d\00"
@.str.6 = [60 x i8] c"Desea ingresar a otra persona al registro?\0A\090) NO\0A\091) SI\0A>>\00"
@.str.7 = [9 x i8] c"mexicali\00"
@.str.8 = [8 x i8] c"durango\00"
@.str.9 = [68 x i8] c"Acontinuacion se imprime el registro resultante: [Presione Enter]\0A\0A\00"
@.str.10 = [20 x i8] c"NOMBRE|EDAD|CIUDAD\0A\00"
@.str.11 = [10 x i8] c"%s\09%d\09%s\0A\00"
@.str.12 = [72 x i8] c"\0ALa persona mayor en la lista es:\0A\0A\09Nombre:%s\0A\09Edad:%d\0A\09Lugar Natal:%s\0A\00"
@.str.13 = [72 x i8] c"\0ALa persona menor en la lista es:\0A\0A\09Nombre:%s\0A\09Edad:%d\0A\09Lugar Natal:%s\0A\00"
@.str.14 = [40 x i8] c"\0ALas personas nacidas en Mexicali son:\0A\00"
@.str.15 = [9 x i8] c"\09%d) %s\0A\00"
@.str.16 = [39 x i8] c"\0ALas personas nacidas en Durango son:\0A\00"
define void @main() {
%1 = alloca [20 x [20 x i8]]
%2 = alloca [20 x [20 x i8]]
%3 = alloca [20 x [20 x i8]]
%4 = alloca [20 x [20 x i8]]
%5 = alloca [5 x i32]
%6 = alloca i32
%7 = alloca i32
%8 = alloca i32
%9 = alloca i32
%10 = alloca i32
%11 = alloca i32
%12 = alloca i32
%13 = alloca i32
%14 = alloca i32
%15 = alloca i32
%16 = alloca i32
%17 = alloca i32
%18 = call i32 (...) @initscr()
%19 = load i32, i32* @stdscr
%20 = call i32 @box(i32 %19, i8 signext 42, i8 signext 42)
%21 = bitcast [5 x i32]* %5 to i8*
store i32 0, i32* %6
store i32 0, i32* %7
store i32 0, i32* %8
store i32 0, i32* %9
store i32 0, i32* %10
store i32 0, i32* %11
store i32 0, i32* %12
%22 = call i32 (i8*, ...) @printw(i8* getelementptr inbounds ([128 x i8], [128 x i8]* @.str, i64 0, i64 0))
br label %23
23: ; preds = %51, %0
%24 = load i32, i32* %9
%25 = add nsw i32 %24, 1
%26 = call i32 (i8*, ...) @printw(i8* getelementptr inbounds ([17 x i8], [17 x i8]* @.str.1, i64 0, i64 0), i32 %25)
%27 = call i32 (i8*, ...) @printw(i8* getelementptr inbounds ([34 x i8], [34 x i8]* @.str.2, i64 0, i64 0))
%28 = load i32, i32* %9
%29 = sext i32 %28 to i64
%30 = getelementptr inbounds [20 x [20 x i8]], [20 x [20 x i8]]* %1, i64 0, i64 %29
%31 = getelementptr inbounds [20 x i8], [20 x i8]* %30, i64 0, i64 0
%32 = call i32 @getstr(i8* %31)
%33 = call i32 (i8*, ...) @printw(i8* getelementptr inbounds ([47 x i8], [47 x i8]* @.str.3, i64 0, i64 0))
%34 = load i32, i32* %9
%35 = sext i32 %34 to i64
%36 = getelementptr inbounds [20 x [20 x i8]], [20 x [20 x i8]]* %2, i64 0, i64 %35
%37 = getelementptr inbounds [20 x i8], [20 x i8]* %36, i64 0, i64 0
%38 = call i32 @getstr(i8* %37)
%39 = call i32 (i8*, ...) @printw(i8* getelementptr inbounds ([32 x i8], [32 x i8]* @.str.4, i64 0, i64 0))
%40 = load i32, i32* %9
%41 = sext i32 %40 to i64
%42 = getelementptr inbounds [5 x i32], [5 x i32]* %5, i64 0, i64 %41
%43 = call i32 @scanw(i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str.5, i64 0, i64 0), i32* %42)
%44 = call i32 (...) @getchar()
%45 = load i32, i32* %9
%46 = add nsw i32 %45, 1
store i32 %46, i32* %9
%47 = call i32 (i8*, ...) @printw(i8* getelementptr inbounds ([60 x i8], [60 x i8]* @.str.6, i64 0, i64 0))
%48 = call i32 @scanw(i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str.5, i64 0, i64 0), i32* %8)
%49 = call i32 (...) @getchar()
%50 = call i32 @scrl(i32 7)
br label %51
51: ; preds = %23
%52 = load i32, i32* %8
%53 = icmp ne i32 %52, 0
br i1 %53, label %23, label %54
54: ; preds = %51
%55 = call i32 (...) @clear()
store i32 0, i32* %13
br label %56
56: ; preds = %94, %54
%57 = load i32, i32* %13
%58 = load i32, i32* %9
%59 = icmp slt i32 %57, %58
br i1 %59, label %60, label %97
60: ; preds = %56
%61 = load i32, i32* %13
%62 = sext i32 %61 to i64
%63 = getelementptr inbounds [5 x i32], [5 x i32]* %5, i64 0, i64 %62
%64 = load i32, i32* %63
%65 = load i32, i32* %10
%66 = icmp sgt i32 %64, %65
br i1 %66, label %67, label %73
67: ; preds = %60
%68 = load i32, i32* %13
%69 = sext i32 %68 to i64
%70 = getelementptr inbounds [5 x i32], [5 x i32]* %5, i64 0, i64 %69
%71 = load i32, i32* %70
store i32 %71, i32* %10
%72 = load i32, i32* %13
store i32 %72, i32* %11
br label %93
73: ; preds = %60
%74 = load i32, i32* %13
%75 = sext i32 %74 to i64
%76 = getelementptr inbounds [20 x [20 x i8]], [20 x [20 x i8]]* %2, i64 0, i64 %75
%77 = getelementptr inbounds [20 x i8], [20 x i8]* %76, i64 0, i64 0
%78 = call i64 @strcasecmp(i8* %77, i8* getelementptr inbounds ([9 x i8], [9 x i8]* @.str.7, i64 0, i64 0))
%79 = icmp eq i64 %78, 0
br i1 %79, label %80, label %92
80: ; preds = %73
%81 = load i32, i32* %13
%82 = sext i32 %81 to i64
%83 = getelementptr inbounds [20 x [20 x i8]], [20 x [20 x i8]]* %1, i64 0, i64 %82
%84 = getelementptr inbounds [20 x i8], [20 x i8]* %83, i64 0, i64 0
%85 = load i32, i32* %7
%86 = sext i32 %85 to i64
%87 = getelementptr inbounds [20 x [20 x i8]], [20 x [20 x i8]]* %3, i64 0, i64 %86
%88 = getelementptr inbounds [20 x i8], [20 x i8]* %87, i64 0, i64 0
%89 = call i32 @strcpy(i8* %84, i8* %88)
%90 = load i32, i32* %7
%91 = add nsw i32 %90, 1
store i32 %91, i32* %7
br label %92
92: ; preds = %80, %73
br label %93
93: ; preds = %92, %67
br label %94
94: ; preds = %93
%95 = load i32, i32* %13
%96 = add nsw i32 %95, 1
store i32 %96, i32* %13
br label %56
97: ; preds = %56
store i32 0, i32* %14
br label %98
98: ; preds = %136, %97
%99 = load i32, i32* %14
%100 = load i32, i32* %9
%101 = icmp slt i32 %99, %100
br i1 %101, label %102, label %139
102: ; preds = %98
%103 = load i32, i32* %14
%104 = sext i32 %103 to i64
%105 = getelementptr inbounds [5 x i32], [5 x i32]* %5, i64 0, i64 %104
%106 = load i32, i32* %105
%107 = load i32, i32* %10
%108 = icmp slt i32 %106, %107
br i1 %108, label %109, label %115
109: ; preds = %102
%110 = load i32, i32* %14
%111 = sext i32 %110 to i64
%112 = getelementptr inbounds [5 x i32], [5 x i32]* %5, i64 0, i64 %111
%113 = load i32, i32* %112
store i32 %113, i32* %10
%114 = load i32, i32* %14
store i32 %114, i32* %12
br label %135
115: ; preds = %102
%116 = load i32, i32* %14
%117 = sext i32 %116 to i64
%118 = getelementptr inbounds [20 x [20 x i8]], [20 x [20 x i8]]* %2, i64 0, i64 %117
%119 = getelementptr inbounds [20 x i8], [20 x i8]* %118, i64 0, i64 0
%120 = call i64 @strcasecmp(i8* %119, i8* getelementptr inbounds ([8 x i8], [8 x i8]* @.str.8, i64 0, i64 0))
%121 = icmp eq i64 %120, 0
br i1 %121, label %122, label %134
122: ; preds = %115
%123 = load i32, i32* %14
%124 = sext i32 %123 to i64
%125 = getelementptr inbounds [20 x [20 x i8]], [20 x [20 x i8]]* %1, i64 0, i64 %124
%126 = getelementptr inbounds [20 x i8], [20 x i8]* %125, i64 0, i64 0
%127 = load i32, i32* %6
%128 = sext i32 %127 to i64
%129 = getelementptr inbounds [20 x [20 x i8]], [20 x [20 x i8]]* %4, i64 0, i64 %128
%130 = getelementptr inbounds [20 x i8], [20 x i8]* %129, i64 0, i64 0
%131 = call i32 @strcpy(i8* %126, i8* %130)
%132 = load i32, i32* %6
%133 = add nsw i32 %132, 1
store i32 %133, i32* %6
br label %134
134: ; preds = %122, %115
br label %135
135: ; preds = %134, %109
br label %136
136: ; preds = %135
%137 = load i32, i32* %14
%138 = add nsw i32 %137, 1
store i32 %138, i32* %14
br label %98
139: ; preds = %98
%140 = call i32 (i8*, ...) @printw(i8* getelementptr inbounds ([68 x i8], [68 x i8]* @.str.9, i64 0, i64 0))
%141 = call i32 (...) @getch()
%142 = call i32 (i8*, ...) @printw(i8* getelementptr inbounds ([20 x i8], [20 x i8]* @.str.10, i64 0, i64 0))
store i32 0, i32* %15
br label %143
143: ; preds = %161, %139
%144 = load i32, i32* %15
%145 = load i32, i32* %9
%146 = icmp slt i32 %144, %145
br i1 %146, label %147, label %164
147: ; preds = %143
%148 = load i32, i32* %15
%149 = sext i32 %148 to i64
%150 = getelementptr inbounds [20 x [20 x i8]], [20 x [20 x i8]]* %1, i64 0, i64 %149
%151 = getelementptr inbounds [20 x i8], [20 x i8]* %150, i64 0, i64 0
%152 = load i32, i32* %15
%153 = sext i32 %152 to i64
%154 = getelementptr inbounds [5 x i32], [5 x i32]* %5, i64 0, i64 %153
%155 = load i32, i32* %154
%156 = load i32, i32* %15
%157 = sext i32 %156 to i64
%158 = getelementptr inbounds [20 x [20 x i8]], [20 x [20 x i8]]* %2, i64 0, i64 %157
%159 = getelementptr inbounds [20 x i8], [20 x i8]* %158, i64 0, i64 0
%160 = call i32 (i8*, ...) @printw(i8* getelementptr inbounds ([10 x i8], [10 x i8]* @.str.11, i64 0, i64 0), i8* %151, i32 %155, i8* %159)
br label %161
161: ; preds = %147
%162 = load i32, i32* %15
%163 = add nsw i32 %162, 1
store i32 %163, i32* %15
br label %143
164: ; preds = %143
%165 = load i32, i32* %11
%166 = sext i32 %165 to i64
%167 = getelementptr inbounds [20 x [20 x i8]], [20 x [20 x i8]]* %1, i64 0, i64 %166
%168 = getelementptr inbounds [20 x i8], [20 x i8]* %167, i64 0, i64 0
%169 = load i32, i32* %11
%170 = sext i32 %169 to i64
%171 = getelementptr inbounds [5 x i32], [5 x i32]* %5, i64 0, i64 %170
%172 = load i32, i32* %171
%173 = load i32, i32* %11
%174 = sext i32 %173 to i64
%175 = getelementptr inbounds [20 x [20 x i8]], [20 x [20 x i8]]* %2, i64 0, i64 %174
%176 = getelementptr inbounds [20 x i8], [20 x i8]* %175, i64 0, i64 0
%177 = call i32 (i8*, ...) @printw(i8* getelementptr inbounds ([72 x i8], [72 x i8]* @.str.12, i64 0, i64 0), i8* %168, i32 %172, i8* %176)
%178 = load i32, i32* %12
%179 = sext i32 %178 to i64
%180 = getelementptr inbounds [20 x [20 x i8]], [20 x [20 x i8]]* %1, i64 0, i64 %179
%181 = getelementptr inbounds [20 x i8], [20 x i8]* %180, i64 0, i64 0
%182 = load i32, i32* %12
%183 = sext i32 %182 to i64
%184 = getelementptr inbounds [5 x i32], [5 x i32]* %5, i64 0, i64 %183
%185 = load i32, i32* %184
%186 = load i32, i32* %12
%187 = sext i32 %186 to i64
%188 = getelementptr inbounds [20 x [20 x i8]], [20 x [20 x i8]]* %2, i64 0, i64 %187
%189 = getelementptr inbounds [20 x i8], [20 x i8]* %188, i64 0, i64 0
%190 = call i32 (i8*, ...) @printw(i8* getelementptr inbounds ([72 x i8], [72 x i8]* @.str.13, i64 0, i64 0), i8* %181, i32 %185, i8* %189)
%191 = call i32 (i8*, ...) @printw(i8* getelementptr inbounds ([40 x i8], [40 x i8]* @.str.14, i64 0, i64 0))
store i32 0, i32* %16
br label %192
192: ; preds = %204, %164
%193 = load i32, i32* %16
%194 = load i32, i32* %7
%195 = icmp slt i32 %193, %194
br i1 %195, label %196, label %207
196: ; preds = %192
%197 = load i32, i32* %16
%198 = add nsw i32 %197, 1
%199 = load i32, i32* %16
%200 = sext i32 %199 to i64
%201 = getelementptr inbounds [20 x [20 x i8]], [20 x [20 x i8]]* %3, i64 0, i64 %200
%202 = getelementptr inbounds [20 x i8], [20 x i8]* %201, i64 0, i64 0
%203 = call i32 (i8*, ...) @printw(i8* getelementptr inbounds ([9 x i8], [9 x i8]* @.str.15, i64 0, i64 0), i32 %198, i8* %202)
br label %204
204: ; preds = %196
%205 = load i32, i32* %16
%206 = add nsw i32 %205, 1
store i32 %206, i32* %16
br label %192
207: ; preds = %192
%208 = call i32 (i8*, ...) @printw(i8* getelementptr inbounds ([39 x i8], [39 x i8]* @.str.16, i64 0, i64 0))
store i32 0, i32* %17
br label %209
209: ; preds = %221, %207
%210 = load i32, i32* %17
%211 = load i32, i32* %6
%212 = icmp slt i32 %210, %211
br i1 %212, label %213, label %224
213: ; preds = %209
%214 = load i32, i32* %17
%215 = add nsw i32 %214, 1
%216 = load i32, i32* %17
%217 = sext i32 %216 to i64
%218 = getelementptr inbounds [20 x [20 x i8]], [20 x [20 x i8]]* %4, i64 0, i64 %217
%219 = getelementptr inbounds [20 x i8], [20 x i8]* %218, i64 0, i64 0
%220 = call i32 (i8*, ...) @printw(i8* getelementptr inbounds ([9 x i8], [9 x i8]* @.str.15, i64 0, i64 0), i32 %215, i8* %219)
br label %221
221: ; preds = %213
%222 = load i32, i32* %17
%223 = add nsw i32 %222, 1
store i32 %223, i32* %17
br label %209
224: ; preds = %209
%225 = call i32 (...) @getch()
%226 = call i32 (...) @endwin()
ret void
}

LLVM IR (-O2):
@stdscr = global i32 0
@.str = [128 x i8] c"Bienvenido Usuario.\0AEste programa lee una lista de nombres, edades y lugares de nacimiento e imprime una estadistica del mismo\0A\00"
@.str.1 = [17 x i8] c"\09\09REGISTRO #%d\0A\0A\00"
@.str.2 = [34 x i8] c"Favor de introducir su nombre:\0A>>\00"
@.str.3 = [47 x i8] c"Favor de introducir su Lugar de Nacimiento:\0A>>\00"
@.str.4 = [32 x i8] c"Favor de introducir su edad:\0A>>\00"
@.str.5 = [3 x i8] c"%d\00"
@.str.6 = [60 x i8] c"Desea ingresar a otra persona al registro?\0A\090) NO\0A\091) SI\0A>>\00"
@.str.7 = [9 x i8] c"mexicali\00"
@.str.8 = [8 x i8] c"durango\00"
@.str.9 = [68 x i8] c"Acontinuacion se imprime el registro resultante: [Presione Enter]\0A\0A\00"
@.str.10 = [20 x i8] c"NOMBRE|EDAD|CIUDAD\0A\00"
@.str.11 = [10 x i8] c"%s\09%d\09%s\0A\00"
@.str.12 = [72 x i8] c"\0ALa persona mayor en la lista es:\0A\0A\09Nombre:%s\0A\09Edad:%d\0A\09Lugar Natal:%s\0A\00"
@.str.13 = [72 x i8] c"\0ALa persona menor en la lista es:\0A\0A\09Nombre:%s\0A\09Edad:%d\0A\09Lugar Natal:%s\0A\00"
@.str.14 = [40 x i8] c"\0ALas personas nacidas en Mexicali son:\0A\00"
@.str.15 = [9 x i8] c"\09%d) %s\0A\00"
@.str.16 = [39 x i8] c"\0ALas personas nacidas en Durango son:\0A\00"
define void @main() {
%1 = alloca [20 x [20 x i8]]
%2 = alloca [20 x [20 x i8]]
%3 = alloca [20 x [20 x i8]]
%4 = alloca [20 x [20 x i8]]
%5 = alloca [5 x i32]
%6 = alloca i32
%7 = tail call i32 (...) @initscr()
%8 = load i32, i32* @stdscr
%9 = tail call i32 @box(i32 %8, i8 signext 42, i8 signext 42)
%10 = getelementptr inbounds [20 x [20 x i8]], [20 x [20 x i8]]* %1, i64 0, i64 0, i64 0
%11 = getelementptr inbounds [20 x [20 x i8]], [20 x [20 x i8]]* %2, i64 0, i64 0, i64 0
%12 = getelementptr inbounds [20 x [20 x i8]], [20 x [20 x i8]]* %3, i64 0, i64 0, i64 0
%13 = getelementptr inbounds [20 x [20 x i8]], [20 x [20 x i8]]* %4, i64 0, i64 0, i64 0
%14 = bitcast [5 x i32]* %5 to i8*
%15 = bitcast i32* %6 to i8*
store i32 0, i32* %6
%16 = tail call i32 (i8*, ...) @printw(i8* getelementptr inbounds ([128 x i8], [128 x i8]* @.str, i64 0, i64 0))
br label %17
17: ; preds = %17, %0
%18 = phi i64 [ %19, %17 ], [ 0, %0 ]
%19 = add nuw i64 %18, 1
%20 = trunc i64 %19 to i32
%21 = call i32 (i8*, ...) @printw(i8* getelementptr inbounds ([17 x i8], [17 x i8]* @.str.1, i64 0, i64 0), i32 %20)
%22 = call i32 (i8*, ...) @printw(i8* getelementptr inbounds ([34 x i8], [34 x i8]* @.str.2, i64 0, i64 0))
%23 = getelementptr inbounds [20 x [20 x i8]], [20 x [20 x i8]]* %1, i64 0, i64 %18, i64 0
%24 = call i32 @getstr(i8* %23)
%25 = call i32 (i8*, ...) @printw(i8* getelementptr inbounds ([47 x i8], [47 x i8]* @.str.3, i64 0, i64 0))
%26 = getelementptr inbounds [20 x [20 x i8]], [20 x [20 x i8]]* %2, i64 0, i64 %18, i64 0
%27 = call i32 @getstr(i8* %26)
%28 = call i32 (i8*, ...) @printw(i8* getelementptr inbounds ([32 x i8], [32 x i8]* @.str.4, i64 0, i64 0))
%29 = getelementptr inbounds [5 x i32], [5 x i32]* %5, i64 0, i64 %18
%30 = call i32 @scanw(i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str.5, i64 0, i64 0), i32* %29)
%31 = call i32 (...) @getchar()
%32 = call i32 (i8*, ...) @printw(i8* getelementptr inbounds ([60 x i8], [60 x i8]* @.str.6, i64 0, i64 0))
%33 = call i32 @scanw(i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str.5, i64 0, i64 0), i32* %6)
%34 = call i32 (...) @getchar()
%35 = call i32 @scrl(i32 7)
%36 = load i32, i32* %6
%37 = icmp eq i32 %36, 0
br i1 %37, label %38, label %17
38: ; preds = %17
%39 = call i32 (...) @clear()
%40 = add i64 %18, 1
%41 = and i64 %40, 4294967295
br label %42
42: ; preds = %38, %61
%43 = phi i64 [ 0, %38 ], [ %65, %61 ]
%44 = phi i32 [ 0, %38 ], [ %64, %61 ]
%45 = phi i32 [ 0, %38 ], [ %63, %61 ]
%46 = phi i32 [ 0, %38 ], [ %62, %61 ]
%47 = getelementptr inbounds [5 x i32], [5 x i32]* %5, i64 0, i64 %43
%48 = load i32, i32* %47
%49 = icmp sgt i32 %48, %45
%50 = trunc i64 %43 to i32
br i1 %49, label %61, label %51
51: ; preds = %42
%52 = getelementptr inbounds [20 x [20 x i8]], [20 x [20 x i8]]* %2, i64 0, i64 %43, i64 0
%53 = call i64 @strcasecmp(i8* %52, i8* getelementptr inbounds ([9 x i8], [9 x i8]* @.str.7, i64 0, i64 0))
%54 = icmp eq i64 %53, 0
br i1 %54, label %55, label %61
55: ; preds = %51
%56 = getelementptr inbounds [20 x [20 x i8]], [20 x [20 x i8]]* %1, i64 0, i64 %43, i64 0
%57 = sext i32 %46 to i64
%58 = getelementptr inbounds [20 x [20 x i8]], [20 x [20 x i8]]* %3, i64 0, i64 %57, i64 0
%59 = call i32 @strcpy(i8* %56, i8* %58)
%60 = add nsw i32 %46, 1
br label %61
61: ; preds = %42, %55, %51
%62 = phi i32 [ %60, %55 ], [ %46, %51 ], [ %46, %42 ]
%63 = phi i32 [ %45, %55 ], [ %45, %51 ], [ %48, %42 ]
%64 = phi i32 [ %44, %55 ], [ %44, %51 ], [ %50, %42 ]
%65 = add nuw nsw i64 %43, 1
%66 = icmp eq i64 %65, %41
br i1 %66, label %71, label %42
67: ; preds = %90
%68 = call i32 (i8*, ...) @printw(i8* getelementptr inbounds ([68 x i8], [68 x i8]* @.str.9, i64 0, i64 0))
%69 = call i32 (...) @getch()
%70 = call i32 (i8*, ...) @printw(i8* getelementptr inbounds ([20 x i8], [20 x i8]* @.str.10, i64 0, i64 0))
br label %113
71: ; preds = %61, %90
%72 = phi i64 [ %94, %90 ], [ 0, %61 ]
%73 = phi i32 [ %93, %90 ], [ 0, %61 ]
%74 = phi i32 [ %92, %90 ], [ %63, %61 ]
%75 = phi i32 [ %91, %90 ], [ 0, %61 ]
%76 = getelementptr inbounds [5 x i32], [5 x i32]* %5, i64 0, i64 %72
%77 = load i32, i32* %76
%78 = icmp slt i32 %77, %74
%79 = trunc i64 %72 to i32
br i1 %78, label %90, label %80
80: ; preds = %71
%81 = getelementptr inbounds [20 x [20 x i8]], [20 x [20 x i8]]* %2, i64 0, i64 %72, i64 0
%82 = call i64 @strcasecmp(i8* %81, i8* getelementptr inbounds ([8 x i8], [8 x i8]* @.str.8, i64 0, i64 0))
%83 = icmp eq i64 %82, 0
br i1 %83, label %84, label %90
84: ; preds = %80
%85 = getelementptr inbounds [20 x [20 x i8]], [20 x [20 x i8]]* %1, i64 0, i64 %72, i64 0
%86 = sext i32 %75 to i64
%87 = getelementptr inbounds [20 x [20 x i8]], [20 x [20 x i8]]* %4, i64 0, i64 %86, i64 0
%88 = call i32 @strcpy(i8* %85, i8* %87)
%89 = add nsw i32 %75, 1
br label %90
90: ; preds = %71, %84, %80
%91 = phi i32 [ %89, %84 ], [ %75, %80 ], [ %75, %71 ]
%92 = phi i32 [ %74, %84 ], [ %74, %80 ], [ %77, %71 ]
%93 = phi i32 [ %73, %84 ], [ %73, %80 ], [ %79, %71 ]
%94 = add nuw nsw i64 %72, 1
%95 = icmp eq i64 %94, %41
br i1 %95, label %67, label %71
96: ; preds = %113
%97 = sext i32 %64 to i64
%98 = getelementptr inbounds [20 x [20 x i8]], [20 x [20 x i8]]* %1, i64 0, i64 %97, i64 0
%99 = getelementptr inbounds [5 x i32], [5 x i32]* %5, i64 0, i64 %97
%100 = load i32, i32* %99
%101 = getelementptr inbounds [20 x [20 x i8]], [20 x [20 x i8]]* %2, i64 0, i64 %97, i64 0
%102 = call i32 (i8*, ...) @printw(i8* getelementptr inbounds ([72 x i8], [72 x i8]* @.str.12, i64 0, i64 0), i8* %98, i32 %100, i8* %101)
%103 = sext i32 %93 to i64
%104 = getelementptr inbounds [20 x [20 x i8]], [20 x [20 x i8]]* %1, i64 0, i64 %103, i64 0
%105 = getelementptr inbounds [5 x i32], [5 x i32]* %5, i64 0, i64 %103
%106 = load i32, i32* %105
%107 = getelementptr inbounds [20 x [20 x i8]], [20 x [20 x i8]]* %2, i64 0, i64 %103, i64 0
%108 = call i32 (i8*, ...) @printw(i8* getelementptr inbounds ([72 x i8], [72 x i8]* @.str.13, i64 0, i64 0), i8* %104, i32 %106, i8* %107)
%109 = call i32 (i8*, ...) @printw(i8* getelementptr inbounds ([40 x i8], [40 x i8]* @.str.14, i64 0, i64 0))
%110 = icmp sgt i32 %62, 0
br i1 %110, label %111, label %122
111: ; preds = %96
%112 = zext i32 %62 to i64
br label %127
113: ; preds = %67, %113
%114 = phi i64 [ 0, %67 ], [ %120, %113 ]
%115 = getelementptr inbounds [20 x [20 x i8]], [20 x [20 x i8]]* %1, i64 0, i64 %114, i64 0
%116 = getelementptr inbounds [5 x i32], [5 x i32]* %5, i64 0, i64 %114
%117 = load i32, i32* %116
%118 = getelementptr inbounds [20 x [20 x i8]], [20 x [20 x i8]]* %2, i64 0, i64 %114, i64 0
%119 = call i32 (i8*, ...) @printw(i8* getelementptr inbounds ([10 x i8], [10 x i8]* @.str.11, i64 0, i64 0), i8* %115, i32 %117, i8* %118)
%120 = add nuw nsw i64 %114, 1
%121 = icmp eq i64 %120, %41
br i1 %121, label %96, label %113
122: ; preds = %127, %96
%123 = call i32 (i8*, ...) @printw(i8* getelementptr inbounds ([39 x i8], [39 x i8]* @.str.16, i64 0, i64 0))
%124 = icmp sgt i32 %91, 0
br i1 %124, label %125, label %134
125: ; preds = %122
%126 = zext i32 %91 to i64
br label %137
127: ; preds = %111, %127
%128 = phi i64 [ 0, %111 ], [ %129, %127 ]
%129 = add nuw nsw i64 %128, 1
%130 = getelementptr inbounds [20 x [20 x i8]], [20 x [20 x i8]]* %3, i64 0, i64 %128, i64 0
%131 = trunc i64 %129 to i32
%132 = call i32 (i8*, ...) @printw(i8* getelementptr inbounds ([9 x i8], [9 x i8]* @.str.15, i64 0, i64 0), i32 %131, i8* %130)
%133 = icmp eq i64 %129, %112
br i1 %133, label %122, label %127
134: ; preds = %137, %122
%135 = call i32 (...) @getch()
%136 = call i32 (...) @endwin()
ret void
137: ; preds = %125, %137
%138 = phi i64 [ 0, %125 ], [ %139, %137 ]
%139 = add nuw nsw i64 %138, 1
%140 = getelementptr inbounds [20 x [20 x i8]], [20 x [20 x i8]]* %4, i64 0, i64 %138, i64 0
%141 = trunc i64 %139 to i32
%142 = call i32 (i8*, ...) @printw(i8* getelementptr inbounds ([9 x i8], [9 x i8]* @.str.15, i64 0, i64 0), i32 %141, i8* %140)
%143 = icmp eq i64 %139, %126
br i1 %143, label %134, label %137
}