#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 slacon_(int *n, float *v, float *x, int *isgn, float *est, int *kase) {
  int c__1 = 1;
  float zero = 0.0;
  float one = 1.0;
  static int iter;
  static int jump, jlast;
  static float altsgn, estold;
  static int i, j;
  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;
    jump = 1;
    return 0;
  }
  switch (jump) {
  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;
  jump = 2;
  return 0;
L40:
  j = isamax_(n, &x[0], &c__1);
  --j;
  iter = 2;
L50:
  for (i = 0; i < *n; ++i)
    x[i] = zero;
  x[j] = one;
  *kase = 1;
  jump = 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;
  jump = 4;
  return 0;
L110:
  jlast = j;
  j = isamax_(n, &x[0], &c__1);
  --j;
  if (x[jlast] != fabs(x[j]) && iter < 5) {
    ++iter;
    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;
  jump = 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):
<slacon_>:
push   %rbp
mov    %rsp,%rbp
sub    $0x80,%rsp
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  0xe76(%rip),%xmm0
movss  %xmm0,-0x44(%rbp)
mov    -0x38(%rbp),%rax
cmpl   $0x0,(%rax)
jne    1218 <slacon_+0xc8>
movl   $0x0,0x2eba(%rip)
mov    0x2eb4(%rip),%eax
mov    -0x10(%rbp),%rcx
cmp    (%rcx),%eax
jge    11f8 <slacon_+0xa8>
mov    -0x10(%rbp),%rax
cvtsi2ssl (%rax),%xmm0
cvtss2sd %xmm0,%xmm1
movsd  0xe4c(%rip),%xmm0
divsd  %xmm1,%xmm0
cvtsd2ss %xmm0,%xmm0
mov    -0x20(%rbp),%rax
movslq 0x2e81(%rip),%rcx
movss  %xmm0,(%rax,%rcx,4)
mov    0x2e76(%rip),%eax
add    $0x1,%eax
mov    %eax,0x2e6d(%rip)
jmp    11a6 <slacon_+0x56>
mov    -0x38(%rbp),%rax
movl   $0x1,(%rax)
movl   $0x1,0x2e44(%rip)
movl   $0x0,-0x4(%rbp)
jmp    19b5 <slacon_+0x865>
mov    0x2e32(%rip),%eax
add    $0xffffffff,%eax
mov    %eax,%ecx
mov    %rcx,-0x50(%rbp)
sub    $0x4,%eax
ja     125d <slacon_+0x10d>
mov    -0x50(%rbp),%rax
lea    0xde5(%rip),%rcx
movslq (%rcx,%rax,4),%rax
add    %rcx,%rax
jmp    *%rax
jmp    1262 <slacon_+0x112>
jmp    13eb <slacon_+0x29b>
jmp    1495 <slacon_+0x345>
jmp    17bd <slacon_+0x66d>
jmp    192f <slacon_+0x7df>
jmp    1262 <slacon_+0x112>
mov    -0x10(%rbp),%rax
cmpl   $0x1,(%rax)
jne    1299 <slacon_+0x149>
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    19a4 <slacon_+0x854>
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,0x2da4(%rip)
mov    0x2d9e(%rip),%eax
mov    -0x10(%rbp),%rcx
cmp    (%rcx),%eax
jge    13cb <slacon_+0x27b>
mov    -0x20(%rbp),%rax
movslq 0x2d87(%rip),%rcx
movss  (%rax,%rcx,4),%xmm0
xorps  %xmm1,%xmm1
ucomiss %xmm1,%xmm0
jb     12fe <slacon_+0x1ae>
movss  -0x44(%rbp),%xmm0
call   1040 <fabs@plt>
movss  %xmm0,-0x54(%rbp)
jmp    131a <slacon_+0x1ca>
movss  -0x44(%rbp),%xmm0
call   1040 <fabs@plt>
movd   %xmm0,%eax
xor    $0x80000000,%eax
movd   %eax,%xmm0
movss  %xmm0,-0x54(%rbp)
movss  -0x54(%rbp),%xmm0
mov    -0x20(%rbp),%rax
movslq 0x2d36(%rip),%rcx
movss  %xmm0,(%rax,%rcx,4)
mov    -0x20(%rbp),%rax
movslq 0x2d26(%rip),%rcx
movss  (%rax,%rcx,4),%xmm0
xorps  %xmm1,%xmm1
ucomiss %xmm1,%xmm0
jb     1378 <slacon_+0x228>
mov    -0x20(%rbp),%rax
movslq 0x2d0a(%rip),%rcx
movss  (%rax,%rcx,4),%xmm0
cvtss2sd %xmm0,%xmm0
movsd  0xca9(%rip),%xmm1
addsd  %xmm1,%xmm0
call   1070 <floor@plt>
mov    %eax,-0x58(%rbp)
jmp    13a6 <slacon_+0x256>
mov    -0x20(%rbp),%rax
movslq 0x2cdd(%rip),%rcx
movss  (%rax,%rcx,4),%xmm0
cvtss2sd %xmm0,%xmm1
movsd  0xc7c(%rip),%xmm0
subsd  %xmm1,%xmm0
call   1070 <floor@plt>
mov    %eax,%ecx
xor    %eax,%eax
sub    %ecx,%eax
mov    %eax,-0x58(%rbp)
mov    -0x58(%rbp),%edx
mov    -0x28(%rbp),%rax
movslq 0x2cac(%rip),%rcx
mov    %edx,(%rax,%rcx,4)
mov    0x2ca3(%rip),%eax
add    $0x1,%eax
mov    %eax,0x2c9a(%rip)
jmp    12bc <slacon_+0x16c>
mov    -0x38(%rbp),%rax
movl   $0x2,(%rax)
movl   $0x2,0x2c71(%rip)
movl   $0x0,-0x4(%rbp)
jmp    19b5 <slacon_+0x865>
mov    -0x10(%rbp),%rdi
mov    -0x20(%rbp),%rsi
lea    -0x3c(%rbp),%rdx
call   1060 <isamax_@plt>
mov    %eax,0x2c62(%rip)
mov    0x2c5c(%rip),%eax
add    $0xffffffff,%eax
mov    %eax,0x2c53(%rip)
movl   $0x2,0x2c31(%rip)
movl   $0x0,0x2c3b(%rip)
mov    0x2c35(%rip),%eax
mov    -0x10(%rbp),%rcx
cmp    (%rcx),%eax
jge    1460 <slacon_+0x310>
movss  -0x40(%rbp),%xmm0
mov    -0x20(%rbp),%rax
movslq 0x2c19(%rip),%rcx
movss  %xmm0,(%rax,%rcx,4)
mov    0x2c0e(%rip),%eax
add    $0x1,%eax
mov    %eax,0x2c05(%rip)
jmp    1425 <slacon_+0x2d5>
movss  -0x44(%rbp),%xmm0
mov    -0x20(%rbp),%rax
movslq 0x2bf4(%rip),%rcx
movss  %xmm0,(%rax,%rcx,4)
mov    -0x38(%rbp),%rax
movl   $0x1,(%rax)
movl   $0x3,0x2bc7(%rip)
movl   $0x0,-0x4(%rbp)
jmp    19b5 <slacon_+0x865>
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,0x2b9f(%rip)
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,0x2b80(%rip)
mov    0x2b7a(%rip),%eax
mov    -0x10(%rbp),%rcx
cmp    (%rcx),%eax
jge    1661 <slacon_+0x511>
mov    -0x20(%rbp),%rax
movslq 0x2b63(%rip),%rcx
movss  (%rax,%rcx,4),%xmm0
xorps  %xmm1,%xmm1
ucomiss %xmm1,%xmm0
jb     1522 <slacon_+0x3d2>
movss  -0x44(%rbp),%xmm0
call   1040 <fabs@plt>
movss  %xmm0,-0x5c(%rbp)
jmp    153e <slacon_+0x3ee>
movss  -0x44(%rbp),%xmm0
call   1040 <fabs@plt>
movd   %xmm0,%eax
xor    $0x80000000,%eax
movd   %eax,%xmm0
movss  %xmm0,-0x5c(%rbp)
movss  -0x5c(%rbp),%xmm0
xorps  %xmm1,%xmm1
ucomiss %xmm1,%xmm0
jb     15bd <slacon_+0x46d>
mov    -0x20(%rbp),%rax
movslq 0x2b06(%rip),%rcx
movss  (%rax,%rcx,4),%xmm0
xorps  %xmm1,%xmm1
ucomiss %xmm1,%xmm0
jb     157f <slacon_+0x42f>
movss  -0x44(%rbp),%xmm0
call   1040 <fabs@plt>
movss  %xmm0,-0x60(%rbp)
jmp    159b <slacon_+0x44b>
movss  -0x44(%rbp),%xmm0
call   1040 <fabs@plt>
movd   %xmm0,%eax
xor    $0x80000000,%eax
movd   %eax,%xmm0
movss  %xmm0,-0x60(%rbp)
movss  -0x60(%rbp),%xmm0
cvtss2sd %xmm0,%xmm0
movsd  0xa64(%rip),%xmm1
addsd  %xmm1,%xmm0
call   1070 <floor@plt>
mov    %eax,-0x64(%rbp)
jmp    162c <slacon_+0x4dc>
mov    -0x20(%rbp),%rax
movslq 0x2a98(%rip),%rcx
movss  (%rax,%rcx,4),%xmm0
xorps  %xmm1,%xmm1
ucomiss %xmm1,%xmm0
jb     15ed <slacon_+0x49d>
movss  -0x44(%rbp),%xmm0
call   1040 <fabs@plt>
movss  %xmm0,-0x68(%rbp)
jmp    1609 <slacon_+0x4b9>
movss  -0x44(%rbp),%xmm0
call   1040 <fabs@plt>
movd   %xmm0,%eax
xor    $0x80000000,%eax
movd   %eax,%xmm0
movss  %xmm0,-0x68(%rbp)
movss  -0x68(%rbp),%xmm0
cvtss2sd %xmm0,%xmm1
movsd  0x9f6(%rip),%xmm0
subsd  %xmm1,%xmm0
call   1070 <floor@plt>
mov    %eax,%ecx
xor    %eax,%eax
sub    %ecx,%eax
mov    %eax,-0x64(%rbp)
mov    -0x64(%rbp),%eax
mov    -0x28(%rbp),%rcx
movslq 0x2a26(%rip),%rdx
cmp    (%rcx,%rdx,4),%eax
je     1648 <slacon_+0x4f8>
jmp    1666 <slacon_+0x516>
jmp    164d <slacon_+0x4fd>
mov    0x2a0d(%rip),%eax
add    $0x1,%eax
mov    %eax,0x2a04(%rip)
jmp    14e0 <slacon_+0x390>
jmp    185b <slacon_+0x70b>
mov    -0x30(%rbp),%rax
movss  (%rax),%xmm1
movss  0x29e6(%rip),%xmm0
ucomiss %xmm1,%xmm0
jb     1684 <slacon_+0x534>
jmp    185b <slacon_+0x70b>
movl   $0x0,0x29d2(%rip)
mov    0x29cc(%rip),%eax
mov    -0x10(%rbp),%rcx
cmp    (%rcx),%eax
jge    179d <slacon_+0x64d>
mov    -0x20(%rbp),%rax
movslq 0x29b5(%rip),%rcx
movss  (%rax,%rcx,4),%xmm0
xorps  %xmm1,%xmm1
ucomiss %xmm1,%xmm0
jb     16d0 <slacon_+0x580>
movss  -0x44(%rbp),%xmm0
call   1040 <fabs@plt>
movss  %xmm0,-0x6c(%rbp)
jmp    16ec <slacon_+0x59c>
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
mov    -0x20(%rbp),%rax
movslq 0x2964(%rip),%rcx
movss  %xmm0,(%rax,%rcx,4)
mov    -0x20(%rbp),%rax
movslq 0x2954(%rip),%rcx
movss  (%rax,%rcx,4),%xmm0
xorps  %xmm1,%xmm1
ucomiss %xmm1,%xmm0
jb     174a <slacon_+0x5fa>
mov    -0x20(%rbp),%rax
movslq 0x2938(%rip),%rcx
movss  (%rax,%rcx,4),%xmm0
cvtss2sd %xmm0,%xmm0
movsd  0x8d7(%rip),%xmm1
addsd  %xmm1,%xmm0
call   1070 <floor@plt>
mov    %eax,-0x70(%rbp)
jmp    1778 <slacon_+0x628>
mov    -0x20(%rbp),%rax
movslq 0x290b(%rip),%rcx
movss  (%rax,%rcx,4),%xmm0
cvtss2sd %xmm0,%xmm1
movsd  0x8aa(%rip),%xmm0
subsd  %xmm1,%xmm0
call   1070 <floor@plt>
mov    %eax,%ecx
xor    %eax,%eax
sub    %ecx,%eax
mov    %eax,-0x70(%rbp)
mov    -0x70(%rbp),%edx
mov    -0x28(%rbp),%rax
movslq 0x28da(%rip),%rcx
mov    %edx,(%rax,%rcx,4)
mov    0x28d1(%rip),%eax
add    $0x1,%eax
mov    %eax,0x28c8(%rip)
jmp    168e <slacon_+0x53e>
mov    -0x38(%rbp),%rax
movl   $0x2,(%rax)
movl   $0x4,0x289f(%rip)
movl   $0x0,-0x4(%rbp)
jmp    19b5 <slacon_+0x865>
mov    0x28a1(%rip),%eax
mov    %eax,0x288b(%rip)
mov    -0x10(%rbp),%rdi
mov    -0x20(%rbp),%rsi
lea    -0x3c(%rbp),%rdx
call   1060 <isamax_@plt>
mov    %eax,0x2884(%rip)
mov    0x287e(%rip),%eax
add    $0xffffffff,%eax
mov    %eax,0x2875(%rip)
mov    -0x20(%rbp),%rax
movslq 0x285a(%rip),%rcx
movss  (%rax,%rcx,4),%xmm0
movss  %xmm0,-0x74(%rbp)
mov    -0x20(%rbp),%rax
movslq 0x2855(%rip),%rcx
movss  (%rax,%rcx,4),%xmm0
call   1040 <fabs@plt>
movaps %xmm0,%xmm1
movss  -0x74(%rbp),%xmm0
ucomiss %xmm1,%xmm0
jne    1835 <slacon_+0x6e5>
jp     1835 <slacon_+0x6e5>
jmp    1856 <slacon_+0x706>
cmpl   $0x5,0x2810(%rip)
jge    1856 <slacon_+0x706>
mov    0x2804(%rip),%eax
add    $0x1,%eax
mov    %eax,0x27fb(%rip)
jmp    141b <slacon_+0x2cb>
jmp    185b <slacon_+0x70b>
movss  0x79d(%rip),%xmm0
movss  %xmm0,0x27ed(%rip)
movl   $0x1,0x27eb(%rip)
mov    0x27e5(%rip),%eax
mov    -0x10(%rbp),%rcx
cmp    (%rcx),%eax
jg     190f <slacon_+0x7bf>
movss  0x27c9(%rip),%xmm0
cvtss2sd %xmm0,%xmm0
mov    0x27c7(%rip),%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  0x75b(%rip),%xmm2
addsd  %xmm2,%xmm1
mulsd  %xmm1,%xmm0
cvtsd2ss %xmm0,%xmm0
mov    -0x20(%rbp),%rax
mov    0x278d(%rip),%ecx
sub    $0x1,%ecx
movslq %ecx,%rcx
movss  %xmm0,(%rax,%rcx,4)
movss  0x2772(%rip),%xmm0
movd   %xmm0,%eax
xor    $0x80000000,%eax
movd   %eax,%xmm0
movss  %xmm0,0x275d(%rip)
mov    0x275f(%rip),%eax
add    $0x1,%eax
mov    %eax,0x2756(%rip)
jmp    1875 <slacon_+0x725>
mov    -0x38(%rbp),%rax
movl   $0x1,(%rax)
movl   $0x5,0x272d(%rip)
movl   $0x0,-0x4(%rbp)
jmp    19b5 <slacon_+0x865>
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  0x6ad(%rip),%xmm1
mulsd  %xmm1,%xmm0
cvtsd2ss %xmm0,%xmm0
movss  %xmm0,-0x48(%rbp)
movss  -0x48(%rbp),%xmm0
mov    -0x30(%rbp),%rax
ucomiss (%rax),%xmm0
jbe    199f <slacon_+0x84f>
mov    -0x10(%rbp),%rdi
mov    -0x20(%rbp),%rsi
mov    -0x18(%rbp),%rcx
lea    -0x3c(%rbp),%r8
mov    %r8,%rdx
call   1050 <scopy_@plt>
movss  -0x48(%rbp),%xmm0
mov    -0x30(%rbp),%rax
movss  %xmm0,(%rax)
jmp    19a4 <slacon_+0x854>
mov    -0x38(%rbp),%rax
movl   $0x0,(%rax)
movl   $0x0,-0x4(%rbp)
mov    -0x4(%rbp),%eax
add    $0x80,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<slacon_>:
push   %rbp
push   %r15
push   %r14
push   %r13
push   %r12
push   %rbx
sub    $0x28,%rsp
mov    %r9,%r14
mov    %rdx,%rbx
mov    %rdi,%r15
movl   $0x1,0x4(%rsp)
cmpl   $0x0,(%r9)
je     11c9 <slacon_+0x79>
mov    %r8,%r13
mov    %rcx,%r12
mov    %rsi,%rbp
mov    0x2ecc(%rip),%eax
add    $0xfffffffe,%eax
cmp    $0x3,%eax
ja     11f7 <slacon_+0xa7>
lea    0xeb5(%rip),%rcx
movslq (%rcx,%rax,4),%rax
add    %rcx,%rax
jmp    *%rax
mov    %r14,0x8(%rsp)
lea    0x4(%rsp),%rdx
mov    %r15,%rdi
mov    %rbx,%rsi
call   1060 <isamax_@plt>
mov    %eax,%r14d
add    $0xffffffff,%r14d
mov    %r14d,0x2ea1(%rip)
mov    $0x2,%eax
jmp    139c <slacon_+0x24c>
mov    (%r15),%eax
test   %eax,%eax
jle    11f0 <slacon_+0xa0>
cvtsi2ss %eax,%xmm1
movss  0xe64(%rip),%xmm0
divss  %xmm1,%xmm0
cmp    $0x8,%eax
jae    141f <slacon_+0x2cf>
xor    %ecx,%ecx
jmp    15e0 <slacon_+0x490>
xor    %eax,%eax
jmp    15ee <slacon_+0x49e>
cmpl   $0x1,(%r15)
jne    147c <slacon_+0x32c>
movss  (%rbx),%xmm0
movss  %xmm0,0x0(%rbp)
andps  0xdef(%rip),%xmm0
jmp    140d <slacon_+0x2bd>
mov    %r14,0x8(%rsp)
lea    0x4(%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,0x2e16(%rip)
mov    %r15,%rdi
mov    %rbp,%rsi
mov    %r14,%rdx
call   1040 <sasum_@plt>
movss  %xmm0,0x0(%r13)
movl   $0x0,0x2dfc(%rip)
cmpl   $0x0,(%r15)
jle    16af <slacon_+0x55f>
xor    %ecx,%ecx
nopl   0x0(%rax)
movslq %ecx,%rax
movss  (%rbx,%rax,4),%xmm0
movss  %xmm0,0x10(%rsp)
movsd  0xd9a(%rip),%xmm0
call   1070 <floor@plt>
mov    %eax,%edx
neg    %edx
movss  0x10(%rsp),%xmm0
ucomiss 0xda8(%rip),%xmm0
cmovae %eax,%edx
movslq 0x2db6(%rip),%rcx
cmp    (%r12,%rcx,4),%edx
jne    160a <slacon_+0x4ba>
add    $0x1,%ecx
mov    %ecx,0x2da3(%rip)
mov    (%r15),%eax
cmp    %eax,%ecx
jl     1270 <slacon_+0x120>
test   %eax,%eax
jle    16af <slacon_+0x55f>
lea    -0x1(%rax),%ecx
xorps  %xmm0,%xmm0
cvtsi2ss %ecx,%xmm0
mov    %eax,%ecx
add    $0x1,%eax
movss  0xd61(%rip),%xmm1
xor    %edx,%edx
movsd  0xd4f(%rip),%xmm2
movaps 0xd20(%rip),%xmm3
mov    0x8(%rsp),%rsi
cs nopw 0x0(%rax,%rax,1)
nop
xorps  %xmm4,%xmm4
cvtsi2ss %edx,%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,%rdx,4)
xorps  %xmm3,%xmm1
add    $0x1,%rdx
cmp    %rdx,%rcx
jne    1300 <slacon_+0x1b0>
jmp    16b9 <slacon_+0x569>
mov    %r14,0x8(%rsp)
mov    0x2d1d(%rip),%eax
mov    %eax,0x2d0b(%rip)
lea    0x4(%rsp),%rdx
mov    %r15,%rdi
mov    %rbx,%rsi
call   1060 <isamax_@plt>
lea    -0x1(%rax),%r14d
mov    %r14d,0x2cfc(%rip)
movslq 0x2ce9(%rip),%rcx
movss  (%rbx,%rcx,4),%xmm0
cltq
movss  -0x4(%rbx,%rax,4),%xmm1
andps  0xc81(%rip),%xmm1
ucomiss %xmm1,%xmm0
jne    138a <slacon_+0x23a>
jnp    16a4 <slacon_+0x554>
mov    0x2cbc(%rip),%eax
cmp    $0x4,%eax
jg     16a4 <slacon_+0x554>
add    $0x1,%eax
mov    %eax,0x2caa(%rip)
mov    (%r15),%ebp
test   %ebp,%ebp
jle    1450 <slacon_+0x300>
lea    0x0(,%rbp,4),%rdx
mov    %rbx,%rdi
xor    %esi,%esi
call   1030 <memset@plt>
jmp    1452 <slacon_+0x302>
lea    0x4(%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    1413 <slacon_+0x2c3>
lea    0x4(%rsp),%rdx
mov    %r15,%rdi
mov    %rbx,%rsi
mov    %rbp,%rcx
mov    %rdx,%r8
movaps %xmm0,0x10(%rsp)
call   1050 <scopy_@plt>
movaps 0x10(%rsp),%xmm0
movss  %xmm0,0x0(%r13)
movl   $0x0,(%r14)
jmp    16cf <slacon_+0x57f>
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    1529 <slacon_+0x3d9>
xor    %edi,%edi
jmp    15a1 <slacon_+0x451>
xor    %ebp,%ebp
mov    %ebp,0x2c04(%rip)
movslq %r14d,%rax
movl   $0x3f800000,(%rbx,%rax,4)
mov    0x8(%rsp),%rax
movl   $0x1,(%rax)
movl   $0x3,0x2bd9(%rip)
jmp    16cf <slacon_+0x57f>
lea    0x4(%rsp),%rdx
mov    %r15,%rdi
mov    %rbx,%rsi
call   1040 <sasum_@plt>
movss  %xmm0,0x0(%r13)
movl   $0x0,0x2bc0(%rip)
cmpl   $0x0,(%r15)
jle    1513 <slacon_+0x3c3>
xor    %eax,%eax
lea    0xb7d(%rip),%rbp
jmp    14e0 <slacon_+0x390>
nopl   (%rax)
movsd  0xb78(%rip),%xmm1
subsd  %xmm0,%xmm1
movapd %xmm1,%xmm0
call   1070 <floor@plt>
neg    %eax
movslq 0x2b8e(%rip),%rcx
mov    %eax,(%r12,%rcx,4)
lea    0x1(%rcx),%eax
mov    %eax,0x2b81(%rip)
cmp    (%r15),%eax
jge    1513 <slacon_+0x3c3>
cltq
movss  (%rbx,%rax,4),%xmm0
xor    %ecx,%ecx
ucomiss 0xb54(%rip),%xmm0
setb   %cl
movss  0x0(%rbp,%rcx,4),%xmm0
movss  %xmm0,(%rbx,%rax,4)
cvtss2sd %xmm0,%xmm0
jb     14b0 <slacon_+0x360>
addsd  0xb24(%rip),%xmm0
call   1070 <floor@plt>
jmp    14c7 <slacon_+0x377>
movl   $0x2,(%r14)
movl   $0x2,0x2b2c(%rip)
jmp    16cf <slacon_+0x57f>
and    $0xfffffffffffffff8,%rsi
xor    %edi,%edi
nop
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    1530 <slacon_+0x3e0>
test   %rdx,%rdx
je     15d2 <slacon_+0x482>
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    15c0 <slacon_+0x470>
cmp    %rax,%rcx
je     15ee <slacon_+0x49e>
nopw   0x0(%rax,%rax,1)
movss  %xmm0,(%rbx,%rcx,4)
add    $0x1,%rcx
cmp    %rcx,%rax
jne    15e0 <slacon_+0x490>
mov    %eax,0x2a68(%rip)
movl   $0x1,(%r14)
movl   $0x1,0x2a4b(%rip)
jmp    16cf <slacon_+0x57f>
movss  0x2a46(%rip),%xmm0
ucomiss 0x0(%r13),%xmm0
jae    16a4 <slacon_+0x554>
movl   $0x0,0x2a35(%rip)
cmpl   $0x0,(%r15)
mov    0x8(%rsp),%r14
jle    16e0 <slacon_+0x590>
xor    %eax,%eax
lea    0x9e9(%rip),%rbp
jmp    1671 <slacon_+0x521>
movsd  0x9e7(%rip),%xmm1
subsd  %xmm0,%xmm1
movapd %xmm1,%xmm0
call   1070 <floor@plt>
neg    %eax
movslq 0x29fd(%rip),%rcx
mov    %eax,(%r12,%rcx,4)
lea    0x1(%rcx),%eax
mov    %eax,0x29f0(%rip)
cmp    (%r15),%eax
jge    16e0 <slacon_+0x590>
cltq
movss  (%rbx,%rax,4),%xmm0
xor    %ecx,%ecx
ucomiss 0x9c3(%rip),%xmm0
setb   %cl
movss  0x0(%rbp,%rcx,4),%xmm0
movss  %xmm0,(%rbx,%rax,4)
cvtss2sd %xmm0,%xmm0
jb     1641 <slacon_+0x4f1>
addsd  0x993(%rip),%xmm0
call   1070 <floor@plt>
jmp    1658 <slacon_+0x508>
mov    (%r15),%eax
test   %eax,%eax
jg     12c8 <slacon_+0x178>
mov    $0x1,%eax
mov    0x8(%rsp),%rsi
mov    %eax,0x299d(%rip)
movl   $0x1,(%rsi)
movl   $0x5,0x2981(%rip)
xor    %eax,%eax
add    $0x28,%rsp
pop    %rbx
pop    %r12
pop    %r13
pop    %r14
pop    %r15
pop    %rbp
ret
movl   $0x2,(%r14)
movl   $0x4,0x295f(%rip)
jmp    16cf <slacon_+0x57f>

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

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