#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*/ deleteElement(int *, int *, int);
int /*<<< orphan*/ fflush(int /*<<< orphan*/);
int /*<<< orphan*/ printf(char *, ...);
int /*<<< orphan*/ scanf(char *, ...);
int /*<<< orphan*/ stdin;
int /*<<< orphan*/ system(char *);
int main() {
  int a[10] = {0}, n = 0, i;
  char ch = 'n';
  system("cls");
  printf("\nEnter the number of elemenets: ");
  scanf("%d", &n);
  printf("\nEnter the array:\n");
  for (i = 0; i < n; i++) {
    scanf("%d", &a[i]);
  }
  printf("\nEntered array is: \n");
  for (i = 0; i < n; i++) {
    printf(" %d", a[i]);
  }
  do {
    int pos = -1;
    if (n == 0) {
      printf("\nNo More elements left to delete.");
      break;
    }
    printf("\nEnter a position: ");
    scanf("%d", &pos);
    if (pos < 1) {
      printf("\nPosition is invalid!\nDeleteing at start.\n");
      pos = 1;
    } else if (pos > n) {
      printf("\nPosition is invalid!\nDeleteing at end.\n");
      pos = n;
    }
    deleteElement(a, &n, pos);
    printf("\nChanged array is: \n");
    for (i = 0; i < n; i++) {
      printf(" %d", a[i]);
    }
    fflush(stdin);
    printf("\n\nWant to delete more? (Y/N): ");
    scanf("%c", &ch);
  } while (ch == 'y' || ch == 'Y');
  printf("\n");
  system("pause");
  return 0;
}


