#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*/ printf(char *, ...);
int /*<<< orphan*/ scanf(char *, char *);
scalar_t__ strcasecmp(char *, char *);
void main(void) {
  char casa[] = "house", carro[] = "car", silla[] = "chair", mesa[] = "table",
       escuela[] = "school";
  char name[] = " ", userOpt[] = " ";
  int count = 0, punt = 0;
  printf("Bienvenido usuario; para iniciar. Favor de ingresar tu nombre \n>>");
  scanf("%s", name);
  do {
    printf("\nPerfecto %s, Ahora podemos iniciar. Este programa asiste en la "
           "ensenansa del Ingles usando preguntas interactivas.\n",
           name);
    printf("\n\tPregunta 1:\n");
    printf("\tIntrodusca el equivalente en ingles de la palabra: Casa\n");
    scanf("%s", userOpt);
    if (strcasecmp(casa, userOpt) != 0) {
      count++;
      if (count >= 2) {
        break;
      }
      printf("%s, Te queda una oportunidad. Por favor intenta de nuevo\n",
             name);
    } else {
      printf("Felicidades %s, Tu respuesta es correcta\n", name);
      punt++;
    }
    printf("\n\tPregunta 2:\n");
    printf("\tIntrodusca el equivalente en ingles de la palabra: Carro\n");
    scanf("%s", userOpt);
    if (strcasecmp(carro, userOpt) != 0) {
      count++;
      if (count >= 2) {
        break;
      }
      printf("%s, Te queda una oportunidad. Por favor intenta de nuevo\n",
             name);
    } else {
      printf("Felicidades %s, Tu respuesta es correcta\n", name);
      punt++;
    }
    printf("\n\tPregunta 3:\n");
    printf("\tIntrodusca el equivalente en ingles de la palabra: Silla\n");
    scanf("%s", userOpt);
    if (strcasecmp(silla, userOpt) != 0) {
      count++;
      if (count >= 2) {
        break;
      }
      printf("%s, Te queda una oportunidad. Por favor intenta de nuevo\n",
             name);
    } else {
      printf("Felicidades %s, Tu respuesta es correcta\n", name);
      punt++;
    }
    printf("\n\tPregunta 4:\n");
    printf("\tIntrodusca el equivalente en ingles de la palabra: Mesa\n");
    scanf("%s", userOpt);
    if (strcasecmp(mesa, userOpt) != 0) {
      count++;
      if (count >= 2) {
        break;
      }
      printf("%s, Te queda una oportunidad. Por favor intenta de nuevo\n",
             name);
    } else {
      printf("Felicidades %s, Tu respuesta es correcta\n", name);
      punt++;
    }
    printf("\n\tPregunta 5:\n");
    printf("\tIntrodusca el equivalente en ingles de la palabra: Escuela\n");
    scanf("%s", userOpt);
    if (strcasecmp(escuela, userOpt) != 0) {
      count++;
      if (count >= 2) {
        break;
      }
      printf("%s, Te queda una oportunidad. Por favor intenta de nuevo\n",
             name);
    } else {
      printf("Felicidades %s, Tu respuesta es correcta\n", name);
      punt++;
    }
  } while (count >= 2);
  printf("\n\n\tPuntuacion:\n\t\taciertos=%d\n\t\terrores=%d\n\nGracias por "
         "participar %s. Vuelva pronto",
         punt, count, name);
}


