#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*/ getchar();
int /*<<< orphan*/ printf(char *, ...);
int /*<<< orphan*/ scanf(char *, ...);
int main(void) {
  char name[60];
  int gender;
  int selected;
  printf("Please tell me your name:\n");
  scanf("%s", name);
  printf("Well, %s, your gender please(0 for male, 1"
         " for female):\n",
         name);
  scanf("%d", &gender);
  printf("You've input %d, and ...\n", gender);
  if (gender) {
    while (9 != selected) {
      getchar();
      printf("Please tell me your favorite, Madam?\n");
      printf("1. Flower;\n2. Perfume;\n3. Diamond;\n4. Roadster.\n");
      printf("Press 9 to exit \n\n");
      scanf("%d", &selected);
      printf("\n@@@ %d @@@\n", selected);
      printf("You selected %d, ", selected);
      switch (selected) {
      case 1:
        printf("the flower!\n Flower is good gift!\n");
        break;
      case 2:
        printf("the perfume!\n Perfume make you smell good!\n");
        break;
      case 3:
        printf("the diamond!\n Diamond make you seems good!\n");
        break;
      case 4:
        printf("the roadster!\n Roadster make you so cool!\n");
        break;
      case 9:
        printf("Bye!\n");
        break;
      default:
        printf("Maybe you inputed a wrong number, try again!\n");
        break;
      }
    }
  } else {
    printf("Please tell me your favorite, Sir?\n");
    printf("1. Cigar;\n2. Zippo;\n3. Gun;\n4. Apple iMac.\n");
    scanf("%d", &selected);
    printf("You selected %d, ", selected);
    switch (selected) {
    case 1:
      printf("the cigar!\n Cigar will destroy your lung!\n");
      break;
    case 2:
      printf("the zippo!\n Zippo is wear well!\n");
      break;
    case 3:
      printf("the gun!\n Gun is dangerous!\n");
      break;
    case 4:
      printf("the iMac!\n iMac is designed by geniuses!\n");
      break;
    default:
      printf("Maybe you inputed a wrong number, try again!\n");
      break;
    }
  }
  return 0;
}


