#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*/ arpr(int *);
int /*<<< orphan*/ printf(char *, ...);
int /*<<< orphan*/ scanf(char *, int *);
void main() {
  int arr[10];
  int i, j, del_pos, mod_pos, no2bs;
  printf("Enter: ");
  for (i = 0; i < 10; i++) {
    scanf("%d", &arr[i]);
  }
  do {
    printf("---Enter---\n1 to insert\n2 to delete\n3 to modify\n4 to search\n5 "
           "to escape\n");
    scanf("%d", &j);
    switch (j) {
    case 1:
      break;
    case 2:
      printf("Enter position to be deleted: ");
      scanf("%d", &del_pos);
      for (i = del_pos - 1; i < 10; i++) {
        arr[i] = arr[i + 1];
      }
      arpr(&arr[0]);
      break;
    case 3:
      printf("Enter the position to be modified: ");
      scanf("%d", &mod_pos);
      printf("Enter new element: ");
      scanf("%d", &arr[mod_pos - 1]);
      arpr(&arr[0]);
      break;
    case 4:
      printf("Enter no to be  searched : ");
      scanf("%d", &no2bs);
      for (i = 0; i < 10; i++) {
        if (no2bs == arr[i])
          printf("Found @ : %d\n", i + 1);
      }
      arpr(&arr[0]);
      break;
    }
  } while (j != 5);
}


