#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*/ exit(int /*<<< orphan*/);
int /*<<< orphan*/ printf(char *, ...);
int /*<<< orphan*/ scanf(char *, ...);
scalar_t__ strcmp(char *, char *);
int main() {
  char name[100][20];
  int roll[100];
  int i = 0;
  printf("Enter the Details in format: \n"
         "<Roll No.> <Name>\n"
         "Press 0 to quit \n");
  scanf("%d", &roll[i]);
  while (roll[i] != 0 && i < 100) {
    scanf("%s", name[i]);
    scanf("%d", &roll[++i]);
  }
  int len = i;
  int choise = 0;
  int track = 0;
  while (1) {
    printf("\n \n Select A Choise: \n"
           "1. Search Via Roll Number \n"
           "2. Search Via Name \n"
           "0. to quit \n \n");
    scanf("%d", &choise);
    if (choise == 1) {
      printf("Enter the Roll Number: ");
      int input;
      scanf("%d", &input);
      track = 0;
      while (input != roll[track] && track++ < len)
        ;
      if (track < len)
        printf("Name = %s \n", name[track]);
      else
        printf("Sry!! No such Entry!!! \n");
    } else if (choise == 2) {
      printf("Enter the Name: ");
      char input[20];
      scanf("%s", input);
      track = 0;
      while (strcmp(input, name[track]) && track++ < len)
        ;
      if (track < len)
        printf("Roll = %d \n", roll[track]);
      else
        printf("Sry!! No such Entry!!! \n");
    } else if (choise == 0) {
      printf("Bye!!! \n");
      exit(0);
    } else
      printf("Wrong Input Try Again \n");
  }
  return 0;
}


