#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 *, ...);
int main() {
  int i, number, top, bott, mid, loca, a[15], flag = 1, sign;
  char c;
  printf("enter data:\n");
  scanf("%d", &a[0]);
  i = 1;
  while (i < 15) {
    scanf("%d", &a[i]);
    if (a[i] >= a[i - 1])
      i++;
    else
      printf("enter this data again:\n");
  }
  printf("\n");
  for (i = 0; i < 15; i++)
    printf("%5d", a[i]);
  printf("\n");
  while (flag) {
    printf("input number to look for:");
    scanf("%d", &number);
    sign = 0;
    top = 0;
    bott = 15 - 1;
    if ((number < a[0]) || (number > a[15 - 1]))
      loca = -1;
    while ((!sign) && (top <= bott)) {
      mid = (bott + top) / 2;
      if (number == a[mid]) {
        loca = mid;
        printf("Has found %d, its position is %d\n", number, loca + 1);
        sign = 1;
      } else if (number < a[mid])
        bott = mid - 1;
      else
        top = mid + 1;
    }
    if (!sign || loca == -1)
      printf("cannot find %d.\n", number);
    ;
    printf("continu or not(Y/N)?");
    scanf(" %c", &c);
    if (c == 'N' || c == 'n')
      flag = 0;
  }
  return 0;
}