x86 assembly (clang, -O0):
<main>:
push   %rbp
mov    %rsp,%rbp
sub    $0x50,%rsp
lea    0xed1(%rip),%rdi
mov    $0x0,%al
call   1030 <printf@plt>
movl   $0x0,-0x34(%rbp)
cmpl   $0xa,-0x34(%rbp)
jge    1180 <main+0x50>
movslq -0x34(%rbp),%rax
lea    -0x30(%rbp),%rsi
shl    $0x2,%rax
add    %rax,%rsi
lea    0xeab(%rip),%rdi
call   1040 <scanf@plt>
mov    -0x34(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0x34(%rbp)
jmp    114d <main+0x1d>
jmp    1185 <main+0x55>
lea    0xe8f(%rip),%rdi
xor    %eax,%eax
call   1030 <printf@plt>
lea    0xe7e(%rip),%rdi
lea    -0x38(%rbp),%rsi
call   1040 <scanf@plt>
mov    -0x38(%rbp),%eax
add    $0xffffffff,%eax
mov    %eax,%ecx
mov    %rcx,-0x50(%rbp)
sub    $0x3,%eax
ja     12fb <main+0x1cb>
mov    -0x50(%rbp),%rax
lea    0xe3d(%rip),%rcx
movslq (%rcx,%rax,4),%rax
add    %rcx,%rax
jmp    *%rax
jmp    12fb <main+0x1cb>
lea    0xe8c(%rip),%rdi
mov    $0x0,%al
call   1030 <printf@plt>
lea    0xe32(%rip),%rdi
lea    -0x3c(%rbp),%rsi
call   1040 <scanf@plt>
mov    -0x3c(%rbp),%eax
sub    $0x1,%eax
mov    %eax,-0x34(%rbp)
cmpl   $0xa,-0x34(%rbp)
jge    1224 <main+0xf4>
mov    -0x34(%rbp),%eax
add    $0x1,%eax
cltq
mov    -0x30(%rbp,%rax,4),%ecx
movslq -0x34(%rbp),%rax
mov    %ecx,-0x30(%rbp,%rax,4)
mov    -0x34(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0x34(%rbp)
jmp    11f8 <main+0xc8>
lea    -0x30(%rbp),%rdi
call   1050 <arpr@plt>
jmp    12fb <main+0x1cb>
lea    0xe4a(%rip),%rdi
mov    $0x0,%al
call   1030 <printf@plt>
lea    0xdd1(%rip),%rdi
lea    -0x40(%rbp),%rsi
call   1040 <scanf@plt>
lea    0xe50(%rip),%rdi
mov    $0x0,%al
call   1030 <printf@plt>
mov    -0x40(%rbp),%eax
sub    $0x1,%eax
cltq
lea    -0x30(%rbp),%rsi
shl    $0x2,%rax
add    %rax,%rsi
lea    0xda0(%rip),%rdi
call   1040 <scanf@plt>
lea    -0x30(%rbp),%rdi
call   1050 <arpr@plt>
jmp    12fb <main+0x1cb>
lea    0xe29(%rip),%rdi
mov    $0x0,%al
call   1030 <printf@plt>
lea    0xd78(%rip),%rdi
lea    -0x44(%rbp),%rsi
call   1040 <scanf@plt>
movl   $0x0,-0x34(%rbp)
cmpl   $0xa,-0x34(%rbp)
jge    12f2 <main+0x1c2>
mov    -0x44(%rbp),%eax
movslq -0x34(%rbp),%rcx
cmp    -0x30(%rbp,%rcx,4),%eax
jne    12df <main+0x1af>
mov    -0x34(%rbp),%esi
add    $0x1,%esi
lea    0xdff(%rip),%rdi
mov    $0x0,%al
call   1030 <printf@plt>
jmp    12e4 <main+0x1b4>
mov    -0x34(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0x34(%rbp)
jmp    12b0 <main+0x180>
lea    -0x30(%rbp),%rdi
call   1050 <arpr@plt>
jmp    1300 <main+0x1d0>
cmpl   $0x5,-0x38(%rbp)
jne    1185 <main+0x55>
add    $0x50,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<main>:
push   %rbp
push   %r15
push   %r14
push   %r13
push   %r12
push   %rbx
sub    $0x48,%rsp
lea    0xeab(%rip),%rdi
xor    %eax,%eax
call   1040 <printf@plt>
lea    0xea5(%rip),%r14
lea    0x10(%rsp),%rbx
mov    %r14,%rdi
mov    %rbx,%rsi
call   1050 <scanf@plt>
lea    0x14(%rsp),%rsi
mov    %r14,%rdi
call   1050 <scanf@plt>
lea    0x18(%rsp),%rsi
mov    %r14,%rdi
call   1050 <scanf@plt>
lea    0x1c(%rsp),%rsi
mov    %r14,%rdi
call   1050 <scanf@plt>
lea    0x20(%rsp),%rsi
mov    %r14,%rdi
call   1050 <scanf@plt>
lea    0x24(%rsp),%rsi
mov    %r14,%rdi
call   1050 <scanf@plt>
lea    0x28(%rsp),%rsi
mov    %r14,%rdi
call   1050 <scanf@plt>
lea    0x2c(%rsp),%rsi
mov    %r14,%rdi
call   1050 <scanf@plt>
lea    0x30(%rsp),%rsi
mov    %r14,%rdi
call   1050 <scanf@plt>
lea    0x34(%rsp),%rsi
mov    %r14,%rdi
call   1050 <scanf@plt>
lea    0xe9d(%rip),%r15
lea    0xc(%rsp),%r12
lea    0xe67(%rip),%rbp
lea    0xe7c(%rip),%r13
jmp    1263 <main+0x123>
cs nopw 0x0(%rax,%rax,1)
xchg   %ax,%ax
lea    0xe13(%rip),%rdi
xor    %eax,%eax
call   1040 <printf@plt>
mov    %r14,%rdi
lea    0x40(%rsp),%rsi
call   1050 <scanf@plt>
lea    0xe1c(%rip),%rdi
xor    %eax,%eax
call   1040 <printf@plt>
movslq 0x40(%rsp),%rax
lea    (%rsp,%rax,4),%rsi
add    $0xc,%rsi
mov    %r14,%rdi
call   1050 <scanf@plt>
mov    %rbx,%rdi
call   1060 <arpr@plt>
mov    0xc(%rsp),%eax
cmp    $0x5,%eax
je     153d <main+0x3fd>
mov    %r15,%rdi
call   1030 <puts@plt>
mov    %r14,%rdi
mov    %r12,%rsi
call   1050 <scanf@plt>
mov    0xc(%rsp),%eax
cmp    $0x4,%eax
je     13a0 <main+0x260>
cmp    $0x3,%eax
je     1210 <main+0xd0>
cmp    $0x2,%eax
jne    125a <main+0x11a>
lea    0xd77(%rip),%rdi
xor    %eax,%eax
call   1040 <printf@plt>
mov    %r14,%rdi
lea    0x44(%rsp),%rsi
call   1050 <scanf@plt>
mov    0x44(%rsp),%eax
cmp    $0xa,%eax
jg     124e <main+0x10e>
add    $0xffffffff,%eax
cltq
cmp    $0xa,%rax
mov    $0x9,%ecx
cmovge %rax,%rcx
sub    %rax,%rcx
add    $0x1,%rcx
cmp    $0x8,%rcx
jb     1370 <main+0x230>
mov    %rbp,%r9
mov    %rcx,%rdx
and    $0xfffffffffffffff8,%rdx
lea    -0x8(%rdx),%rsi
mov    %rsi,%rbp
shr    $0x3,%rbp
add    $0x1,%rbp
test   %rsi,%rsi
je     1529 <main+0x3e9>
mov    %rbp,%rsi
and    $0xfffffffffffffffe,%rsi
mov    %rbx,%r8
lea    (%rbx,%rax,4),%rbx
add    $0x34,%rbx
xor    %edi,%edi
nopw   0x0(%rax,%rax,1)
movups -0x30(%rbx,%rdi,4),%xmm0
movups -0x20(%rbx,%rdi,4),%xmm1
movups -0x10(%rbx,%rdi,4),%xmm2
movups (%rbx,%rdi,4),%xmm3
movups %xmm0,-0x34(%rbx,%rdi,4)
movups %xmm1,-0x24(%rbx,%rdi,4)
movups %xmm2,-0x14(%rbx,%rdi,4)
movups %xmm3,-0x4(%rbx,%rdi,4)
add    $0x10,%rdi
add    $0xfffffffffffffffe,%rsi
jne    1310 <main+0x1d0>
test   $0x1,%bpl
je     135e <main+0x21e>
add    %rax,%rdi
movups 0x14(%rsp,%rdi,4),%xmm0
movups 0x24(%rsp,%rdi,4),%xmm1
movups %xmm0,0x10(%rsp,%rdi,4)
movups %xmm1,0x20(%rsp,%rdi,4)
cmp    %rdx,%rcx
mov    %r8,%rbx
mov    %r9,%rbp
je     124e <main+0x10e>
add    %rdx,%rax
add    $0xffffffffffffffff,%rax
cs nopw 0x0(%rax,%rax,1)
xchg   %ax,%ax
mov    0x18(%rsp,%rax,4),%ecx
mov    %ecx,0x14(%rsp,%rax,4)
add    $0x1,%rax
cmp    $0x9,%rax
jl     1380 <main+0x240>
jmp    124e <main+0x10e>
nopw   0x0(%rax,%rax,1)
mov    %rbp,%rdi
xor    %eax,%eax
call   1040 <printf@plt>
mov    %r14,%rdi
lea    0x8(%rsp),%rsi
call   1050 <scanf@plt>
mov    0x8(%rsp),%eax
cmp    0x10(%rsp),%eax
je     1418 <main+0x2d8>
cmp    0x14(%rsp),%eax
je     1431 <main+0x2f1>
cmp    0x18(%rsp),%eax
je     144a <main+0x30a>
cmp    0x1c(%rsp),%eax
je     1467 <main+0x327>
cmp    0x20(%rsp),%eax
je     1484 <main+0x344>
cmp    0x24(%rsp),%eax
je     14a1 <main+0x361>
cmp    0x28(%rsp),%eax
je     14be <main+0x37e>
cmp    0x2c(%rsp),%eax
je     14db <main+0x39b>
cmp    0x30(%rsp),%eax
je     14f8 <main+0x3b8>
cmp    0x34(%rsp),%eax
jne    124e <main+0x10e>
jmp    1515 <main+0x3d5>
mov    %r13,%rdi
mov    $0x1,%esi
xor    %eax,%eax
call   1040 <printf@plt>
mov    0x8(%rsp),%eax
cmp    0x14(%rsp),%eax
jne    13c7 <main+0x287>
mov    %r13,%rdi
mov    $0x2,%esi
xor    %eax,%eax
call   1040 <printf@plt>
mov    0x8(%rsp),%eax
cmp    0x18(%rsp),%eax
jne    13cd <main+0x28d>
mov    %r13,%rdi
mov    $0x3,%esi
xor    %eax,%eax
call   1040 <printf@plt>
mov    0x8(%rsp),%eax
cmp    0x1c(%rsp),%eax
jne    13d7 <main+0x297>
mov    %r13,%rdi
mov    $0x4,%esi
xor    %eax,%eax
call   1040 <printf@plt>
mov    0x8(%rsp),%eax
cmp    0x20(%rsp),%eax
jne    13e1 <main+0x2a1>
mov    %r13,%rdi
mov    $0x5,%esi
xor    %eax,%eax
call   1040 <printf@plt>
mov    0x8(%rsp),%eax
cmp    0x24(%rsp),%eax
jne    13eb <main+0x2ab>
mov    %r13,%rdi
mov    $0x6,%esi
xor    %eax,%eax
call   1040 <printf@plt>
mov    0x8(%rsp),%eax
cmp    0x28(%rsp),%eax
jne    13f5 <main+0x2b5>
mov    %r13,%rdi
mov    $0x7,%esi
xor    %eax,%eax
call   1040 <printf@plt>
mov    0x8(%rsp),%eax
cmp    0x2c(%rsp),%eax
jne    13ff <main+0x2bf>
mov    %r13,%rdi
mov    $0x8,%esi
xor    %eax,%eax
call   1040 <printf@plt>
mov    0x8(%rsp),%eax
cmp    0x30(%rsp),%eax
jne    1409 <main+0x2c9>
mov    %r13,%rdi
mov    $0x9,%esi
xor    %eax,%eax
call   1040 <printf@plt>
mov    0x8(%rsp),%eax
cmp    0x34(%rsp),%eax
jne    124e <main+0x10e>
mov    %r13,%rdi
mov    $0xa,%esi
xor    %eax,%eax
call   1040 <printf@plt>
jmp    124e <main+0x10e>
mov    %rbx,%r8
xor    %edi,%edi
test   $0x1,%bpl
jne    1347 <main+0x207>
jmp    135e <main+0x21e>
add    $0x48,%rsp
pop    %rbx
pop    %r12
pop    %r13
pop    %r14
pop    %r15
pop    %rbp
ret

LLVM IR (-O0):
@.str = [8 x i8] c"Enter: \00"
@.str.1 = [3 x i8] c"%d\00"
@.str.2 = [73 x i8] c"---Enter---\0A1 to insert\0A2 to delete\0A3 to modify\0A4 to search\0A5 to escape\0A\00"
@.str.3 = [31 x i8] c"Enter position to be deleted: \00"
@.str.4 = [36 x i8] c"Enter the position to be modified: \00"
@.str.5 = [20 x i8] c"Enter new element: \00"
@.str.6 = [28 x i8] c"Enter no to be searched : \00"
@.str.7 = [14 x i8] c"Found @ : %d\0A\00"
define void @main() {
%1 = alloca [10 x i32]
%2 = alloca i32
%3 = alloca i32
%4 = alloca i32
%5 = alloca i32
%6 = alloca i32
%7 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([8 x i8], [8 x i8]* @.str, i64 0, i64 0))
store i32 0, i32* %2
br label %8
8: ; preds = %16, %0
%9 = load i32, i32* %2
%10 = icmp slt i32 %9, 10
br i1 %10, label %11, label %19
11: ; preds = %8
%12 = load i32, i32* %2
%13 = sext i32 %12 to i64
%14 = getelementptr inbounds [10 x i32], [10 x i32]* %1, i64 0, i64 %13
%15 = call i32 @scanf(i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str.1, i64 0, i64 0), i32* %14)
br label %16
16: ; preds = %11
%17 = load i32, i32* %2
%18 = add nsw i32 %17, 1
store i32 %18, i32* %2
br label %8
19: ; preds = %8
br label %20
20: ; preds = %84, %19
%21 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([73 x i8], [73 x i8]* @.str.2, i64 0, i64 0))
%22 = call i32 @scanf(i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str.1, i64 0, i64 0), i32* %3)
%23 = load i32, i32* %3
switch i32 %23, label %83 [
i32 1, label %24
i32 2, label %25
i32 3, label %48
i32 4, label %59
]
24: ; preds = %20
br label %83
25: ; preds = %20
%26 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([31 x i8], [31 x i8]* @.str.3, i64 0, i64 0))
%27 = call i32 @scanf(i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str.1, i64 0, i64 0), i32* %4)
%28 = load i32, i32* %4
%29 = sub nsw i32 %28, 1
store i32 %29, i32* %2
br label %30
30: ; preds = %42, %25
%31 = load i32, i32* %2
%32 = icmp slt i32 %31, 10
br i1 %32, label %33, label %45
33: ; preds = %30
%34 = load i32, i32* %2
%35 = add nsw i32 %34, 1
%36 = sext i32 %35 to i64
%37 = getelementptr inbounds [10 x i32], [10 x i32]* %1, i64 0, i64 %36
%38 = load i32, i32* %37
%39 = load i32, i32* %2
%40 = sext i32 %39 to i64
%41 = getelementptr inbounds [10 x i32], [10 x i32]* %1, i64 0, i64 %40
store i32 %38, i32* %41
br label %42
42: ; preds = %33
%43 = load i32, i32* %2
%44 = add nsw i32 %43, 1
store i32 %44, i32* %2
br label %30
45: ; preds = %30
%46 = getelementptr inbounds [10 x i32], [10 x i32]* %1, i64 0, i64 0
%47 = call i32 @arpr(i32* %46)
br label %83
48: ; preds = %20
%49 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([36 x i8], [36 x i8]* @.str.4, i64 0, i64 0))
%50 = call i32 @scanf(i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str.1, i64 0, i64 0), i32* %5)
%51 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([20 x i8], [20 x i8]* @.str.5, i64 0, i64 0))
%52 = load i32, i32* %5
%53 = sub nsw i32 %52, 1
%54 = sext i32 %53 to i64
%55 = getelementptr inbounds [10 x i32], [10 x i32]* %1, i64 0, i64 %54
%56 = call i32 @scanf(i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str.1, i64 0, i64 0), i32* %55)
%57 = getelementptr inbounds [10 x i32], [10 x i32]* %1, i64 0, i64 0
%58 = call i32 @arpr(i32* %57)
br label %83
59: ; preds = %20
%60 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([28 x i8], [28 x i8]* @.str.6, i64 0, i64 0))
%61 = call i32 @scanf(i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str.1, i64 0, i64 0), i32* %6)
store i32 0, i32* %2
br label %62
62: ; preds = %77, %59
%63 = load i32, i32* %2
%64 = icmp slt i32 %63, 10
br i1 %64, label %65, label %80
65: ; preds = %62
%66 = load i32, i32* %6
%67 = load i32, i32* %2
%68 = sext i32 %67 to i64
%69 = getelementptr inbounds [10 x i32], [10 x i32]* %1, i64 0, i64 %68
%70 = load i32, i32* %69
%71 = icmp eq i32 %66, %70
br i1 %71, label %72, label %76
72: ; preds = %65
%73 = load i32, i32* %2
%74 = add nsw i32 %73, 1
%75 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([14 x i8], [14 x i8]* @.str.7, i64 0, i64 0), i32 %74)
br label %76
76: ; preds = %72, %65
br label %77
77: ; preds = %76
%78 = load i32, i32* %2
%79 = add nsw i32 %78, 1
store i32 %79, i32* %2
br label %62
80: ; preds = %62
%81 = getelementptr inbounds [10 x i32], [10 x i32]* %1, i64 0, i64 0
%82 = call i32 @arpr(i32* %81)
br label %83
83: ; preds = %20, %80, %48, %45, %24
br label %84
84: ; preds = %83
%85 = load i32, i32* %3
%86 = icmp ne i32 %85, 5
br i1 %86, label %20, label %87
87: ; preds = %84
ret void
}

