#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__ strcmp(char *, char *);
int main(void) {
  char word[512];
  scanf("%s", word);
  if (strcmp(word, "vertebrado") == 0) {
    scanf("%s", word);
    if (strcmp(word, "ave") == 0) {
      scanf("%s", word);
      if (strcmp(word, "carnivoro") == 0) {
        printf("aguia\n");
      } else if (strcmp(word, "onivoro") == 0) {
        printf("pomba\n");
      } else {
        printf("INVALID\n");
      }
    } else if (strcmp(word, "mamifero") == 0) {
      scanf("%s", word);
      if (strcmp(word, "onivoro") == 0) {
        printf("homem\n");
      } else if (strcmp(word, "herbivoro") == 0) {
        printf("vaca\n");
      } else {
        printf("INVALID\n");
      }
    } else {
      printf("INVALID\n");
    }
  } else if (strcmp(word, "invertebrado") == 0) {
    scanf("%s", word);
    if (strcmp(word, "inseto") == 0) {
      scanf("%s", word);
      if (strcmp(word, "hematofago") == 0) {
        printf("pulga\n");
      } else if (strcmp(word, "herbivoro") == 0) {
        printf("lagarta\n");
      } else {
        printf("INVALID\n");
      }
    } else if (strcmp(word, "anelideo") == 0) {
      scanf("%s", word);
      if (strcmp(word, "hematofago") == 0) {
        printf("sanguessuga\n");
      } else if (strcmp(word, "onivoro") == 0) {
        printf("minhoca\n");
      } else {
        printf("INVALID\n");
      }
    } else {
      printf("INVALID\n");
    }
  } else {
    printf("INVALID\n");
  }
  return 0;
}


