#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*/ initscr();
int /*<<< orphan*/ printw(char *, ...);
int /*<<< orphan*/ scanw(char *, char *);
int /*<<< orphan*/ scrl(int);
int /*<<< orphan*/ stdscr;
scalar_t__ strcasecmp(char *, char *);
void main(void) {
  char baja[] = "mexicali", nuevoleon[] = "monterrey", sonora[] = "hermosillo",
       chihuahua[] = "chihuahua", aguascalientes[] = "aguascalientes";
  char name[] = " ", userOpt[] = " ";
  int count = 0, punt = 0, useroptn = 0, cont = 0;
  initscr();
  box(stdscr, '#', '#');
  printw("Bienvenido usuario; para iniciar. Favor de ingresar tu nombre \n>>");
  scanw("%s", name);
  printw("\nPerfecto %s, Ahora podemos iniciar. Este programa asiste en la "
         "ensenansa de estados usando preguntas interactivas.\n",
         name);
  do {
    printw("\n\tPregunta 1:\n");
    printw("\tIntrodusca la capital de: Baja California\n");
    scanw("%s", userOpt);
    if (strcasecmp(baja, userOpt) != 0) {
      cont++;
      printw("%s, Fallaste!\nIntentos Restantes: %d\n", name, 3 - cont);
    } else {
      printw("Felicidades %s, Tu respuesta es correcta\n", name);
      punt++;
      break;
    }
  } while (cont < 3);
  count += cont;
  cont = 0;
  clear();
  do {
    printw("\n\tPregunta 2:\n");
    printw("\tIntrodusca la capital de: nuevo leon\n");
    scanw("%s", userOpt);
    if (strcasecmp(nuevoleon, userOpt) != 0) {
      cont++;
      printw("%s, Fallaste!\nIntentos Restantes: %d\n", name, 3 - cont);
    } else {
      printw("Felicidades %s, Tu respuesta es correcta\n", name);
      punt++;
      break;
    }
  } while (cont < 3);
  count += cont;
  cont = 0;
  clear();
  do {
    printw("\n\tPregunta 3:\n");
    printw("\tIntrodusca la capital de: sonora\n");
    scanw("%s", userOpt);
    if (strcasecmp(sonora, userOpt) != 0) {
      cont++;
      printw("%s, Fallaste!\nIntentos Restantes: %d\n", name, 3 - cont);
    } else {
      printw("Felicidades %s, Tu respuesta es correcta\n", name);
      punt++;
      break;
    }
  } while (cont < 3);
  count += cont;
  cont = 0;
  clear();
  do {
    printw("\n\tPregunta 4:\n");
    printw("\tIntrodusca la capital de: chihuahua\n");
    scanw("%s", userOpt);
    if (strcasecmp(chihuahua, userOpt) != 0) {
      cont++;
      printw("%s, Fallaste!\nIntentos Restantes: %d\n", name, 3 - cont);
    } else {
      printw("Felicidades %s, Tu respuesta es correcta\n", name);
      punt++;
      break;
    }
  } while (cont < 3);
  count += cont;
  cont = 0;
  clear();
  do {
    printw("\n\tPregunta 5:\n");
    printw("\tIntrodusca la capital: de aguascalientes\n");
    scanw("%s", userOpt);
    if (strcasecmp(aguascalientes, userOpt) != 0) {
      cont++;
      printw("%s, Fallaste!\nIntentos Restantes: %d\n", name, 3 - cont);
    } else {
      printw("Felicidades %s, Tu respuesta es correcta\n", name);
      punt++;
      break;
    }
  } while (cont < 3);
  count += cont;
  cont = 0;
  scrl(20);
  printw("\n\n\tPuntuacion:\n\t\taciertos=%d\n\t\terrores=%d\n\nGracias por "
         "participar %s. Vuelva pronto",
         punt, count, name);
  getch();
  endwin();
}