x86 assembly (clang, -O0):
<main>:
push   %rbp
mov    %rsp,%rbp
sub    $0x50,%rsp
movl   $0x0,-0x4(%rbp)
lea    -0x30(%rbp),%rdi
xor    %esi,%esi
mov    $0x28,%edx
call   1060 <memset@plt>
movl   $0x0,-0x34(%rbp)
movb   $0x6e,-0x39(%rbp)
lea    0xe6f(%rip),%rdi
call   1040 <system@plt>
lea    0xe67(%rip),%rdi
mov    $0x0,%al
call   1050 <printf@plt>
lea    0xea3(%rip),%rdi
lea    -0x34(%rbp),%rsi
mov    $0x0,%al
call   1080 <scanf@plt>
lea    0xe68(%rip),%rdi
mov    $0x0,%al
call   1050 <printf@plt>
movl   $0x0,-0x38(%rbp)
mov    -0x38(%rbp),%eax
cmp    -0x34(%rbp),%eax
jge    1202 <main+0xa2>
movslq -0x38(%rbp),%rax
lea    -0x30(%rbp),%rsi
shl    $0x2,%rax
add    %rax,%rsi
lea    0xe61(%rip),%rdi
mov    $0x0,%al
call   1080 <scanf@plt>
mov    -0x38(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0x38(%rbp)
jmp    11cb <main+0x6b>
lea    0xe2f(%rip),%rdi
mov    $0x0,%al
call   1050 <printf@plt>
movl   $0x0,-0x38(%rbp)
mov    -0x38(%rbp),%eax
cmp    -0x34(%rbp),%eax
jge    1247 <main+0xe7>
movslq -0x38(%rbp),%rax
mov    -0x30(%rbp,%rax,4),%esi
lea    0xe1b(%rip),%rdi
mov    $0x0,%al
call   1050 <printf@plt>
mov    -0x38(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0x38(%rbp)
jmp    1217 <main+0xb7>
jmp    124c <main+0xec>
movl   $0xffffffff,-0x40(%rbp)
cmpl   $0x0,-0x34(%rbp)
jne    1270 <main+0x110>
lea    0xded(%rip),%rdi
mov    $0x0,%al
call   1050 <printf@plt>
jmp    1386 <main+0x226>
lea    0xdfc(%rip),%rdi
mov    $0x0,%al
call   1050 <printf@plt>
lea    0xdc9(%rip),%rdi
lea    -0x40(%rbp),%rsi
mov    $0x0,%al
call   1080 <scanf@plt>
cmpl   $0x1,-0x40(%rbp)
jge    12b4 <main+0x154>
lea    0xde6(%rip),%rdi
mov    $0x0,%al
call   1050 <printf@plt>
movl   $0x1,-0x40(%rbp)
jmp    12d9 <main+0x179>
mov    -0x40(%rbp),%eax
cmp    -0x34(%rbp),%eax
jle    12d4 <main+0x174>
lea    0xdeb(%rip),%rdi
mov    $0x0,%al
call   1050 <printf@plt>
mov    -0x34(%rbp),%eax
mov    %eax,-0x40(%rbp)
jmp    12d9 <main+0x179>
lea    -0x30(%rbp),%rdi
mov    -0x40(%rbp),%edx
lea    -0x34(%rbp),%rsi
call   1030 <deleteElement@plt>
lea    0xdeb(%rip),%rdi
mov    $0x0,%al
call   1050 <printf@plt>
movl   $0x0,-0x38(%rbp)
mov    -0x38(%rbp),%eax
cmp    -0x34(%rbp),%eax
jge    132e <main+0x1ce>
movslq -0x38(%rbp),%rax
mov    -0x30(%rbp,%rax,4),%esi
lea    0xd34(%rip),%rdi
mov    $0x0,%al
call   1050 <printf@plt>
mov    -0x38(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0x38(%rbp)
jmp    12fe <main+0x19e>
mov    0x2cb3(%rip),%rax
mov    (%rax),%edi
call   1070 <fflush@plt>
lea    0xdad(%rip),%rdi
mov    $0x0,%al
call   1050 <printf@plt>
lea    0xdbe(%rip),%rdi
lea    -0x39(%rbp),%rsi
mov    $0x0,%al
call   1080 <scanf@plt>
movsbl -0x39(%rbp),%ecx
mov    $0x1,%al
cmp    $0x79,%ecx
mov    %al,-0x41(%rbp)
je     137b <main+0x21b>
movsbl -0x39(%rbp),%eax
cmp    $0x59,%eax
sete   %al
mov    %al,-0x41(%rbp)
mov    -0x41(%rbp),%al
test   $0x1,%al
jne    124c <main+0xec>
lea    0xd61(%rip),%rdi
mov    $0x0,%al
call   1050 <printf@plt>
lea    0xd77(%rip),%rdi
call   1040 <system@plt>
xor    %eax,%eax
add    $0x50,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<main>:
push   %rbp
push   %r15
push   %r14
push   %r13
push   %r12
push   %rbx
sub    $0x38,%rsp
xorps  %xmm0,%xmm0
movaps %xmm0,0x20(%rsp)
movaps %xmm0,0x10(%rsp)
movq   $0x0,0x30(%rsp)
movl   $0x0,0x4(%rsp)
movb   $0x6e,0xb(%rsp)
lea    0xe58(%rip),%rdi
call   1060 <system@plt>
lea    0xe50(%rip),%rdi
xor    %eax,%eax
call   1070 <printf@plt>
lea    0xe64(%rip),%rdi
lea    0x4(%rsp),%rsi
xor    %eax,%eax
call   1090 <scanf@plt>
lea    0xeb2(%rip),%rdi
call   1040 <puts@plt>
cmpl   $0x0,0x4(%rsp)
jle    120f <main+0x9f>
lea    0x10(%rsp),%rbx
lea    0xe39(%rip),%r14
xor    %ebp,%ebp
nop
mov    %r14,%rdi
mov    %rbx,%rsi
xor    %eax,%eax
call   1090 <scanf@plt>
add    $0x1,%rbp
movslq 0x4(%rsp),%rax
add    $0x4,%rbx
cmp    %rax,%rbp
jl     11f0 <main+0x80>
lea    0xe83(%rip),%rdi
call   1040 <puts@plt>
mov    0x4(%rsp),%eax
test   %eax,%eax
jle    124c <main+0xdc>
lea    0xdfb(%rip),%rbx
xor    %ebp,%ebp
nopl   0x0(%rax)
mov    0x10(%rsp,%rbp,4),%esi
mov    %rbx,%rdi
xor    %eax,%eax
call   1070 <printf@plt>
add    $0x1,%rbp
movslq 0x4(%rsp),%rax
cmp    %rax,%rbp
jl     1230 <main+0xc0>
movl   $0xffffffff,0xc(%rsp)
ff
test   %eax,%eax
je     1369 <main+0x1f9>
lea    0xdc2(%rip),%r14
mov    0x2d7e(%rip),%rbp
lea    0xdee(%rip),%r15
lea    0xe06(%rip),%r13
lea    0xb(%rsp),%rbx
nopl   (%rax)
lea    0xdc4(%rip),%rdi
xor    %eax,%eax
call   1070 <printf@plt>
lea    0xd91(%rip),%rdi
lea    0xc(%rsp),%rsi
xor    %eax,%eax
call   1090 <scanf@plt>
mov    0xc(%rsp),%edx
test   %edx,%edx
jle    12d0 <main+0x160>
cmp    0x4(%rsp),%edx
jle    12e9 <main+0x179>
lea    0xe0b(%rip),%rdi
call   1040 <puts@plt>
mov    0x4(%rsp),%edx
mov    %edx,0xc(%rsp)
jmp    12e9 <main+0x179>
cs nopw 0x0(%rax,%rax,1)
nop
lea    0xe12(%rip),%rdi
call   1040 <puts@plt>
movl   $0x1,0xc(%rsp)
mov    $0x1,%edx
lea    0x10(%rsp),%rdi
lea    0x4(%rsp),%rsi
call   1050 <deleteElement@plt>
lea    0xdae(%rip),%rdi
call   1040 <puts@plt>
cmpl   $0x0,0x4(%rsp)
jle    132d <main+0x1bd>
xor    %r12d,%r12d
xchg   %ax,%ax
mov    0x10(%rsp,%r12,4),%esi
mov    %r14,%rdi
xor    %eax,%eax
call   1070 <printf@plt>
add    $0x1,%r12
movslq 0x4(%rsp),%rax
cmp    %rax,%r12
jl     1310 <main+0x1a0>
mov    0x0(%rbp),%edi
call   1080 <fflush@plt>
mov    %r15,%rdi
xor    %eax,%eax
call   1070 <printf@plt>
mov    %r13,%rdi
mov    %rbx,%rsi
xor    %eax,%eax
call   1090 <scanf@plt>
mov    0xb(%rsp),%al
and    $0xdf,%al
cmp    $0x59,%al
jne    1377 <main+0x207>
cmpl   $0x0,0x4(%rsp)
movl   $0xffffffff,0xc(%rsp)
ff
jne    1280 <main+0x110>
lea    0xcb9(%rip),%rdi
xor    %eax,%eax
call   1070 <printf@plt>
mov    $0xa,%edi
call   1030 <putchar@plt>
lea    0xcf9(%rip),%rdi
call   1060 <system@plt>
xor    %eax,%eax
add    $0x38,%rsp
pop    %rbx
pop    %r12
pop    %r13
pop    %r14
pop    %r15
pop    %rbp
ret

LLVM IR (-O0):
@.str = [4 x i8] c"cls\00"
@.str.1 = [33 x i8] c"\0AEnter the number of elemenets: \00"
@.str.2 = [3 x i8] c"%d\00"
@.str.3 = [19 x i8] c"\0AEnter the array:\0A\00"
@.str.4 = [21 x i8] c"\0AEntered array is: \0A\00"
@.str.5 = [4 x i8] c" %d\00"
@.str.6 = [34 x i8] c"\0ANo More elements left to delete.\00"
@.str.7 = [20 x i8] c"\0AEnter a position: \00"
@.str.8 = [43 x i8] c"\0APosition is invalid!\0ADeleteing at start.\0A\00"
@.str.9 = [41 x i8] c"\0APosition is invalid!\0ADeleteing at end.\0A\00"
@.str.10 = [21 x i8] c"\0AChanged array is: \0A\00"
@stdin = global i32 0
@.str.11 = [31 x i8] c"\0A\0AWant to delete more? (Y/N): \00"
@.str.12 = [3 x i8] c"%c\00"
@.str.13 = [2 x i8] c"\0A\00"
@.str.14 = [6 x i8] c"pause\00"
define i32 @main() {
%1 = alloca i32
%2 = alloca [10 x i32]
%3 = alloca i32
%4 = alloca i32
%5 = alloca i8
%6 = alloca i32
store i32 0, i32* %1
%7 = bitcast [10 x i32]* %2 to i8*
store i32 0, i32* %3
store i8 110, i8* %5
%8 = call i32 @system(i8* getelementptr inbounds ([4 x i8], [4 x i8]* @.str, i64 0, i64 0))
%9 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([33 x i8], [33 x i8]* @.str.1, i64 0, i64 0))
%10 = call i32 (i8*, ...) @scanf(i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str.2, i64 0, i64 0), i32* %3)
%11 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([19 x i8], [19 x i8]* @.str.3, i64 0, i64 0))
store i32 0, i32* %4
br label %12
12: ; preds = %21, %0
%13 = load i32, i32* %4
%14 = load i32, i32* %3
%15 = icmp slt i32 %13, %14
br i1 %15, label %16, label %24
16: ; preds = %12
%17 = load i32, i32* %4
%18 = sext i32 %17 to i64
%19 = getelementptr inbounds [10 x i32], [10 x i32]* %2, i64 0, i64 %18
%20 = call i32 (i8*, ...) @scanf(i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str.2, i64 0, i64 0), i32* %19)
br label %21
21: ; preds = %16
%22 = load i32, i32* %4
%23 = add nsw i32 %22, 1
store i32 %23, i32* %4
br label %12
24: ; preds = %12
%25 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([21 x i8], [21 x i8]* @.str.4, i64 0, i64 0))
store i32 0, i32* %4
br label %26
26: ; preds = %36, %24
%27 = load i32, i32* %4
%28 = load i32, i32* %3
%29 = icmp slt i32 %27, %28
br i1 %29, label %30, label %39
30: ; preds = %26
%31 = load i32, i32* %4
%32 = sext i32 %31 to i64
%33 = getelementptr inbounds [10 x i32], [10 x i32]* %2, i64 0, i64 %32
%34 = load i32, i32* %33
%35 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([4 x i8], [4 x i8]* @.str.5, i64 0, i64 0), i32 %34)
br label %36
36: ; preds = %30
%37 = load i32, i32* %4
%38 = add nsw i32 %37, 1
store i32 %38, i32* %4
br label %26
39: ; preds = %26
br label %40
40: ; preds = %91, %39
store i32 -1, i32* %6
%41 = load i32, i32* %3
%42 = icmp eq i32 %41, 0
br i1 %42, label %43, label %45
43: ; preds = %40
%44 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([34 x i8], [34 x i8]* @.str.6, i64 0, i64 0))
br label %93
45: ; preds = %40
%46 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([20 x i8], [20 x i8]* @.str.7, i64 0, i64 0))
%47 = call i32 (i8*, ...) @scanf(i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str.2, i64 0, i64 0), i32* %6)
%48 = load i32, i32* %6
%49 = icmp slt i32 %48, 1
br i1 %49, label %50, label %52
50: ; preds = %45
%51 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([43 x i8], [43 x i8]* @.str.8, i64 0, i64 0))
store i32 1, i32* %6
br label %60
52: ; preds = %45
%53 = load i32, i32* %6
%54 = load i32, i32* %3
%55 = icmp sgt i32 %53, %54
br i1 %55, label %56, label %59
56: ; preds = %52
%57 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([41 x i8], [41 x i8]* @.str.9, i64 0, i64 0))
%58 = load i32, i32* %3
store i32 %58, i32* %6
br label %59
59: ; preds = %56, %52
br label %60
60: ; preds = %59, %50
%61 = getelementptr inbounds [10 x i32], [10 x i32]* %2, i64 0, i64 0
%62 = load i32, i32* %6
%63 = call i32 @deleteElement(i32* %61, i32* %3, i32 %62)
%64 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([21 x i8], [21 x i8]* @.str.10, i64 0, i64 0))
store i32 0, i32* %4
br label %65
65: ; preds = %75, %60
%66 = load i32, i32* %4
%67 = load i32, i32* %3
%68 = icmp slt i32 %66, %67
br i1 %68, label %69, label %78
69: ; preds = %65
%70 = load i32, i32* %4
%71 = sext i32 %70 to i64
%72 = getelementptr inbounds [10 x i32], [10 x i32]* %2, i64 0, i64 %71
%73 = load i32, i32* %72
%74 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([4 x i8], [4 x i8]* @.str.5, i64 0, i64 0), i32 %73)
br label %75
75: ; preds = %69
%76 = load i32, i32* %4
%77 = add nsw i32 %76, 1
store i32 %77, i32* %4
br label %65
78: ; preds = %65
%79 = load i32, i32* @stdin
%80 = call i32 @fflush(i32 %79)
%81 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([31 x i8], [31 x i8]* @.str.11, i64 0, i64 0))
%82 = call i32 (i8*, ...) @scanf(i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str.12, i64 0, i64 0), i8* %5)
br label %83
83: ; preds = %78
%84 = load i8, i8* %5
%85 = sext i8 %84 to i32
%86 = icmp eq i32 %85, 121
br i1 %86, label %91, label %87
87: ; preds = %83
%88 = load i8, i8* %5
%89 = sext i8 %88 to i32
%90 = icmp eq i32 %89, 89
br label %91
91: ; preds = %87, %83
%92 = phi i1 [ true, %83 ], [ %90, %87 ]
br i1 %92, label %40, label %93
93: ; preds = %91, %43
%94 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([2 x i8], [2 x i8]* @.str.13, i64 0, i64 0))
%95 = call i32 @system(i8* getelementptr inbounds ([6 x i8], [6 x i8]* @.str.14, i64 0, i64 0))
ret i32 0
}

