#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*/ endwin();
int /*<<< orphan*/ getch();
int /*<<< orphan*/ getstr(char *);
int /*<<< orphan*/ initscr();
int /*<<< orphan*/ printw(char *, ...);
int /*<<< orphan*/ stdscr;
scalar_t__ strcasecmp(char *, char *);
void main() {
  char carro[10], casa[10], silla[10], meza[10], escuela[10];
  int ce = 0, a = 0, e = 0;
  initscr();
  box(stdscr, '*', '*');
  printw("Favor de introducir el equivalente en ingles de las siguientes "
         "palabras:\n");
  while (1) {
    printw("Palabra #1: Casa\n>>");
    getstr(casa);
    if (strcasecmp(casa, "house") == 0) {
      a++;
      break;
    } else if (ce >= 1) {
      printw("Lo siento intente mas tarde");
      getch();
      break;
    } else {
      printw("intenta de nuevo");
      ce++;
    }
  }
  e += ce;
  ce = 0;
  while (1) {
    printw("Palabra #2: Carro\n>>");
    getstr(carro);
    if (strcasecmp(carro, "car") == 0) {
      a++;
      break;
    } else if (ce >= 1) {
      printw("Lo siento intente mas tarde");
      getch();
      break;
    } else {
      printw("intenta de nuevo");
      ce++;
    }
  }
  e += ce;
  ce = 0;
  while (1) {
    printw("Palabra #3: Silla\n>>");
    getstr(silla);
    if (strcasecmp(silla, "chair") == 0) {
      a++;
      break;
    } else if (ce >= 1) {
      printw("Lo siento intente mas tarde");
      getch();
      break;
    } else {
      printw("intenta de nuevo");
      ce++;
    }
  }
  e += ce;
  ce = 0;
  while (1) {
    printw("Palabra #4 Mesa\n>>");
    getstr(meza);
    if (strcasecmp(meza, "table") == 0) {
      a++;
      break;
    } else if (ce >= 1) {
      printw("Lo siento intente mas tarde");
      getch();
      break;
    } else {
      printw("intenta de nuevo");
      ce++;
    }
  }
  e += ce;
  ce = 0;
  while (1) {
    printw("Palabra #5: Escuela\n>>");
    getstr(escuela);
    if (strcasecmp(escuela, "school") == 0) {
      a++;
      break;
    } else if (ce >= 1) {
      printw("Lo siento intente mas tarde");
      getch();
      break;
    } else {
      printw("intenta de nuevo");
      ce++;
    }
  }
  e += ce;
  printw("La cantidad total fue de:\n\t%d aciertos", a);
  getch();
  endwin();
}