x86 assembly (clang, -O0):
<main>:
push   %rbp
mov    %rsp,%rbp
sub    $0x210,%rsp
movl   $0x0,-0x4(%rbp)
lea    -0x210(%rbp),%rsi
lea    0xeb0(%rip),%rdi
call   1050 <scanf@plt>
lea    -0x210(%rbp),%rdi
lea    0xeef(%rip),%rsi
call   1040 <strcmp@plt>
cmp    $0x0,%rax
jne    12df <main+0x1af>
lea    -0x210(%rbp),%rsi
lea    0xe80(%rip),%rdi
call   1050 <scanf@plt>
lea    -0x210(%rbp),%rdi
lea    0xe70(%rip),%rsi
call   1040 <strcmp@plt>
cmp    $0x0,%rax
jne    1227 <main+0xf7>
lea    -0x210(%rbp),%rsi
lea    0xe50(%rip),%rdi
call   1050 <scanf@plt>
lea    -0x210(%rbp),%rdi
lea    0xe44(%rip),%rsi
call   1040 <strcmp@plt>
cmp    $0x0,%rax
jne    11e3 <main+0xb3>
lea    0xe38(%rip),%rdi
call   1030 <printf@plt>
jmp    1222 <main+0xf2>
lea    -0x210(%rbp),%rdi
lea    0xe27(%rip),%rsi
call   1040 <strcmp@plt>
cmp    $0x0,%rax
jne    1211 <main+0xe1>
lea    0xe19(%rip),%rdi
call   1030 <printf@plt>
jmp    121d <main+0xed>
lea    0xe0f(%rip),%rdi
call   1030 <printf@plt>
jmp    1222 <main+0xf2>
jmp    12da <main+0x1aa>
lea    -0x210(%rbp),%rdi
lea    0xdfb(%rip),%rsi
call   1040 <strcmp@plt>
cmp    $0x0,%rax
jne    12c9 <main+0x199>
lea    -0x210(%rbp),%rsi
lea    0xdae(%rip),%rdi
call   1050 <scanf@plt>
lea    -0x210(%rbp),%rdi
lea    0xdb3(%rip),%rsi
call   1040 <strcmp@plt>
cmp    $0x0,%rax
jne    1285 <main+0x155>
lea    0xdbe(%rip),%rdi
call   1030 <printf@plt>
jmp    12c4 <main+0x194>
lea    -0x210(%rbp),%rdi
lea    0xdad(%rip),%rsi
call   1040 <strcmp@plt>
cmp    $0x0,%rax
jne    12b3 <main+0x183>
lea    0xda1(%rip),%rdi
call   1030 <printf@plt>
jmp    12bf <main+0x18f>
lea    0xd6d(%rip),%rdi
call   1030 <printf@plt>
jmp    12c4 <main+0x194>
jmp    12d5 <main+0x1a5>
lea    0xd57(%rip),%rdi
call   1030 <printf@plt>
jmp    12da <main+0x1aa>
jmp    147a <main+0x34a>
lea    -0x210(%rbp),%rdi
lea    0xd63(%rip),%rsi
call   1040 <strcmp@plt>
cmp    $0x0,%rax
jne    1469 <main+0x339>
lea    -0x210(%rbp),%rsi
lea    0xcf6(%rip),%rdi
call   1050 <scanf@plt>
lea    -0x210(%rbp),%rdi
lea    0xd40(%rip),%rsi
call   1040 <strcmp@plt>
cmp    $0x0,%rax
jne    13b1 <main+0x281>
lea    -0x210(%rbp),%rsi
lea    0xcc6(%rip),%rdi
call   1050 <scanf@plt>
lea    -0x210(%rbp),%rdi
lea    0xd17(%rip),%rsi
call   1040 <strcmp@plt>
cmp    $0x0,%rax
jne    136d <main+0x23d>
lea    0xd0c(%rip),%rdi
call   1030 <printf@plt>
jmp    13ac <main+0x27c>
lea    -0x210(%rbp),%rdi
lea    0xcc5(%rip),%rsi
call   1040 <strcmp@plt>
cmp    $0x0,%rax
jne    139b <main+0x26b>
lea    0xce5(%rip),%rdi
call   1030 <printf@plt>
jmp    13a7 <main+0x277>
lea    0xc85(%rip),%rdi
call   1030 <printf@plt>
jmp    13ac <main+0x27c>
jmp    1464 <main+0x334>
lea    -0x210(%rbp),%rdi
lea    0xcc0(%rip),%rsi
call   1040 <strcmp@plt>
cmp    $0x0,%rax
jne    1453 <main+0x323>
lea    -0x210(%rbp),%rsi
lea    0xc24(%rip),%rdi
call   1050 <scanf@plt>
lea    -0x210(%rbp),%rdi
lea    0xc75(%rip),%rsi
call   1040 <strcmp@plt>
cmp    $0x0,%rax
jne    140f <main+0x2df>
lea    0xc83(%rip),%rdi
call   1030 <printf@plt>
jmp    144e <main+0x31e>
lea    -0x210(%rbp),%rdi
lea    0xbfb(%rip),%rsi
call   1040 <strcmp@plt>
cmp    $0x0,%rax
jne    143d <main+0x30d>
lea    0xc62(%rip),%rdi
call   1030 <printf@plt>
jmp    1449 <main+0x319>
lea    0xbe3(%rip),%rdi
call   1030 <printf@plt>
jmp    144e <main+0x31e>
jmp    145f <main+0x32f>
lea    0xbcd(%rip),%rdi
call   1030 <printf@plt>
jmp    1464 <main+0x334>
jmp    1475 <main+0x345>
lea    0xbb7(%rip),%rdi
call   1030 <printf@plt>
jmp    147a <main+0x34a>
xor    %eax,%eax
add    $0x210,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<main>:
push   %r14
push   %rbx
sub    $0x208,%rsp
lea    0xebf(%rip),%rdi
mov    %rsp,%rbx
mov    %rbx,%rsi
call   1050 <scanf@plt>
lea    0xedb(%rip),%rsi
mov    %rbx,%rdi
call   1040 <strcmp@plt>
test   %rax,%rax
je     120d <main+0xdd>
lea    0xec1(%rip),%rsi
mov    %rsp,%rdi
call   1040 <strcmp@plt>
lea    0xf07(%rip),%rbx
test   %rax,%rax
jne    132e <main+0x1fe>
lea    0xe76(%rip),%rdi
mov    %rsp,%r14
mov    %r14,%rsi
call   1050 <scanf@plt>
lea    0xe9d(%rip),%rsi
mov    %r14,%rdi
call   1040 <strcmp@plt>
test   %rax,%rax
je     129f <main+0x16f>
lea    0xe97(%rip),%rsi
mov    %rsp,%rdi
call   1040 <strcmp@plt>
test   %rax,%rax
jne    132e <main+0x1fe>
lea    0xe34(%rip),%rdi
mov    %rsp,%rbx
mov    %rbx,%rsi
call   1050 <scanf@plt>
lea    0xe62(%rip),%rsi
mov    %rbx,%rdi
call   1040 <strcmp@plt>
test   %rax,%rax
je     135e <main+0x22e>
lea    0xe1b(%rip),%rsi
mov    %rsp,%rdi
call   1040 <strcmp@plt>
test   %rax,%rax
lea    0xe4c(%rip),%rax
jmp    1323 <main+0x1f3>
lea    0xdec(%rip),%rdi
mov    %rsp,%rbx
mov    %rbx,%rsi
call   1050 <scanf@plt>
lea    0xddd(%rip),%rsi
mov    %rbx,%rdi
call   1040 <strcmp@plt>
test   %rax,%rax
je     1257 <main+0x127>
lea    0xddf(%rip),%rsi
mov    %rsp,%rdi
call   1040 <strcmp@plt>
test   %rax,%rax
je     12e4 <main+0x1b4>
lea    0xe2f(%rip),%rbx
jmp    132e <main+0x1fe>
lea    0xda2(%rip),%rdi
mov    %rsp,%rbx
mov    %rbx,%rsi
call   1050 <scanf@plt>
lea    0xd97(%rip),%rsi
mov    %rbx,%rdi
call   1040 <strcmp@plt>
test   %rax,%rax
je     1343 <main+0x213>
lea    0xd89(%rip),%rsi
mov    %rsp,%rdi
call   1040 <strcmp@plt>
test   %rax,%rax
lea    0xdef(%rip),%rax
jmp    1323 <main+0x1f3>
lea    0xd5a(%rip),%rdi
mov    %rsp,%rbx
mov    %rbx,%rsi
call   1050 <scanf@plt>
lea    0xd88(%rip),%rsi
mov    %rbx,%rdi
call   1040 <strcmp@plt>
test   %rax,%rax
je     134c <main+0x21c>
lea    0xd52(%rip),%rsi
mov    %rsp,%rdi
call   1040 <strcmp@plt>
test   %rax,%rax
lea    0xd86(%rip),%rax
jmp    1323 <main+0x1f3>
lea    0xd15(%rip),%rdi
mov    %rsp,%rbx
mov    %rbx,%rsi
call   1050 <scanf@plt>
lea    0xd14(%rip),%rsi
mov    %rbx,%rdi
call   1040 <strcmp@plt>
test   %rax,%rax
je     1355 <main+0x225>
lea    0xd11(%rip),%rsi
mov    %rsp,%rdi
call   1040 <strcmp@plt>
test   %rax,%rax
lea    0xd53(%rip),%rax
lea    0xd57(%rip),%rbx
cmove  %rax,%rbx
mov    %rbx,%rdi
call   1030 <puts@plt>
xor    %eax,%eax
add    $0x208,%rsp
pop    %rbx
pop    %r14
ret
lea    0xd45(%rip),%rbx
jmp    132e <main+0x1fe>
lea    0xd1d(%rip),%rbx
jmp    132e <main+0x1fe>
lea    0xd1f(%rip),%rbx
jmp    132e <main+0x1fe>
lea    0xcf7(%rip),%rbx
jmp    132e <main+0x1fe>