LLVM IR (-O2):
@.str = [4 x i8] c"cls\00"
@.str.1 = [33 x i8] c"\0AEnter the number of elemenets: \00"
@.str.2 = [3 x i8] c"%d\00"
@.str.5 = [4 x i8] c" %d\00"
@.str.6 = [34 x i8] c"\0ANo More elements left to delete.\00"
@.str.7 = [20 x i8] c"\0AEnter a position: \00"
@stdin = global i32 0
@.str.11 = [31 x i8] c"\0A\0AWant to delete more? (Y/N): \00"
@.str.12 = [3 x i8] c"%c\00"
@.str.14 = [6 x i8] c"pause\00"
@str = [18 x i8] c"\0AEnter the array:\00"
@str.15 = [20 x i8] c"\0AEntered array is: \00"
@str.16 = [20 x i8] c"\0AChanged array is: \00"
@str.17 = [40 x i8] c"\0APosition is invalid!\0ADeleteing at end.\00"
@str.18 = [42 x i8] c"\0APosition is invalid!\0ADeleteing at start.\00"
define i32 @main() {
%1 = alloca [10 x i32]
%2 = alloca i32
%3 = alloca i8
%4 = alloca i32
%5 = bitcast [10 x i32]* %1 to i8*
%6 = bitcast i32* %2 to i8*
store i32 0, i32* %2
store i8 110, i8* %3
%7 = tail call i32 @system(i8* getelementptr inbounds ([4 x i8], [4 x i8]* @.str, i64 0, i64 0))
%8 = tail call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([33 x i8], [33 x i8]* @.str.1, i64 0, i64 0))
%9 = call i32 (i8*, ...) @scanf(i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str.2, i64 0, i64 0), i32* %2)
%10 = call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([18 x i8], [18 x i8]* @str, i64 0, i64 0))
%11 = load i32, i32* %2
%12 = icmp sgt i32 %11, 0
br i1 %12, label %13, label %21
13: ; preds = %0, %13
%14 = phi i64 [ %17, %13 ], [ 0, %0 ]
%15 = getelementptr inbounds [10 x i32], [10 x i32]* %1, i64 0, i64 %14
%16 = call i32 (i8*, ...) @scanf(i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str.2, i64 0, i64 0), i32* %15)
%17 = add nuw nsw i64 %14, 1
%18 = load i32, i32* %2
%19 = sext i32 %18 to i64
%20 = icmp slt i64 %17, %19
br i1 %20, label %13, label %21
21: ; preds = %13, %0
%22 = call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([20 x i8], [20 x i8]* @str.15, i64 0, i64 0))
%23 = load i32, i32* %2
%24 = icmp sgt i32 %23, 0
br i1 %24, label %31, label %25
25: ; preds = %31, %21
%26 = phi i32 [ %23, %21 ], [ %37, %31 ]
%27 = bitcast i32* %4 to i8*
store i32 -1, i32* %4
%28 = icmp eq i32 %26, 0
br i1 %28, label %71, label %29
29: ; preds = %25
%30 = getelementptr inbounds [10 x i32], [10 x i32]* %1, i64 0, i64 0
br label %43
31: ; preds = %21, %31
%32 = phi i64 [ %36, %31 ], [ 0, %21 ]
%33 = getelementptr inbounds [10 x i32], [10 x i32]* %1, i64 0, i64 %32
%34 = load i32, i32* %33
%35 = call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([4 x i8], [4 x i8]* @.str.5, i64 0, i64 0), i32 %34)
%36 = add nuw nsw i64 %32, 1
%37 = load i32, i32* %2
%38 = sext i32 %37 to i64
%39 = icmp slt i64 %36, %38
br i1 %39, label %31, label %25
40: ; preds = %73
%41 = load i32, i32* %2
store i32 -1, i32* %4
%42 = icmp eq i32 %41, 0
br i1 %42, label %71, label %43
43: ; preds = %29, %40
%44 = call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([20 x i8], [20 x i8]* @.str.7, i64 0, i64 0))
%45 = call i32 (i8*, ...) @scanf(i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str.2, i64 0, i64 0), i32* %4)
%46 = load i32, i32* %4
%47 = icmp slt i32 %46, 1
br i1 %47, label %48, label %50
48: ; preds = %43
%49 = call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([42 x i8], [42 x i8]* @str.18, i64 0, i64 0))
store i32 1, i32* %4
br label %56
50: ; preds = %43
%51 = load i32, i32* %2
%52 = icmp sgt i32 %46, %51
br i1 %52, label %53, label %56
53: ; preds = %50
%54 = call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([40 x i8], [40 x i8]* @str.17, i64 0, i64 0))
%55 = load i32, i32* %2
store i32 %55, i32* %4
br label %56
56: ; preds = %50, %53, %48
%57 = phi i32 [ %46, %50 ], [ %55, %53 ], [ 1, %48 ]
%58 = call i32 @deleteElement(i32* %30, i32* %2, i32 %57)
%59 = call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([20 x i8], [20 x i8]* @str.16, i64 0, i64 0))
%60 = load i32, i32* %2
%61 = icmp sgt i32 %60, 0
br i1 %61, label %62, label %73
62: ; preds = %56, %62
%63 = phi i64 [ %67, %62 ], [ 0, %56 ]
%64 = getelementptr inbounds [10 x i32], [10 x i32]* %1, i64 0, i64 %63
%65 = load i32, i32* %64
%66 = call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([4 x i8], [4 x i8]* @.str.5, i64 0, i64 0), i32 %65)
%67 = add nuw nsw i64 %63, 1
%68 = load i32, i32* %2
%69 = sext i32 %68 to i64
%70 = icmp slt i64 %67, %69
br i1 %70, label %62, label %73
71: ; preds = %40, %25
%72 = call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([34 x i8], [34 x i8]* @.str.6, i64 0, i64 0))
br label %81
73: ; preds = %62, %56
%74 = load i32, i32* @stdin
%75 = call i32 @fflush(i32 %74)
%76 = call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([31 x i8], [31 x i8]* @.str.11, i64 0, i64 0))
%77 = call i32 (i8*, ...) @scanf(i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str.12, i64 0, i64 0), i8* %3)
%78 = load i8, i8* %3
%79 = and i8 %78, -33
%80 = icmp eq i8 %79, 89
br i1 %80, label %40, label %81
81: ; preds = %73, %71
%82 = call i32 @putchar(i32 10)
%83 = call i32 @system(i8* getelementptr inbounds ([6 x i8], [6 x i8]* @.str.14, i64 0, i64 0))
ret i32 0
}