#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 bsearch(int);
int /*<<< orphan*/ init();
int lsearch(int);
int /*<<< orphan*/ printf(char *, ...);
int /*<<< orphan*/ scanf(char *, int *);
int /*<<< orphan*/ sort();
int main() {
  int b[10], ans, i;
  init();
  printf("\nEnter the 10 no.s to be searched ");
  for (i = 0; i < 10; i++)
    scanf("%d", &b[i]);
  printf("\nNo. of comparisons for linear search\n");
  for (i = 0; i < 10; i++) {
    ans = lsearch(b[i]);
    if (ans != 256)
      printf("\nFor %d comparisons are %d", b[i], ans + 1);
    else
      printf("\nFor %d comparisons are %d", b[i], ans);
  }
  sort();
  printf("\nNo. of comparisons for binary search\n");
  for (i = 0; i < 10; i++) {
    ans = bsearch(b[i]);
    printf("\nFor %d comparisons are %d", b[i], ans);
  }
  return 0;
}


x86 assembly (clang, -O0):
<main>:
push   %rbp
mov    %rsp,%rbp
sub    $0x40,%rsp
movl   $0x0,-0x4(%rbp)
mov    $0x0,%al
call   1050 <init@plt>
lea    0xe83(%rip),%rdi
mov    $0x0,%al
call   1030 <printf@plt>
movl   $0x0,-0x38(%rbp)
cmpl   $0xa,-0x38(%rbp)
jge    11be <main+0x5e>
movslq -0x38(%rbp),%rax
lea    -0x30(%rbp),%rsi
shl    $0x2,%rax
add    %rax,%rsi
lea    0xeb7(%rip),%rdi
call   1070 <scanf@plt>
mov    -0x38(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0x38(%rbp)
jmp    118b <main+0x2b>
lea    0xe5e(%rip),%rdi
mov    $0x0,%al
call   1030 <printf@plt>
movl   $0x0,-0x38(%rbp)
cmpl   $0xa,-0x38(%rbp)
jge    1247 <main+0xe7>
movslq -0x38(%rbp),%rax
mov    -0x30(%rbp,%rax,4),%edi
call   1060 <lsearch@plt>
mov    %eax,-0x34(%rbp)
cmpl   $0x100,-0x34(%rbp)
je     121b <main+0xbb>
movslq -0x38(%rbp),%rax
mov    -0x30(%rbp,%rax,4),%esi
mov    -0x34(%rbp),%edx
add    $0x1,%edx
lea    0xe3b(%rip),%rdi
mov    $0x0,%al
call   1030 <printf@plt>
jmp    1234 <main+0xd4>
movslq -0x38(%rbp),%rax
mov    -0x30(%rbp,%rax,4),%esi
mov    -0x34(%rbp),%edx
lea    0xe1d(%rip),%rdi
mov    $0x0,%al
call   1030 <printf@plt>
jmp    1239 <main+0xd9>
mov    -0x38(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0x38(%rbp)
jmp    11d3 <main+0x73>
mov    $0x0,%al
call   1040 <sort@plt>
lea    0xe10(%rip),%rdi
mov    $0x0,%al
call   1030 <printf@plt>
movl   $0x0,-0x38(%rbp)
cmpl   $0xa,-0x38(%rbp)
jge    12a4 <main+0x144>
movslq -0x38(%rbp),%rax
mov    -0x30(%rbp,%rax,4),%edi
call   1080 <bsearch@plt>
mov    %eax,-0x34(%rbp)
movslq -0x38(%rbp),%rax
mov    -0x30(%rbp,%rax,4),%esi
mov    -0x34(%rbp),%edx
lea    0xdbb(%rip),%rdi
mov    $0x0,%al
call   1030 <printf@plt>
mov    -0x38(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0x38(%rbp)
jmp    1263 <main+0x103>
xor    %eax,%eax
add    $0x40,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<main>:
push   %rbx
sub    $0x30,%rsp
xor    %eax,%eax
call   1060 <init@plt>
lea    0xe7d(%rip),%rdi
xor    %eax,%eax
call   1040 <printf@plt>
lea    0xeaa(%rip),%rbx
mov    %rsp,%rsi
mov    %rbx,%rdi
call   1080 <scanf@plt>
lea    0x4(%rsp),%rsi
mov    %rbx,%rdi
call   1080 <scanf@plt>
lea    0x8(%rsp),%rsi
mov    %rbx,%rdi
call   1080 <scanf@plt>
lea    0xc(%rsp),%rsi
mov    %rbx,%rdi
call   1080 <scanf@plt>
lea    0x10(%rsp),%rsi
mov    %rbx,%rdi
call   1080 <scanf@plt>
lea    0x14(%rsp),%rsi
mov    %rbx,%rdi
call   1080 <scanf@plt>
lea    0x18(%rsp),%rsi
mov    %rbx,%rdi
call   1080 <scanf@plt>
lea    0x1c(%rsp),%rsi
mov    %rbx,%rdi
call   1080 <scanf@plt>
lea    0x20(%rsp),%rsi
mov    %rbx,%rdi
call   1080 <scanf@plt>
lea    0x24(%rsp),%rsi
mov    %rbx,%rdi
call   1080 <scanf@plt>
lea    0xe26(%rip),%rdi
call   1030 <puts@plt>
mov    (%rsp),%edi
call   1070 <lsearch@plt>
lea    0x1(%rax),%edx
cmp    $0x100,%eax
mov    (%rsp),%esi
cmove  %eax,%edx
lea    0xde9(%rip),%rbx
mov    %rbx,%rdi
xor    %eax,%eax
call   1040 <printf@plt>
mov    0x4(%rsp),%edi
call   1070 <lsearch@plt>
lea    0x1(%rax),%edx
cmp    $0x100,%eax
mov    0x4(%rsp),%esi
cmove  %eax,%edx
mov    %rbx,%rdi
xor    %eax,%eax
call   1040 <printf@plt>
mov    0x8(%rsp),%edi
call   1070 <lsearch@plt>
lea    0x1(%rax),%edx
cmp    $0x100,%eax
mov    0x8(%rsp),%esi
cmove  %eax,%edx
mov    %rbx,%rdi
xor    %eax,%eax
call   1040 <printf@plt>
mov    0xc(%rsp),%edi
call   1070 <lsearch@plt>
lea    0x1(%rax),%edx
cmp    $0x100,%eax
mov    0xc(%rsp),%esi
cmove  %eax,%edx
mov    %rbx,%rdi
xor    %eax,%eax
call   1040 <printf@plt>
mov    0x10(%rsp),%edi
call   1070 <lsearch@plt>
lea    0x1(%rax),%edx
cmp    $0x100,%eax
mov    0x10(%rsp),%esi
cmove  %eax,%edx
mov    %rbx,%rdi
xor    %eax,%eax
call   1040 <printf@plt>
mov    0x14(%rsp),%edi
call   1070 <lsearch@plt>
lea    0x1(%rax),%edx
cmp    $0x100,%eax
mov    0x14(%rsp),%esi
cmove  %eax,%edx
mov    %rbx,%rdi
xor    %eax,%eax
call   1040 <printf@plt>
mov    0x18(%rsp),%edi
call   1070 <lsearch@plt>
lea    0x1(%rax),%edx
cmp    $0x100,%eax
mov    0x18(%rsp),%esi
cmove  %eax,%edx
mov    %rbx,%rdi
xor    %eax,%eax
call   1040 <printf@plt>
mov    0x1c(%rsp),%edi
call   1070 <lsearch@plt>
lea    0x1(%rax),%edx
cmp    $0x100,%eax
mov    0x1c(%rsp),%esi
cmove  %eax,%edx
mov    %rbx,%rdi
xor    %eax,%eax
call   1040 <printf@plt>
mov    0x20(%rsp),%edi
call   1070 <lsearch@plt>
lea    0x1(%rax),%edx
cmp    $0x100,%eax
mov    0x20(%rsp),%esi
cmove  %eax,%edx
mov    %rbx,%rdi
xor    %eax,%eax
call   1040 <printf@plt>
mov    0x24(%rsp),%edi
call   1070 <lsearch@plt>
lea    0x1(%rax),%edx
cmp    $0x100,%eax
mov    0x24(%rsp),%esi
cmove  %eax,%edx
mov    %rbx,%rdi
xor    %eax,%eax
call   1040 <printf@plt>
xor    %eax,%eax
call   1050 <sort@plt>
lea    0xce0(%rip),%rdi
call   1030 <puts@plt>
mov    (%rsp),%edi
call   1090 <bsearch@plt>
mov    (%rsp),%esi
mov    %rbx,%rdi
mov    %eax,%edx
xor    %eax,%eax
call   1040 <printf@plt>
mov    0x4(%rsp),%edi
call   1090 <bsearch@plt>
mov    0x4(%rsp),%esi
mov    %rbx,%rdi
mov    %eax,%edx
xor    %eax,%eax
call   1040 <printf@plt>
mov    0x8(%rsp),%edi
call   1090 <bsearch@plt>
mov    0x8(%rsp),%esi
mov    %rbx,%rdi
mov    %eax,%edx
xor    %eax,%eax
call   1040 <printf@plt>
mov    0xc(%rsp),%edi
call   1090 <bsearch@plt>
mov    0xc(%rsp),%esi
mov    %rbx,%rdi
mov    %eax,%edx
xor    %eax,%eax
call   1040 <printf@plt>
mov    0x10(%rsp),%edi
call   1090 <bsearch@plt>
mov    0x10(%rsp),%esi
mov    %rbx,%rdi
mov    %eax,%edx
xor    %eax,%eax
call   1040 <printf@plt>
mov    0x14(%rsp),%edi
call   1090 <bsearch@plt>
mov    0x14(%rsp),%esi
mov    %rbx,%rdi
mov    %eax,%edx
xor    %eax,%eax
call   1040 <printf@plt>
mov    0x18(%rsp),%edi
call   1090 <bsearch@plt>
mov    0x18(%rsp),%esi
mov    %rbx,%rdi
mov    %eax,%edx
xor    %eax,%eax
call   1040 <printf@plt>
mov    0x1c(%rsp),%edi
call   1090 <bsearch@plt>
mov    0x1c(%rsp),%esi
mov    %rbx,%rdi
mov    %eax,%edx
xor    %eax,%eax
call   1040 <printf@plt>
mov    0x20(%rsp),%edi
call   1090 <bsearch@plt>
mov    0x20(%rsp),%esi
mov    %rbx,%rdi
mov    %eax,%edx
xor    %eax,%eax
call   1040 <printf@plt>
mov    0x24(%rsp),%edi
call   1090 <bsearch@plt>
mov    0x24(%rsp),%esi
mov    %rbx,%rdi
mov    %eax,%edx
xor    %eax,%eax
call   1040 <printf@plt>
xor    %eax,%eax
add    $0x30,%rsp
pop    %rbx
ret

LLVM IR (-O0):
@.str = [35 x i8] c"\0AEnter the 10 no.s to be searched \00"
@.str.1 = [3 x i8] c"%d\00"
@.str.2 = [39 x i8] c"\0ANo. of comparisons for linear search\0A\00"
@.str.3 = [27 x i8] c"\0AFor %d comparisons are %d\00"
@.str.4 = [39 x i8] c"\0ANo. of comparisons for binary search\0A\00"
define i32 @main() {
%1 = alloca i32
%2 = alloca [10 x i32]
%3 = alloca i32
%4 = alloca i32
store i32 0, i32* %1
%5 = call i32 (...) @init()
%6 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([35 x i8], [35 x i8]* @.str, i64 0, i64 0))
store i32 0, i32* %4
br label %7
7: ; preds = %15, %0
%8 = load i32, i32* %4
%9 = icmp slt i32 %8, 10
br i1 %9, label %10, label %18
10: ; preds = %7
%11 = load i32, i32* %4
%12 = sext i32 %11 to i64
%13 = getelementptr inbounds [10 x i32], [10 x i32]* %2, i64 0, i64 %12
%14 = call i32 @scanf(i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str.1, i64 0, i64 0), i32* %13)
br label %15
15: ; preds = %10
%16 = load i32, i32* %4
%17 = add nsw i32 %16, 1
store i32 %17, i32* %4
br label %7
18: ; preds = %7
%19 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([39 x i8], [39 x i8]* @.str.2, i64 0, i64 0))
store i32 0, i32* %4
br label %20
20: ; preds = %47, %18
%21 = load i32, i32* %4
%22 = icmp slt i32 %21, 10
br i1 %22, label %23, label %50
23: ; preds = %20
%24 = load i32, i32* %4
%25 = sext i32 %24 to i64
%26 = getelementptr inbounds [10 x i32], [10 x i32]* %2, i64 0, i64 %25
%27 = load i32, i32* %26
%28 = call i32 @lsearch(i32 %27)
store i32 %28, i32* %3
%29 = load i32, i32* %3
%30 = icmp ne i32 %29, 256
br i1 %30, label %31, label %39
31: ; preds = %23
%32 = load i32, i32* %4
%33 = sext i32 %32 to i64
%34 = getelementptr inbounds [10 x i32], [10 x i32]* %2, i64 0, i64 %33
%35 = load i32, i32* %34
%36 = load i32, i32* %3
%37 = add nsw i32 %36, 1
%38 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([27 x i8], [27 x i8]* @.str.3, i64 0, i64 0), i32 %35, i32 %37)
br label %46
39: ; preds = %23
%40 = load i32, i32* %4
%41 = sext i32 %40 to i64
%42 = getelementptr inbounds [10 x i32], [10 x i32]* %2, i64 0, i64 %41
%43 = load i32, i32* %42
%44 = load i32, i32* %3
%45 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([27 x i8], [27 x i8]* @.str.3, i64 0, i64 0), i32 %43, i32 %44)
br label %46
46: ; preds = %39, %31
br label %47
47: ; preds = %46
%48 = load i32, i32* %4
%49 = add nsw i32 %48, 1
store i32 %49, i32* %4
br label %20
50: ; preds = %20
%51 = call i32 (...) @sort()
%52 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([39 x i8], [39 x i8]* @.str.4, i64 0, i64 0))
store i32 0, i32* %4
br label %53
53: ; preds = %68, %50
%54 = load i32, i32* %4
%55 = icmp slt i32 %54, 10
br i1 %55, label %56, label %71
56: ; preds = %53
%57 = load i32, i32* %4
%58 = sext i32 %57 to i64
%59 = getelementptr inbounds [10 x i32], [10 x i32]* %2, i64 0, i64 %58
%60 = load i32, i32* %59
%61 = call i32 @bsearch(i32 %60)
store i32 %61, i32* %3
%62 = load i32, i32* %4
%63 = sext i32 %62 to i64
%64 = getelementptr inbounds [10 x i32], [10 x i32]* %2, i64 0, i64 %63
%65 = load i32, i32* %64
%66 = load i32, i32* %3
%67 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([27 x i8], [27 x i8]* @.str.3, i64 0, i64 0), i32 %65, i32 %66)
br label %68
68: ; preds = %56
%69 = load i32, i32* %4
%70 = add nsw i32 %69, 1
store i32 %70, i32* %4
br label %53
71: ; preds = %53
ret i32 0
}

