#define NULL ((void *)0)
typedef unsigned long size_t; // Customize by platform.
typedef long intptr_t;
typedef unsigned long uintptr_t;
typedef long scalar_t__; // Either arithmetic or pointer type.
/* By default, we understand bool (as a convenience). */
typedef int bool;
#define false 0
#define true 1

/* Forward declarations */

/* Type definitions */

/* Variables and functions */
float fabs(float);
int floor(double);
int slacon2_(int *n, float *v, float *x, int *isgn, float *est, int *kase,
             int isave[3]) {
  int c__1 = 1;
  float zero = 0.0;
  float one = 1.0;
  int jlast;
  float altsgn, estold;
  int i;
  float temp;
  extern int isamax_(int *, float *, int *);
  extern float sasum_(int *, float *, int *);
  extern int scopy_(int *, float *, int *, float *, int *);
  if (*kase == 0) {
    for (i = 0; i < *n; ++i) {
      x[i] = 1. / (float)(*n);
    }
    *kase = 1;
    isave[0] = 1;
    return 0;
  }
  switch (isave[0]) {
  case 1:
    goto L20;
  case 2:
    goto L40;
  case 3:
    goto L70;
  case 4:
    goto L110;
  case 5:
    goto L140;
  }
L20:
  if (*n == 1) {
    v[0] = x[0];
    *est = fabs(v[0]);
    goto L150;
  }
  *est = sasum_(n, x, &c__1);
  for (i = 0; i < *n; ++i) {
    x[i] = (x[i] >= 0 ? fabs(one) : -fabs(one));
    isgn[i] = (x[i] >= 0 ? floor(x[i] + .5) : -floor(.5 - x[i]));
  }
  *kase = 2;
  isave[0] = 2;
  return 0;
L40:
  isave[1] = isamax_(n, &x[0], &c__1);
  --isave[1];
  isave[2] = 2;
L50:
  for (i = 0; i < *n; ++i)
    x[i] = zero;
  x[isave[1]] = one;
  *kase = 1;
  isave[0] = 3;
  return 0;
L70:
  scopy_(n, x, &c__1, v, &c__1);
  estold = *est;
  *est = sasum_(n, v, &c__1);
  for (i = 0; i < *n; ++i)
    if (((x[i] >= 0 ? fabs(one) : -fabs(one)) >= 0
             ? floor((x[i] >= 0 ? fabs(one) : -fabs(one)) + .5)
             : -floor(.5 - (x[i] >= 0 ? fabs(one) : -fabs(one)))) != isgn[i])
      goto L90;
  goto L120;
L90:
  if (*est <= estold)
    goto L120;
  for (i = 0; i < *n; ++i) {
    x[i] = (x[i] >= 0 ? fabs(one) : -fabs(one));
    isgn[i] = (x[i] >= 0 ? floor(x[i] + .5) : -floor(.5 - x[i]));
  }
  *kase = 2;
  isave[0] = 4;
  return 0;
L110:
  jlast = isave[1];
  isave[1] = isamax_(n, &x[0], &c__1);
  isave[1] = isave[1] - 1;
  if (x[jlast] != fabs(x[isave[1]]) && isave[2] < 5) {
    isave[2] = isave[2] + 1;
    goto L50;
  }
L120:
  altsgn = 1.;
  for (i = 1; i <= *n; ++i) {
    x[i - 1] = altsgn * ((float)(i - 1) / (float)(*n - 1) + 1.);
    altsgn = -altsgn;
  }
  *kase = 1;
  isave[0] = 5;
  return 0;
L140:
  temp = sasum_(n, x, &c__1) / (float)(*n * 3) * 2.;
  if (temp > *est) {
    scopy_(n, &x[0], &c__1, &v[0], &c__1);
    *est = temp;
  }
L150:
  *kase = 0;
  return 0;
}