x86 assembly (clang, -O0):
<main>:
push   %rbp
mov    %rsp,%rbp
sub    $0x50,%rsp
mov    0xe61(%rip),%rax
mov    %rax,-0x9(%rbp)
mov    0xe5f(%rip),%al
mov    %al,-0x1(%rbp)
mov    0xe56(%rip),%rax
mov    %rax,-0x13(%rbp)
mov    0xe53(%rip),%ax
mov    %ax,-0xb(%rbp)
mov    0xe4a(%rip),%rax
mov    %rax,-0x1e(%rbp)
mov    0xe47(%rip),%ax
mov    %ax,-0x16(%rbp)
mov    0xe3f(%rip),%al
mov    %al,-0x14(%rbp)
mov    0xe36(%rip),%rax
mov    %rax,-0x28(%rbp)
mov    0xe33(%rip),%ax
mov    %ax,-0x20(%rbp)
mov    0xe2a(%rip),%rax
mov    %rax,-0x37(%rbp)
mov    0xe28(%rip),%eax
mov    %eax,-0x2f(%rbp)
mov    0xe22(%rip),%ax
mov    %ax,-0x2b(%rbp)
mov    0xe1a(%rip),%al
mov    %al,-0x29(%rbp)
mov    0xe11(%rip),%ax
mov    %ax,-0x39(%rbp)
mov    0xe06(%rip),%ax
mov    %ax,-0x3b(%rbp)
movl   $0x0,-0x40(%rbp)
movl   $0x0,-0x44(%rbp)
movl   $0x0,-0x48(%rbp)
movl   $0x0,-0x4c(%rbp)
mov    $0x0,%al
call   1040 <initscr@plt>
mov    0x2d89(%rip),%rax
mov    (%rax),%edi
mov    $0x23,%edx
mov    %edx,%esi
call   1050 <box@plt>
lea    0xdc5(%rip),%rdi
mov    $0x0,%al
call   1060 <printw@plt>
lea    -0x39(%rbp),%rsi
lea    0xdf5(%rip),%rdi
call   10a0 <scanw@plt>
lea    -0x39(%rbp),%rsi
lea    0xde8(%rip),%rdi
mov    $0x0,%al
call   1060 <printw@plt>
lea    0xe4f(%rip),%rdi
mov    $0x0,%al
call   1060 <printw@plt>
lea    0xe50(%rip),%rdi
mov    $0x0,%al
call   1060 <printw@plt>
lea    -0x3b(%rbp),%rsi
lea    0xdb7(%rip),%rdi
call   10a0 <scanw@plt>
lea    -0x9(%rbp),%rdi
lea    -0x3b(%rbp),%rsi
call   1030 <strcasecmp@plt>
cmp    $0x0,%rax
je     1308 <main+0x178>
mov    -0x4c(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0x4c(%rbp)
lea    -0x39(%rbp),%rsi
mov    $0x3,%edx
sub    -0x4c(%rbp),%edx
lea    0xe32(%rip),%rdi
mov    $0x0,%al
call   1060 <printw@plt>
jmp    1328 <main+0x198>
lea    -0x39(%rbp),%rsi
lea    0xe41(%rip),%rdi
mov    $0x0,%al
call   1060 <printw@plt>
mov    -0x44(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0x44(%rbp)
jmp    1337 <main+0x1a7>
jmp    132d <main+0x19d>
cmpl   $0x3,-0x4c(%rbp)
jl     129d <main+0x10d>
mov    -0x4c(%rbp),%eax
add    -0x40(%rbp),%eax
mov    %eax,-0x40(%rbp)
movl   $0x0,-0x4c(%rbp)
mov    $0x0,%al
call   10b0 <clear@plt>
lea    0xe29(%rip),%rdi
mov    $0x0,%al
call   1060 <printw@plt>
lea    0xe2a(%rip),%rdi
mov    $0x0,%al
call   1060 <printw@plt>
lea    -0x3b(%rbp),%rsi
lea    0xd06(%rip),%rdi
call   10a0 <scanw@plt>
lea    -0x13(%rbp),%rdi
lea    -0x3b(%rbp),%rsi
call   1030 <strcasecmp@plt>
cmp    $0x0,%rax
je     13b9 <main+0x229>
mov    -0x4c(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0x4c(%rbp)
lea    -0x39(%rbp),%rsi
mov    $0x3,%edx
sub    -0x4c(%rbp),%edx
lea    0xd81(%rip),%rdi
mov    $0x0,%al
call   1060 <printw@plt>
jmp    13d9 <main+0x249>
lea    -0x39(%rbp),%rsi
lea    0xd90(%rip),%rdi
mov    $0x0,%al
call   1060 <printw@plt>
mov    -0x44(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0x44(%rbp)
jmp    13e8 <main+0x258>
jmp    13de <main+0x24e>
cmpl   $0x3,-0x4c(%rbp)
jl     134e <main+0x1be>
mov    -0x4c(%rbp),%eax
add    -0x40(%rbp),%eax
mov    %eax,-0x40(%rbp)
movl   $0x0,-0x4c(%rbp)
mov    $0x0,%al
call   10b0 <clear@plt>
lea    0xdae(%rip),%rdi
mov    $0x0,%al
call   1060 <printw@plt>
lea    0xdaf(%rip),%rdi
mov    $0x0,%al
call   1060 <printw@plt>
lea    -0x3b(%rbp),%rsi
lea    0xc55(%rip),%rdi
call   10a0 <scanw@plt>
lea    -0x1e(%rbp),%rdi
lea    -0x3b(%rbp),%rsi
call   1030 <strcasecmp@plt>
cmp    $0x0,%rax
je     146a <main+0x2da>
mov    -0x4c(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0x4c(%rbp)
lea    -0x39(%rbp),%rsi
mov    $0x3,%edx
sub    -0x4c(%rbp),%edx
lea    0xcd0(%rip),%rdi
mov    $0x0,%al
call   1060 <printw@plt>
jmp    148a <main+0x2fa>
lea    -0x39(%rbp),%rsi
lea    0xcdf(%rip),%rdi
mov    $0x0,%al
call   1060 <printw@plt>
mov    -0x44(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0x44(%rbp)
jmp    1499 <main+0x309>
jmp    148f <main+0x2ff>
cmpl   $0x3,-0x4c(%rbp)
jl     13ff <main+0x26f>
mov    -0x4c(%rbp),%eax
add    -0x40(%rbp),%eax
mov    %eax,-0x40(%rbp)
movl   $0x0,-0x4c(%rbp)
mov    $0x0,%al
call   10b0 <clear@plt>
lea    0xd2f(%rip),%rdi
mov    $0x0,%al
call   1060 <printw@plt>
lea    0xd30(%rip),%rdi
mov    $0x0,%al
call   1060 <printw@plt>
lea    -0x3b(%rbp),%rsi
lea    0xba4(%rip),%rdi
call   10a0 <scanw@plt>
lea    -0x28(%rbp),%rdi
lea    -0x3b(%rbp),%rsi
call   1030 <strcasecmp@plt>
cmp    $0x0,%rax
je     151b <main+0x38b>
mov    -0x4c(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0x4c(%rbp)
lea    -0x39(%rbp),%rsi
mov    $0x3,%edx
sub    -0x4c(%rbp),%edx
lea    0xc1f(%rip),%rdi
mov    $0x0,%al
call   1060 <printw@plt>
jmp    153b <main+0x3ab>
lea    -0x39(%rbp),%rsi
lea    0xc2e(%rip),%rdi
mov    $0x0,%al
call   1060 <printw@plt>
mov    -0x44(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0x44(%rbp)
jmp    154a <main+0x3ba>
jmp    1540 <main+0x3b0>
cmpl   $0x3,-0x4c(%rbp)
jl     14b0 <main+0x320>
mov    -0x4c(%rbp),%eax
add    -0x40(%rbp),%eax
mov    %eax,-0x40(%rbp)
movl   $0x0,-0x4c(%rbp)
mov    $0x0,%al
call   10b0 <clear@plt>
lea    0xcb3(%rip),%rdi
mov    $0x0,%al
call   1060 <printw@plt>
lea    0xcb4(%rip),%rdi
mov    $0x0,%al
call   1060 <printw@plt>
lea    -0x3b(%rbp),%rsi
lea    0xaf3(%rip),%rdi
call   10a0 <scanw@plt>
lea    -0x37(%rbp),%rdi
lea    -0x3b(%rbp),%rsi
call   1030 <strcasecmp@plt>
cmp    $0x0,%rax
je     15cc <main+0x43c>
mov    -0x4c(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0x4c(%rbp)
lea    -0x39(%rbp),%rsi
mov    $0x3,%edx
sub    -0x4c(%rbp),%edx
lea    0xb6e(%rip),%rdi
mov    $0x0,%al
call   1060 <printw@plt>
jmp    15ec <main+0x45c>
lea    -0x39(%rbp),%rsi
lea    0xb7d(%rip),%rdi
mov    $0x0,%al
call   1060 <printw@plt>
mov    -0x44(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0x44(%rbp)
jmp    15fb <main+0x46b>
jmp    15f1 <main+0x461>
cmpl   $0x3,-0x4c(%rbp)
jl     1561 <main+0x3d1>
mov    -0x4c(%rbp),%eax
add    -0x40(%rbp),%eax
mov    %eax,-0x40(%rbp)
movl   $0x0,-0x4c(%rbp)
mov    $0x14,%edi
call   1090 <scrl@plt>
mov    -0x44(%rbp),%esi
mov    -0x40(%rbp),%edx
lea    -0x39(%rbp),%rcx
lea    0xc2f(%rip),%rdi
mov    $0x0,%al
call   1060 <printw@plt>
mov    $0x0,%al
call   1070 <getch@plt>
mov    $0x0,%al
call   1080 <endwin@plt>
add    $0x50,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<main>:
push   %rbp
push   %r15
push   %r14
push   %r13
push   %r12
push   %rbx
push   %rax
movw   $0x20,(%rsp)
movw   $0x20,0x2(%rsp)
xor    %r15d,%r15d
xor    %eax,%eax
call   1040 <initscr@plt>
mov    0x2e2f(%rip),%rax
mov    (%rax),%edi
mov    $0x23,%esi
mov    $0x23,%edx
call   1050 <box@plt>
lea    0xe66(%rip),%rdi
xor    %eax,%eax
call   1060 <printw@plt>
lea    0xe9a(%rip),%rbx
mov    %rsp,%rbp
mov    %rbx,%rdi
mov    %rbp,%rsi
call   10a0 <scanw@plt>
lea    0xe88(%rip),%rdi
mov    %rbp,%rsi
xor    %eax,%eax
call   1060 <printw@plt>
lea    0xeec(%rip),%rdi
xor    %eax,%eax
call   1060 <printw@plt>
lea    0xeed(%rip),%rdi
xor    %eax,%eax
call   1060 <printw@plt>
lea    0x2(%rsp),%rbp
mov    %rbx,%rdi
mov    %rbp,%rsi
call   10a0 <scanw@plt>
lea    0xdcf(%rip),%rdi
mov    %rbp,%rsi
call   1030 <strcasecmp@plt>
test   %rax,%rax
je     1320 <main+0x190>
lea    0xee3(%rip),%rdi
mov    %rsp,%rsi
mov    $0x2,%r15d
mov    $0x2,%edx
xor    %eax,%eax
call   1060 <printw@plt>
lea    0xe8c(%rip),%rdi
xor    %eax,%eax
call   1060 <printw@plt>
lea    0xe8d(%rip),%rdi
xor    %eax,%eax
call   1060 <printw@plt>
lea    0xdf8(%rip),%rdi
lea    0x2(%rsp),%rbx
mov    %rbx,%rsi
call   10a0 <scanw@plt>
lea    0xd6b(%rip),%rdi
mov    %rbx,%rsi
call   1030 <strcasecmp@plt>
test   %rax,%rax
je     131a <main+0x18a>
lea    0xe83(%rip),%rdi
xor    %r14d,%r14d
mov    %rsp,%rsi
mov    $0x1,%edx
xor    %eax,%eax
call   1060 <printw@plt>
lea    0xe2f(%rip),%rdi
xor    %eax,%eax
call   1060 <printw@plt>
lea    0xe30(%rip),%rdi
xor    %eax,%eax
call   1060 <printw@plt>
lea    0xd9b(%rip),%rdi
lea    0x2(%rsp),%rbp
mov    %rbp,%rsi
call   10a0 <scanw@plt>
lea    0xd0e(%rip),%rdi
mov    %rbp,%rsi
call   1030 <strcasecmp@plt>
test   %rax,%rax
je     1320 <main+0x190>
lea    0xe26(%rip),%rdi
mov    %rsp,%rsi
xor    %edx,%edx
xor    %eax,%eax
call   1060 <printw@plt>
mov    $0x3,%r15d
jmp    1337 <main+0x1a7>
mov    $0x1,%r15d
lea    0xe2b(%rip),%rdi
mov    %rsp,%rsi
xor    %eax,%eax
call   1060 <printw@plt>
mov    $0x1,%r14d
xor    %ebp,%ebp
xor    %eax,%eax
call   10b0 <clear@plt>
lea    0xe35(%rip),%rdi
xor    %eax,%eax
call   1060 <printw@plt>
lea    0xe36(%rip),%rdi
xor    %eax,%eax
call   1060 <printw@plt>
lea    0xd16(%rip),%rdi
lea    0x2(%rsp),%rbx
mov    %rbx,%rsi
call   10a0 <scanw@plt>
lea    0xc92(%rip),%rdi
mov    %rbx,%rsi
call   1030 <strcasecmp@plt>
test   %rax,%rax
je     1460 <main+0x2d0>
lea    0xd9d(%rip),%rdi
mov    %rsp,%rsi
mov    $0x2,%ebp
mov    $0x2,%edx
xor    %eax,%eax
call   1060 <printw@plt>
lea    0xdd2(%rip),%rdi
xor    %eax,%eax
call   1060 <printw@plt>
lea    0xdd3(%rip),%rdi
xor    %eax,%eax
call   1060 <printw@plt>
lea    0xcb3(%rip),%rdi
lea    0x2(%rsp),%rbx
mov    %rbx,%rsi
call   10a0 <scanw@plt>
lea    0xc2f(%rip),%rdi
mov    %rbx,%rsi
call   1030 <strcasecmp@plt>
test   %rax,%rax
je     145b <main+0x2cb>
lea    0xd3e(%rip),%rdi
mov    %rsp,%rsi
mov    $0x1,%edx
xor    %eax,%eax
call   1060 <printw@plt>
lea    0xd78(%rip),%rdi
xor    %eax,%eax
call   1060 <printw@plt>
lea    0xd79(%rip),%rdi
xor    %eax,%eax
call   1060 <printw@plt>
lea    0xc59(%rip),%rdi
lea    0x2(%rsp),%rbx
mov    %rbx,%rsi
call   10a0 <scanw@plt>
lea    0xbd5(%rip),%rdi
mov    %rbx,%rsi
call   1030 <strcasecmp@plt>
test   %rax,%rax
je     1460 <main+0x2d0>
lea    0xce4(%rip),%rdi
mov    %rsp,%rsi
xor    %edx,%edx
xor    %eax,%eax
call   1060 <printw@plt>
mov    $0x3,%ebp
jmp    1475 <main+0x2e5>
mov    $0x1,%ebp
lea    0xceb(%rip),%rdi
mov    %rsp,%rsi
xor    %eax,%eax
call   1060 <printw@plt>
add    $0x1,%r14d
xor    %r12d,%r12d
xor    %eax,%eax
call   10b0 <clear@plt>
lea    0xd2c(%rip),%rdi
xor    %eax,%eax
call   1060 <printw@plt>
lea    0xd2d(%rip),%rdi
xor    %eax,%eax
call   1060 <printw@plt>
lea    0xbd7(%rip),%rdi
lea    0x2(%rsp),%rbx
mov    %rbx,%rsi
call   10a0 <scanw@plt>
lea    0xb5d(%rip),%rdi
mov    %rbx,%rsi
call   1030 <strcasecmp@plt>
test   %rax,%rax
je     15a2 <main+0x412>
lea    0xc5e(%rip),%rdi
mov    %rsp,%rsi
mov    $0x2,%r12d
mov    $0x2,%edx
xor    %eax,%eax
call   1060 <printw@plt>
lea    0xcc8(%rip),%rdi
xor    %eax,%eax
call   1060 <printw@plt>
lea    0xcc9(%rip),%rdi
xor    %eax,%eax
call   1060 <printw@plt>
lea    0xb73(%rip),%rdi
lea    0x2(%rsp),%rbx
mov    %rbx,%rsi
call   10a0 <scanw@plt>
lea    0xaf9(%rip),%rdi
mov    %rbx,%rsi
call   1030 <strcasecmp@plt>
test   %rax,%rax
je     159c <main+0x40c>
lea    0xbfe(%rip),%rdi
mov    %rsp,%rsi
mov    $0x1,%edx
xor    %eax,%eax
call   1060 <printw@plt>
lea    0xc6e(%rip),%rdi
xor    %eax,%eax
call   1060 <printw@plt>
lea    0xc6f(%rip),%rdi
xor    %eax,%eax
call   1060 <printw@plt>
lea    0xb19(%rip),%rdi
lea    0x2(%rsp),%rbx
mov    %rbx,%rsi
call   10a0 <scanw@plt>
lea    0xa9f(%rip),%rdi
mov    %rbx,%rsi
call   1030 <strcasecmp@plt>
test   %rax,%rax
je     15a2 <main+0x412>
lea    0xba4(%rip),%rdi
mov    %rsp,%rsi
xor    %edx,%edx
xor    %eax,%eax
call   1060 <printw@plt>
mov    $0x3,%r12d
jmp    15b7 <main+0x427>
mov    $0x1,%r12d
lea    0xba9(%rip),%rdi
mov    %rsp,%rsi
xor    %eax,%eax
call   1060 <printw@plt>
add    $0x1,%r14d
xor    %r13d,%r13d
xor    %eax,%eax
call   10b0 <clear@plt>
lea    0xc1c(%rip),%rdi
xor    %eax,%eax
call   1060 <printw@plt>
lea    0xc1d(%rip),%rdi
xor    %eax,%eax
call   1060 <printw@plt>
lea    0xa95(%rip),%rdi
lea    0x2(%rsp),%rbx
mov    %rbx,%rsi
call   10a0 <scanw@plt>
lea    0xa26(%rip),%rdi
mov    %rbx,%rsi
call   1030 <strcasecmp@plt>
test   %rax,%rax
mov    %r12d,0x4(%rsp)
je     16ec <main+0x55c>
lea    0xb17(%rip),%rdi
mov    %rsp,%rsi
mov    $0x2,%r13d
mov    $0x2,%edx
xor    %eax,%eax
call   1060 <printw@plt>
lea    0xbb3(%rip),%rdi
xor    %eax,%eax
call   1060 <printw@plt>
lea    0xbb4(%rip),%rdi
xor    %eax,%eax
call   1060 <printw@plt>
lea    0xa2c(%rip),%rdi
lea    0x2(%rsp),%rbx
mov    %rbx,%rsi
call   10a0 <scanw@plt>
lea    0x9bd(%rip),%rdi
mov    %rbx,%rsi
call   1030 <strcasecmp@plt>
test   %rax,%rax
je     16e6 <main+0x556>
lea    0xab7(%rip),%rdi
mov    %rsp,%rsi
mov    $0x1,%edx
xor    %eax,%eax
call   1060 <printw@plt>
lea    0xb59(%rip),%rdi
xor    %eax,%eax
call   1060 <printw@plt>
lea    0xb5a(%rip),%rdi
xor    %eax,%eax
call   1060 <printw@plt>
lea    0x9d2(%rip),%rdi
lea    0x2(%rsp),%rbx
mov    %rbx,%rsi
call   10a0 <scanw@plt>
lea    0x963(%rip),%rdi
mov    %rbx,%rsi
call   1030 <strcasecmp@plt>
test   %rax,%rax
je     16ec <main+0x55c>
mov    %r15d,%r12d
lea    0xa5a(%rip),%rdi
mov    %rsp,%rsi
xor    %edx,%edx
xor    %eax,%eax
call   1060 <printw@plt>
mov    $0x3,%r13d
jmp    1704 <main+0x574>
mov    $0x1,%r13d
mov    %r15d,%r12d
lea    0xa5c(%rip),%rdi
mov    %rsp,%rsi
xor    %eax,%eax
call   1060 <printw@plt>
add    $0x1,%r14d
xor    %r15d,%r15d
xor    %eax,%eax
call   10b0 <clear@plt>
lea    0xb04(%rip),%rdi
xor    %eax,%eax
call   1060 <printw@plt>
lea    0xb05(%rip),%rdi
xor    %eax,%eax
call   1060 <printw@plt>
lea    0x948(%rip),%rdi
lea    0x2(%rsp),%rbx
mov    %rbx,%rsi
call   10a0 <scanw@plt>
lea    0x8e3(%rip),%rdi
mov    %rbx,%rsi
call   1030 <strcasecmp@plt>
test   %rax,%rax
je     1831 <main+0x6a1>
lea    0x9cf(%rip),%rdi
mov    %rsp,%rsi
mov    $0x2,%r15d
mov    $0x2,%edx
xor    %eax,%eax
call   1060 <printw@plt>
lea    0xaa0(%rip),%rdi
xor    %eax,%eax
call   1060 <printw@plt>
lea    0xaa1(%rip),%rdi
xor    %eax,%eax
call   1060 <printw@plt>
lea    0x8e4(%rip),%rdi
lea    0x2(%rsp),%rbx
mov    %rbx,%rsi
call   10a0 <scanw@plt>
lea    0x87f(%rip),%rdi
mov    %rbx,%rsi
call   1030 <strcasecmp@plt>
test   %rax,%rax
je     182b <main+0x69b>
lea    0x96f(%rip),%rdi
mov    %rsp,%rsi
mov    $0x1,%edx
xor    %eax,%eax
call   1060 <printw@plt>
lea    0xa46(%rip),%rdi
xor    %eax,%eax
call   1060 <printw@plt>
lea    0xa47(%rip),%rdi
xor    %eax,%eax
call   1060 <printw@plt>
lea    0x88a(%rip),%rdi
lea    0x2(%rsp),%rbx
mov    %rbx,%rsi
call   10a0 <scanw@plt>
lea    0x825(%rip),%rdi
mov    %rbx,%rsi
call   1030 <strcasecmp@plt>
test   %rax,%rax
je     1831 <main+0x6a1>
lea    0x915(%rip),%rdi
mov    %rsp,%rsi
xor    %edx,%edx
xor    %eax,%eax
call   1060 <printw@plt>
mov    $0x3,%r15d
jmp    1846 <main+0x6b6>
mov    $0x1,%r15d
lea    0x91a(%rip),%rdi
mov    %rsp,%rsi
xor    %eax,%eax
call   1060 <printw@plt>
add    $0x1,%r14d
add    %r12d,%ebp
add    0x4(%rsp),%ebp
add    %r13d,%ebp
add    %r15d,%ebp
mov    $0x14,%edi
call   1090 <scrl@plt>
lea    0x9ef(%rip),%rdi
mov    %rsp,%rcx
mov    %r14d,%esi
mov    %ebp,%edx
xor    %eax,%eax
call   1060 <printw@plt>
xor    %eax,%eax
call   1070 <getch@plt>
xor    %eax,%eax
call   1080 <endwin@plt>
add    $0x8,%rsp
pop    %rbx
pop    %r12
pop    %r13
pop    %r14
pop    %r15
pop    %rbp
ret

LLVM IR (-O0):
@__const.main.baja = [9 x i8] c"mexicali\00"
@__const.main.nuevoleon = [10 x i8] c"monterrey\00"
@__const.main.sonora = [11 x i8] c"hermosillo\00"
@__const.main.chihuahua = [10 x i8] c"chihuahua\00"
@__const.main.aguascalientes = [15 x i8] c"aguascalientes\00"
@__const.main.name = [2 x i8] c" \00"
@__const.main.userOpt = [2 x i8] c" \00"
@stdscr = global i32 0
@.str = [66 x i8] c"Bienvenido usuario; para iniciar. Favor de ingresar tu nombre \0A>>\00"
@.str.1 = [3 x i8] c"%s\00"
@.str.2 = [117 x i8] c"\0APerfecto %s, Ahora podemos iniciar. Este programa asiste en la ensenansa de estados usando preguntas interactivas.\0A\00"
@.str.3 = [15 x i8] c"\0A\09Pregunta 1:\0A\00"
@.str.4 = [44 x i8] c"\09Introdusca la capital de: Baja California\0A\00"
@.str.5 = [38 x i8] c"%s, Fallaste!\0AIntentos Restantes: %d\0A\00"
@.str.6 = [42 x i8] c"Felicidades %s, Tu respuesta es correcta\0A\00"
@.str.7 = [15 x i8] c"\0A\09Pregunta 2:\0A\00"
@.str.8 = [39 x i8] c"\09Introdusca la capital de: nuevo leon\0A\00"
@.str.9 = [15 x i8] c"\0A\09Pregunta 3:\0A\00"
@.str.10 = [35 x i8] c"\09Introdusca la capital de: sonora\0A\00"
@.str.11 = [15 x i8] c"\0A\09Pregunta 4:\0A\00"
@.str.12 = [38 x i8] c"\09Introdusca la capital de: chihuahua\0A\00"
@.str.13 = [15 x i8] c"\0A\09Pregunta 5:\0A\00"
@.str.14 = [43 x i8] c"\09Introdusca la capital: de aguascalientes\0A\00"
@.str.15 = [84 x i8] c"\0A\0A\09Puntuacion:\0A\09\09aciertos=%d\0A\09\09errores=%d\0A\0AGracias por participar %s. Vuelva pronto\00"
define void @main() {
%1 = alloca [9 x i8]
%2 = alloca [10 x i8]
%3 = alloca [11 x i8]
%4 = alloca [10 x i8]
%5 = alloca [15 x i8]
%6 = alloca [2 x i8]
%7 = alloca [2 x i8]
%8 = alloca i32
%9 = alloca i32
%10 = alloca i32
%11 = alloca i32
%12 = bitcast [9 x i8]* %1 to i8*
%13 = bitcast [10 x i8]* %2 to i8*
%14 = bitcast [11 x i8]* %3 to i8*
%15 = bitcast [10 x i8]* %4 to i8*
%16 = bitcast [15 x i8]* %5 to i8*
%17 = bitcast [2 x i8]* %6 to i8*
%18 = bitcast [2 x i8]* %7 to i8*
store i32 0, i32* %8
store i32 0, i32* %9
store i32 0, i32* %10
store i32 0, i32* %11
%19 = call i32 (...) @initscr()
%20 = load i32, i32* @stdscr
%21 = call i32 @box(i32 %20, i8 signext 35, i8 signext 35)
%22 = call i32 (i8*, ...) @printw(i8* getelementptr inbounds ([66 x i8], [66 x i8]* @.str, i64 0, i64 0))
%23 = getelementptr inbounds [2 x i8], [2 x i8]* %6, i64 0, i64 0
%24 = call i32 @scanw(i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str.1, i64 0, i64 0), i8* %23)
%25 = getelementptr inbounds [2 x i8], [2 x i8]* %6, i64 0, i64 0
%26 = call i32 (i8*, ...) @printw(i8* getelementptr inbounds ([117 x i8], [117 x i8]* @.str.2, i64 0, i64 0), i8* %25)
br label %27
27: ; preds = %49, %0
%28 = call i32 (i8*, ...) @printw(i8* getelementptr inbounds ([15 x i8], [15 x i8]* @.str.3, i64 0, i64 0))
%29 = call i32 (i8*, ...) @printw(i8* getelementptr inbounds ([44 x i8], [44 x i8]* @.str.4, i64 0, i64 0))
%30 = getelementptr inbounds [2 x i8], [2 x i8]* %7, i64 0, i64 0
%31 = call i32 @scanw(i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str.1, i64 0, i64 0), i8* %30)
%32 = getelementptr inbounds [9 x i8], [9 x i8]* %1, i64 0, i64 0
%33 = getelementptr inbounds [2 x i8], [2 x i8]* %7, i64 0, i64 0
%34 = call i64 @strcasecmp(i8* %32, i8* %33)
%35 = icmp ne i64 %34, 0
br i1 %35, label %36, label %43
36: ; preds = %27
%37 = load i32, i32* %11
%38 = add nsw i32 %37, 1
store i32 %38, i32* %11
%39 = getelementptr inbounds [2 x i8], [2 x i8]* %6, i64 0, i64 0
%40 = load i32, i32* %11
%41 = sub nsw i32 3, %40
%42 = call i32 (i8*, ...) @printw(i8* getelementptr inbounds ([38 x i8], [38 x i8]* @.str.5, i64 0, i64 0), i8* %39, i32 %41)
br label %48
43: ; preds = %27
%44 = getelementptr inbounds [2 x i8], [2 x i8]* %6, i64 0, i64 0
%45 = call i32 (i8*, ...) @printw(i8* getelementptr inbounds ([42 x i8], [42 x i8]* @.str.6, i64 0, i64 0), i8* %44)
%46 = load i32, i32* %9
%47 = add nsw i32 %46, 1
store i32 %47, i32* %9
br label %52
48: ; preds = %36
br label %49
49: ; preds = %48
%50 = load i32, i32* %11
%51 = icmp slt i32 %50, 3
br i1 %51, label %27, label %52
52: ; preds = %49, %43
%53 = load i32, i32* %11
%54 = load i32, i32* %8
%55 = add nsw i32 %54, %53
store i32 %55, i32* %8
store i32 0, i32* %11
%56 = call i32 (...) @clear()
br label %57
57: ; preds = %79, %52
%58 = call i32 (i8*, ...) @printw(i8* getelementptr inbounds ([15 x i8], [15 x i8]* @.str.7, i64 0, i64 0))
%59 = call i32 (i8*, ...) @printw(i8* getelementptr inbounds ([39 x i8], [39 x i8]* @.str.8, i64 0, i64 0))
%60 = getelementptr inbounds [2 x i8], [2 x i8]* %7, i64 0, i64 0
%61 = call i32 @scanw(i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str.1, i64 0, i64 0), i8* %60)
%62 = getelementptr inbounds [10 x i8], [10 x i8]* %2, i64 0, i64 0
%63 = getelementptr inbounds [2 x i8], [2 x i8]* %7, i64 0, i64 0
%64 = call i64 @strcasecmp(i8* %62, i8* %63)
%65 = icmp ne i64 %64, 0
br i1 %65, label %66, label %73
66: ; preds = %57
%67 = load i32, i32* %11
%68 = add nsw i32 %67, 1
store i32 %68, i32* %11
%69 = getelementptr inbounds [2 x i8], [2 x i8]* %6, i64 0, i64 0
%70 = load i32, i32* %11
%71 = sub nsw i32 3, %70
%72 = call i32 (i8*, ...) @printw(i8* getelementptr inbounds ([38 x i8], [38 x i8]* @.str.5, i64 0, i64 0), i8* %69, i32 %71)
br label %78
73: ; preds = %57
%74 = getelementptr inbounds [2 x i8], [2 x i8]* %6, i64 0, i64 0
%75 = call i32 (i8*, ...) @printw(i8* getelementptr inbounds ([42 x i8], [42 x i8]* @.str.6, i64 0, i64 0), i8* %74)
%76 = load i32, i32* %9
%77 = add nsw i32 %76, 1
store i32 %77, i32* %9
br label %82
78: ; preds = %66
br label %79
79: ; preds = %78
%80 = load i32, i32* %11
%81 = icmp slt i32 %80, 3
br i1 %81, label %57, label %82
82: ; preds = %79, %73
%83 = load i32, i32* %11
%84 = load i32, i32* %8
%85 = add nsw i32 %84, %83
store i32 %85, i32* %8
store i32 0, i32* %11
%86 = call i32 (...) @clear()
br label %87
87: ; preds = %109, %82
%88 = call i32 (i8*, ...) @printw(i8* getelementptr inbounds ([15 x i8], [15 x i8]* @.str.9, i64 0, i64 0))
%89 = call i32 (i8*, ...) @printw(i8* getelementptr inbounds ([35 x i8], [35 x i8]* @.str.10, i64 0, i64 0))
%90 = getelementptr inbounds [2 x i8], [2 x i8]* %7, i64 0, i64 0
%91 = call i32 @scanw(i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str.1, i64 0, i64 0), i8* %90)
%92 = getelementptr inbounds [11 x i8], [11 x i8]* %3, i64 0, i64 0
%93 = getelementptr inbounds [2 x i8], [2 x i8]* %7, i64 0, i64 0
%94 = call i64 @strcasecmp(i8* %92, i8* %93)
%95 = icmp ne i64 %94, 0
br i1 %95, label %96, label %103
96: ; preds = %87
%97 = load i32, i32* %11
%98 = add nsw i32 %97, 1
store i32 %98, i32* %11
%99 = getelementptr inbounds [2 x i8], [2 x i8]* %6, i64 0, i64 0
%100 = load i32, i32* %11
%101 = sub nsw i32 3, %100
%102 = call i32 (i8*, ...) @printw(i8* getelementptr inbounds ([38 x i8], [38 x i8]* @.str.5, i64 0, i64 0), i8* %99, i32 %101)
br label %108
103: ; preds = %87
%104 = getelementptr inbounds [2 x i8], [2 x i8]* %6, i64 0, i64 0
%105 = call i32 (i8*, ...) @printw(i8* getelementptr inbounds ([42 x i8], [42 x i8]* @.str.6, i64 0, i64 0), i8* %104)
%106 = load i32, i32* %9
%107 = add nsw i32 %106, 1
store i32 %107, i32* %9
br label %112
108: ; preds = %96
br label %109
109: ; preds = %108
%110 = load i32, i32* %11
%111 = icmp slt i32 %110, 3
br i1 %111, label %87, label %112
112: ; preds = %109, %103
%113 = load i32, i32* %11
%114 = load i32, i32* %8
%115 = add nsw i32 %114, %113
store i32 %115, i32* %8
store i32 0, i32* %11
%116 = call i32 (...) @clear()
br label %117
117: ; preds = %139, %112
%118 = call i32 (i8*, ...) @printw(i8* getelementptr inbounds ([15 x i8], [15 x i8]* @.str.11, i64 0, i64 0))
%119 = call i32 (i8*, ...) @printw(i8* getelementptr inbounds ([38 x i8], [38 x i8]* @.str.12, i64 0, i64 0))
%120 = getelementptr inbounds [2 x i8], [2 x i8]* %7, i64 0, i64 0
%121 = call i32 @scanw(i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str.1, i64 0, i64 0), i8* %120)
%122 = getelementptr inbounds [10 x i8], [10 x i8]* %4, i64 0, i64 0
%123 = getelementptr inbounds [2 x i8], [2 x i8]* %7, i64 0, i64 0
%124 = call i64 @strcasecmp(i8* %122, i8* %123)
%125 = icmp ne i64 %124, 0
br i1 %125, label %126, label %133
126: ; preds = %117
%127 = load i32, i32* %11
%128 = add nsw i32 %127, 1
store i32 %128, i32* %11
%129 = getelementptr inbounds [2 x i8], [2 x i8]* %6, i64 0, i64 0
%130 = load i32, i32* %11
%131 = sub nsw i32 3, %130
%132 = call i32 (i8*, ...) @printw(i8* getelementptr inbounds ([38 x i8], [38 x i8]* @.str.5, i64 0, i64 0), i8* %129, i32 %131)
br label %138
133: ; preds = %117
%134 = getelementptr inbounds [2 x i8], [2 x i8]* %6, i64 0, i64 0
%135 = call i32 (i8*, ...) @printw(i8* getelementptr inbounds ([42 x i8], [42 x i8]* @.str.6, i64 0, i64 0), i8* %134)
%136 = load i32, i32* %9
%137 = add nsw i32 %136, 1
store i32 %137, i32* %9
br label %142
138: ; preds = %126
br label %139
139: ; preds = %138
%140 = load i32, i32* %11
%141 = icmp slt i32 %140, 3
br i1 %141, label %117, label %142
142: ; preds = %139, %133
%143 = load i32, i32* %11
%144 = load i32, i32* %8
%145 = add nsw i32 %144, %143
store i32 %145, i32* %8
store i32 0, i32* %11
%146 = call i32 (...) @clear()
br label %147
147: ; preds = %169, %142
%148 = call i32 (i8*, ...) @printw(i8* getelementptr inbounds ([15 x i8], [15 x i8]* @.str.13, i64 0, i64 0))
%149 = call i32 (i8*, ...) @printw(i8* getelementptr inbounds ([43 x i8], [43 x i8]* @.str.14, i64 0, i64 0))
%150 = getelementptr inbounds [2 x i8], [2 x i8]* %7, i64 0, i64 0
%151 = call i32 @scanw(i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str.1, i64 0, i64 0), i8* %150)
%152 = getelementptr inbounds [15 x i8], [15 x i8]* %5, i64 0, i64 0
%153 = getelementptr inbounds [2 x i8], [2 x i8]* %7, i64 0, i64 0
%154 = call i64 @strcasecmp(i8* %152, i8* %153)
%155 = icmp ne i64 %154, 0
br i1 %155, label %156, label %163
156: ; preds = %147
%157 = load i32, i32* %11
%158 = add nsw i32 %157, 1
store i32 %158, i32* %11
%159 = getelementptr inbounds [2 x i8], [2 x i8]* %6, i64 0, i64 0
%160 = load i32, i32* %11
%161 = sub nsw i32 3, %160
%162 = call i32 (i8*, ...) @printw(i8* getelementptr inbounds ([38 x i8], [38 x i8]* @.str.5, i64 0, i64 0), i8* %159, i32 %161)
br label %168
163: ; preds = %147
%164 = getelementptr inbounds [2 x i8], [2 x i8]* %6, i64 0, i64 0
%165 = call i32 (i8*, ...) @printw(i8* getelementptr inbounds ([42 x i8], [42 x i8]* @.str.6, i64 0, i64 0), i8* %164)
%166 = load i32, i32* %9
%167 = add nsw i32 %166, 1
store i32 %167, i32* %9
br label %172
168: ; preds = %156
br label %169
169: ; preds = %168
%170 = load i32, i32* %11
%171 = icmp slt i32 %170, 3
br i1 %171, label %147, label %172
172: ; preds = %169, %163
%173 = load i32, i32* %11
%174 = load i32, i32* %8
%175 = add nsw i32 %174, %173
store i32 %175, i32* %8
store i32 0, i32* %11
%176 = call i32 @scrl(i32 20)
%177 = load i32, i32* %9
%178 = load i32, i32* %8
%179 = getelementptr inbounds [2 x i8], [2 x i8]* %6, i64 0, i64 0
%180 = call i32 (i8*, ...) @printw(i8* getelementptr inbounds ([84 x i8], [84 x i8]* @.str.15, i64 0, i64 0), i32 %177, i32 %178, i8* %179)
%181 = call i32 (...) @getch()
%182 = call i32 (...) @endwin()
ret void
}

LLVM IR (-O2):
@__const.main.baja = [9 x i8] c"mexicali\00"
@__const.main.nuevoleon = [10 x i8] c"monterrey\00"
@__const.main.sonora = [11 x i8] c"hermosillo\00"
@__const.main.chihuahua = [10 x i8] c"chihuahua\00"
@__const.main.aguascalientes = [15 x i8] c"aguascalientes\00"
@stdscr = global i32 0
@.str = [66 x i8] c"Bienvenido usuario; para iniciar. Favor de ingresar tu nombre \0A>>\00"
@.str.1 = [3 x i8] c"%s\00"
@.str.2 = [117 x i8] c"\0APerfecto %s, Ahora podemos iniciar. Este programa asiste en la ensenansa de estados usando preguntas interactivas.\0A\00"
@.str.3 = [15 x i8] c"\0A\09Pregunta 1:\0A\00"
@.str.4 = [44 x i8] c"\09Introdusca la capital de: Baja California\0A\00"
@.str.5 = [38 x i8] c"%s, Fallaste!\0AIntentos Restantes: %d\0A\00"
@.str.6 = [42 x i8] c"Felicidades %s, Tu respuesta es correcta\0A\00"
@.str.7 = [15 x i8] c"\0A\09Pregunta 2:\0A\00"
@.str.8 = [39 x i8] c"\09Introdusca la capital de: nuevo leon\0A\00"
@.str.9 = [15 x i8] c"\0A\09Pregunta 3:\0A\00"
@.str.10 = [35 x i8] c"\09Introdusca la capital de: sonora\0A\00"
@.str.11 = [15 x i8] c"\0A\09Pregunta 4:\0A\00"
@.str.12 = [38 x i8] c"\09Introdusca la capital de: chihuahua\0A\00"
@.str.13 = [15 x i8] c"\0A\09Pregunta 5:\0A\00"
@.str.14 = [43 x i8] c"\09Introdusca la capital: de aguascalientes\0A\00"
@.str.15 = [84 x i8] c"\0A\0A\09Puntuacion:\0A\09\09aciertos=%d\0A\09\09errores=%d\0A\0AGracias por participar %s. Vuelva pronto\00"
define void @main() {
%1 = alloca i16
%2 = alloca i16
%3 = bitcast i16* %1 to i8*
store i16 32, i16* %1
%4 = bitcast i16* %2 to i8*
store i16 32, i16* %2
%5 = tail call i32 (...) @initscr()
%6 = load i32, i32* @stdscr
%7 = tail call i32 @box(i32 %6, i8 signext 35, i8 signext 35)
%8 = tail call i32 (i8*, ...) @printw(i8* getelementptr inbounds ([66 x i8], [66 x i8]* @.str, i64 0, i64 0))
%9 = call i32 @scanw(i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str.1, i64 0, i64 0), i8* %3)
%10 = call i32 (i8*, ...) @printw(i8* getelementptr inbounds ([117 x i8], [117 x i8]* @.str.2, i64 0, i64 0), i16* %1)
%11 = call i32 (i8*, ...) @printw(i8* getelementptr inbounds ([15 x i8], [15 x i8]* @.str.3, i64 0, i64 0))
%12 = call i32 (i8*, ...) @printw(i8* getelementptr inbounds ([44 x i8], [44 x i8]* @.str.4, i64 0, i64 0))
%13 = call i32 @scanw(i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str.1, i64 0, i64 0), i8* %4)
%14 = call i64 @strcasecmp(i8* getelementptr inbounds ([9 x i8], [9 x i8]* @__const.main.baja, i64 0, i64 0), i8* %4)
%15 = icmp eq i64 %14, 0
br i1 %15, label %32, label %16
16: ; preds = %0
%17 = call i32 (i8*, ...) @printw(i8* getelementptr inbounds ([38 x i8], [38 x i8]* @.str.5, i64 0, i64 0), i16* %1, i32 2)
%18 = call i32 (i8*, ...) @printw(i8* getelementptr inbounds ([15 x i8], [15 x i8]* @.str.3, i64 0, i64 0))
%19 = call i32 (i8*, ...) @printw(i8* getelementptr inbounds ([44 x i8], [44 x i8]* @.str.4, i64 0, i64 0))
%20 = call i32 @scanw(i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str.1, i64 0, i64 0), i8* %4)
%21 = call i64 @strcasecmp(i8* getelementptr inbounds ([9 x i8], [9 x i8]* @__const.main.baja, i64 0, i64 0), i8* %4)
%22 = icmp eq i64 %21, 0
br i1 %22, label %32, label %23
23: ; preds = %16
%24 = call i32 (i8*, ...) @printw(i8* getelementptr inbounds ([38 x i8], [38 x i8]* @.str.5, i64 0, i64 0), i16* %1, i32 1)
%25 = call i32 (i8*, ...) @printw(i8* getelementptr inbounds ([15 x i8], [15 x i8]* @.str.3, i64 0, i64 0))
%26 = call i32 (i8*, ...) @printw(i8* getelementptr inbounds ([44 x i8], [44 x i8]* @.str.4, i64 0, i64 0))
%27 = call i32 @scanw(i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str.1, i64 0, i64 0), i8* %4)
%28 = call i64 @strcasecmp(i8* getelementptr inbounds ([9 x i8], [9 x i8]* @__const.main.baja, i64 0, i64 0), i8* %4)
%29 = icmp eq i64 %28, 0
br i1 %29, label %32, label %30
30: ; preds = %23
%31 = call i32 (i8*, ...) @printw(i8* getelementptr inbounds ([38 x i8], [38 x i8]* @.str.5, i64 0, i64 0), i16* %1, i32 0)
br label %35
32: ; preds = %23, %16, %0
%33 = phi i32 [ 0, %0 ], [ 1, %16 ], [ 2, %23 ]
%34 = call i32 (i8*, ...) @printw(i8* getelementptr inbounds ([42 x i8], [42 x i8]* @.str.6, i64 0, i64 0), i16* %1)
br label %35
35: ; preds = %30, %32
%36 = phi i32 [ 1, %32 ], [ 0, %30 ]
%37 = phi i32 [ %33, %32 ], [ 3, %30 ]
%38 = call i32 (...) @clear()
%39 = call i32 (i8*, ...) @printw(i8* getelementptr inbounds ([15 x i8], [15 x i8]* @.str.7, i64 0, i64 0))
%40 = call i32 (i8*, ...) @printw(i8* getelementptr inbounds ([39 x i8], [39 x i8]* @.str.8, i64 0, i64 0))
%41 = call i32 @scanw(i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str.1, i64 0, i64 0), i8* %4)
%42 = call i64 @strcasecmp(i8* getelementptr inbounds ([10 x i8], [10 x i8]* @__const.main.nuevoleon, i64 0, i64 0), i8* %4)
%43 = icmp eq i64 %42, 0
br i1 %43, label %60, label %44
44: ; preds = %35
%45 = call i32 (i8*, ...) @printw(i8* getelementptr inbounds ([38 x i8], [38 x i8]* @.str.5, i64 0, i64 0), i16* %1, i32 2)
%46 = call i32 (i8*, ...) @printw(i8* getelementptr inbounds ([15 x i8], [15 x i8]* @.str.7, i64 0, i64 0))
%47 = call i32 (i8*, ...) @printw(i8* getelementptr inbounds ([39 x i8], [39 x i8]* @.str.8, i64 0, i64 0))
%48 = call i32 @scanw(i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str.1, i64 0, i64 0), i8* %4)
%49 = call i64 @strcasecmp(i8* getelementptr inbounds ([10 x i8], [10 x i8]* @__const.main.nuevoleon, i64 0, i64 0), i8* %4)
%50 = icmp eq i64 %49, 0
br i1 %50, label %60, label %51
51: ; preds = %44
%52 = call i32 (i8*, ...) @printw(i8* getelementptr inbounds ([38 x i8], [38 x i8]* @.str.5, i64 0, i64 0), i16* %1, i32 1)
%53 = call i32 (i8*, ...) @printw(i8* getelementptr inbounds ([15 x i8], [15 x i8]* @.str.7, i64 0, i64 0))
%54 = call i32 (i8*, ...) @printw(i8* getelementptr inbounds ([39 x i8], [39 x i8]* @.str.8, i64 0, i64 0))
%55 = call i32 @scanw(i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str.1, i64 0, i64 0), i8* %4)
%56 = call i64 @strcasecmp(i8* getelementptr inbounds ([10 x i8], [10 x i8]* @__const.main.nuevoleon, i64 0, i64 0), i8* %4)
%57 = icmp eq i64 %56, 0
br i1 %57, label %60, label %58
58: ; preds = %51
%59 = call i32 (i8*, ...) @printw(i8* getelementptr inbounds ([38 x i8], [38 x i8]* @.str.5, i64 0, i64 0), i16* %1, i32 0)
br label %64
60: ; preds = %51, %44, %35
%61 = phi i32 [ 0, %35 ], [ 1, %44 ], [ 2, %51 ]
%62 = call i32 (i8*, ...) @printw(i8* getelementptr inbounds ([42 x i8], [42 x i8]* @.str.6, i64 0, i64 0), i16* %1)
%63 = add nuw nsw i32 %36, 1
br label %64
64: ; preds = %58, %60
%65 = phi i32 [ %63, %60 ], [ %36, %58 ]
%66 = phi i32 [ %61, %60 ], [ 3, %58 ]
%67 = call i32 (...) @clear()
%68 = call i32 (i8*, ...) @printw(i8* getelementptr inbounds ([15 x i8], [15 x i8]* @.str.9, i64 0, i64 0))
%69 = call i32 (i8*, ...) @printw(i8* getelementptr inbounds ([35 x i8], [35 x i8]* @.str.10, i64 0, i64 0))
%70 = call i32 @scanw(i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str.1, i64 0, i64 0), i8* %4)
%71 = call i64 @strcasecmp(i8* getelementptr inbounds ([11 x i8], [11 x i8]* @__const.main.sonora, i64 0, i64 0), i8* %4)
%72 = icmp eq i64 %71, 0
br i1 %72, label %89, label %73
73: ; preds = %64
%74 = call i32 (i8*, ...) @printw(i8* getelementptr inbounds ([38 x i8], [38 x i8]* @.str.5, i64 0, i64 0), i16* %1, i32 2)
%75 = call i32 (i8*, ...) @printw(i8* getelementptr inbounds ([15 x i8], [15 x i8]* @.str.9, i64 0, i64 0))
%76 = call i32 (i8*, ...) @printw(i8* getelementptr inbounds ([35 x i8], [35 x i8]* @.str.10, i64 0, i64 0))
%77 = call i32 @scanw(i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str.1, i64 0, i64 0), i8* %4)
%78 = call i64 @strcasecmp(i8* getelementptr inbounds ([11 x i8], [11 x i8]* @__const.main.sonora, i64 0, i64 0), i8* %4)
%79 = icmp eq i64 %78, 0
br i1 %79, label %89, label %80
80: ; preds = %73
%81 = call i32 (i8*, ...) @printw(i8* getelementptr inbounds ([38 x i8], [38 x i8]* @.str.5, i64 0, i64 0), i16* %1, i32 1)
%82 = call i32 (i8*, ...) @printw(i8* getelementptr inbounds ([15 x i8], [15 x i8]* @.str.9, i64 0, i64 0))
%83 = call i32 (i8*, ...) @printw(i8* getelementptr inbounds ([35 x i8], [35 x i8]* @.str.10, i64 0, i64 0))
%84 = call i32 @scanw(i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str.1, i64 0, i64 0), i8* %4)
%85 = call i64 @strcasecmp(i8* getelementptr inbounds ([11 x i8], [11 x i8]* @__const.main.sonora, i64 0, i64 0), i8* %4)
%86 = icmp eq i64 %85, 0
br i1 %86, label %89, label %87
87: ; preds = %80
%88 = call i32 (i8*, ...) @printw(i8* getelementptr inbounds ([38 x i8], [38 x i8]* @.str.5, i64 0, i64 0), i16* %1, i32 0)
br label %93
89: ; preds = %80, %73, %64
%90 = phi i32 [ 0, %64 ], [ 1, %73 ], [ 2, %80 ]
%91 = call i32 (i8*, ...) @printw(i8* getelementptr inbounds ([42 x i8], [42 x i8]* @.str.6, i64 0, i64 0), i16* %1)
%92 = add nuw nsw i32 %65, 1
br label %93
93: ; preds = %87, %89
%94 = phi i32 [ %92, %89 ], [ %65, %87 ]
%95 = phi i32 [ %90, %89 ], [ 3, %87 ]
%96 = call i32 (...) @clear()
%97 = call i32 (i8*, ...) @printw(i8* getelementptr inbounds ([15 x i8], [15 x i8]* @.str.11, i64 0, i64 0))
%98 = call i32 (i8*, ...) @printw(i8* getelementptr inbounds ([38 x i8], [38 x i8]* @.str.12, i64 0, i64 0))
%99 = call i32 @scanw(i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str.1, i64 0, i64 0), i8* %4)
%100 = call i64 @strcasecmp(i8* getelementptr inbounds ([10 x i8], [10 x i8]* @__const.main.chihuahua, i64 0, i64 0), i8* %4)
%101 = icmp eq i64 %100, 0
br i1 %101, label %118, label %102
102: ; preds = %93
%103 = call i32 (i8*, ...) @printw(i8* getelementptr inbounds ([38 x i8], [38 x i8]* @.str.5, i64 0, i64 0), i16* %1, i32 2)
%104 = call i32 (i8*, ...) @printw(i8* getelementptr inbounds ([15 x i8], [15 x i8]* @.str.11, i64 0, i64 0))
%105 = call i32 (i8*, ...) @printw(i8* getelementptr inbounds ([38 x i8], [38 x i8]* @.str.12, i64 0, i64 0))
%106 = call i32 @scanw(i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str.1, i64 0, i64 0), i8* %4)
%107 = call i64 @strcasecmp(i8* getelementptr inbounds ([10 x i8], [10 x i8]* @__const.main.chihuahua, i64 0, i64 0), i8* %4)
%108 = icmp eq i64 %107, 0
br i1 %108, label %118, label %109
109: ; preds = %102
%110 = call i32 (i8*, ...) @printw(i8* getelementptr inbounds ([38 x i8], [38 x i8]* @.str.5, i64 0, i64 0), i16* %1, i32 1)
%111 = call i32 (i8*, ...) @printw(i8* getelementptr inbounds ([15 x i8], [15 x i8]* @.str.11, i64 0, i64 0))
%112 = call i32 (i8*, ...) @printw(i8* getelementptr inbounds ([38 x i8], [38 x i8]* @.str.12, i64 0, i64 0))
%113 = call i32 @scanw(i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str.1, i64 0, i64 0), i8* %4)
%114 = call i64 @strcasecmp(i8* getelementptr inbounds ([10 x i8], [10 x i8]* @__const.main.chihuahua, i64 0, i64 0), i8* %4)
%115 = icmp eq i64 %114, 0
br i1 %115, label %118, label %116
116: ; preds = %109
%117 = call i32 (i8*, ...) @printw(i8* getelementptr inbounds ([38 x i8], [38 x i8]* @.str.5, i64 0, i64 0), i16* %1, i32 0)
br label %122
118: ; preds = %109, %102, %93
%119 = phi i32 [ 0, %93 ], [ 1, %102 ], [ 2, %109 ]
%120 = call i32 (i8*, ...) @printw(i8* getelementptr inbounds ([42 x i8], [42 x i8]* @.str.6, i64 0, i64 0), i16* %1)
%121 = add nuw nsw i32 %94, 1
br label %122
122: ; preds = %116, %118
%123 = phi i32 [ %121, %118 ], [ %94, %116 ]
%124 = phi i32 [ %119, %118 ], [ 3, %116 ]
%125 = call i32 (...) @clear()
%126 = call i32 (i8*, ...) @printw(i8* getelementptr inbounds ([15 x i8], [15 x i8]* @.str.13, i64 0, i64 0))
%127 = call i32 (i8*, ...) @printw(i8* getelementptr inbounds ([43 x i8], [43 x i8]* @.str.14, i64 0, i64 0))
%128 = call i32 @scanw(i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str.1, i64 0, i64 0), i8* %4)
%129 = call i64 @strcasecmp(i8* getelementptr inbounds ([15 x i8], [15 x i8]* @__const.main.aguascalientes, i64 0, i64 0), i8* %4)
%130 = icmp eq i64 %129, 0
br i1 %130, label %147, label %131
131: ; preds = %122
%132 = call i32 (i8*, ...) @printw(i8* getelementptr inbounds ([38 x i8], [38 x i8]* @.str.5, i64 0, i64 0), i16* %1, i32 2)
%133 = call i32 (i8*, ...) @printw(i8* getelementptr inbounds ([15 x i8], [15 x i8]* @.str.13, i64 0, i64 0))
%134 = call i32 (i8*, ...) @printw(i8* getelementptr inbounds ([43 x i8], [43 x i8]* @.str.14, i64 0, i64 0))
%135 = call i32 @scanw(i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str.1, i64 0, i64 0), i8* %4)
%136 = call i64 @strcasecmp(i8* getelementptr inbounds ([15 x i8], [15 x i8]* @__const.main.aguascalientes, i64 0, i64 0), i8* %4)
%137 = icmp eq i64 %136, 0
br i1 %137, label %147, label %138
138: ; preds = %131
%139 = call i32 (i8*, ...) @printw(i8* getelementptr inbounds ([38 x i8], [38 x i8]* @.str.5, i64 0, i64 0), i16* %1, i32 1)
%140 = call i32 (i8*, ...) @printw(i8* getelementptr inbounds ([15 x i8], [15 x i8]* @.str.13, i64 0, i64 0))
%141 = call i32 (i8*, ...) @printw(i8* getelementptr inbounds ([43 x i8], [43 x i8]* @.str.14, i64 0, i64 0))
%142 = call i32 @scanw(i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str.1, i64 0, i64 0), i8* %4)
%143 = call i64 @strcasecmp(i8* getelementptr inbounds ([15 x i8], [15 x i8]* @__const.main.aguascalientes, i64 0, i64 0), i8* %4)
%144 = icmp eq i64 %143, 0
br i1 %144, label %147, label %145
145: ; preds = %138
%146 = call i32 (i8*, ...) @printw(i8* getelementptr inbounds ([38 x i8], [38 x i8]* @.str.5, i64 0, i64 0), i16* %1, i32 0)
br label %151
147: ; preds = %138, %131, %122
%148 = phi i32 [ 0, %122 ], [ 1, %131 ], [ 2, %138 ]
%149 = call i32 (i8*, ...) @printw(i8* getelementptr inbounds ([42 x i8], [42 x i8]* @.str.6, i64 0, i64 0), i16* %1)
%150 = add nuw nsw i32 %123, 1
br label %151
151: ; preds = %145, %147
%152 = phi i32 [ %150, %147 ], [ %123, %145 ]
%153 = phi i32 [ %148, %147 ], [ 3, %145 ]
%154 = add nuw nsw i32 %66, %37
%155 = add nuw nsw i32 %154, %95
%156 = add nuw nsw i32 %155, %124
%157 = add nuw nsw i32 %156, %153
%158 = call i32 @scrl(i32 20)
%159 = call i32 (i8*, ...) @printw(i8* getelementptr inbounds ([84 x i8], [84 x i8]* @.str.15, i64 0, i64 0), i32 %152, i32 %157, i16* %1)
%160 = call i32 (...) @getch()
%161 = call i32 (...) @endwin()
ret void
}