x86 assembly (clang, -O0):
<main>:
push   %rbp
mov    %rsp,%rbp
sub    $0x70,%rsp
movl   $0x0,-0x4(%rbp)
lea    0xeee(%rip),%rdi
mov    $0x0,%al
call   1030 <printf@plt>
lea    -0x40(%rbp),%rsi
lea    0xef7(%rip),%rdi
mov    $0x0,%al
call   1050 <scanf@plt>
lea    -0x40(%rbp),%rsi
lea    0xee8(%rip),%rdi
mov    $0x0,%al
call   1030 <printf@plt>
lea    0xf13(%rip),%rdi
lea    -0x44(%rbp),%rsi
mov    $0x0,%al
call   1050 <scanf@plt>
mov    -0x44(%rbp),%esi
lea    0xf01(%rip),%rdi
mov    $0x0,%al
call   1030 <printf@plt>
cmpl   $0x0,-0x44(%rbp)
je     12bf <main+0x18f>
jmp    11a3 <main+0x73>
mov    $0x9,%eax
cmp    -0x48(%rbp),%eax
je     12ba <main+0x18a>
xor    %eax,%eax
mov    %al,-0x51(%rbp)
call   1040 <getchar@plt>
mov    -0x51(%rbp),%al
lea    0xee3(%rip),%rdi
call   1030 <printf@plt>
mov    -0x51(%rbp),%al
lea    0xefa(%rip),%rdi
call   1030 <printf@plt>
mov    -0x51(%rbp),%al
lea    0xf1c(%rip),%rdi
call   1030 <printf@plt>
mov    -0x51(%rbp),%al
lea    0xe99(%rip),%rdi
lea    -0x48(%rbp),%rsi
call   1050 <scanf@plt>
mov    -0x51(%rbp),%al
mov    -0x48(%rbp),%esi
lea    0xf0a(%rip),%rdi
call   1030 <printf@plt>
mov    -0x51(%rbp),%al
mov    -0x48(%rbp),%esi
lea    0xf05(%rip),%rdi
call   1030 <printf@plt>
mov    -0x48(%rbp),%eax
add    $0xffffffff,%eax
mov    %eax,%ecx
mov    %rcx,-0x50(%rbp)
sub    $0x8,%eax
ja     12a7 <main+0x177>
mov    -0x50(%rbp),%rax
lea    0xdd1(%rip),%rcx
movslq (%rcx,%rax,4),%rax
add    %rcx,%rax
jmp    *%rax
lea    0xee2(%rip),%rdi
mov    $0x0,%al
call   1030 <printf@plt>
jmp    12b5 <main+0x185>
lea    0xef2(%rip),%rdi
mov    $0x0,%al
call   1030 <printf@plt>
jmp    12b5 <main+0x185>
lea    0xf0b(%rip),%rdi
mov    $0x0,%al
call   1030 <printf@plt>
jmp    12b5 <main+0x185>
lea    0xf24(%rip),%rdi
mov    $0x0,%al
call   1030 <printf@plt>
jmp    12b5 <main+0x185>
lea    0xf3c(%rip),%rdi
mov    $0x0,%al
call   1030 <printf@plt>
jmp    12b5 <main+0x185>
lea    0xf2f(%rip),%rdi
mov    $0x0,%al
call   1030 <printf@plt>
jmp    11a3 <main+0x73>
jmp    138c <main+0x25c>
lea    0xf45(%rip),%rdi
xor    %eax,%eax
mov    %al,-0x61(%rbp)
call   1030 <printf@plt>
mov    -0x61(%rbp),%al
lea    0xf55(%rip),%rdi
call   1030 <printf@plt>
mov    -0x61(%rbp),%al
lea    0xda2(%rip),%rdi
lea    -0x48(%rbp),%rsi
call   1050 <scanf@plt>
mov    -0x61(%rbp),%al
mov    -0x48(%rbp),%esi
lea    0xe20(%rip),%rdi
call   1030 <printf@plt>
mov    -0x48(%rbp),%eax
add    $0xffffffff,%eax
mov    %eax,%ecx
mov    %rcx,-0x60(%rbp)
sub    $0x3,%eax
ja     1379 <main+0x249>
mov    -0x60(%rbp),%rax
lea    0xcdc(%rip),%rcx
movslq (%rcx,%rax,4),%rax
add    %rcx,%rax
jmp    *%rax
lea    0xf27(%rip),%rdi
mov    $0x0,%al
call   1030 <printf@plt>
jmp    1387 <main+0x257>
lea    0xf3f(%rip),%rdi
mov    $0x0,%al
call   1030 <printf@plt>
jmp    1387 <main+0x257>
lea    0xf4d(%rip),%rdi
mov    $0x0,%al
call   1030 <printf@plt>
jmp    1387 <main+0x257>
lea    0xf57(%rip),%rdi
mov    $0x0,%al
call   1030 <printf@plt>
jmp    1387 <main+0x257>
lea    0xe5d(%rip),%rdi
mov    $0x0,%al
call   1030 <printf@plt>
jmp    138c <main+0x25c>
xor    %eax,%eax
add    $0x70,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<main>:
push   %rbp
push   %r15
push   %r14
push   %r13
push   %r12
push   %rbx
sub    $0x58,%rsp
lea    0xf23(%rip),%rdi
call   1030 <puts@plt>
lea    0xe9f(%rip),%rdi
lea    0x10(%rsp),%rbx
mov    %rbx,%rsi
xor    %eax,%eax
call   1060 <scanf@plt>
lea    0xe8c(%rip),%rdi
mov    %rbx,%rsi
xor    %eax,%eax
call   1040 <printf@plt>
lea    0xeb4(%rip),%rdi
lea    0xc(%rsp),%rsi
xor    %eax,%eax
call   1060 <scanf@plt>
mov    0xc(%rsp),%esi
lea    0xea0(%rip),%rdi
xor    %eax,%eax
call   1040 <printf@plt>
cmpl   $0x0,0xc(%rsp)
je     125e <main+0x11e>
lea    0xe84(%rip),%r13
lea    0x8(%rsp),%rbx
lea    0xe95(%rip),%rbp
lea    0xe9b(%rip),%r14
lea    0x10ab(%rip),%r15
lea    0x10d3(%rip),%r12
jmp    11f0 <main+0xb0>
nopl   0x0(%rax,%rax,1)
call   1030 <puts@plt>
cmpl   $0x9,0x8(%rsp)
je     12c5 <main+0x185>
xor    %eax,%eax
call   1050 <getchar@plt>
lea    0xf71(%rip),%rdi
call   1030 <puts@plt>
lea    0xf8a(%rip),%rdi
call   1030 <puts@plt>
lea    0xfae(%rip),%rdi
call   1030 <puts@plt>
mov    %r13,%rdi
mov    %rbx,%rsi
xor    %eax,%eax
call   1060 <scanf@plt>
mov    0x8(%rsp),%esi
mov    %rbp,%rdi
xor    %eax,%eax
call   1040 <printf@plt>
mov    0x8(%rsp),%esi
mov    %r14,%rdi
xor    %eax,%eax
call   1040 <printf@plt>
mov    0x8(%rsp),%eax
add    $0xffffffff,%eax
mov    %r15,%rdi
cmp    $0x8,%eax
ja     11e0 <main+0xa0>
cltq
movslq (%r12,%rax,4),%rdi
add    %r12,%rdi
jmp    11e0 <main+0xa0>
lea    0xe2d(%rip),%rdi
call   1030 <puts@plt>
lea    0xe44(%rip),%rdi
call   1030 <puts@plt>
lea    0xdbf(%rip),%rdi
lea    0x8(%rsp),%rsi
xor    %eax,%eax
call   1060 <scanf@plt>
mov    0x8(%rsp),%esi
lea    0xdd2(%rip),%rdi
xor    %eax,%eax
call   1040 <printf@plt>
mov    0x8(%rsp),%eax
add    $0xffffffff,%eax
cmp    $0x3,%eax
ja     12b9 <main+0x179>
cltq
lea    0x1020(%rip),%rcx
movslq (%rcx,%rax,4),%rdi
add    %rcx,%rdi
jmp    12c0 <main+0x180>
lea    0xfbd(%rip),%rdi
call   1030 <puts@plt>
xor    %eax,%eax
add    $0x58,%rsp
pop    %rbx
pop    %r12
pop    %r13
pop    %r14
pop    %r15
pop    %rbp
ret