x86 assembly (clang, -O0):
<main>:
push   %rbp
mov    %rsp,%rbp
sub    $0x30,%rsp
mov    0xec2(%rip),%eax
mov    %eax,-0x6(%rbp)
mov    0xebc(%rip),%ax
mov    %ax,-0x2(%rbp)
mov    0xeb4(%rip),%eax
mov    %eax,-0xa(%rbp)
mov    0xeaf(%rip),%eax
mov    %eax,-0x10(%rbp)
mov    0xea9(%rip),%ax
mov    %ax,-0xc(%rbp)
mov    0xea1(%rip),%eax
mov    %eax,-0x16(%rbp)
mov    0xe9b(%rip),%ax
mov    %ax,-0x12(%rbp)
mov    0xe93(%rip),%eax
mov    %eax,-0x1d(%rbp)
mov    0xe8d(%rip),%ax
mov    %ax,-0x19(%rbp)
mov    0xe85(%rip),%al
mov    %al,-0x17(%rbp)
mov    0xe7c(%rip),%ax
mov    %ax,-0x1f(%rbp)
mov    0xe71(%rip),%ax
mov    %ax,-0x21(%rbp)
movl   $0x0,-0x28(%rbp)
movl   $0x0,-0x2c(%rbp)
lea    0xe5a(%rip),%rdi
mov    $0x0,%al
call   1040 <printf@plt>
lea    -0x1f(%rbp),%rsi
lea    0xe8a(%rip),%rdi
call   1050 <scanf@plt>
lea    -0x1f(%rbp),%rsi
lea    0xe7d(%rip),%rdi
mov    $0x0,%al
call   1040 <printf@plt>
lea    0xee4(%rip),%rdi
mov    $0x0,%al
call   1040 <printf@plt>
lea    0xee5(%rip),%rdi
mov    $0x0,%al
call   1040 <printf@plt>
lea    -0x21(%rbp),%rsi
lea    0xe4c(%rip),%rdi
call   1050 <scanf@plt>
lea    -0x6(%rbp),%rdi
lea    -0x21(%rbp),%rsi
call   1030 <strcasecmp@plt>
cmp    $0x0,%rax
je     1260 <main+0x130>
mov    -0x28(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0x28(%rbp)
cmpl   $0x2,-0x28(%rbp)
jl     1249 <main+0x119>
jmp    14be <main+0x38e>
lea    -0x1f(%rbp),%rsi
lea    0xece(%rip),%rdi
mov    $0x0,%al
call   1040 <printf@plt>
jmp    127b <main+0x14b>
lea    -0x1f(%rbp),%rsi
lea    0xef1(%rip),%rdi
mov    $0x0,%al
call   1040 <printf@plt>
mov    -0x2c(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0x2c(%rbp)
lea    0xf04(%rip),%rdi
mov    $0x0,%al
call   1040 <printf@plt>
lea    0xf05(%rip),%rdi
mov    $0x0,%al
call   1040 <printf@plt>
lea    -0x21(%rbp),%rsi
lea    0xdbf(%rip),%rdi
call   1050 <scanf@plt>
lea    -0xa(%rbp),%rdi
lea    -0x21(%rbp),%rsi
call   1030 <strcasecmp@plt>
cmp    $0x0,%rax
je     12ed <main+0x1bd>
mov    -0x28(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0x28(%rbp)
cmpl   $0x2,-0x28(%rbp)
jl     12d6 <main+0x1a6>
jmp    14be <main+0x38e>
lea    -0x1f(%rbp),%rsi
lea    0xe41(%rip),%rdi
mov    $0x0,%al
call   1040 <printf@plt>
jmp    1308 <main+0x1d8>
lea    -0x1f(%rbp),%rsi
lea    0xe64(%rip),%rdi
mov    $0x0,%al
call   1040 <printf@plt>
mov    -0x2c(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0x2c(%rbp)
lea    0xec1(%rip),%rdi
mov    $0x0,%al
call   1040 <printf@plt>
lea    0xec2(%rip),%rdi
mov    $0x0,%al
call   1040 <printf@plt>
lea    -0x21(%rbp),%rsi
lea    0xd32(%rip),%rdi
call   1050 <scanf@plt>
lea    -0x10(%rbp),%rdi
lea    -0x21(%rbp),%rsi
call   1030 <strcasecmp@plt>
cmp    $0x0,%rax
je     137a <main+0x24a>
mov    -0x28(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0x28(%rbp)
cmpl   $0x2,-0x28(%rbp)
jl     1363 <main+0x233>
jmp    14be <main+0x38e>
lea    -0x1f(%rbp),%rsi
lea    0xdb4(%rip),%rdi
mov    $0x0,%al
call   1040 <printf@plt>
jmp    1395 <main+0x265>
lea    -0x1f(%rbp),%rsi
lea    0xdd7(%rip),%rdi
mov    $0x0,%al
call   1040 <printf@plt>
mov    -0x2c(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0x2c(%rbp)
lea    0xe7e(%rip),%rdi
mov    $0x0,%al
call   1040 <printf@plt>
lea    0xe7f(%rip),%rdi
mov    $0x0,%al
call   1040 <printf@plt>
lea    -0x21(%rbp),%rsi
lea    0xca5(%rip),%rdi
call   1050 <scanf@plt>
lea    -0x16(%rbp),%rdi
lea    -0x21(%rbp),%rsi
call   1030 <strcasecmp@plt>
cmp    $0x0,%rax
je     1407 <main+0x2d7>
mov    -0x28(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0x28(%rbp)
cmpl   $0x2,-0x28(%rbp)
jl     13f0 <main+0x2c0>
jmp    14be <main+0x38e>
lea    -0x1f(%rbp),%rsi
lea    0xd27(%rip),%rdi
mov    $0x0,%al
call   1040 <printf@plt>
jmp    1422 <main+0x2f2>
lea    -0x1f(%rbp),%rsi
lea    0xd4a(%rip),%rdi
mov    $0x0,%al
call   1040 <printf@plt>
mov    -0x2c(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0x2c(%rbp)
lea    0xe3a(%rip),%rdi
mov    $0x0,%al
call   1040 <printf@plt>
lea    0xe3b(%rip),%rdi
mov    $0x0,%al
call   1040 <printf@plt>
lea    -0x21(%rbp),%rsi
lea    0xc18(%rip),%rdi
call   1050 <scanf@plt>
lea    -0x1d(%rbp),%rdi
lea    -0x21(%rbp),%rsi
call   1030 <strcasecmp@plt>
cmp    $0x0,%rax
je     1494 <main+0x364>
mov    -0x28(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0x28(%rbp)
cmpl   $0x2,-0x28(%rbp)
jl     147d <main+0x34d>
jmp    14be <main+0x38e>
lea    -0x1f(%rbp),%rsi
lea    0xc9a(%rip),%rdi
mov    $0x0,%al
call   1040 <printf@plt>
jmp    14af <main+0x37f>
lea    -0x1f(%rbp),%rsi
lea    0xcbd(%rip),%rdi
mov    $0x0,%al
call   1040 <printf@plt>
mov    -0x2c(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0x2c(%rbp)
jmp    14b4 <main+0x384>
cmpl   $0x2,-0x28(%rbp)
jge    11dc <main+0xac>
mov    -0x2c(%rbp),%esi
mov    -0x28(%rbp),%edx
lea    -0x1f(%rbp),%rcx
lea    0xde0(%rip),%rdi
mov    $0x0,%al
call   1040 <printf@plt>
add    $0x30,%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,0x4(%rsp)
movw   $0x20,0x6(%rsp)
lea    0xebd(%rip),%rdi
xor    %eax,%eax
call   1050 <printf@plt>
lea    0xef1(%rip),%r15
lea    0x4(%rsp),%r12
mov    %r15,%rdi
mov    %r12,%rsi
call   1060 <scanf@plt>
lea    0xedd(%rip),%rdi
mov    %r12,%rsi
xor    %eax,%eax
call   1050 <printf@plt>
lea    0xff9(%rip),%rdi
call   1040 <puts@plt>
lea    0xffb(%rip),%rdi
call   1040 <puts@plt>
lea    0x6(%rsp),%rbp
mov    %r15,%rdi
mov    %rbp,%rsi
call   1060 <scanf@plt>
lea    0xe42(%rip),%rdi
mov    %rbp,%rsi
call   1030 <strcasecmp@plt>
mov    %rax,%rbx
xor    %r14d,%r14d
test   %rax,%rax
sete   %r13b
lea    0xf37(%rip),%rax
lea    0xef6(%rip),%rdi
cmove  %rax,%rdi
mov    %r12,%rsi
xor    %eax,%eax
call   1050 <printf@plt>
lea    0xfe0(%rip),%rdi
call   1040 <puts@plt>
lea    0xfe2(%rip),%rdi
call   1040 <puts@plt>
mov    %r15,%rdi
mov    %rbp,%rsi
call   1060 <scanf@plt>
lea    0xded(%rip),%rdi
mov    %rbp,%rsi
call   1030 <strcasecmp@plt>
test   %rax,%rax
je     1251 <main+0x111>
mov    %r13b,%r14b
mov    $0x2,%ebp
test   %rbx,%rbx
jne    13af <main+0x26f>
lea    0xe99(%rip),%rdi
lea    0x4(%rsp),%rsi
xor    %eax,%eax
call   1050 <printf@plt>
mov    $0x1,%ebp
jmp    1278 <main+0x138>
xor    %r14d,%r14d
xor    %ebp,%ebp
test   %rbx,%rbx
sete   %r14b
setne  %bpl
lea    0xea9(%rip),%rdi
lea    0x4(%rsp),%rsi
xor    %eax,%eax
call   1050 <printf@plt>
add    $0x1,%r14d
lea    0xf9f(%rip),%rdi
call   1040 <puts@plt>
lea    0xfa1(%rip),%rdi
call   1040 <puts@plt>
lea    0xdc8(%rip),%rdi
lea    0x6(%rsp),%rbx
mov    %rbx,%rsi
call   1060 <scanf@plt>
lea    0xd5f(%rip),%rdi
mov    %rbx,%rsi
call   1030 <strcasecmp@plt>
test   %rax,%rax
je     12da <main+0x19a>
test   %ebp,%ebp
jne    13aa <main+0x26a>
lea    0xe10(%rip),%rdi
lea    0x4(%rsp),%rsi
xor    %eax,%eax
call   1050 <printf@plt>
mov    $0x1,%ebp
jmp    12f1 <main+0x1b1>
lea    0xe30(%rip),%rdi
lea    0x4(%rsp),%rsi
xor    %eax,%eax
call   1050 <printf@plt>
add    $0x1,%r14d
lea    0xf6e(%rip),%rdi
call   1040 <puts@plt>
lea    0xf70(%rip),%rdi
call   1040 <puts@plt>
lea    0xd4f(%rip),%rdi
lea    0x6(%rsp),%rbx
mov    %rbx,%rsi
call   1060 <scanf@plt>
lea    0xcec(%rip),%rdi
mov    %rbx,%rsi
call   1030 <strcasecmp@plt>
test   %rax,%rax
je     134f <main+0x20f>
test   %ebp,%ebp
jne    13aa <main+0x26a>
lea    0xd9b(%rip),%rdi
lea    0x4(%rsp),%rsi
xor    %eax,%eax
call   1050 <printf@plt>
mov    $0x1,%ebp
jmp    1366 <main+0x226>
lea    0xdbb(%rip),%rdi
lea    0x4(%rsp),%rsi
xor    %eax,%eax
call   1050 <printf@plt>
add    $0x1,%r14d
lea    0xf40(%rip),%rdi
call   1040 <puts@plt>
lea    0xf42(%rip),%rdi
call   1040 <puts@plt>
lea    0xcda(%rip),%rdi
lea    0x6(%rsp),%rbx
mov    %rbx,%rsi
call   1060 <scanf@plt>
lea    0xc7d(%rip),%rdi
mov    %rbx,%rsi
call   1030 <strcasecmp@plt>
test   %rax,%rax
je     13d6 <main+0x296>
test   %ebp,%ebp
je     13ef <main+0x2af>
mov    $0x2,%ebp
lea    0xd85(%rip),%rdi
lea    0x4(%rsp),%rcx
mov    %r14d,%esi
mov    %ebp,%edx
xor    %eax,%eax
call   1050 <printf@plt>
add    $0x8,%rsp
pop    %rbx
pop    %r12
pop    %r13
pop    %r14
pop    %r15
pop    %rbp
ret
lea    0xd34(%rip),%rdi
lea    0x4(%rsp),%rsi
xor    %eax,%eax
call   1050 <printf@plt>
add    $0x1,%r14d
jmp    13af <main+0x26f>
lea    0xce1(%rip),%rdi
lea    0x4(%rsp),%rsi
xor    %eax,%eax
call   1050 <printf@plt>
mov    $0x1,%ebp
jmp    13af <main+0x26f>

LLVM IR (-O0):
@__const.main.casa = [6 x i8] c"house\00"
@__const.main.carro = [4 x i8] c"car\00"
@__const.main.silla = [6 x i8] c"chair\00"
@__const.main.mesa = [6 x i8] c"table\00"
@__const.main.escuela = [7 x i8] c"school\00"
@__const.main.name = [2 x i8] c" \00"
@__const.main.userOpt = [2 x i8] c" \00"
@.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 del Ingles usando preguntas interactivas.\0A\00"
@.str.3 = [15 x i8] c"\0A\09Pregunta 1:\0A\00"
@.str.4 = [58 x i8] c"\09Introdusca el equivalente en ingles de la palabra: Casa\0A\00"
@.str.5 = [58 x i8] c"%s, Te queda una oportunidad. Por favor intenta de nuevo\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 = [59 x i8] c"\09Introdusca el equivalente en ingles de la palabra: Carro\0A\00"
@.str.9 = [15 x i8] c"\0A\09Pregunta 3:\0A\00"
@.str.10 = [59 x i8] c"\09Introdusca el equivalente en ingles de la palabra: Silla\0A\00"
@.str.11 = [15 x i8] c"\0A\09Pregunta 4:\0A\00"
@.str.12 = [58 x i8] c"\09Introdusca el equivalente en ingles de la palabra: Mesa\0A\00"
@.str.13 = [15 x i8] c"\0A\09Pregunta 5:\0A\00"
@.str.14 = [61 x i8] c"\09Introdusca el equivalente en ingles de la palabra: Escuela\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 [6 x i8]
%2 = alloca [4 x i8]
%3 = alloca [6 x i8]
%4 = alloca [6 x i8]
%5 = alloca [7 x i8]
%6 = alloca [2 x i8]
%7 = alloca [2 x i8]
%8 = alloca i32
%9 = alloca i32
%10 = bitcast [6 x i8]* %1 to i8*
%11 = bitcast [4 x i8]* %2 to i8*
%12 = bitcast [6 x i8]* %3 to i8*
%13 = bitcast [6 x i8]* %4 to i8*
%14 = bitcast [7 x i8]* %5 to i8*
%15 = bitcast [2 x i8]* %6 to i8*
%16 = bitcast [2 x i8]* %7 to i8*
store i32 0, i32* %8
store i32 0, i32* %9
%17 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([66 x i8], [66 x i8]* @.str, i64 0, i64 0))
%18 = getelementptr inbounds [2 x i8], [2 x i8]* %6, i64 0, i64 0
%19 = call i32 @scanf(i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str.1, i64 0, i64 0), i8* %18)
br label %20
20: ; preds = %138, %0
%21 = getelementptr inbounds [2 x i8], [2 x i8]* %6, i64 0, i64 0
%22 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([117 x i8], [117 x i8]* @.str.2, i64 0, i64 0), i8* %21)
%23 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([15 x i8], [15 x i8]* @.str.3, i64 0, i64 0))
%24 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([58 x i8], [58 x i8]* @.str.4, i64 0, i64 0))
%25 = getelementptr inbounds [2 x i8], [2 x i8]* %7, i64 0, i64 0
%26 = call i32 @scanf(i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str.1, i64 0, i64 0), i8* %25)
%27 = getelementptr inbounds [6 x i8], [6 x i8]* %1, i64 0, i64 0
%28 = getelementptr inbounds [2 x i8], [2 x i8]* %7, i64 0, i64 0
%29 = call i64 @strcasecmp(i8* %27, i8* %28)
%30 = icmp ne i64 %29, 0
br i1 %30, label %31, label %40
31: ; preds = %20
%32 = load i32, i32* %8
%33 = add nsw i32 %32, 1
store i32 %33, i32* %8
%34 = load i32, i32* %8
%35 = icmp sge i32 %34, 2
br i1 %35, label %36, label %37
36: ; preds = %31
br label %141
37: ; preds = %31
%38 = getelementptr inbounds [2 x i8], [2 x i8]* %6, i64 0, i64 0
%39 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([58 x i8], [58 x i8]* @.str.5, i64 0, i64 0), i8* %38)
br label %45
40: ; preds = %20
%41 = getelementptr inbounds [2 x i8], [2 x i8]* %6, i64 0, i64 0
%42 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([42 x i8], [42 x i8]* @.str.6, i64 0, i64 0), i8* %41)
%43 = load i32, i32* %9
%44 = add nsw i32 %43, 1
store i32 %44, i32* %9
br label %45
45: ; preds = %40, %37
%46 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([15 x i8], [15 x i8]* @.str.7, i64 0, i64 0))
%47 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([59 x i8], [59 x i8]* @.str.8, i64 0, i64 0))
%48 = getelementptr inbounds [2 x i8], [2 x i8]* %7, i64 0, i64 0
%49 = call i32 @scanf(i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str.1, i64 0, i64 0), i8* %48)
%50 = getelementptr inbounds [4 x i8], [4 x i8]* %2, i64 0, i64 0
%51 = getelementptr inbounds [2 x i8], [2 x i8]* %7, i64 0, i64 0
%52 = call i64 @strcasecmp(i8* %50, i8* %51)
%53 = icmp ne i64 %52, 0
br i1 %53, label %54, label %63
54: ; preds = %45
%55 = load i32, i32* %8
%56 = add nsw i32 %55, 1
store i32 %56, i32* %8
%57 = load i32, i32* %8
%58 = icmp sge i32 %57, 2
br i1 %58, label %59, label %60
59: ; preds = %54
br label %141
60: ; preds = %54
%61 = getelementptr inbounds [2 x i8], [2 x i8]* %6, i64 0, i64 0
%62 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([58 x i8], [58 x i8]* @.str.5, i64 0, i64 0), i8* %61)
br label %68
63: ; preds = %45
%64 = getelementptr inbounds [2 x i8], [2 x i8]* %6, i64 0, i64 0
%65 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([42 x i8], [42 x i8]* @.str.6, i64 0, i64 0), i8* %64)
%66 = load i32, i32* %9
%67 = add nsw i32 %66, 1
store i32 %67, i32* %9
br label %68
68: ; preds = %63, %60
%69 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([15 x i8], [15 x i8]* @.str.9, i64 0, i64 0))
%70 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([59 x i8], [59 x i8]* @.str.10, i64 0, i64 0))
%71 = getelementptr inbounds [2 x i8], [2 x i8]* %7, i64 0, i64 0
%72 = call i32 @scanf(i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str.1, i64 0, i64 0), i8* %71)
%73 = getelementptr inbounds [6 x i8], [6 x i8]* %3, i64 0, i64 0
%74 = getelementptr inbounds [2 x i8], [2 x i8]* %7, i64 0, i64 0
%75 = call i64 @strcasecmp(i8* %73, i8* %74)
%76 = icmp ne i64 %75, 0
br i1 %76, label %77, label %86
77: ; preds = %68
%78 = load i32, i32* %8
%79 = add nsw i32 %78, 1
store i32 %79, i32* %8
%80 = load i32, i32* %8
%81 = icmp sge i32 %80, 2
br i1 %81, label %82, label %83
82: ; preds = %77
br label %141
83: ; preds = %77
%84 = getelementptr inbounds [2 x i8], [2 x i8]* %6, i64 0, i64 0
%85 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([58 x i8], [58 x i8]* @.str.5, i64 0, i64 0), i8* %84)
br label %91
86: ; preds = %68
%87 = getelementptr inbounds [2 x i8], [2 x i8]* %6, i64 0, i64 0
%88 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([42 x i8], [42 x i8]* @.str.6, i64 0, i64 0), i8* %87)
%89 = load i32, i32* %9
%90 = add nsw i32 %89, 1
store i32 %90, i32* %9
br label %91
91: ; preds = %86, %83
%92 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([15 x i8], [15 x i8]* @.str.11, i64 0, i64 0))
%93 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([58 x i8], [58 x i8]* @.str.12, i64 0, i64 0))
%94 = getelementptr inbounds [2 x i8], [2 x i8]* %7, i64 0, i64 0
%95 = call i32 @scanf(i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str.1, i64 0, i64 0), i8* %94)
%96 = getelementptr inbounds [6 x i8], [6 x i8]* %4, i64 0, i64 0
%97 = getelementptr inbounds [2 x i8], [2 x i8]* %7, i64 0, i64 0
%98 = call i64 @strcasecmp(i8* %96, i8* %97)
%99 = icmp ne i64 %98, 0
br i1 %99, label %100, label %109
100: ; preds = %91
%101 = load i32, i32* %8
%102 = add nsw i32 %101, 1
store i32 %102, i32* %8
%103 = load i32, i32* %8
%104 = icmp sge i32 %103, 2
br i1 %104, label %105, label %106
105: ; preds = %100
br label %141
106: ; preds = %100
%107 = getelementptr inbounds [2 x i8], [2 x i8]* %6, i64 0, i64 0
%108 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([58 x i8], [58 x i8]* @.str.5, i64 0, i64 0), i8* %107)
br label %114
109: ; preds = %91
%110 = getelementptr inbounds [2 x i8], [2 x i8]* %6, i64 0, i64 0
%111 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([42 x i8], [42 x i8]* @.str.6, i64 0, i64 0), i8* %110)
%112 = load i32, i32* %9
%113 = add nsw i32 %112, 1
store i32 %113, i32* %9
br label %114
114: ; preds = %109, %106
%115 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([15 x i8], [15 x i8]* @.str.13, i64 0, i64 0))
%116 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([61 x i8], [61 x i8]* @.str.14, i64 0, i64 0))
%117 = getelementptr inbounds [2 x i8], [2 x i8]* %7, i64 0, i64 0
%118 = call i32 @scanf(i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str.1, i64 0, i64 0), i8* %117)
%119 = getelementptr inbounds [7 x i8], [7 x i8]* %5, i64 0, i64 0
%120 = getelementptr inbounds [2 x i8], [2 x i8]* %7, i64 0, i64 0
%121 = call i64 @strcasecmp(i8* %119, i8* %120)
%122 = icmp ne i64 %121, 0
br i1 %122, label %123, label %132
123: ; preds = %114
%124 = load i32, i32* %8
%125 = add nsw i32 %124, 1
store i32 %125, i32* %8
%126 = load i32, i32* %8
%127 = icmp sge i32 %126, 2
br i1 %127, label %128, label %129
128: ; preds = %123
br label %141
129: ; preds = %123
%130 = getelementptr inbounds [2 x i8], [2 x i8]* %6, i64 0, i64 0
%131 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([58 x i8], [58 x i8]* @.str.5, i64 0, i64 0), i8* %130)
br label %137
132: ; preds = %114
%133 = getelementptr inbounds [2 x i8], [2 x i8]* %6, i64 0, i64 0
%134 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([42 x i8], [42 x i8]* @.str.6, i64 0, i64 0), i8* %133)
%135 = load i32, i32* %9
%136 = add nsw i32 %135, 1
store i32 %136, i32* %9
br label %137
137: ; preds = %132, %129
br label %138
138: ; preds = %137
%139 = load i32, i32* %8
%140 = icmp sge i32 %139, 2
br i1 %140, label %20, label %141
141: ; preds = %138, %128, %105, %82, %59, %36
%142 = load i32, i32* %9
%143 = load i32, i32* %8
%144 = getelementptr inbounds [2 x i8], [2 x i8]* %6, i64 0, i64 0
%145 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([84 x i8], [84 x i8]* @.str.15, i64 0, i64 0), i32 %142, i32 %143, i8* %144)
ret void
}

