#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 */
typedef scalar_t__ clock_t;

/* Variables and functions */
int /*<<< orphan*/ binsearch_at(int, int *, int);
int /*<<< orphan*/ binsearch_knr(int, int *, int);
int /*<<< orphan*/ binsearch_nimi(int, int *, int);
scalar_t__ clock();
int /*<<< orphan*/ printf(char *, long double);
int main(void) {
  int e, ee, maxe = 100, maxlp = 100000;
  int v[maxe];
  clock_t start, stop;
  long double runtime_knr = 0, runtime_nimi = 0, runtime_at = 0;
  for (e = 0; e < maxe; ++e) {
    v[e] = e;
  }
  for (e = 0; e < maxlp; ++e) {
    start = clock();
    for (ee = 0; ee < maxe; ++ee) {
      binsearch_knr(ee, v, maxe);
    }
    stop = clock();
    runtime_knr += stop - start;
    start = clock();
    for (ee = 0; ee < maxe; ++ee) {
      binsearch_nimi(ee, v, maxe);
    }
    stop = clock();
    runtime_nimi += stop - start;
    start = clock();
    for (ee = 0; ee < maxe; ++ee) {
      binsearch_at(ee, v, maxe);
    }
    stop = clock();
    runtime_at += stop - start;
  }
  printf("Average run time for binsearch_knr = [%Lf]\n", runtime_knr / maxlp);
  printf("Average run time for binsearch_nimi = [%Lf]\n", runtime_nimi / maxlp);
  printf("Average run time for binsearch_at = [%Lf]\n", runtime_at / maxlp);
  return 0;
}