LLVM IR (-O0):
@.str = [27 x i8] c"Please tell me your name:\0A\00"
@.str.1 = [3 x i8] c"%s\00"
@.str.2 = [57 x i8] c"Well, %s, your gender please(0 for male, 1 for female):\0A\00"
@.str.3 = [3 x i8] c"%d\00"
@.str.4 = [26 x i8] c"You've input %d, and ...\0A\00"
@.str.5 = [38 x i8] c"Please tell me your favorite, Madam?\0A\00"
@.str.6 = [49 x i8] c"1. Flower;\0A2. Perfume;\0A3. Diamond;\0A4. Roadster.\0A\00"
@.str.7 = [19 x i8] c"Press 9 to exit \0A\0A\00"
@.str.8 = [13 x i8] c"\0A@@@ %d @@@\0A\00"
@.str.9 = [18 x i8] c"You selected %d, \00"
@.str.10 = [35 x i8] c"the flower!\0A Flower is good gift!\0A\00"
@.str.11 = [44 x i8] c"the perfume!\0A Perfume make you smell good!\0A\00"
@.str.12 = [44 x i8] c"the diamond!\0A Diamond make you seems good!\0A\00"
@.str.13 = [43 x i8] c"the roadster!\0A Roadster make you so cool!\0A\00"
@.str.14 = [6 x i8] c"Bye!\0A\00"
@.str.15 = [46 x i8] c"Maybe you inputed a wrong number, try again!\0A\00"
@.str.16 = [36 x i8] c"Please tell me your favorite, Sir?\0A\00"
@.str.17 = [44 x i8] c"1. Cigar;\0A2. Zippo;\0A3. Gun;\0A4. Apple iMac.\0A\00"
@.str.18 = [43 x i8] c"the cigar!\0A Cigar will destroy your lung!\0A\00"
@.str.19 = [33 x i8] c"the zippo!\0A Zippo is wear well!\0A\00"
@.str.20 = [29 x i8] c"the gun!\0A Gun is dangerous!\0A\00"
@.str.21 = [42 x i8] c"the iMac!\0A iMac is designed by geniuses!\0A\00"
define i32 @main() {
%1 = alloca i32
%2 = alloca [60 x i8]
%3 = alloca i32
%4 = alloca i32
store i32 0, i32* %1
%5 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([27 x i8], [27 x i8]* @.str, i64 0, i64 0))
%6 = getelementptr inbounds [60 x i8], [60 x i8]* %2, i64 0, i64 0
%7 = call i32 (i8*, ...) @scanf(i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str.1, i64 0, i64 0), i8* %6)
%8 = getelementptr inbounds [60 x i8], [60 x i8]* %2, i64 0, i64 0
%9 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([57 x i8], [57 x i8]* @.str.2, i64 0, i64 0), i8* %8)
%10 = call i32 (i8*, ...) @scanf(i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str.3, i64 0, i64 0), i32* %3)
%11 = load i32, i32* %3
%12 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([26 x i8], [26 x i8]* @.str.4, i64 0, i64 0), i32 %11)
%13 = load i32, i32* %3
%14 = icmp ne i32 %13, 0
br i1 %14, label %15, label %44
15: ; preds = %0
br label %16
16: ; preds = %42, %15
%17 = load i32, i32* %4
%18 = icmp ne i32 9, %17
br i1 %18, label %19, label %43
19: ; preds = %16
%20 = call i32 (...) @getchar()
%21 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([38 x i8], [38 x i8]* @.str.5, i64 0, i64 0))
%22 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([49 x i8], [49 x i8]* @.str.6, i64 0, i64 0))
%23 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([19 x i8], [19 x i8]* @.str.7, i64 0, i64 0))
%24 = call i32 (i8*, ...) @scanf(i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str.3, i64 0, i64 0), i32* %4)
%25 = load i32, i32* %4
%26 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([13 x i8], [13 x i8]* @.str.8, i64 0, i64 0), i32 %25)
%27 = load i32, i32* %4
%28 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([18 x i8], [18 x i8]* @.str.9, i64 0, i64 0), i32 %27)
%29 = load i32, i32* %4
switch i32 %29, label %40 [
i32 1, label %30
i32 2, label %32
i32 3, label %34
i32 4, label %36
i32 9, label %38
]
30: ; preds = %19
%31 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([35 x i8], [35 x i8]* @.str.10, i64 0, i64 0))
br label %42
32: ; preds = %19
%33 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([44 x i8], [44 x i8]* @.str.11, i64 0, i64 0))
br label %42
34: ; preds = %19
%35 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([44 x i8], [44 x i8]* @.str.12, i64 0, i64 0))
br label %42
36: ; preds = %19
%37 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([43 x i8], [43 x i8]* @.str.13, i64 0, i64 0))
br label %42
38: ; preds = %19
%39 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([6 x i8], [6 x i8]* @.str.14, i64 0, i64 0))
br label %42
40: ; preds = %19
%41 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([46 x i8], [46 x i8]* @.str.15, i64 0, i64 0))
br label %42
42: ; preds = %40, %38, %36, %34, %32, %30
br label %16
43: ; preds = %16
br label %62
44: ; preds = %0
%45 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([36 x i8], [36 x i8]* @.str.16, i64 0, i64 0))
%46 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([44 x i8], [44 x i8]* @.str.17, i64 0, i64 0))
%47 = call i32 (i8*, ...) @scanf(i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str.3, i64 0, i64 0), i32* %4)
%48 = load i32, i32* %4
%49 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([18 x i8], [18 x i8]* @.str.9, i64 0, i64 0), i32 %48)
%50 = load i32, i32* %4
switch i32 %50, label %59 [
i32 1, label %51
i32 2, label %53
i32 3, label %55
i32 4, label %57
]
51: ; preds = %44
%52 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([43 x i8], [43 x i8]* @.str.18, i64 0, i64 0))
br label %61
53: ; preds = %44
%54 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([33 x i8], [33 x i8]* @.str.19, i64 0, i64 0))
br label %61
55: ; preds = %44
%56 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([29 x i8], [29 x i8]* @.str.20, i64 0, i64 0))
br label %61
57: ; preds = %44
%58 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([42 x i8], [42 x i8]* @.str.21, i64 0, i64 0))
br label %61
59: ; preds = %44
%60 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([46 x i8], [46 x i8]* @.str.15, i64 0, i64 0))
br label %61
61: ; preds = %59, %57, %55, %53, %51
br label %62
62: ; preds = %61, %43
ret i32 0
}