LLVM IR (-O2):
@__const.main.casa = [6 x i8] c"house\00"
@__const.main.carro = [4 x i8] c"car\00"
@__const.main.silla = [6 x i8] c"chair\00"
@__const.main.mesa = [6 x i8] c"table\00"
@__const.main.escuela = [7 x i8] c"school\00"
@.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 del Ingles usando preguntas interactivas.\0A\00"
@.str.5 = [58 x i8] c"%s, Te queda una oportunidad. Por favor intenta de nuevo\0A\00"
@.str.6 = [42 x i8] c"Felicidades %s, Tu respuesta es correcta\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"
@str = [14 x i8] c"\0A\09Pregunta 1:\00"
@str.16 = [57 x i8] c"\09Introdusca el equivalente en ingles de la palabra: Casa\00"
@str.17 = [14 x i8] c"\0A\09Pregunta 2:\00"
@str.18 = [58 x i8] c"\09Introdusca el equivalente en ingles de la palabra: Carro\00"
@str.19 = [14 x i8] c"\0A\09Pregunta 3:\00"
@str.20 = [58 x i8] c"\09Introdusca el equivalente en ingles de la palabra: Silla\00"
@str.21 = [14 x i8] c"\0A\09Pregunta 4:\00"
@str.22 = [57 x i8] c"\09Introdusca el equivalente en ingles de la palabra: Mesa\00"
@str.23 = [14 x i8] c"\0A\09Pregunta 5:\00"
@str.24 = [60 x i8] c"\09Introdusca el equivalente en ingles de la palabra: Escuela\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 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([66 x i8], [66 x i8]* @.str, i64 0, i64 0))
%6 = call i32 @scanf(i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str.1, i64 0, i64 0), i8* %3)
%7 = call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([117 x i8], [117 x i8]* @.str.2, i64 0, i64 0), i16* %1)
%8 = call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([14 x i8], [14 x i8]* @str, i64 0, i64 0))
%9 = call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([57 x i8], [57 x i8]* @str.16, i64 0, i64 0))
%10 = call i32 @scanf(i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str.1, i64 0, i64 0), i8* %4)
%11 = call i64 @strcasecmp(i8* getelementptr inbounds ([6 x i8], [6 x i8]* @__const.main.casa, i64 0, i64 0), i8* %4)
%12 = icmp eq i64 %11, 0
%13 = select i1 %12, i8* getelementptr inbounds ([42 x i8], [42 x i8]* @.str.6, i64 0, i64 0), i8* getelementptr inbounds ([58 x i8], [58 x i8]* @.str.5, i64 0, i64 0)
%14 = zext i1 %12 to i32
%15 = call i32 (i8*, ...) @printf(i8* dereferenceable(1) %13, i16* %1)
%16 = call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([14 x i8], [14 x i8]* @str.17, i64 0, i64 0))
%17 = call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([58 x i8], [58 x i8]* @str.18, i64 0, i64 0))
%18 = call i32 @scanf(i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str.1, i64 0, i64 0), i8* %4)
%19 = call i64 @strcasecmp(i8* getelementptr inbounds ([4 x i8], [4 x i8]* @__const.main.carro, i64 0, i64 0), i8* %4)
%20 = icmp eq i64 %19, 0
br i1 %20, label %24, label %21
21: ; preds = %0
br i1 %12, label %22, label %74
22: ; preds = %21
%23 = call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([58 x i8], [58 x i8]* @.str.5, i64 0, i64 0), i16* %1)
br label %29
24: ; preds = %0
%25 = xor i1 %12, true
%26 = zext i1 %25 to i32
%27 = call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([42 x i8], [42 x i8]* @.str.6, i64 0, i64 0), i16* %1)
%28 = select i1 %12, i32 2, i32 1
br label %29
29: ; preds = %24, %22
%30 = phi i32 [ 1, %22 ], [ %26, %24 ]
%31 = phi i32 [ %14, %22 ], [ %28, %24 ]
%32 = call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([14 x i8], [14 x i8]* @str.19, i64 0, i64 0))
%33 = call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([58 x i8], [58 x i8]* @str.20, i64 0, i64 0))
%34 = call i32 @scanf(i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str.1, i64 0, i64 0), i8* %4)
%35 = call i64 @strcasecmp(i8* getelementptr inbounds ([6 x i8], [6 x i8]* @__const.main.silla, i64 0, i64 0), i8* %4)
%36 = icmp eq i64 %35, 0
br i1 %36, label %41, label %37
37: ; preds = %29
%38 = icmp eq i32 %30, 0
br i1 %38, label %39, label %74
39: ; preds = %37
%40 = call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([58 x i8], [58 x i8]* @.str.5, i64 0, i64 0), i16* %1)
br label %44
41: ; preds = %29
%42 = call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([42 x i8], [42 x i8]* @.str.6, i64 0, i64 0), i16* %1)
%43 = add nuw nsw i32 %31, 1
br label %44
44: ; preds = %41, %39
%45 = phi i32 [ 1, %39 ], [ %30, %41 ]
%46 = phi i32 [ %31, %39 ], [ %43, %41 ]
%47 = call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([14 x i8], [14 x i8]* @str.21, i64 0, i64 0))
%48 = call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([57 x i8], [57 x i8]* @str.22, i64 0, i64 0))
%49 = call i32 @scanf(i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str.1, i64 0, i64 0), i8* %4)
%50 = call i64 @strcasecmp(i8* getelementptr inbounds ([6 x i8], [6 x i8]* @__const.main.mesa, i64 0, i64 0), i8* %4)
%51 = icmp eq i64 %50, 0
br i1 %51, label %56, label %52
52: ; preds = %44
%53 = icmp eq i32 %45, 0
br i1 %53, label %54, label %74
54: ; preds = %52
%55 = call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([58 x i8], [58 x i8]* @.str.5, i64 0, i64 0), i16* %1)
br label %59
56: ; preds = %44
%57 = call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([42 x i8], [42 x i8]* @.str.6, i64 0, i64 0), i16* %1)
%58 = add nuw nsw i32 %46, 1
br label %59
59: ; preds = %56, %54
%60 = phi i32 [ 1, %54 ], [ %45, %56 ]
%61 = phi i32 [ %46, %54 ], [ %58, %56 ]
%62 = call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([14 x i8], [14 x i8]* @str.23, i64 0, i64 0))
%63 = call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([60 x i8], [60 x i8]* @str.24, i64 0, i64 0))
%64 = call i32 @scanf(i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str.1, i64 0, i64 0), i8* %4)
%65 = call i64 @strcasecmp(i8* getelementptr inbounds ([7 x i8], [7 x i8]* @__const.main.escuela, i64 0, i64 0), i8* %4)
%66 = icmp eq i64 %65, 0
br i1 %66, label %71, label %67
67: ; preds = %59
%68 = icmp eq i32 %60, 0
br i1 %68, label %69, label %74
69: ; preds = %67
%70 = call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([58 x i8], [58 x i8]* @.str.5, i64 0, i64 0), i16* %1)
br label %74
71: ; preds = %59
%72 = call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([42 x i8], [42 x i8]* @.str.6, i64 0, i64 0), i16* %1)
%73 = add nuw nsw i32 %61, 1
br label %74
74: ; preds = %71, %69, %67, %52, %37, %21
%75 = phi i32 [ 2, %21 ], [ 2, %37 ], [ 2, %52 ], [ 2, %67 ], [ 1, %69 ], [ %60, %71 ]
%76 = phi i32 [ %14, %21 ], [ %31, %37 ], [ %46, %52 ], [ %61, %67 ], [ %61, %69 ], [ %73, %71 ]
%77 = call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([84 x i8], [84 x i8]* @.str.15, i64 0, i64 0), i32 %76, i32 %75, i16* %1)
ret void
}