x86 assembly (clang, -O0):
<slacon2_>:
push   %rbp
mov    %rsp,%rbp
sub    $0x90,%rsp
mov    0x10(%rbp),%rax
mov    %rdi,-0x10(%rbp)
mov    %rsi,-0x18(%rbp)
mov    %rdx,-0x20(%rbp)
mov    %rcx,-0x28(%rbp)
mov    %r8,-0x30(%rbp)
mov    %r9,-0x38(%rbp)
movl   $0x1,-0x3c(%rbp)
xorps  %xmm0,%xmm0
movss  %xmm0,-0x40(%rbp)
movss  0xe72(%rip),%xmm0
movss  %xmm0,-0x44(%rbp)
mov    -0x38(%rbp),%rax
cmpl   $0x0,(%rax)
jne    120d <slacon2_+0xbd>
movl   $0x0,-0x54(%rbp)
mov    -0x54(%rbp),%eax
mov    -0x10(%rbp),%rcx
cmp    (%rcx),%eax
jge    11ed <slacon2_+0x9d>
mov    -0x10(%rbp),%rax
cvtsi2ssl (%rax),%xmm0
cvtss2sd %xmm0,%xmm1
movsd  0xe4e(%rip),%xmm0
divsd  %xmm1,%xmm0
cvtsd2ss %xmm0,%xmm0
mov    -0x20(%rbp),%rax
movslq -0x54(%rbp),%rcx
movss  %xmm0,(%rax,%rcx,4)
mov    -0x54(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0x54(%rbp)
jmp    11a7 <slacon2_+0x57>
mov    -0x38(%rbp),%rax
movl   $0x1,(%rax)
mov    0x10(%rbp),%rax
movl   $0x1,(%rax)
movl   $0x0,-0x4(%rbp)
jmp    1930 <slacon2_+0x7e0>
mov    0x10(%rbp),%rax
mov    (%rax),%eax
add    $0xffffffff,%eax
mov    %eax,%ecx
mov    %rcx,-0x60(%rbp)
sub    $0x4,%eax
ja     1252 <slacon2_+0x102>
mov    -0x60(%rbp),%rax
lea    0xdf0(%rip),%rcx
movslq (%rcx,%rax,4),%rax
add    %rcx,%rax
jmp    *%rax
jmp    1257 <slacon2_+0x107>
jmp    13c2 <slacon2_+0x272>
jmp    1460 <slacon2_+0x310>
jmp    174c <slacon2_+0x5fc>
jmp    18aa <slacon2_+0x75a>
jmp    1257 <slacon2_+0x107>
mov    -0x10(%rbp),%rax
cmpl   $0x1,(%rax)
jne    128e <slacon2_+0x13e>
mov    -0x20(%rbp),%rax
movss  (%rax),%xmm0
mov    -0x18(%rbp),%rax
movss  %xmm0,(%rax)
mov    -0x18(%rbp),%rax
movss  (%rax),%xmm0
call   1040 <fabs@plt>
mov    -0x30(%rbp),%rax
movss  %xmm0,(%rax)
jmp    191f <slacon2_+0x7cf>
mov    -0x10(%rbp),%rdi
mov    -0x20(%rbp),%rsi
lea    -0x3c(%rbp),%rdx
call   1030 <sasum_@plt>
mov    -0x30(%rbp),%rax
movss  %xmm0,(%rax)
movl   $0x0,-0x54(%rbp)
mov    -0x54(%rbp),%eax
mov    -0x10(%rbp),%rcx
cmp    (%rcx),%eax
jge    13a2 <slacon2_+0x252>
mov    -0x20(%rbp),%rax
movslq -0x54(%rbp),%rcx
movss  (%rax,%rcx,4),%xmm0
xorps  %xmm1,%xmm1
ucomiss %xmm1,%xmm0
jb     12ea <slacon2_+0x19a>
movss  -0x44(%rbp),%xmm0
call   1040 <fabs@plt>
movss  %xmm0,-0x64(%rbp)
jmp    1306 <slacon2_+0x1b6>
movss  -0x44(%rbp),%xmm0
call   1040 <fabs@plt>
movd   %xmm0,%eax
xor    $0x80000000,%eax
movd   %eax,%xmm0
movss  %xmm0,-0x64(%rbp)
movss  -0x64(%rbp),%xmm0
mov    -0x20(%rbp),%rax
movslq -0x54(%rbp),%rcx
movss  %xmm0,(%rax,%rcx,4)
mov    -0x20(%rbp),%rax
movslq -0x54(%rbp),%rcx
movss  (%rax,%rcx,4),%xmm0
xorps  %xmm1,%xmm1
ucomiss %xmm1,%xmm0
jb     135b <slacon2_+0x20b>
mov    -0x20(%rbp),%rax
movslq -0x54(%rbp),%rcx
movss  (%rax,%rcx,4),%xmm0
cvtss2sd %xmm0,%xmm0
movsd  0xcc6(%rip),%xmm1
addsd  %xmm1,%xmm0
call   1070 <floor@plt>
mov    %eax,-0x68(%rbp)
jmp    1386 <slacon2_+0x236>
mov    -0x20(%rbp),%rax
movslq -0x54(%rbp),%rcx
movss  (%rax,%rcx,4),%xmm0
cvtss2sd %xmm0,%xmm1
movsd  0xc9c(%rip),%xmm0
subsd  %xmm1,%xmm0
call   1070 <floor@plt>
mov    %eax,%ecx
xor    %eax,%eax
sub    %ecx,%eax
mov    %eax,-0x68(%rbp)
mov    -0x68(%rbp),%edx
mov    -0x28(%rbp),%rax
movslq -0x54(%rbp),%rcx
mov    %edx,(%rax,%rcx,4)
mov    -0x54(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0x54(%rbp)
jmp    12ae <slacon2_+0x15e>
mov    -0x38(%rbp),%rax
movl   $0x2,(%rax)
mov    0x10(%rbp),%rax
movl   $0x2,(%rax)
movl   $0x0,-0x4(%rbp)
jmp    1930 <slacon2_+0x7e0>
mov    -0x10(%rbp),%rdi
mov    -0x20(%rbp),%rsi
lea    -0x3c(%rbp),%rdx
call   1060 <isamax_@plt>
mov    %eax,%ecx
mov    0x10(%rbp),%rax
mov    %ecx,0x4(%rax)
mov    0x10(%rbp),%rax
mov    0x4(%rax),%ecx
add    $0xffffffff,%ecx
mov    %ecx,0x4(%rax)
mov    0x10(%rbp),%rax
movl   $0x2,0x8(%rax)
movl   $0x0,-0x54(%rbp)
mov    -0x54(%rbp),%eax
mov    -0x10(%rbp),%rcx
cmp    (%rcx),%eax
jge    142a <slacon2_+0x2da>
movss  -0x40(%rbp),%xmm0
mov    -0x20(%rbp),%rax
movslq -0x54(%rbp),%rcx
movss  %xmm0,(%rax,%rcx,4)
mov    -0x54(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0x54(%rbp)
jmp    13fb <slacon2_+0x2ab>
movss  -0x44(%rbp),%xmm0
mov    -0x20(%rbp),%rax
mov    0x10(%rbp),%rcx
movslq 0x4(%rcx),%rcx
movss  %xmm0,(%rax,%rcx,4)
mov    -0x38(%rbp),%rax
movl   $0x1,(%rax)
mov    0x10(%rbp),%rax
movl   $0x3,(%rax)
movl   $0x0,-0x4(%rbp)
jmp    1930 <slacon2_+0x7e0>
mov    -0x10(%rbp),%rdi
mov    -0x20(%rbp),%rsi
mov    -0x18(%rbp),%rcx
lea    -0x3c(%rbp),%r8
mov    %r8,%rdx
call   1050 <scopy_@plt>
mov    -0x30(%rbp),%rax
movss  (%rax),%xmm0
movss  %xmm0,-0x50(%rbp)
mov    -0x10(%rbp),%rdi
mov    -0x18(%rbp),%rsi
lea    -0x3c(%rbp),%rdx
call   1030 <sasum_@plt>
mov    -0x30(%rbp),%rax
movss  %xmm0,(%rax)
movl   $0x0,-0x54(%rbp)
mov    -0x54(%rbp),%eax
mov    -0x10(%rbp),%rcx
cmp    (%rcx),%eax
jge    1611 <slacon2_+0x4c1>
mov    -0x20(%rbp),%rax
movslq -0x54(%rbp),%rcx
movss  (%rax,%rcx,4),%xmm0
xorps  %xmm1,%xmm1
ucomiss %xmm1,%xmm0
jb     14e1 <slacon2_+0x391>
movss  -0x44(%rbp),%xmm0
call   1040 <fabs@plt>
movss  %xmm0,-0x6c(%rbp)
jmp    14fd <slacon2_+0x3ad>
movss  -0x44(%rbp),%xmm0
call   1040 <fabs@plt>
movd   %xmm0,%eax
xor    $0x80000000,%eax
movd   %eax,%xmm0
movss  %xmm0,-0x6c(%rbp)
movss  -0x6c(%rbp),%xmm0
xorps  %xmm1,%xmm1
ucomiss %xmm1,%xmm0
jb     1579 <slacon2_+0x429>
mov    -0x20(%rbp),%rax
movslq -0x54(%rbp),%rcx
movss  (%rax,%rcx,4),%xmm0
xorps  %xmm1,%xmm1
ucomiss %xmm1,%xmm0
jb     153b <slacon2_+0x3eb>
movss  -0x44(%rbp),%xmm0
call   1040 <fabs@plt>
movss  %xmm0,-0x70(%rbp)
jmp    1557 <slacon2_+0x407>
movss  -0x44(%rbp),%xmm0
call   1040 <fabs@plt>
movd   %xmm0,%eax
xor    $0x80000000,%eax
movd   %eax,%xmm0
movss  %xmm0,-0x70(%rbp)
movss  -0x70(%rbp),%xmm0
cvtss2sd %xmm0,%xmm0
movsd  0xaa8(%rip),%xmm1
addsd  %xmm1,%xmm0
call   1070 <floor@plt>
mov    %eax,-0x74(%rbp)
jmp    15e5 <slacon2_+0x495>
mov    -0x20(%rbp),%rax
movslq -0x54(%rbp),%rcx
movss  (%rax,%rcx,4),%xmm0
xorps  %xmm1,%xmm1
ucomiss %xmm1,%xmm0
jb     15a6 <slacon2_+0x456>
movss  -0x44(%rbp),%xmm0
call   1040 <fabs@plt>
movss  %xmm0,-0x78(%rbp)
jmp    15c2 <slacon2_+0x472>
movss  -0x44(%rbp),%xmm0
call   1040 <fabs@plt>
movd   %xmm0,%eax
xor    $0x80000000,%eax
movd   %eax,%xmm0
movss  %xmm0,-0x78(%rbp)
movss  -0x78(%rbp),%xmm0
cvtss2sd %xmm0,%xmm1
movsd  0xa3d(%rip),%xmm0
subsd  %xmm1,%xmm0
call   1070 <floor@plt>
mov    %eax,%ecx
xor    %eax,%eax
sub    %ecx,%eax
mov    %eax,-0x74(%rbp)
mov    -0x74(%rbp),%eax
mov    -0x28(%rbp),%rcx
movslq -0x54(%rbp),%rdx
cmp    (%rcx,%rdx,4),%eax
je     15fe <slacon2_+0x4ae>
jmp    1616 <slacon2_+0x4c6>
jmp    1603 <slacon2_+0x4b3>
mov    -0x54(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0x54(%rbp)
jmp    14a5 <slacon2_+0x355>
jmp    17f4 <slacon2_+0x6a4>
mov    -0x30(%rbp),%rax
movss  (%rax),%xmm1
movss  -0x50(%rbp),%xmm0
ucomiss %xmm1,%xmm0
jb     1631 <slacon2_+0x4e1>
jmp    17f4 <slacon2_+0x6a4>
movl   $0x0,-0x54(%rbp)
mov    -0x54(%rbp),%eax
mov    -0x10(%rbp),%rcx
cmp    (%rcx),%eax
jge    172c <slacon2_+0x5dc>
mov    -0x20(%rbp),%rax
movslq -0x54(%rbp),%rcx
movss  (%rax,%rcx,4),%xmm0
xorps  %xmm1,%xmm1
ucomiss %xmm1,%xmm0
jb     1674 <slacon2_+0x524>
movss  -0x44(%rbp),%xmm0
call   1040 <fabs@plt>
movss  %xmm0,-0x7c(%rbp)
jmp    1690 <slacon2_+0x540>
movss  -0x44(%rbp),%xmm0
call   1040 <fabs@plt>
movd   %xmm0,%eax
xor    $0x80000000,%eax
movd   %eax,%xmm0
movss  %xmm0,-0x7c(%rbp)
movss  -0x7c(%rbp),%xmm0
mov    -0x20(%rbp),%rax
movslq -0x54(%rbp),%rcx
movss  %xmm0,(%rax,%rcx,4)
mov    -0x20(%rbp),%rax
movslq -0x54(%rbp),%rcx
movss  (%rax,%rcx,4),%xmm0
xorps  %xmm1,%xmm1
ucomiss %xmm1,%xmm0
jb     16e5 <slacon2_+0x595>
mov    -0x20(%rbp),%rax
movslq -0x54(%rbp),%rcx
movss  (%rax,%rcx,4),%xmm0
cvtss2sd %xmm0,%xmm0
movsd  0x93c(%rip),%xmm1
addsd  %xmm1,%xmm0
call   1070 <floor@plt>
mov    %eax,-0x80(%rbp)
jmp    1710 <slacon2_+0x5c0>
mov    -0x20(%rbp),%rax
movslq -0x54(%rbp),%rcx
movss  (%rax,%rcx,4),%xmm0
cvtss2sd %xmm0,%xmm1
movsd  0x912(%rip),%xmm0
subsd  %xmm1,%xmm0
call   1070 <floor@plt>
mov    %eax,%ecx
xor    %eax,%eax
sub    %ecx,%eax
mov    %eax,-0x80(%rbp)
mov    -0x80(%rbp),%edx
mov    -0x28(%rbp),%rax
movslq -0x54(%rbp),%rcx
mov    %edx,(%rax,%rcx,4)
mov    -0x54(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0x54(%rbp)
jmp    1638 <slacon2_+0x4e8>
mov    -0x38(%rbp),%rax
movl   $0x2,(%rax)
mov    0x10(%rbp),%rax
movl   $0x4,(%rax)
movl   $0x0,-0x4(%rbp)
jmp    1930 <slacon2_+0x7e0>
mov    0x10(%rbp),%rax
mov    0x4(%rax),%eax
mov    %eax,-0x48(%rbp)
mov    -0x10(%rbp),%rdi
mov    -0x20(%rbp),%rsi
lea    -0x3c(%rbp),%rdx
call   1060 <isamax_@plt>
mov    %eax,%ecx
mov    0x10(%rbp),%rax
mov    %ecx,0x4(%rax)
mov    0x10(%rbp),%rax
mov    0x4(%rax),%ecx
sub    $0x1,%ecx
mov    0x10(%rbp),%rax
mov    %ecx,0x4(%rax)
mov    -0x20(%rbp),%rax
movslq -0x48(%rbp),%rcx
movss  (%rax,%rcx,4),%xmm0
movss  %xmm0,-0x84(%rbp)
ff
mov    -0x20(%rbp),%rax
mov    0x10(%rbp),%rcx
movslq 0x4(%rcx),%rcx
movss  (%rax,%rcx,4),%xmm0
call   1040 <fabs@plt>
movaps %xmm0,%xmm1
movss  -0x84(%rbp),%xmm0
ff
ucomiss %xmm1,%xmm0
jne    17cb <slacon2_+0x67b>
jp     17cb <slacon2_+0x67b>
jmp    17ef <slacon2_+0x69f>
mov    0x10(%rbp),%rax
cmpl   $0x5,0x8(%rax)
jge    17ef <slacon2_+0x69f>
mov    0x10(%rbp),%rax
mov    0x8(%rax),%ecx
add    $0x1,%ecx
mov    0x10(%rbp),%rax
mov    %ecx,0x8(%rax)
jmp    13f4 <slacon2_+0x2a4>
jmp    17f4 <slacon2_+0x6a4>
movss  0x804(%rip),%xmm0
movss  %xmm0,-0x4c(%rbp)
movl   $0x1,-0x54(%rbp)
mov    -0x54(%rbp),%eax
mov    -0x10(%rbp),%rcx
cmp    (%rcx),%eax
jg     188a <slacon2_+0x73a>
movss  -0x4c(%rbp),%xmm0
cvtss2sd %xmm0,%xmm0
mov    -0x54(%rbp),%eax
sub    $0x1,%eax
cvtsi2ss %eax,%xmm1
mov    -0x10(%rbp),%rax
mov    (%rax),%eax
sub    $0x1,%eax
cvtsi2ss %eax,%xmm2
divss  %xmm2,%xmm1
cvtss2sd %xmm1,%xmm1
movsd  0x7d1(%rip),%xmm2
addsd  %xmm2,%xmm1
mulsd  %xmm1,%xmm0
cvtsd2ss %xmm0,%xmm0
mov    -0x20(%rbp),%rax
mov    -0x54(%rbp),%ecx
sub    $0x1,%ecx
movslq %ecx,%rcx
movss  %xmm0,(%rax,%rcx,4)
movss  -0x4c(%rbp),%xmm0
movd   %xmm0,%eax
xor    $0x80000000,%eax
movd   %eax,%xmm0
movss  %xmm0,-0x4c(%rbp)
mov    -0x54(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0x54(%rbp)
jmp    1808 <slacon2_+0x6b8>
mov    -0x38(%rbp),%rax
movl   $0x1,(%rax)
mov    0x10(%rbp),%rax
movl   $0x5,(%rax)
movl   $0x0,-0x4(%rbp)
jmp    1930 <slacon2_+0x7e0>
mov    -0x10(%rbp),%rdi
mov    -0x20(%rbp),%rsi
lea    -0x3c(%rbp),%rdx
call   1030 <sasum_@plt>
mov    -0x10(%rbp),%rax
imul   $0x3,(%rax),%eax
cvtsi2ss %eax,%xmm1
divss  %xmm1,%xmm0
cvtss2sd %xmm0,%xmm0
movsd  0x732(%rip),%xmm1
mulsd  %xmm1,%xmm0
cvtsd2ss %xmm0,%xmm0
movss  %xmm0,-0x58(%rbp)
movss  -0x58(%rbp),%xmm0
mov    -0x30(%rbp),%rax
ucomiss (%rax),%xmm0
jbe    191a <slacon2_+0x7ca>
mov    -0x10(%rbp),%rdi
mov    -0x20(%rbp),%rsi
mov    -0x18(%rbp),%rcx
lea    -0x3c(%rbp),%r8
mov    %r8,%rdx
call   1050 <scopy_@plt>
movss  -0x58(%rbp),%xmm0
mov    -0x30(%rbp),%rax
movss  %xmm0,(%rax)
jmp    191f <slacon2_+0x7cf>
mov    -0x38(%rbp),%rax
movl   $0x0,(%rax)
movl   $0x0,-0x4(%rbp)
mov    -0x4(%rbp),%eax
add    $0x90,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<slacon2_>:
push   %rbp
push   %r15
push   %r14
push   %r13
push   %r12
push   %rbx
sub    $0x38,%rsp
mov    %r9,%r14
mov    %r8,%r13
mov    %rdx,%rbx
mov    %rdi,%r15
mov    0x70(%rsp),%r8
movl   $0x1,0xc(%rsp)
cmpl   $0x0,(%r9)
je     11c7 <slacon2_+0x77>
mov    %rcx,%r12
mov    %rsi,%rbp
mov    (%r8),%eax
add    $0xfffffffe,%eax
cmp    $0x3,%eax
ja     11f2 <slacon2_+0xa2>
lea    0xeb3(%rip),%rcx
movslq (%rcx,%rax,4),%rax
add    %rcx,%rax
jmp    *%rax
lea    0xc(%rsp),%rdx
mov    %r15,%rdi
mov    %rbx,%rsi
call   1060 <isamax_@plt>
mov    0x70(%rsp),%rsi
mov    %eax,%ebp
add    $0xffffffff,%ebp
mov    %ebp,0x4(%rsi)
movl   $0x2,0x8(%rsi)
jmp    1313 <slacon2_+0x1c3>
mov    (%r15),%eax
test   %eax,%eax
jle    154e <slacon2_+0x3fe>
cvtsi2ss %eax,%xmm1
movss  0xe62(%rip),%xmm0
divss  %xmm1,%xmm0
cmp    $0x8,%eax
jae    13a4 <slacon2_+0x254>
xor    %ecx,%ecx
jmp    1540 <slacon2_+0x3f0>
cmpl   $0x1,(%r15)
jne    13d5 <slacon2_+0x285>
movss  (%rbx),%xmm0
movss  %xmm0,0x0(%rbp)
andps  0xdf4(%rip),%xmm0
jmp    1392 <slacon2_+0x242>
mov    %r14,0x10(%rsp)
lea    0xc(%rsp),%r14
mov    %r15,%rdi
mov    %rbx,%rsi
mov    %r14,%rdx
mov    %rbp,%rcx
mov    %r14,%r8
call   1050 <scopy_@plt>
movss  0x0(%r13),%xmm0
movss  %xmm0,0x1c(%rsp)
mov    %r15,%rdi
mov    %rbp,%rsi
mov    %r14,%rdx
mov    0x10(%rsp),%r14
call   1040 <sasum_@plt>
mov    0x70(%rsp),%rsi
movss  %xmm0,0x0(%r13)
cmpl   $0x0,(%r15)
jle    1653 <slacon2_+0x503>
xor    %ebp,%ebp
cs nopw 0x0(%rax,%rax,1)
nop
movss  (%rbx,%rbp,4),%xmm0
movss  %xmm0,0x20(%rsp)
movsd  0xd9d(%rip),%xmm0
call   1070 <floor@plt>
mov    %eax,%ecx
neg    %ecx
movss  0x20(%rsp),%xmm0
ucomiss 0xdab(%rip),%xmm0
cmovae %eax,%ecx
cmp    (%r12,%rbp,4),%ecx
jne    1561 <slacon2_+0x411>
add    $0x1,%rbp
movslq (%r15),%rax
cmp    %rax,%rbp
jl     1270 <slacon2_+0x120>
mov    0x70(%rsp),%rsi
jmp    15f1 <slacon2_+0x4a1>
mov    %r14,%r12
movslq 0x4(%r8),%r14
lea    0xc(%rsp),%rdx
mov    %r15,%rdi
mov    %rbx,%rsi
call   1060 <isamax_@plt>
mov    0x70(%rsp),%rsi
lea    -0x1(%rax),%ebp
mov    %ebp,0x4(%rsi)
movss  (%rbx,%r14,4),%xmm0
mov    %r12,%r14
cltq
movss  -0x4(%rbx,%rax,4),%xmm1
andps  0xd0a(%rip),%xmm1
ucomiss %xmm1,%xmm0
jne    1301 <slacon2_+0x1b1>
jnp    15ee <slacon2_+0x49e>
mov    0x8(%rsi),%eax
cmp    $0x4,%eax
jg     15ee <slacon2_+0x49e>
add    $0x1,%eax
mov    %eax,0x8(%rsi)
mov    (%r15),%edx
test   %edx,%edx
jle    132d <slacon2_+0x1dd>
shl    $0x2,%rdx
mov    %rbx,%rdi
xor    %esi,%esi
call   1030 <memset@plt>
mov    0x70(%rsp),%rsi
movslq %ebp,%rax
movl   $0x3f800000,(%rbx,%rax,4)
movl   $0x1,(%r14)
movl   $0x3,(%rsi)
jmp    1660 <slacon2_+0x510>
lea    0xc(%rsp),%rdx
mov    %r15,%rdi
mov    %rbx,%rsi
call   1040 <sasum_@plt>
mov    (%r15),%eax
lea    (%rax,%rax,2),%eax
cvtsi2ss %eax,%xmm1
divss  %xmm1,%xmm0
addss  %xmm0,%xmm0
ucomiss 0x0(%r13),%xmm0
jbe    1398 <slacon2_+0x248>
lea    0xc(%rsp),%rdx
mov    %r15,%rdi
mov    %rbx,%rsi
mov    %rbp,%rcx
mov    %rdx,%r8
movaps %xmm0,0x20(%rsp)
call   1050 <scopy_@plt>
movaps 0x20(%rsp),%xmm0
movss  %xmm0,0x0(%r13)
movl   $0x0,(%r14)
jmp    1660 <slacon2_+0x510>
mov    %eax,%ecx
and    $0xfffffff8,%ecx
movaps %xmm0,%xmm1
shufps $0x0,%xmm0,%xmm1
lea    -0x8(%rcx),%rdi
mov    %rdi,%rsi
shr    $0x3,%rsi
add    $0x1,%rsi
mov    %esi,%edx
and    $0x7,%edx
cmp    $0x38,%rdi
jae    1483 <slacon2_+0x333>
xor    %edi,%edi
jmp    1501 <slacon2_+0x3b1>
mov    %r14,0x10(%rsp)
lea    0xc(%rsp),%rdx
mov    %r15,%rdi
mov    %rbx,%rsi
call   1040 <sasum_@plt>
movss  %xmm0,0x0(%r13)
cmpl   $0x0,(%r15)
jle    1468 <slacon2_+0x318>
xor    %ebp,%ebp
lea    0xc29(%rip),%r14
jmp    1437 <slacon2_+0x2e7>
cs nopw 0x0(%rax,%rax,1)
nopl   0x0(%rax,%rax,1)
movsd  0xc18(%rip),%xmm1
subsd  %xmm0,%xmm1
movapd %xmm1,%xmm0
call   1070 <floor@plt>
neg    %eax
mov    %eax,(%r12,%rbp,4)
add    $0x1,%rbp
movslq (%r15),%rax
cmp    %rax,%rbp
jge    1468 <slacon2_+0x318>
movss  (%rbx,%rbp,4),%xmm0
xor    %eax,%eax
ucomiss 0xbff(%rip),%xmm0
setb   %al
movss  (%r14,%rax,4),%xmm0
movss  %xmm0,(%rbx,%rbp,4)
cvtss2sd %xmm0,%xmm0
jb     1410 <slacon2_+0x2c0>
addsd  0xbcf(%rip),%xmm0
call   1070 <floor@plt>
jmp    1427 <slacon2_+0x2d7>
mov    0x10(%rsp),%rax
movl   $0x2,(%rax)
mov    0x70(%rsp),%rax
movl   $0x2,(%rax)
jmp    1660 <slacon2_+0x510>
and    $0xfffffffffffffff8,%rsi
xor    %edi,%edi
nopl   0x0(%rax)
movups %xmm1,(%rbx,%rdi,4)
movups %xmm1,0x10(%rbx,%rdi,4)
movups %xmm1,0x20(%rbx,%rdi,4)
movups %xmm1,0x30(%rbx,%rdi,4)
movups %xmm1,0x40(%rbx,%rdi,4)
movups %xmm1,0x50(%rbx,%rdi,4)
movups %xmm1,0x60(%rbx,%rdi,4)
movups %xmm1,0x70(%rbx,%rdi,4)
movups %xmm1,0x80(%rbx,%rdi,4)
movups %xmm1,0x90(%rbx,%rdi,4)
movups %xmm1,0xa0(%rbx,%rdi,4)
movups %xmm1,0xb0(%rbx,%rdi,4)
movups %xmm1,0xc0(%rbx,%rdi,4)
movups %xmm1,0xd0(%rbx,%rdi,4)
movups %xmm1,0xe0(%rbx,%rdi,4)
movups %xmm1,0xf0(%rbx,%rdi,4)
add    $0x40,%rdi
add    $0xfffffffffffffff8,%rsi
jne    1490 <slacon2_+0x340>
test   %rdx,%rdx
je     1532 <slacon2_+0x3e2>
lea    (%rbx,%rdi,4),%rsi
add    $0x10,%rsi
shl    $0x5,%rdx
xor    %edi,%edi
cs nopw 0x0(%rax,%rax,1)
xchg   %ax,%ax
movups %xmm1,-0x10(%rsi,%rdi,1)
movups %xmm1,(%rsi,%rdi,1)
add    $0x20,%rdi
cmp    %rdi,%rdx
jne    1520 <slacon2_+0x3d0>
cmp    %rax,%rcx
je     154e <slacon2_+0x3fe>
nopw   0x0(%rax,%rax,1)
movss  %xmm0,(%rbx,%rcx,4)
add    $0x1,%rcx
cmp    %rcx,%rax
jne    1540 <slacon2_+0x3f0>
movl   $0x1,(%r14)
movl   $0x1,(%r8)
jmp    1660 <slacon2_+0x510>
movss  0x1c(%rsp),%xmm0
ucomiss 0x0(%r13),%xmm0
mov    0x70(%rsp),%rsi
jae    15ee <slacon2_+0x49e>
cmpl   $0x0,(%r15)
jle    1671 <slacon2_+0x521>
xor    %ebp,%ebp
lea    0xaa2(%rip),%r14
jmp    15b8 <slacon2_+0x468>
movsd  0xaa0(%rip),%xmm1
subsd  %xmm0,%xmm1
movapd %xmm1,%xmm0
call   1070 <floor@plt>
mov    0x70(%rsp),%rsi
neg    %eax
mov    %eax,(%r12,%rbp,4)
add    $0x1,%rbp
movslq (%r15),%rax
cmp    %rax,%rbp
jge    1671 <slacon2_+0x521>
movss  (%rbx,%rbp,4),%xmm0
xor    %eax,%eax
ucomiss 0xa7e(%rip),%xmm0
setb   %al
movss  (%r14,%rax,4),%xmm0
movss  %xmm0,(%rbx,%rbp,4)
cvtss2sd %xmm0,%xmm0
jb     1588 <slacon2_+0x438>
addsd  0xa4e(%rip),%xmm0
call   1070 <floor@plt>
mov    0x70(%rsp),%rsi
jmp    15a4 <slacon2_+0x454>
mov    (%r15),%eax
test   %eax,%eax
jle    1653 <slacon2_+0x503>
lea    -0x1(%rax),%ecx
xorps  %xmm0,%xmm0
cvtsi2ss %ecx,%xmm0
mov    %eax,%eax
movss  0xa37(%rip),%xmm1
xor    %ecx,%ecx
movsd  0xa25(%rip),%xmm2
movaps 0x9f6(%rip),%xmm3
nopw   0x0(%rax,%rax,1)
xorps  %xmm4,%xmm4
cvtsi2ss %ecx,%xmm4
xorps  %xmm5,%xmm5
cvtss2sd %xmm1,%xmm5
divss  %xmm0,%xmm4
cvtss2sd %xmm4,%xmm4
addsd  %xmm2,%xmm4
mulsd  %xmm5,%xmm4
cvtsd2ss %xmm4,%xmm4
movss  %xmm4,(%rbx,%rcx,4)
xorps  %xmm3,%xmm1
add    $0x1,%rcx
cmp    %rcx,%rax
jne    1620 <slacon2_+0x4d0>
movl   $0x1,(%r14)
movl   $0x5,(%rsi)
xor    %eax,%eax
add    $0x38,%rsp
pop    %rbx
pop    %r12
pop    %r13
pop    %r14
pop    %r15
pop    %rbp
ret
mov    0x10(%rsp),%rax
movl   $0x2,(%rax)
movl   $0x4,(%rsi)
jmp    1660 <slacon2_+0x510>

LLVM IR (-O0):
define i32 @slacon2_(i32* %0, float* %1, float* %2, i32* %3, float* %4, i32* %5, i32* %6) {
%8 = alloca i32
%9 = alloca i32*
%10 = alloca float*
%11 = alloca float*
%12 = alloca i32*
%13 = alloca float*
%14 = alloca i32*
%15 = alloca i32*
%16 = alloca i32
%17 = alloca float
%18 = alloca float
%19 = alloca i32
%20 = alloca float
%21 = alloca float
%22 = alloca i32
%23 = alloca float
store i32* %0, i32** %9
store float* %1, float** %10
store float* %2, float** %11
store i32* %3, i32** %12
store float* %4, float** %13
store i32* %5, i32** %14
store i32* %6, i32** %15
store i32 1, i32* %16
store float 0.000000e+00, float* %17
store float 1.000000e+00, float* %18
%24 = load i32*, i32** %14
%25 = load i32, i32* %24
%26 = icmp eq i32 %25, 0
br i1 %26, label %27, label %51
27: ; preds = %7
store i32 0, i32* %22
br label %28
28: ; preds = %44, %27
%29 = load i32, i32* %22
%30 = load i32*, i32** %9
%31 = load i32, i32* %30
%32 = icmp slt i32 %29, %31
br i1 %32, label %33, label %47
33: ; preds = %28
%34 = load i32*, i32** %9
%35 = load i32, i32* %34
%36 = sitofp i32 %35 to float
%37 = fpext float %36 to double
%38 = fdiv double 1.000000e+00, %37
%39 = fptrunc double %38 to float
%40 = load float*, float** %11
%41 = load i32, i32* %22
%42 = sext i32 %41 to i64
%43 = getelementptr inbounds float, float* %40, i64 %42
store float %39, float* %43
br label %44
44: ; preds = %33
%45 = load i32, i32* %22
%46 = add nsw i32 %45, 1
store i32 %46, i32* %22
br label %28
47: ; preds = %28
%48 = load i32*, i32** %14
store i32 1, i32* %48
%49 = load i32*, i32** %15
%50 = getelementptr inbounds i32, i32* %49, i64 0
store i32 1, i32* %50
store i32 0, i32* %8
br label %445
51: ; preds = %7
%52 = load i32*, i32** %15
%53 = getelementptr inbounds i32, i32* %52, i64 0
%54 = load i32, i32* %53
switch i32 %54, label %60 [
i32 1, label %55
i32 2, label %56
i32 3, label %57
i32 4, label %58
i32 5, label %59
]
55: ; preds = %51
br label %61
56: ; preds = %51
br label %144
57: ; preds = %51
br label %183
58: ; preds = %51
br label %339
59: ; preds = %51
br label %417
60: ; preds = %51
br label %61
61: ; preds = %60, %55
%62 = load i32*, i32** %9
%63 = load i32, i32* %62
%64 = icmp eq i32 %63, 1
br i1 %64, label %65, label %76
65: ; preds = %61
%66 = load float*, float** %11
%67 = getelementptr inbounds float, float* %66, i64 0
%68 = load float, float* %67
%69 = load float*, float** %10
%70 = getelementptr inbounds float, float* %69, i64 0
store float %68, float* %70
%71 = load float*, float** %10
%72 = getelementptr inbounds float, float* %71, i64 0
%73 = load float, float* %72
%74 = call float @fabs(float %73)
%75 = load float*, float** %13
store float %74, float* %75
br label %443
76: ; preds = %61
%77 = load i32*, i32** %9
%78 = load float*, float** %11
%79 = call float @sasum_(i32* %77, float* %78, i32* %16)
%80 = load float*, float** %13
store float %79, float* %80
store i32 0, i32* %22
br label %81
81: ; preds = %137, %76
%82 = load i32, i32* %22
%83 = load i32*, i32** %9
%84 = load i32, i32* %83
%85 = icmp slt i32 %82, %84
br i1 %85, label %86, label %140
86: ; preds = %81
%87 = load float*, float** %11
%88 = load i32, i32* %22
%89 = sext i32 %88 to i64
%90 = getelementptr inbounds float, float* %87, i64 %89
%91 = load float, float* %90
%92 = fcmp oge float %91, 0.000000e+00
br i1 %92, label %93, label %96
93: ; preds = %86
%94 = load float, float* %18
%95 = call float @fabs(float %94)
br label %100
96: ; preds = %86
%97 = load float, float* %18
%98 = call float @fabs(float %97)
%99 = fneg float %98
br label %100
100: ; preds = %96, %93
%101 = phi float [ %95, %93 ], [ %99, %96 ]
%102 = load float*, float** %11
%103 = load i32, i32* %22
%104 = sext i32 %103 to i64
%105 = getelementptr inbounds float, float* %102, i64 %104
store float %101, float* %105
%106 = load float*, float** %11
%107 = load i32, i32* %22
%108 = sext i32 %107 to i64
%109 = getelementptr inbounds float, float* %106, i64 %108
%110 = load float, float* %109
%111 = fcmp oge float %110, 0.000000e+00
br i1 %111, label %112, label %121
112: ; preds = %100
%113 = load float*, float** %11
%114 = load i32, i32* %22
%115 = sext i32 %114 to i64
%116 = getelementptr inbounds float, float* %113, i64 %115
%117 = load float, float* %116
%118 = fpext float %117 to double
%119 = fadd double %118, 5.000000e-01
%120 = call i32 @floor(double %119)
br label %131
121: ; preds = %100
%122 = load float*, float** %11
%123 = load i32, i32* %22
%124 = sext i32 %123 to i64
%125 = getelementptr inbounds float, float* %122, i64 %124
%126 = load float, float* %125
%127 = fpext float %126 to double
%128 = fsub double 5.000000e-01, %127
%129 = call i32 @floor(double %128)
%130 = sub nsw i32 0, %129
br label %131
131: ; preds = %121, %112
%132 = phi i32 [ %120, %112 ], [ %130, %121 ]
%133 = load i32*, i32** %12
%134 = load i32, i32* %22
%135 = sext i32 %134 to i64
%136 = getelementptr inbounds i32, i32* %133, i64 %135
store i32 %132, i32* %136
br label %137
137: ; preds = %131
%138 = load i32, i32* %22
%139 = add nsw i32 %138, 1
store i32 %139, i32* %22
br label %81
140: ; preds = %81
%141 = load i32*, i32** %14
store i32 2, i32* %141
%142 = load i32*, i32** %15
%143 = getelementptr inbounds i32, i32* %142, i64 0
store i32 2, i32* %143
store i32 0, i32* %8
br label %445
144: ; preds = %56
%145 = load i32*, i32** %9
%146 = load float*, float** %11
%147 = getelementptr inbounds float, float* %146, i64 0
%148 = call i32 @isamax_(i32* %145, float* %147, i32* %16)
%149 = load i32*, i32** %15
%150 = getelementptr inbounds i32, i32* %149, i64 1
store i32 %148, i32* %150
%151 = load i32*, i32** %15
%152 = getelementptr inbounds i32, i32* %151, i64 1
%153 = load i32, i32* %152
%154 = add nsw i32 %153, -1
store i32 %154, i32* %152
%155 = load i32*, i32** %15
%156 = getelementptr inbounds i32, i32* %155, i64 2
store i32 2, i32* %156
br label %157
157: ; preds = %374, %144
store i32 0, i32* %22
br label %158
158: ; preds = %169, %157
%159 = load i32, i32* %22
%160 = load i32*, i32** %9
%161 = load i32, i32* %160
%162 = icmp slt i32 %159, %161
br i1 %162, label %163, label %172
163: ; preds = %158
%164 = load float, float* %17
%165 = load float*, float** %11
%166 = load i32, i32* %22
%167 = sext i32 %166 to i64
%168 = getelementptr inbounds float, float* %165, i64 %167
store float %164, float* %168
br label %169
169: ; preds = %163
%170 = load i32, i32* %22
%171 = add nsw i32 %170, 1
store i32 %171, i32* %22
br label %158
172: ; preds = %158
%173 = load float, float* %18
%174 = load float*, float** %11
%175 = load i32*, i32** %15
%176 = getelementptr inbounds i32, i32* %175, i64 1
%177 = load i32, i32* %176
%178 = sext i32 %177 to i64
%179 = getelementptr inbounds float, float* %174, i64 %178
store float %173, float* %179
%180 = load i32*, i32** %14
store i32 1, i32* %180
%181 = load i32*, i32** %15
%182 = getelementptr inbounds i32, i32* %181, i64 0
store i32 3, i32* %182
store i32 0, i32* %8
br label %445
183: ; preds = %57
%184 = load i32*, i32** %9
%185 = load float*, float** %11
%186 = load float*, float** %10
%187 = call i32 @scopy_(i32* %184, float* %185, i32* %16, float* %186, i32* %16)
%188 = load float*, float** %13
%189 = load float, float* %188
store float %189, float* %21
%190 = load i32*, i32** %9
%191 = load float*, float** %10
%192 = call float @sasum_(i32* %190, float* %191, i32* %16)
%193 = load float*, float** %13
store float %192, float* %193
store i32 0, i32* %22
br label %194
194: ; preds = %265, %183
%195 = load i32, i32* %22
%196 = load i32*, i32** %9
%197 = load i32, i32* %196
%198 = icmp slt i32 %195, %197
br i1 %198, label %199, label %268
199: ; preds = %194
%200 = load float*, float** %11
%201 = load i32, i32* %22
%202 = sext i32 %201 to i64
%203 = getelementptr inbounds float, float* %200, i64 %202
%204 = load float, float* %203
%205 = fcmp oge float %204, 0.000000e+00
br i1 %205, label %206, label %209
206: ; preds = %199
%207 = load float, float* %18
%208 = call float @fabs(float %207)
br label %213
209: ; preds = %199
%210 = load float, float* %18
%211 = call float @fabs(float %210)
%212 = fneg float %211
br label %213
213: ; preds = %209, %206
%214 = phi float [ %208, %206 ], [ %212, %209 ]
%215 = fcmp oge float %214, 0.000000e+00
br i1 %215, label %216, label %235
216: ; preds = %213
%217 = load float*, float** %11
%218 = load i32, i32* %22
%219 = sext i32 %218 to i64
%220 = getelementptr inbounds float, float* %217, i64 %219
%221 = load float, float* %220
%222 = fcmp oge float %221, 0.000000e+00
br i1 %222, label %223, label %226
223: ; preds = %216
%224 = load float, float* %18
%225 = call float @fabs(float %224)
br label %230
226: ; preds = %216
%227 = load float, float* %18
%228 = call float @fabs(float %227)
%229 = fneg float %228
br label %230
230: ; preds = %226, %223
%231 = phi float [ %225, %223 ], [ %229, %226 ]
%232 = fpext float %231 to double
%233 = fadd double %232, 5.000000e-01
%234 = call i32 @floor(double %233)
br label %255
235: ; preds = %213
%236 = load float*, float** %11
%237 = load i32, i32* %22
%238 = sext i32 %237 to i64
%239 = getelementptr inbounds float, float* %236, i64 %238
%240 = load float, float* %239
%241 = fcmp oge float %240, 0.000000e+00
br i1 %241, label %242, label %245
242: ; preds = %235
%243 = load float, float* %18
%244 = call float @fabs(float %243)
br label %249
245: ; preds = %235
%246 = load float, float* %18
%247 = call float @fabs(float %246)
%248 = fneg float %247
br label %249
249: ; preds = %245, %242
%250 = phi float [ %244, %242 ], [ %248, %245 ]
%251 = fpext float %250 to double
%252 = fsub double 5.000000e-01, %251
%253 = call i32 @floor(double %252)
%254 = sub nsw i32 0, %253
br label %255
255: ; preds = %249, %230
%256 = phi i32 [ %234, %230 ], [ %254, %249 ]
%257 = load i32*, i32** %12
%258 = load i32, i32* %22
%259 = sext i32 %258 to i64
%260 = getelementptr inbounds i32, i32* %257, i64 %259
%261 = load i32, i32* %260
%262 = icmp ne i32 %256, %261
br i1 %262, label %263, label %264
263: ; preds = %255
br label %269
264: ; preds = %255
br label %265
265: ; preds = %264
%266 = load i32, i32* %22
%267 = add nsw i32 %266, 1
store i32 %267, i32* %22
br label %194
268: ; preds = %194
br label %382
269: ; preds = %263
%270 = load float*, float** %13
%271 = load float, float* %270
%272 = load float, float* %21
%273 = fcmp ole float %271, %272
br i1 %273, label %274, label %275
274: ; preds = %269
br label %382
275: ; preds = %269
store i32 0, i32* %22
br label %276
276: ; preds = %332, %275
%277 = load i32, i32* %22
%278 = load i32*, i32** %9
%279 = load i32, i32* %278
%280 = icmp slt i32 %277, %279
br i1 %280, label %281, label %335
281: ; preds = %276
%282 = load float*, float** %11
%283 = load i32, i32* %22
%284 = sext i32 %283 to i64
%285 = getelementptr inbounds float, float* %282, i64 %284
%286 = load float, float* %285
%287 = fcmp oge float %286, 0.000000e+00
br i1 %287, label %288, label %291
288: ; preds = %281
%289 = load float, float* %18
%290 = call float @fabs(float %289)
br label %295
291: ; preds = %281
%292 = load float, float* %18
%293 = call float @fabs(float %292)
%294 = fneg float %293
br label %295
295: ; preds = %291, %288
%296 = phi float [ %290, %288 ], [ %294, %291 ]
%297 = load float*, float** %11
%298 = load i32, i32* %22
%299 = sext i32 %298 to i64
%300 = getelementptr inbounds float, float* %297, i64 %299
store float %296, float* %300
%301 = load float*, float** %11
%302 = load i32, i32* %22
%303 = sext i32 %302 to i64
%304 = getelementptr inbounds float, float* %301, i64 %303
%305 = load float, float* %304
%306 = fcmp oge float %305, 0.000000e+00
br i1 %306, label %307, label %316
307: ; preds = %295
%308 = load float*, float** %11
%309 = load i32, i32* %22
%310 = sext i32 %309 to i64
%311 = getelementptr inbounds float, float* %308, i64 %310
%312 = load float, float* %311
%313 = fpext float %312 to double
%314 = fadd double %313, 5.000000e-01
%315 = call i32 @floor(double %314)
br label %326
316: ; preds = %295
%317 = load float*, float** %11
%318 = load i32, i32* %22
%319 = sext i32 %318 to i64
%320 = getelementptr inbounds float, float* %317, i64 %319
%321 = load float, float* %320
%322 = fpext float %321 to double
%323 = fsub double 5.000000e-01, %322
%324 = call i32 @floor(double %323)
%325 = sub nsw i32 0, %324
br label %326
326: ; preds = %316, %307
%327 = phi i32 [ %315, %307 ], [ %325, %316 ]
%328 = load i32*, i32** %12
%329 = load i32, i32* %22
%330 = sext i32 %329 to i64
%331 = getelementptr inbounds i32, i32* %328, i64 %330
store i32 %327, i32* %331
br label %332
332: ; preds = %326
%333 = load i32, i32* %22
%334 = add nsw i32 %333, 1
store i32 %334, i32* %22
br label %276
335: ; preds = %276
%336 = load i32*, i32** %14
store i32 2, i32* %336
%337 = load i32*, i32** %15
%338 = getelementptr inbounds i32, i32* %337, i64 0
store i32 4, i32* %338
store i32 0, i32* %8
br label %445
339: ; preds = %58
%340 = load i32*, i32** %15
%341 = getelementptr inbounds i32, i32* %340, i64 1
%342 = load i32, i32* %341
store i32 %342, i32* %19
%343 = load i32*, i32** %9
%344 = load float*, float** %11
%345 = getelementptr inbounds float, float* %344, i64 0
%346 = call i32 @isamax_(i32* %343, float* %345, i32* %16)
%347 = load i32*, i32** %15
%348 = getelementptr inbounds i32, i32* %347, i64 1
store i32 %346, i32* %348
%349 = load i32*, i32** %15
%350 = getelementptr inbounds i32, i32* %349, i64 1
%351 = load i32, i32* %350
%352 = sub nsw i32 %351, 1
%353 = load i32*, i32** %15
%354 = getelementptr inbounds i32, i32* %353, i64 1
store i32 %352, i32* %354
%355 = load float*, float** %11
%356 = load i32, i32* %19
%357 = sext i32 %356 to i64
%358 = getelementptr inbounds float, float* %355, i64 %357
%359 = load float, float* %358
%360 = load float*, float** %11
%361 = load i32*, i32** %15
%362 = getelementptr inbounds i32, i32* %361, i64 1
%363 = load i32, i32* %362
%364 = sext i32 %363 to i64
%365 = getelementptr inbounds float, float* %360, i64 %364
%366 = load float, float* %365
%367 = call float @fabs(float %366)
%368 = fcmp une float %359, %367
br i1 %368, label %369, label %381
369: ; preds = %339
%370 = load i32*, i32** %15
%371 = getelementptr inbounds i32, i32* %370, i64 2
%372 = load i32, i32* %371
%373 = icmp slt i32 %372, 5
br i1 %373, label %374, label %381
374: ; preds = %369
%375 = load i32*, i32** %15
%376 = getelementptr inbounds i32, i32* %375, i64 2
%377 = load i32, i32* %376
%378 = add nsw i32 %377, 1
%379 = load i32*, i32** %15
%380 = getelementptr inbounds i32, i32* %379, i64 2
store i32 %378, i32* %380
br label %157
381: ; preds = %369, %339
br label %382
382: ; preds = %381, %274, %268
store float 1.000000e+00, float* %20
store i32 1, i32* %22
br label %383
383: ; preds = %410, %382
%384 = load i32, i32* %22
%385 = load i32*, i32** %9
%386 = load i32, i32* %385
%387 = icmp sle i32 %384, %386
br i1 %387, label %388, label %413
388: ; preds = %383
%389 = load float, float* %20
%390 = fpext float %389 to double
%391 = load i32, i32* %22
%392 = sub nsw i32 %391, 1
%393 = sitofp i32 %392 to float
%394 = load i32*, i32** %9
%395 = load i32, i32* %394
%396 = sub nsw i32 %395, 1
%397 = sitofp i32 %396 to float
%398 = fdiv float %393, %397
%399 = fpext float %398 to double
%400 = fadd double %399, 1.000000e+00
%401 = fmul double %390, %400
%402 = fptrunc double %401 to float
%403 = load float*, float** %11
%404 = load i32, i32* %22
%405 = sub nsw i32 %404, 1
%406 = sext i32 %405 to i64
%407 = getelementptr inbounds float, float* %403, i64 %406
store float %402, float* %407
%408 = load float, float* %20
%409 = fneg float %408
store float %409, float* %20
br label %410
410: ; preds = %388
%411 = load i32, i32* %22
%412 = add nsw i32 %411, 1
store i32 %412, i32* %22
br label %383
413: ; preds = %383
%414 = load i32*, i32** %14
store i32 1, i32* %414
%415 = load i32*, i32** %15
%416 = getelementptr inbounds i32, i32* %415, i64 0
store i32 5, i32* %416
store i32 0, i32* %8
br label %445
417: ; preds = %59
%418 = load i32*, i32** %9
%419 = load float*, float** %11
%420 = call float @sasum_(i32* %418, float* %419, i32* %16)
%421 = load i32*, i32** %9
%422 = load i32, i32* %421
%423 = mul nsw i32 %422, 3
%424 = sitofp i32 %423 to float
%425 = fdiv float %420, %424
%426 = fpext float %425 to double
%427 = fmul double %426, 2.000000e+00
%428 = fptrunc double %427 to float
store float %428, float* %23
%429 = load float, float* %23
%430 = load float*, float** %13
%431 = load float, float* %430
%432 = fcmp ogt float %429, %431
br i1 %432, label %433, label %442
433: ; preds = %417
%434 = load i32*, i32** %9
%435 = load float*, float** %11
%436 = getelementptr inbounds float, float* %435, i64 0
%437 = load float*, float** %10
%438 = getelementptr inbounds float, float* %437, i64 0
%439 = call i32 @scopy_(i32* %434, float* %436, i32* %16, float* %438, i32* %16)
%440 = load float, float* %23
%441 = load float*, float** %13
store float %440, float* %441
br label %442
442: ; preds = %433, %417
br label %443
443: ; preds = %442, %65
%444 = load i32*, i32** %14
store i32 0, i32* %444
store i32 0, i32* %8
br label %445
445: ; preds = %443, %413, %335, %172, %140, %47
%446 = load i32, i32* %8
ret i32 %446
}

LLVM IR (-O2):
define i32 @slacon2_(i32* %0, float* %1, float* %2, i32* nocapture %3, float* nocapture %4, i32* nocapture %5, i32* nocapture %6) {
%8 = bitcast float* %2 to i8*
%9 = alloca i32
%10 = bitcast i32* %9 to i8*
store i32 1, i32* %9
%11 = load i32, i32* %5
%12 = icmp eq i32 %11, 0
br i1 %12, label %13, label %102
13: ; preds = %7
%14 = load i32, i32* %0
%15 = icmp sgt i32 %14, 0
br i1 %15, label %16, label %101
16: ; preds = %13
%17 = sitofp i32 %14 to float
%18 = fdiv float 1.000000e+00, %17
%19 = zext i32 %14 to i64
%20 = icmp ult i32 %14, 8
br i1 %20, label %94, label %21
21: ; preds = %16
%22 = and i64 %19, 4294967288
%23 = insertelement <4 x float> poison, float %18, i64 0
%24 = shufflevector <4 x float> %23, <4 x float> poison, <4 x i32> zeroinitializer
%25 = insertelement <4 x float> poison, float %18, i64 0
%26 = shufflevector <4 x float> %25, <4 x float> poison, <4 x i32> zeroinitializer
%27 = add nsw i64 %22, -8
%28 = lshr exact i64 %27, 3
%29 = add nuw nsw i64 %28, 1
%30 = and i64 %29, 7
%31 = icmp ult i64 %27, 56
br i1 %31, label %79, label %32
32: ; preds = %21
%33 = and i64 %29, 4611686018427387896
br label %34
34: ; preds = %34, %32
%35 = phi i64 [ 0, %32 ], [ %76, %34 ]
%36 = phi i64 [ 0, %32 ], [ %77, %34 ]
%37 = getelementptr inbounds float, float* %2, i64 %35
%38 = bitcast float* %37 to <4 x float>*
store <4 x float> %24, <4 x float>* %38
%39 = getelementptr inbounds float, float* %37, i64 4
%40 = bitcast float* %39 to <4 x float>*
store <4 x float> %26, <4 x float>* %40
%41 = or i64 %35, 8
%42 = getelementptr inbounds float, float* %2, i64 %41
%43 = bitcast float* %42 to <4 x float>*
store <4 x float> %24, <4 x float>* %43
%44 = getelementptr inbounds float, float* %42, i64 4
%45 = bitcast float* %44 to <4 x float>*
store <4 x float> %26, <4 x float>* %45
%46 = or i64 %35, 16
%47 = getelementptr inbounds float, float* %2, i64 %46
%48 = bitcast float* %47 to <4 x float>*
store <4 x float> %24, <4 x float>* %48
%49 = getelementptr inbounds float, float* %47, i64 4
%50 = bitcast float* %49 to <4 x float>*
store <4 x float> %26, <4 x float>* %50
%51 = or i64 %35, 24
%52 = getelementptr inbounds float, float* %2, i64 %51
%53 = bitcast float* %52 to <4 x float>*
store <4 x float> %24, <4 x float>* %53
%54 = getelementptr inbounds float, float* %52, i64 4
%55 = bitcast float* %54 to <4 x float>*
store <4 x float> %26, <4 x float>* %55
%56 = or i64 %35, 32
%57 = getelementptr inbounds float, float* %2, i64 %56
%58 = bitcast float* %57 to <4 x float>*
store <4 x float> %24, <4 x float>* %58
%59 = getelementptr inbounds float, float* %57, i64 4
%60 = bitcast float* %59 to <4 x float>*
store <4 x float> %26, <4 x float>* %60
%61 = or i64 %35, 40
%62 = getelementptr inbounds float, float* %2, i64 %61
%63 = bitcast float* %62 to <4 x float>*
store <4 x float> %24, <4 x float>* %63
%64 = getelementptr inbounds float, float* %62, i64 4
%65 = bitcast float* %64 to <4 x float>*
store <4 x float> %26, <4 x float>* %65
%66 = or i64 %35, 48
%67 = getelementptr inbounds float, float* %2, i64 %66
%68 = bitcast float* %67 to <4 x float>*
store <4 x float> %24, <4 x float>* %68
%69 = getelementptr inbounds float, float* %67, i64 4
%70 = bitcast float* %69 to <4 x float>*
store <4 x float> %26, <4 x float>* %70
%71 = or i64 %35, 56
%72 = getelementptr inbounds float, float* %2, i64 %71
%73 = bitcast float* %72 to <4 x float>*
store <4 x float> %24, <4 x float>* %73
%74 = getelementptr inbounds float, float* %72, i64 4
%75 = bitcast float* %74 to <4 x float>*
store <4 x float> %26, <4 x float>* %75
%76 = add nuw i64 %35, 64
%77 = add nuw i64 %36, 8
%78 = icmp eq i64 %77, %33
br i1 %78, label %79, label %34
79: ; preds = %34, %21
%80 = phi i64 [ 0, %21 ], [ %76, %34 ]
%81 = icmp eq i64 %30, 0
br i1 %81, label %92, label %82
82: ; preds = %79, %82
%83 = phi i64 [ %89, %82 ], [ %80, %79 ]
%84 = phi i64 [ %90, %82 ], [ 0, %79 ]
%85 = getelementptr inbounds float, float* %2, i64 %83
%86 = bitcast float* %85 to <4 x float>*
store <4 x float> %24, <4 x float>* %86
%87 = getelementptr inbounds float, float* %85, i64 4
%88 = bitcast float* %87 to <4 x float>*
store <4 x float> %26, <4 x float>* %88
%89 = add nuw i64 %83, 8
%90 = add i64 %84, 1
%91 = icmp eq i64 %90, %30
br i1 %91, label %92, label %82
92: ; preds = %82, %79
%93 = icmp eq i64 %22, %19
br i1 %93, label %101, label %94
94: ; preds = %16, %92
%95 = phi i64 [ 0, %16 ], [ %22, %92 ]
br label %96
96: ; preds = %94, %96
%97 = phi i64 [ %99, %96 ], [ %95, %94 ]
%98 = getelementptr inbounds float, float* %2, i64 %97
store float %18, float* %98
%99 = add nuw nsw i64 %97, 1
%100 = icmp eq i64 %99, %19
br i1 %100, label %101, label %96
101: ; preds = %96, %92, %13
store i32 1, i32* %5
store i32 1, i32* %6
br label %261
102: ; preds = %7
%103 = load i32, i32* %6
switch i32 %103, label %104 [
i32 5, label %247
i32 2, label %136
i32 3, label %151
i32 4, label %201
]
104: ; preds = %102
%105 = load i32, i32* %0
%106 = icmp eq i32 %105, 1
br i1 %106, label %107, label %110
107: ; preds = %104
%108 = load float, float* %2
store float %108, float* %1
%109 = tail call float @llvm.fabs.f32(float %108)
br label %258
110: ; preds = %104
%111 = call float @sasum_(i32* %0, float* %2, i32* %9)
store float %111, float* %4
%112 = load i32, i32* %0
%113 = icmp sgt i32 %112, 0
br i1 %113, label %114, label %135
114: ; preds = %110, %128
%115 = phi i64 [ %131, %128 ], [ 0, %110 ]
%116 = getelementptr inbounds float, float* %2, i64 %115
%117 = load float, float* %116
%118 = fcmp ult float %117, 0.000000e+00
%119 = select i1 %118, float -1.000000e+00, float 1.000000e+00
store float %119, float* %116
%120 = fpext float %119 to double
br i1 %118, label %124, label %121
121: ; preds = %114
%122 = fadd double %120, 5.000000e-01
%123 = call i32 @floor(double %122)
br label %128
124: ; preds = %114
%125 = fsub double 5.000000e-01, %120
%126 = call i32 @floor(double %125)
%127 = sub nsw i32 0, %126
br label %128
128: ; preds = %124, %121
%129 = phi i32 [ %123, %121 ], [ %127, %124 ]
%130 = getelementptr inbounds i32, i32* %3, i64 %115
store i32 %129, i32* %130
%131 = add nuw nsw i64 %115, 1
%132 = load i32, i32* %0
%133 = sext i32 %132 to i64
%134 = icmp slt i64 %131, %133
br i1 %134, label %114, label %135
135: ; preds = %128, %110
store i32 2, i32* %5
store i32 2, i32* %6
br label %261
136: ; preds = %102
%137 = call i32 @isamax_(i32* %0, float* %2, i32* %9)
%138 = getelementptr inbounds i32, i32* %6, i64 1
%139 = add nsw i32 %137, -1
store i32 %139, i32* %138
%140 = getelementptr inbounds i32, i32* %6, i64 2
store i32 2, i32* %140
br label %141
141: ; preds = %218, %136
%142 = phi i32 [ %205, %218 ], [ %139, %136 ]
%143 = load i32, i32* %0
%144 = icmp sgt i32 %143, 0
br i1 %144, label %145, label %148
145: ; preds = %141
%146 = zext i32 %143 to i64
%147 = shl nuw nsw i64 %146, 2
br label %148
148: ; preds = %145, %141
%149 = sext i32 %142 to i64
%150 = getelementptr inbounds float, float* %2, i64 %149
store float 1.000000e+00, float* %150
store i32 1, i32* %5
store i32 3, i32* %6
br label %261
151: ; preds = %102
%152 = call i32 @scopy_(i32* %0, float* %2, i32* %9, float* %1, i32* %9)
%153 = load float, float* %4
%154 = call float @sasum_(i32* %0, float* %1, i32* %9)
store float %154, float* %4
%155 = load i32, i32* %0
%156 = icmp sgt i32 %155, 0
br i1 %156, label %161, label %246
157: ; preds = %161
%158 = load i32, i32* %0
%159 = sext i32 %158 to i64
%160 = icmp slt i64 %172, %159
br i1 %160, label %161, label %222
161: ; preds = %151, %157
%162 = phi i64 [ %172, %157 ], [ 0, %151 ]
%163 = getelementptr inbounds float, float* %2, i64 %162
%164 = load float, float* %163
%165 = fcmp ult float %164, 0.000000e+00
%166 = call i32 @floor(double 1.500000e+00)
%167 = sub nsw i32 0, %166
%168 = select i1 %165, i32 %167, i32 %166
%169 = getelementptr inbounds i32, i32* %3, i64 %162
%170 = load i32, i32* %169
%171 = icmp eq i32 %168, %170
%172 = add nuw nsw i64 %162, 1
br i1 %171, label %157, label %173
173: ; preds = %161
%174 = load float, float* %4
%175 = fcmp ugt float %174, %153
br i1 %175, label %176, label %220
176: ; preds = %173
%177 = load i32, i32* %0
%178 = icmp sgt i32 %177, 0
br i1 %178, label %179, label %200
179: ; preds = %176, %193
%180 = phi i64 [ %196, %193 ], [ 0, %176 ]
%181 = getelementptr inbounds float, float* %2, i64 %180
%182 = load float, float* %181
%183 = fcmp ult float %182, 0.000000e+00
%184 = select i1 %183, float -1.000000e+00, float 1.000000e+00
store float %184, float* %181
%185 = fpext float %184 to double
br i1 %183, label %189, label %186
186: ; preds = %179
%187 = fadd double %185, 5.000000e-01
%188 = call i32 @floor(double %187)
br label %193
189: ; preds = %179
%190 = fsub double 5.000000e-01, %185
%191 = call i32 @floor(double %190)
%192 = sub nsw i32 0, %191
br label %193
193: ; preds = %189, %186
%194 = phi i32 [ %188, %186 ], [ %192, %189 ]
%195 = getelementptr inbounds i32, i32* %3, i64 %180
store i32 %194, i32* %195
%196 = add nuw nsw i64 %180, 1
%197 = load i32, i32* %0
%198 = sext i32 %197 to i64
%199 = icmp slt i64 %196, %198
br i1 %199, label %179, label %200
200: ; preds = %193, %176
store i32 2, i32* %5
store i32 4, i32* %6
br label %261
201: ; preds = %102
%202 = getelementptr inbounds i32, i32* %6, i64 1
%203 = load i32, i32* %202
%204 = call i32 @isamax_(i32* %0, float* %2, i32* %9)
%205 = add nsw i32 %204, -1
store i32 %205, i32* %202
%206 = sext i32 %203 to i64
%207 = getelementptr inbounds float, float* %2, i64 %206
%208 = load float, float* %207
%209 = sext i32 %205 to i64
%210 = getelementptr inbounds float, float* %2, i64 %209
%211 = load float, float* %210
%212 = call float @llvm.fabs.f32(float %211)
%213 = fcmp une float %208, %212
br i1 %213, label %214, label %220
214: ; preds = %201
%215 = getelementptr inbounds i32, i32* %6, i64 2
%216 = load i32, i32* %215
%217 = icmp slt i32 %216, 5
br i1 %217, label %218, label %220
218: ; preds = %214
%219 = add nsw i32 %216, 1
store i32 %219, i32* %215
br label %141
220: ; preds = %173, %214, %201
%221 = load i32, i32* %0
br label %222
222: ; preds = %157, %220
%223 = phi i32 [ %221, %220 ], [ %158, %157 ]
%224 = icmp slt i32 %223, 1
br i1 %224, label %246, label %225
225: ; preds = %222
%226 = add nsw i32 %223, -1
%227 = sitofp i32 %226 to float
%228 = add nuw i32 %223, 1
%229 = zext i32 %228 to i64
br label %230
230: ; preds = %225, %230
%231 = phi i64 [ 1, %225 ], [ %244, %230 ]
%232 = phi float [ 1.000000e+00, %225 ], [ %243, %230 ]
%233 = fpext float %232 to double
%234 = add nsw i64 %231, -1
%235 = trunc i64 %234 to i32
%236 = sitofp i32 %235 to float
%237 = fdiv float %236, %227
%238 = fpext float %237 to double
%239 = fadd double %238, 1.000000e+00
%240 = fmul double %239, %233
%241 = fptrunc double %240 to float
%242 = getelementptr inbounds float, float* %2, i64 %234
store float %241, float* %242
%243 = fneg float %232
%244 = add nuw nsw i64 %231, 1
%245 = icmp eq i64 %244, %229
br i1 %245, label %246, label %230
246: ; preds = %230, %151, %222
store i32 1, i32* %5
store i32 5, i32* %6
br label %261
247: ; preds = %102
%248 = call float @sasum_(i32* %0, float* %2, i32* %9)
%249 = load i32, i32* %0
%250 = mul nsw i32 %249, 3
%251 = sitofp i32 %250 to float
%252 = fdiv float %248, %251
%253 = fmul float %252, 2.000000e+00
%254 = load float, float* %4
%255 = fcmp ogt float %253, %254
br i1 %255, label %256, label %260
256: ; preds = %247
%257 = call i32 @scopy_(i32* %0, float* %2, i32* %9, float* %1, i32* %9)
br label %258
258: ; preds = %107, %256
%259 = phi float [ %253, %256 ], [ %109, %107 ]
store float %259, float* %4
br label %260
260: ; preds = %258, %247
store i32 0, i32* %5
br label %261
261: ; preds = %260, %246, %200, %148, %135, %101
ret i32 0
}