x86 assembly (clang, -O0):
<main>:
push   %rbp
mov    %rsp,%rbp
sub    $0xa0,%rsp
movl   $0x0,-0x4(%rbp)
movl   $0x64,-0x10(%rbp)
movl   $0x186a0,-0x14(%rbp)
mov    -0x10(%rbp),%eax
mov    %rsp,%rcx
mov    %rcx,-0x20(%rbp)
lea    0xf(,%rax,4),%rdx
and    $0xfffffffffffffff0,%rdx
mov    %rsp,%rcx
sub    %rdx,%rcx
mov    %rcx,-0xa0(%rbp)
mov    %rcx,%rsp
mov    %rax,-0x28(%rbp)
fldz
fld    %st(0)
fstpt  -0x50(%rbp)
fld    %st(0)
fstpt  -0x60(%rbp)
fstpt  -0x70(%rbp)
movl   $0x0,-0x8(%rbp)
mov    -0x8(%rbp),%eax
cmp    -0x10(%rbp),%eax
jge    11db <main+0x8b>
mov    -0xa0(%rbp),%rax
mov    -0x8(%rbp),%edx
movslq -0x8(%rbp),%rcx
mov    %edx,(%rax,%rcx,4)
mov    -0x8(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0x8(%rbp)
jmp    11b0 <main+0x60>
movl   $0x0,-0x8(%rbp)
mov    -0x8(%rbp),%eax
cmp    -0x14(%rbp),%eax
jge    1337 <main+0x1e7>
mov    $0x0,%al
call   1030 <clock@plt>
mov    %rax,-0x30(%rbp)
movl   $0x0,-0xc(%rbp)
mov    -0xc(%rbp),%eax
cmp    -0x10(%rbp),%eax
jge    122c <main+0xdc>
mov    -0xa0(%rbp),%rsi
mov    -0xc(%rbp),%edi
mov    -0x10(%rbp),%edx
call   1070 <binsearch_knr@plt>
mov    -0xc(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0xc(%rbp)
jmp    1200 <main+0xb0>
xor    %eax,%eax
call   1030 <clock@plt>
mov    %rax,-0x38(%rbp)
mov    -0x38(%rbp),%rax
mov    -0x30(%rbp),%rcx
sub    %rcx,%rax
mov    %rax,-0x88(%rbp)
fildll -0x88(%rbp)
fldt   -0x50(%rbp)
faddp  %st,%st(1)
fstpt  -0x50(%rbp)
mov    $0x0,%al
call   1030 <clock@plt>
mov    %rax,-0x30(%rbp)
movl   $0x0,-0xc(%rbp)
mov    -0xc(%rbp),%eax
cmp    -0x10(%rbp),%eax
jge    1295 <main+0x145>
mov    -0xa0(%rbp),%rsi
mov    -0xc(%rbp),%edi
mov    -0x10(%rbp),%edx
call   1050 <binsearch_nimi@plt>
mov    -0xc(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0xc(%rbp)
jmp    1269 <main+0x119>
xor    %eax,%eax
call   1030 <clock@plt>
mov    %rax,-0x38(%rbp)
mov    -0x38(%rbp),%rax
mov    -0x30(%rbp),%rcx
sub    %rcx,%rax
mov    %rax,-0x90(%rbp)
fildll -0x90(%rbp)
fldt   -0x60(%rbp)
faddp  %st,%st(1)
fstpt  -0x60(%rbp)
mov    $0x0,%al
call   1030 <clock@plt>
mov    %rax,-0x30(%rbp)
movl   $0x0,-0xc(%rbp)
mov    -0xc(%rbp),%eax
cmp    -0x10(%rbp),%eax
jge    12fe <main+0x1ae>
mov    -0xa0(%rbp),%rsi
mov    -0xc(%rbp),%edi
mov    -0x10(%rbp),%edx
call   1060 <binsearch_at@plt>
mov    -0xc(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0xc(%rbp)
jmp    12d2 <main+0x182>
xor    %eax,%eax
call   1030 <clock@plt>
mov    %rax,-0x38(%rbp)
mov    -0x38(%rbp),%rax
mov    -0x30(%rbp),%rcx
sub    %rcx,%rax
mov    %rax,-0x98(%rbp)
fildll -0x98(%rbp)
fldt   -0x70(%rbp)
faddp  %st,%st(1)
fstpt  -0x70(%rbp)
mov    -0x8(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0x8(%rbp)
jmp    11e2 <main+0x92>
fldt   -0x50(%rbp)
mov    -0x14(%rbp),%eax
mov    %eax,-0x7c(%rbp)
fildl  -0x7c(%rbp)
fdivrp %st,%st(1)
sub    $0x10,%rsp
mov    %rsp,%rax
fstpt  (%rax)
lea    0xcab(%rip),%rdi
call   1040 <printf@plt>
add    $0x10,%rsp
fldt   -0x60(%rbp)
mov    -0x14(%rbp),%eax
mov    %eax,-0x78(%rbp)
fildl  -0x78(%rbp)
fdivrp %st,%st(1)
sub    $0x10,%rsp
mov    %rsp,%rax
fstpt  (%rax)
lea    0xcb0(%rip),%rdi
call   1040 <printf@plt>
add    $0x10,%rsp
fldt   -0x70(%rbp)
mov    -0x14(%rbp),%eax
mov    %eax,-0x74(%rbp)
fildl  -0x74(%rbp)
fdivrp %st,%st(1)
sub    $0x10,%rsp
mov    %rsp,%rax
fstpt  (%rax)
lea    0xcb6(%rip),%rdi
call   1040 <printf@plt>
add    $0x10,%rsp
movl   $0x0,-0x4(%rbp)
mov    -0x20(%rbp),%rax
mov    %rax,%rsp
mov    -0x4(%rbp),%eax
mov    %rbp,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<main>:
push   %rbp
push   %r15
push   %r14
push   %rbx
sub    $0x208,%rsp
movaps 0xe9c(%rip),%xmm0
movaps %xmm0,0x70(%rsp)
movaps 0xea0(%rip),%xmm0
movaps %xmm0,0x80(%rsp)
movaps 0xea1(%rip),%xmm0
movaps %xmm0,0x90(%rsp)
movaps 0xea2(%rip),%xmm0
movaps %xmm0,0xa0(%rsp)
movaps 0xea3(%rip),%xmm0
movaps %xmm0,0xb0(%rsp)
movaps 0xea4(%rip),%xmm0
movaps %xmm0,0xc0(%rsp)
movaps 0xea5(%rip),%xmm0
movaps %xmm0,0xd0(%rsp)
movaps 0xea6(%rip),%xmm0
movaps %xmm0,0xe0(%rsp)
movaps 0xea7(%rip),%xmm0
movaps %xmm0,0xf0(%rsp)
movaps 0xea8(%rip),%xmm0
movaps %xmm0,0x100(%rsp)
movaps 0xea9(%rip),%xmm0
movaps %xmm0,0x110(%rsp)
movaps 0xeaa(%rip),%xmm0
movaps %xmm0,0x120(%rsp)
movaps 0xeab(%rip),%xmm0
movaps %xmm0,0x130(%rsp)
movaps 0xeac(%rip),%xmm0
movaps %xmm0,0x140(%rsp)
movaps 0xead(%rip),%xmm0
movaps %xmm0,0x150(%rsp)
movaps 0xeae(%rip),%xmm0
movaps %xmm0,0x160(%rsp)
movaps 0xeaf(%rip),%xmm0
movaps %xmm0,0x170(%rsp)
movaps 0xeb0(%rip),%xmm0
movaps %xmm0,0x180(%rsp)
movaps 0xeb1(%rip),%xmm0
movaps %xmm0,0x190(%rsp)
movaps 0xeb2(%rip),%xmm0
movaps %xmm0,0x1a0(%rsp)
movaps 0xeb3(%rip),%xmm0
movaps %xmm0,0x1b0(%rsp)
movaps 0xeb4(%rip),%xmm0
movaps %xmm0,0x1c0(%rsp)
movaps 0xeb5(%rip),%xmm0
movaps %xmm0,0x1d0(%rsp)
movaps 0xeb6(%rip),%xmm0
movaps %xmm0,0x1e0(%rsp)
movaps 0xeb7(%rip),%xmm0
movaps %xmm0,0x1f0(%rsp)
fldz
lea    0x70(%rsp),%rbx
fld    %st(0)
fstpt  0x30(%rsp)
xor    %r15d,%r15d
fld    %st(0)
fstpt  0x3c(%rsp)
fstpt  0x24(%rsp)
nopl   0x0(%rax,%rax,1)
xor    %eax,%eax
call   1030 <clock@plt>
mov    %rax,%r14
xor    %ebp,%ebp
nopl   0x0(%rax)
mov    %ebp,%edi
mov    %rbx,%rsi
mov    $0x64,%edx
call   1070 <binsearch_knr@plt>
add    $0x1,%ebp
cmp    $0x64,%ebp
jne    1300 <main+0x1b0>
xor    %ebp,%ebp
xor    %eax,%eax
call   1030 <clock@plt>
sub    %r14,%rax
mov    %rax,0x58(%rsp)
fildll 0x58(%rsp)
fstpt  0x18(%rsp)
xor    %eax,%eax
call   1030 <clock@plt>
mov    %rax,%r14
nopw   0x0(%rax,%rax,1)
mov    %ebp,%edi
mov    %rbx,%rsi
mov    $0x64,%edx
call   1050 <binsearch_nimi@plt>
add    $0x1,%ebp
cmp    $0x64,%ebp
jne    1340 <main+0x1f0>
xor    %ebp,%ebp
xor    %eax,%eax
call   1030 <clock@plt>
sub    %r14,%rax
mov    %rax,0x50(%rsp)
fildll 0x50(%rsp)
fstpt  0x64(%rsp)
xor    %eax,%eax
call   1030 <clock@plt>
mov    %rax,%r14
nopw   0x0(%rax,%rax,1)
mov    %ebp,%edi
mov    %rbx,%rsi
mov    $0x64,%edx
call   1060 <binsearch_at@plt>
add    $0x1,%ebp
cmp    $0x64,%ebp
jne    1380 <main+0x230>
fldt   0x24(%rsp)
fldt   0x18(%rsp)
faddp  %st,%st(1)
fstpt  0x24(%rsp)
fldt   0x30(%rsp)
fldt   0x64(%rsp)
faddp  %st,%st(1)
fstpt  0x30(%rsp)
xor    %eax,%eax
call   1030 <clock@plt>
sub    %r14,%rax
mov    %rax,0x48(%rsp)
fildll 0x48(%rsp)
fldt   0x3c(%rsp)
faddp  %st,%st(1)
fstpt  0x3c(%rsp)
add    $0x1,%r15d
cmp    $0x186a0,%r15d
jne    12f0 <main+0x1a0>
flds   0xda9(%rip)
fld    %st(0)
fstpt  0x18(%rsp)
fldt   0x24(%rsp)
fdivp  %st,%st(1)
fstpt  (%rsp)
lea    0xd97(%rip),%rdi
call   1040 <printf@plt>
fldt   0x30(%rsp)
fldt   0x18(%rsp)
fdivrp %st,%st(1)
fstpt  (%rsp)
lea    0xdaa(%rip),%rdi
call   1040 <printf@plt>
fldt   0x3c(%rsp)
fldt   0x18(%rsp)
fdivrp %st,%st(1)
fstpt  (%rsp)
lea    0xdbe(%rip),%rdi
call   1040 <printf@plt>
xor    %eax,%eax
add    $0x208,%rsp
pop    %rbx
pop    %r14
pop    %r15
pop    %rbp
ret

LLVM IR (-O0):
@.str = [44 x i8] c"Average run time for binsearch_knr = [%Lf]\0A\00"
@.str.1 = [45 x i8] c"Average run time for binsearch_nimi = [%Lf]\0A\00"
@.str.2 = [43 x i8] c"Average run time for binsearch_at = [%Lf]\0A\00"
define i32 @main() {
%1 = alloca i32
%2 = alloca i32
%3 = alloca i32
%4 = alloca i32
%5 = alloca i32
%6 = alloca i8*
%7 = alloca i64
%8 = alloca i64
%9 = alloca i64
%10 = alloca x86_fp80
%11 = alloca x86_fp80
%12 = alloca x86_fp80
store i32 0, i32* %1
store i32 100, i32* %4
store i32 100000, i32* %5
%13 = load i32, i32* %4
%14 = zext i32 %13 to i64
%15 = call i8* @llvm.stacksave()
store i8* %15, i8** %6
%16 = alloca i32, i64 %14
store i64 %14, i64* %7
store x86_fp80 0xK00000000000000000000, x86_fp80* %10
store x86_fp80 0xK00000000000000000000, x86_fp80* %11
store x86_fp80 0xK00000000000000000000, x86_fp80* %12
store i32 0, i32* %2
br label %17
17: ; preds = %26, %0
%18 = load i32, i32* %2
%19 = load i32, i32* %4
%20 = icmp slt i32 %18, %19
br i1 %20, label %21, label %29
21: ; preds = %17
%22 = load i32, i32* %2
%23 = load i32, i32* %2
%24 = sext i32 %23 to i64
%25 = getelementptr inbounds i32, i32* %16, i64 %24
store i32 %22, i32* %25
br label %26
26: ; preds = %21
%27 = load i32, i32* %2
%28 = add nsw i32 %27, 1
store i32 %28, i32* %2
br label %17
29: ; preds = %17
store i32 0, i32* %2
br label %30
30: ; preds = %95, %29
%31 = load i32, i32* %2
%32 = load i32, i32* %5
%33 = icmp slt i32 %31, %32
br i1 %33, label %34, label %98
34: ; preds = %30
%35 = call i64 (...) @clock()
store i64 %35, i64* %8
store i32 0, i32* %3
br label %36
36: ; preds = %44, %34
%37 = load i32, i32* %3
%38 = load i32, i32* %4
%39 = icmp slt i32 %37, %38
br i1 %39, label %40, label %47
40: ; preds = %36
%41 = load i32, i32* %3
%42 = load i32, i32* %4
%43 = call i32 @binsearch_knr(i32 %41, i32* %16, i32 %42)
br label %44
44: ; preds = %40
%45 = load i32, i32* %3
%46 = add nsw i32 %45, 1
store i32 %46, i32* %3
br label %36
47: ; preds = %36
%48 = call i64 (...) @clock()
store i64 %48, i64* %9
%49 = load i64, i64* %9
%50 = load i64, i64* %8
%51 = sub nsw i64 %49, %50
%52 = sitofp i64 %51 to x86_fp80
%53 = load x86_fp80, x86_fp80* %10
%54 = fadd x86_fp80 %53, %52
store x86_fp80 %54, x86_fp80* %10
%55 = call i64 (...) @clock()
store i64 %55, i64* %8
store i32 0, i32* %3
br label %56
56: ; preds = %64, %47
%57 = load i32, i32* %3
%58 = load i32, i32* %4
%59 = icmp slt i32 %57, %58
br i1 %59, label %60, label %67
60: ; preds = %56
%61 = load i32, i32* %3
%62 = load i32, i32* %4
%63 = call i32 @binsearch_nimi(i32 %61, i32* %16, i32 %62)
br label %64
64: ; preds = %60
%65 = load i32, i32* %3
%66 = add nsw i32 %65, 1
store i32 %66, i32* %3
br label %56
67: ; preds = %56
%68 = call i64 (...) @clock()
store i64 %68, i64* %9
%69 = load i64, i64* %9
%70 = load i64, i64* %8
%71 = sub nsw i64 %69, %70
%72 = sitofp i64 %71 to x86_fp80
%73 = load x86_fp80, x86_fp80* %11
%74 = fadd x86_fp80 %73, %72
store x86_fp80 %74, x86_fp80* %11
%75 = call i64 (...) @clock()
store i64 %75, i64* %8
store i32 0, i32* %3
br label %76
76: ; preds = %84, %67
%77 = load i32, i32* %3
%78 = load i32, i32* %4
%79 = icmp slt i32 %77, %78
br i1 %79, label %80, label %87
80: ; preds = %76
%81 = load i32, i32* %3
%82 = load i32, i32* %4
%83 = call i32 @binsearch_at(i32 %81, i32* %16, i32 %82)
br label %84
84: ; preds = %80
%85 = load i32, i32* %3
%86 = add nsw i32 %85, 1
store i32 %86, i32* %3
br label %76
87: ; preds = %76
%88 = call i64 (...) @clock()
store i64 %88, i64* %9
%89 = load i64, i64* %9
%90 = load i64, i64* %8
%91 = sub nsw i64 %89, %90
%92 = sitofp i64 %91 to x86_fp80
%93 = load x86_fp80, x86_fp80* %12
%94 = fadd x86_fp80 %93, %92
store x86_fp80 %94, x86_fp80* %12
br label %95
95: ; preds = %87
%96 = load i32, i32* %2
%97 = add nsw i32 %96, 1
store i32 %97, i32* %2
br label %30
98: ; preds = %30
%99 = load x86_fp80, x86_fp80* %10
%100 = load i32, i32* %5
%101 = sitofp i32 %100 to x86_fp80
%102 = fdiv x86_fp80 %99, %101
%103 = call i32 @printf(i8* getelementptr inbounds ([44 x i8], [44 x i8]* @.str, i64 0, i64 0), x86_fp80 %102)
%104 = load x86_fp80, x86_fp80* %11
%105 = load i32, i32* %5
%106 = sitofp i32 %105 to x86_fp80
%107 = fdiv x86_fp80 %104, %106
%108 = call i32 @printf(i8* getelementptr inbounds ([45 x i8], [45 x i8]* @.str.1, i64 0, i64 0), x86_fp80 %107)
%109 = load x86_fp80, x86_fp80* %12
%110 = load i32, i32* %5
%111 = sitofp i32 %110 to x86_fp80
%112 = fdiv x86_fp80 %109, %111
%113 = call i32 @printf(i8* getelementptr inbounds ([43 x i8], [43 x i8]* @.str.2, i64 0, i64 0), x86_fp80 %112)
store i32 0, i32* %1
%114 = load i8*, i8** %6
%115 = load i32, i32* %1
ret i32 %115
}

LLVM IR (-O2):
@.str = [44 x i8] c"Average run time for binsearch_knr = [%Lf]\0A\00"
@.str.1 = [45 x i8] c"Average run time for binsearch_nimi = [%Lf]\0A\00"
@.str.2 = [43 x i8] c"Average run time for binsearch_at = [%Lf]\0A\00"
define i32 @main() {
%1 = alloca [100 x i32]
%2 = bitcast [100 x i32]* %1 to <4 x i32>*
store <4 x i32> <i32 0, i32 1, i32 2, i32 3>, <4 x i32>* %2
%3 = getelementptr inbounds [100 x i32], [100 x i32]* %1, i64 0, i64 4
%4 = bitcast i32* %3 to <4 x i32>*
store <4 x i32> <i32 4, i32 5, i32 6, i32 7>, <4 x i32>* %4
%5 = getelementptr inbounds [100 x i32], [100 x i32]* %1, i64 0, i64 8
%6 = bitcast i32* %5 to <4 x i32>*
store <4 x i32> <i32 8, i32 9, i32 10, i32 11>, <4 x i32>* %6
%7 = getelementptr inbounds [100 x i32], [100 x i32]* %1, i64 0, i64 12
%8 = bitcast i32* %7 to <4 x i32>*
store <4 x i32> <i32 12, i32 13, i32 14, i32 15>, <4 x i32>* %8
%9 = getelementptr inbounds [100 x i32], [100 x i32]* %1, i64 0, i64 16
%10 = bitcast i32* %9 to <4 x i32>*
store <4 x i32> <i32 16, i32 17, i32 18, i32 19>, <4 x i32>* %10
%11 = getelementptr inbounds [100 x i32], [100 x i32]* %1, i64 0, i64 20
%12 = bitcast i32* %11 to <4 x i32>*
store <4 x i32> <i32 20, i32 21, i32 22, i32 23>, <4 x i32>* %12
%13 = getelementptr inbounds [100 x i32], [100 x i32]* %1, i64 0, i64 24
%14 = bitcast i32* %13 to <4 x i32>*
store <4 x i32> <i32 24, i32 25, i32 26, i32 27>, <4 x i32>* %14
%15 = getelementptr inbounds [100 x i32], [100 x i32]* %1, i64 0, i64 28
%16 = bitcast i32* %15 to <4 x i32>*
store <4 x i32> <i32 28, i32 29, i32 30, i32 31>, <4 x i32>* %16
%17 = getelementptr inbounds [100 x i32], [100 x i32]* %1, i64 0, i64 32
%18 = bitcast i32* %17 to <4 x i32>*
store <4 x i32> <i32 32, i32 33, i32 34, i32 35>, <4 x i32>* %18
%19 = getelementptr inbounds [100 x i32], [100 x i32]* %1, i64 0, i64 36
%20 = bitcast i32* %19 to <4 x i32>*
store <4 x i32> <i32 36, i32 37, i32 38, i32 39>, <4 x i32>* %20
%21 = getelementptr inbounds [100 x i32], [100 x i32]* %1, i64 0, i64 40
%22 = bitcast i32* %21 to <4 x i32>*
store <4 x i32> <i32 40, i32 41, i32 42, i32 43>, <4 x i32>* %22
%23 = getelementptr inbounds [100 x i32], [100 x i32]* %1, i64 0, i64 44
%24 = bitcast i32* %23 to <4 x i32>*
store <4 x i32> <i32 44, i32 45, i32 46, i32 47>, <4 x i32>* %24
%25 = getelementptr inbounds [100 x i32], [100 x i32]* %1, i64 0, i64 48
%26 = bitcast i32* %25 to <4 x i32>*
store <4 x i32> <i32 48, i32 49, i32 50, i32 51>, <4 x i32>* %26
%27 = getelementptr inbounds [100 x i32], [100 x i32]* %1, i64 0, i64 52
%28 = bitcast i32* %27 to <4 x i32>*
store <4 x i32> <i32 52, i32 53, i32 54, i32 55>, <4 x i32>* %28
%29 = getelementptr inbounds [100 x i32], [100 x i32]* %1, i64 0, i64 56
%30 = bitcast i32* %29 to <4 x i32>*
store <4 x i32> <i32 56, i32 57, i32 58, i32 59>, <4 x i32>* %30
%31 = getelementptr inbounds [100 x i32], [100 x i32]* %1, i64 0, i64 60
%32 = bitcast i32* %31 to <4 x i32>*
store <4 x i32> <i32 60, i32 61, i32 62, i32 63>, <4 x i32>* %32
%33 = getelementptr inbounds [100 x i32], [100 x i32]* %1, i64 0, i64 64
%34 = bitcast i32* %33 to <4 x i32>*
store <4 x i32> <i32 64, i32 65, i32 66, i32 67>, <4 x i32>* %34
%35 = getelementptr inbounds [100 x i32], [100 x i32]* %1, i64 0, i64 68
%36 = bitcast i32* %35 to <4 x i32>*
store <4 x i32> <i32 68, i32 69, i32 70, i32 71>, <4 x i32>* %36
%37 = getelementptr inbounds [100 x i32], [100 x i32]* %1, i64 0, i64 72
%38 = bitcast i32* %37 to <4 x i32>*
store <4 x i32> <i32 72, i32 73, i32 74, i32 75>, <4 x i32>* %38
%39 = getelementptr inbounds [100 x i32], [100 x i32]* %1, i64 0, i64 76
%40 = bitcast i32* %39 to <4 x i32>*
store <4 x i32> <i32 76, i32 77, i32 78, i32 79>, <4 x i32>* %40
%41 = getelementptr inbounds [100 x i32], [100 x i32]* %1, i64 0, i64 80
%42 = bitcast i32* %41 to <4 x i32>*
store <4 x i32> <i32 80, i32 81, i32 82, i32 83>, <4 x i32>* %42
%43 = getelementptr inbounds [100 x i32], [100 x i32]* %1, i64 0, i64 84
%44 = bitcast i32* %43 to <4 x i32>*
store <4 x i32> <i32 84, i32 85, i32 86, i32 87>, <4 x i32>* %44
%45 = getelementptr inbounds [100 x i32], [100 x i32]* %1, i64 0, i64 88
%46 = bitcast i32* %45 to <4 x i32>*
store <4 x i32> <i32 88, i32 89, i32 90, i32 91>, <4 x i32>* %46
%47 = getelementptr inbounds [100 x i32], [100 x i32]* %1, i64 0, i64 92
%48 = bitcast i32* %47 to <4 x i32>*
store <4 x i32> <i32 92, i32 93, i32 94, i32 95>, <4 x i32>* %48
%49 = getelementptr inbounds [100 x i32], [100 x i32]* %1, i64 0, i64 96
%50 = bitcast i32* %49 to <4 x i32>*
store <4 x i32> <i32 96, i32 97, i32 98, i32 99>, <4 x i32>* %50
%51 = getelementptr inbounds [100 x i32], [100 x i32]* %1, i64 0, i64 0
br label %52
52: ; preds = %0, %83
%53 = phi x86_fp80 [ %89, %83 ], [ 0xK00000000000000000000, %0 ]
%54 = phi x86_fp80 [ %85, %83 ], [ 0xK00000000000000000000, %0 ]
%55 = phi i32 [ %90, %83 ], [ 0, %0 ]
%56 = phi x86_fp80 [ %84, %83 ], [ 0xK00000000000000000000, %0 ]
%57 = call i64 (...) @clock()
br label %58
58: ; preds = %52, %58
%59 = phi i32 [ 0, %52 ], [ %61, %58 ]
%60 = call i32 @binsearch_knr(i32 %59, i32* %51, i32 100)
%61 = add nuw nsw i32 %59, 1
%62 = icmp eq i32 %61, 100
br i1 %62, label %63, label %58
63: ; preds = %58
%64 = call i64 (...) @clock()
%65 = sub nsw i64 %64, %57
%66 = sitofp i64 %65 to x86_fp80
%67 = call i64 (...) @clock()
br label %68
68: ; preds = %63, %68
%69 = phi i32 [ 0, %63 ], [ %71, %68 ]
%70 = call i32 @binsearch_nimi(i32 %69, i32* %51, i32 100)
%71 = add nuw nsw i32 %69, 1
%72 = icmp eq i32 %71, 100
br i1 %72, label %73, label %68
73: ; preds = %68
%74 = call i64 (...) @clock()
%75 = sub nsw i64 %74, %67
%76 = sitofp i64 %75 to x86_fp80
%77 = call i64 (...) @clock()
br label %78
78: ; preds = %73, %78
%79 = phi i32 [ 0, %73 ], [ %81, %78 ]
%80 = call i32 @binsearch_at(i32 %79, i32* %51, i32 100)
%81 = add nuw nsw i32 %79, 1
%82 = icmp eq i32 %81, 100
br i1 %82, label %83, label %78
83: ; preds = %78
%84 = fadd x86_fp80 %56, %66
%85 = fadd x86_fp80 %54, %76
%86 = call i64 (...) @clock()
%87 = sub nsw i64 %86, %77
%88 = sitofp i64 %87 to x86_fp80
%89 = fadd x86_fp80 %53, %88
%90 = add nuw nsw i32 %55, 1
%91 = icmp eq i32 %90, 100000
br i1 %91, label %92, label %52
92: ; preds = %83
%93 = fdiv x86_fp80 %84, 0xK400FC350000000000000
%94 = call i32 @printf(i8* getelementptr inbounds ([44 x i8], [44 x i8]* @.str, i64 0, i64 0), x86_fp80 %93)
%95 = fdiv x86_fp80 %85, 0xK400FC350000000000000
%96 = call i32 @printf(i8* getelementptr inbounds ([45 x i8], [45 x i8]* @.str.1, i64 0, i64 0), x86_fp80 %95)
%97 = fdiv x86_fp80 %89, 0xK400FC350000000000000
%98 = call i32 @printf(i8* getelementptr inbounds ([43 x i8], [43 x i8]* @.str.2, i64 0, i64 0), x86_fp80 %97)
ret i32 0
}