#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[4], out[8], 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;
  sum[2] = 0;
  sum[3] = 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];
  a = 0;
  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);
    sum[2] += data[k];
    sum[3] += data[k] * data[k];
  }
  out[0] = sum[0] / clength;
  out[1] = sqrt((sum[1] - sum[0] * sum[0] / clength) / (clength - 1));
  out[2] = sum[2] / clength;
  out[3] = sqrt((sum[3] - sum[2] * sum[2] / clength) / (clength - 1));
  out[4] = exp(out[0] + out[1] * zvalue[0]) + a;
  out[5] = exp(out[0] + out[1] * zvalue[1]) + a;
  out[6] = exp(out[0] + out[1] * zvalue[2]) + a;
  out[7] = exp(out[0] + out[1] * zvalue[3]) + a;
  printf("%8.5f\n%8.7f\n%8.7f\n%8.7f\n", out[2], out[3], out[0], out[1]);
}


x86 assembly (clang, -O0):
<main>:
push   %rbp
mov    %rsp,%rbp
sub    $0x3c0,%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    -0x3b0(%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,-0x380(%rbp)
ff
xorps  %xmm0,%xmm0
movss  %xmm0,-0x37c(%rbp)
ff
xorps  %xmm0,%xmm0
movss  %xmm0,-0x378(%rbp)
ff
xorps  %xmm0,%xmm0
movss  %xmm0,-0x374(%rbp)
ff
xorps  %xmm0,%xmm0
movss  %xmm0,-0x3a4(%rbp)
ff
movss  0xd86(%rip),%xmm0
movss  %xmm0,-0x3ac(%rbp)
ff
movl   $0x0,-0x18(%rbp)
mov    -0x18(%rbp),%eax
cmp    -0x24(%rbp),%eax
jge    133b <main+0x1ab>
mov    -0x30(%rbp),%rdi
lea    0xdb8(%rip),%rsi
lea    -0x3b0(%rbp),%rdx
call   1050 <fscanf@plt>
movss  -0x3b0(%rbp),%xmm0
ff
movslq -0x18(%rbp),%rax
movss  %xmm0,-0x1e0(%rbp,%rax,4)
ff ff
movss  -0x3b0(%rbp),%xmm0
ff
mov    -0x18(%rbp),%eax
add    $0x1,%eax
cltq
movss  %xmm0,-0x370(%rbp,%rax,4)
ff ff
movss  -0x3b0(%rbp),%xmm1
ff
movss  -0x3ac(%rbp),%xmm0
ff
ucomiss %xmm1,%xmm0
jb     1303 <main+0x173>
movss  -0x3b0(%rbp),%xmm0
ff
movss  %xmm0,-0x3ac(%rbp)
ff
movss  -0x3b0(%rbp),%xmm0
ff
ucomiss -0x3a4(%rbp),%xmm0
jb     1328 <main+0x198>
movss  -0x3b0(%rbp),%xmm0
ff
movss  %xmm0,-0x3a4(%rbp)
ff
jmp    132d <main+0x19d>
mov    -0x18(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0x18(%rbp)
jmp    1289 <main+0xf9>
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    13a6 <main+0x216>
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  0xc6f(%rip),%xmm1
divss  %xmm1,%xmm0
movss  %xmm0,-0x3a8(%rbp)
ff
jmp    13c7 <main+0x237>
mov    -0x24(%rbp),%eax
mov    $0x2,%ecx
cltd
idiv   %ecx
add    $0x1,%eax
cltq
movss  -0x370(%rbp,%rax,4),%xmm0
ff ff
movss  %xmm0,-0x3a8(%rbp)
ff
xorps  %xmm0,%xmm0
movss  %xmm0,-0x44(%rbp)
movss  -0x44(%rbp),%xmm0
ucomiss -0x3ac(%rbp),%xmm0
jbe    13e9 <main+0x259>
xorps  %xmm0,%xmm0
movss  %xmm0,-0x44(%rbp)
movl   $0x0,-0x1c(%rbp)
mov    -0x1c(%rbp),%eax
cmp    -0x24(%rbp),%eax
jge    14d9 <main+0x349>
movslq -0x1c(%rbp),%rax
movss  -0x1e0(%rbp,%rax,4),%xmm0
ff ff
subss  -0x44(%rbp),%xmm0
call   1070 <log@plt>
addss  -0x380(%rbp),%xmm0
ff
movss  %xmm0,-0x380(%rbp)
ff
movslq -0x1c(%rbp),%rax
movss  -0x1e0(%rbp,%rax,4),%xmm0
ff ff
subss  -0x44(%rbp),%xmm0
call   1070 <log@plt>
movss  %xmm0,-0x3b4(%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  -0x3b4(%rbp),%xmm0
ff
movss  -0x37c(%rbp),%xmm1
ff
mulss  %xmm2,%xmm0
addss  %xmm1,%xmm0
movss  %xmm0,-0x37c(%rbp)
ff
movslq -0x1c(%rbp),%rax
movss  -0x1e0(%rbp,%rax,4),%xmm0
ff ff
addss  -0x378(%rbp),%xmm0
ff
movss  %xmm0,-0x378(%rbp)
ff
movslq -0x1c(%rbp),%rax
movss  -0x1e0(%rbp,%rax,4),%xmm0
ff ff
movslq -0x1c(%rbp),%rax
movss  -0x1e0(%rbp,%rax,4),%xmm2
ff 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    13f0 <main+0x260>
movss  -0x380(%rbp),%xmm0
ff
cvtsi2ssl -0x24(%rbp),%xmm1
divss  %xmm1,%xmm0
movss  %xmm0,-0x3a0(%rbp)
ff
movss  -0x37c(%rbp),%xmm0
ff
movss  -0x380(%rbp),%xmm1
ff
mulss  -0x380(%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,-0x39c(%rbp)
ff
movss  -0x378(%rbp),%xmm0
ff
cvtsi2ssl -0x24(%rbp),%xmm1
divss  %xmm1,%xmm0
movss  %xmm0,-0x398(%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,-0x394(%rbp)
ff
movss  -0x3a0(%rbp),%xmm1
ff
movss  -0x39c(%rbp),%xmm0
ff
movss  -0x40(%rbp),%xmm2
mulss  %xmm2,%xmm0
addss  %xmm1,%xmm0
call   1060 <exp@plt>
addss  -0x44(%rbp),%xmm0
movss  %xmm0,-0x390(%rbp)
ff
movss  -0x3a0(%rbp),%xmm1
ff
movss  -0x39c(%rbp),%xmm0
ff
movss  -0x3c(%rbp),%xmm2
mulss  %xmm2,%xmm0
addss  %xmm1,%xmm0
call   1060 <exp@plt>
addss  -0x44(%rbp),%xmm0
movss  %xmm0,-0x38c(%rbp)
ff
movss  -0x3a0(%rbp),%xmm1
ff
movss  -0x39c(%rbp),%xmm0
ff
movss  -0x38(%rbp),%xmm2
mulss  %xmm2,%xmm0
addss  %xmm1,%xmm0
call   1060 <exp@plt>
addss  -0x44(%rbp),%xmm0
movss  %xmm0,-0x388(%rbp)
ff
movss  -0x3a0(%rbp),%xmm1
ff
movss  -0x39c(%rbp),%xmm0
ff
movss  -0x34(%rbp),%xmm2
mulss  %xmm2,%xmm0
addss  %xmm1,%xmm0
call   1060 <exp@plt>
addss  -0x44(%rbp),%xmm0
movss  %xmm0,-0x384(%rbp)
ff
movss  -0x398(%rbp),%xmm0
ff
cvtss2sd %xmm0,%xmm0
movss  -0x394(%rbp),%xmm1
ff
cvtss2sd %xmm1,%xmm1
movss  -0x3a0(%rbp),%xmm2
ff
cvtss2sd %xmm2,%xmm2
movss  -0x39c(%rbp),%xmm3
ff
cvtss2sd %xmm3,%xmm3
lea    0x9dd(%rip),%rdi
mov    $0x4,%al
call   1030 <printf@plt>
mov    -0x4(%rbp),%eax
add    $0x3c0,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<main>:
push   %rbp
push   %r15
push   %r14
push   %r13
push   %r12
push   %rbx
sub    $0x378,%rsp
cmp    $0x2,%edi
jne    15e1 <main+0x441>
mov    0x8(%rsi),%rdi
lea    0xe53(%rip),%rsi
call   1090 <fopen@plt>
mov    %rax,%r13
mov    $0x1,%ebx
mov    $0xfffffffe,%ebp
lea    0xe3c(%rip),%r14
lea    0x3c(%rsp),%r15
cs nopw 0x0(%rax,%rax,1)
nopl   (%rax)
mov    %r13,%rdi
mov    %r14,%rsi
mov    %r15,%rdx
call   1060 <fscanf@plt>
add    $0xffffffffffffffff,%rbx
add    $0x1,%ebp
cmp    $0x1,%eax
je     11f0 <main+0x50>
mov    %r13,%rdi
call   1050 <rewind@plt>
mov    %rbx,%r14
neg    %r14
test   %ebx,%ebx
je     1322 <main+0x182>
mov    %r14,%r15
xor    %r14d,%r14d
lea    0x3c(%rsp),%r12
nopl   0x0(%rax,%rax,1)
mov    %r13,%rdi
lea    0xde0(%rip),%rsi
mov    %r12,%rdx
call   1060 <fscanf@plt>
movss  0x3c(%rsp),%xmm0
movss  %xmm0,0x1e0(%rsp,%r14,4)
movss  %xmm0,0x54(%rsp,%r14,4)
add    $0x1,%r14
cmp    %r14,%r15
jne    1230 <main+0x90>
lea    0x50(%rsp),%rsi
mov    %r15d,%edi
call   10c0 <shell@plt>
test   %ebx,%ebx
mov    %r15,%r14
je     132f <main+0x18f>
xorps  %xmm0,%xmm0
xorps  %xmm3,%xmm3
lea    0x1e0(%rsp),%rbx
mov    %r14,%r15
xorps  %xmm1,%xmm1
movss  %xmm1,0x8(%rsp)
cs nopw 0x0(%rax,%rax,1)
xchg   %ax,%ax
movss  %xmm3,0xc(%rsp)
movaps %xmm0,0x10(%rsp)
movss  (%rbx),%xmm0
movaps %xmm0,0x40(%rsp)
call   1080 <log@plt>
movss  0x8(%rsp),%xmm1
addss  %xmm0,%xmm1
movss  %xmm1,0x8(%rsp)
movaps 0x40(%rsp),%xmm0
call   1080 <log@plt>
movaps %xmm0,0x20(%rsp)
movaps 0x40(%rsp),%xmm0
call   1080 <log@plt>
movaps 0x10(%rsp),%xmm1
movss  0xc(%rsp),%xmm3
movaps %xmm0,%xmm6
movaps 0x40(%rsp),%xmm0
addss  %xmm0,%xmm3
movaps 0x20(%rsp),%xmm2
unpcklps %xmm0,%xmm2
unpcklps %xmm0,%xmm6
mulps  %xmm2,%xmm6
movaps %xmm6,%xmm0
addps  %xmm1,%xmm0
add    $0x4,%rbx
add    $0xffffffffffffffff,%r15
jne    12a0 <main+0x100>
addps  %xmm1,%xmm6
movss  0x8(%rsp),%xmm2
jmp    1338 <main+0x198>
lea    0x50(%rsp),%rsi
mov    %r14d,%edi
call   10c0 <shell@plt>
xorps  %xmm6,%xmm6
xorps  %xmm2,%xmm2
xorps  %xmm3,%xmm3
cvtsi2ss %r14d,%xmm4
movaps %xmm2,%xmm1
mulss  %xmm2,%xmm1
divss  %xmm4,%xmm1
movaps %xmm6,%xmm0
subss  %xmm1,%xmm0
xorps  %xmm1,%xmm1
cvtsi2ss %ebp,%xmm1
divss  %xmm1,%xmm0
xorps  %xmm7,%xmm7
ucomiss %xmm7,%xmm0
movss  %xmm3,0xc(%rsp)
movss  %xmm4,0x40(%rsp)
jb     1374 <main+0x1d4>
sqrtss %xmm0,%xmm5
jmp    13ad <main+0x20d>
movss  %xmm2,0x8(%rsp)
movaps %xmm6,0x10(%rsp)
movss  %xmm1,0x20(%rsp)
call   10a0 <sqrt@plt>
xorps  %xmm7,%xmm7
movss  0x20(%rsp),%xmm1
movaps 0x10(%rsp),%xmm6
movss  0x40(%rsp),%xmm4
movss  0xc(%rsp),%xmm3
movss  0x8(%rsp),%xmm2
movaps %xmm0,%xmm5
divss  %xmm4,%xmm2
movaps %xmm3,%xmm0
mulss  %xmm3,%xmm0
divss  %xmm4,%xmm0
shufps $0x55,%xmm6,%xmm6
subss  %xmm0,%xmm6
divss  %xmm1,%xmm6
ucomiss %xmm7,%xmm6
jb     13d3 <main+0x233>
sqrtss %xmm6,%xmm6
jmp    1402 <main+0x262>
movaps %xmm6,%xmm0
movss  %xmm2,0x8(%rsp)
movss  %xmm5,0x10(%rsp)
call   10a0 <sqrt@plt>
movss  0x10(%rsp),%xmm5
movss  0x40(%rsp),%xmm4
movss  0xc(%rsp),%xmm3
movss  0x8(%rsp),%xmm2
movaps %xmm0,%xmm6
movss  0xbf6(%rip),%xmm0
mulss  %xmm5,%xmm0
addss  %xmm2,%xmm0
ucomiss 0xbeb(%rip),%xmm0
ja     14f9 <main+0x359>
movss  0xbe1(%rip),%xmm1
ucomiss %xmm0,%xmm1
ja     14f9 <main+0x359>
movss  0xbd4(%rip),%xmm0
mulss  %xmm5,%xmm0
addss  %xmm2,%xmm0
ucomiss 0xbbd(%rip),%xmm0
ja     1533 <main+0x393>
movss  0xbb3(%rip),%xmm1
ucomiss %xmm0,%xmm1
ja     1533 <main+0x393>
movss  0xbaa(%rip),%xmm0
mulss  %xmm5,%xmm0
addss  %xmm2,%xmm0
ucomiss 0xb8f(%rip),%xmm0
ja     156d <main+0x3cd>
movss  0xb85(%rip),%xmm1
ucomiss %xmm0,%xmm1
ja     156d <main+0x3cd>
movss  0xb80(%rip),%xmm0
mulss  %xmm5,%xmm0
addss  %xmm2,%xmm0
ucomiss 0xb61(%rip),%xmm0
ja     15a7 <main+0x407>
movss  0xb57(%rip),%xmm1
ucomiss %xmm0,%xmm1
ja     15a7 <main+0x407>
divss  %xmm4,%xmm3
xorps  %xmm0,%xmm0
cvtss2sd %xmm3,%xmm0
xorps  %xmm1,%xmm1
cvtss2sd %xmm6,%xmm1
cvtss2sd %xmm2,%xmm2
xorps  %xmm3,%xmm3
cvtss2sd %xmm5,%xmm3
lea    0xb3f(%rip),%rdi
mov    $0x4,%al
call   1040 <printf@plt>
xor    %eax,%eax
add    $0x378,%rsp
pop    %rbx
pop    %r12
pop    %r13
pop    %r14
pop    %r15
pop    %rbp
ret
movss  %xmm2,0x8(%rsp)
movss  %xmm5,0x10(%rsp)
movss  %xmm6,0x20(%rsp)
call   1070 <exp@plt>
movss  0x20(%rsp),%xmm6
movss  0x10(%rsp),%xmm5
movss  0x40(%rsp),%xmm4
movss  0xc(%rsp),%xmm3
movss  0x8(%rsp),%xmm2
jmp    1430 <main+0x290>
movss  %xmm2,0x8(%rsp)
movss  %xmm5,0x10(%rsp)
movss  %xmm6,0x20(%rsp)
call   1070 <exp@plt>
movss  0x20(%rsp),%xmm6
movss  0x10(%rsp),%xmm5
movss  0x40(%rsp),%xmm4
movss  0xc(%rsp),%xmm3
movss  0x8(%rsp),%xmm2
jmp    145e <main+0x2be>
movss  %xmm2,0x8(%rsp)
movss  %xmm5,0x10(%rsp)
movss  %xmm6,0x20(%rsp)
call   1070 <exp@plt>
movss  0x20(%rsp),%xmm6
movss  0x10(%rsp),%xmm5
movss  0x40(%rsp),%xmm4
movss  0xc(%rsp),%xmm3
movss  0x8(%rsp),%xmm2
jmp    148c <main+0x2ec>
movss  %xmm2,0x8(%rsp)
movss  %xmm5,0x10(%rsp)
movss  %xmm6,0x20(%rsp)
call   1070 <exp@plt>
movss  0x20(%rsp),%xmm6
movss  0x10(%rsp),%xmm5
movss  0x40(%rsp),%xmm4
movss  0xc(%rsp),%xmm3
movss  0x8(%rsp),%xmm2
jmp    14ba <main+0x31a>
lea    0xa4e(%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 = [25 x i8] c"%8.5f\0A%8.7f\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 [4 x float]
%19 = alloca [8 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 [4 x float], [4 x float]* %18, i64 0, i64 0
store float 0.000000e+00, float* %45
%46 = getelementptr inbounds [4 x float], [4 x float]* %18, i64 0, i64 1
store float 0.000000e+00, float* %46
%47 = getelementptr inbounds [4 x float], [4 x float]* %18, i64 0, i64 2
store float 0.000000e+00, float* %47
%48 = getelementptr inbounds [4 x float], [4 x float]* %18, i64 0, i64 3
store float 0.000000e+00, float* %48
store float 0.000000e+00, float* %20
store float 1.000000e+09, float* %22
store i32 0, i32* %7
br label %49
49: ; preds = %77, %42
%50 = load i32, i32* %7
%51 = load i32, i32* %10
%52 = icmp slt i32 %50, %51
br i1 %52, label %53, label %80
53: ; preds = %49
%54 = load i32*, i32** %12
%55 = call i32 @fscanf(i32* %54, i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str.2, i64 0, i64 0), float* %23)
%56 = load float, float* %23
%57 = load i32, i32* %7
%58 = sext i32 %57 to i64
%59 = getelementptr inbounds [100 x float], [100 x float]* %16, i64 0, i64 %58
store float %56, float* %59
%60 = load float, float* %23
%61 = load i32, i32* %7
%62 = add nsw i32 %61, 1
%63 = sext i32 %62 to i64
%64 = getelementptr inbounds [100 x float], [100 x float]* %17, i64 0, i64 %63
store float %60, float* %64
%65 = load float, float* %23
%66 = load float, float* %22
%67 = fcmp ole float %65, %66
br i1 %67, label %68, label %70
68: ; preds = %53
%69 = load float, float* %23
store float %69, float* %22
br label %70
70: ; preds = %68, %53
%71 = load float, float* %23
%72 = load float, float* %20
%73 = fcmp oge float %71, %72
br i1 %73, label %74, label %76
74: ; preds = %70
%75 = load float, float* %23
store float %75, float* %20
br label %76
76: ; preds = %74, %70
br label %77
77: ; preds = %76
%78 = load i32, i32* %7
%79 = add nsw i32 %78, 1
store i32 %79, i32* %7
br label %49
80: ; preds = %49
%81 = load i32, i32* %10
%82 = getelementptr inbounds [100 x float], [100 x float]* %17, i64 0, i64 0
%83 = load i32, i32* %10
%84 = srem i32 %83, 2
%85 = icmp eq i32 %84, 0
br i1 %85, label %86, label %100
86: ; preds = %80
%87 = load i32, i32* %10
%88 = sdiv i32 %87, 2
%89 = sext i32 %88 to i64
%90 = getelementptr inbounds [100 x float], [100 x float]* %17, i64 0, i64 %89
%91 = load float, float* %90
%92 = load i32, i32* %10
%93 = sdiv i32 %92, 2
%94 = add nsw i32 %93, 1
%95 = sext i32 %94 to i64
%96 = getelementptr inbounds [100 x float], [100 x float]* %17, i64 0, i64 %95
%97 = load float, float* %96
%98 = fadd float %91, %97
%99 = fdiv float %98, 2.000000e+00
store float %99, float* %21
br label %107
100: ; preds = %80
%101 = load i32, i32* %10
%102 = sdiv i32 %101, 2
%103 = add nsw i32 %102, 1
%104 = sext i32 %103 to i64
%105 = getelementptr inbounds [100 x float], [100 x float]* %17, i64 0, i64 %104
%106 = load float, float* %105
store float %106, float* %21
br label %107
107: ; preds = %100, %86
store float 0.000000e+00, float* %14
%108 = load float, float* %14
%109 = load float, float* %22
%110 = fcmp ogt float %108, %109
br i1 %110, label %111, label %112
111: ; preds = %107
store float 0.000000e+00, float* %14
br label %112
112: ; preds = %111, %107
store i32 0, i32* %8
br label %113
113: ; preds = %163, %112
%114 = load i32, i32* %8
%115 = load i32, i32* %10
%116 = icmp slt i32 %114, %115
br i1 %116, label %117, label %166
117: ; preds = %113
%118 = load i32, i32* %8
%119 = sext i32 %118 to i64
%120 = getelementptr inbounds [100 x float], [100 x float]* %16, i64 0, i64 %119
%121 = load float, float* %120
%122 = load float, float* %14
%123 = fsub float %121, %122
%124 = call float @log(float %123)
%125 = getelementptr inbounds [4 x float], [4 x float]* %18, i64 0, i64 0
%126 = load float, float* %125
%127 = fadd float %126, %124
store float %127, float* %125
%128 = load i32, i32* %8
%129 = sext i32 %128 to i64
%130 = getelementptr inbounds [100 x float], [100 x float]* %16, i64 0, i64 %129
%131 = load float, float* %130
%132 = load float, float* %14
%133 = fsub float %131, %132
%134 = call float @log(float %133)
%135 = load i32, i32* %8
%136 = sext i32 %135 to i64
%137 = getelementptr inbounds [100 x float], [100 x float]* %16, i64 0, i64 %136
%138 = load float, float* %137
%139 = load float, float* %14
%140 = fsub float %138, %139
%141 = call float @log(float %140)
%142 = getelementptr inbounds [4 x float], [4 x float]* %18, i64 0, i64 1
%143 = load float, float* %142
%144 = call float @llvm.fmuladd.f32(float %134, float %141, float %143)
store float %144, float* %142
%145 = load i32, i32* %8
%146 = sext i32 %145 to i64
%147 = getelementptr inbounds [100 x float], [100 x float]* %16, i64 0, i64 %146
%148 = load float, float* %147
%149 = getelementptr inbounds [4 x float], [4 x float]* %18, i64 0, i64 2
%150 = load float, float* %149
%151 = fadd float %150, %148
store float %151, float* %149
%152 = load i32, i32* %8
%153 = sext i32 %152 to i64
%154 = getelementptr inbounds [100 x float], [100 x float]* %16, i64 0, i64 %153
%155 = load float, float* %154
%156 = load i32, i32* %8
%157 = sext i32 %156 to i64
%158 = getelementptr inbounds [100 x float], [100 x float]* %16, i64 0, i64 %157
%159 = load float, float* %158
%160 = getelementptr inbounds [4 x float], [4 x float]* %18, i64 0, i64 3
%161 = load float, float* %160
%162 = call float @llvm.fmuladd.f32(float %155, float %159, float %161)
store float %162, float* %160
br label %163
163: ; preds = %117
%164 = load i32, i32* %8
%165 = add nsw i32 %164, 1
store i32 %165, i32* %8
br label %113
166: ; preds = %113
%167 = getelementptr inbounds [4 x float], [4 x float]* %18, i64 0, i64 0
%168 = load float, float* %167
%169 = load i32, i32* %10
%170 = sitofp i32 %169 to float
%171 = fdiv float %168, %170
%172 = getelementptr inbounds [8 x float], [8 x float]* %19, i64 0, i64 0
store float %171, float* %172
%173 = getelementptr inbounds [4 x float], [4 x float]* %18, i64 0, i64 1
%174 = load float, float* %173
%175 = getelementptr inbounds [4 x float], [4 x float]* %18, i64 0, i64 0
%176 = load float, float* %175
%177 = getelementptr inbounds [4 x float], [4 x float]* %18, i64 0, i64 0
%178 = load float, float* %177
%179 = fmul float %176, %178
%180 = load i32, i32* %10
%181 = sitofp i32 %180 to float
%182 = fdiv float %179, %181
%183 = fsub float %174, %182
%184 = load i32, i32* %10
%185 = sub nsw i32 %184, 1
%186 = sitofp i32 %185 to float
%187 = fdiv float %183, %186
%188 = call float @sqrt(float %187)
%189 = getelementptr inbounds [8 x float], [8 x float]* %19, i64 0, i64 1
store float %188, float* %189
%190 = getelementptr inbounds [4 x float], [4 x float]* %18, i64 0, i64 2
%191 = load float, float* %190
%192 = load i32, i32* %10
%193 = sitofp i32 %192 to float
%194 = fdiv float %191, %193
%195 = getelementptr inbounds [8 x float], [8 x float]* %19, i64 0, i64 2
store float %194, float* %195
%196 = getelementptr inbounds [4 x float], [4 x float]* %18, i64 0, i64 3
%197 = load float, float* %196
%198 = getelementptr inbounds [4 x float], [4 x float]* %18, i64 0, i64 2
%199 = load float, float* %198
%200 = getelementptr inbounds [4 x float], [4 x float]* %18, i64 0, i64 2
%201 = load float, float* %200
%202 = fmul float %199, %201
%203 = load i32, i32* %10
%204 = sitofp i32 %203 to float
%205 = fdiv float %202, %204
%206 = fsub float %197, %205
%207 = load i32, i32* %10
%208 = sub nsw i32 %207, 1
%209 = sitofp i32 %208 to float
%210 = fdiv float %206, %209
%211 = call float @sqrt(float %210)
%212 = getelementptr inbounds [8 x float], [8 x float]* %19, i64 0, i64 3
store float %211, float* %212
%213 = getelementptr inbounds [8 x float], [8 x float]* %19, i64 0, i64 0
%214 = load float, float* %213
%215 = getelementptr inbounds [8 x float], [8 x float]* %19, i64 0, i64 1
%216 = load float, float* %215
%217 = getelementptr inbounds [4 x float], [4 x float]* %13, i64 0, i64 0
%218 = load float, float* %217
%219 = call float @llvm.fmuladd.f32(float %216, float %218, float %214)
%220 = call float @exp(float %219)
%221 = load float, float* %14
%222 = fadd float %220, %221
%223 = getelementptr inbounds [8 x float], [8 x float]* %19, i64 0, i64 4
store float %222, float* %223
%224 = getelementptr inbounds [8 x float], [8 x float]* %19, i64 0, i64 0
%225 = load float, float* %224
%226 = getelementptr inbounds [8 x float], [8 x float]* %19, i64 0, i64 1
%227 = load float, float* %226
%228 = getelementptr inbounds [4 x float], [4 x float]* %13, i64 0, i64 1
%229 = load float, float* %228
%230 = call float @llvm.fmuladd.f32(float %227, float %229, float %225)
%231 = call float @exp(float %230)
%232 = load float, float* %14
%233 = fadd float %231, %232
%234 = getelementptr inbounds [8 x float], [8 x float]* %19, i64 0, i64 5
store float %233, float* %234
%235 = getelementptr inbounds [8 x float], [8 x float]* %19, i64 0, i64 0
%236 = load float, float* %235
%237 = getelementptr inbounds [8 x float], [8 x float]* %19, i64 0, i64 1
%238 = load float, float* %237
%239 = getelementptr inbounds [4 x float], [4 x float]* %13, i64 0, i64 2
%240 = load float, float* %239
%241 = call float @llvm.fmuladd.f32(float %238, float %240, float %236)
%242 = call float @exp(float %241)
%243 = load float, float* %14
%244 = fadd float %242, %243
%245 = getelementptr inbounds [8 x float], [8 x float]* %19, i64 0, i64 6
store float %244, float* %245
%246 = getelementptr inbounds [8 x float], [8 x float]* %19, i64 0, i64 0
%247 = load float, float* %246
%248 = getelementptr inbounds [8 x float], [8 x float]* %19, i64 0, i64 1
%249 = load float, float* %248
%250 = getelementptr inbounds [4 x float], [4 x float]* %13, i64 0, i64 3
%251 = load float, float* %250
%252 = call float @llvm.fmuladd.f32(float %249, float %251, float %247)
%253 = call float @exp(float %252)
%254 = load float, float* %14
%255 = fadd float %253, %254
%256 = getelementptr inbounds [8 x float], [8 x float]* %19, i64 0, i64 7
store float %255, float* %256
%257 = getelementptr inbounds [8 x float], [8 x float]* %19, i64 0, i64 2
%258 = load float, float* %257
%259 = fpext float %258 to double
%260 = getelementptr inbounds [8 x float], [8 x float]* %19, i64 0, i64 3
%261 = load float, float* %260
%262 = fpext float %261 to double
%263 = getelementptr inbounds [8 x float], [8 x float]* %19, i64 0, i64 0
%264 = load float, float* %263
%265 = fpext float %264 to double
%266 = getelementptr inbounds [8 x float], [8 x float]* %19, i64 0, i64 1
%267 = load float, float* %266
%268 = fpext float %267 to double
%269 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([25 x i8], [25 x i8]* @.str.3, i64 0, i64 0), double %259, double %262, double %265, double %268)
%270 = load i32, i32* %3
ret i32 %270
}

LLVM IR (-O2):
@.str.1 = [2 x i8] c"r\00"
@.str.2 = [3 x i8] c"%f\00"
@.str.3 = [25 x i8] c"%8.5f\0A%8.7f\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 %62
27: ; preds = %22
%28 = zext i32 %18 to i64
br label %29
29: ; preds = %27, %29
%30 = phi i64 [ 0, %27 ], [ %34, %29 ]
%31 = call i32 @fscanf(i32* %16, i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str.2, i64 0, i64 0), float* %5)
%32 = load float, float* %5
%33 = getelementptr inbounds [100 x float], [100 x float]* %3, i64 0, i64 %30
store float %32, float* %33
%34 = add nuw nsw i64 %30, 1
%35 = getelementptr inbounds [100 x float], [100 x float]* %4, i64 0, i64 %34
store float %32, float* %35
%36 = icmp eq i64 %34, %28
br i1 %36, label %37, label %29
37: ; preds = %29
%38 = getelementptr inbounds [100 x float], [100 x float]* %4, i64 0, i64 0
br i1 %24, label %62, label %39
39: ; preds = %37
%40 = zext i32 %18 to i64
br label %41
41: ; preds = %39, %41
%42 = phi i64 [ 0, %39 ], [ %58, %41 ]
%43 = phi float [ 0.000000e+00, %39 ], [ %52, %41 ]
%44 = phi float [ 0.000000e+00, %39 ], [ %49, %41 ]
%45 = phi <2 x float> [ zeroinitializer, %39 ], [ %57, %41 ]
%46 = getelementptr inbounds [100 x float], [100 x float]* %3, i64 0, i64 %42
%47 = load float, float* %46
%48 = call float @log(float %47)
%49 = fadd float %44, %48
%50 = call float @log(float %47)
%51 = call float @log(float %47)
%52 = fadd float %43, %47
%53 = insertelement <2 x float> poison, float %50, i64 0
%54 = insertelement <2 x float> %53, float %47, i64 1
%55 = insertelement <2 x float> poison, float %51, i64 0
%56 = insertelement <2 x float> %55, float %47, i64 1
%57 = call <2 x float> @llvm.fmuladd.v2f32(<2 x float> %54, <2 x float> %56, <2 x float> %45)
%58 = add nuw nsw i64 %42, 1
%59 = icmp eq i64 %58, %40
br i1 %59, label %60, label %41
60: ; preds = %41
%61 = call <2 x float> @llvm.fmuladd.v2f32(<2 x float> %54, <2 x float> %56, <2 x float> %45)
br label %62
62: ; preds = %60, %25, %37
%63 = phi float [ 0.000000e+00, %37 ], [ 0.000000e+00, %25 ], [ %49, %60 ]
%64 = phi float [ 0.000000e+00, %37 ], [ 0.000000e+00, %25 ], [ %52, %60 ]
%65 = phi <2 x float> [ zeroinitializer, %37 ], [ zeroinitializer, %25 ], [ %61, %60 ]
%66 = sitofp i32 %18 to float
%67 = fdiv float %63, %66
%68 = fmul float %63, %63
%69 = fdiv float %68, %66
%70 = extractelement <2 x float> %65, i64 0
%71 = fsub float %70, %69
%72 = add nsw i32 %18, -1
%73 = sitofp i32 %72 to float
%74 = fdiv float %71, %73
%75 = call float @sqrt(float %74)
%76 = fmul float %64, %64
%77 = fdiv float %76, %66
%78 = extractelement <2 x float> %65, i64 1
%79 = fsub float %78, %77
%80 = fdiv float %79, %73
%81 = call float @sqrt(float %80)
%82 = call float @llvm.fmuladd.f32(float %75, float 0x3FFA3D70A0000000, float %67)
%83 = fcmp olt float %82, -7.450000e+02
%84 = fcmp ogt float %82, 7.090000e+02
%85 = or i1 %84, %83
br i1 %85, label %86, label %88
86: ; preds = %62
%87 = call float @exp(float %82)
br label %88
88: ; preds = %62, %86
%89 = call float @llvm.fmuladd.f32(float %75, float 0x4000666660000000, float %67)
%90 = fcmp olt float %89, -7.450000e+02
%91 = fcmp ogt float %89, 7.090000e+02
%92 = or i1 %91, %90
br i1 %92, label %93, label %95
93: ; preds = %88
%94 = call float @exp(float %89)
br label %95
95: ; preds = %88, %93
%96 = call float @llvm.fmuladd.f32(float %75, float 0x40028F5C20000000, float %67)
%97 = fcmp olt float %96, -7.450000e+02
%98 = fcmp ogt float %96, 7.090000e+02
%99 = or i1 %98, %97
br i1 %99, label %100, label %102
100: ; preds = %95
%101 = call float @exp(float %96)
br label %102
102: ; preds = %95, %100
%103 = call float @llvm.fmuladd.f32(float %75, float 0x40048F5C20000000, float %67)
%104 = fcmp olt float %103, -7.450000e+02
%105 = fcmp ogt float %103, 7.090000e+02
%106 = or i1 %105, %104
br i1 %106, label %107, label %109
107: ; preds = %102
%108 = call float @exp(float %103)
br label %109
109: ; preds = %102, %107
%110 = fdiv float %64, %66
%111 = fpext float %110 to double
%112 = fpext float %81 to double
%113 = fpext float %67 to double
%114 = fpext float %75 to double
%115 = call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([25 x i8], [25 x i8]* @.str.3, i64 0, i64 0), double %111, double %112, double %113, double %114)
ret i32 0
}