LLVM IR (-O0):
@.str = [3 x i8] c"%s\00"
@.str.1 = [11 x i8] c"vertebrado\00"
@.str.2 = [4 x i8] c"ave\00"
@.str.3 = [10 x i8] c"carnivoro\00"
@.str.4 = [7 x i8] c"aguia\0A\00"
@.str.5 = [8 x i8] c"onivoro\00"
@.str.6 = [7 x i8] c"pomba\0A\00"
@.str.7 = [9 x i8] c"INVALID\0A\00"
@.str.8 = [9 x i8] c"mamifero\00"
@.str.9 = [7 x i8] c"homem\0A\00"
@.str.10 = [10 x i8] c"herbivoro\00"
@.str.11 = [6 x i8] c"vaca\0A\00"
@.str.12 = [13 x i8] c"invertebrado\00"
@.str.13 = [7 x i8] c"inseto\00"
@.str.14 = [11 x i8] c"hematofago\00"
@.str.15 = [7 x i8] c"pulga\0A\00"
@.str.16 = [9 x i8] c"lagarta\0A\00"
@.str.17 = [9 x i8] c"anelideo\00"
@.str.18 = [13 x i8] c"sanguessuga\0A\00"
@.str.19 = [9 x i8] c"minhoca\0A\00"
define i32 @main() {
%1 = alloca i32
%2 = alloca [512 x i8]
store i32 0, i32* %1
%3 = getelementptr inbounds [512 x i8], [512 x i8]* %2, i64 0, i64 0
%4 = call i32 @scanf(i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str, i64 0, i64 0), i8* %3)
%5 = getelementptr inbounds [512 x i8], [512 x i8]* %2, i64 0, i64 0
%6 = call i64 @strcmp(i8* %5, i8* getelementptr inbounds ([11 x i8], [11 x i8]* @.str.1, i64 0, i64 0))
%7 = icmp eq i64 %6, 0
br i1 %7, label %8, label %58
8: ; preds = %0
%9 = getelementptr inbounds [512 x i8], [512 x i8]* %2, i64 0, i64 0
%10 = call i32 @scanf(i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str, i64 0, i64 0), i8* %9)
%11 = getelementptr inbounds [512 x i8], [512 x i8]* %2, i64 0, i64 0
%12 = call i64 @strcmp(i8* %11, i8* getelementptr inbounds ([4 x i8], [4 x i8]* @.str.2, i64 0, i64 0))
%13 = icmp eq i64 %12, 0
br i1 %13, label %14, label %32
14: ; preds = %8
%15 = getelementptr inbounds [512 x i8], [512 x i8]* %2, i64 0, i64 0
%16 = call i32 @scanf(i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str, i64 0, i64 0), i8* %15)
%17 = getelementptr inbounds [512 x i8], [512 x i8]* %2, i64 0, i64 0
%18 = call i64 @strcmp(i8* %17, i8* getelementptr inbounds ([10 x i8], [10 x i8]* @.str.3, i64 0, i64 0))
%19 = icmp eq i64 %18, 0
br i1 %19, label %20, label %22
20: ; preds = %14
%21 = call i32 @printf(i8* getelementptr inbounds ([7 x i8], [7 x i8]* @.str.4, i64 0, i64 0))
br label %31
22: ; preds = %14
%23 = getelementptr inbounds [512 x i8], [512 x i8]* %2, i64 0, i64 0
%24 = call i64 @strcmp(i8* %23, i8* getelementptr inbounds ([8 x i8], [8 x i8]* @.str.5, i64 0, i64 0))
%25 = icmp eq i64 %24, 0
br i1 %25, label %26, label %28
26: ; preds = %22
%27 = call i32 @printf(i8* getelementptr inbounds ([7 x i8], [7 x i8]* @.str.6, i64 0, i64 0))
br label %30
28: ; preds = %22
%29 = call i32 @printf(i8* getelementptr inbounds ([9 x i8], [9 x i8]* @.str.7, i64 0, i64 0))
br label %30
30: ; preds = %28, %26
br label %31
31: ; preds = %30, %20
br label %57
32: ; preds = %8
%33 = getelementptr inbounds [512 x i8], [512 x i8]* %2, i64 0, i64 0
%34 = call i64 @strcmp(i8* %33, i8* getelementptr inbounds ([9 x i8], [9 x i8]* @.str.8, i64 0, i64 0))
%35 = icmp eq i64 %34, 0
br i1 %35, label %36, label %54
36: ; preds = %32
%37 = getelementptr inbounds [512 x i8], [512 x i8]* %2, i64 0, i64 0
%38 = call i32 @scanf(i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str, i64 0, i64 0), i8* %37)
%39 = getelementptr inbounds [512 x i8], [512 x i8]* %2, i64 0, i64 0
%40 = call i64 @strcmp(i8* %39, i8* getelementptr inbounds ([8 x i8], [8 x i8]* @.str.5, i64 0, i64 0))
%41 = icmp eq i64 %40, 0
br i1 %41, label %42, label %44
42: ; preds = %36
%43 = call i32 @printf(i8* getelementptr inbounds ([7 x i8], [7 x i8]* @.str.9, i64 0, i64 0))
br label %53
44: ; preds = %36
%45 = getelementptr inbounds [512 x i8], [512 x i8]* %2, i64 0, i64 0
%46 = call i64 @strcmp(i8* %45, i8* getelementptr inbounds ([10 x i8], [10 x i8]* @.str.10, i64 0, i64 0))
%47 = icmp eq i64 %46, 0
br i1 %47, label %48, label %50
48: ; preds = %44
%49 = call i32 @printf(i8* getelementptr inbounds ([6 x i8], [6 x i8]* @.str.11, i64 0, i64 0))
br label %52
50: ; preds = %44
%51 = call i32 @printf(i8* getelementptr inbounds ([9 x i8], [9 x i8]* @.str.7, i64 0, i64 0))
br label %52
52: ; preds = %50, %48
br label %53
53: ; preds = %52, %42
br label %56
54: ; preds = %32
%55 = call i32 @printf(i8* getelementptr inbounds ([9 x i8], [9 x i8]* @.str.7, i64 0, i64 0))
br label %56
56: ; preds = %54, %53
br label %57
57: ; preds = %56, %31
br label %115
58: ; preds = %0
%59 = getelementptr inbounds [512 x i8], [512 x i8]* %2, i64 0, i64 0
%60 = call i64 @strcmp(i8* %59, i8* getelementptr inbounds ([13 x i8], [13 x i8]* @.str.12, i64 0, i64 0))
%61 = icmp eq i64 %60, 0
br i1 %61, label %62, label %112
62: ; preds = %58
%63 = getelementptr inbounds [512 x i8], [512 x i8]* %2, i64 0, i64 0
%64 = call i32 @scanf(i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str, i64 0, i64 0), i8* %63)
%65 = getelementptr inbounds [512 x i8], [512 x i8]* %2, i64 0, i64 0
%66 = call i64 @strcmp(i8* %65, i8* getelementptr inbounds ([7 x i8], [7 x i8]* @.str.13, i64 0, i64 0))
%67 = icmp eq i64 %66, 0
br i1 %67, label %68, label %86
68: ; preds = %62
%69 = getelementptr inbounds [512 x i8], [512 x i8]* %2, i64 0, i64 0
%70 = call i32 @scanf(i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str, i64 0, i64 0), i8* %69)
%71 = getelementptr inbounds [512 x i8], [512 x i8]* %2, i64 0, i64 0
%72 = call i64 @strcmp(i8* %71, i8* getelementptr inbounds ([11 x i8], [11 x i8]* @.str.14, i64 0, i64 0))
%73 = icmp eq i64 %72, 0
br i1 %73, label %74, label %76
74: ; preds = %68
%75 = call i32 @printf(i8* getelementptr inbounds ([7 x i8], [7 x i8]* @.str.15, i64 0, i64 0))
br label %85
76: ; preds = %68
%77 = getelementptr inbounds [512 x i8], [512 x i8]* %2, i64 0, i64 0
%78 = call i64 @strcmp(i8* %77, i8* getelementptr inbounds ([10 x i8], [10 x i8]* @.str.10, i64 0, i64 0))
%79 = icmp eq i64 %78, 0
br i1 %79, label %80, label %82
80: ; preds = %76
%81 = call i32 @printf(i8* getelementptr inbounds ([9 x i8], [9 x i8]* @.str.16, i64 0, i64 0))
br label %84
82: ; preds = %76
%83 = call i32 @printf(i8* getelementptr inbounds ([9 x i8], [9 x i8]* @.str.7, i64 0, i64 0))
br label %84
84: ; preds = %82, %80
br label %85
85: ; preds = %84, %74
br label %111
86: ; preds = %62
%87 = getelementptr inbounds [512 x i8], [512 x i8]* %2, i64 0, i64 0
%88 = call i64 @strcmp(i8* %87, i8* getelementptr inbounds ([9 x i8], [9 x i8]* @.str.17, i64 0, i64 0))
%89 = icmp eq i64 %88, 0
br i1 %89, label %90, label %108
90: ; preds = %86
%91 = getelementptr inbounds [512 x i8], [512 x i8]* %2, i64 0, i64 0
%92 = call i32 @scanf(i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str, i64 0, i64 0), i8* %91)
%93 = getelementptr inbounds [512 x i8], [512 x i8]* %2, i64 0, i64 0
%94 = call i64 @strcmp(i8* %93, i8* getelementptr inbounds ([11 x i8], [11 x i8]* @.str.14, i64 0, i64 0))
%95 = icmp eq i64 %94, 0
br i1 %95, label %96, label %98
96: ; preds = %90
%97 = call i32 @printf(i8* getelementptr inbounds ([13 x i8], [13 x i8]* @.str.18, i64 0, i64 0))
br label %107
98: ; preds = %90
%99 = getelementptr inbounds [512 x i8], [512 x i8]* %2, i64 0, i64 0
%100 = call i64 @strcmp(i8* %99, i8* getelementptr inbounds ([8 x i8], [8 x i8]* @.str.5, i64 0, i64 0))
%101 = icmp eq i64 %100, 0
br i1 %101, label %102, label %104
102: ; preds = %98
%103 = call i32 @printf(i8* getelementptr inbounds ([9 x i8], [9 x i8]* @.str.19, i64 0, i64 0))
br label %106
104: ; preds = %98
%105 = call i32 @printf(i8* getelementptr inbounds ([9 x i8], [9 x i8]* @.str.7, i64 0, i64 0))
br label %106
106: ; preds = %104, %102
br label %107
107: ; preds = %106, %96
br label %110
108: ; preds = %86
%109 = call i32 @printf(i8* getelementptr inbounds ([9 x i8], [9 x i8]* @.str.7, i64 0, i64 0))
br label %110
110: ; preds = %108, %107
br label %111
111: ; preds = %110, %85
br label %114
112: ; preds = %58
%113 = call i32 @printf(i8* getelementptr inbounds ([9 x i8], [9 x i8]* @.str.7, i64 0, i64 0))
br label %114
114: ; preds = %112, %111
br label %115
115: ; preds = %114, %57
ret i32 0
}