x86 assembly (clang, -O0):
<main>:
push   %rbp
mov    %rsp,%rbp
sub    $0x40,%rsp
movl   $0x0,-0x38(%rbp)
movl   $0x0,-0x3c(%rbp)
movl   $0x0,-0x40(%rbp)
mov    $0x0,%al
call   1040 <initscr@plt>
mov    0x2e4d(%rip),%rax
mov    (%rax),%edi
mov    $0x2a,%edx
mov    %edx,%esi
call   1060 <box@plt>
lea    0xe50(%rip),%rdi
mov    $0x0,%al
call   1070 <printw@plt>
lea    0xe8c(%rip),%rdi
mov    $0x0,%al
call   1070 <printw@plt>
lea    -0x14(%rbp),%rdi
call   1050 <getstr@plt>
lea    -0x14(%rbp),%rdi
lea    0xe85(%rip),%rsi
call   1030 <strcasecmp@plt>
cmp    $0x0,%rax
jne    11f6 <main+0x86>
mov    -0x3c(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0x3c(%rbp)
jmp    123b <main+0xcb>
cmpl   $0x1,-0x38(%rbp)
jl     121a <main+0xaa>
lea    0xe5d(%rip),%rdi
mov    $0x0,%al
call   1070 <printw@plt>
mov    $0x0,%al
call   1080 <getch@plt>
jmp    123b <main+0xcb>
lea    0xe5f(%rip),%rdi
mov    $0x0,%al
call   1070 <printw@plt>
mov    -0x38(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0x38(%rbp)
jmp    1236 <main+0xc6>
jmp    11b7 <main+0x47>
mov    -0x38(%rbp),%eax
add    -0x40(%rbp),%eax
mov    %eax,-0x40(%rbp)
movl   $0x0,-0x38(%rbp)
lea    0xe3f(%rip),%rdi
mov    $0x0,%al
call   1070 <printw@plt>
lea    -0xa(%rbp),%rdi
call   1050 <getstr@plt>
lea    -0xa(%rbp),%rdi
lea    0xe39(%rip),%rsi
call   1030 <strcasecmp@plt>
cmp    $0x0,%rax
jne    128a <main+0x11a>
mov    -0x3c(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0x3c(%rbp)
jmp    12cf <main+0x15f>
cmpl   $0x1,-0x38(%rbp)
jl     12ae <main+0x13e>
lea    0xdc9(%rip),%rdi
mov    $0x0,%al
call   1070 <printw@plt>
mov    $0x0,%al
call   1080 <getch@plt>
jmp    12cf <main+0x15f>
lea    0xdcb(%rip),%rdi
mov    $0x0,%al
call   1070 <printw@plt>
mov    -0x38(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0x38(%rbp)
jmp    12ca <main+0x15a>
jmp    124b <main+0xdb>
mov    -0x38(%rbp),%eax
add    -0x40(%rbp),%eax
mov    %eax,-0x40(%rbp)
movl   $0x0,-0x38(%rbp)
lea    0xdc4(%rip),%rdi
mov    $0x0,%al
call   1070 <printw@plt>
lea    -0x1e(%rbp),%rdi
call   1050 <getstr@plt>
lea    -0x1e(%rbp),%rdi
lea    0xdbe(%rip),%rsi
call   1030 <strcasecmp@plt>
cmp    $0x0,%rax
jne    131e <main+0x1ae>
mov    -0x3c(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0x3c(%rbp)
jmp    1363 <main+0x1f3>
cmpl   $0x1,-0x38(%rbp)
jl     1342 <main+0x1d2>
lea    0xd35(%rip),%rdi
mov    $0x0,%al
call   1070 <printw@plt>
mov    $0x0,%al
call   1080 <getch@plt>
jmp    1363 <main+0x1f3>
lea    0xd37(%rip),%rdi
mov    $0x0,%al
call   1070 <printw@plt>
mov    -0x38(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0x38(%rbp)
jmp    135e <main+0x1ee>
jmp    12df <main+0x16f>
mov    -0x38(%rbp),%eax
add    -0x40(%rbp),%eax
mov    %eax,-0x40(%rbp)
movl   $0x0,-0x38(%rbp)
lea    0xd4b(%rip),%rdi
mov    $0x0,%al
call   1070 <printw@plt>
lea    -0x28(%rbp),%rdi
call   1050 <getstr@plt>
lea    -0x28(%rbp),%rdi
lea    0xd43(%rip),%rsi
call   1030 <strcasecmp@plt>
cmp    $0x0,%rax
jne    13b2 <main+0x242>
mov    -0x3c(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0x3c(%rbp)
jmp    13f7 <main+0x287>
cmpl   $0x1,-0x38(%rbp)
jl     13d6 <main+0x266>
lea    0xca1(%rip),%rdi
mov    $0x0,%al
call   1070 <printw@plt>
mov    $0x0,%al
call   1080 <getch@plt>
jmp    13f7 <main+0x287>
lea    0xca3(%rip),%rdi
mov    $0x0,%al
call   1070 <printw@plt>
mov    -0x38(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0x38(%rbp)
jmp    13f2 <main+0x282>
jmp    1373 <main+0x203>
mov    -0x38(%rbp),%eax
add    -0x40(%rbp),%eax
mov    %eax,-0x40(%rbp)
movl   $0x0,-0x38(%rbp)
lea    0xcd0(%rip),%rdi
mov    $0x0,%al
call   1070 <printw@plt>
lea    -0x32(%rbp),%rdi
call   1050 <getstr@plt>
lea    -0x32(%rbp),%rdi
lea    0xccc(%rip),%rsi
call   1030 <strcasecmp@plt>
cmp    $0x0,%rax
jne    1446 <main+0x2d6>
mov    -0x3c(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0x3c(%rbp)
jmp    148b <main+0x31b>
cmpl   $0x1,-0x38(%rbp)
jl     146a <main+0x2fa>
lea    0xc0d(%rip),%rdi
mov    $0x0,%al
call   1070 <printw@plt>
mov    $0x0,%al
call   1080 <getch@plt>
jmp    148b <main+0x31b>
lea    0xc0f(%rip),%rdi
mov    $0x0,%al
call   1070 <printw@plt>
mov    -0x38(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0x38(%rbp)
jmp    1486 <main+0x316>
jmp    1407 <main+0x297>
mov    -0x38(%rbp),%eax
add    -0x40(%rbp),%eax
mov    %eax,-0x40(%rbp)
mov    -0x3c(%rbp),%esi
lea    0xc5e(%rip),%rdi
mov    $0x0,%al
call   1070 <printw@plt>
mov    $0x0,%al
call   1080 <getch@plt>
mov    $0x0,%al
call   1090 <endwin@plt>
add    $0x40,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<main>:
push   %rbp
push   %rbx
sub    $0x38,%rsp
xor    %eax,%eax
call   1040 <initscr@plt>
mov    0x2e64(%rip),%rax
mov    (%rax),%edi
mov    $0x2a,%esi
mov    $0x2a,%edx
call   1060 <box@plt>
lea    0xe64(%rip),%rdi
xor    %eax,%eax
call   1070 <printw@plt>
lea    0xea0(%rip),%rdi
xor    %eax,%eax
call   1070 <printw@plt>
lea    0x24(%rsp),%rbx
mov    %rbx,%rdi
call   1050 <getstr@plt>
lea    0xe99(%rip),%rsi
mov    %rbx,%rdi
call   1030 <strcasecmp@plt>
mov    $0x1,%ebp
test   %rax,%rax
je     122b <main+0xbb>
lea    0xea2(%rip),%rdi
xor    %eax,%eax
call   1070 <printw@plt>
lea    0xe5e(%rip),%rdi
xor    %eax,%eax
call   1070 <printw@plt>
lea    0x24(%rsp),%rbx
mov    %rbx,%rdi
call   1050 <getstr@plt>
lea    0xe57(%rip),%rsi
mov    %rbx,%rdi
call   1030 <strcasecmp@plt>
test   %rax,%rax
je     122b <main+0xbb>
lea    0xe49(%rip),%rdi
xor    %eax,%eax
call   1070 <printw@plt>
xor    %eax,%eax
call   1080 <getch@plt>
xor    %ebp,%ebp
lea    0xe5f(%rip),%rdi
xor    %eax,%eax
call   1070 <printw@plt>
lea    0x2e(%rsp),%rbx
mov    %rbx,%rdi
call   1050 <getstr@plt>
lea    0xe59(%rip),%rsi
mov    %rbx,%rdi
call   1030 <strcasecmp@plt>
test   %rax,%rax
je     12ae <main+0x13e>
lea    0xe1f(%rip),%rdi
xor    %eax,%eax
call   1070 <printw@plt>
lea    0xe22(%rip),%rdi
xor    %eax,%eax
call   1070 <printw@plt>
lea    0x2e(%rsp),%rbx
mov    %rbx,%rdi
call   1050 <getstr@plt>
lea    0xe1c(%rip),%rsi
mov    %rbx,%rdi
call   1030 <strcasecmp@plt>
test   %rax,%rax
je     12ae <main+0x13e>
lea    0xdc6(%rip),%rdi
xor    %eax,%eax
call   1070 <printw@plt>
xor    %eax,%eax
call   1080 <getch@plt>
jmp    12b1 <main+0x141>
add    $0x1,%ebp
lea    0xdf2(%rip),%rdi
xor    %eax,%eax
call   1070 <printw@plt>
lea    0x1a(%rsp),%rbx
mov    %rbx,%rdi
call   1050 <getstr@plt>
lea    0xdec(%rip),%rsi
mov    %rbx,%rdi
call   1030 <strcasecmp@plt>
test   %rax,%rax
je     1334 <main+0x1c4>
lea    0xd99(%rip),%rdi
xor    %eax,%eax
call   1070 <printw@plt>
lea    0xdb5(%rip),%rdi
xor    %eax,%eax
call   1070 <printw@plt>
lea    0x1a(%rsp),%rbx
mov    %rbx,%rdi
call   1050 <getstr@plt>
lea    0xdaf(%rip),%rsi
mov    %rbx,%rdi
call   1030 <strcasecmp@plt>
test   %rax,%rax
je     1334 <main+0x1c4>
lea    0xd40(%rip),%rdi
xor    %eax,%eax
call   1070 <printw@plt>
xor    %eax,%eax
call   1080 <getch@plt>
jmp    1337 <main+0x1c7>
add    $0x1,%ebp
lea    0xd87(%rip),%rdi
xor    %eax,%eax
call   1070 <printw@plt>
lea    0x10(%rsp),%rbx
mov    %rbx,%rdi
call   1050 <getstr@plt>
lea    0xd7f(%rip),%rsi
mov    %rbx,%rdi
call   1030 <strcasecmp@plt>
test   %rax,%rax
je     13ba <main+0x24a>
lea    0xd13(%rip),%rdi
xor    %eax,%eax
call   1070 <printw@plt>
lea    0xd4a(%rip),%rdi
xor    %eax,%eax
call   1070 <printw@plt>
lea    0x10(%rsp),%rbx
mov    %rbx,%rdi
call   1050 <getstr@plt>
lea    0xd42(%rip),%rsi
mov    %rbx,%rdi
call   1030 <strcasecmp@plt>
test   %rax,%rax
je     13ba <main+0x24a>
lea    0xcba(%rip),%rdi
xor    %eax,%eax
call   1070 <printw@plt>
xor    %eax,%eax
call   1080 <getch@plt>
jmp    13bd <main+0x24d>
add    $0x1,%ebp
lea    0xd1a(%rip),%rdi
xor    %eax,%eax
call   1070 <printw@plt>
lea    0x6(%rsp),%rbx
mov    %rbx,%rdi
call   1050 <getstr@plt>
lea    0xd16(%rip),%rsi
mov    %rbx,%rdi
call   1030 <strcasecmp@plt>
test   %rax,%rax
je     1440 <main+0x2d0>
lea    0xc8d(%rip),%rdi
xor    %eax,%eax
call   1070 <printw@plt>
lea    0xcdd(%rip),%rdi
xor    %eax,%eax
call   1070 <printw@plt>
lea    0x6(%rsp),%rbx
mov    %rbx,%rdi
call   1050 <getstr@plt>
lea    0xcd9(%rip),%rsi
mov    %rbx,%rdi
call   1030 <strcasecmp@plt>
test   %rax,%rax
je     1440 <main+0x2d0>
lea    0xc34(%rip),%rdi
xor    %eax,%eax
call   1070 <printw@plt>
xor    %eax,%eax
call   1080 <getch@plt>
jmp    1443 <main+0x2d3>
add    $0x1,%ebp
lea    0xcb2(%rip),%rdi
mov    %ebp,%esi
xor    %eax,%eax
call   1070 <printw@plt>
xor    %eax,%eax
call   1080 <getch@plt>
xor    %eax,%eax
call   1090 <endwin@plt>
add    $0x38,%rsp
pop    %rbx
pop    %rbp
ret

LLVM IR (-O0):
@stdscr = global i32 0
@.str = [74 x i8] c"Favor de introducir el equivalente en ingles de las siguientes palabras:\0A\00"
@.str.1 = [20 x i8] c"Palabra: Casa\0A>>\00"
@.str.2 = [6 x i8] c"house\00"
@.str.3 = [28 x i8] c"Lo siento intente mas tarde\00"
@.str.4 = [17 x i8] c"intenta de nuevo\00"
@.str.5 = [21 x i8] c"Palabra: Carro\0A>>\00"
@.str.6 = [4 x i8] c"car\00"
@.str.7 = [21 x i8] c"Palabra: Silla\0A>>\00"
@.str.8 = [6 x i8] c"chair\00"
@.str.9 = [19 x i8] c"Palabra Mesa\0A>>\00"
@.str.10 = [6 x i8] c"table\00"
@.str.11 = [23 x i8] c"Palabra: Escuela\0A>>\00"
@.str.12 = [7 x i8] c"school\00"
@.str.13 = [39 x i8] c"La cantidad total fue de:\0A\09%d aciertos\00"
define void @main() {
%1 = alloca [10 x i8]
%2 = alloca [10 x i8]
%3 = alloca [10 x i8]
%4 = alloca [10 x i8]
%5 = alloca [10 x i8]
%6 = alloca i32
%7 = alloca i32
%8 = alloca i32
store i32 0, i32* %6
store i32 0, i32* %7
store i32 0, i32* %8
%9 = call i32 (...) @initscr()
%10 = load i32, i32* @stdscr
%11 = call i32 @box(i32 %10, i8 signext 42, i8 signext 42)
%12 = call i32 (i8*, ...) @printw(i8* getelementptr inbounds ([74 x i8], [74 x i8]* @.str, i64 0, i64 0))
br label %13
13: ; preds = %0, %34
%14 = call i32 (i8*, ...) @printw(i8* getelementptr inbounds ([20 x i8], [20 x i8]* @.str.1, i64 0, i64 0))
%15 = getelementptr inbounds [10 x i8], [10 x i8]* %2, i64 0, i64 0
%16 = call i32 @getstr(i8* %15)
%17 = getelementptr inbounds [10 x i8], [10 x i8]* %2, i64 0, i64 0
%18 = call i64 @strcasecmp(i8* %17, i8* getelementptr inbounds ([6 x i8], [6 x i8]* @.str.2, i64 0, i64 0))
%19 = icmp eq i64 %18, 0
br i1 %19, label %20, label %23
20: ; preds = %13
%21 = load i32, i32* %7
%22 = add nsw i32 %21, 1
store i32 %22, i32* %7
br label %35
23: ; preds = %13
%24 = load i32, i32* %6
%25 = icmp sge i32 %24, 1
br i1 %25, label %26, label %29
26: ; preds = %23
%27 = call i32 (i8*, ...) @printw(i8* getelementptr inbounds ([28 x i8], [28 x i8]* @.str.3, i64 0, i64 0))
%28 = call i32 (...) @getch()
br label %35
29: ; preds = %23
%30 = call i32 (i8*, ...) @printw(i8* getelementptr inbounds ([17 x i8], [17 x i8]* @.str.4, i64 0, i64 0))
%31 = load i32, i32* %6
%32 = add nsw i32 %31, 1
store i32 %32, i32* %6
br label %33
33: ; preds = %29
br label %34
34: ; preds = %33
br label %13
35: ; preds = %26, %20
%36 = load i32, i32* %6
%37 = load i32, i32* %8
%38 = add nsw i32 %37, %36
store i32 %38, i32* %8
store i32 0, i32* %6
br label %39
39: ; preds = %35, %60
%40 = call i32 (i8*, ...) @printw(i8* getelementptr inbounds ([21 x i8], [21 x i8]* @.str.5, i64 0, i64 0))
%41 = getelementptr inbounds [10 x i8], [10 x i8]* %1, i64 0, i64 0
%42 = call i32 @getstr(i8* %41)
%43 = getelementptr inbounds [10 x i8], [10 x i8]* %1, i64 0, i64 0
%44 = call i64 @strcasecmp(i8* %43, i8* getelementptr inbounds ([4 x i8], [4 x i8]* @.str.6, i64 0, i64 0))
%45 = icmp eq i64 %44, 0
br i1 %45, label %46, label %49
46: ; preds = %39
%47 = load i32, i32* %7
%48 = add nsw i32 %47, 1
store i32 %48, i32* %7
br label %61
49: ; preds = %39
%50 = load i32, i32* %6
%51 = icmp sge i32 %50, 1
br i1 %51, label %52, label %55
52: ; preds = %49
%53 = call i32 (i8*, ...) @printw(i8* getelementptr inbounds ([28 x i8], [28 x i8]* @.str.3, i64 0, i64 0))
%54 = call i32 (...) @getch()
br label %61
55: ; preds = %49
%56 = call i32 (i8*, ...) @printw(i8* getelementptr inbounds ([17 x i8], [17 x i8]* @.str.4, i64 0, i64 0))
%57 = load i32, i32* %6
%58 = add nsw i32 %57, 1
store i32 %58, i32* %6
br label %59
59: ; preds = %55
br label %60
60: ; preds = %59
br label %39
61: ; preds = %52, %46
%62 = load i32, i32* %6
%63 = load i32, i32* %8
%64 = add nsw i32 %63, %62
store i32 %64, i32* %8
store i32 0, i32* %6
br label %65
65: ; preds = %61, %86
%66 = call i32 (i8*, ...) @printw(i8* getelementptr inbounds ([21 x i8], [21 x i8]* @.str.7, i64 0, i64 0))
%67 = getelementptr inbounds [10 x i8], [10 x i8]* %3, i64 0, i64 0
%68 = call i32 @getstr(i8* %67)
%69 = getelementptr inbounds [10 x i8], [10 x i8]* %3, i64 0, i64 0
%70 = call i64 @strcasecmp(i8* %69, i8* getelementptr inbounds ([6 x i8], [6 x i8]* @.str.8, i64 0, i64 0))
%71 = icmp eq i64 %70, 0
br i1 %71, label %72, label %75
72: ; preds = %65
%73 = load i32, i32* %7
%74 = add nsw i32 %73, 1
store i32 %74, i32* %7
br label %87
75: ; preds = %65
%76 = load i32, i32* %6
%77 = icmp sge i32 %76, 1
br i1 %77, label %78, label %81
78: ; preds = %75
%79 = call i32 (i8*, ...) @printw(i8* getelementptr inbounds ([28 x i8], [28 x i8]* @.str.3, i64 0, i64 0))
%80 = call i32 (...) @getch()
br label %87
81: ; preds = %75
%82 = call i32 (i8*, ...) @printw(i8* getelementptr inbounds ([17 x i8], [17 x i8]* @.str.4, i64 0, i64 0))
%83 = load i32, i32* %6
%84 = add nsw i32 %83, 1
store i32 %84, i32* %6
br label %85
85: ; preds = %81
br label %86
86: ; preds = %85
br label %65
87: ; preds = %78, %72
%88 = load i32, i32* %6
%89 = load i32, i32* %8
%90 = add nsw i32 %89, %88
store i32 %90, i32* %8
store i32 0, i32* %6
br label %91
91: ; preds = %87, %112
%92 = call i32 (i8*, ...) @printw(i8* getelementptr inbounds ([19 x i8], [19 x i8]* @.str.9, i64 0, i64 0))
%93 = getelementptr inbounds [10 x i8], [10 x i8]* %4, i64 0, i64 0
%94 = call i32 @getstr(i8* %93)
%95 = getelementptr inbounds [10 x i8], [10 x i8]* %4, i64 0, i64 0
%96 = call i64 @strcasecmp(i8* %95, i8* getelementptr inbounds ([6 x i8], [6 x i8]* @.str.10, i64 0, i64 0))
%97 = icmp eq i64 %96, 0
br i1 %97, label %98, label %101
98: ; preds = %91
%99 = load i32, i32* %7
%100 = add nsw i32 %99, 1
store i32 %100, i32* %7
br label %113
101: ; preds = %91
%102 = load i32, i32* %6
%103 = icmp sge i32 %102, 1
br i1 %103, label %104, label %107
104: ; preds = %101
%105 = call i32 (i8*, ...) @printw(i8* getelementptr inbounds ([28 x i8], [28 x i8]* @.str.3, i64 0, i64 0))
%106 = call i32 (...) @getch()
br label %113
107: ; preds = %101
%108 = call i32 (i8*, ...) @printw(i8* getelementptr inbounds ([17 x i8], [17 x i8]* @.str.4, i64 0, i64 0))
%109 = load i32, i32* %6
%110 = add nsw i32 %109, 1
store i32 %110, i32* %6
br label %111
111: ; preds = %107
br label %112
112: ; preds = %111
br label %91
113: ; preds = %104, %98
%114 = load i32, i32* %6
%115 = load i32, i32* %8
%116 = add nsw i32 %115, %114
store i32 %116, i32* %8
store i32 0, i32* %6
br label %117
117: ; preds = %113, %138
%118 = call i32 (i8*, ...) @printw(i8* getelementptr inbounds ([23 x i8], [23 x i8]* @.str.11, i64 0, i64 0))
%119 = getelementptr inbounds [10 x i8], [10 x i8]* %5, i64 0, i64 0
%120 = call i32 @getstr(i8* %119)
%121 = getelementptr inbounds [10 x i8], [10 x i8]* %5, i64 0, i64 0
%122 = call i64 @strcasecmp(i8* %121, i8* getelementptr inbounds ([7 x i8], [7 x i8]* @.str.12, i64 0, i64 0))
%123 = icmp eq i64 %122, 0
br i1 %123, label %124, label %127
124: ; preds = %117
%125 = load i32, i32* %7
%126 = add nsw i32 %125, 1
store i32 %126, i32* %7
br label %139
127: ; preds = %117
%128 = load i32, i32* %6
%129 = icmp sge i32 %128, 1
br i1 %129, label %130, label %133
130: ; preds = %127
%131 = call i32 (i8*, ...) @printw(i8* getelementptr inbounds ([28 x i8], [28 x i8]* @.str.3, i64 0, i64 0))
%132 = call i32 (...) @getch()
br label %139
133: ; preds = %127
%134 = call i32 (i8*, ...) @printw(i8* getelementptr inbounds ([17 x i8], [17 x i8]* @.str.4, i64 0, i64 0))
%135 = load i32, i32* %6
%136 = add nsw i32 %135, 1
store i32 %136, i32* %6
br label %137
137: ; preds = %133
br label %138
138: ; preds = %137
br label %117
139: ; preds = %130, %124
%140 = load i32, i32* %6
%141 = load i32, i32* %8
%142 = add nsw i32 %141, %140
store i32 %142, i32* %8
%143 = load i32, i32* %7
%144 = call i32 (i8*, ...) @printw(i8* getelementptr inbounds ([39 x i8], [39 x i8]* @.str.13, i64 0, i64 0), i32 %143)
%145 = call i32 (...) @getch()
%146 = call i32 (...) @endwin()
ret void
}

LLVM IR (-O2):
@stdscr = global i32 0
@.str = [74 x i8] c"Favor de introducir el equivalente en ingles de las siguientes palabras:\0A\00"
@.str.1 = [20 x i8] c"Palabra: Casa\0A>>\00"
@.str.2 = [6 x i8] c"house\00"
@.str.3 = [28 x i8] c"Lo siento intente mas tarde\00"
@.str.4 = [17 x i8] c"intenta de nuevo\00"
@.str.5 = [21 x i8] c"Palabra: Carro\0A>>\00"
@.str.6 = [4 x i8] c"car\00"
@.str.7 = [21 x i8] c"Palabra: Silla\0A>>\00"
@.str.8 = [6 x i8] c"chair\00"
@.str.9 = [19 x i8] c"Palabra Mesa\0A>>\00"
@.str.10 = [6 x i8] c"table\00"
@.str.11 = [23 x i8] c"Palabra: Escuela\0A>>\00"
@.str.12 = [7 x i8] c"school\00"
@.str.13 = [39 x i8] c"La cantidad total fue de:\0A\09%d aciertos\00"
define void @main() {
%1 = alloca [10 x i8]
%2 = alloca [10 x i8]
%3 = alloca [10 x i8]
%4 = alloca [10 x i8]
%5 = alloca [10 x i8]
%6 = getelementptr inbounds [10 x i8], [10 x i8]* %1, i64 0, i64 0
%7 = getelementptr inbounds [10 x i8], [10 x i8]* %2, i64 0, i64 0
%8 = getelementptr inbounds [10 x i8], [10 x i8]* %3, i64 0, i64 0
%9 = getelementptr inbounds [10 x i8], [10 x i8]* %4, i64 0, i64 0
%10 = getelementptr inbounds [10 x i8], [10 x i8]* %5, i64 0, i64 0
%11 = tail call i32 (...) @initscr()
%12 = load i32, i32* @stdscr
%13 = tail call i32 @box(i32 %12, i8 signext 42, i8 signext 42)
%14 = tail call i32 (i8*, ...) @printw(i8* getelementptr inbounds ([74 x i8], [74 x i8]* @.str, i64 0, i64 0))
%15 = call i32 (i8*, ...) @printw(i8* getelementptr inbounds ([20 x i8], [20 x i8]* @.str.1, i64 0, i64 0))
%16 = call i32 @getstr(i8* %7)
%17 = call i64 @strcasecmp(i8* %7, i8* getelementptr inbounds ([6 x i8], [6 x i8]* @.str.2, i64 0, i64 0))
%18 = icmp eq i64 %17, 0
br i1 %18, label %28, label %22
19: ; preds = %22
%20 = call i32 (i8*, ...) @printw(i8* getelementptr inbounds ([28 x i8], [28 x i8]* @.str.3, i64 0, i64 0))
%21 = call i32 (...) @getch()
br label %28
22: ; preds = %0
%23 = call i32 (i8*, ...) @printw(i8* getelementptr inbounds ([17 x i8], [17 x i8]* @.str.4, i64 0, i64 0))
%24 = call i32 (i8*, ...) @printw(i8* getelementptr inbounds ([20 x i8], [20 x i8]* @.str.1, i64 0, i64 0))
%25 = call i32 @getstr(i8* %7)
%26 = call i64 @strcasecmp(i8* %7, i8* getelementptr inbounds ([6 x i8], [6 x i8]* @.str.2, i64 0, i64 0))
%27 = icmp eq i64 %26, 0
br i1 %27, label %28, label %19
28: ; preds = %0, %22, %19
%29 = phi i32 [ 0, %19 ], [ 1, %22 ], [ 1, %0 ]
%30 = call i32 (i8*, ...) @printw(i8* getelementptr inbounds ([21 x i8], [21 x i8]* @.str.5, i64 0, i64 0))
%31 = call i32 @getstr(i8* %6)
%32 = call i64 @strcasecmp(i8* %6, i8* getelementptr inbounds ([4 x i8], [4 x i8]* @.str.6, i64 0, i64 0))
%33 = icmp eq i64 %32, 0
br i1 %33, label %34, label %39
34: ; preds = %39, %28
%35 = add nuw nsw i32 %29, 1
br label %45
36: ; preds = %39
%37 = call i32 (i8*, ...) @printw(i8* getelementptr inbounds ([28 x i8], [28 x i8]* @.str.3, i64 0, i64 0))
%38 = call i32 (...) @getch()
br label %45
39: ; preds = %28
%40 = call i32 (i8*, ...) @printw(i8* getelementptr inbounds ([17 x i8], [17 x i8]* @.str.4, i64 0, i64 0))
%41 = call i32 (i8*, ...) @printw(i8* getelementptr inbounds ([21 x i8], [21 x i8]* @.str.5, i64 0, i64 0))
%42 = call i32 @getstr(i8* %6)
%43 = call i64 @strcasecmp(i8* %6, i8* getelementptr inbounds ([4 x i8], [4 x i8]* @.str.6, i64 0, i64 0))
%44 = icmp eq i64 %43, 0
br i1 %44, label %34, label %36
45: ; preds = %36, %34
%46 = phi i32 [ %35, %34 ], [ %29, %36 ]
%47 = call i32 (i8*, ...) @printw(i8* getelementptr inbounds ([21 x i8], [21 x i8]* @.str.7, i64 0, i64 0))
%48 = call i32 @getstr(i8* %8)
%49 = call i64 @strcasecmp(i8* %8, i8* getelementptr inbounds ([6 x i8], [6 x i8]* @.str.8, i64 0, i64 0))
%50 = icmp eq i64 %49, 0
br i1 %50, label %51, label %56
51: ; preds = %56, %45
%52 = add nuw nsw i32 %46, 1
br label %62
53: ; preds = %56
%54 = call i32 (i8*, ...) @printw(i8* getelementptr inbounds ([28 x i8], [28 x i8]* @.str.3, i64 0, i64 0))
%55 = call i32 (...) @getch()
br label %62
56: ; preds = %45
%57 = call i32 (i8*, ...) @printw(i8* getelementptr inbounds ([17 x i8], [17 x i8]* @.str.4, i64 0, i64 0))
%58 = call i32 (i8*, ...) @printw(i8* getelementptr inbounds ([21 x i8], [21 x i8]* @.str.7, i64 0, i64 0))
%59 = call i32 @getstr(i8* %8)
%60 = call i64 @strcasecmp(i8* %8, i8* getelementptr inbounds ([6 x i8], [6 x i8]* @.str.8, i64 0, i64 0))
%61 = icmp eq i64 %60, 0
br i1 %61, label %51, label %53
62: ; preds = %53, %51
%63 = phi i32 [ %52, %51 ], [ %46, %53 ]
%64 = call i32 (i8*, ...) @printw(i8* getelementptr inbounds ([19 x i8], [19 x i8]* @.str.9, i64 0, i64 0))
%65 = call i32 @getstr(i8* %9)
%66 = call i64 @strcasecmp(i8* %9, i8* getelementptr inbounds ([6 x i8], [6 x i8]* @.str.10, i64 0, i64 0))
%67 = icmp eq i64 %66, 0
br i1 %67, label %68, label %73
68: ; preds = %73, %62
%69 = add nuw nsw i32 %63, 1
br label %79
70: ; preds = %73
%71 = call i32 (i8*, ...) @printw(i8* getelementptr inbounds ([28 x i8], [28 x i8]* @.str.3, i64 0, i64 0))
%72 = call i32 (...) @getch()
br label %79
73: ; preds = %62
%74 = call i32 (i8*, ...) @printw(i8* getelementptr inbounds ([17 x i8], [17 x i8]* @.str.4, i64 0, i64 0))
%75 = call i32 (i8*, ...) @printw(i8* getelementptr inbounds ([19 x i8], [19 x i8]* @.str.9, i64 0, i64 0))
%76 = call i32 @getstr(i8* %9)
%77 = call i64 @strcasecmp(i8* %9, i8* getelementptr inbounds ([6 x i8], [6 x i8]* @.str.10, i64 0, i64 0))
%78 = icmp eq i64 %77, 0
br i1 %78, label %68, label %70
79: ; preds = %70, %68
%80 = phi i32 [ %69, %68 ], [ %63, %70 ]
%81 = call i32 (i8*, ...) @printw(i8* getelementptr inbounds ([23 x i8], [23 x i8]* @.str.11, i64 0, i64 0))
%82 = call i32 @getstr(i8* %10)
%83 = call i64 @strcasecmp(i8* %10, i8* getelementptr inbounds ([7 x i8], [7 x i8]* @.str.12, i64 0, i64 0))
%84 = icmp eq i64 %83, 0
br i1 %84, label %85, label %90
85: ; preds = %90, %79
%86 = add nuw nsw i32 %80, 1
br label %96
87: ; preds = %90
%88 = call i32 (i8*, ...) @printw(i8* getelementptr inbounds ([28 x i8], [28 x i8]* @.str.3, i64 0, i64 0))
%89 = call i32 (...) @getch()
br label %96
90: ; preds = %79
%91 = call i32 (i8*, ...) @printw(i8* getelementptr inbounds ([17 x i8], [17 x i8]* @.str.4, i64 0, i64 0))
%92 = call i32 (i8*, ...) @printw(i8* getelementptr inbounds ([23 x i8], [23 x i8]* @.str.11, i64 0, i64 0))
%93 = call i32 @getstr(i8* %10)
%94 = call i64 @strcasecmp(i8* %10, i8* getelementptr inbounds ([7 x i8], [7 x i8]* @.str.12, i64 0, i64 0))
%95 = icmp eq i64 %94, 0
br i1 %95, label %85, label %87
96: ; preds = %87, %85
%97 = phi i32 [ %86, %85 ], [ %80, %87 ]
%98 = call i32 (i8*, ...) @printw(i8* getelementptr inbounds ([39 x i8], [39 x i8]* @.str.13, i64 0, i64 0), i32 %97)
%99 = call i32 (...) @getch()
%100 = call i32 (...) @endwin()
ret void
}