#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 */
int /*<<< orphan*/ exit(int /*<<< orphan*/);
float exp(float);
int /*<<< orphan*/ *fopen(char *, char *);
int fscanf(int /*<<< orphan*/ *, char *, float *);
float log(float);
int /*<<< orphan*/ printf(char *, ...);
int /*<<< orphan*/ rewind(int /*<<< orphan*/ *);
float sqrt(float);
int main(int argc, char *argv[]) {
  int i, j, k, m;
  int clength, numsamp;
  FILE *infile;
  float zvalue[4] = {1.64, 2.05, 2.32, 2.57};
  float a, ad, data[100], sort[100], sum[2], out[6], max, med, min, getdata;
  void shell(int n, float a[]);
  if (argc != 2) {
    printf("Wrong number of command line arguments.  Check code.\n");
    exit(0);
  }
  infile = fopen(argv[1], "r");
  i = 0;
  clength = 0;
  while ((fscanf(infile, "%f", &getdata) == 1))
    clength++;
  rewind(infile);
  sum[0] = 0;
  sum[1] = 0;
  max = 0;
  min = 1e9;
  for (j = 0; j < clength; j++) {
    fscanf(infile, "%f", &getdata);
    data[j] = getdata;
    sort[j + 1] = getdata;
    if (getdata <= min)
      min = getdata;
    if (getdata >= max)
      max = getdata;
  }
  shell(clength, sort);
  if (clength % 2 == 0)
    med = (sort[clength / 2] + sort[clength / 2 + 1]) / 2;
  else
    med = sort[clength / 2 + 1];
  ad = (min + max - 2 * med);
  if (ad == 0.0)
    a = 0;
  else
    a = (min * max - med * med) / (min + max - 2 * med);
  if (a > min)
    a = 0;
  for (k = 0; k < clength; k++) {
    sum[0] += log(data[k] - a);
    sum[1] += log(data[k] - a) * log(data[k] - a);
  }
  out[0] = sum[0] / clength;
  out[1] = sqrt((sum[1] - sum[0] * sum[0] / clength) / (clength - 1));
  out[2] = exp(out[0] + out[1] * zvalue[0]) + a;
  out[3] = exp(out[0] + out[1] * zvalue[1]) + a;
  out[4] = exp(out[0] + out[1] * zvalue[2]) + a;
  out[5] = exp(out[0] + out[1] * zvalue[3]) + a;
  printf("%8.5f\n%8.7f\n%8.7f\n", a, out[0], out[1]);
}


