#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 int /*<<< orphan*/ FILE;

/* Variables and functions */
scalar_t__ EOF;
int /*<<< orphan*/ fclose(int /*<<< orphan*/ *);
int /*<<< orphan*/ fgets(char *, int, int /*<<< orphan*/ *);
int /*<<< orphan*/ *fopen(char *, char *);
int /*<<< orphan*/ free_vector(float *, int, int);
int /*<<< orphan*/ fscanf(int /*<<< orphan*/ *, char *, float *);
int /*<<< orphan*/ nrerror(char *);
int /*<<< orphan*/ printf(char *, ...);
scalar_t__ scanf(char *, unsigned long *);
float selip(unsigned long, int, float *);
float *vector(int, int);
int main(void) {
  char txt[80];
  unsigned long i, j, k;
  float *a, *b, q;
  FILE *fp;
  a = vector(1, 100);
  b = vector(1, 100);
  if ((fp = fopen("tarray.dat", "r")) == NULL)
    nrerror("Data file tarray.dat not found\n");
  fgets(txt, 80, fp);
  for (i = 1; i <= 100; i++)
    fscanf(fp, "%f", &a[i]);
  fclose(fp);
  printf("\noriginal array:\n");
  for (i = 0; i <= 9; i++) {
    for (j = 1; j <= 10; j++)
      printf("%7.2f", a[10 * i + j]);
    printf("\n");
  }
  for (i = 1; i <= 100; i++)
    b[i] = selip(i, 100, a);
  printf("\nsorted array:\n");
  for (i = 0; i <= 9; i++) {
    for (j = 1; j <= 10; j++)
      printf("%7.2f", b[10 * i + j]);
    printf("\n");
  }
  for (;;) {
    printf("Input k\n");
    if (scanf("%lu", &k) == EOF)
      break;
    q = selip(k, 100, a);
    printf("Element in sort position %lu is %6.2f\n", k, q);
  }
  free_vector(b, 1, 100);
  free_vector(a, 1, 100);
  printf("Normal completion\n");
  return 0;
}