LLVM IR (-O2):
@.str = [3 x i8] c"%s\00"
@.str.1 = [11 x i8] c"vertebrado\00"
@.str.2 = [4 x i8] c"ave\00"
@.str.3 = [10 x i8] c"carnivoro\00"
@.str.5 = [8 x i8] c"onivoro\00"
@.str.8 = [9 x i8] c"mamifero\00"
@.str.10 = [10 x i8] c"herbivoro\00"
@.str.12 = [13 x i8] c"invertebrado\00"
@.str.13 = [7 x i8] c"inseto\00"
@.str.14 = [11 x i8] c"hematofago\00"
@.str.17 = [9 x i8] c"anelideo\00"
@str.22 = [8 x i8] c"minhoca\00"
@str.23 = [12 x i8] c"sanguessuga\00"
@str.25 = [8 x i8] c"lagarta\00"
@str.26 = [6 x i8] c"pulga\00"
@str.29 = [5 x i8] c"vaca\00"
@str.30 = [6 x i8] c"homem\00"
@str.31 = [8 x i8] c"INVALID\00"
@str.32 = [6 x i8] c"pomba\00"
@str.33 = [6 x i8] c"aguia\00"
define i32 @main() {
%1 = alloca [512 x i8]
%2 = getelementptr inbounds [512 x i8], [512 x i8]* %1, i64 0, i64 0
%3 = call i32 @scanf(i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str, i64 0, i64 0), i8* %2)
%4 = call i64 @strcmp(i8* %2, i8* getelementptr inbounds ([11 x i8], [11 x i8]* @.str.1, i64 0, i64 0))
%5 = icmp eq i64 %4, 0
br i1 %5, label %6, label %29
6: ; preds = %0
%7 = call i32 @scanf(i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str, i64 0, i64 0), i8* %2)
%8 = call i64 @strcmp(i8* %2, i8* getelementptr inbounds ([4 x i8], [4 x i8]* @.str.2, i64 0, i64 0))
%9 = icmp eq i64 %8, 0
br i1 %9, label %10, label %18
10: ; preds = %6
%11 = call i32 @scanf(i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str, i64 0, i64 0), i8* %2)
%12 = call i64 @strcmp(i8* %2, i8* getelementptr inbounds ([10 x i8], [10 x i8]* @.str.3, i64 0, i64 0))
%13 = icmp eq i64 %12, 0
br i1 %13, label %55, label %14
14: ; preds = %10
%15 = call i64 @strcmp(i8* %2, i8* getelementptr inbounds ([8 x i8], [8 x i8]* @.str.5, i64 0, i64 0))
%16 = icmp eq i64 %15, 0
%17 = select i1 %16, i8* getelementptr inbounds ([6 x i8], [6 x i8]* @str.32, i64 0, i64 0), i8* getelementptr inbounds ([8 x i8], [8 x i8]* @str.31, i64 0, i64 0)
br label %55
18: ; preds = %6
%19 = call i64 @strcmp(i8* %2, i8* getelementptr inbounds ([9 x i8], [9 x i8]* @.str.8, i64 0, i64 0))
%20 = icmp eq i64 %19, 0
br i1 %20, label %21, label %55
21: ; preds = %18
%22 = call i32 @scanf(i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str, i64 0, i64 0), i8* %2)
%23 = call i64 @strcmp(i8* %2, i8* getelementptr inbounds ([8 x i8], [8 x i8]* @.str.5, i64 0, i64 0))
%24 = icmp eq i64 %23, 0
br i1 %24, label %55, label %25
25: ; preds = %21
%26 = call i64 @strcmp(i8* %2, i8* getelementptr inbounds ([10 x i8], [10 x i8]* @.str.10, i64 0, i64 0))
%27 = icmp eq i64 %26, 0
%28 = select i1 %27, i8* getelementptr inbounds ([5 x i8], [5 x i8]* @str.29, i64 0, i64 0), i8* getelementptr inbounds ([8 x i8], [8 x i8]* @str.31, i64 0, i64 0)
br label %55
29: ; preds = %0
%30 = call i64 @strcmp(i8* %2, i8* getelementptr inbounds ([13 x i8], [13 x i8]* @.str.12, i64 0, i64 0))
%31 = icmp eq i64 %30, 0
br i1 %31, label %32, label %55
32: ; preds = %29
%33 = call i32 @scanf(i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str, i64 0, i64 0), i8* %2)
%34 = call i64 @strcmp(i8* %2, i8* getelementptr inbounds ([7 x i8], [7 x i8]* @.str.13, i64 0, i64 0))
%35 = icmp eq i64 %34, 0
br i1 %35, label %36, label %44
36: ; preds = %32
%37 = call i32 @scanf(i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str, i64 0, i64 0), i8* %2)
%38 = call i64 @strcmp(i8* %2, i8* getelementptr inbounds ([11 x i8], [11 x i8]* @.str.14, i64 0, i64 0))
%39 = icmp eq i64 %38, 0
br i1 %39, label %55, label %40
40: ; preds = %36
%41 = call i64 @strcmp(i8* %2, i8* getelementptr inbounds ([10 x i8], [10 x i8]* @.str.10, i64 0, i64 0))
%42 = icmp eq i64 %41, 0
%43 = select i1 %42, i8* getelementptr inbounds ([8 x i8], [8 x i8]* @str.25, i64 0, i64 0), i8* getelementptr inbounds ([8 x i8], [8 x i8]* @str.31, i64 0, i64 0)
br label %55
44: ; preds = %32
%45 = call i64 @strcmp(i8* %2, i8* getelementptr inbounds ([9 x i8], [9 x i8]* @.str.17, i64 0, i64 0))
%46 = icmp eq i64 %45, 0
br i1 %46, label %47, label %55
47: ; preds = %44
%48 = call i32 @scanf(i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str, i64 0, i64 0), i8* %2)
%49 = call i64 @strcmp(i8* %2, i8* getelementptr inbounds ([11 x i8], [11 x i8]* @.str.14, i64 0, i64 0))
%50 = icmp eq i64 %49, 0
br i1 %50, label %55, label %51
51: ; preds = %47
%52 = call i64 @strcmp(i8* %2, i8* getelementptr inbounds ([8 x i8], [8 x i8]* @.str.5, i64 0, i64 0))
%53 = icmp eq i64 %52, 0
%54 = select i1 %53, i8* getelementptr inbounds ([8 x i8], [8 x i8]* @str.22, i64 0, i64 0), i8* getelementptr inbounds ([8 x i8], [8 x i8]* @str.31, i64 0, i64 0)
br label %55
55: ; preds = %29, %44, %51, %47, %40, %36, %18, %25, %21, %14, %10
%56 = phi i8* [ getelementptr inbounds ([6 x i8], [6 x i8]* @str.33, i64 0, i64 0), %10 ], [ %17, %14 ], [ getelementptr inbounds ([6 x i8], [6 x i8]* @str.30, i64 0, i64 0), %21 ], [ %28, %25 ], [ getelementptr inbounds ([8 x i8], [8 x i8]* @str.31, i64 0, i64 0), %18 ], [ getelementptr inbounds ([6 x i8], [6 x i8]* @str.26, i64 0, i64 0), %36 ], [ %43, %40 ], [ getelementptr inbounds ([12 x i8], [12 x i8]* @str.23, i64 0, i64 0), %47 ], [ %54, %51 ], [ getelementptr inbounds ([8 x i8], [8 x i8]* @str.31, i64 0, i64 0), %44 ], [ getelementptr inbounds ([8 x i8], [8 x i8]* @str.31, i64 0, i64 0), %29 ]
%57 = call i32 @puts(i8* dereferenceable(1) %56)
ret i32 0
}