x86 assembly (clang, -O0):
<main>:
push   %rbp
mov    %rsp,%rbp
sub    $0x3b0,%rsp
movl   $0x0,-0x4(%rbp)
mov    %edi,-0x8(%rbp)
mov    %rsi,-0x10(%rbp)
mov    0xe60(%rip),%rax
mov    %rax,-0x40(%rbp)
mov    0xe5d(%rip),%rax
mov    %rax,-0x38(%rbp)
cmpl   $0x2,-0x8(%rbp)
je     11de <main+0x4e>
lea    0xe50(%rip),%rdi
mov    $0x0,%al
call   1030 <printf@plt>
xor    %edi,%edi
call   10a0 <exit@plt>
mov    -0x10(%rbp),%rax
mov    0x8(%rax),%rdi
lea    0xe69(%rip),%rsi
call   1080 <fopen@plt>
mov    %rax,-0x30(%rbp)
movl   $0x0,-0x14(%rbp)
movl   $0x0,-0x24(%rbp)
mov    -0x30(%rbp),%rdi
lea    0xe49(%rip),%rsi
lea    -0x3a0(%rbp),%rdx
call   1050 <fscanf@plt>
cmp    $0x1,%eax
jne    1232 <main+0xa2>
mov    -0x24(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0x24(%rbp)
jmp    1204 <main+0x74>
mov    -0x30(%rbp),%rdi
call   1040 <rewind@plt>
xorps  %xmm0,%xmm0
movss  %xmm0,-0x378(%rbp)
ff
xorps  %xmm0,%xmm0
movss  %xmm0,-0x374(%rbp)
ff
xorps  %xmm0,%xmm0
movss  %xmm0,-0x394(%rbp)
ff
movss  0xd9c(%rip),%xmm0
movss  %xmm0,-0x39c(%rbp)
ff
movl   $0x0,-0x18(%rbp)
mov    -0x18(%rbp),%eax
cmp    -0x24(%rbp),%eax
jge    1325 <main+0x195>
mov    -0x30(%rbp),%rdi
lea    0xdce(%rip),%rsi
lea    -0x3a0(%rbp),%rdx
call   1050 <fscanf@plt>
movss  -0x3a0(%rbp),%xmm0
ff
movslq -0x18(%rbp),%rax
movss  %xmm0,-0x1e0(%rbp,%rax,4)
ff ff
movss  -0x3a0(%rbp),%xmm0
ff
mov    -0x18(%rbp),%eax
add    $0x1,%eax
cltq
movss  %xmm0,-0x370(%rbp,%rax,4)
ff ff
movss  -0x3a0(%rbp),%xmm1
ff
movss  -0x39c(%rbp),%xmm0
ff
ucomiss %xmm1,%xmm0
jb     12ed <main+0x15d>
movss  -0x3a0(%rbp),%xmm0
ff
movss  %xmm0,-0x39c(%rbp)
ff
movss  -0x3a0(%rbp),%xmm0
ff
ucomiss -0x394(%rbp),%xmm0
jb     1312 <main+0x182>
movss  -0x3a0(%rbp),%xmm0
ff
movss  %xmm0,-0x394(%rbp)
ff
jmp    1317 <main+0x187>
mov    -0x18(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0x18(%rbp)
jmp    1273 <main+0xe3>
mov    -0x24(%rbp),%edi
lea    -0x370(%rbp),%rsi
call   10b0 <shell@plt>
mov    -0x24(%rbp),%eax
mov    $0x2,%ecx
cltd
idiv   %ecx
cmp    $0x0,%edx
jne    1390 <main+0x200>
mov    -0x24(%rbp),%eax
mov    $0x2,%ecx
cltd
idiv   %ecx
cltq
movss  -0x370(%rbp,%rax,4),%xmm0
ff ff
mov    -0x24(%rbp),%eax
mov    $0x2,%ecx
cltd
idiv   %ecx
add    $0x1,%eax
cltq
addss  -0x370(%rbp,%rax,4),%xmm0
ff ff
movss  0xc85(%rip),%xmm1
divss  %xmm1,%xmm0
movss  %xmm0,-0x398(%rbp)
ff
jmp    13b1 <main+0x221>
mov    -0x24(%rbp),%eax
mov    $0x2,%ecx
cltd
idiv   %ecx
add    $0x1,%eax
cltq
movss  -0x370(%rbp,%rax,4),%xmm0
ff ff
movss  %xmm0,-0x398(%rbp)
ff
movss  -0x39c(%rbp),%xmm0
ff
addss  -0x394(%rbp),%xmm0
ff
movss  -0x398(%rbp),%xmm1
ff
addss  %xmm1,%xmm1
subss  %xmm1,%xmm0
movss  %xmm0,-0x48(%rbp)
movss  -0x48(%rbp),%xmm0
cvtss2sd %xmm0,%xmm0
xorps  %xmm1,%xmm1
ucomisd %xmm1,%xmm0
jne    13ff <main+0x26f>
jp     13ff <main+0x26f>
xorps  %xmm0,%xmm0
movss  %xmm0,-0x44(%rbp)
jmp    145d <main+0x2cd>
movss  -0x39c(%rbp),%xmm0
ff
movss  -0x394(%rbp),%xmm2
ff
movss  -0x398(%rbp),%xmm1
ff
mulss  -0x398(%rbp),%xmm1
ff
movd   %xmm1,%eax
xor    $0x80000000,%eax
movd   %eax,%xmm1
mulss  %xmm2,%xmm0
addss  %xmm1,%xmm0
movss  -0x39c(%rbp),%xmm1
ff
addss  -0x394(%rbp),%xmm1
ff
movss  -0x398(%rbp),%xmm2
ff
addss  %xmm2,%xmm2
subss  %xmm2,%xmm1
divss  %xmm1,%xmm0
movss  %xmm0,-0x44(%rbp)
movss  -0x44(%rbp),%xmm0
ucomiss -0x39c(%rbp),%xmm0
jbe    1477 <main+0x2e7>
xorps  %xmm0,%xmm0
movss  %xmm0,-0x44(%rbp)
movl   $0x0,-0x1c(%rbp)
mov    -0x1c(%rbp),%eax
cmp    -0x24(%rbp),%eax
jge    1518 <main+0x388>
movslq -0x1c(%rbp),%rax
movss  -0x1e0(%rbp,%rax,4),%xmm0
ff ff
subss  -0x44(%rbp),%xmm0
call   1070 <log@plt>
addss  -0x378(%rbp),%xmm0
ff
movss  %xmm0,-0x378(%rbp)
ff
movslq -0x1c(%rbp),%rax
movss  -0x1e0(%rbp,%rax,4),%xmm0
ff ff
subss  -0x44(%rbp),%xmm0
call   1070 <log@plt>
movss  %xmm0,-0x3a4(%rbp)
ff
movslq -0x1c(%rbp),%rax
movss  -0x1e0(%rbp,%rax,4),%xmm0
ff ff
subss  -0x44(%rbp),%xmm0
call   1070 <log@plt>
movaps %xmm0,%xmm2
movss  -0x3a4(%rbp),%xmm0
ff
movss  -0x374(%rbp),%xmm1
ff
mulss  %xmm2,%xmm0
addss  %xmm1,%xmm0
movss  %xmm0,-0x374(%rbp)
ff
mov    -0x1c(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0x1c(%rbp)
jmp    147e <main+0x2ee>
movss  -0x378(%rbp),%xmm0
ff
cvtsi2ssl -0x24(%rbp),%xmm1
divss  %xmm1,%xmm0
movss  %xmm0,-0x390(%rbp)
ff
movss  -0x374(%rbp),%xmm0
ff
movss  -0x378(%rbp),%xmm1
ff
mulss  -0x378(%rbp),%xmm1
ff
cvtsi2ssl -0x24(%rbp),%xmm2
divss  %xmm2,%xmm1
subss  %xmm1,%xmm0
mov    -0x24(%rbp),%eax
sub    $0x1,%eax
cvtsi2ss %eax,%xmm1
divss  %xmm1,%xmm0
call   1090 <sqrt@plt>
movss  %xmm0,-0x38c(%rbp)
ff
movss  -0x390(%rbp),%xmm1
ff
movss  -0x38c(%rbp),%xmm0
ff
movss  -0x40(%rbp),%xmm2
mulss  %xmm2,%xmm0
addss  %xmm1,%xmm0
call   1060 <exp@plt>
addss  -0x44(%rbp),%xmm0
movss  %xmm0,-0x388(%rbp)
ff
movss  -0x390(%rbp),%xmm1
ff
movss  -0x38c(%rbp),%xmm0
ff
movss  -0x3c(%rbp),%xmm2
mulss  %xmm2,%xmm0
addss  %xmm1,%xmm0
call   1060 <exp@plt>
addss  -0x44(%rbp),%xmm0
movss  %xmm0,-0x384(%rbp)
ff
movss  -0x390(%rbp),%xmm1
ff
movss  -0x38c(%rbp),%xmm0
ff
movss  -0x38(%rbp),%xmm2
mulss  %xmm2,%xmm0
addss  %xmm1,%xmm0
call   1060 <exp@plt>
addss  -0x44(%rbp),%xmm0
movss  %xmm0,-0x380(%rbp)
ff
movss  -0x390(%rbp),%xmm1
ff
movss  -0x38c(%rbp),%xmm0
ff
movss  -0x34(%rbp),%xmm2
mulss  %xmm2,%xmm0
addss  %xmm1,%xmm0
call   1060 <exp@plt>
addss  -0x44(%rbp),%xmm0
movss  %xmm0,-0x37c(%rbp)
ff
movss  -0x44(%rbp),%xmm0
cvtss2sd %xmm0,%xmm0
movss  -0x390(%rbp),%xmm1
ff
cvtss2sd %xmm1,%xmm1
movss  -0x38c(%rbp),%xmm2
ff
cvtss2sd %xmm2,%xmm2
lea    0xa06(%rip),%rdi
mov    $0x3,%al
call   1030 <printf@plt>
mov    -0x4(%rbp),%eax
add    $0x3b0,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<main>:
push   %rbp
push   %r15
push   %r14
push   %r13
push   %r12
push   %rbx
sub    $0x368,%rsp
cmp    $0x2,%edi
jne    15cc <main+0x42c>
mov    0x8(%rsi),%rdi
lea    0xe5b(%rip),%rsi
call   1090 <fopen@plt>
mov    %rax,%r13
mov    $0x1,%ebx
mov    $0xfffffffe,%r12d
lea    0xe43(%rip),%r14
lea    0x34(%rsp),%r15
cs nopw 0x0(%rax,%rax,1)
xchg   %ax,%ax
mov    %r13,%rdi
mov    %r14,%rsi
mov    %r15,%rdx
call   1060 <fscanf@plt>
add    $0xffffffffffffffff,%rbx
add    $0x1,%r12d
cmp    $0x1,%eax
je     11f0 <main+0x50>
mov    %r13,%rdi
call   1050 <rewind@plt>
mov    %rbx,%r15
neg    %r15
test   %ebx,%ebx
je     12d7 <main+0x137>
xorps  %xmm0,%xmm0
movss  0xdd4(%rip),%xmm1
xor    %r14d,%r14d
lea    0x34(%rsp),%rbp
movaps %xmm0,%xmm2
nopw   0x0(%rax,%rax,1)
movaps %xmm1,0x20(%rsp)
movaps %xmm0,(%rsp)
movaps %xmm2,0x10(%rsp)
mov    %r13,%rdi
lea    0xdca(%rip),%rsi
mov    %rbp,%rdx
call   1060 <fscanf@plt>
movss  0x34(%rsp),%xmm0
movss  %xmm0,0x1d0(%rsp,%r14,4)
movss  %xmm0,0x44(%rsp,%r14,4)
add    $0x1,%r14
movaps %xmm0,%xmm1
movaps 0x20(%rsp),%xmm3
cmpless %xmm3,%xmm1
movaps %xmm1,%xmm2
andps  %xmm0,%xmm2
andnps %xmm3,%xmm1
orps   %xmm2,%xmm1
movaps 0x10(%rsp),%xmm2
cmpless %xmm0,%xmm2
andps  %xmm2,%xmm0
andnps (%rsp),%xmm2
orps   %xmm0,%xmm2
movaps %xmm2,%xmm0
cmp    %r14,%r15
jne    1240 <main+0xa0>
movaps %xmm0,(%rsp)
movaps %xmm1,0x20(%rsp)
lea    0x40(%rsp),%rsi
mov    %r15d,%edi
call   10c0 <shell@plt>
test   $0x1,%r15b
jne    130a <main+0x16a>
movaps 0x20(%rsp),%xmm3
movaps (%rsp),%xmm4
jmp    12ef <main+0x14f>
lea    0x40(%rsp),%rsi
mov    %r15d,%edi
call   10c0 <shell@plt>
xorps  %xmm4,%xmm4
movss  0xd11(%rip),%xmm3
mov    %r15d,%eax
shr    %eax
movss  0x40(%rsp,%rax,4),%xmm0
addss  0x44(%rsp,%rax,4),%xmm0
mulss  0xcfc(%rip),%xmm0
jmp    131e <main+0x17e>
mov    %r15d,%eax
shr    %eax
movss  0x44(%rsp,%rax,4),%xmm0
movaps 0x20(%rsp),%xmm3
movaps (%rsp),%xmm4
movaps %xmm4,%xmm1
addss  %xmm3,%xmm1
movaps %xmm0,%xmm2
addss  %xmm0,%xmm2
subss  %xmm2,%xmm1
xorps  %xmm2,%xmm2
ucomiss %xmm2,%xmm1
xorps  %xmm2,%xmm2
jne    133d <main+0x19d>
jnp    1350 <main+0x1b0>
mulss  %xmm0,%xmm0
mulss  %xmm3,%xmm4
subss  %xmm0,%xmm4
divss  %xmm1,%xmm4
movaps %xmm4,%xmm2
cmpltss %xmm2,%xmm3
andnps %xmm2,%xmm3
xorps  %xmm1,%xmm1
test   %ebx,%ebx
xorps  %xmm0,%xmm0
movss  %xmm0,0x10(%rsp)
movaps %xmm3,0x20(%rsp)
je     13f1 <main+0x251>
xorps  %xmm1,%xmm1
lea    0x1d0(%rsp),%rbx
mov    %r15,%rbp
xorps  %xmm0,%xmm0
movss  %xmm0,0x10(%rsp)
nopl   0x0(%rax,%rax,1)
movss  %xmm1,0x3c(%rsp)
movss  (%rbx),%xmm0
subss  %xmm3,%xmm0
movss  %xmm0,(%rsp)
call   1080 <log@plt>
movss  0x10(%rsp),%xmm1
addss  %xmm0,%xmm1
movss  %xmm1,0x10(%rsp)
movss  (%rsp),%xmm0
call   1080 <log@plt>
movss  %xmm0,0x38(%rsp)
movss  (%rsp),%xmm0
call   1080 <log@plt>
movss  0x3c(%rsp),%xmm1
movaps 0x20(%rsp),%xmm3
mulss  0x38(%rsp),%xmm0
addss  %xmm0,%xmm1
add    $0x4,%rbx
add    $0xffffffffffffffff,%rbp
jne    1390 <main+0x1f0>
xorps  %xmm0,%xmm0
cvtsi2ss %r15d,%xmm0
movss  0x10(%rsp),%xmm4
movaps %xmm4,%xmm2
divss  %xmm0,%xmm2
mulss  %xmm4,%xmm4
divss  %xmm0,%xmm4
subss  %xmm4,%xmm1
xorps  %xmm0,%xmm0
cvtsi2ss %r12d,%xmm0
divss  %xmm0,%xmm1
xorps  %xmm0,%xmm0
ucomiss %xmm0,%xmm1
jb     142f <main+0x28f>
xorps  %xmm4,%xmm4
sqrtss %xmm1,%xmm4
jmp    1449 <main+0x2a9>
movaps %xmm1,%xmm0
movss  %xmm2,(%rsp)
call   10a0 <sqrt@plt>
movss  (%rsp),%xmm2
movaps 0x20(%rsp),%xmm3
movaps %xmm0,%xmm4
movss  0xbb7(%rip),%xmm0
mulss  %xmm4,%xmm0
addss  %xmm2,%xmm0
ucomiss 0xbac(%rip),%xmm0
ja     1538 <main+0x398>
movss  0xba2(%rip),%xmm1
ucomiss %xmm0,%xmm1
ja     1538 <main+0x398>
movss  0xb95(%rip),%xmm0
mulss  %xmm4,%xmm0
addss  %xmm2,%xmm0
ucomiss 0xb7e(%rip),%xmm0
ja     155d <main+0x3bd>
movss  0xb74(%rip),%xmm1
ucomiss %xmm0,%xmm1
ja     155d <main+0x3bd>
movss  0xb6b(%rip),%xmm0
mulss  %xmm4,%xmm0
addss  %xmm2,%xmm0
ucomiss 0xb50(%rip),%xmm0
ja     1582 <main+0x3e2>
movss  0xb46(%rip),%xmm1
ucomiss %xmm0,%xmm1
ja     1582 <main+0x3e2>
movss  0xb41(%rip),%xmm0
mulss  %xmm4,%xmm0
addss  %xmm2,%xmm0
ucomiss 0xb22(%rip),%xmm0
ja     15a7 <main+0x407>
movss  0xb18(%rip),%xmm1
ucomiss %xmm0,%xmm1
ja     15a7 <main+0x407>
xorps  %xmm0,%xmm0
cvtss2sd %xmm3,%xmm0
xorps  %xmm1,%xmm1
cvtss2sd %xmm2,%xmm1
xorps  %xmm2,%xmm2
cvtss2sd %xmm4,%xmm2
lea    0xb08(%rip),%rdi
mov    $0x3,%al
call   1040 <printf@plt>
xor    %eax,%eax
add    $0x368,%rsp
pop    %rbx
pop    %r12
pop    %r13
pop    %r14
pop    %r15
pop    %rbp
ret
movss  %xmm2,(%rsp)
movss  %xmm4,0x10(%rsp)
call   1070 <exp@plt>
movss  0x10(%rsp),%xmm4
movss  (%rsp),%xmm2
movaps 0x20(%rsp),%xmm3
jmp    1477 <main+0x2d7>
movss  %xmm2,(%rsp)
movss  %xmm4,0x10(%rsp)
call   1070 <exp@plt>
movss  0x10(%rsp),%xmm4
movss  (%rsp),%xmm2
movaps 0x20(%rsp),%xmm3
jmp    14a5 <main+0x305>
movss  %xmm2,(%rsp)
movss  %xmm4,0x10(%rsp)
call   1070 <exp@plt>
movss  0x10(%rsp),%xmm4
movss  (%rsp),%xmm2
movaps 0x20(%rsp),%xmm3
jmp    14d3 <main+0x333>
movss  %xmm2,(%rsp)
movss  %xmm4,0x10(%rsp)
call   1070 <exp@plt>
movss  0x10(%rsp),%xmm4
movss  (%rsp),%xmm2
movaps 0x20(%rsp),%xmm3
jmp    1501 <main+0x361>
lea    0xa65(%rip),%rdi
call   1030 <puts@plt>
xor    %edi,%edi
call   10b0 <exit@plt>

LLVM IR (-O0):
@__const.main.zvalue = [4 x float] [float 0x3FFA3D70A0000000, float 0x4000666660000000, float 0x40028F5C20000000, float 0x40048F5C20000000]
@.str = [54 x i8] c"Wrong number of command line arguments. Check code.\0A\00"
@.str.1 = [2 x i8] c"r\00"
@.str.2 = [3 x i8] c"%f\00"
@.str.3 = [19 x i8] c"%8.5f\0A%8.7f\0A%8.7f\0A\00"
define i32 @main(i32 %0, i8** %1) {
%3 = alloca i32
%4 = alloca i32
%5 = alloca i8**
%6 = alloca i32
%7 = alloca i32
%8 = alloca i32
%9 = alloca i32
%10 = alloca i32
%11 = alloca i32
%12 = alloca i32*
%13 = alloca [4 x float]
%14 = alloca float
%15 = alloca float
%16 = alloca [100 x float]
%17 = alloca [100 x float]
%18 = alloca [2 x float]
%19 = alloca [6 x float]
%20 = alloca float
%21 = alloca float
%22 = alloca float
%23 = alloca float
store i32 0, i32* %3
store i32 %0, i32* %4
store i8** %1, i8*** %5
%24 = bitcast [4 x float]* %13 to i8*
%25 = load i32, i32* %4
%26 = icmp ne i32 %25, 2
br i1 %26, label %27, label %30
27: ; preds = %2
%28 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([54 x i8], [54 x i8]* @.str, i64 0, i64 0))
%29 = call i32 @exit(i32 0)
unreachable
30: ; preds = %2
%31 = load i8**, i8*** %5
%32 = getelementptr inbounds i8*, i8** %31, i64 1
%33 = load i8*, i8** %32
%34 = call i32* @fopen(i8* %33, i8* getelementptr inbounds ([2 x i8], [2 x i8]* @.str.1, i64 0, i64 0))
store i32* %34, i32** %12
store i32 0, i32* %6
store i32 0, i32* %10
br label %35
35: ; preds = %39, %30
%36 = load i32*, i32** %12
%37 = call i32 @fscanf(i32* %36, i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str.2, i64 0, i64 0), float* %23)
%38 = icmp eq i32 %37, 1
br i1 %38, label %39, label %42
39: ; preds = %35
%40 = load i32, i32* %10
%41 = add nsw i32 %40, 1
store i32 %41, i32* %10
br label %35
42: ; preds = %35
%43 = load i32*, i32** %12
%44 = call i32 @rewind(i32* %43)
%45 = getelementptr inbounds [2 x float], [2 x float]* %18, i64 0, i64 0
store float 0.000000e+00, float* %45
%46 = getelementptr inbounds [2 x float], [2 x float]* %18, i64 0, i64 1
store float 0.000000e+00, float* %46
store float 0.000000e+00, float* %20
store float 1.000000e+09, float* %22
store i32 0, i32* %7
br label %47
47: ; preds = %75, %42
%48 = load i32, i32* %7
%49 = load i32, i32* %10
%50 = icmp slt i32 %48, %49
br i1 %50, label %51, label %78
51: ; preds = %47
%52 = load i32*, i32** %12
%53 = call i32 @fscanf(i32* %52, i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str.2, i64 0, i64 0), float* %23)
%54 = load float, float* %23
%55 = load i32, i32* %7
%56 = sext i32 %55 to i64
%57 = getelementptr inbounds [100 x float], [100 x float]* %16, i64 0, i64 %56
store float %54, float* %57
%58 = load float, float* %23
%59 = load i32, i32* %7
%60 = add nsw i32 %59, 1
%61 = sext i32 %60 to i64
%62 = getelementptr inbounds [100 x float], [100 x float]* %17, i64 0, i64 %61
store float %58, float* %62
%63 = load float, float* %23
%64 = load float, float* %22
%65 = fcmp ole float %63, %64
br i1 %65, label %66, label %68
66: ; preds = %51
%67 = load float, float* %23
store float %67, float* %22
br label %68
68: ; preds = %66, %51
%69 = load float, float* %23
%70 = load float, float* %20
%71 = fcmp oge float %69, %70
br i1 %71, label %72, label %74
72: ; preds = %68
%73 = load float, float* %23
store float %73, float* %20
br label %74
74: ; preds = %72, %68
br label %75
75: ; preds = %74
%76 = load i32, i32* %7
%77 = add nsw i32 %76, 1
store i32 %77, i32* %7
br label %47
78: ; preds = %47
%79 = load i32, i32* %10
%80 = getelementptr inbounds [100 x float], [100 x float]* %17, i64 0, i64 0
%81 = load i32, i32* %10
%82 = srem i32 %81, 2
%83 = icmp eq i32 %82, 0
br i1 %83, label %84, label %98
84: ; preds = %78
%85 = load i32, i32* %10
%86 = sdiv i32 %85, 2
%87 = sext i32 %86 to i64
%88 = getelementptr inbounds [100 x float], [100 x float]* %17, i64 0, i64 %87
%89 = load float, float* %88
%90 = load i32, i32* %10
%91 = sdiv i32 %90, 2
%92 = add nsw i32 %91, 1
%93 = sext i32 %92 to i64
%94 = getelementptr inbounds [100 x float], [100 x float]* %17, i64 0, i64 %93
%95 = load float, float* %94
%96 = fadd float %89, %95
%97 = fdiv float %96, 2.000000e+00
store float %97, float* %21
br label %105
98: ; preds = %78
%99 = load i32, i32* %10
%100 = sdiv i32 %99, 2
%101 = add nsw i32 %100, 1
%102 = sext i32 %101 to i64
%103 = getelementptr inbounds [100 x float], [100 x float]* %17, i64 0, i64 %102
%104 = load float, float* %103
store float %104, float* %21
br label %105
105: ; preds = %98, %84
%106 = load float, float* %22
%107 = load float, float* %20
%108 = fadd float %106, %107
%109 = load float, float* %21
%110 = call float @llvm.fmuladd.f32(float -2.000000e+00, float %109, float %108)
store float %110, float* %15
%111 = load float, float* %15
%112 = fpext float %111 to double
%113 = fcmp oeq double %112, 0.000000e+00
br i1 %113, label %114, label %115
114: ; preds = %105
store float 0.000000e+00, float* %14
br label %129
115: ; preds = %105
%116 = load float, float* %22
%117 = load float, float* %20
%118 = load float, float* %21
%119 = load float, float* %21
%120 = fmul float %118, %119
%121 = fneg float %120
%122 = call float @llvm.fmuladd.f32(float %116, float %117, float %121)
%123 = load float, float* %22
%124 = load float, float* %20
%125 = fadd float %123, %124
%126 = load float, float* %21
%127 = call float @llvm.fmuladd.f32(float -2.000000e+00, float %126, float %125)
%128 = fdiv float %122, %127
store float %128, float* %14
br label %129
129: ; preds = %115, %114
%130 = load float, float* %14
%131 = load float, float* %22
%132 = fcmp ogt float %130, %131
br i1 %132, label %133, label %134
133: ; preds = %129
store float 0.000000e+00, float* %14
br label %134
134: ; preds = %133, %129
store i32 0, i32* %8
br label %135
135: ; preds = %167, %134
%136 = load i32, i32* %8
%137 = load i32, i32* %10
%138 = icmp slt i32 %136, %137
br i1 %138, label %139, label %170
139: ; preds = %135
%140 = load i32, i32* %8
%141 = sext i32 %140 to i64
%142 = getelementptr inbounds [100 x float], [100 x float]* %16, i64 0, i64 %141
%143 = load float, float* %142
%144 = load float, float* %14
%145 = fsub float %143, %144
%146 = call float @log(float %145)
%147 = getelementptr inbounds [2 x float], [2 x float]* %18, i64 0, i64 0
%148 = load float, float* %147
%149 = fadd float %148, %146
store float %149, float* %147
%150 = load i32, i32* %8
%151 = sext i32 %150 to i64
%152 = getelementptr inbounds [100 x float], [100 x float]* %16, i64 0, i64 %151
%153 = load float, float* %152
%154 = load float, float* %14
%155 = fsub float %153, %154
%156 = call float @log(float %155)
%157 = load i32, i32* %8
%158 = sext i32 %157 to i64
%159 = getelementptr inbounds [100 x float], [100 x float]* %16, i64 0, i64 %158
%160 = load float, float* %159
%161 = load float, float* %14
%162 = fsub float %160, %161
%163 = call float @log(float %162)
%164 = getelementptr inbounds [2 x float], [2 x float]* %18, i64 0, i64 1
%165 = load float, float* %164
%166 = call float @llvm.fmuladd.f32(float %156, float %163, float %165)
store float %166, float* %164
br label %167
167: ; preds = %139
%168 = load i32, i32* %8
%169 = add nsw i32 %168, 1
store i32 %169, i32* %8
br label %135
170: ; preds = %135
%171 = getelementptr inbounds [2 x float], [2 x float]* %18, i64 0, i64 0
%172 = load float, float* %171
%173 = load i32, i32* %10
%174 = sitofp i32 %173 to float
%175 = fdiv float %172, %174
%176 = getelementptr inbounds [6 x float], [6 x float]* %19, i64 0, i64 0
store float %175, float* %176
%177 = getelementptr inbounds [2 x float], [2 x float]* %18, i64 0, i64 1
%178 = load float, float* %177
%179 = getelementptr inbounds [2 x float], [2 x float]* %18, i64 0, i64 0
%180 = load float, float* %179
%181 = getelementptr inbounds [2 x float], [2 x float]* %18, i64 0, i64 0
%182 = load float, float* %181
%183 = fmul float %180, %182
%184 = load i32, i32* %10
%185 = sitofp i32 %184 to float
%186 = fdiv float %183, %185
%187 = fsub float %178, %186
%188 = load i32, i32* %10
%189 = sub nsw i32 %188, 1
%190 = sitofp i32 %189 to float
%191 = fdiv float %187, %190
%192 = call float @sqrt(float %191)
%193 = getelementptr inbounds [6 x float], [6 x float]* %19, i64 0, i64 1
store float %192, float* %193
%194 = getelementptr inbounds [6 x float], [6 x float]* %19, i64 0, i64 0
%195 = load float, float* %194
%196 = getelementptr inbounds [6 x float], [6 x float]* %19, i64 0, i64 1
%197 = load float, float* %196
%198 = getelementptr inbounds [4 x float], [4 x float]* %13, i64 0, i64 0
%199 = load float, float* %198
%200 = call float @llvm.fmuladd.f32(float %197, float %199, float %195)
%201 = call float @exp(float %200)
%202 = load float, float* %14
%203 = fadd float %201, %202
%204 = getelementptr inbounds [6 x float], [6 x float]* %19, i64 0, i64 2
store float %203, float* %204
%205 = getelementptr inbounds [6 x float], [6 x float]* %19, i64 0, i64 0
%206 = load float, float* %205
%207 = getelementptr inbounds [6 x float], [6 x float]* %19, i64 0, i64 1
%208 = load float, float* %207
%209 = getelementptr inbounds [4 x float], [4 x float]* %13, i64 0, i64 1
%210 = load float, float* %209
%211 = call float @llvm.fmuladd.f32(float %208, float %210, float %206)
%212 = call float @exp(float %211)
%213 = load float, float* %14
%214 = fadd float %212, %213
%215 = getelementptr inbounds [6 x float], [6 x float]* %19, i64 0, i64 3
store float %214, float* %215
%216 = getelementptr inbounds [6 x float], [6 x float]* %19, i64 0, i64 0
%217 = load float, float* %216
%218 = getelementptr inbounds [6 x float], [6 x float]* %19, i64 0, i64 1
%219 = load float, float* %218
%220 = getelementptr inbounds [4 x float], [4 x float]* %13, i64 0, i64 2
%221 = load float, float* %220
%222 = call float @llvm.fmuladd.f32(float %219, float %221, float %217)
%223 = call float @exp(float %222)
%224 = load float, float* %14
%225 = fadd float %223, %224
%226 = getelementptr inbounds [6 x float], [6 x float]* %19, i64 0, i64 4
store float %225, float* %226
%227 = getelementptr inbounds [6 x float], [6 x float]* %19, i64 0, i64 0
%228 = load float, float* %227
%229 = getelementptr inbounds [6 x float], [6 x float]* %19, i64 0, i64 1
%230 = load float, float* %229
%231 = getelementptr inbounds [4 x float], [4 x float]* %13, i64 0, i64 3
%232 = load float, float* %231
%233 = call float @llvm.fmuladd.f32(float %230, float %232, float %228)
%234 = call float @exp(float %233)
%235 = load float, float* %14
%236 = fadd float %234, %235
%237 = getelementptr inbounds [6 x float], [6 x float]* %19, i64 0, i64 5
store float %236, float* %237
%238 = load float, float* %14
%239 = fpext float %238 to double
%240 = getelementptr inbounds [6 x float], [6 x float]* %19, i64 0, i64 0
%241 = load float, float* %240
%242 = fpext float %241 to double
%243 = getelementptr inbounds [6 x float], [6 x float]* %19, i64 0, i64 1
%244 = load float, float* %243
%245 = fpext float %244 to double
%246 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([19 x i8], [19 x i8]* @.str.3, i64 0, i64 0), double %239, double %242, double %245)
%247 = load i32, i32* %3
ret i32 %247
}