x86 assembly (clang, -O0):
<main>:
push   %rbp
mov    %rsp,%rbp
sub    $0xa0,%rsp
movl   $0x0,-0x4(%rbp)
mov    $0x1,%edi
mov    $0x64,%esi
call   1090 <vector@plt>
mov    %rax,-0x80(%rbp)
mov    $0x1,%edi
mov    $0x64,%esi
call   1090 <vector@plt>
mov    %rax,-0x88(%rbp)
lea    0xe1e(%rip),%rdi
lea    0xe22(%rip),%rsi
call   10c0 <fopen@plt>
mov    %rax,-0x98(%rbp)
cmp    $0x0,%rax
jne    120b <main+0x6b>
lea    0xe07(%rip),%rdi
call   1030 <nrerror@plt>
lea    -0x60(%rbp),%rdi
mov    -0x98(%rbp),%rdx
mov    $0x50,%esi
call   1080 <fgets@plt>
movq   $0x1,-0x68(%rbp)
cmpq   $0x64,-0x68(%rbp)
ja     1266 <main+0xc6>
mov    -0x98(%rbp),%rdi
mov    -0x80(%rbp),%rdx
mov    -0x68(%rbp),%rax
shl    $0x2,%rax
add    %rax,%rdx
lea    0xddd(%rip),%rsi
call   1070 <fscanf@plt>
mov    -0x68(%rbp),%rax
add    $0x1,%rax
mov    %rax,-0x68(%rbp)
jmp    1228 <main+0x88>
mov    -0x98(%rbp),%rdi
call   1040 <fclose@plt>
lea    0xdb7(%rip),%rdi
mov    $0x0,%al
call   1050 <printf@plt>
movq   $0x0,-0x68(%rbp)
cmpq   $0x9,-0x68(%rbp)
ja     12fa <main+0x15a>
movq   $0x1,-0x70(%rbp)
cmpq   $0xa,-0x70(%rbp)
ja     12db <main+0x13b>
mov    -0x80(%rbp),%rax
imul   $0xa,-0x68(%rbp),%rcx
add    -0x70(%rbp),%rcx
movss  (%rax,%rcx,4),%xmm0
cvtss2sd %xmm0,%xmm0
lea    0xd7f(%rip),%rdi
mov    $0x1,%al
call   1050 <printf@plt>
mov    -0x70(%rbp),%rax
add    $0x1,%rax
mov    %rax,-0x70(%rbp)
jmp    129b <main+0xfb>
lea    0xd74(%rip),%rdi
mov    $0x0,%al
call   1050 <printf@plt>
mov    -0x68(%rbp),%rax
add    $0x1,%rax
mov    %rax,-0x68(%rbp)
jmp    1288 <main+0xe8>
movq   $0x1,-0x68(%rbp)
cmpq   $0x64,-0x68(%rbp)
ja     1340 <main+0x1a0>
mov    -0x68(%rbp),%rdi
mov    -0x80(%rbp),%rdx
mov    $0x64,%esi
call   10a0 <selip@plt>
mov    -0x88(%rbp),%rax
mov    -0x68(%rbp),%rcx
movss  %xmm0,(%rax,%rcx,4)
mov    -0x68(%rbp),%rax
add    $0x1,%rax
mov    %rax,-0x68(%rbp)
jmp    1302 <main+0x162>
lea    0xd01(%rip),%rdi
mov    $0x0,%al
call   1050 <printf@plt>
movq   $0x0,-0x68(%rbp)
cmpq   $0x9,-0x68(%rbp)
ja     13cb <main+0x22b>
movq   $0x1,-0x70(%rbp)
cmpq   $0xa,-0x70(%rbp)
ja     13ac <main+0x20c>
mov    -0x88(%rbp),%rax
imul   $0xa,-0x68(%rbp),%rcx
add    -0x70(%rbp),%rcx
movss  (%rax,%rcx,4),%xmm0
cvtss2sd %xmm0,%xmm0
lea    0xcae(%rip),%rdi
mov    $0x1,%al
call   1050 <printf@plt>
mov    -0x70(%rbp),%rax
add    $0x1,%rax
mov    %rax,-0x70(%rbp)
jmp    1369 <main+0x1c9>
lea    0xca3(%rip),%rdi
mov    $0x0,%al
call   1050 <printf@plt>
mov    -0x68(%rbp),%rax
add    $0x1,%rax
mov    %rax,-0x68(%rbp)
jmp    1356 <main+0x1b6>
jmp    13d0 <main+0x230>
lea    0xc81(%rip),%rdi
mov    $0x0,%al
call   1050 <printf@plt>
lea    0xc7c(%rip),%rdi
lea    -0x78(%rbp),%rsi
call   10b0 <scanf@plt>
mov    0x2bf3(%rip),%rcx
cmp    (%rcx),%rax
jne    1403 <main+0x263>
jmp    1440 <main+0x2a0>
mov    -0x78(%rbp),%rdi
mov    -0x80(%rbp),%rdx
mov    $0x64,%esi
call   10a0 <selip@plt>
movss  %xmm0,-0x8c(%rbp)
ff
mov    -0x78(%rbp),%rsi
movss  -0x8c(%rbp),%xmm0
ff
cvtss2sd %xmm0,%xmm0
lea    0xc31(%rip),%rdi
mov    $0x1,%al
call   1050 <printf@plt>
jmp    13d0 <main+0x230>
mov    -0x88(%rbp),%rdi
mov    $0x1,%esi
mov    $0x64,%edx
call   1060 <free_vector@plt>
mov    -0x80(%rbp),%rdi
mov    $0x1,%esi
mov    $0x64,%edx
call   1060 <free_vector@plt>
lea    0xc1c(%rip),%rdi
mov    $0x0,%al
call   1050 <printf@plt>
xor    %eax,%eax
add    $0xa0,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<main>:
push   %rbp
push   %r15
push   %r14
push   %r13
push   %r12
push   %rbx
sub    $0x68,%rsp
mov    $0x1,%edi
mov    $0x64,%esi
call   10b0 <vector@plt>
mov    %rax,%r15
mov    $0x1,%edi
mov    $0x64,%esi
call   10b0 <vector@plt>
mov    %rax,%r14
lea    0xe07(%rip),%rdi
lea    0xe0b(%rip),%rsi
call   10e0 <fopen@plt>
mov    %rax,%rbx
test   %rax,%rax
jne    1219 <main+0x59>
lea    0xdf9(%rip),%rdi
call   1050 <nrerror@plt>
lea    0x10(%rsp),%rdi
mov    $0x50,%esi
mov    %rbx,%rdx
call   10a0 <fgets@plt>
mov    $0x4,%ebp
lea    0xdf6(%rip),%r12
nopw   0x0(%rax,%rax,1)
lea    (%r15,%rbp,1),%rdx
mov    %rbx,%rdi
mov    %r12,%rsi
call   1090 <fscanf@plt>
add    $0x4,%rbp
cmp    $0x194,%rbp
jne    1240 <main+0x80>
mov    %rbx,%rdi
call   1060 <fclose@plt>
lea    0xdf6(%rip),%rdi
call   1040 <puts@plt>
mov    $0x28,%ebp
lea    0xdb4(%rip),%rbx
nopl   0x0(%rax)
movss  -0x24(%r15,%rbp,1),%xmm0
cvtss2sd %xmm0,%xmm0
mov    %rbx,%rdi
mov    $0x1,%al
call   1070 <printf@plt>
movss  -0x20(%r15,%rbp,1),%xmm0
cvtss2sd %xmm0,%xmm0
mov    %rbx,%rdi
mov    $0x1,%al
call   1070 <printf@plt>
movss  -0x1c(%r15,%rbp,1),%xmm0
cvtss2sd %xmm0,%xmm0
mov    %rbx,%rdi
mov    $0x1,%al
call   1070 <printf@plt>
movss  -0x18(%r15,%rbp,1),%xmm0
cvtss2sd %xmm0,%xmm0
mov    %rbx,%rdi
mov    $0x1,%al
call   1070 <printf@plt>
movss  -0x14(%r15,%rbp,1),%xmm0
cvtss2sd %xmm0,%xmm0
mov    %rbx,%rdi
mov    $0x1,%al
call   1070 <printf@plt>
movss  -0x10(%r15,%rbp,1),%xmm0
cvtss2sd %xmm0,%xmm0
mov    %rbx,%rdi
mov    $0x1,%al
call   1070 <printf@plt>
movss  -0xc(%r15,%rbp,1),%xmm0
cvtss2sd %xmm0,%xmm0
mov    %rbx,%rdi
mov    $0x1,%al
call   1070 <printf@plt>
movss  -0x8(%r15,%rbp,1),%xmm0
cvtss2sd %xmm0,%xmm0
mov    %rbx,%rdi
mov    $0x1,%al
call   1070 <printf@plt>
movss  -0x4(%r15,%rbp,1),%xmm0
cvtss2sd %xmm0,%xmm0
mov    %rbx,%rdi
mov    $0x1,%al
call   1070 <printf@plt>
movss  (%r15,%rbp,1),%xmm0
cvtss2sd %xmm0,%xmm0
mov    %rbx,%rdi
mov    $0x1,%al
call   1070 <printf@plt>
mov    $0xa,%edi
call   1030 <putchar@plt>
add    $0x28,%rbp
cmp    $0x1b8,%rbp
jne    1280 <main+0xc0>
mov    $0x1,%ebx
cs nopw 0x0(%rax,%rax,1)
nopl   0x0(%rax,%rax,1)
mov    %rbx,%rdi
mov    $0x64,%esi
mov    %r15,%rdx
call   10c0 <selip@plt>
movss  %xmm0,(%r14,%rbx,4)
add    $0x1,%rbx
cmp    $0x65,%rbx
jne    1380 <main+0x1c0>
lea    0xccb(%rip),%rdi
call   1040 <puts@plt>
mov    $0x28,%ebp
lea    0xc78(%rip),%rbx
nopl   0x0(%rax,%rax,1)
movss  -0x24(%r14,%rbp,1),%xmm0
cvtss2sd %xmm0,%xmm0
mov    %rbx,%rdi
mov    $0x1,%al
call   1070 <printf@plt>
movss  -0x20(%r14,%rbp,1),%xmm0
cvtss2sd %xmm0,%xmm0
mov    %rbx,%rdi
mov    $0x1,%al
call   1070 <printf@plt>
movss  -0x1c(%r14,%rbp,1),%xmm0
cvtss2sd %xmm0,%xmm0
mov    %rbx,%rdi
mov    $0x1,%al
call   1070 <printf@plt>
movss  -0x18(%r14,%rbp,1),%xmm0
cvtss2sd %xmm0,%xmm0
mov    %rbx,%rdi
mov    $0x1,%al
call   1070 <printf@plt>
movss  -0x14(%r14,%rbp,1),%xmm0
cvtss2sd %xmm0,%xmm0
mov    %rbx,%rdi
mov    $0x1,%al
call   1070 <printf@plt>
movss  -0x10(%r14,%rbp,1),%xmm0
cvtss2sd %xmm0,%xmm0
mov    %rbx,%rdi
mov    $0x1,%al
call   1070 <printf@plt>
movss  -0xc(%r14,%rbp,1),%xmm0
cvtss2sd %xmm0,%xmm0
mov    %rbx,%rdi
mov    $0x1,%al
call   1070 <printf@plt>
movss  -0x8(%r14,%rbp,1),%xmm0
cvtss2sd %xmm0,%xmm0
mov    %rbx,%rdi
mov    $0x1,%al
call   1070 <printf@plt>
movss  -0x4(%r14,%rbp,1),%xmm0
cvtss2sd %xmm0,%xmm0
mov    %rbx,%rdi
mov    $0x1,%al
call   1070 <printf@plt>
movss  (%r14,%rbp,1),%xmm0
cvtss2sd %xmm0,%xmm0
mov    %rbx,%rdi
mov    $0x1,%al
call   1070 <printf@plt>
mov    $0xa,%edi
call   1030 <putchar@plt>
add    $0x28,%rbp
cmp    $0x1b8,%rbp
jne    13c0 <main+0x200>
lea    0xbce(%rip),%rdi
call   1040 <puts@plt>
lea    0xb77(%rip),%rdi
lea    0x8(%rsp),%rsi
call   10d0 <scanf@plt>
mov    0x2b18(%rip),%r12
cmp    (%r12),%rax
je     1532 <main+0x372>
lea    0xba4(%rip),%r13
lea    0xb52(%rip),%rbx
lea    0x8(%rsp),%rbp
nopl   0x0(%rax)
mov    0x8(%rsp),%rdi
mov    $0x64,%esi
mov    %r15,%rdx
call   10c0 <selip@plt>
mov    0x8(%rsp),%rsi
cvtss2sd %xmm0,%xmm0
lea    0xb28(%rip),%rdi
mov    $0x1,%al
call   1070 <printf@plt>
mov    %r13,%rdi
call   1040 <puts@plt>
mov    %rbx,%rdi
mov    %rbp,%rsi
call   10d0 <scanf@plt>
cmp    (%r12),%rax
jne    14f0 <main+0x330>
mov    %r14,%rdi
mov    $0x1,%esi
mov    $0x64,%edx
call   1080 <free_vector@plt>
mov    %r15,%rdi
mov    $0x1,%esi
mov    $0x64,%edx
call   1080 <free_vector@plt>
lea    0xb2c(%rip),%rdi
call   1040 <puts@plt>
xor    %eax,%eax
add    $0x68,%rsp
pop    %rbx
pop    %r12
pop    %r13
pop    %r14
pop    %r15
pop    %rbp
ret