LLVM IR (-O2):
@.str.1 = [3 x i8] c"%s\00"
@.str.2 = [57 x i8] c"Well, %s, your gender please(0 for male, 1 for female):\0A\00"
@.str.3 = [3 x i8] c"%d\00"
@.str.4 = [26 x i8] c"You've input %d, and ...\0A\00"
@.str.8 = [13 x i8] c"\0A@@@ %d @@@\0A\00"
@.str.9 = [18 x i8] c"You selected %d, \00"
@str = [26 x i8] c"Please tell me your name:\00"
@str.22 = [35 x i8] c"Please tell me your favorite, Sir?\00"
@str.23 = [43 x i8] c"1. Cigar;\0A2. Zippo;\0A3. Gun;\0A4. Apple iMac.\00"
@str.24 = [41 x i8] c"the iMac!\0A iMac is designed by geniuses!\00"
@str.25 = [28 x i8] c"the gun!\0A Gun is dangerous!\00"
@str.26 = [32 x i8] c"the zippo!\0A Zippo is wear well!\00"
@str.27 = [42 x i8] c"the cigar!\0A Cigar will destroy your lung!\00"
@str.29 = [37 x i8] c"Please tell me your favorite, Madam?\00"
@str.30 = [48 x i8] c"1. Flower;\0A2. Perfume;\0A3. Diamond;\0A4. Roadster.\00"
@str.31 = [18 x i8] c"Press 9 to exit \0A\00"
@str.32 = [5 x i8] c"Bye!\00"
@str.33 = [42 x i8] c"the roadster!\0A Roadster make you so cool!\00"
@str.34 = [43 x i8] c"the diamond!\0A Diamond make you seems good!\00"
@str.35 = [43 x i8] c"the perfume!\0A Perfume make you smell good!\00"
@str.36 = [34 x i8] c"the flower!\0A Flower is good gift!\00"
@str.37 = [45 x i8] c"Maybe you inputed a wrong number, try again!\00"
@reltable.main = [9 x i32] [i32 trunc (i64 sub (i64 ptrtoint ([34 x i8]* @str.36 to i64), i64 ptrtoint ([9 x i32]* @reltable.main to i64)) to i32), i32 trunc (i64 sub (i64 ptrtoint ([43 x i8]* @str.35 to i64), i64 ptrtoint ([9 x i32]* @reltable.main to i64)) to i32), i32 trunc (i64 sub (i64 ptrtoint ([43 x i8]* @str.34 to i64), i64 ptrtoint ([9 x i32]* @reltable.main to i64)) to i32), i32 trunc (i64 sub (i64 ptrtoint ([42 x i8]* @str.33 to i64), i64 ptrtoint ([9 x i32]* @reltable.main to i64)) to i32), i32 trunc (i64 sub (i64 ptrtoint ([45 x i8]* @str.37 to i64), i64 ptrtoint ([9 x i32]* @reltable.main to i64)) to i32), i32 trunc (i64 sub (i64 ptrtoint ([45 x i8]* @str.37 to i64), i64 ptrtoint ([9 x i32]* @reltable.main to i64)) to i32), i32 trunc (i64 sub (i64 ptrtoint ([45 x i8]* @str.37 to i64), i64 ptrtoint ([9 x i32]* @reltable.main to i64)) to i32), i32 trunc (i64 sub (i64 ptrtoint ([45 x i8]* @str.37 to i64), i64 ptrtoint ([9 x i32]* @reltable.main to i64)) to i32), i32 trunc (i64 sub (i64 ptrtoint ([5 x i8]* @str.32 to i64), i64 ptrtoint ([9 x i32]* @reltable.main to i64)) to i32)]
@reltable.main.39 = [4 x i32] [i32 trunc (i64 sub (i64 ptrtoint ([42 x i8]* @str.27 to i64), i64 ptrtoint ([4 x i32]* @reltable.main.39 to i64)) to i32), i32 trunc (i64 sub (i64 ptrtoint ([32 x i8]* @str.26 to i64), i64 ptrtoint ([4 x i32]* @reltable.main.39 to i64)) to i32), i32 trunc (i64 sub (i64 ptrtoint ([28 x i8]* @str.25 to i64), i64 ptrtoint ([4 x i32]* @reltable.main.39 to i64)) to i32), i32 trunc (i64 sub (i64 ptrtoint ([41 x i8]* @str.24 to i64), i64 ptrtoint ([4 x i32]* @reltable.main.39 to i64)) to i32)]
define i32 @main() {
%1 = alloca [60 x i8]
%2 = alloca i32
%3 = alloca i32
%4 = getelementptr inbounds [60 x i8], [60 x i8]* %1, i64 0, i64 0
%5 = bitcast i32* %2 to i8*
%6 = bitcast i32* %3 to i8*
%7 = tail call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([26 x i8], [26 x i8]* @str, i64 0, i64 0))
%8 = call i32 (i8*, ...) @scanf(i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str.1, i64 0, i64 0), i8* %4)
%9 = call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([57 x i8], [57 x i8]* @.str.2, i64 0, i64 0), i8* %4)
%10 = call i32 (i8*, ...) @scanf(i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str.3, i64 0, i64 0), i32* %2)
%11 = load i32, i32* %2
%12 = call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([26 x i8], [26 x i8]* @.str.4, i64 0, i64 0), i32 %11)
%13 = load i32, i32* %2
%14 = icmp eq i32 %13, 0
br i1 %14, label %37, label %15
15: ; preds = %0, %32
%16 = call i32 (...) @getchar()
%17 = call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([37 x i8], [37 x i8]* @str.29, i64 0, i64 0))
%18 = call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([48 x i8], [48 x i8]* @str.30, i64 0, i64 0))
%19 = call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([18 x i8], [18 x i8]* @str.31, i64 0, i64 0))
%20 = call i32 (i8*, ...) @scanf(i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str.3, i64 0, i64 0), i32* %3)
%21 = load i32, i32* %3
%22 = call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([13 x i8], [13 x i8]* @.str.8, i64 0, i64 0), i32 %21)
%23 = load i32, i32* %3
%24 = call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([18 x i8], [18 x i8]* @.str.9, i64 0, i64 0), i32 %23)
%25 = load i32, i32* %3
%26 = add i32 %25, -1
%27 = icmp ult i32 %26, 9
br i1 %27, label %28, label %32
28: ; preds = %15
%29 = sext i32 %26 to i64
%30 = shl i64 %29, 2
%31 = call i8* @llvm.load.relative.i64(i8* bitcast ([9 x i32]* @reltable.main to i8*), i64 %30)
br label %32
32: ; preds = %15, %28
%33 = phi i8* [ %31, %28 ], [ getelementptr inbounds ([45 x i8], [45 x i8]* @str.37, i64 0, i64 0), %15 ]
%34 = call i32 @puts(i8* dereferenceable(1) %33)
%35 = load i32, i32* %3
%36 = icmp eq i32 %35, 9
br i1 %36, label %53, label %15
37: ; preds = %0
%38 = call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([35 x i8], [35 x i8]* @str.22, i64 0, i64 0))
%39 = call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([43 x i8], [43 x i8]* @str.23, i64 0, i64 0))
%40 = call i32 (i8*, ...) @scanf(i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str.3, i64 0, i64 0), i32* %3)
%41 = load i32, i32* %3
%42 = call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([18 x i8], [18 x i8]* @.str.9, i64 0, i64 0), i32 %41)
%43 = load i32, i32* %3
%44 = add i32 %43, -1
%45 = icmp ult i32 %44, 4
br i1 %45, label %46, label %50
46: ; preds = %37
%47 = sext i32 %44 to i64
%48 = shl i64 %47, 2
%49 = call i8* @llvm.load.relative.i64(i8* bitcast ([4 x i32]* @reltable.main.39 to i8*), i64 %48)
br label %50
50: ; preds = %37, %46
%51 = phi i8* [ %49, %46 ], [ getelementptr inbounds ([45 x i8], [45 x i8]* @str.37, i64 0, i64 0), %37 ]
%52 = call i32 @puts(i8* dereferenceable(1) %51)
br label %53
53: ; preds = %32, %50
ret i32 0
}