#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 */
double exp(double);
scalar_t__ pow(double, int);
int /*<<< orphan*/ printf(char *, ...);
double sqrt(double);
void rndsplanalysis(double x[], int n, double x0, double h, int m, int l,
                    double dt[], int g[], int q[]) {
  int i, j, k, t;
  double s;
  char ch[50 + 1];
  for (i = 0, dt[0] = 0.0; i < n; i++)
    dt[0] += x[i];
  dt[0] /= n;
  for (i = 0, dt[1] = 0.0; i < n; i++)
    dt[1] += pow(x[i] - dt[0], 2);
  dt[1] /= n;
  dt[2] = sqrt(dt[1]);
  for (i = 0; i < m; i++) {
    s = x0 + (i + 0.5) * h - dt[0];
    s = exp(-s * s / (2.0 * dt[1]));
    g[i] = (int)(n * s * h / (dt[2] * 2.5066));
  }
  for (i = 0; i < m; i++)
    q[i] = 0;
  s = x0 + m * h;
  for (i = 0; i < n; i++)
    if ((x[i] >= x0) && x[i] <= s) {
      j = (int)((x[i] - x0) / h);
      q[j]++;
    }
  if (l == 0)
    return;
  printf("n=%d", n);
  printf("\nx0=%5.3lf h=%5.3lf m=%d", x0, h, m);
  printf("\n a=%5.3lf s=%5.3lf t=%5.3lf ", dt[0], dt[1], dt[2]);
  printf("\n");
  for (i = 0, t = 0; i < m; i++)
    if (q[i] > t)
      t = q[i];
  for (k = 1; t > 50;) {
    k <<= 1;
    t >>= 1;
  }
  for (i = 0; i < m; i++) {
    s = x0 + (i + 0.5) * h;
    for (j = 0; j <= 50; j++)
      ch[j] = ' ';
    j = q[i] / k;
    for (t = 0; t < j; t++)
      ch[t] = '+';
    j = g[i] / k;
    if ((j > 0) && (j < 50))
      ch[j] = '*';
    printf("%5.3lf %7d ", s, q[i]);
    for (j = 0; j <= 50; j++)
      printf("%c", ch[j]);
    printf("\n");
  }
  printf("the ratio is 1:%d", k);
  return;
}