LLVM IR (-O0):
@.str = [11 x i8] c"tarray.dat\00"
@.str.1 = [2 x i8] c"r\00"
@.str.2 = [32 x i8] c"Data file tarray.dat not found\0A\00"
@.str.3 = [3 x i8] c"%f\00"
@.str.4 = [18 x i8] c"\0Aoriginal array:\0A\00"
@.str.5 = [6 x i8] c"%7.2f\00"
@.str.6 = [2 x i8] c"\0A\00"
@.str.7 = [16 x i8] c"\0Asorted array:\0A\00"
@.str.8 = [9 x i8] c"Input k\0A\00"
@.str.9 = [4 x i8] c"%lu\00"
@EOF = global i64 0
@.str.10 = [39 x i8] c"Element in sort position %lu is %6.2f\0A\00"
@.str.11 = [19 x i8] c"Normal completion\0A\00"
define i32 @main() {
%1 = alloca i32
%2 = alloca [80 x i8]
%3 = alloca i64
%4 = alloca i64
%5 = alloca i64
%6 = alloca float*
%7 = alloca float*
%8 = alloca float
%9 = alloca i32*
store i32 0, i32* %1
%10 = call float* @vector(i32 1, i32 100)
store float* %10, float** %6
%11 = call float* @vector(i32 1, i32 100)
store float* %11, float** %7
%12 = call i32* @fopen(i8* getelementptr inbounds ([11 x i8], [11 x i8]* @.str, i64 0, i64 0), i8* getelementptr inbounds ([2 x i8], [2 x i8]* @.str.1, i64 0, i64 0))
store i32* %12, i32** %9
%13 = icmp eq i32* %12, null
br i1 %13, label %14, label %16
14: ; preds = %0
%15 = call i32 @nrerror(i8* getelementptr inbounds ([32 x i8], [32 x i8]* @.str.2, i64 0, i64 0))
br label %16
16: ; preds = %14, %0
%17 = getelementptr inbounds [80 x i8], [80 x i8]* %2, i64 0, i64 0
%18 = load i32*, i32** %9
%19 = call i32 @fgets(i8* %17, i32 80, i32* %18)
store i64 1, i64* %3
br label %20
20: ; preds = %29, %16
%21 = load i64, i64* %3
%22 = icmp ule i64 %21, 100
br i1 %22, label %23, label %32
23: ; preds = %20
%24 = load i32*, i32** %9
%25 = load float*, float** %6
%26 = load i64, i64* %3
%27 = getelementptr inbounds float, float* %25, i64 %26
%28 = call i32 @fscanf(i32* %24, i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str.3, i64 0, i64 0), float* %27)
br label %29
29: ; preds = %23
%30 = load i64, i64* %3
%31 = add i64 %30, 1
store i64 %31, i64* %3
br label %20
32: ; preds = %20
%33 = load i32*, i32** %9
%34 = call i32 @fclose(i32* %33)
%35 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([18 x i8], [18 x i8]* @.str.4, i64 0, i64 0))
store i64 0, i64* %3
br label %36
36: ; preds = %58, %32
%37 = load i64, i64* %3
%38 = icmp ule i64 %37, 9
br i1 %38, label %39, label %61
39: ; preds = %36
store i64 1, i64* %4
br label %40
40: ; preds = %53, %39
%41 = load i64, i64* %4
%42 = icmp ule i64 %41, 10
br i1 %42, label %43, label %56
43: ; preds = %40
%44 = load float*, float** %6
%45 = load i64, i64* %3
%46 = mul i64 10, %45
%47 = load i64, i64* %4
%48 = add i64 %46, %47
%49 = getelementptr inbounds float, float* %44, i64 %48
%50 = load float, float* %49
%51 = fpext float %50 to double
%52 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([6 x i8], [6 x i8]* @.str.5, i64 0, i64 0), double %51)
br label %53
53: ; preds = %43
%54 = load i64, i64* %4
%55 = add i64 %54, 1
store i64 %55, i64* %4
br label %40
56: ; preds = %40
%57 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([2 x i8], [2 x i8]* @.str.6, i64 0, i64 0))
br label %58
58: ; preds = %56
%59 = load i64, i64* %3
%60 = add i64 %59, 1
store i64 %60, i64* %3
br label %36
61: ; preds = %36
store i64 1, i64* %3
br label %62
62: ; preds = %72, %61
%63 = load i64, i64* %3
%64 = icmp ule i64 %63, 100
br i1 %64, label %65, label %75
65: ; preds = %62
%66 = load i64, i64* %3
%67 = load float*, float** %6
%68 = call float @selip(i64 %66, i32 100, float* %67)
%69 = load float*, float** %7
%70 = load i64, i64* %3
%71 = getelementptr inbounds float, float* %69, i64 %70
store float %68, float* %71
br label %72
72: ; preds = %65
%73 = load i64, i64* %3
%74 = add i64 %73, 1
store i64 %74, i64* %3
br label %62
75: ; preds = %62
%76 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([16 x i8], [16 x i8]* @.str.7, i64 0, i64 0))
store i64 0, i64* %3
br label %77
77: ; preds = %99, %75
%78 = load i64, i64* %3
%79 = icmp ule i64 %78, 9
br i1 %79, label %80, label %102
80: ; preds = %77
store i64 1, i64* %4
br label %81
81: ; preds = %94, %80
%82 = load i64, i64* %4
%83 = icmp ule i64 %82, 10
br i1 %83, label %84, label %97
84: ; preds = %81
%85 = load float*, float** %7
%86 = load i64, i64* %3
%87 = mul i64 10, %86
%88 = load i64, i64* %4
%89 = add i64 %87, %88
%90 = getelementptr inbounds float, float* %85, i64 %89
%91 = load float, float* %90
%92 = fpext float %91 to double
%93 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([6 x i8], [6 x i8]* @.str.5, i64 0, i64 0), double %92)
br label %94
94: ; preds = %84
%95 = load i64, i64* %4
%96 = add i64 %95, 1
store i64 %96, i64* %4
br label %81
97: ; preds = %81
%98 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([2 x i8], [2 x i8]* @.str.6, i64 0, i64 0))
br label %99
99: ; preds = %97
%100 = load i64, i64* %3
%101 = add i64 %100, 1
store i64 %101, i64* %3
br label %77
102: ; preds = %77
br label %103
103: ; preds = %109, %102
%104 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([9 x i8], [9 x i8]* @.str.8, i64 0, i64 0))
%105 = call i64 @scanf(i8* getelementptr inbounds ([4 x i8], [4 x i8]* @.str.9, i64 0, i64 0), i64* %5)
%106 = load i64, i64* @EOF
%107 = icmp eq i64 %105, %106
br i1 %107, label %108, label %109
108: ; preds = %103
br label %117
109: ; preds = %103
%110 = load i64, i64* %5
%111 = load float*, float** %6
%112 = call float @selip(i64 %110, i32 100, float* %111)
store float %112, float* %8
%113 = load i64, i64* %5
%114 = load float, float* %8
%115 = fpext float %114 to double
%116 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([39 x i8], [39 x i8]* @.str.10, i64 0, i64 0), i64 %113, double %115)
br label %103
117: ; preds = %108
%118 = load float*, float** %7
%119 = call i32 @free_vector(float* %118, i32 1, i32 100)
%120 = load float*, float** %6
%121 = call i32 @free_vector(float* %120, i32 1, i32 100)
%122 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([19 x i8], [19 x i8]* @.str.11, i64 0, i64 0))
ret i32 0
}