x86 assembly (clang, -O0):
<main>:
push   %rbp
mov    %rsp,%rbp
sub    $0x9b0,%rsp
movl   $0x0,-0x4(%rbp)
movl   $0x0,-0x974(%rbp)
lea    0xe9d(%rip),%rdi
mov    $0x0,%al
call   1030 <printf@plt>
movslq -0x974(%rbp),%rax
lea    -0x970(%rbp),%rsi
shl    $0x2,%rax
add    %rax,%rsi
lea    0xebc(%rip),%rdi
mov    $0x0,%al
call   1050 <scanf@plt>
movslq -0x974(%rbp),%rcx
xor    %eax,%eax
cmpl   $0x0,-0x970(%rbp,%rcx,4)
mov    %al,-0x9a1(%rbp)
je     11ba <main+0x7a>
cmpl   $0x64,-0x974(%rbp)
setl   %al
mov    %al,-0x9a1(%rbp)
mov    -0x9a1(%rbp),%al
test   $0x1,%al
jne    11cd <main+0x8d>
jmp    1222 <main+0xe2>
movslq -0x974(%rbp),%rax
lea    -0x7e0(%rbp),%rsi
imul   $0x14,%rax,%rax
add    %rax,%rsi
lea    0xe5c(%rip),%rdi
mov    $0x0,%al
call   1050 <scanf@plt>
mov    -0x974(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0x974(%rbp)
cltq
lea    -0x970(%rbp),%rsi
shl    $0x2,%rax
add    %rax,%rsi
lea    0xe2c(%rip),%rdi
mov    $0x0,%al
call   1050 <scanf@plt>
jmp    118d <main+0x4d>
mov    -0x974(%rbp),%eax
mov    %eax,-0x978(%rbp)
movl   $0x0,-0x97c(%rbp)
movl   $0x0,-0x980(%rbp)
lea    0xdff(%rip),%rdi
mov    $0x0,%al
call   1030 <printf@plt>
lea    0xdeb(%rip),%rdi
lea    -0x97c(%rbp),%rsi
mov    $0x0,%al
call   1050 <scanf@plt>
cmpl   $0x1,-0x97c(%rbp)
jne    1346 <main+0x206>
lea    0xe23(%rip),%rdi
mov    $0x0,%al
call   1030 <printf@plt>
lea    0xdbb(%rip),%rdi
lea    -0x984(%rbp),%rsi
mov    $0x0,%al
call   1050 <scanf@plt>
movl   $0x0,-0x980(%rbp)
mov    -0x984(%rbp),%ecx
movslq -0x980(%rbp),%rdx
xor    %eax,%eax
cmp    -0x970(%rbp,%rdx,4),%ecx
mov    %al,-0x9a2(%rbp)
je     12e1 <main+0x1a1>
mov    -0x980(%rbp),%eax
mov    %eax,%ecx
add    $0x1,%ecx
mov    %ecx,-0x980(%rbp)
cmp    -0x978(%rbp),%eax
setl   %al
mov    %al,-0x9a2(%rbp)
mov    -0x9a2(%rbp),%al
test   $0x1,%al
jne    12f4 <main+0x1b4>
jmp    12f9 <main+0x1b9>
jmp    129f <main+0x15f>
mov    -0x980(%rbp),%eax
cmp    -0x978(%rbp),%eax
jge    1333 <main+0x1f3>
movslq -0x980(%rbp),%rax
lea    -0x7e0(%rbp),%rsi
imul   $0x14,%rax,%rax
add    %rax,%rsi
lea    0xd8d(%rip),%rdi
mov    $0x0,%al
call   1030 <printf@plt>
jmp    1341 <main+0x201>
lea    0xd86(%rip),%rdi
mov    $0x0,%al
call   1030 <printf@plt>
jmp    146e <main+0x32e>
cmpl   $0x2,-0x97c(%rbp)
jne    1434 <main+0x2f4>
lea    0xd7f(%rip),%rdi
mov    $0x0,%al
call   1030 <printf@plt>
lea    -0x9a0(%rbp),%rsi
lea    0xcd6(%rip),%rdi
mov    $0x0,%al
call   1050 <scanf@plt>
movl   $0x0,-0x980(%rbp)
lea    -0x9a0(%rbp),%rdi
movslq -0x980(%rbp),%rax
lea    -0x7e0(%rbp),%rsi
imul   $0x14,%rax,%rax
add    %rax,%rsi
call   1040 <strcmp@plt>
mov    %rax,%rcx
xor    %eax,%eax
cmp    $0x0,%rcx
mov    %al,-0x9a3(%rbp)
je     13d6 <main+0x296>
mov    -0x980(%rbp),%eax
mov    %eax,%ecx
add    $0x1,%ecx
mov    %ecx,-0x980(%rbp)
cmp    -0x978(%rbp),%eax
setl   %al
mov    %al,-0x9a3(%rbp)
mov    -0x9a3(%rbp),%al
test   $0x1,%al
jne    13e9 <main+0x2a9>
jmp    13ee <main+0x2ae>
jmp    1380 <main+0x240>
mov    -0x980(%rbp),%eax
cmp    -0x978(%rbp),%eax
jge    1421 <main+0x2e1>
movslq -0x980(%rbp),%rax
mov    -0x970(%rbp,%rax,4),%esi
lea    0xcd5(%rip),%rdi
mov    $0x0,%al
call   1030 <printf@plt>
jmp    142f <main+0x2ef>
lea    0xc98(%rip),%rdi
mov    $0x0,%al
call   1030 <printf@plt>
jmp    1469 <main+0x329>
cmpl   $0x0,-0x97c(%rbp)
jne    1456 <main+0x316>
lea    0xcae(%rip),%rdi
mov    $0x0,%al
call   1030 <printf@plt>
xor    %edi,%edi
call   1060 <exit@plt>
lea    0xca2(%rip),%rdi
mov    $0x0,%al
call   1030 <printf@plt>
jmp    1469 <main+0x329>
jmp    146e <main+0x32e>
jmp    1242 <main+0x102>

x86 assembly (clang, -O2):
<main>:
push   %rbp
push   %r15
push   %r14
push   %r13
push   %r12
push   %rbx
sub    $0x998,%rsp
lea    0xedf(%rip),%rdi
call   1030 <puts@plt>
lea    0xe8c(%rip),%rdi
lea    0x30(%rsp),%rsi
xor    %eax,%eax
call   1060 <scanf@plt>
xor    %r12d,%r12d
cmpl   $0x0,0x30(%rsp)
je     11ec <main+0x9c>
lea    0x1c0(%rsp),%r13
lea    0xe6a(%rip),%r14
lea    0xe60(%rip),%r15
xor    %ebp,%ebp
xor    %ebx,%ebx
cs nopw 0x0(%rax,%rax,1)
xchg   %ax,%ax
mov    %r14,%rdi
mov    %r13,%rsi
xor    %eax,%eax
call   1060 <scanf@plt>
lea    0x1(%rbx),%r12
lea    0x34(%rsp),%rax
lea    (%rax,%rbp,1),%rsi
mov    %r15,%rdi
xor    %eax,%eax
call   1060 <scanf@plt>
cmpl   $0x0,0x34(%rsp,%rbx,4)
je     11ec <main+0x9c>
add    $0x14,%r13
add    $0x4,%rbp
cmp    $0x63,%rbx
mov    %r12,%rbx
jb     11b0 <main+0x60>
movabs $0x100000000,%r14
movl   $0x0,0x4(%rsp)
mov    %r12,0x8(%rsp)
lea    0x1(%r12),%r15d
lea    0xe79(%rip),%r12
lea    0xdea(%rip),%rbp
lea    0x4(%rsp),%r13
lea    0x10(%rsp),%rbx
jmp    123c <main+0xec>
cs nopw 0x0(%rax,%rax,1)
nopl   0x0(%rax)
lea    0xec3(%rip),%rdi
call   1030 <puts@plt>
mov    %r12,%rdi
call   1030 <puts@plt>
mov    %rbp,%rdi
mov    %r13,%rsi
xor    %eax,%eax
call   1060 <scanf@plt>
mov    0x4(%rsp),%eax
cmp    $0x1,%eax
je     1280 <main+0x130>
cmp    $0x2,%eax
je     12d0 <main+0x180>
test   %eax,%eax
je     13a4 <main+0x254>
lea    0xe6d(%rip),%rdi
call   1030 <puts@plt>
jmp    123c <main+0xec>
cs nopw 0x0(%rax,%rax,1)
nop
lea    0xd7f(%rip),%rdi
xor    %eax,%eax
call   1040 <printf@plt>
mov    %rbp,%rdi
mov    %rbx,%rsi
xor    %eax,%eax
call   1060 <scanf@plt>
mov    0x10(%rsp),%edx
xor    %eax,%eax
xor    %ecx,%ecx
cs nopw 0x0(%rax,%rax,1)
nopl   (%rax)
cmp    0x30(%rsp,%rcx,4),%edx
je     1322 <main+0x1d2>
add    $0x1,%rcx
add    %r14,%rax
cmp    %rcx,%r15
jne    12b0 <main+0x160>
jmp    1230 <main+0xe0>
nopw   0x0(%rax,%rax,1)
lea    0xd53(%rip),%rdi
xor    %eax,%eax
call   1040 <printf@plt>
lea    0xd1e(%rip),%rdi
mov    %rbx,%rsi
xor    %eax,%eax
call   1060 <scanf@plt>
lea    0x1c0(%rsp),%r12
xor    %r13d,%r13d
xor    %ebp,%ebp
nopl   0x0(%rax)
mov    %rbx,%rdi
mov    %r12,%rsi
call   1050 <strcmp@plt>
test   %rax,%rax
je     1352 <main+0x202>
add    $0x1,%rbp
add    %r14,%r13
add    $0x14,%r12
cmp    %rbp,%r15
jne    1300 <main+0x1b0>
jmp    1380 <main+0x230>
cmp    %ecx,0x8(%rsp)
jle    1230 <main+0xe0>
sar    $0x20,%rax
lea    (%rax,%rax,4),%rax
lea    (%rsp,%rax,4),%rsi
add    $0x1c0,%rsi
lea    0xcd8(%rip),%rdi
xor    %eax,%eax
call   1040 <printf@plt>
jmp    123c <main+0xec>
cmp    %ebp,0x8(%rsp)
jle    1380 <main+0x230>
sar    $0x1e,%r13
mov    0x30(%rsp,%r13,1),%esi
lea    0xcd3(%rip),%rdi
xor    %eax,%eax
call   1040 <printf@plt>
jmp    138c <main+0x23c>
cs nopw 0x0(%rax,%rax,1)
nopl   0x0(%rax,%rax,1)
lea    0xd73(%rip),%rdi
call   1030 <puts@plt>
lea    0xcf5(%rip),%r12
lea    0xc66(%rip),%rbp
lea    0x4(%rsp),%r13
jmp    123c <main+0xec>
lea    0xd47(%rip),%rdi
call   1030 <puts@plt>
xor    %edi,%edi
call   1070 <exit@plt>

LLVM IR (-O0):
@.str = [66 x i8] c"Enter the Details in format: \0A<Roll No.> <Name>\0APress 0 to quit \0A\00"
@.str.1 = [3 x i8] c"%d\00"
@.str.2 = [3 x i8] c"%s\00"
@.str.3 = [84 x i8] c"\0A \0A Select A Choise: \0A1. Search Via Roll Number \0A2. Search Via Name \0A0. to quit \0A \0A\00"
@.str.4 = [24 x i8] c"Enter the Roll Number: \00"
@.str.5 = [12 x i8] c"Name = %s \0A\00"
@.str.6 = [25 x i8] c"Sry!! No such Entry!!! \0A\00"
@.str.7 = [17 x i8] c"Enter the Name: \00"
@.str.8 = [12 x i8] c"Roll = %d \0A\00"
@.str.9 = [9 x i8] c"Bye!!! \0A\00"
@.str.10 = [24 x i8] c"Wrong Input Try Again \0A\00"
define i32 @main() {
%1 = alloca i32
%2 = alloca [100 x [20 x i8]]
%3 = alloca [100 x i32]
%4 = alloca i32
%5 = alloca i32
%6 = alloca i32
%7 = alloca i32
%8 = alloca i32
%9 = alloca [20 x i8]
store i32 0, i32* %1
store i32 0, i32* %4
%10 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([66 x i8], [66 x i8]* @.str, i64 0, i64 0))
%11 = load i32, i32* %4
%12 = sext i32 %11 to i64
%13 = getelementptr inbounds [100 x i32], [100 x i32]* %3, i64 0, i64 %12
%14 = call i32 (i8*, ...) @scanf(i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str.1, i64 0, i64 0), i32* %13)
br label %15
15: ; preds = %26, %0
%16 = load i32, i32* %4
%17 = sext i32 %16 to i64
%18 = getelementptr inbounds [100 x i32], [100 x i32]* %3, i64 0, i64 %17
%19 = load i32, i32* %18
%20 = icmp ne i32 %19, 0
br i1 %20, label %21, label %24
21: ; preds = %15
%22 = load i32, i32* %4
%23 = icmp slt i32 %22, 100
br label %24
24: ; preds = %21, %15
%25 = phi i1 [ false, %15 ], [ %23, %21 ]
br i1 %25, label %26, label %37
26: ; preds = %24
%27 = load i32, i32* %4
%28 = sext i32 %27 to i64
%29 = getelementptr inbounds [100 x [20 x i8]], [100 x [20 x i8]]* %2, i64 0, i64 %28
%30 = getelementptr inbounds [20 x i8], [20 x i8]* %29, i64 0, i64 0
%31 = call i32 (i8*, ...) @scanf(i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str.2, i64 0, i64 0), i8* %30)
%32 = load i32, i32* %4
%33 = add nsw i32 %32, 1
store i32 %33, i32* %4
%34 = sext i32 %33 to i64
%35 = getelementptr inbounds [100 x i32], [100 x i32]* %3, i64 0, i64 %34
%36 = call i32 (i8*, ...) @scanf(i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str.1, i64 0, i64 0), i32* %35)
br label %15
37: ; preds = %24
%38 = load i32, i32* %4
store i32 %38, i32* %5
store i32 0, i32* %6
store i32 0, i32* %7
br label %39
39: ; preds = %37, %121
%40 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([84 x i8], [84 x i8]* @.str.3, i64 0, i64 0))
%41 = call i32 (i8*, ...) @scanf(i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str.1, i64 0, i64 0), i32* %6)
%42 = load i32, i32* %6
%43 = icmp eq i32 %42, 1
br i1 %43, label %44, label %75
44: ; preds = %39
%45 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([24 x i8], [24 x i8]* @.str.4, i64 0, i64 0))
%46 = call i32 (i8*, ...) @scanf(i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str.1, i64 0, i64 0), i32* %8)
store i32 0, i32* %7
br label %47
47: ; preds = %61, %44
%48 = load i32, i32* %8
%49 = load i32, i32* %7
%50 = sext i32 %49 to i64
%51 = getelementptr inbounds [100 x i32], [100 x i32]* %3, i64 0, i64 %50
%52 = load i32, i32* %51
%53 = icmp ne i32 %48, %52
br i1 %53, label %54, label %59
54: ; preds = %47
%55 = load i32, i32* %7
%56 = add nsw i32 %55, 1
store i32 %56, i32* %7
%57 = load i32, i32* %5
%58 = icmp slt i32 %55, %57
br label %59
59: ; preds = %54, %47
%60 = phi i1 [ false, %47 ], [ %58, %54 ]
br i1 %60, label %61, label %62
61: ; preds = %59
br label %47
62: ; preds = %59
%63 = load i32, i32* %7
%64 = load i32, i32* %5
%65 = icmp slt i32 %63, %64
br i1 %65, label %66, label %72
66: ; preds = %62
%67 = load i32, i32* %7
%68 = sext i32 %67 to i64
%69 = getelementptr inbounds [100 x [20 x i8]], [100 x [20 x i8]]* %2, i64 0, i64 %68
%70 = getelementptr inbounds [20 x i8], [20 x i8]* %69, i64 0, i64 0
%71 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([12 x i8], [12 x i8]* @.str.5, i64 0, i64 0), i8* %70)
br label %74
72: ; preds = %62
%73 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([25 x i8], [25 x i8]* @.str.6, i64 0, i64 0))
br label %74
74: ; preds = %72, %66
br label %121
75: ; preds = %39
%76 = load i32, i32* %6
%77 = icmp eq i32 %76, 2
br i1 %77, label %78, label %111
78: ; preds = %75
%79 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([17 x i8], [17 x i8]* @.str.7, i64 0, i64 0))
%80 = getelementptr inbounds [20 x i8], [20 x i8]* %9, i64 0, i64 0
%81 = call i32 (i8*, ...) @scanf(i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str.2, i64 0, i64 0), i8* %80)
store i32 0, i32* %7
br label %82
82: ; preds = %97, %78
%83 = getelementptr inbounds [20 x i8], [20 x i8]* %9, i64 0, i64 0
%84 = load i32, i32* %7
%85 = sext i32 %84 to i64
%86 = getelementptr inbounds [100 x [20 x i8]], [100 x [20 x i8]]* %2, i64 0, i64 %85
%87 = getelementptr inbounds [20 x i8], [20 x i8]* %86, i64 0, i64 0
%88 = call i64 @strcmp(i8* %83, i8* %87)
%89 = icmp ne i64 %88, 0
br i1 %89, label %90, label %95
90: ; preds = %82
%91 = load i32, i32* %7
%92 = add nsw i32 %91, 1
store i32 %92, i32* %7
%93 = load i32, i32* %5
%94 = icmp slt i32 %91, %93
br label %95
95: ; preds = %90, %82
%96 = phi i1 [ false, %82 ], [ %94, %90 ]
br i1 %96, label %97, label %98
97: ; preds = %95
br label %82
98: ; preds = %95
%99 = load i32, i32* %7
%100 = load i32, i32* %5
%101 = icmp slt i32 %99, %100
br i1 %101, label %102, label %108
102: ; preds = %98
%103 = load i32, i32* %7
%104 = sext i32 %103 to i64
%105 = getelementptr inbounds [100 x i32], [100 x i32]* %3, i64 0, i64 %104
%106 = load i32, i32* %105
%107 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([12 x i8], [12 x i8]* @.str.8, i64 0, i64 0), i32 %106)
br label %110
108: ; preds = %98
%109 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([25 x i8], [25 x i8]* @.str.6, i64 0, i64 0))
br label %110
110: ; preds = %108, %102
br label %120
111: ; preds = %75
%112 = load i32, i32* %6
%113 = icmp eq i32 %112, 0
br i1 %113, label %114, label %117
114: ; preds = %111
%115 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([9 x i8], [9 x i8]* @.str.9, i64 0, i64 0))
%116 = call i32 @exit(i32 0)
unreachable
117: ; preds = %111
%118 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([24 x i8], [24 x i8]* @.str.10, i64 0, i64 0))
br label %119
119: ; preds = %117
br label %120
120: ; preds = %119, %110
br label %121
121: ; preds = %120, %74
br label %39
}