x86 assembly (clang, -O0):
<rndsplanalysis>:
push   %rbp
mov    %rsp,%rbp
sub    $0x90,%rsp
mov    0x10(%rbp),%rax
mov    %rdi,-0x8(%rbp)
mov    %esi,-0xc(%rbp)
movsd  %xmm0,-0x18(%rbp)
movsd  %xmm1,-0x20(%rbp)
mov    %edx,-0x24(%rbp)
mov    %ecx,-0x28(%rbp)
mov    %r8,-0x30(%rbp)
mov    %r9,-0x38(%rbp)
movl   $0x0,-0x3c(%rbp)
mov    -0x30(%rbp),%rax
xorps  %xmm0,%xmm0
movsd  %xmm0,(%rax)
mov    -0x3c(%rbp),%eax
cmp    -0xc(%rbp),%eax
jge    11b3 <rndsplanalysis+0x73>
mov    -0x8(%rbp),%rax
movslq -0x3c(%rbp),%rcx
movsd  (%rax,%rcx,8),%xmm0
mov    -0x30(%rbp),%rax
addsd  (%rax),%xmm0
movsd  %xmm0,(%rax)
mov    -0x3c(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0x3c(%rbp)
jmp    1180 <rndsplanalysis+0x40>
cvtsi2sdl -0xc(%rbp),%xmm1
mov    -0x30(%rbp),%rax
movsd  (%rax),%xmm0
divsd  %xmm1,%xmm0
movsd  %xmm0,(%rax)
movl   $0x0,-0x3c(%rbp)
mov    -0x30(%rbp),%rax
xorps  %xmm0,%xmm0
movsd  %xmm0,0x8(%rax)
mov    -0x3c(%rbp),%eax
cmp    -0xc(%rbp),%eax
jge    1227 <rndsplanalysis+0xe7>
mov    -0x8(%rbp),%rax
movslq -0x3c(%rbp),%rcx
movsd  (%rax,%rcx,8),%xmm0
mov    -0x30(%rbp),%rax
subsd  (%rax),%xmm0
mov    $0x2,%edi
call   1050 <pow@plt>
cvtsi2sd %rax,%xmm0
mov    -0x30(%rbp),%rax
addsd  0x8(%rax),%xmm0
movsd  %xmm0,0x8(%rax)
mov    -0x3c(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0x3c(%rbp)
jmp    11db <rndsplanalysis+0x9b>
cvtsi2sdl -0xc(%rbp),%xmm1
mov    -0x30(%rbp),%rax
movsd  0x8(%rax),%xmm0
divsd  %xmm1,%xmm0
movsd  %xmm0,0x8(%rax)
mov    -0x30(%rbp),%rax
movsd  0x8(%rax),%xmm0
call   1060 <sqrt@plt>
mov    -0x30(%rbp),%rax
movsd  %xmm0,0x10(%rax)
movl   $0x0,-0x3c(%rbp)
mov    -0x3c(%rbp),%eax
cmp    -0x24(%rbp),%eax
jge    1319 <rndsplanalysis+0x1d9>
movsd  -0x18(%rbp),%xmm1
cvtsi2sdl -0x3c(%rbp),%xmm0
movsd  0xd86(%rip),%xmm2
addsd  %xmm2,%xmm0
movsd  -0x20(%rbp),%xmm2
mulsd  %xmm2,%xmm0
addsd  %xmm1,%xmm0
mov    -0x30(%rbp),%rax
subsd  (%rax),%xmm0
movsd  %xmm0,-0x50(%rbp)
movsd  -0x50(%rbp),%xmm0
movq   %xmm0,%rax
movabs $0x8000000000000000,%rcx
xor    %rcx,%rax
movq   %rax,%xmm0
mulsd  -0x50(%rbp),%xmm0
mov    -0x30(%rbp),%rax
movsd  0xd4b(%rip),%xmm1
mulsd  0x8(%rax),%xmm1
divsd  %xmm1,%xmm0
call   1040 <exp@plt>
movsd  %xmm0,-0x50(%rbp)
cvtsi2sdl -0xc(%rbp),%xmm0
mulsd  -0x50(%rbp),%xmm0
mulsd  -0x20(%rbp),%xmm0
mov    -0x30(%rbp),%rax
movsd  0xd15(%rip),%xmm1
mulsd  0x10(%rax),%xmm1
divsd  %xmm1,%xmm0
cvttsd2si %xmm0,%edx
mov    -0x38(%rbp),%rax
movslq -0x3c(%rbp),%rcx
mov    %edx,(%rax,%rcx,4)
mov    -0x3c(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0x3c(%rbp)
jmp    125c <rndsplanalysis+0x11c>
movl   $0x0,-0x3c(%rbp)
mov    -0x3c(%rbp),%eax
cmp    -0x24(%rbp),%eax
jge    1349 <rndsplanalysis+0x209>
mov    0x10(%rbp),%rax
movslq -0x3c(%rbp),%rcx
movl   $0x0,(%rax,%rcx,4)
mov    -0x3c(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0x3c(%rbp)
jmp    1320 <rndsplanalysis+0x1e0>
movsd  -0x18(%rbp),%xmm1
cvtsi2sdl -0x24(%rbp),%xmm0
movsd  -0x20(%rbp),%xmm2
mulsd  %xmm2,%xmm0
addsd  %xmm1,%xmm0
movsd  %xmm0,-0x50(%rbp)
movl   $0x0,-0x3c(%rbp)
mov    -0x3c(%rbp),%eax
cmp    -0xc(%rbp),%eax
jge    13ee <rndsplanalysis+0x2ae>
mov    -0x8(%rbp),%rax
movslq -0x3c(%rbp),%rcx
movsd  (%rax,%rcx,8),%xmm0
ucomisd -0x18(%rbp),%xmm0
jb     13db <rndsplanalysis+0x29b>
mov    -0x8(%rbp),%rax
movslq -0x3c(%rbp),%rcx
movsd  (%rax,%rcx,8),%xmm1
movsd  -0x50(%rbp),%xmm0
ucomisd %xmm1,%xmm0
jb     13db <rndsplanalysis+0x29b>
mov    -0x8(%rbp),%rax
movslq -0x3c(%rbp),%rcx
movsd  (%rax,%rcx,8),%xmm0
subsd  -0x18(%rbp),%xmm0
divsd  -0x20(%rbp),%xmm0
cvttsd2si %xmm0,%eax
mov    %eax,-0x40(%rbp)
mov    0x10(%rbp),%rax
movslq -0x40(%rbp),%rcx
mov    (%rax,%rcx,4),%edx
add    $0x1,%edx
mov    %edx,(%rax,%rcx,4)
jmp    13e0 <rndsplanalysis+0x2a0>
mov    -0x3c(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0x3c(%rbp)
jmp    136c <rndsplanalysis+0x22c>
cmpl   $0x0,-0x28(%rbp)
jne    13fd <rndsplanalysis+0x2bd>
jmp    1631 <rndsplanalysis+0x4f1>
mov    -0xc(%rbp),%esi
lea    0xc11(%rip),%rdi
mov    $0x0,%al
call   1030 <printf@plt>
movsd  -0x18(%rbp),%xmm0
movsd  -0x20(%rbp),%xmm1
mov    -0x24(%rbp),%esi
lea    0xbfb(%rip),%rdi
mov    $0x2,%al
call   1030 <printf@plt>
mov    -0x30(%rbp),%rax
movsd  (%rax),%xmm0
mov    -0x30(%rbp),%rax
movsd  0x8(%rax),%xmm1
mov    -0x30(%rbp),%rax
movsd  0x10(%rax),%xmm2
lea    0xbec(%rip),%rdi
mov    $0x3,%al
call   1030 <printf@plt>
lea    0xbfc(%rip),%rdi
mov    $0x0,%al
call   1030 <printf@plt>
movl   $0x0,-0x3c(%rbp)
movl   $0x0,-0x48(%rbp)
mov    -0x3c(%rbp),%eax
cmp    -0x24(%rbp),%eax
jge    14ae <rndsplanalysis+0x36e>
mov    0x10(%rbp),%rax
movslq -0x3c(%rbp),%rcx
mov    (%rax,%rcx,4),%eax
cmp    -0x48(%rbp),%eax
jle    149b <rndsplanalysis+0x35b>
mov    0x10(%rbp),%rax
movslq -0x3c(%rbp),%rcx
mov    (%rax,%rcx,4),%eax
mov    %eax,-0x48(%rbp)
jmp    14a0 <rndsplanalysis+0x360>
mov    -0x3c(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0x3c(%rbp)
jmp    146d <rndsplanalysis+0x32d>
movl   $0x1,-0x44(%rbp)
cmpl   $0x32,-0x48(%rbp)
jle    14d6 <rndsplanalysis+0x396>
mov    -0x44(%rbp),%eax
shl    $0x1,%eax
mov    %eax,-0x44(%rbp)
mov    -0x48(%rbp),%eax
sar    $0x1,%eax
mov    %eax,-0x48(%rbp)
jmp    14b5 <rndsplanalysis+0x375>
movl   $0x0,-0x3c(%rbp)
mov    -0x3c(%rbp),%eax
cmp    -0x24(%rbp),%eax
jge    1620 <rndsplanalysis+0x4e0>
movsd  -0x18(%rbp),%xmm1
cvtsi2sdl -0x3c(%rbp),%xmm0
movsd  0xb05(%rip),%xmm2
addsd  %xmm2,%xmm0
movsd  -0x20(%rbp),%xmm2
mulsd  %xmm2,%xmm0
addsd  %xmm1,%xmm0
movsd  %xmm0,-0x50(%rbp)
movl   $0x0,-0x40(%rbp)
cmpl   $0x32,-0x40(%rbp)
jg     153c <rndsplanalysis+0x3fc>
movslq -0x40(%rbp),%rax
movb   $0x20,-0x90(%rbp,%rax,1)
20
mov    -0x40(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0x40(%rbp)
jmp    1518 <rndsplanalysis+0x3d8>
mov    0x10(%rbp),%rax
movslq -0x3c(%rbp),%rcx
mov    (%rax,%rcx,4),%eax
cltd
idivl  -0x44(%rbp)
mov    %eax,-0x40(%rbp)
movl   $0x0,-0x48(%rbp)
mov    -0x48(%rbp),%eax
cmp    -0x40(%rbp),%eax
jge    157b <rndsplanalysis+0x43b>
movslq -0x48(%rbp),%rax
movb   $0x2b,-0x90(%rbp,%rax,1)
2b
mov    -0x48(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0x48(%rbp)
jmp    1555 <rndsplanalysis+0x415>
mov    -0x38(%rbp),%rax
movslq -0x3c(%rbp),%rcx
mov    (%rax,%rcx,4),%eax
cltd
idivl  -0x44(%rbp)
mov    %eax,-0x40(%rbp)
cmpl   $0x0,-0x40(%rbp)
jle    15ad <rndsplanalysis+0x46d>
cmpl   $0x32,-0x40(%rbp)
jge    15ad <rndsplanalysis+0x46d>
movslq -0x40(%rbp),%rax
movb   $0x2a,-0x90(%rbp,%rax,1)
2a
movsd  -0x50(%rbp),%xmm0
mov    0x10(%rbp),%rax
movslq -0x3c(%rbp),%rcx
mov    (%rax,%rcx,4),%esi
lea    0xa92(%rip),%rdi
mov    $0x1,%al
call   1030 <printf@plt>
movl   $0x0,-0x40(%rbp)
cmpl   $0x32,-0x40(%rbp)
jg     1604 <rndsplanalysis+0x4c4>
movslq -0x40(%rbp),%rax
movsbl -0x90(%rbp,%rax,1),%esi
ff
lea    0xa73(%rip),%rdi
mov    $0x0,%al
call   1030 <printf@plt>
mov    -0x40(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0x40(%rbp)
jmp    15d2 <rndsplanalysis+0x492>
lea    0xa49(%rip),%rdi
mov    $0x0,%al
call   1030 <printf@plt>
mov    -0x3c(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0x3c(%rbp)
jmp    14dd <rndsplanalysis+0x39d>
mov    -0x44(%rbp),%esi
lea    0xa3b(%rip),%rdi
mov    $0x0,%al
call   1030 <printf@plt>
add    $0x90,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<rndsplanalysis>:
push   %rbp
push   %r15
push   %r14
push   %r13
push   %r12
push   %rbx
sub    $0x78,%rsp
mov    %r9,%r14
mov    %r8,%rbp
mov    %ecx,0x24(%rsp)
mov    %edx,%ebx
movapd %xmm0,%xmm3
mov    %rdi,%r13
mov    0xb0(%rsp),%r15
movq   $0x0,(%r8)
mov    %esi,%edi
test   %esi,%esi
movsd  %xmm1,0x8(%rsp)
movsd  %xmm0,(%rsp)
mov    %esi,0x20(%rsp)
mov    %rdi,0x38(%rsp)
jle    11c1 <rndsplanalysis+0x61>
lea    -0x1(%rdi),%r12
mov    %edi,%eax
and    $0x3,%eax
cmp    $0x3,%r12
jae    11df <rndsplanalysis+0x7f>
xorpd  %xmm2,%xmm2
xor    %ecx,%ecx
jmp    1229 <rndsplanalysis+0xc9>
cvtsi2sd %esi,%xmm4
xorpd  %xmm0,%xmm0
xorpd  %xmm2,%xmm2
divsd  %xmm4,%xmm2
movsd  %xmm2,0x0(%rbp)
lea    0x8(%rbp),%rax
jmp    13ac <rndsplanalysis+0x24c>
mov    %edi,%edx
and    $0xfffffffc,%edx
xorpd  %xmm2,%xmm2
xor    %ecx,%ecx
nopw   0x0(%rax,%rax,1)
addsd  0x0(%r13,%rcx,8),%xmm2
movsd  %xmm2,0x0(%rbp)
addsd  0x8(%r13,%rcx,8),%xmm2
movsd  %xmm2,0x0(%rbp)
addsd  0x10(%r13,%rcx,8),%xmm2
movsd  %xmm2,0x0(%rbp)
addsd  0x18(%r13,%rcx,8),%xmm2
movsd  %xmm2,0x0(%rbp)
add    $0x4,%rcx
cmp    %rcx,%rdx
jne    11f0 <rndsplanalysis+0x90>
test   %rax,%rax
je     1253 <rndsplanalysis+0xf3>
lea    0x0(,%rcx,8),%rcx
add    %r13,%rcx
xor    %edx,%edx
nopl   0x0(%rax,%rax,1)
addsd  (%rcx,%rdx,8),%xmm2
movsd  %xmm2,0x0(%rbp)
add    $0x1,%rdx
cmp    %rdx,%rax
jne    1240 <rndsplanalysis+0xe0>
lea    0x8(%rbp),%rax
cvtsi2sd %esi,%xmm4
divsd  %xmm4,%xmm2
movsd  %xmm2,0x0(%rbp)
movq   $0x0,0x8(%rbp)
test   %esi,%esi
jle    12c3 <rndsplanalysis+0x163>
movsd  %xmm4,0x10(%rsp)
movsd  0x0(%r13),%xmm0
subsd  %xmm2,%xmm0
mov    $0x2,%edi
mov    %rax,0x18(%rsp)
call   1070 <pow@plt>
mov    0x20(%rsp),%ecx
xorps  %xmm0,%xmm0
cvtsi2sd %rax,%xmm0
mov    0x18(%rsp),%rax
addsd  (%rax),%xmm0
movsd  %xmm0,(%rax)
cmp    $0x1,%ecx
jne    12cc <rndsplanalysis+0x16c>
movsd  0x8(%rsp),%xmm1
movsd  (%rsp),%xmm3
movsd  0x10(%rsp),%xmm4
jmp    13ac <rndsplanalysis+0x24c>
xorpd  %xmm0,%xmm0
jmp    13ac <rndsplanalysis+0x24c>
cmp    $0x2,%ecx
mov    %r14,0x28(%rsp)
mov    %r12,0x30(%rsp)
jne    12e3 <rndsplanalysis+0x183>
mov    $0x1,%r12d
jmp    1362 <rndsplanalysis+0x202>
mov    %r12,%r14
and    $0xfffffffffffffffe,%r14
neg    %r14
mov    $0x1,%r12d
cs nopw 0x0(%rax,%rax,1)
nopl   (%rax)
movsd  0x0(%r13,%r12,8),%xmm0
subsd  0x0(%rbp),%xmm0
mov    $0x2,%edi
call   1070 <pow@plt>
xorps  %xmm0,%xmm0
cvtsi2sd %rax,%xmm0
addsd  0x8(%rbp),%xmm0
movsd  %xmm0,0x8(%rbp)
movsd  0x8(%r13,%r12,8),%xmm0
subsd  0x0(%rbp),%xmm0
mov    $0x2,%edi
call   1070 <pow@plt>
xorps  %xmm0,%xmm0
cvtsi2sd %rax,%xmm0
addsd  0x8(%rbp),%xmm0
movsd  %xmm0,0x8(%rbp)
lea    (%r14,%r12,1),%rax
add    $0x2,%rax
add    $0x2,%r12
cmp    $0x1,%rax
jne    1300 <rndsplanalysis+0x1a0>
testb  $0x1,0x30(%rsp)
je     1391 <rndsplanalysis+0x231>
movsd  0x0(%r13,%r12,8),%xmm0
subsd  0x0(%rbp),%xmm0
mov    $0x2,%edi
call   1070 <pow@plt>
xorps  %xmm0,%xmm0
cvtsi2sd %rax,%xmm0
addsd  0x8(%rbp),%xmm0
movsd  %xmm0,0x8(%rbp)
mov    0x28(%rsp),%r14
movsd  0x8(%rsp),%xmm1
movsd  (%rsp),%xmm3
movsd  0x10(%rsp),%xmm4
mov    0x18(%rsp),%rax
divsd  %xmm4,%xmm0
movsd  %xmm0,(%rax)
xorpd  %xmm2,%xmm2
ucomisd %xmm2,%xmm0
movsd  %xmm4,0x10(%rsp)
jb     13ca <rndsplanalysis+0x26a>
sqrtsd %xmm0,%xmm0
jmp    13da <rndsplanalysis+0x27a>
call   1080 <sqrt@plt>
movsd  (%rsp),%xmm3
movsd  0x8(%rsp),%xmm1
movsd  %xmm0,0x10(%rbp)
mov    %ebx,%r12d
test   %ebx,%ebx
jle    14a0 <rndsplanalysis+0x340>
mov    %ebx,0x18(%rsp)
mov    %r14,%rbx
xor    %r14d,%r14d
cs nopw 0x0(%rax,%rax,1)
xchg   %ax,%ax
xorps  %xmm2,%xmm2
cvtsi2sd %r14d,%xmm2
addsd  0xbf0(%rip),%xmm2
mulsd  %xmm1,%xmm2
addsd  %xmm3,%xmm2
subsd  0x0(%rbp),%xmm2
movapd %xmm2,%xmm0
xorpd  0xbe7(%rip),%xmm0
mulsd  %xmm2,%xmm0
movsd  0x8(%rbp),%xmm1
addsd  %xmm1,%xmm1
divsd  %xmm1,%xmm0
call   1060 <exp@plt>
movsd  (%rsp),%xmm3
movsd  0x8(%rsp),%xmm1
mulsd  0x10(%rsp),%xmm0
mulsd  %xmm1,%xmm0
movsd  0x10(%rbp),%xmm2
mulsd  0xba7(%rip),%xmm2
divsd  %xmm2,%xmm0
cvttsd2si %xmm0,%eax
mov    %eax,(%rbx,%r14,4)
add    $0x1,%r14
cmp    %r14,%r12
jne    1400 <rndsplanalysis+0x2a0>
mov    0x18(%rsp),%eax
test   %eax,%eax
mov    %rbx,%r14
mov    %eax,%ebx
jle    14a0 <rndsplanalysis+0x340>
lea    0x0(,%r12,4),%rdx
mov    %r15,%rdi
xor    %esi,%esi
call   1050 <memset@plt>
movsd  (%rsp),%xmm3
movsd  0x8(%rsp),%xmm1
mov    0x20(%rsp),%esi
test   %esi,%esi
mov    0x38(%rsp),%rdx
jle    14f2 <rndsplanalysis+0x392>
xorps  %xmm0,%xmm0
cvtsi2sd %ebx,%xmm0
mulsd  %xmm1,%xmm0
addsd  %xmm3,%xmm0
xor    %eax,%eax
jmp    14c9 <rndsplanalysis+0x369>
add    $0x1,%rax
cmp    %rax,%rdx
je     14f2 <rndsplanalysis+0x392>
movsd  0x0(%r13,%rax,8),%xmm2
ucomisd %xmm3,%xmm2
jb     14c0 <rndsplanalysis+0x360>
ucomisd %xmm2,%xmm0
jb     14c0 <rndsplanalysis+0x360>
subsd  %xmm3,%xmm2
divsd  %xmm1,%xmm2
cvttsd2si %xmm2,%ecx
movslq %ecx,%rcx
addl   $0x1,(%r15,%rcx,4)
jmp    14c0 <rndsplanalysis+0x360>
cmpl   $0x0,0x24(%rsp)
je     1564 <rndsplanalysis+0x404>
lea    0xb30(%rip),%rdi
mov    %ebx,%r13d
xor    %ebx,%ebx
xor    %eax,%eax
call   1040 <printf@plt>
lea    0xb22(%rip),%rdi
movsd  (%rsp),%xmm0
movsd  0x8(%rsp),%xmm1
mov    %r13d,%esi
mov    $0x2,%al
call   1040 <printf@plt>
movq   0x0(%rbp),%xmm0
movq   0x8(%rbp),%xmm1
movq   0x10(%rbp),%xmm2
lea    0xb10(%rip),%rdi
mov    $0x3,%al
call   1040 <printf@plt>
mov    $0xa,%edi
call   1030 <putchar@plt>
test   %r13d,%r13d
jle    1573 <rndsplanalysis+0x413>
mov    %r13d,%edi
cmp    $0x8,%r13d
jae    157d <rndsplanalysis+0x41d>
xor    %eax,%eax
jmp    16c0 <rndsplanalysis+0x560>
add    $0x78,%rsp
pop    %rbx
pop    %r12
pop    %r13
pop    %r14
pop    %r15
pop    %rbp
ret
mov    $0x1,%ebp
jmp    17cb <rndsplanalysis+0x66b>
mov    %r12d,%eax
and    $0xfffffff8,%eax
lea    -0x8(%rax),%rdx
mov    %rdx,%rcx
shr    $0x3,%rcx
add    $0x1,%rcx
test   %rdx,%rdx
je     17e9 <rndsplanalysis+0x689>
mov    %rcx,%rsi
and    $0xfffffffffffffffe,%rsi
pxor   %xmm0,%xmm0
xor    %edx,%edx
pxor   %xmm1,%xmm1
nopl   0x0(%rax)
movdqu (%r15,%rdx,4),%xmm2
movdqu 0x10(%r15,%rdx,4),%xmm3
movdqu 0x20(%r15,%rdx,4),%xmm4
movdqu 0x30(%r15,%rdx,4),%xmm5
movdqa %xmm2,%xmm6
pcmpgtd %xmm0,%xmm6
pand   %xmm6,%xmm2
pandn  %xmm0,%xmm6
por    %xmm2,%xmm6
movdqa %xmm3,%xmm2
pcmpgtd %xmm1,%xmm2
pand   %xmm2,%xmm3
pandn  %xmm1,%xmm2
por    %xmm3,%xmm2
movdqa %xmm4,%xmm0
pcmpgtd %xmm6,%xmm0
pand   %xmm0,%xmm4
pandn  %xmm6,%xmm0
por    %xmm4,%xmm0
movdqa %xmm5,%xmm1
pcmpgtd %xmm2,%xmm1
pand   %xmm1,%xmm5
pandn  %xmm2,%xmm1
por    %xmm5,%xmm1
add    $0x10,%rdx
add    $0xfffffffffffffffe,%rsi
jne    15b0 <rndsplanalysis+0x450>
test   $0x1,%cl
je     1667 <rndsplanalysis+0x507>
movdqu (%r15,%rdx,4),%xmm2
movdqu 0x10(%r15,%rdx,4),%xmm3
movdqa %xmm2,%xmm4
pcmpgtd %xmm0,%xmm4
pand   %xmm4,%xmm2
pandn  %xmm0,%xmm4
por    %xmm2,%xmm4
movdqa %xmm3,%xmm2
pcmpgtd %xmm1,%xmm2
pand   %xmm2,%xmm3
pandn  %xmm1,%xmm2
por    %xmm3,%xmm2
movdqa %xmm4,%xmm0
movdqa %xmm2,%xmm1
movdqa %xmm0,%xmm2
pcmpgtd %xmm1,%xmm2
pand   %xmm2,%xmm0
pandn  %xmm1,%xmm2
por    %xmm0,%xmm2
pshufd $0xee,%xmm2,%xmm0
movdqa %xmm2,%xmm1
pcmpgtd %xmm0,%xmm1
pand   %xmm1,%xmm2
pandn  %xmm0,%xmm1
por    %xmm2,%xmm1
pshufd $0x55,%xmm1,%xmm0
movdqa %xmm1,%xmm2
pcmpgtd %xmm0,%xmm2
pand   %xmm2,%xmm1
pandn  %xmm0,%xmm2
por    %xmm1,%xmm2
movd   %xmm2,%ebx
cmp    %r12,%rax
je     16d2 <rndsplanalysis+0x572>
cs nopw 0x0(%rax,%rax,1)
mov    (%r15,%rax,4),%ecx
cmp    %ebx,%ecx
cmovg  %ecx,%ebx
add    $0x1,%rax
cmp    %rax,%r12
jne    16c0 <rndsplanalysis+0x560>
mov    $0x1,%ebp
cmp    $0x33,%ebx
jl     16fb <rndsplanalysis+0x59b>
mov    $0x1,%ebp
mov    %ebx,%eax
cs nopw 0x0(%rax,%rax,1)
nopl   (%rax)
add    %ebp,%ebp
shr    %eax
cmp    $0x65,%ebx
mov    %eax,%ebx
ja     16f0 <rndsplanalysis+0x590>
test   %edi,%edi
jle    17cb <rndsplanalysis+0x66b>
xor    %r13d,%r13d
cs nopw 0x0(%rax,%rax,1)
xorps  %xmm1,%xmm1
cvtsi2sd %r13d,%xmm1
addsd  0x8e0(%rip),%xmm1
movaps 0x8f9(%rip),%xmm0
movaps %xmm0,0x60(%rsp)
movaps %xmm0,0x50(%rsp)
movaps %xmm0,0x40(%rsp)
movl   $0x20202020,0x6f(%rsp)
20
mov    (%r15,%r13,4),%ebx
mov    %ebx,%eax
cltd
idiv   %ebp
test   %eax,%eax
jle    1768 <rndsplanalysis+0x608>
mov    %eax,%edx
lea    0x40(%rsp),%rdi
mov    $0x2b,%esi
movsd  %xmm1,0x10(%rsp)
call   1050 <memset@plt>
movsd  0x10(%rsp),%xmm1
mov    (%r14,%r13,4),%eax
cltd
idiv   %ebp
lea    -0x1(%rax),%ecx
cmp    $0x30,%ecx
ja     177e <rndsplanalysis+0x61e>
mov    %eax,%eax
movb   $0x2a,0x40(%rsp,%rax,1)
mulsd  0x8(%rsp),%xmm1
addsd  (%rsp),%xmm1
lea    0x8dc(%rip),%rdi
movapd %xmm1,%xmm0
mov    %ebx,%esi
mov    $0x1,%al
call   1040 <printf@plt>
xor    %ebx,%ebx
nop
movsbl 0x40(%rsp,%rbx,1),%edi
call   1030 <putchar@plt>
add    $0x1,%rbx
cmp    $0x33,%rbx
jne    17a0 <rndsplanalysis+0x640>
mov    $0xa,%edi
call   1030 <putchar@plt>
add    $0x1,%r13
cmp    %r12,%r13
jne    1710 <rndsplanalysis+0x5b0>
lea    0x8a6(%rip),%rdi
mov    %ebp,%esi
xor    %eax,%eax
add    $0x78,%rsp
pop    %rbx
pop    %r12
pop    %r13
pop    %r14
pop    %r15
pop    %rbp
jmp    1040 <printf@plt>
pxor   %xmm0,%xmm0
xor    %edx,%edx
pxor   %xmm1,%xmm1
test   $0x1,%cl
jne    162a <rndsplanalysis+0x4ca>
jmp    1667 <rndsplanalysis+0x507>

LLVM IR (-O0):
@.str = [5 x i8] c"n=%d\00"
@.str.1 = [25 x i8] c"\0Ax0=%5.3lf h=%5.3lf m=%d\00"
@.str.2 = [30 x i8] c"\0A a=%5.3lf s=%5.3lf t=%5.3lf \00"
@.str.3 = [2 x i8] c"\0A\00"
@.str.4 = [12 x i8] c"%5.3lf %7d \00"
@.str.5 = [3 x i8] c"%c\00"
@.str.6 = [18 x i8] c"the ratio is 1:%d\00"
define void @rndsplanalysis(double* %0, i32 %1, double %2, double %3, i32 %4, i32 %5, double* %6, i32* %7, i32* %8) {
%10 = alloca double*
%11 = alloca i32
%12 = alloca double
%13 = alloca double
%14 = alloca i32
%15 = alloca i32
%16 = alloca double*
%17 = alloca i32*
%18 = alloca i32*
%19 = alloca i32
%20 = alloca i32
%21 = alloca i32
%22 = alloca i32
%23 = alloca double
%24 = alloca [51 x i8]
store double* %0, double** %10
store i32 %1, i32* %11
store double %2, double* %12
store double %3, double* %13
store i32 %4, i32* %14
store i32 %5, i32* %15
store double* %6, double** %16
store i32* %7, i32** %17
store i32* %8, i32** %18
store i32 0, i32* %19
%25 = load double*, double** %16
%26 = getelementptr inbounds double, double* %25, i64 0
store double 0.000000e+00, double* %26
br label %27
27: ; preds = %41, %9
%28 = load i32, i32* %19
%29 = load i32, i32* %11
%30 = icmp slt i32 %28, %29
br i1 %30, label %31, label %44
31: ; preds = %27
%32 = load double*, double** %10
%33 = load i32, i32* %19
%34 = sext i32 %33 to i64
%35 = getelementptr inbounds double, double* %32, i64 %34
%36 = load double, double* %35
%37 = load double*, double** %16
%38 = getelementptr inbounds double, double* %37, i64 0
%39 = load double, double* %38
%40 = fadd double %39, %36
store double %40, double* %38
br label %41
41: ; preds = %31
%42 = load i32, i32* %19
%43 = add nsw i32 %42, 1
store i32 %43, i32* %19
br label %27
44: ; preds = %27
%45 = load i32, i32* %11
%46 = sitofp i32 %45 to double
%47 = load double*, double** %16
%48 = getelementptr inbounds double, double* %47, i64 0
%49 = load double, double* %48
%50 = fdiv double %49, %46
store double %50, double* %48
store i32 0, i32* %19
%51 = load double*, double** %16
%52 = getelementptr inbounds double, double* %51, i64 1
store double 0.000000e+00, double* %52
br label %53
53: ; preds = %73, %44
%54 = load i32, i32* %19
%55 = load i32, i32* %11
%56 = icmp slt i32 %54, %55
br i1 %56, label %57, label %76
57: ; preds = %53
%58 = load double*, double** %10
%59 = load i32, i32* %19
%60 = sext i32 %59 to i64
%61 = getelementptr inbounds double, double* %58, i64 %60
%62 = load double, double* %61
%63 = load double*, double** %16
%64 = getelementptr inbounds double, double* %63, i64 0
%65 = load double, double* %64
%66 = fsub double %62, %65
%67 = call i64 @pow(double %66, i32 2)
%68 = sitofp i64 %67 to double
%69 = load double*, double** %16
%70 = getelementptr inbounds double, double* %69, i64 1
%71 = load double, double* %70
%72 = fadd double %71, %68
store double %72, double* %70
br label %73
73: ; preds = %57
%74 = load i32, i32* %19
%75 = add nsw i32 %74, 1
store i32 %75, i32* %19
br label %53
76: ; preds = %53
%77 = load i32, i32* %11
%78 = sitofp i32 %77 to double
%79 = load double*, double** %16
%80 = getelementptr inbounds double, double* %79, i64 1
%81 = load double, double* %80
%82 = fdiv double %81, %78
store double %82, double* %80
%83 = load double*, double** %16
%84 = getelementptr inbounds double, double* %83, i64 1
%85 = load double, double* %84
%86 = call double @sqrt(double %85)
%87 = load double*, double** %16
%88 = getelementptr inbounds double, double* %87, i64 2
store double %86, double* %88
store i32 0, i32* %19
br label %89
89: ; preds = %130, %76
%90 = load i32, i32* %19
%91 = load i32, i32* %14
%92 = icmp slt i32 %90, %91
br i1 %92, label %93, label %133
93: ; preds = %89
%94 = load double, double* %12
%95 = load i32, i32* %19
%96 = sitofp i32 %95 to double
%97 = fadd double %96, 5.000000e-01
%98 = load double, double* %13
%99 = call double @llvm.fmuladd.f64(double %97, double %98, double %94)
%100 = load double*, double** %16
%101 = getelementptr inbounds double, double* %100, i64 0
%102 = load double, double* %101
%103 = fsub double %99, %102
store double %103, double* %23
%104 = load double, double* %23
%105 = fneg double %104
%106 = load double, double* %23
%107 = fmul double %105, %106
%108 = load double*, double** %16
%109 = getelementptr inbounds double, double* %108, i64 1
%110 = load double, double* %109
%111 = fmul double 2.000000e+00, %110
%112 = fdiv double %107, %111
%113 = call double @exp(double %112)
store double %113, double* %23
%114 = load i32, i32* %11
%115 = sitofp i32 %114 to double
%116 = load double, double* %23
%117 = fmul double %115, %116
%118 = load double, double* %13
%119 = fmul double %117, %118
%120 = load double*, double** %16
%121 = getelementptr inbounds double, double* %120, i64 2
%122 = load double, double* %121
%123 = fmul double %122, 2.506600e+00
%124 = fdiv double %119, %123
%125 = fptosi double %124 to i32
%126 = load i32*, i32** %17
%127 = load i32, i32* %19
%128 = sext i32 %127 to i64
%129 = getelementptr inbounds i32, i32* %126, i64 %128
store i32 %125, i32* %129
br label %130
130: ; preds = %93
%131 = load i32, i32* %19
%132 = add nsw i32 %131, 1
store i32 %132, i32* %19
br label %89
133: ; preds = %89
store i32 0, i32* %19
br label %134
134: ; preds = %143, %133
%135 = load i32, i32* %19
%136 = load i32, i32* %14
%137 = icmp slt i32 %135, %136
br i1 %137, label %138, label %146
138: ; preds = %134
%139 = load i32*, i32** %18
%140 = load i32, i32* %19
%141 = sext i32 %140 to i64
%142 = getelementptr inbounds i32, i32* %139, i64 %141
store i32 0, i32* %142
br label %143
143: ; preds = %138
%144 = load i32, i32* %19
%145 = add nsw i32 %144, 1
store i32 %145, i32* %19
br label %134
146: ; preds = %134
%147 = load double, double* %12
%148 = load i32, i32* %14
%149 = sitofp i32 %148 to double
%150 = load double, double* %13
%151 = call double @llvm.fmuladd.f64(double %149, double %150, double %147)
store double %151, double* %23
store i32 0, i32* %19
br label %152
152: ; preds = %190, %146
%153 = load i32, i32* %19
%154 = load i32, i32* %11
%155 = icmp slt i32 %153, %154
br i1 %155, label %156, label %193
156: ; preds = %152
%157 = load double*, double** %10
%158 = load i32, i32* %19
%159 = sext i32 %158 to i64
%160 = getelementptr inbounds double, double* %157, i64 %159
%161 = load double, double* %160
%162 = load double, double* %12
%163 = fcmp oge double %161, %162
br i1 %163, label %164, label %189
164: ; preds = %156
%165 = load double*, double** %10
%166 = load i32, i32* %19
%167 = sext i32 %166 to i64
%168 = getelementptr inbounds double, double* %165, i64 %167
%169 = load double, double* %168
%170 = load double, double* %23
%171 = fcmp ole double %169, %170
br i1 %171, label %172, label %189
172: ; preds = %164
%173 = load double*, double** %10
%174 = load i32, i32* %19
%175 = sext i32 %174 to i64
%176 = getelementptr inbounds double, double* %173, i64 %175
%177 = load double, double* %176
%178 = load double, double* %12
%179 = fsub double %177, %178
%180 = load double, double* %13
%181 = fdiv double %179, %180
%182 = fptosi double %181 to i32
store i32 %182, i32* %20
%183 = load i32*, i32** %18
%184 = load i32, i32* %20
%185 = sext i32 %184 to i64
%186 = getelementptr inbounds i32, i32* %183, i64 %185
%187 = load i32, i32* %186
%188 = add nsw i32 %187, 1
store i32 %188, i32* %186
br label %189
189: ; preds = %172, %164, %156
br label %190
190: ; preds = %189
%191 = load i32, i32* %19
%192 = add nsw i32 %191, 1
store i32 %192, i32* %19
br label %152
193: ; preds = %152
%194 = load i32, i32* %15
%195 = icmp eq i32 %194, 0
br i1 %195, label %196, label %197
196: ; preds = %193
br label %333
197: ; preds = %193
%198 = load i32, i32* %11
%199 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([5 x i8], [5 x i8]* @.str, i64 0, i64 0), i32 %198)
%200 = load double, double* %12
%201 = load double, double* %13
%202 = load i32, i32* %14
%203 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([25 x i8], [25 x i8]* @.str.1, i64 0, i64 0), double %200, double %201, i32 %202)
%204 = load double*, double** %16
%205 = getelementptr inbounds double, double* %204, i64 0
%206 = load double, double* %205
%207 = load double*, double** %16
%208 = getelementptr inbounds double, double* %207, i64 1
%209 = load double, double* %208
%210 = load double*, double** %16
%211 = getelementptr inbounds double, double* %210, i64 2
%212 = load double, double* %211
%213 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([30 x i8], [30 x i8]* @.str.2, i64 0, i64 0), double %206, double %209, double %212)
%214 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([2 x i8], [2 x i8]* @.str.3, i64 0, i64 0))
store i32 0, i32* %19
store i32 0, i32* %22
br label %215
215: ; preds = %234, %197
%216 = load i32, i32* %19
%217 = load i32, i32* %14
%218 = icmp slt i32 %216, %217
br i1 %218, label %219, label %237
219: ; preds = %215
%220 = load i32*, i32** %18
%221 = load i32, i32* %19
%222 = sext i32 %221 to i64
%223 = getelementptr inbounds i32, i32* %220, i64 %222
%224 = load i32, i32* %223
%225 = load i32, i32* %22
%226 = icmp sgt i32 %224, %225
br i1 %226, label %227, label %233
227: ; preds = %219
%228 = load i32*, i32** %18
%229 = load i32, i32* %19
%230 = sext i32 %229 to i64
%231 = getelementptr inbounds i32, i32* %228, i64 %230
%232 = load i32, i32* %231
store i32 %232, i32* %22
br label %233
233: ; preds = %227, %219
br label %234
234: ; preds = %233
%235 = load i32, i32* %19
%236 = add nsw i32 %235, 1
store i32 %236, i32* %19
br label %215
237: ; preds = %215
store i32 1, i32* %21
br label %238
238: ; preds = %241, %237
%239 = load i32, i32* %22
%240 = icmp sgt i32 %239, 50
br i1 %240, label %241, label %246
241: ; preds = %238
%242 = load i32, i32* %21
%243 = shl i32 %242, 1
store i32 %243, i32* %21
%244 = load i32, i32* %22
%245 = ashr i32 %244, 1
store i32 %245, i32* %22
br label %238
246: ; preds = %238
store i32 0, i32* %19
br label %247
247: ; preds = %327, %246
%248 = load i32, i32* %19
%249 = load i32, i32* %14
%250 = icmp slt i32 %248, %249
br i1 %250, label %251, label %330
251: ; preds = %247
%252 = load double, double* %12
%253 = load i32, i32* %19
%254 = sitofp i32 %253 to double
%255 = fadd double %254, 5.000000e-01
%256 = load double, double* %13
%257 = call double @llvm.fmuladd.f64(double %255, double %256, double %252)
store double %257, double* %23
store i32 0, i32* %20
br label %258
258: ; preds = %265, %251
%259 = load i32, i32* %20
%260 = icmp sle i32 %259, 50
br i1 %260, label %261, label %268
261: ; preds = %258
%262 = load i32, i32* %20
%263 = sext i32 %262 to i64
%264 = getelementptr inbounds [51 x i8], [51 x i8]* %24, i64 0, i64 %263
store i8 32, i8* %264
br label %265
265: ; preds = %261
%266 = load i32, i32* %20
%267 = add nsw i32 %266, 1
store i32 %267, i32* %20
br label %258
268: ; preds = %258
%269 = load i32*, i32** %18
%270 = load i32, i32* %19
%271 = sext i32 %270 to i64
%272 = getelementptr inbounds i32, i32* %269, i64 %271
%273 = load i32, i32* %272
%274 = load i32, i32* %21
%275 = sdiv i32 %273, %274
store i32 %275, i32* %20
store i32 0, i32* %22
br label %276
276: ; preds = %284, %268
%277 = load i32, i32* %22
%278 = load i32, i32* %20
%279 = icmp slt i32 %277, %278
br i1 %279, label %280, label %287
280: ; preds = %276
%281 = load i32, i32* %22
%282 = sext i32 %281 to i64
%283 = getelementptr inbounds [51 x i8], [51 x i8]* %24, i64 0, i64 %282
store i8 43, i8* %283
br label %284
284: ; preds = %280
%285 = load i32, i32* %22
%286 = add nsw i32 %285, 1
store i32 %286, i32* %22
br label %276
287: ; preds = %276
%288 = load i32*, i32** %17
%289 = load i32, i32* %19
%290 = sext i32 %289 to i64
%291 = getelementptr inbounds i32, i32* %288, i64 %290
%292 = load i32, i32* %291
%293 = load i32, i32* %21
%294 = sdiv i32 %292, %293
store i32 %294, i32* %20
%295 = load i32, i32* %20
%296 = icmp sgt i32 %295, 0
br i1 %296, label %297, label %304
297: ; preds = %287
%298 = load i32, i32* %20
%299 = icmp slt i32 %298, 50
br i1 %299, label %300, label %304
300: ; preds = %297
%301 = load i32, i32* %20
%302 = sext i32 %301 to i64
%303 = getelementptr inbounds [51 x i8], [51 x i8]* %24, i64 0, i64 %302
store i8 42, i8* %303
br label %304
304: ; preds = %300, %297, %287
%305 = load double, double* %23
%306 = load i32*, i32** %18
%307 = load i32, i32* %19
%308 = sext i32 %307 to i64
%309 = getelementptr inbounds i32, i32* %306, i64 %308
%310 = load i32, i32* %309
%311 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([12 x i8], [12 x i8]* @.str.4, i64 0, i64 0), double %305, i32 %310)
store i32 0, i32* %20
br label %312
312: ; preds = %322, %304
%313 = load i32, i32* %20
%314 = icmp sle i32 %313, 50
br i1 %314, label %315, label %325
315: ; preds = %312
%316 = load i32, i32* %20
%317 = sext i32 %316 to i64
%318 = getelementptr inbounds [51 x i8], [51 x i8]* %24, i64 0, i64 %317
%319 = load i8, i8* %318
%320 = sext i8 %319 to i32
%321 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str.5, i64 0, i64 0), i32 %320)
br label %322
322: ; preds = %315
%323 = load i32, i32* %20
%324 = add nsw i32 %323, 1
store i32 %324, i32* %20
br label %312
325: ; preds = %312
%326 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([2 x i8], [2 x i8]* @.str.3, i64 0, i64 0))
br label %327
327: ; preds = %325
%328 = load i32, i32* %19
%329 = add nsw i32 %328, 1
store i32 %329, i32* %19
br label %247
330: ; preds = %247
%331 = load i32, i32* %21
%332 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([18 x i8], [18 x i8]* @.str.6, i64 0, i64 0), i32 %331)
br label %333
333: ; preds = %330, %196
ret void
}

LLVM IR (-O2):
@.str = [5 x i8] c"n=%d\00"
@.str.1 = [25 x i8] c"\0Ax0=%5.3lf h=%5.3lf m=%d\00"
@.str.2 = [30 x i8] c"\0A a=%5.3lf s=%5.3lf t=%5.3lf \00"
@.str.4 = [12 x i8] c"%5.3lf %7d \00"
@.str.6 = [18 x i8] c"the ratio is 1:%d\00"
define void @rndsplanalysis(double* nocapture %0, i32 %1, double %2, double %3, i32 %4, i32 %5, double* nocapture %6, i32* nocapture %7, i32* nocapture %8) {
%10 = bitcast i32* %8 to i8*
%11 = alloca [51 x i8]
%12 = getelementptr inbounds [51 x i8], [51 x i8]* %11, i64 0, i64 0
%13 = getelementptr inbounds [51 x i8], [51 x i8]* %11, i64 0, i64 0
store double 0.000000e+00, double* %6
%14 = icmp sgt i32 %1, 0
br i1 %14, label %19, label %15
15: ; preds = %9
%16 = sitofp i32 %1 to double
%17 = fdiv double 0.000000e+00, %16
store double %17, double* %6
%18 = getelementptr inbounds double, double* %6, i64 1
br label %117
19: ; preds = %9
%20 = zext i32 %1 to i64
%21 = add nsw i64 %20, -1
%22 = and i64 %20, 3
%23 = icmp ult i64 %21, 3
br i1 %23, label %48, label %24
24: ; preds = %19
%25 = and i64 %20, 4294967292
br label %26
26: ; preds = %26, %24
%27 = phi double [ 0.000000e+00, %24 ], [ %44, %26 ]
%28 = phi i64 [ 0, %24 ], [ %45, %26 ]
%29 = phi i64 [ 0, %24 ], [ %46, %26 ]
%30 = getelementptr inbounds double, double* %0, i64 %28
%31 = load double, double* %30
%32 = fadd double %31, %27
store double %32, double* %6
%33 = or i64 %28, 1
%34 = getelementptr inbounds double, double* %0, i64 %33
%35 = load double, double* %34
%36 = fadd double %35, %32
store double %36, double* %6
%37 = or i64 %28, 2
%38 = getelementptr inbounds double, double* %0, i64 %37
%39 = load double, double* %38
%40 = fadd double %39, %36
store double %40, double* %6
%41 = or i64 %28, 3
%42 = getelementptr inbounds double, double* %0, i64 %41
%43 = load double, double* %42
%44 = fadd double %43, %40
store double %44, double* %6
%45 = add nuw nsw i64 %28, 4
%46 = add i64 %29, 4
%47 = icmp eq i64 %46, %25
br i1 %47, label %48, label %26
48: ; preds = %26, %19
%49 = phi double [ undef, %19 ], [ %44, %26 ]
%50 = phi double [ 0.000000e+00, %19 ], [ %44, %26 ]
%51 = phi i64 [ 0, %19 ], [ %45, %26 ]
%52 = icmp eq i64 %22, 0
br i1 %52, label %63, label %53
53: ; preds = %48, %53
%54 = phi double [ %59, %53 ], [ %50, %48 ]
%55 = phi i64 [ %60, %53 ], [ %51, %48 ]
%56 = phi i64 [ %61, %53 ], [ 0, %48 ]
%57 = getelementptr inbounds double, double* %0, i64 %55
%58 = load double, double* %57
%59 = fadd double %58, %54
store double %59, double* %6
%60 = add nuw nsw i64 %55, 1
%61 = add i64 %56, 1
%62 = icmp eq i64 %61, %22
br i1 %62, label %63, label %53
63: ; preds = %53, %48
%64 = phi double [ %49, %48 ], [ %59, %53 ]
%65 = sitofp i32 %1 to double
%66 = fdiv double %64, %65
store double %66, double* %6
%67 = getelementptr inbounds double, double* %6, i64 1
store double 0.000000e+00, double* %67
br i1 %14, label %68, label %117
68: ; preds = %63
%69 = load double, double* %0
%70 = fsub double %69, %66
%71 = tail call i64 @pow(double %70, i32 2)
%72 = sitofp i64 %71 to double
%73 = load double, double* %67
%74 = fadd double %73, %72
store double %74, double* %67
%75 = icmp eq i32 %1, 1
br i1 %75, label %117, label %76
76: ; preds = %68
%77 = and i64 %21, 1
%78 = icmp eq i32 %1, 2
br i1 %78, label %104, label %79
79: ; preds = %76
%80 = and i64 %21, -2
br label %81
81: ; preds = %81, %79
%82 = phi i64 [ 1, %79 ], [ %101, %81 ]
%83 = phi i64 [ 0, %79 ], [ %102, %81 ]
%84 = load double, double* %6
%85 = getelementptr inbounds double, double* %0, i64 %82
%86 = load double, double* %85
%87 = fsub double %86, %84
%88 = tail call i64 @pow(double %87, i32 2)
%89 = sitofp i64 %88 to double
%90 = load double, double* %67
%91 = fadd double %90, %89
store double %91, double* %67
%92 = add nuw nsw i64 %82, 1
%93 = load double, double* %6
%94 = getelementptr inbounds double, double* %0, i64 %92
%95 = load double, double* %94
%96 = fsub double %95, %93
%97 = tail call i64 @pow(double %96, i32 2)
%98 = sitofp i64 %97 to double
%99 = load double, double* %67
%100 = fadd double %99, %98
store double %100, double* %67
%101 = add nuw nsw i64 %82, 2
%102 = add i64 %83, 2
%103 = icmp eq i64 %102, %80
br i1 %103, label %104, label %81
104: ; preds = %81, %76
%105 = phi double [ undef, %76 ], [ %100, %81 ]
%106 = phi i64 [ 1, %76 ], [ %101, %81 ]
%107 = icmp eq i64 %77, 0
br i1 %107, label %117, label %108
108: ; preds = %104
%109 = load double, double* %6
%110 = getelementptr inbounds double, double* %0, i64 %106
%111 = load double, double* %110
%112 = fsub double %111, %109
%113 = tail call i64 @pow(double %112, i32 2)
%114 = sitofp i64 %113 to double
%115 = load double, double* %67
%116 = fadd double %115, %114
store double %116, double* %67
br label %117
117: ; preds = %108, %104, %68, %15, %63
%118 = phi double* [ %67, %63 ], [ %18, %15 ], [ %67, %68 ], [ %67, %104 ], [ %67, %108 ]
%119 = phi double [ %65, %63 ], [ %16, %15 ], [ %65, %68 ], [ %65, %104 ], [ %65, %108 ]
%120 = phi double [ 0.000000e+00, %63 ], [ 0.000000e+00, %15 ], [ %74, %68 ], [ %105, %104 ], [ %116, %108 ]
%121 = fdiv double %120, %119
store double %121, double* %118
%122 = tail call double @sqrt(double %121)
%123 = getelementptr inbounds double, double* %6, i64 2
store double %122, double* %123
%124 = icmp sgt i32 %4, 0
br i1 %124, label %125, label %154
125: ; preds = %117
%126 = zext i32 %4 to i64
br label %131
127: ; preds = %131
br i1 %124, label %128, label %154
128: ; preds = %127
%129 = zext i32 %4 to i64
%130 = shl nuw nsw i64 %129, 2
br label %154
131: ; preds = %125, %131
%132 = phi i64 [ 0, %125 ], [ %152, %131 ]
%133 = trunc i64 %132 to i32
%134 = sitofp i32 %133 to double
%135 = fadd double %134, 5.000000e-01
%136 = tail call double @llvm.fmuladd.f64(double %135, double %3, double %2)
%137 = load double, double* %6
%138 = fsub double %136, %137
%139 = fneg double %138
%140 = fmul double %138, %139
%141 = load double, double* %118
%142 = fmul double %141, 2.000000e+00
%143 = fdiv double %140, %142
%144 = tail call double @exp(double %143)
%145 = fmul double %144, %119
%146 = fmul double %145, %3
%147 = load double, double* %123
%148 = fmul double %147, 2.506600e+00
%149 = fdiv double %146, %148
%150 = fptosi double %149 to i32
%151 = getelementptr inbounds i32, i32* %7, i64 %132
store i32 %150, i32* %151
%152 = add nuw nsw i64 %132, 1
%153 = icmp eq i64 %152, %126
br i1 %153, label %127, label %131
154: ; preds = %117, %128, %127
%155 = sitofp i32 %4 to double
%156 = tail call double @llvm.fmuladd.f64(double %155, double %3, double %2)
br i1 %14, label %157, label %177
157: ; preds = %154
%158 = zext i32 %1 to i64
br label %159
159: ; preds = %157, %174
%160 = phi i64 [ 0, %157 ], [ %175, %174 ]
%161 = getelementptr inbounds double, double* %0, i64 %160
%162 = load double, double* %161
%163 = fcmp ult double %162, %2
%164 = fcmp ugt double %162, %156
%165 = select i1 %163, i1 true, i1 %164
br i1 %165, label %174, label %166
166: ; preds = %159
%167 = fsub double %162, %2
%168 = fdiv double %167, %3
%169 = fptosi double %168 to i32
%170 = sext i32 %169 to i64
%171 = getelementptr inbounds i32, i32* %8, i64 %170
%172 = load i32, i32* %171
%173 = add nsw i32 %172, 1
store i32 %173, i32* %171
br label %174
174: ; preds = %159, %166
%175 = add nuw nsw i64 %160, 1
%176 = icmp eq i64 %175, %158
br i1 %176, label %177, label %159
177: ; preds = %174, %154
%178 = icmp eq i32 %5, 0
br i1 %178, label %316, label %179
179: ; preds = %177
%180 = tail call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([5 x i8], [5 x i8]* @.str, i64 0, i64 0), i32 %1)
%181 = tail call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([25 x i8], [25 x i8]* @.str.1, i64 0, i64 0), double %2, double %3, i32 %4)
%182 = load double, double* %6
%183 = load double, double* %118
%184 = load double, double* %123
%185 = tail call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([30 x i8], [30 x i8]* @.str.2, i64 0, i64 0), double %182, double %183, double %184)
%186 = tail call i32 @putchar(i32 10)
br i1 %124, label %187, label %313
187: ; preds = %179
%188 = zext i32 %4 to i64
%189 = icmp ult i32 %4, 8
br i1 %189, label %253, label %190
190: ; preds = %187
%191 = and i64 %188, 4294967288
%192 = add nsw i64 %191, -8
%193 = lshr exact i64 %192, 3
%194 = add nuw nsw i64 %193, 1
%195 = and i64 %194, 1
%196 = icmp eq i64 %192, 0
br i1 %196, label %228, label %197
197: ; preds = %190
%198 = and i64 %194, 4611686018427387902
br label %199
199: ; preds = %199, %197
%200 = phi i64 [ 0, %197 ], [ %225, %199 ]
%201 = phi <4 x i32> [ zeroinitializer, %197 ], [ %223, %199 ]
%202 = phi <4 x i32> [ zeroinitializer, %197 ], [ %224, %199 ]
%203 = phi i64 [ 0, %197 ], [ %226, %199 ]
%204 = getelementptr inbounds i32, i32* %8, i64 %200
%205 = bitcast i32* %204 to <4 x i32>*
%206 = load <4 x i32>, <4 x i32>* %205
%207 = getelementptr inbounds i32, i32* %204, i64 4
%208 = bitcast i32* %207 to <4 x i32>*
%209 = load <4 x i32>, <4 x i32>* %208
%210 = icmp sgt <4 x i32> %206, %201
%211 = icmp sgt <4 x i32> %209, %202
%212 = select <4 x i1> %210, <4 x i32> %206, <4 x i32> %201
%213 = select <4 x i1> %211, <4 x i32> %209, <4 x i32> %202
%214 = or i64 %200, 8
%215 = getelementptr inbounds i32, i32* %8, i64 %214
%216 = bitcast i32* %215 to <4 x i32>*
%217 = load <4 x i32>, <4 x i32>* %216
%218 = getelementptr inbounds i32, i32* %215, i64 4
%219 = bitcast i32* %218 to <4 x i32>*
%220 = load <4 x i32>, <4 x i32>* %219
%221 = icmp sgt <4 x i32> %217, %212
%222 = icmp sgt <4 x i32> %220, %213
%223 = select <4 x i1> %221, <4 x i32> %217, <4 x i32> %212
%224 = select <4 x i1> %222, <4 x i32> %220, <4 x i32> %213
%225 = add nuw i64 %200, 16
%226 = add i64 %203, 2
%227 = icmp eq i64 %226, %198
br i1 %227, label %228, label %199
228: ; preds = %199, %190
%229 = phi <4 x i32> [ undef, %190 ], [ %223, %199 ]
%230 = phi <4 x i32> [ undef, %190 ], [ %224, %199 ]
%231 = phi i64 [ 0, %190 ], [ %225, %199 ]
%232 = phi <4 x i32> [ zeroinitializer, %190 ], [ %223, %199 ]
%233 = phi <4 x i32> [ zeroinitializer, %190 ], [ %224, %199 ]
%234 = icmp eq i64 %195, 0
br i1 %234, label %246, label %235
235: ; preds = %228
%236 = getelementptr inbounds i32, i32* %8, i64 %231
%237 = bitcast i32* %236 to <4 x i32>*
%238 = load <4 x i32>, <4 x i32>* %237
%239 = getelementptr inbounds i32, i32* %236, i64 4
%240 = bitcast i32* %239 to <4 x i32>*
%241 = load <4 x i32>, <4 x i32>* %240
%242 = icmp sgt <4 x i32> %238, %232
%243 = icmp sgt <4 x i32> %241, %233
%244 = select <4 x i1> %242, <4 x i32> %238, <4 x i32> %232
%245 = select <4 x i1> %243, <4 x i32> %241, <4 x i32> %233
br label %246
246: ; preds = %228, %235
%247 = phi <4 x i32> [ %229, %228 ], [ %244, %235 ]
%248 = phi <4 x i32> [ %230, %228 ], [ %245, %235 ]
%249 = icmp sgt <4 x i32> %247, %248
%250 = select <4 x i1> %249, <4 x i32> %247, <4 x i32> %248
%251 = call i32 @llvm.vector.reduce.smax.v4i32(<4 x i32> %250)
%252 = icmp eq i64 %191, %188
br i1 %252, label %256, label %253
253: ; preds = %187, %246
%254 = phi i64 [ 0, %187 ], [ %191, %246 ]
%255 = phi i32 [ 0, %187 ], [ %251, %246 ]
br label %259
256: ; preds = %259, %246
%257 = phi i32 [ %251, %246 ], [ %265, %259 ]
%258 = icmp sgt i32 %257, 50
br i1 %258, label %272, label %268
259: ; preds = %253, %259
%260 = phi i64 [ %266, %259 ], [ %254, %253 ]
%261 = phi i32 [ %265, %259 ], [ %255, %253 ]
%262 = getelementptr inbounds i32, i32* %8, i64 %260
%263 = load i32, i32* %262
%264 = icmp sgt i32 %263, %261
%265 = select i1 %264, i32 %263, i32 %261
%266 = add nuw nsw i64 %260, 1
%267 = icmp eq i64 %266, %188
br i1 %267, label %256, label %259
268: ; preds = %272, %256
%269 = phi i32 [ 1, %256 ], [ %275, %272 ]
br i1 %124, label %270, label %313
270: ; preds = %268
%271 = zext i32 %4 to i64
br label %278
272: ; preds = %256, %272
%273 = phi i32 [ %276, %272 ], [ %257, %256 ]
%274 = phi i32 [ %275, %272 ], [ 1, %256 ]
%275 = shl i32 %274, 1
%276 = lshr i32 %273, 1
%277 = icmp ugt i32 %273, 101
br i1 %277, label %272, label %268
278: ; preds = %270, %309
%279 = phi i64 [ 0, %270 ], [ %311, %309 ]
%280 = trunc i64 %279 to i32
%281 = sitofp i32 %280 to double
%282 = fadd double %281, 5.000000e-01
%283 = tail call double @llvm.fmuladd.f64(double %282, double %3, double %2)
%284 = getelementptr inbounds i32, i32* %8, i64 %279
%285 = load i32, i32* %284
%286 = sdiv i32 %285, %269
%287 = icmp sgt i32 %286, 0
br i1 %287, label %288, label %290
288: ; preds = %278
%289 = zext i32 %286 to i64
br label %290
290: ; preds = %288, %278
%291 = getelementptr inbounds i32, i32* %7, i64 %279
%292 = load i32, i32* %291
%293 = sdiv i32 %292, %269
%294 = add i32 %293, -1
%295 = icmp ult i32 %294, 49
br i1 %295, label %296, label %299
296: ; preds = %290
%297 = zext i32 %293 to i64
%298 = getelementptr inbounds [51 x i8], [51 x i8]* %11, i64 0, i64 %297
store i8 42, i8* %298
br label %299
299: ; preds = %296, %290
%300 = tail call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([12 x i8], [12 x i8]* @.str.4, i64 0, i64 0), double %283, i32 %285)
br label %301
301: ; preds = %299, %301
%302 = phi i64 [ 0, %299 ], [ %307, %301 ]
%303 = getelementptr inbounds [51 x i8], [51 x i8]* %11, i64 0, i64 %302
%304 = load i8, i8* %303
%305 = sext i8 %304 to i32
%306 = tail call i32 @putchar(i32 %305)
%307 = add nuw nsw i64 %302, 1
%308 = icmp eq i64 %307, 51
br i1 %308, label %309, label %301
309: ; preds = %301
%310 = tail call i32 @putchar(i32 10)
%311 = add nuw nsw i64 %279, 1
%312 = icmp eq i64 %311, %271
br i1 %312, label %313, label %278
313: ; preds = %309, %179, %268
%314 = phi i32 [ %269, %268 ], [ 1, %179 ], [ %269, %309 ]
%315 = tail call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([18 x i8], [18 x i8]* @.str.6, i64 0, i64 0), i32 %314)
br label %316
316: ; preds = %177, %313
ret void
}