LLVM IR (-O2):
@.str = [11 x i8] c"tarray.dat\00"
@.str.1 = [2 x i8] c"r\00"
@.str.2 = [32 x i8] c"Data file tarray.dat not found\0A\00"
@.str.3 = [3 x i8] c"%f\00"
@.str.5 = [6 x i8] c"%7.2f\00"
@.str.9 = [4 x i8] c"%lu\00"
@EOF = global i64 0
@.str.10 = [39 x i8] c"Element in sort position %lu is %6.2f\0A\00"
@str = [17 x i8] c"\0Aoriginal array:\00"
@str.12 = [15 x i8] c"\0Asorted array:\00"
@str.13 = [8 x i8] c"Input k\00"
@str.14 = [18 x i8] c"Normal completion\00"
define i32 @main() {
%1 = alloca [80 x i8]
%2 = alloca i64
%3 = getelementptr inbounds [80 x i8], [80 x i8]* %1, i64 0, i64 0
%4 = bitcast i64* %2 to i8*
%5 = tail call float* @vector(i32 1, i32 100)
%6 = tail call float* @vector(i32 1, i32 100)
%7 = tail call i32* @fopen(i8* getelementptr inbounds ([11 x i8], [11 x i8]* @.str, i64 0, i64 0), i8* getelementptr inbounds ([2 x i8], [2 x i8]* @.str.1, i64 0, i64 0))
%8 = icmp eq i32* %7, null
br i1 %8, label %9, label %11
9: ; preds = %0
%10 = tail call i32 @nrerror(i8* getelementptr inbounds ([32 x i8], [32 x i8]* @.str.2, i64 0, i64 0))
br label %11
11: ; preds = %9, %0
%12 = call i32 @fgets(i8* %3, i32 80, i32* %7)
br label %13
13: ; preds = %11, %13
%14 = phi i64 [ 1, %11 ], [ %17, %13 ]
%15 = getelementptr inbounds float, float* %5, i64 %14
%16 = call i32 @fscanf(i32* %7, i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str.3, i64 0, i64 0), float* %15)
%17 = add nuw nsw i64 %14, 1
%18 = icmp eq i64 %17, 101
br i1 %18, label %19, label %13
19: ; preds = %13
%20 = call i32 @fclose(i32* %7)
%21 = call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([17 x i8], [17 x i8]* @str, i64 0, i64 0))
br label %22
22: ; preds = %19, %22
%23 = phi i64 [ 0, %19 ], [ %76, %22 ]
%24 = mul nuw nsw i64 %23, 10
%25 = or i64 %24, 1
%26 = getelementptr inbounds float, float* %5, i64 %25
%27 = load float, float* %26
%28 = fpext float %27 to double
%29 = call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([6 x i8], [6 x i8]* @.str.5, i64 0, i64 0), double %28)
%30 = add nuw nsw i64 %24, 2
%31 = getelementptr inbounds float, float* %5, i64 %30
%32 = load float, float* %31
%33 = fpext float %32 to double
%34 = call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([6 x i8], [6 x i8]* @.str.5, i64 0, i64 0), double %33)
%35 = add nuw nsw i64 %24, 3
%36 = getelementptr inbounds float, float* %5, i64 %35
%37 = load float, float* %36
%38 = fpext float %37 to double
%39 = call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([6 x i8], [6 x i8]* @.str.5, i64 0, i64 0), double %38)
%40 = add nuw nsw i64 %24, 4
%41 = getelementptr inbounds float, float* %5, i64 %40
%42 = load float, float* %41
%43 = fpext float %42 to double
%44 = call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([6 x i8], [6 x i8]* @.str.5, i64 0, i64 0), double %43)
%45 = add nuw nsw i64 %24, 5
%46 = getelementptr inbounds float, float* %5, i64 %45
%47 = load float, float* %46
%48 = fpext float %47 to double
%49 = call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([6 x i8], [6 x i8]* @.str.5, i64 0, i64 0), double %48)
%50 = add nuw nsw i64 %24, 6
%51 = getelementptr inbounds float, float* %5, i64 %50
%52 = load float, float* %51
%53 = fpext float %52 to double
%54 = call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([6 x i8], [6 x i8]* @.str.5, i64 0, i64 0), double %53)
%55 = add nuw nsw i64 %24, 7
%56 = getelementptr inbounds float, float* %5, i64 %55
%57 = load float, float* %56
%58 = fpext float %57 to double
%59 = call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([6 x i8], [6 x i8]* @.str.5, i64 0, i64 0), double %58)
%60 = add nuw nsw i64 %24, 8
%61 = getelementptr inbounds float, float* %5, i64 %60
%62 = load float, float* %61
%63 = fpext float %62 to double
%64 = call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([6 x i8], [6 x i8]* @.str.5, i64 0, i64 0), double %63)
%65 = add nuw nsw i64 %24, 9
%66 = getelementptr inbounds float, float* %5, i64 %65
%67 = load float, float* %66
%68 = fpext float %67 to double
%69 = call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([6 x i8], [6 x i8]* @.str.5, i64 0, i64 0), double %68)
%70 = add nuw nsw i64 %24, 10
%71 = getelementptr inbounds float, float* %5, i64 %70
%72 = load float, float* %71
%73 = fpext float %72 to double
%74 = call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([6 x i8], [6 x i8]* @.str.5, i64 0, i64 0), double %73)
%75 = call i32 @putchar(i32 10)
%76 = add nuw nsw i64 %23, 1
%77 = icmp eq i64 %76, 10
br i1 %77, label %78, label %22
78: ; preds = %22, %78
%79 = phi i64 [ %82, %78 ], [ 1, %22 ]
%80 = call float @selip(i64 %79, i32 100, float* %5)
%81 = getelementptr inbounds float, float* %6, i64 %79
store float %80, float* %81
%82 = add nuw nsw i64 %79, 1
%83 = icmp eq i64 %82, 101
br i1 %83, label %84, label %78
84: ; preds = %78
%85 = call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([15 x i8], [15 x i8]* @str.12, i64 0, i64 0))
br label %86
86: ; preds = %84, %86
%87 = phi i64 [ 0, %84 ], [ %140, %86 ]
%88 = mul nuw nsw i64 %87, 10
%89 = or i64 %88, 1
%90 = getelementptr inbounds float, float* %6, i64 %89
%91 = load float, float* %90
%92 = fpext float %91 to double
%93 = call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([6 x i8], [6 x i8]* @.str.5, i64 0, i64 0), double %92)
%94 = add nuw nsw i64 %88, 2
%95 = getelementptr inbounds float, float* %6, i64 %94
%96 = load float, float* %95
%97 = fpext float %96 to double
%98 = call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([6 x i8], [6 x i8]* @.str.5, i64 0, i64 0), double %97)
%99 = add nuw nsw i64 %88, 3
%100 = getelementptr inbounds float, float* %6, i64 %99
%101 = load float, float* %100
%102 = fpext float %101 to double
%103 = call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([6 x i8], [6 x i8]* @.str.5, i64 0, i64 0), double %102)
%104 = add nuw nsw i64 %88, 4
%105 = getelementptr inbounds float, float* %6, i64 %104
%106 = load float, float* %105
%107 = fpext float %106 to double
%108 = call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([6 x i8], [6 x i8]* @.str.5, i64 0, i64 0), double %107)
%109 = add nuw nsw i64 %88, 5
%110 = getelementptr inbounds float, float* %6, i64 %109
%111 = load float, float* %110
%112 = fpext float %111 to double
%113 = call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([6 x i8], [6 x i8]* @.str.5, i64 0, i64 0), double %112)
%114 = add nuw nsw i64 %88, 6
%115 = getelementptr inbounds float, float* %6, i64 %114
%116 = load float, float* %115
%117 = fpext float %116 to double
%118 = call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([6 x i8], [6 x i8]* @.str.5, i64 0, i64 0), double %117)
%119 = add nuw nsw i64 %88, 7
%120 = getelementptr inbounds float, float* %6, i64 %119
%121 = load float, float* %120
%122 = fpext float %121 to double
%123 = call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([6 x i8], [6 x i8]* @.str.5, i64 0, i64 0), double %122)
%124 = add nuw nsw i64 %88, 8
%125 = getelementptr inbounds float, float* %6, i64 %124
%126 = load float, float* %125
%127 = fpext float %126 to double
%128 = call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([6 x i8], [6 x i8]* @.str.5, i64 0, i64 0), double %127)
%129 = add nuw nsw i64 %88, 9
%130 = getelementptr inbounds float, float* %6, i64 %129
%131 = load float, float* %130
%132 = fpext float %131 to double
%133 = call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([6 x i8], [6 x i8]* @.str.5, i64 0, i64 0), double %132)
%134 = add nuw nsw i64 %88, 10
%135 = getelementptr inbounds float, float* %6, i64 %134
%136 = load float, float* %135
%137 = fpext float %136 to double
%138 = call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([6 x i8], [6 x i8]* @.str.5, i64 0, i64 0), double %137)
%139 = call i32 @putchar(i32 10)
%140 = add nuw nsw i64 %87, 1
%141 = icmp eq i64 %140, 10
br i1 %141, label %142, label %86
142: ; preds = %86
%143 = call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([8 x i8], [8 x i8]* @str.13, i64 0, i64 0))
%144 = call i64 @scanf(i8* getelementptr inbounds ([4 x i8], [4 x i8]* @.str.9, i64 0, i64 0), i64* %2)
%145 = load i64, i64* @EOF
%146 = icmp eq i64 %144, %145
br i1 %146, label %157, label %147
147: ; preds = %142, %147
%148 = load i64, i64* %2
%149 = call float @selip(i64 %148, i32 100, float* %5)
%150 = load i64, i64* %2
%151 = fpext float %149 to double
%152 = call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([39 x i8], [39 x i8]* @.str.10, i64 0, i64 0), i64 %150, double %151)
%153 = call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([8 x i8], [8 x i8]* @str.13, i64 0, i64 0))
%154 = call i64 @scanf(i8* getelementptr inbounds ([4 x i8], [4 x i8]* @.str.9, i64 0, i64 0), i64* %2)
%155 = load i64, i64* @EOF
%156 = icmp eq i64 %154, %155
br i1 %156, label %157, label %147
157: ; preds = %147, %142
%158 = call i32 @free_vector(float* %6, i32 1, i32 100)
%159 = call i32 @free_vector(float* %5, i32 1, i32 100)
%160 = call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([18 x i8], [18 x i8]* @str.14, i64 0, i64 0))
ret i32 0
}