LLVM IR (-O2):
@.str = [8 x i8] c"Enter: \00"
@.str.1 = [3 x i8] c"%d\00"
@.str.3 = [31 x i8] c"Enter position to be deleted: \00"
@.str.4 = [36 x i8] c"Enter the position to be modified: \00"
@.str.5 = [20 x i8] c"Enter new element: \00"
@.str.6 = [28 x i8] c"Enter no to be searched : \00"
@.str.7 = [14 x i8] c"Found @ : %d\0A\00"
@str = [72 x i8] c"---Enter---\0A1 to insert\0A2 to delete\0A3 to modify\0A4 to search\0A5 to escape\00"
define void @main() {
%1 = alloca [10 x i32]
%2 = alloca i32
%3 = alloca i32
%4 = alloca i32
%5 = alloca i32
%6 = bitcast [10 x i32]* %1 to i8*
%7 = bitcast i32* %2 to i8*
%8 = bitcast i32* %3 to i8*
%9 = bitcast i32* %4 to i8*
%10 = bitcast i32* %5 to i8*
%11 = tail call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([8 x i8], [8 x i8]* @.str, i64 0, i64 0))
%12 = getelementptr inbounds [10 x i32], [10 x i32]* %1, i64 0, i64 0
%13 = call i32 @scanf(i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str.1, i64 0, i64 0), i32* %12)
%14 = getelementptr inbounds [10 x i32], [10 x i32]* %1, i64 0, i64 1
%15 = call i32 @scanf(i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str.1, i64 0, i64 0), i32* %14)
%16 = getelementptr inbounds [10 x i32], [10 x i32]* %1, i64 0, i64 2
%17 = call i32 @scanf(i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str.1, i64 0, i64 0), i32* %16)
%18 = getelementptr inbounds [10 x i32], [10 x i32]* %1, i64 0, i64 3
%19 = call i32 @scanf(i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str.1, i64 0, i64 0), i32* %18)
%20 = getelementptr inbounds [10 x i32], [10 x i32]* %1, i64 0, i64 4
%21 = call i32 @scanf(i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str.1, i64 0, i64 0), i32* %20)
%22 = getelementptr inbounds [10 x i32], [10 x i32]* %1, i64 0, i64 5
%23 = call i32 @scanf(i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str.1, i64 0, i64 0), i32* %22)
%24 = getelementptr inbounds [10 x i32], [10 x i32]* %1, i64 0, i64 6
%25 = call i32 @scanf(i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str.1, i64 0, i64 0), i32* %24)
%26 = getelementptr inbounds [10 x i32], [10 x i32]* %1, i64 0, i64 7
%27 = call i32 @scanf(i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str.1, i64 0, i64 0), i32* %26)
%28 = getelementptr inbounds [10 x i32], [10 x i32]* %1, i64 0, i64 8
%29 = call i32 @scanf(i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str.1, i64 0, i64 0), i32* %28)
%30 = getelementptr inbounds [10 x i32], [10 x i32]* %1, i64 0, i64 9
%31 = call i32 @scanf(i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str.1, i64 0, i64 0), i32* %30)
br label %32
32: ; preds = %0, %199
%33 = call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([72 x i8], [72 x i8]* @str, i64 0, i64 0))
%34 = call i32 @scanf(i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str.1, i64 0, i64 0), i32* %2)
%35 = load i32, i32* %2
switch i32 %35, label %199 [
i32 4, label %125
i32 2, label %36
i32 3, label %116
]
36: ; preds = %32
%37 = call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([31 x i8], [31 x i8]* @.str.3, i64 0, i64 0))
%38 = call i32 @scanf(i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str.1, i64 0, i64 0), i32* %3)
%39 = load i32, i32* %3
%40 = icmp slt i32 %39, 11
br i1 %40, label %41, label %196
41: ; preds = %36
%42 = add i32 %39, -1
%43 = sext i32 %42 to i64
%44 = call i64 @llvm.smax.i64(i64 %43, i64 9)
%45 = add nuw i64 %44, 1
%46 = sub i64 %45, %43
%47 = icmp ult i64 %46, 8
br i1 %47, label %107, label %48
48: ; preds = %41
%49 = and i64 %46, -8
%50 = add i64 %49, %43
%51 = add i64 %49, -8
%52 = lshr exact i64 %51, 3
%53 = add nuw nsw i64 %52, 1
%54 = and i64 %53, 1
%55 = icmp eq i64 %51, 0
br i1 %55, label %89, label %56
56: ; preds = %48
%57 = and i64 %53, 4611686018427387902
br label %58
58: ; preds = %58, %56
%59 = phi i64 [ 0, %56 ], [ %86, %58 ]
%60 = phi i64 [ 0, %56 ], [ %87, %58 ]
%61 = add i64 %59, %43
%62 = add nsw i64 %61, 1
%63 = getelementptr inbounds [10 x i32], [10 x i32]* %1, i64 0, i64 %62
%64 = bitcast i32* %63 to <4 x i32>*
%65 = load <4 x i32>, <4 x i32>* %64
%66 = getelementptr inbounds i32, i32* %63, i64 4
%67 = bitcast i32* %66 to <4 x i32>*
%68 = load <4 x i32>, <4 x i32>* %67
%69 = getelementptr inbounds [10 x i32], [10 x i32]* %1, i64 0, i64 %61
%70 = bitcast i32* %69 to <4 x i32>*
store <4 x i32> %65, <4 x i32>* %70
%71 = getelementptr inbounds i32, i32* %69, i64 4
%72 = bitcast i32* %71 to <4 x i32>*
store <4 x i32> %68, <4 x i32>* %72
%73 = or i64 %59, 8
%74 = add i64 %73, %43
%75 = add nsw i64 %74, 1
%76 = getelementptr inbounds [10 x i32], [10 x i32]* %1, i64 0, i64 %75
%77 = bitcast i32* %76 to <4 x i32>*
%78 = load <4 x i32>, <4 x i32>* %77
%79 = getelementptr inbounds i32, i32* %76, i64 4
%80 = bitcast i32* %79 to <4 x i32>*
%81 = load <4 x i32>, <4 x i32>* %80
%82 = getelementptr inbounds [10 x i32], [10 x i32]* %1, i64 0, i64 %74
%83 = bitcast i32* %82 to <4 x i32>*
store <4 x i32> %78, <4 x i32>* %83
%84 = getelementptr inbounds i32, i32* %82, i64 4
%85 = bitcast i32* %84 to <4 x i32>*
store <4 x i32> %81, <4 x i32>* %85
%86 = add nuw i64 %59, 16
%87 = add i64 %60, 2
%88 = icmp eq i64 %87, %57
br i1 %88, label %89, label %58
89: ; preds = %58, %48
%90 = phi i64 [ 0, %48 ], [ %86, %58 ]
%91 = icmp eq i64 %54, 0
br i1 %91, label %105, label %92
92: ; preds = %89
%93 = add i64 %90, %43
%94 = add nsw i64 %93, 1
%95 = getelementptr inbounds [10 x i32], [10 x i32]* %1, i64 0, i64 %94
%96 = bitcast i32* %95 to <4 x i32>*
%97 = load <4 x i32>, <4 x i32>* %96
%98 = getelementptr inbounds i32, i32* %95, i64 4
%99 = bitcast i32* %98 to <4 x i32>*
%100 = load <4 x i32>, <4 x i32>* %99
%101 = getelementptr inbounds [10 x i32], [10 x i32]* %1, i64 0, i64 %93
%102 = bitcast i32* %101 to <4 x i32>*
store <4 x i32> %97, <4 x i32>* %102
%103 = getelementptr inbounds i32, i32* %101, i64 4
%104 = bitcast i32* %103 to <4 x i32>*
store <4 x i32> %100, <4 x i32>* %104
br label %105
105: ; preds = %89, %92
%106 = icmp eq i64 %46, %49
br i1 %106, label %196, label %107
107: ; preds = %41, %105
%108 = phi i64 [ %43, %41 ], [ %50, %105 ]
br label %109
109: ; preds = %107, %109
%110 = phi i64 [ %111, %109 ], [ %108, %107 ]
%111 = add nsw i64 %110, 1
%112 = getelementptr inbounds [10 x i32], [10 x i32]* %1, i64 0, i64 %111
%113 = load i32, i32* %112
%114 = getelementptr inbounds [10 x i32], [10 x i32]* %1, i64 0, i64 %110
store i32 %113, i32* %114
%115 = icmp slt i64 %110, 9
br i1 %115, label %109, label %196
116: ; preds = %32
%117 = call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([36 x i8], [36 x i8]* @.str.4, i64 0, i64 0))
%118 = call i32 @scanf(i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str.1, i64 0, i64 0), i32* %4)
%119 = call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([20 x i8], [20 x i8]* @.str.5, i64 0, i64 0))
%120 = load i32, i32* %4
%121 = add nsw i32 %120, -1
%122 = sext i32 %121 to i64
%123 = getelementptr inbounds [10 x i32], [10 x i32]* %1, i64 0, i64 %122
%124 = call i32 @scanf(i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str.1, i64 0, i64 0), i32* %123)
br label %196
125: ; preds = %32
%126 = call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([28 x i8], [28 x i8]* @.str.6, i64 0, i64 0))
%127 = call i32 @scanf(i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str.1, i64 0, i64 0), i32* %5)
%128 = load i32, i32* %5
%129 = load i32, i32* %12
%130 = icmp eq i32 %128, %129
br i1 %130, label %131, label %134
131: ; preds = %125
%132 = call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([14 x i8], [14 x i8]* @.str.7, i64 0, i64 0), i32 1)
%133 = load i32, i32* %5
br label %134
134: ; preds = %125, %131
%135 = phi i32 [ %128, %125 ], [ %133, %131 ]
%136 = load i32, i32* %14
%137 = icmp eq i32 %135, %136
br i1 %137, label %138, label %141
138: ; preds = %134
%139 = call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([14 x i8], [14 x i8]* @.str.7, i64 0, i64 0), i32 2)
%140 = load i32, i32* %5
br label %141
141: ; preds = %138, %134
%142 = phi i32 [ %140, %138 ], [ %135, %134 ]
%143 = load i32, i32* %16
%144 = icmp eq i32 %142, %143
br i1 %144, label %145, label %148
145: ; preds = %141
%146 = call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([14 x i8], [14 x i8]* @.str.7, i64 0, i64 0), i32 3)
%147 = load i32, i32* %5
br label %148
148: ; preds = %145, %141
%149 = phi i32 [ %147, %145 ], [ %142, %141 ]
%150 = load i32, i32* %18
%151 = icmp eq i32 %149, %150
br i1 %151, label %152, label %155
152: ; preds = %148
%153 = call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([14 x i8], [14 x i8]* @.str.7, i64 0, i64 0), i32 4)
%154 = load i32, i32* %5
br label %155
155: ; preds = %152, %148
%156 = phi i32 [ %154, %152 ], [ %149, %148 ]
%157 = load i32, i32* %20
%158 = icmp eq i32 %156, %157
br i1 %158, label %159, label %162
159: ; preds = %155
%160 = call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([14 x i8], [14 x i8]* @.str.7, i64 0, i64 0), i32 5)
%161 = load i32, i32* %5
br label %162
162: ; preds = %159, %155
%163 = phi i32 [ %161, %159 ], [ %156, %155 ]
%164 = load i32, i32* %22
%165 = icmp eq i32 %163, %164
br i1 %165, label %166, label %169
166: ; preds = %162
%167 = call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([14 x i8], [14 x i8]* @.str.7, i64 0, i64 0), i32 6)
%168 = load i32, i32* %5
br label %169
169: ; preds = %166, %162
%170 = phi i32 [ %168, %166 ], [ %163, %162 ]
%171 = load i32, i32* %24
%172 = icmp eq i32 %170, %171
br i1 %172, label %173, label %176
173: ; preds = %169
%174 = call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([14 x i8], [14 x i8]* @.str.7, i64 0, i64 0), i32 7)
%175 = load i32, i32* %5
br label %176
176: ; preds = %173, %169
%177 = phi i32 [ %175, %173 ], [ %170, %169 ]
%178 = load i32, i32* %26
%179 = icmp eq i32 %177, %178
br i1 %179, label %180, label %183
180: ; preds = %176
%181 = call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([14 x i8], [14 x i8]* @.str.7, i64 0, i64 0), i32 8)
%182 = load i32, i32* %5
br label %183
183: ; preds = %180, %176
%184 = phi i32 [ %182, %180 ], [ %177, %176 ]
%185 = load i32, i32* %28
%186 = icmp eq i32 %184, %185
br i1 %186, label %187, label %190
187: ; preds = %183
%188 = call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([14 x i8], [14 x i8]* @.str.7, i64 0, i64 0), i32 9)
%189 = load i32, i32* %5
br label %190
190: ; preds = %187, %183
%191 = phi i32 [ %189, %187 ], [ %184, %183 ]
%192 = load i32, i32* %30
%193 = icmp eq i32 %191, %192
br i1 %193, label %194, label %196
194: ; preds = %190
%195 = call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([14 x i8], [14 x i8]* @.str.7, i64 0, i64 0), i32 10)
br label %196
196: ; preds = %109, %105, %190, %194, %36, %116
%197 = call i32 @arpr(i32* %12)
%198 = load i32, i32* %2
br label %199
199: ; preds = %196, %32
%200 = phi i32 [ %198, %196 ], [ %35, %32 ]
%201 = icmp eq i32 %200, 5
br i1 %201, label %202, label %32
202: ; preds = %199
ret void
}