x86 assembly (clang, -O0):
<main>:
push   %rbp
mov    %rsp,%rbp
sub    $0x70,%rsp
movl   $0x0,-0x4(%rbp)
movl   $0x1,-0x64(%rbp)
lea    0xec3(%rip),%rdi
mov    $0x0,%al
call   1030 <printf@plt>
lea    -0x60(%rbp),%rsi
lea    0xebe(%rip),%rdi
mov    $0x0,%al
call   1040 <scanf@plt>
movl   $0x1,-0x8(%rbp)
cmpl   $0xf,-0x8(%rbp)
jge    11c0 <main+0xa0>
movslq -0x8(%rbp),%rax
lea    -0x60(%rbp),%rsi
shl    $0x2,%rax
add    %rax,%rsi
lea    0xe90(%rip),%rdi
mov    $0x0,%al
call   1040 <scanf@plt>
movslq -0x8(%rbp),%rax
mov    -0x60(%rbp,%rax,4),%eax
mov    -0x8(%rbp),%ecx
sub    $0x1,%ecx
movslq %ecx,%rcx
cmp    -0x60(%rbp,%rcx,4),%eax
jl     11ad <main+0x8d>
mov    -0x8(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0x8(%rbp)
jmp    11bb <main+0x9b>
lea    0xe5c(%rip),%rdi
mov    $0x0,%al
call   1030 <printf@plt>
jmp    115d <main+0x3d>
lea    0xeb0(%rip),%rdi
mov    $0x0,%al
call   1030 <printf@plt>
movl   $0x0,-0x8(%rbp)
cmpl   $0xf,-0x8(%rbp)
jge    1203 <main+0xe3>
movslq -0x8(%rbp),%rax
mov    -0x60(%rbp,%rax,4),%esi
lea    0xe3a(%rip),%rdi
mov    $0x0,%al
call   1030 <printf@plt>
mov    -0x8(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0x8(%rbp)
jmp    11d5 <main+0xb5>
lea    0xe6d(%rip),%rdi
mov    $0x0,%al
call   1030 <printf@plt>
cmpl   $0x0,-0x64(%rbp)
je     1387 <main+0x267>
lea    0xe0a(%rip),%rdi
mov    $0x0,%al
call   1030 <printf@plt>
lea    0xddd(%rip),%rdi
lea    -0xc(%rbp),%rsi
mov    $0x0,%al
call   1040 <scanf@plt>
movl   $0x0,-0x68(%rbp)
movl   $0x0,-0x10(%rbp)
movl   $0xe,-0x14(%rbp)
mov    -0xc(%rbp),%eax
cmp    -0x60(%rbp),%eax
jl     1268 <main+0x148>
mov    -0xc(%rbp),%eax
cmp    -0x28(%rbp),%eax
jle    126f <main+0x14f>
movl   $0xffffffff,-0x1c(%rbp)
jmp    1274 <main+0x154>
xor    %eax,%eax
cmpl   $0x0,-0x68(%rbp)
mov    %al,-0x6a(%rbp)
jne    128f <main+0x16f>
mov    -0x10(%rbp),%eax
cmp    -0x14(%rbp),%eax
setle  %al
mov    %al,-0x6a(%rbp)
mov    -0x6a(%rbp),%al
test   $0x1,%al
jne    129f <main+0x17f>
jmp    131c <main+0x1fc>
mov    -0x14(%rbp),%eax
add    -0x10(%rbp),%eax
mov    $0x2,%ecx
cltd
idiv   %ecx
mov    %eax,-0x18(%rbp)
mov    -0xc(%rbp),%eax
movslq -0x18(%rbp),%rcx
cmp    -0x60(%rbp,%rcx,4),%eax
jne    12ea <main+0x1ca>
mov    -0x18(%rbp),%eax
mov    %eax,-0x1c(%rbp)
mov    -0xc(%rbp),%esi
mov    -0x1c(%rbp),%edx
add    $0x1,%edx
lea    0xd6f(%rip),%rdi
mov    $0x0,%al
call   1030 <printf@plt>
movl   $0x1,-0x68(%rbp)
jmp    1317 <main+0x1f7>
mov    -0xc(%rbp),%eax
movslq -0x18(%rbp),%rcx
cmp    -0x60(%rbp,%rcx,4),%eax
jge    1309 <main+0x1e9>
mov    -0x18(%rbp),%eax
sub    $0x1,%eax
mov    %eax,-0x14(%rbp)
jmp    1312 <main+0x1f2>
mov    -0x18(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0x10(%rbp)
jmp    1317 <main+0x1f7>
jmp    1274 <main+0x154>
cmpl   $0x0,-0x68(%rbp)
je     1330 <main+0x210>
cmpl   $0xffffffff,-0x1c(%rbp)
jne    1341 <main+0x221>
mov    -0xc(%rbp),%esi
lea    0xd2e(%rip),%rdi
mov    $0x0,%al
call   1030 <printf@plt>
lea    0xd31(%rip),%rdi
mov    $0x0,%al
call   1030 <printf@plt>
lea    0xd38(%rip),%rdi
lea    -0x69(%rbp),%rsi
mov    $0x0,%al
call   1040 <scanf@plt>
movsbl -0x69(%rbp),%eax
cmp    $0x4e,%eax
je     137b <main+0x25b>
movsbl -0x69(%rbp),%eax
cmp    $0x6e,%eax
jne    1382 <main+0x262>
movl   $0x0,-0x64(%rbp)
jmp    1211 <main+0xf1>
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    0xf18(%rip),%rdi
call   1040 <puts@plt>
lea    0xe9f(%rip),%r15
lea    0x10(%rsp),%rsi
mov    %r15,%rdi
xor    %eax,%eax
call   1060 <scanf@plt>
mov    $0x1,%ebp
lea    0xefd(%rip),%r14
jmp    118d <main+0x4d>
xchg   %ax,%ax
mov    %r14,%rdi
call   1040 <puts@plt>
cmp    $0xf,%ebp
jge    11b4 <main+0x74>
movslq %ebp,%rbx
lea    (%rsp,%rbx,4),%rsi
add    $0x10,%rsi
mov    %r15,%rdi
xor    %eax,%eax
call   1060 <scanf@plt>
mov    0x10(%rsp,%rbx,4),%eax
cmp    0xc(%rsp,%rbx,4),%eax
jl     1180 <main+0x40>
add    $0x1,%ebp
cmp    $0xf,%ebp
jl     118d <main+0x4d>
mov    $0xa,%edi
call   1030 <putchar@plt>
mov    0x10(%rsp),%esi
lea    0xe3a(%rip),%rbx
mov    %rbx,%rdi
xor    %eax,%eax
call   1050 <printf@plt>
mov    0x14(%rsp),%esi
mov    %rbx,%rdi
xor    %eax,%eax
call   1050 <printf@plt>
mov    0x18(%rsp),%esi
mov    %rbx,%rdi
xor    %eax,%eax
call   1050 <printf@plt>
mov    0x1c(%rsp),%esi
mov    %rbx,%rdi
xor    %eax,%eax
call   1050 <printf@plt>
mov    0x20(%rsp),%esi
mov    %rbx,%rdi
xor    %eax,%eax
call   1050 <printf@plt>
mov    0x24(%rsp),%esi
mov    %rbx,%rdi
xor    %eax,%eax
call   1050 <printf@plt>
mov    0x28(%rsp),%esi
mov    %rbx,%rdi
xor    %eax,%eax
call   1050 <printf@plt>
mov    0x2c(%rsp),%esi
mov    %rbx,%rdi
xor    %eax,%eax
call   1050 <printf@plt>
mov    0x30(%rsp),%esi
mov    %rbx,%rdi
xor    %eax,%eax
call   1050 <printf@plt>
mov    0x34(%rsp),%esi
mov    %rbx,%rdi
xor    %eax,%eax
call   1050 <printf@plt>
mov    0x38(%rsp),%esi
mov    %rbx,%rdi
xor    %eax,%eax
call   1050 <printf@plt>
mov    0x3c(%rsp),%esi
mov    %rbx,%rdi
xor    %eax,%eax
call   1050 <printf@plt>
mov    0x40(%rsp),%esi
mov    %rbx,%rdi
xor    %eax,%eax
call   1050 <printf@plt>
mov    0x44(%rsp),%esi
mov    %rbx,%rdi
xor    %eax,%eax
call   1050 <printf@plt>
mov    0x48(%rsp),%esi
mov    %rbx,%rdi
xor    %eax,%eax
call   1050 <printf@plt>
mov    $0xa,%edi
call   1030 <putchar@plt>
lea    0xd58(%rip),%r15
lea    0xc(%rsp),%rbx
lea    0xda0(%rip),%rbp
lea    0xdae(%rip),%r12
lea    0xb(%rsp),%r13
jmp    1307 <main+0x1c7>
cs nopw 0x0(%rax,%rax,1)
nopl   0x0(%rax)
mov    0xc(%rsp),%esi
lea    0xd68(%rip),%rdi
xor    %eax,%eax
call   1050 <printf@plt>
mov    %rbp,%rdi
xor    %eax,%eax
call   1050 <printf@plt>
mov    %r12,%rdi
mov    %r13,%rsi
xor    %eax,%eax
call   1060 <scanf@plt>
mov    0xb(%rsp),%al
and    $0xdf,%al
cmp    $0x4e,%al
je     1384 <main+0x244>
lea    0xcf9(%rip),%rdi
xor    %eax,%eax
call   1050 <printf@plt>
mov    %r15,%rdi
mov    %rbx,%rsi
xor    %eax,%eax
call   1060 <scanf@plt>
mov    $0xe,%eax
mov    0xc(%rsp),%esi
xor    %ecx,%ecx
jmp    1339 <main+0x1f9>
nop
add    $0x1,%edx
mov    %edx,%ecx
cmp    %eax,%ecx
jg     12d0 <main+0x190>
lea    (%rax,%rcx,1),%r14d
mov    %r14d,%edx
shr    $0x1f,%edx
add    %r14d,%edx
sar    %edx
movslq %edx,%rdi
mov    0x10(%rsp,%rdi,4),%edi
cmp    %edi,%esi
je     1360 <main+0x220>
jge    1330 <main+0x1f0>
add    $0xffffffff,%edx
mov    %edx,%eax
jmp    1335 <main+0x1f5>
nopl   0x0(%rax)
add    $0x1,%edx
lea    0xcb7(%rip),%rdi
xor    %eax,%eax
call   1050 <printf@plt>
add    $0x3,%r14d
cmp    $0x1,%r14d
jbe    12d0 <main+0x190>
jmp    12e2 <main+0x1a2>
xor    %eax,%eax
add    $0x58,%rsp
pop    %rbx
pop    %r12
pop    %r13
pop    %r14
pop    %r15
pop    %rbp
ret

LLVM IR (-O0):
@.str = [13 x i8] c"enter data:\0A\00"
@.str.1 = [3 x i8] c"%d\00"
@.str.2 = [24 x i8] c"enter this data again:\0A\00"
@.str.3 = [2 x i8] c"\0A\00"
@.str.4 = [4 x i8] c"%5d\00"
@.str.5 = [26 x i8] c"input number to look for:\00"
@.str.6 = [34 x i8] c"Has found %d, its position is %d\0A\00"
@.str.7 = [17 x i8] c"cannot find %d.\0A\00"
@.str.8 = [21 x i8] c"continu or not(Y/N)?\00"
@.str.9 = [4 x i8] c" %c\00"
define i32 @main() {
%1 = alloca i32
%2 = alloca i32
%3 = alloca i32
%4 = alloca i32
%5 = alloca i32
%6 = alloca i32
%7 = alloca i32
%8 = alloca [15 x i32]
%9 = alloca i32
%10 = alloca i32
%11 = alloca i8
store i32 0, i32* %1
store i32 1, i32* %9
%12 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([13 x i8], [13 x i8]* @.str, i64 0, i64 0))
%13 = getelementptr inbounds [15 x i32], [15 x i32]* %8, i64 0, i64 0
%14 = call i32 (i8*, ...) @scanf(i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str.1, i64 0, i64 0), i32* %13)
store i32 1, i32* %2
br label %15
15: ; preds = %38, %0
%16 = load i32, i32* %2
%17 = icmp slt i32 %16, 15
br i1 %17, label %18, label %39
18: ; preds = %15
%19 = load i32, i32* %2
%20 = sext i32 %19 to i64
%21 = getelementptr inbounds [15 x i32], [15 x i32]* %8, i64 0, i64 %20
%22 = call i32 (i8*, ...) @scanf(i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str.1, i64 0, i64 0), i32* %21)
%23 = load i32, i32* %2
%24 = sext i32 %23 to i64
%25 = getelementptr inbounds [15 x i32], [15 x i32]* %8, i64 0, i64 %24
%26 = load i32, i32* %25
%27 = load i32, i32* %2
%28 = sub nsw i32 %27, 1
%29 = sext i32 %28 to i64
%30 = getelementptr inbounds [15 x i32], [15 x i32]* %8, i64 0, i64 %29
%31 = load i32, i32* %30
%32 = icmp sge i32 %26, %31
br i1 %32, label %33, label %36
33: ; preds = %18
%34 = load i32, i32* %2
%35 = add nsw i32 %34, 1
store i32 %35, i32* %2
br label %38
36: ; preds = %18
%37 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([24 x i8], [24 x i8]* @.str.2, i64 0, i64 0))
br label %38
38: ; preds = %36, %33
br label %15
39: ; preds = %15
%40 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([2 x i8], [2 x i8]* @.str.3, i64 0, i64 0))
store i32 0, i32* %2
br label %41
41: ; preds = %50, %39
%42 = load i32, i32* %2
%43 = icmp slt i32 %42, 15
br i1 %43, label %44, label %53
44: ; preds = %41
%45 = load i32, i32* %2
%46 = sext i32 %45 to i64
%47 = getelementptr inbounds [15 x i32], [15 x i32]* %8, i64 0, i64 %46
%48 = load i32, i32* %47
%49 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([4 x i8], [4 x i8]* @.str.4, i64 0, i64 0), i32 %48)
br label %50
50: ; preds = %44
%51 = load i32, i32* %2
%52 = add nsw i32 %51, 1
store i32 %52, i32* %2
br label %41
53: ; preds = %41
%54 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([2 x i8], [2 x i8]* @.str.3, i64 0, i64 0))
br label %55
55: ; preds = %133, %53
%56 = load i32, i32* %9
%57 = icmp ne i32 %56, 0
br i1 %57, label %58, label %134
58: ; preds = %55
%59 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([26 x i8], [26 x i8]* @.str.5, i64 0, i64 0))
%60 = call i32 (i8*, ...) @scanf(i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str.1, i64 0, i64 0), i32* %3)
store i32 0, i32* %10
store i32 0, i32* %4
store i32 14, i32* %5
%61 = load i32, i32* %3
%62 = getelementptr inbounds [15 x i32], [15 x i32]* %8, i64 0, i64 0
%63 = load i32, i32* %62
%64 = icmp slt i32 %61, %63
br i1 %64, label %70, label %65
65: ; preds = %58
%66 = load i32, i32* %3
%67 = getelementptr inbounds [15 x i32], [15 x i32]* %8, i64 0, i64 14
%68 = load i32, i32* %67
%69 = icmp sgt i32 %66, %68
br i1 %69, label %70, label %71
70: ; preds = %65, %58
store i32 -1, i32* %7
br label %71
71: ; preds = %70, %65
br label %72
72: ; preds = %112, %71
%73 = load i32, i32* %10
%74 = icmp ne i32 %73, 0
br i1 %74, label %79, label %75
75: ; preds = %72
%76 = load i32, i32* %4
%77 = load i32, i32* %5
%78 = icmp sle i32 %76, %77
br label %79
79: ; preds = %75, %72
%80 = phi i1 [ false, %72 ], [ %78, %75 ]
br i1 %80, label %81, label %113
81: ; preds = %79
%82 = load i32, i32* %5
%83 = load i32, i32* %4
%84 = add nsw i32 %82, %83
%85 = sdiv i32 %84, 2
store i32 %85, i32* %6
%86 = load i32, i32* %3
%87 = load i32, i32* %6
%88 = sext i32 %87 to i64
%89 = getelementptr inbounds [15 x i32], [15 x i32]* %8, i64 0, i64 %88
%90 = load i32, i32* %89
%91 = icmp eq i32 %86, %90
br i1 %91, label %92, label %98
92: ; preds = %81
%93 = load i32, i32* %6
store i32 %93, i32* %7
%94 = load i32, i32* %3
%95 = load i32, i32* %7
%96 = add nsw i32 %95, 1
%97 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([34 x i8], [34 x i8]* @.str.6, i64 0, i64 0), i32 %94, i32 %96)
store i32 1, i32* %10
br label %112
98: ; preds = %81
%99 = load i32, i32* %3
%100 = load i32, i32* %6
%101 = sext i32 %100 to i64
%102 = getelementptr inbounds [15 x i32], [15 x i32]* %8, i64 0, i64 %101
%103 = load i32, i32* %102
%104 = icmp slt i32 %99, %103
br i1 %104, label %105, label %108
105: ; preds = %98
%106 = load i32, i32* %6
%107 = sub nsw i32 %106, 1
store i32 %107, i32* %5
br label %111
108: ; preds = %98
%109 = load i32, i32* %6
%110 = add nsw i32 %109, 1
store i32 %110, i32* %4
br label %111
111: ; preds = %108, %105
br label %112
112: ; preds = %111, %92
br label %72
113: ; preds = %79
%114 = load i32, i32* %10
%115 = icmp ne i32 %114, 0
br i1 %115, label %116, label %119
116: ; preds = %113
%117 = load i32, i32* %7
%118 = icmp eq i32 %117, -1
br i1 %118, label %119, label %122
119: ; preds = %116, %113
%120 = load i32, i32* %3
%121 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([17 x i8], [17 x i8]* @.str.7, i64 0, i64 0), i32 %120)
br label %122
122: ; preds = %119, %116
%123 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([21 x i8], [21 x i8]* @.str.8, i64 0, i64 0))
%124 = call i32 (i8*, ...) @scanf(i8* getelementptr inbounds ([4 x i8], [4 x i8]* @.str.9, i64 0, i64 0), i8* %11)
%125 = load i8, i8* %11
%126 = sext i8 %125 to i32
%127 = icmp eq i32 %126, 78
br i1 %127, label %132, label %128
128: ; preds = %122
%129 = load i8, i8* %11
%130 = sext i8 %129 to i32
%131 = icmp eq i32 %130, 110
br i1 %131, label %132, label %133
132: ; preds = %128, %122
store i32 0, i32* %9
br label %133
133: ; preds = %132, %128
br label %55
134: ; preds = %55
ret i32 0
}