LLVM IR (-O2):
@.str = [35 x i8] c"\0AEnter the 10 no.s to be searched \00"
@.str.1 = [3 x i8] c"%d\00"
@.str.3 = [27 x i8] c"\0AFor %d comparisons are %d\00"
@str = [38 x i8] c"\0ANo. of comparisons for linear search\00"
@str.5 = [38 x i8] c"\0ANo. of comparisons for binary search\00"
define i32 @main() {
%1 = alloca [10 x i32]
%2 = bitcast [10 x i32]* %1 to i8*
%3 = tail call i32 (...) @init()
%4 = tail call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([35 x i8], [35 x i8]* @.str, i64 0, i64 0))
%5 = getelementptr inbounds [10 x i32], [10 x i32]* %1, i64 0, i64 0
%6 = call i32 @scanf(i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str.1, i64 0, i64 0), i32* %5)
%7 = getelementptr inbounds [10 x i32], [10 x i32]* %1, i64 0, i64 1
%8 = call i32 @scanf(i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str.1, i64 0, i64 0), i32* %7)
%9 = getelementptr inbounds [10 x i32], [10 x i32]* %1, i64 0, i64 2
%10 = call i32 @scanf(i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str.1, i64 0, i64 0), i32* %9)
%11 = getelementptr inbounds [10 x i32], [10 x i32]* %1, i64 0, i64 3
%12 = call i32 @scanf(i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str.1, i64 0, i64 0), i32* %11)
%13 = getelementptr inbounds [10 x i32], [10 x i32]* %1, i64 0, i64 4
%14 = call i32 @scanf(i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str.1, i64 0, i64 0), i32* %13)
%15 = getelementptr inbounds [10 x i32], [10 x i32]* %1, i64 0, i64 5
%16 = call i32 @scanf(i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str.1, i64 0, i64 0), i32* %15)
%17 = getelementptr inbounds [10 x i32], [10 x i32]* %1, i64 0, i64 6
%18 = call i32 @scanf(i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str.1, i64 0, i64 0), i32* %17)
%19 = getelementptr inbounds [10 x i32], [10 x i32]* %1, i64 0, i64 7
%20 = call i32 @scanf(i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str.1, i64 0, i64 0), i32* %19)
%21 = getelementptr inbounds [10 x i32], [10 x i32]* %1, i64 0, i64 8
%22 = call i32 @scanf(i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str.1, i64 0, i64 0), i32* %21)
%23 = getelementptr inbounds [10 x i32], [10 x i32]* %1, i64 0, i64 9
%24 = call i32 @scanf(i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str.1, i64 0, i64 0), i32* %23)
%25 = call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([38 x i8], [38 x i8]* @str, i64 0, i64 0))
%26 = getelementptr inbounds [10 x i32], [10 x i32]* %1, i64 0, i64 0
%27 = load i32, i32* %26
%28 = call i32 @lsearch(i32 %27)
%29 = icmp eq i32 %28, 256
%30 = load i32, i32* %26
%31 = add nsw i32 %28, 1
%32 = select i1 %29, i32 256, i32 %31
%33 = call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([27 x i8], [27 x i8]* @.str.3, i64 0, i64 0), i32 %30, i32 %32)
%34 = getelementptr inbounds [10 x i32], [10 x i32]* %1, i64 0, i64 1
%35 = load i32, i32* %34
%36 = call i32 @lsearch(i32 %35)
%37 = icmp eq i32 %36, 256
%38 = load i32, i32* %34
%39 = add nsw i32 %36, 1
%40 = select i1 %37, i32 256, i32 %39
%41 = call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([27 x i8], [27 x i8]* @.str.3, i64 0, i64 0), i32 %38, i32 %40)
%42 = getelementptr inbounds [10 x i32], [10 x i32]* %1, i64 0, i64 2
%43 = load i32, i32* %42
%44 = call i32 @lsearch(i32 %43)
%45 = icmp eq i32 %44, 256
%46 = load i32, i32* %42
%47 = add nsw i32 %44, 1
%48 = select i1 %45, i32 256, i32 %47
%49 = call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([27 x i8], [27 x i8]* @.str.3, i64 0, i64 0), i32 %46, i32 %48)
%50 = getelementptr inbounds [10 x i32], [10 x i32]* %1, i64 0, i64 3
%51 = load i32, i32* %50
%52 = call i32 @lsearch(i32 %51)
%53 = icmp eq i32 %52, 256
%54 = load i32, i32* %50
%55 = add nsw i32 %52, 1
%56 = select i1 %53, i32 256, i32 %55
%57 = call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([27 x i8], [27 x i8]* @.str.3, i64 0, i64 0), i32 %54, i32 %56)
%58 = getelementptr inbounds [10 x i32], [10 x i32]* %1, i64 0, i64 4
%59 = load i32, i32* %58
%60 = call i32 @lsearch(i32 %59)
%61 = icmp eq i32 %60, 256
%62 = load i32, i32* %58
%63 = add nsw i32 %60, 1
%64 = select i1 %61, i32 256, i32 %63
%65 = call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([27 x i8], [27 x i8]* @.str.3, i64 0, i64 0), i32 %62, i32 %64)
%66 = getelementptr inbounds [10 x i32], [10 x i32]* %1, i64 0, i64 5
%67 = load i32, i32* %66
%68 = call i32 @lsearch(i32 %67)
%69 = icmp eq i32 %68, 256
%70 = load i32, i32* %66
%71 = add nsw i32 %68, 1
%72 = select i1 %69, i32 256, i32 %71
%73 = call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([27 x i8], [27 x i8]* @.str.3, i64 0, i64 0), i32 %70, i32 %72)
%74 = getelementptr inbounds [10 x i32], [10 x i32]* %1, i64 0, i64 6
%75 = load i32, i32* %74
%76 = call i32 @lsearch(i32 %75)
%77 = icmp eq i32 %76, 256
%78 = load i32, i32* %74
%79 = add nsw i32 %76, 1
%80 = select i1 %77, i32 256, i32 %79
%81 = call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([27 x i8], [27 x i8]* @.str.3, i64 0, i64 0), i32 %78, i32 %80)
%82 = getelementptr inbounds [10 x i32], [10 x i32]* %1, i64 0, i64 7
%83 = load i32, i32* %82
%84 = call i32 @lsearch(i32 %83)
%85 = icmp eq i32 %84, 256
%86 = load i32, i32* %82
%87 = add nsw i32 %84, 1
%88 = select i1 %85, i32 256, i32 %87
%89 = call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([27 x i8], [27 x i8]* @.str.3, i64 0, i64 0), i32 %86, i32 %88)
%90 = getelementptr inbounds [10 x i32], [10 x i32]* %1, i64 0, i64 8
%91 = load i32, i32* %90
%92 = call i32 @lsearch(i32 %91)
%93 = icmp eq i32 %92, 256
%94 = load i32, i32* %90
%95 = add nsw i32 %92, 1
%96 = select i1 %93, i32 256, i32 %95
%97 = call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([27 x i8], [27 x i8]* @.str.3, i64 0, i64 0), i32 %94, i32 %96)
%98 = getelementptr inbounds [10 x i32], [10 x i32]* %1, i64 0, i64 9
%99 = load i32, i32* %98
%100 = call i32 @lsearch(i32 %99)
%101 = icmp eq i32 %100, 256
%102 = load i32, i32* %98
%103 = add nsw i32 %100, 1
%104 = select i1 %101, i32 256, i32 %103
%105 = call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([27 x i8], [27 x i8]* @.str.3, i64 0, i64 0), i32 %102, i32 %104)
%106 = call i32 (...) @sort()
%107 = call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([38 x i8], [38 x i8]* @str.5, i64 0, i64 0))
%108 = load i32, i32* %5
%109 = call i32 @bsearch(i32 %108)
%110 = load i32, i32* %5
%111 = call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([27 x i8], [27 x i8]* @.str.3, i64 0, i64 0), i32 %110, i32 %109)
%112 = load i32, i32* %7
%113 = call i32 @bsearch(i32 %112)
%114 = load i32, i32* %7
%115 = call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([27 x i8], [27 x i8]* @.str.3, i64 0, i64 0), i32 %114, i32 %113)
%116 = load i32, i32* %9
%117 = call i32 @bsearch(i32 %116)
%118 = load i32, i32* %9
%119 = call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([27 x i8], [27 x i8]* @.str.3, i64 0, i64 0), i32 %118, i32 %117)
%120 = load i32, i32* %11
%121 = call i32 @bsearch(i32 %120)
%122 = load i32, i32* %11
%123 = call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([27 x i8], [27 x i8]* @.str.3, i64 0, i64 0), i32 %122, i32 %121)
%124 = load i32, i32* %13
%125 = call i32 @bsearch(i32 %124)
%126 = load i32, i32* %13
%127 = call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([27 x i8], [27 x i8]* @.str.3, i64 0, i64 0), i32 %126, i32 %125)
%128 = load i32, i32* %15
%129 = call i32 @bsearch(i32 %128)
%130 = load i32, i32* %15
%131 = call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([27 x i8], [27 x i8]* @.str.3, i64 0, i64 0), i32 %130, i32 %129)
%132 = load i32, i32* %17
%133 = call i32 @bsearch(i32 %132)
%134 = load i32, i32* %17
%135 = call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([27 x i8], [27 x i8]* @.str.3, i64 0, i64 0), i32 %134, i32 %133)
%136 = load i32, i32* %19
%137 = call i32 @bsearch(i32 %136)
%138 = load i32, i32* %19
%139 = call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([27 x i8], [27 x i8]* @.str.3, i64 0, i64 0), i32 %138, i32 %137)
%140 = load i32, i32* %21
%141 = call i32 @bsearch(i32 %140)
%142 = load i32, i32* %21
%143 = call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([27 x i8], [27 x i8]* @.str.3, i64 0, i64 0), i32 %142, i32 %141)
%144 = load i32, i32* %23
%145 = call i32 @bsearch(i32 %144)
%146 = load i32, i32* %23
%147 = call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([27 x i8], [27 x i8]* @.str.3, i64 0, i64 0), i32 %146, i32 %145)
ret i32 0
}