LLVM IR (-O2):
@.str.1 = [3 x i8] c"%d\00"
@.str.2 = [3 x i8] c"%s\00"
@.str.4 = [24 x i8] c"Enter the Roll Number: \00"
@.str.5 = [12 x i8] c"Name = %s \0A\00"
@.str.7 = [17 x i8] c"Enter the Name: \00"
@.str.8 = [12 x i8] c"Roll = %d \0A\00"
@str = [65 x i8] c"Enter the Details in format: \0A<Roll No.> <Name>\0APress 0 to quit \00"
@str.11 = [83 x i8] c"\0A \0A Select A Choise: \0A1. Search Via Roll Number \0A2. Search Via Name \0A0. to quit \0A \00"
@str.12 = [23 x i8] c"Wrong Input Try Again \00"
@str.13 = [8 x i8] c"Bye!!! \00"
@str.15 = [24 x i8] c"Sry!! No such Entry!!! \00"
define i32 @main() {
%1 = alloca [100 x [20 x i8]]
%2 = alloca [100 x i32]
%3 = alloca i32
%4 = alloca i32
%5 = alloca [20 x i8]
%6 = getelementptr inbounds [100 x [20 x i8]], [100 x [20 x i8]]* %1, i64 0, i64 0, i64 0
%7 = bitcast [100 x i32]* %2 to i8*
%8 = tail call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([65 x i8], [65 x i8]* @str, i64 0, i64 0))
%9 = getelementptr inbounds [100 x i32], [100 x i32]* %2, i64 0, i64 0
%10 = call i32 (i8*, ...) @scanf(i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str.1, i64 0, i64 0), i32* %9)
%11 = load i32, i32* %9
%12 = icmp eq i32 %11, 0
br i1 %12, label %26, label %13
13: ; preds = %0, %13
%14 = phi i64 [ %17, %13 ], [ 0, %0 ]
%15 = getelementptr inbounds [100 x [20 x i8]], [100 x [20 x i8]]* %1, i64 0, i64 %14, i64 0
%16 = call i32 (i8*, ...) @scanf(i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str.2, i64 0, i64 0), i8* %15)
%17 = add nuw nsw i64 %14, 1
%18 = getelementptr inbounds [100 x i32], [100 x i32]* %2, i64 0, i64 %17
%19 = call i32 (i8*, ...) @scanf(i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str.1, i64 0, i64 0), i32* %18)
%20 = load i32, i32* %18
%21 = icmp ne i32 %20, 0
%22 = icmp ult i64 %14, 99
%23 = select i1 %21, i1 %22, i1 false
br i1 %23, label %13, label %24
24: ; preds = %13
%25 = trunc i64 %17 to i32
br label %26
26: ; preds = %24, %0
%27 = phi i32 [ 0, %0 ], [ %25, %24 ]
%28 = bitcast i32* %3 to i8*
store i32 0, i32* %3
%29 = getelementptr inbounds [20 x i8], [20 x i8]* %5, i64 0, i64 0
%30 = bitcast i32* %4 to i8*
%31 = add nuw nsw i32 %27, 1
%32 = zext i32 %31 to i64
%33 = zext i32 %31 to i64
br label %34
34: ; preds = %84, %26
%35 = call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([83 x i8], [83 x i8]* @str.11, i64 0, i64 0))
%36 = call i32 (i8*, ...) @scanf(i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str.1, i64 0, i64 0), i32* %3)
%37 = load i32, i32* %3
switch i32 %37, label %88 [
i32 1, label %38
i32 2, label %61
i32 0, label %85
]
38: ; preds = %34
%39 = call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([24 x i8], [24 x i8]* @.str.4, i64 0, i64 0))
%40 = call i32 (i8*, ...) @scanf(i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str.1, i64 0, i64 0), i32* %4)
%41 = load i32, i32* %4
br label %42
42: ; preds = %47, %38
%43 = phi i64 [ %48, %47 ], [ 0, %38 ]
%44 = getelementptr inbounds [100 x i32], [100 x i32]* %2, i64 0, i64 %43
%45 = load i32, i32* %44
%46 = icmp eq i32 %41, %45
br i1 %46, label %50, label %47
47: ; preds = %42
%48 = add nuw nsw i64 %43, 1
%49 = icmp eq i64 %48, %33
br i1 %49, label %58, label %42
50: ; preds = %42
%51 = trunc i64 %43 to i32
%52 = icmp sgt i32 %27, %51
br i1 %52, label %53, label %58
53: ; preds = %50
%54 = shl i64 %43, 32
%55 = ashr exact i64 %54, 32
%56 = getelementptr inbounds [100 x [20 x i8]], [100 x [20 x i8]]* %1, i64 0, i64 %55, i64 0
%57 = call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([12 x i8], [12 x i8]* @.str.5, i64 0, i64 0), i8* %56)
br label %60
58: ; preds = %47, %50
%59 = call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([24 x i8], [24 x i8]* @str.15, i64 0, i64 0))
br label %60
60: ; preds = %58, %53
br label %84
61: ; preds = %34
%62 = call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([17 x i8], [17 x i8]* @.str.7, i64 0, i64 0))
%63 = call i32 (i8*, ...) @scanf(i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str.2, i64 0, i64 0), i8* %29)
br label %64
64: ; preds = %69, %61
%65 = phi i64 [ %70, %69 ], [ 0, %61 ]
%66 = getelementptr inbounds [100 x [20 x i8]], [100 x [20 x i8]]* %1, i64 0, i64 %65, i64 0
%67 = call i64 @strcmp(i8* %29, i8* %66)
%68 = icmp eq i64 %67, 0
br i1 %68, label %72, label %69
69: ; preds = %64
%70 = add nuw nsw i64 %65, 1
%71 = icmp eq i64 %70, %32
br i1 %71, label %81, label %64
72: ; preds = %64
%73 = trunc i64 %65 to i32
%74 = icmp sgt i32 %27, %73
br i1 %74, label %75, label %81
75: ; preds = %72
%76 = shl i64 %65, 32
%77 = ashr exact i64 %76, 32
%78 = getelementptr inbounds [100 x i32], [100 x i32]* %2, i64 0, i64 %77
%79 = load i32, i32* %78
%80 = call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([12 x i8], [12 x i8]* @.str.8, i64 0, i64 0), i32 %79)
br label %83
81: ; preds = %69, %72
%82 = call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([24 x i8], [24 x i8]* @str.15, i64 0, i64 0))
br label %83
83: ; preds = %81, %75
br label %84
84: ; preds = %83, %88, %60
br label %34
85: ; preds = %34
%86 = call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([8 x i8], [8 x i8]* @str.13, i64 0, i64 0))
%87 = call i32 @exit(i32 0)
unreachable
88: ; preds = %34
%89 = call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([23 x i8], [23 x i8]* @str.12, i64 0, i64 0))
br label %84
}