LLVM IR (-O2):
@.str.1 = [3 x i8] c"%d\00"
@.str.4 = [4 x i8] c"%5d\00"
@.str.5 = [26 x i8] c"input number to look for:\00"
@.str.6 = [34 x i8] c"Has found %d, its position is %d\0A\00"
@.str.7 = [17 x i8] c"cannot find %d.\0A\00"
@.str.8 = [21 x i8] c"continu or not(Y/N)?\00"
@.str.9 = [4 x i8] c" %c\00"
@str = [12 x i8] c"enter data:\00"
@str.10 = [23 x i8] c"enter this data again:\00"
define i32 @main() {
%1 = alloca i32
%2 = alloca [15 x i32]
%3 = alloca i8
%4 = bitcast i32* %1 to i8*
%5 = bitcast [15 x i32]* %2 to i8*
%6 = tail call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([12 x i8], [12 x i8]* @str, i64 0, i64 0))
%7 = getelementptr inbounds [15 x i32], [15 x i32]* %2, i64 0, i64 0
%8 = call i32 (i8*, ...) @scanf(i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str.1, i64 0, i64 0), i32* %7)
br label %9
9: ; preds = %0, %24
%10 = phi i32 [ 1, %0 ], [ %25, %24 ]
%11 = sext i32 %10 to i64
%12 = getelementptr inbounds [15 x i32], [15 x i32]* %2, i64 0, i64 %11
%13 = call i32 (i8*, ...) @scanf(i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str.1, i64 0, i64 0), i32* %12)
%14 = load i32, i32* %12
%15 = add nsw i32 %10, -1
%16 = sext i32 %15 to i64
%17 = getelementptr inbounds [15 x i32], [15 x i32]* %2, i64 0, i64 %16
%18 = load i32, i32* %17
%19 = icmp slt i32 %14, %18
br i1 %19, label %22, label %20
20: ; preds = %9
%21 = add nsw i32 %10, 1
br label %24
22: ; preds = %9
%23 = call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([23 x i8], [23 x i8]* @str.10, i64 0, i64 0))
br label %24
24: ; preds = %22, %20
%25 = phi i32 [ %21, %20 ], [ %10, %22 ]
%26 = icmp slt i32 %25, 15
br i1 %26, label %9, label %27
27: ; preds = %24
%28 = call i32 @putchar(i32 10)
%29 = load i32, i32* %7
%30 = call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([4 x i8], [4 x i8]* @.str.4, i64 0, i64 0), i32 %29)
%31 = getelementptr inbounds [15 x i32], [15 x i32]* %2, i64 0, i64 1
%32 = load i32, i32* %31
%33 = call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([4 x i8], [4 x i8]* @.str.4, i64 0, i64 0), i32 %32)
%34 = getelementptr inbounds [15 x i32], [15 x i32]* %2, i64 0, i64 2
%35 = load i32, i32* %34
%36 = call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([4 x i8], [4 x i8]* @.str.4, i64 0, i64 0), i32 %35)
%37 = getelementptr inbounds [15 x i32], [15 x i32]* %2, i64 0, i64 3
%38 = load i32, i32* %37
%39 = call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([4 x i8], [4 x i8]* @.str.4, i64 0, i64 0), i32 %38)
%40 = getelementptr inbounds [15 x i32], [15 x i32]* %2, i64 0, i64 4
%41 = load i32, i32* %40
%42 = call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([4 x i8], [4 x i8]* @.str.4, i64 0, i64 0), i32 %41)
%43 = getelementptr inbounds [15 x i32], [15 x i32]* %2, i64 0, i64 5
%44 = load i32, i32* %43
%45 = call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([4 x i8], [4 x i8]* @.str.4, i64 0, i64 0), i32 %44)
%46 = getelementptr inbounds [15 x i32], [15 x i32]* %2, i64 0, i64 6
%47 = load i32, i32* %46
%48 = call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([4 x i8], [4 x i8]* @.str.4, i64 0, i64 0), i32 %47)
%49 = getelementptr inbounds [15 x i32], [15 x i32]* %2, i64 0, i64 7
%50 = load i32, i32* %49
%51 = call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([4 x i8], [4 x i8]* @.str.4, i64 0, i64 0), i32 %50)
%52 = getelementptr inbounds [15 x i32], [15 x i32]* %2, i64 0, i64 8
%53 = load i32, i32* %52
%54 = call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([4 x i8], [4 x i8]* @.str.4, i64 0, i64 0), i32 %53)
%55 = getelementptr inbounds [15 x i32], [15 x i32]* %2, i64 0, i64 9
%56 = load i32, i32* %55
%57 = call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([4 x i8], [4 x i8]* @.str.4, i64 0, i64 0), i32 %56)
%58 = getelementptr inbounds [15 x i32], [15 x i32]* %2, i64 0, i64 10
%59 = load i32, i32* %58
%60 = call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([4 x i8], [4 x i8]* @.str.4, i64 0, i64 0), i32 %59)
%61 = getelementptr inbounds [15 x i32], [15 x i32]* %2, i64 0, i64 11
%62 = load i32, i32* %61
%63 = call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([4 x i8], [4 x i8]* @.str.4, i64 0, i64 0), i32 %62)
%64 = getelementptr inbounds [15 x i32], [15 x i32]* %2, i64 0, i64 12
%65 = load i32, i32* %64
%66 = call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([4 x i8], [4 x i8]* @.str.4, i64 0, i64 0), i32 %65)
%67 = getelementptr inbounds [15 x i32], [15 x i32]* %2, i64 0, i64 13
%68 = load i32, i32* %67
%69 = call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([4 x i8], [4 x i8]* @.str.4, i64 0, i64 0), i32 %68)
%70 = getelementptr inbounds [15 x i32], [15 x i32]* %2, i64 0, i64 14
%71 = load i32, i32* %70
%72 = call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([4 x i8], [4 x i8]* @.str.4, i64 0, i64 0), i32 %71)
%73 = call i32 @putchar(i32 10)
br label %74
74: ; preds = %27, %102
%75 = call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([26 x i8], [26 x i8]* @.str.5, i64 0, i64 0))
%76 = call i32 (i8*, ...) @scanf(i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str.1, i64 0, i64 0), i32* %1)
%77 = load i32, i32* %1
br label %78
78: ; preds = %87, %74
%79 = phi i32 [ 14, %74 ], [ %92, %87 ]
%80 = phi i32 [ 0, %74 ], [ %91, %87 ]
%81 = add nsw i32 %79, %80
%82 = sdiv i32 %81, 2
%83 = sext i32 %82 to i64
%84 = getelementptr inbounds [15 x i32], [15 x i32]* %2, i64 0, i64 %83
%85 = load i32, i32* %84
%86 = icmp eq i32 %77, %85
br i1 %86, label %94, label %87
87: ; preds = %78
%88 = icmp slt i32 %77, %85
%89 = add nsw i32 %82, -1
%90 = add nsw i32 %82, 1
%91 = select i1 %88, i32 %80, i32 %90
%92 = select i1 %88, i32 %89, i32 %79
%93 = icmp sgt i32 %91, %92
br i1 %93, label %99, label %78
94: ; preds = %78
%95 = add nsw i32 %82, 1
%96 = call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([34 x i8], [34 x i8]* @.str.6, i64 0, i64 0), i32 %77, i32 %95)
%97 = add i32 %81, 3
%98 = icmp ult i32 %97, 2
br i1 %98, label %99, label %102
99: ; preds = %87, %94
%100 = load i32, i32* %1
%101 = call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([17 x i8], [17 x i8]* @.str.7, i64 0, i64 0), i32 %100)
br label %102
102: ; preds = %94, %99
%103 = call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([21 x i8], [21 x i8]* @.str.8, i64 0, i64 0))
%104 = call i32 (i8*, ...) @scanf(i8* getelementptr inbounds ([4 x i8], [4 x i8]* @.str.9, i64 0, i64 0), i8* %3)
%105 = load i8, i8* %3
%106 = and i8 %105, -33
%107 = icmp eq i8 %106, 78
br i1 %107, label %108, label %74
108: ; preds = %102
ret i32 0
}