LLVM IR (-O2):
@.str.1 = [2 x i8] c"r\00"
@.str.2 = [3 x i8] c"%f\00"
@.str.3 = [19 x i8] c"%8.5f\0A%8.7f\0A%8.7f\0A\00"
@str = [53 x i8] c"Wrong number of command line arguments. Check code.\00"
define i32 @main(i32 %0, i8** nocapture %1) {
%3 = alloca [100 x float]
%4 = alloca [100 x float]
%5 = alloca float
%6 = bitcast [100 x float]* %3 to i8*
%7 = bitcast [100 x float]* %4 to i8*
%8 = bitcast float* %5 to i8*
%9 = icmp eq i32 %0, 2
br i1 %9, label %13, label %10
10: ; preds = %2
%11 = tail call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([53 x i8], [53 x i8]* @str, i64 0, i64 0))
%12 = tail call i32 @exit(i32 0)
unreachable
13: ; preds = %2
%14 = getelementptr inbounds i8*, i8** %1, i64 1
%15 = load i8*, i8** %14
%16 = tail call i32* @fopen(i8* %15, i8* getelementptr inbounds ([2 x i8], [2 x i8]* @.str.1, i64 0, i64 0))
br label %17
17: ; preds = %17, %13
%18 = phi i32 [ 0, %13 ], [ %21, %17 ]
%19 = call i32 @fscanf(i32* %16, i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str.2, i64 0, i64 0), float* %5)
%20 = icmp eq i32 %19, 1
%21 = add nuw nsw i32 %18, 1
br i1 %20, label %17, label %22
22: ; preds = %17
%23 = call i32 @rewind(i32* %16)
%24 = icmp eq i32 %18, 0
br i1 %24, label %25, label %27
25: ; preds = %22
%26 = getelementptr inbounds [100 x float], [100 x float]* %4, i64 0, i64 0
br label %47
27: ; preds = %22
%28 = zext i32 %18 to i64
br label %29
29: ; preds = %27, %29
%30 = phi i64 [ 0, %27 ], [ %36, %29 ]
%31 = phi float [ 1.000000e+09, %27 ], [ %39, %29 ]
%32 = phi float [ 0.000000e+00, %27 ], [ %41, %29 ]
%33 = call i32 @fscanf(i32* %16, i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str.2, i64 0, i64 0), float* %5)
%34 = load float, float* %5
%35 = getelementptr inbounds [100 x float], [100 x float]* %3, i64 0, i64 %30
store float %34, float* %35
%36 = add nuw nsw i64 %30, 1
%37 = getelementptr inbounds [100 x float], [100 x float]* %4, i64 0, i64 %36
store float %34, float* %37
%38 = fcmp ole float %34, %31
%39 = select i1 %38, float %34, float %31
%40 = fcmp oge float %34, %32
%41 = select i1 %40, float %34, float %32
%42 = icmp eq i64 %36, %28
br i1 %42, label %43, label %29
43: ; preds = %29
%44 = getelementptr inbounds [100 x float], [100 x float]* %4, i64 0, i64 0
%45 = and i32 %18, 1
%46 = icmp eq i32 %45, 0
br i1 %46, label %47, label %60
47: ; preds = %25, %43
%48 = phi float [ 1.000000e+09, %25 ], [ %39, %43 ]
%49 = phi float [ 0.000000e+00, %25 ], [ %41, %43 ]
%50 = lshr i32 %18, 1
%51 = zext i32 %50 to i64
%52 = getelementptr inbounds [100 x float], [100 x float]* %4, i64 0, i64 %51
%53 = load float, float* %52
%54 = add nuw nsw i32 %50, 1
%55 = zext i32 %54 to i64
%56 = getelementptr inbounds [100 x float], [100 x float]* %4, i64 0, i64 %55
%57 = load float, float* %56
%58 = fadd float %53, %57
%59 = fmul float %58, 5.000000e-01
br label %66
60: ; preds = %43
%61 = lshr i32 %18, 1
%62 = add nuw nsw i32 %61, 1
%63 = zext i32 %62 to i64
%64 = getelementptr inbounds [100 x float], [100 x float]* %4, i64 0, i64 %63
%65 = load float, float* %64
br label %66
66: ; preds = %60, %47
%67 = phi float [ %48, %47 ], [ %39, %60 ]
%68 = phi float [ %49, %47 ], [ %41, %60 ]
%69 = phi float [ %59, %47 ], [ %65, %60 ]
%70 = fadd float %68, %67
%71 = call float @llvm.fmuladd.f32(float %69, float -2.000000e+00, float %70)
%72 = fcmp oeq float %71, 0.000000e+00
br i1 %72, label %78, label %73
73: ; preds = %66
%74 = fneg float %69
%75 = fmul float %69, %74
%76 = call float @llvm.fmuladd.f32(float %67, float %68, float %75)
%77 = fdiv float %76, %71
br label %78
78: ; preds = %66, %73
%79 = phi float [ %77, %73 ], [ 0.000000e+00, %66 ]
%80 = fcmp ogt float %79, %67
%81 = select i1 %80, float 0.000000e+00, float %79
br i1 %24, label %98, label %82
82: ; preds = %78
%83 = zext i32 %18 to i64
br label %84
84: ; preds = %82, %84
%85 = phi i64 [ 0, %82 ], [ %96, %84 ]
%86 = phi float [ 0.000000e+00, %82 ], [ %95, %84 ]
%87 = phi float [ 0.000000e+00, %82 ], [ %92, %84 ]
%88 = getelementptr inbounds [100 x float], [100 x float]* %3, i64 0, i64 %85
%89 = load float, float* %88
%90 = fsub float %89, %81
%91 = call float @log(float %90)
%92 = fadd float %87, %91
%93 = call float @log(float %90)
%94 = call float @log(float %90)
%95 = call float @llvm.fmuladd.f32(float %93, float %94, float %86)
%96 = add nuw nsw i64 %85, 1
%97 = icmp eq i64 %96, %83
br i1 %97, label %98, label %84
98: ; preds = %84, %78
%99 = phi float [ 0.000000e+00, %78 ], [ %92, %84 ]
%100 = phi float [ 0.000000e+00, %78 ], [ %95, %84 ]
%101 = sitofp i32 %18 to float
%102 = fdiv float %99, %101
%103 = fmul float %99, %99
%104 = fdiv float %103, %101
%105 = fsub float %100, %104
%106 = add nsw i32 %18, -1
%107 = sitofp i32 %106 to float
%108 = fdiv float %105, %107
%109 = call float @sqrt(float %108)
%110 = call float @llvm.fmuladd.f32(float %109, float 0x3FFA3D70A0000000, float %102)
%111 = fcmp olt float %110, -7.450000e+02
%112 = fcmp ogt float %110, 7.090000e+02
%113 = or i1 %112, %111
br i1 %113, label %114, label %116
114: ; preds = %98
%115 = call float @exp(float %110)
br label %116
116: ; preds = %98, %114
%117 = call float @llvm.fmuladd.f32(float %109, float 0x4000666660000000, float %102)
%118 = fcmp olt float %117, -7.450000e+02
%119 = fcmp ogt float %117, 7.090000e+02
%120 = or i1 %119, %118
br i1 %120, label %121, label %123
121: ; preds = %116
%122 = call float @exp(float %117)
br label %123
123: ; preds = %116, %121
%124 = call float @llvm.fmuladd.f32(float %109, float 0x40028F5C20000000, float %102)
%125 = fcmp olt float %124, -7.450000e+02
%126 = fcmp ogt float %124, 7.090000e+02
%127 = or i1 %126, %125
br i1 %127, label %128, label %130
128: ; preds = %123
%129 = call float @exp(float %124)
br label %130
130: ; preds = %123, %128
%131 = call float @llvm.fmuladd.f32(float %109, float 0x40048F5C20000000, float %102)
%132 = fcmp olt float %131, -7.450000e+02
%133 = fcmp ogt float %131, 7.090000e+02
%134 = or i1 %133, %132
br i1 %134, label %135, label %137
135: ; preds = %130
%136 = call float @exp(float %131)
br label %137
137: ; preds = %130, %135
%138 = fpext float %81 to double
%139 = fpext float %102 to double
%140 = fpext float %109 to double
%141 = call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([19 x i8], [19 x i8]* @.str.3, i64 0, i64 0), double %138, double %139, double %140)
ret i32 0
}