#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 */
int /*<<< orphan*/ exit(int);
int pow(double, int);
int /*<<< orphan*/ printf(char *, ...);
double sqrt(double);
int CreateTargetMoments(int const nVar, int const nSc, unsigned short Format,
                        double **const TarMom, double **const TgMom) {
  const unsigned short PopulEstim = 1;
  const unsigned short VarForStDev = 2;
  const unsigned short KurtoseMinus3 = 4;
  const unsigned short NotScaled = 8;
  const unsigned short NotCentralMoms = 16;
  int i, j;
  if (Format & NotCentralMoms) {
    for (i = 0; i < nVar; i++) {
      TarMom[1][i] += -pow(TarMom[0][i], 2);
      TarMom[2][i] += -3 * TarMom[0][i] * TarMom[1][i] - pow(TarMom[0][i], 3);
      TarMom[3][i] += -4 * TarMom[0][i] * TarMom[2][i] -
                      6 * pow(TarMom[0][i], 2) * TarMom[1][i] -
                      pow(TarMom[0][i], 4);
      Format = NotScaled + VarForStDev;
    }
  }
  for (i = 0; i < nVar; i++) {
    if (TarMom[1][i] <= 0) {
      printf("\n\nERROR : Variance of variable %d is negative!!!\n\n", i + 1);
      exit(1);
    }
  }
  if (Format & VarForStDev) {
    for (i = 0; i < nVar; i++)
      TarMom[1][i] = sqrt(TarMom[1][i]);
  }
  if (Format & NotScaled) {
    for (i = 0; i < nVar; i++)
      for (j = 2; j < 4; j++)
        TarMom[j][i] /= pow(TarMom[1][i], j + 1);
  }
  if ((Format & KurtoseMinus3) && !(Format & PopulEstim)) {
    for (i = 0; i < nVar; i++)
      TarMom[3][i] += 3;
  }
  double N = (double)nSc;
  if (Format & PopulEstim) {
    for (i = 0; i < nVar; i++) {
      TarMom[1][i] /= sqrt(N / (N - 1));
      TarMom[2][i] *= (N - 1) * (N - 2) / N / N;
      TarMom[2][i] /= pow((N - 1) / N, 1.5);
      TarMom[3][i] += 3 * (N - 1) * (N - 1) / ((N - 2) * (N - 3));
      TarMom[3][i] *= (N - 1) * (N - 2) * (N - 3) / (N * (N + 1)) / N;
      TarMom[3][i] /= pow((N - 1) / N, 2);
    }
  }
  for (i = 0; i < nVar; i++) {
    if (TarMom[3][i] <= 1 + pow(TarMom[2][i], 2)) {
      printf("\n\nERROR : Kurtosis of variable %d is too small!!!\n\n", i + 1);
      printf("\tKurtosis must be: kurt > var^2 + skew^2/var\n\n");
      printf("\t!!! Control the format of input data !!!\n\n");
      exit(1);
    }
  }
  for (i = 0; i < nVar; i++) {
    TgMom[0][i] = 0;
    TgMom[1][i] = 1;
    for (j = 2; j < 4; j++)
      TgMom[j][i] = TarMom[j][i];
  }
  return (0);
}


x86 assembly (clang, -O0):
<CreateTargetMoments>:
push   %rbp
mov    %rsp,%rbp
sub    $0x70,%rsp
mov    %dx,%ax
mov    %edi,-0x4(%rbp)
mov    %esi,-0x8(%rbp)
mov    %ax,-0xa(%rbp)
mov    %rcx,-0x18(%rbp)
mov    %r8,-0x20(%rbp)
movw   $0x1,-0x22(%rbp)
movw   $0x2,-0x24(%rbp)
movw   $0x4,-0x26(%rbp)
movw   $0x8,-0x28(%rbp)
movw   $0x10,-0x2a(%rbp)
movzwl -0xa(%rbp),%eax
and    $0x10,%eax
cmp    $0x0,%eax
je     1351 <CreateTargetMoments+0x211>
movl   $0x0,-0x30(%rbp)
mov    -0x30(%rbp),%eax
cmp    -0x4(%rbp),%eax
jge    134c <CreateTargetMoments+0x20c>
mov    -0x18(%rbp),%rax
mov    (%rax),%rax
movslq -0x30(%rbp),%rcx
movsd  (%rax,%rcx,8),%xmm0
mov    $0x2,%edi
call   1040 <pow@plt>
mov    %eax,%ecx
xor    %eax,%eax
sub    %ecx,%eax
cvtsi2sd %eax,%xmm0
mov    -0x18(%rbp),%rax
mov    0x8(%rax),%rax
movslq -0x30(%rbp),%rcx
addsd  (%rax,%rcx,8),%xmm0
movsd  %xmm0,(%rax,%rcx,8)
mov    -0x18(%rbp),%rax
mov    (%rax),%rax
movslq -0x30(%rbp),%rcx
movsd  0xe35(%rip),%xmm0
mulsd  (%rax,%rcx,8),%xmm0
movsd  %xmm0,-0x68(%rbp)
mov    -0x18(%rbp),%rax
mov    0x8(%rax),%rax
movslq -0x30(%rbp),%rcx
movsd  (%rax,%rcx,8),%xmm0
movsd  %xmm0,-0x60(%rbp)
mov    -0x18(%rbp),%rax
mov    (%rax),%rax
movslq -0x30(%rbp),%rcx
movsd  (%rax,%rcx,8),%xmm0
mov    $0x3,%edi
call   1040 <pow@plt>
movsd  -0x68(%rbp),%xmm0
movsd  -0x60(%rbp),%xmm2
cvtsi2sd %eax,%xmm1
movq   %xmm1,%rax
movabs $0x8000000000000000,%rcx
xor    %rcx,%rax
movq   %rax,%xmm1
mulsd  %xmm2,%xmm0
addsd  %xmm1,%xmm0
mov    -0x18(%rbp),%rax
mov    0x10(%rax),%rax
movslq -0x30(%rbp),%rcx
addsd  (%rax,%rcx,8),%xmm0
movsd  %xmm0,(%rax,%rcx,8)
mov    -0x18(%rbp),%rax
mov    (%rax),%rax
movslq -0x30(%rbp),%rcx
movsd  0xd9d(%rip),%xmm0
mulsd  (%rax,%rcx,8),%xmm0
movsd  %xmm0,-0x58(%rbp)
mov    -0x18(%rbp),%rax
mov    0x10(%rax),%rax
movslq -0x30(%rbp),%rcx
movsd  (%rax,%rcx,8),%xmm0
movsd  %xmm0,-0x50(%rbp)
mov    -0x18(%rbp),%rax
mov    (%rax),%rax
movslq -0x30(%rbp),%rcx
movsd  (%rax,%rcx,8),%xmm0
mov    $0x2,%edi
call   1040 <pow@plt>
movsd  -0x58(%rbp),%xmm0
movsd  -0x50(%rbp),%xmm2
imul   $0x6,%eax,%eax
cvtsi2sd %eax,%xmm1
mov    -0x18(%rbp),%rax
mov    0x8(%rax),%rax
movslq -0x30(%rbp),%rcx
mulsd  (%rax,%rcx,8),%xmm1
movq   %xmm1,%rax
movabs $0x8000000000000000,%rcx
xor    %rcx,%rax
movq   %rax,%xmm1
mulsd  %xmm2,%xmm0
addsd  %xmm1,%xmm0
movsd  %xmm0,-0x48(%rbp)
mov    -0x18(%rbp),%rax
mov    (%rax),%rax
movslq -0x30(%rbp),%rcx
movsd  (%rax,%rcx,8),%xmm0
mov    $0x4,%edi
call   1040 <pow@plt>
movsd  -0x48(%rbp),%xmm0
cvtsi2sd %eax,%xmm1
subsd  %xmm1,%xmm0
mov    -0x18(%rbp),%rax
mov    0x18(%rax),%rax
movslq -0x30(%rbp),%rcx
addsd  (%rax,%rcx,8),%xmm0
movsd  %xmm0,(%rax,%rcx,8)
movw   $0xa,-0xa(%rbp)
mov    -0x30(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0x30(%rbp)
jmp    1192 <CreateTargetMoments+0x52>
jmp    1351 <CreateTargetMoments+0x211>
movl   $0x0,-0x30(%rbp)
mov    -0x30(%rbp),%eax
cmp    -0x4(%rbp),%eax
jge    13af <CreateTargetMoments+0x26f>
mov    -0x18(%rbp),%rax
mov    0x8(%rax),%rax
movslq -0x30(%rbp),%rcx
xorps  %xmm0,%xmm0
ucomisd (%rax,%rcx,8),%xmm0
jb     139c <CreateTargetMoments+0x25c>
mov    -0x30(%rbp),%esi
add    $0x1,%esi
lea    0xc9d(%rip),%rdi
mov    $0x0,%al
call   1030 <printf@plt>
mov    $0x1,%edi
call   1060 <exit@plt>
jmp    13a1 <CreateTargetMoments+0x261>
mov    -0x30(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0x30(%rbp)
jmp    1358 <CreateTargetMoments+0x218>
movzwl -0xa(%rbp),%eax
and    $0x2,%eax
cmp    $0x0,%eax
je     140c <CreateTargetMoments+0x2cc>
movl   $0x0,-0x30(%rbp)
mov    -0x30(%rbp),%eax
cmp    -0x4(%rbp),%eax
jge    1407 <CreateTargetMoments+0x2c7>
mov    -0x18(%rbp),%rax
mov    0x8(%rax),%rax
movslq -0x30(%rbp),%rcx
movsd  (%rax,%rcx,8),%xmm0
call   1050 <sqrt@plt>
mov    -0x18(%rbp),%rax
mov    0x8(%rax),%rax
movslq -0x30(%rbp),%rcx
movsd  %xmm0,(%rax,%rcx,8)
mov    -0x30(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0x30(%rbp)
jmp    13c6 <CreateTargetMoments+0x286>
jmp    140c <CreateTargetMoments+0x2cc>
movzwl -0xa(%rbp),%eax
and    $0x8,%eax
cmp    $0x0,%eax
je     14a4 <CreateTargetMoments+0x364>
movl   $0x0,-0x30(%rbp)
mov    -0x30(%rbp),%eax
cmp    -0x4(%rbp),%eax
jge    149f <CreateTargetMoments+0x35f>
movl   $0x2,-0x34(%rbp)
cmpl   $0x4,-0x34(%rbp)
jge    148c <CreateTargetMoments+0x34c>
mov    -0x18(%rbp),%rax
mov    0x8(%rax),%rax
movslq -0x30(%rbp),%rcx
movsd  (%rax,%rcx,8),%xmm0
mov    -0x34(%rbp),%edi
add    $0x1,%edi
call   1040 <pow@plt>
cvtsi2sd %eax,%xmm1
mov    -0x18(%rbp),%rax
movslq -0x34(%rbp),%rcx
mov    (%rax,%rcx,8),%rax
movslq -0x30(%rbp),%rcx
movsd  (%rax,%rcx,8),%xmm0
divsd  %xmm1,%xmm0
movsd  %xmm0,(%rax,%rcx,8)
mov    -0x34(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0x34(%rbp)
jmp    1436 <CreateTargetMoments+0x2f6>
jmp    1491 <CreateTargetMoments+0x351>
mov    -0x30(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0x30(%rbp)
jmp    1423 <CreateTargetMoments+0x2e3>
jmp    14a4 <CreateTargetMoments+0x364>
movzwl -0xa(%rbp),%eax
and    $0x4,%eax
cmp    $0x0,%eax
je     1508 <CreateTargetMoments+0x3c8>
movzwl -0xa(%rbp),%eax
and    $0x1,%eax
cmp    $0x0,%eax
jne    1508 <CreateTargetMoments+0x3c8>
movl   $0x0,-0x30(%rbp)
mov    -0x30(%rbp),%eax
cmp    -0x4(%rbp),%eax
jge    1503 <CreateTargetMoments+0x3c3>
mov    -0x18(%rbp),%rax
mov    0x18(%rax),%rax
movslq -0x30(%rbp),%rcx
movsd  0xb15(%rip),%xmm0
addsd  (%rax,%rcx,8),%xmm0
movsd  %xmm0,(%rax,%rcx,8)
mov    -0x30(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0x30(%rbp)
jmp    14cb <CreateTargetMoments+0x38b>
jmp    1508 <CreateTargetMoments+0x3c8>
cvtsi2sdl -0x8(%rbp),%xmm0
movsd  %xmm0,-0x40(%rbp)
movzwl -0xa(%rbp),%eax
and    $0x1,%eax
cmp    $0x0,%eax
je     1728 <CreateTargetMoments+0x5e8>
movl   $0x0,-0x30(%rbp)
mov    -0x30(%rbp),%eax
cmp    -0x4(%rbp),%eax
jge    1723 <CreateTargetMoments+0x5e3>
movsd  -0x40(%rbp),%xmm0
movsd  -0x40(%rbp),%xmm1
movsd  0xac1(%rip),%xmm2
subsd  %xmm2,%xmm1
divsd  %xmm1,%xmm0
call   1050 <sqrt@plt>
movaps %xmm0,%xmm1
mov    -0x18(%rbp),%rax
mov    0x8(%rax),%rax
movslq -0x30(%rbp),%rcx
movsd  (%rax,%rcx,8),%xmm0
divsd  %xmm1,%xmm0
movsd  %xmm0,(%rax,%rcx,8)
movsd  -0x40(%rbp),%xmm0
movsd  0xa8a(%rip),%xmm1
subsd  %xmm1,%xmm0
movsd  -0x40(%rbp),%xmm1
movsd  0xa81(%rip),%xmm2
subsd  %xmm2,%xmm1
mulsd  %xmm1,%xmm0
divsd  -0x40(%rbp),%xmm0
divsd  -0x40(%rbp),%xmm0
mov    -0x18(%rbp),%rax
mov    0x10(%rax),%rax
movslq -0x30(%rbp),%rcx
mulsd  (%rax,%rcx,8),%xmm0
movsd  %xmm0,(%rax,%rcx,8)
movsd  -0x40(%rbp),%xmm0
movsd  0xa44(%rip),%xmm1
subsd  %xmm1,%xmm0
divsd  -0x40(%rbp),%xmm0
mov    $0x1,%edi
call   1040 <pow@plt>
cvtsi2sd %eax,%xmm1
mov    -0x18(%rbp),%rax
mov    0x10(%rax),%rax
movslq -0x30(%rbp),%rcx
movsd  (%rax,%rcx,8),%xmm0
divsd  %xmm1,%xmm0
movsd  %xmm0,(%rax,%rcx,8)
movsd  -0x40(%rbp),%xmm1
movsd  0xa06(%rip),%xmm0
subsd  %xmm0,%xmm1
movsd  0x9f2(%rip),%xmm0
mulsd  %xmm1,%xmm0
movsd  -0x40(%rbp),%xmm1
movsd  0x9e9(%rip),%xmm2
subsd  %xmm2,%xmm1
mulsd  %xmm1,%xmm0
movsd  -0x40(%rbp),%xmm1
movsd  0x9dc(%rip),%xmm2
subsd  %xmm2,%xmm1
movsd  -0x40(%rbp),%xmm2
movsd  0x9bb(%rip),%xmm3
subsd  %xmm3,%xmm2
mulsd  %xmm2,%xmm1
divsd  %xmm1,%xmm0
mov    -0x18(%rbp),%rax
mov    0x18(%rax),%rax
movslq -0x30(%rbp),%rcx
addsd  (%rax,%rcx,8),%xmm0
movsd  %xmm0,(%rax,%rcx,8)
movsd  -0x40(%rbp),%xmm0
movsd  0x994(%rip),%xmm1
subsd  %xmm1,%xmm0
movsd  -0x40(%rbp),%xmm1
movsd  0x98b(%rip),%xmm2
subsd  %xmm2,%xmm1
mulsd  %xmm1,%xmm0
movsd  -0x40(%rbp),%xmm1
movsd  0x966(%rip),%xmm2
subsd  %xmm2,%xmm1
mulsd  %xmm1,%xmm0
movsd  -0x40(%rbp),%xmm1
movsd  0x959(%rip),%xmm2
addsd  -0x40(%rbp),%xmm2
mulsd  %xmm2,%xmm1
divsd  %xmm1,%xmm0
divsd  -0x40(%rbp),%xmm0
mov    -0x18(%rbp),%rax
mov    0x18(%rax),%rax
movslq -0x30(%rbp),%rcx
mulsd  (%rax,%rcx,8),%xmm0
movsd  %xmm0,(%rax,%rcx,8)
movsd  -0x40(%rbp),%xmm0
movsd  0x924(%rip),%xmm1
subsd  %xmm1,%xmm0
divsd  -0x40(%rbp),%xmm0
mov    $0x2,%edi
call   1040 <pow@plt>
cvtsi2sd %eax,%xmm1
mov    -0x18(%rbp),%rax
mov    0x18(%rax),%rax
movslq -0x30(%rbp),%rcx
movsd  (%rax,%rcx,8),%xmm0
divsd  %xmm1,%xmm0
movsd  %xmm0,(%rax,%rcx,8)
mov    -0x30(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0x30(%rbp)
jmp    1529 <CreateTargetMoments+0x3e9>
jmp    1728 <CreateTargetMoments+0x5e8>
movl   $0x0,-0x30(%rbp)
mov    -0x30(%rbp),%eax
cmp    -0x4(%rbp),%eax
jge    17cf <CreateTargetMoments+0x68f>
mov    -0x18(%rbp),%rax
mov    0x18(%rax),%rax
movslq -0x30(%rbp),%rcx
movsd  (%rax,%rcx,8),%xmm0
movsd  %xmm0,-0x70(%rbp)
mov    -0x18(%rbp),%rax
mov    0x10(%rax),%rax
movslq -0x30(%rbp),%rcx
movsd  (%rax,%rcx,8),%xmm0
mov    $0x2,%edi
call   1040 <pow@plt>
movsd  -0x70(%rbp),%xmm1
add    $0x1,%eax
cvtsi2sd %eax,%xmm0
ucomisd %xmm1,%xmm0
jb     17bc <CreateTargetMoments+0x67c>
mov    -0x30(%rbp),%esi
add    $0x1,%esi
lea    0x8cc(%rip),%rdi
mov    $0x0,%al
call   1030 <printf@plt>
lea    0x8f2(%rip),%rdi
mov    $0x0,%al
call   1030 <printf@plt>
lea    0x913(%rip),%rdi
mov    $0x0,%al
call   1030 <printf@plt>
mov    $0x1,%edi
call   1060 <exit@plt>
jmp    17c1 <CreateTargetMoments+0x681>
mov    -0x30(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0x30(%rbp)
jmp    172f <CreateTargetMoments+0x5ef>
movl   $0x0,-0x30(%rbp)
mov    -0x30(%rbp),%eax
cmp    -0x4(%rbp),%eax
jge    186a <CreateTargetMoments+0x72a>
mov    -0x20(%rbp),%rax
mov    (%rax),%rax
movslq -0x30(%rbp),%rcx
xorps  %xmm0,%xmm0
movsd  %xmm0,(%rax,%rcx,8)
mov    -0x20(%rbp),%rax
mov    0x8(%rax),%rax
movslq -0x30(%rbp),%rcx
movsd  0x7ff(%rip),%xmm0
movsd  %xmm0,(%rax,%rcx,8)
movl   $0x2,-0x34(%rbp)
cmpl   $0x4,-0x34(%rbp)
jge    1857 <CreateTargetMoments+0x717>
mov    -0x18(%rbp),%rax
movslq -0x34(%rbp),%rcx
mov    (%rax,%rcx,8),%rax
movslq -0x30(%rbp),%rcx
movsd  (%rax,%rcx,8),%xmm0
mov    -0x20(%rbp),%rax
movslq -0x34(%rbp),%rcx
mov    (%rax,%rcx,8),%rax
movslq -0x30(%rbp),%rcx
movsd  %xmm0,(%rax,%rcx,8)
mov    -0x34(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0x34(%rbp)
jmp    1815 <CreateTargetMoments+0x6d5>
jmp    185c <CreateTargetMoments+0x71c>
mov    -0x30(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0x30(%rbp)
jmp    17d6 <CreateTargetMoments+0x696>
xor    %eax,%eax
add    $0x70,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<CreateTargetMoments>:
push   %rbp
push   %r15
push   %r14
push   %r13
push   %r12
push   %rbx
sub    $0x38,%rsp
mov    %r8,0x10(%rsp)
mov    %rcx,%rbx
mov    %esi,%r14d
mov    %edi,%r12d
mov    %edi,%r15d
test   $0x10,%dl
je     1299 <CreateTargetMoments+0x149>
test   %r12d,%r12d
jle    1299 <CreateTargetMoments+0x149>
xor    %ebp,%ebp
cs nopw 0x0(%rax,%rax,1)
nopl   (%rax)
mov    (%rbx),%rax
movsd  (%rax,%rbp,8),%xmm0
mov    $0x2,%edi
call   1050 <pow@plt>
neg    %eax
xorps  %xmm0,%xmm0
cvtsi2sd %eax,%xmm0
mov    0x8(%rbx),%rax
addsd  (%rax,%rbp,8),%xmm0
movsd  %xmm0,(%rsp)
movsd  %xmm0,(%rax,%rbp,8)
mov    (%rbx),%rax
movsd  (%rax,%rbp,8),%xmm0
movapd %xmm0,%xmm1
mulsd  0xe2e(%rip),%xmm1
movsd  %xmm1,0x8(%rsp)
mov    $0x3,%edi
call   1050 <pow@plt>
xorps  %xmm0,%xmm0
cvtsi2sd %eax,%xmm0
movsd  0x8(%rsp),%xmm1
mulsd  (%rsp),%xmm1
subsd  %xmm0,%xmm1
mov    0x10(%rbx),%rax
addsd  (%rax,%rbp,8),%xmm1
movsd  %xmm1,0x8(%rsp)
movsd  %xmm1,(%rax,%rbp,8)
mov    (%rbx),%rax
movsd  (%rax,%rbp,8),%xmm0
movapd %xmm0,%xmm1
mulsd  0xde8(%rip),%xmm1
movsd  %xmm1,(%rsp)
mov    $0x2,%edi
call   1050 <pow@plt>
add    %eax,%eax
lea    (%rax,%rax,2),%eax
xorps  %xmm0,%xmm0
cvtsi2sd %eax,%xmm0
mov    0x8(%rbx),%rax
mulsd  (%rax,%rbp,8),%xmm0
mov    (%rbx),%rax
movsd  (%rsp),%xmm1
mulsd  0x8(%rsp),%xmm1
subsd  %xmm0,%xmm1
movsd  %xmm1,(%rsp)
movsd  (%rax,%rbp,8),%xmm0
mov    $0x4,%edi
call   1050 <pow@plt>
xorps  %xmm0,%xmm0
cvtsi2sd %eax,%xmm0
movsd  (%rsp),%xmm1
subsd  %xmm0,%xmm1
mov    0x18(%rbx),%rax
addsd  (%rax,%rbp,8),%xmm1
movsd  %xmm1,(%rax,%rbp,8)
add    $0x1,%rbp
cmp    %rbp,%r15
jne    1190 <CreateTargetMoments+0x40>
mov    $0xa,%dx
test   %r12d,%r12d
jle    1837 <CreateTargetMoments+0x6e7>
mov    0x8(%rbx),%rax
xor    %esi,%esi
xorpd  %xmm0,%xmm0
nopl   0x0(%rax)
ucomisd (%rax,%rsi,8),%xmm0
jae    1859 <CreateTargetMoments+0x709>
add    $0x1,%rsi
cmp    %rsi,%r15
jne    12b0 <CreateTargetMoments+0x160>
mov    %r14d,0x8(%rsp)
movzwl %dx,%eax
mov    %eax,(%rsp)
test   $0x2,%al
je     132f <CreateTargetMoments+0x1df>
test   %r12d,%r12d
jle    132f <CreateTargetMoments+0x1df>
mov    0x8(%rbx),%rax
lea    -0x1(%r15),%rcx
mov    %r15d,%r13d
and    $0x3,%r13d
cmp    $0x3,%rcx
jae    13d2 <CreateTargetMoments+0x282>
xor    %r14d,%r14d
test   %r13,%r13
je     132f <CreateTargetMoments+0x1df>
xorpd  %xmm1,%xmm1
jmp    131d <CreateTargetMoments+0x1cd>
nop
call   1060 <sqrt@plt>
xorpd  %xmm1,%xmm1
mov    0x8(%rbx),%rax
movsd  %xmm0,(%rax,%r14,8)
add    $0x1,%r14
add    $0xffffffffffffffff,%r13
je     132f <CreateTargetMoments+0x1df>
movsd  (%rax,%r14,8),%xmm0
ucomisd %xmm1,%xmm0
jb     1300 <CreateTargetMoments+0x1b0>
sqrtsd %xmm0,%xmm0
jmp    1309 <CreateTargetMoments+0x1b9>
mov    (%rsp),%r14d
test   $0x8,%r14b
je     13a1 <CreateTargetMoments+0x251>
test   %r12d,%r12d
jle    13a1 <CreateTargetMoments+0x251>
xor    %ebp,%ebp
mov    0x8(%rbx),%rax
movsd  (%rax,%rbp,8),%xmm0
mov    $0x3,%edi
call   1050 <pow@plt>
xorps  %xmm0,%xmm0
cvtsi2sd %eax,%xmm0
mov    0x10(%rbx),%rax
movsd  (%rax,%rbp,8),%xmm1
divsd  %xmm0,%xmm1
movsd  %xmm1,(%rax,%rbp,8)
mov    0x8(%rbx),%rax
movsd  (%rax,%rbp,8),%xmm0
mov    $0x4,%edi
call   1050 <pow@plt>
xorps  %xmm0,%xmm0
cvtsi2sd %eax,%xmm0
mov    0x18(%rbx),%rax
movsd  (%rax,%rbp,8),%xmm1
divsd  %xmm0,%xmm1
movsd  %xmm1,(%rax,%rbp,8)
add    $0x1,%rbp
cmp    %rbp,%r15
jne    1340 <CreateTargetMoments+0x1f0>
mov    %r14d,%eax
and    $0x5,%eax
cmp    $0x4,%eax
mov    0x8(%rsp),%ebp
jne    1597 <CreateTargetMoments+0x447>
test   %r12d,%r12d
jle    1597 <CreateTargetMoments+0x447>
mov    0x18(%rbx),%rax
cmp    $0x4,%r15d
jae    14be <CreateTargetMoments+0x36e>
xor    %ecx,%ecx
jmp    1569 <CreateTargetMoments+0x419>
mov    %r15d,%ebp
and    $0xfffffffc,%ebp
xor    %r14d,%r14d
xorpd  %xmm1,%xmm1
jmp    1411 <CreateTargetMoments+0x2c1>
cs nopw 0x0(%rax,%rax,1)
nopl   0x0(%rax,%rax,1)
call   1060 <sqrt@plt>
xorpd  %xmm1,%xmm1
mov    0x8(%rbx),%rax
movsd  %xmm0,0x18(%rax,%r14,8)
add    $0x4,%r14
cmp    %r14,%rbp
je     12f4 <CreateTargetMoments+0x1a4>
movsd  (%rax,%r14,8),%xmm0
ucomisd %xmm1,%xmm0
jb     1430 <CreateTargetMoments+0x2e0>
sqrtsd %xmm0,%xmm0
jmp    1439 <CreateTargetMoments+0x2e9>
cs nopw 0x0(%rax,%rax,1)
nopl   (%rax)
call   1060 <sqrt@plt>
xorpd  %xmm1,%xmm1
mov    0x8(%rbx),%rax
movsd  %xmm0,(%rax,%r14,8)
movsd  0x8(%rax,%r14,8),%xmm0
ucomisd %xmm1,%xmm0
jb     1460 <CreateTargetMoments+0x310>
sqrtsd %xmm0,%xmm0
jmp    1469 <CreateTargetMoments+0x319>
cs nopw 0x0(%rax,%rax,1)
call   1060 <sqrt@plt>
xorpd  %xmm1,%xmm1
mov    0x8(%rbx),%rax
movsd  %xmm0,0x8(%rax,%r14,8)
movsd  0x10(%rax,%r14,8),%xmm0
ucomisd %xmm1,%xmm0
jb     1490 <CreateTargetMoments+0x340>
sqrtsd %xmm0,%xmm0
jmp    1499 <CreateTargetMoments+0x349>
nopw   0x0(%rax,%rax,1)
call   1060 <sqrt@plt>
xorpd  %xmm1,%xmm1
mov    0x8(%rbx),%rax
movsd  %xmm0,0x10(%rax,%r14,8)
movsd  0x18(%rax,%r14,8),%xmm0
ucomisd %xmm1,%xmm0
jb     13f0 <CreateTargetMoments+0x2a0>
sqrtsd %xmm0,%xmm0
jmp    13f9 <CreateTargetMoments+0x2a9>
mov    %r15d,%ecx
and    $0xfffffffc,%ecx
lea    -0x4(%rcx),%rdx
mov    %rdx,%rsi
shr    $0x2,%rsi
add    $0x1,%rsi
test   %rdx,%rdx
je     1848 <CreateTargetMoments+0x6f8>
mov    %rsi,%rdi
and    $0xfffffffffffffffe,%rdi
xor    %edx,%edx
movapd 0xb53(%rip),%xmm0
nopl   (%rax)
movupd (%rax,%rdx,8),%xmm1
movupd 0x10(%rax,%rdx,8),%xmm2
movupd 0x20(%rax,%rdx,8),%xmm3
movupd 0x30(%rax,%rdx,8),%xmm4
addpd  %xmm0,%xmm1
addpd  %xmm0,%xmm2
movupd %xmm1,(%rax,%rdx,8)
movupd %xmm2,0x10(%rax,%rdx,8)
addpd  %xmm0,%xmm3
addpd  %xmm0,%xmm4
movupd %xmm3,0x20(%rax,%rdx,8)
movupd %xmm4,0x30(%rax,%rdx,8)
add    $0x8,%rdx
add    $0xfffffffffffffffe,%rdi
jne    14f0 <CreateTargetMoments+0x3a0>
test   $0x1,%sil
je     1564 <CreateTargetMoments+0x414>
movupd (%rax,%rdx,8),%xmm0
movupd 0x10(%rax,%rdx,8),%xmm1
movapd 0xaef(%rip),%xmm2
addpd  %xmm2,%xmm0
addpd  %xmm2,%xmm1
movupd %xmm0,(%rax,%rdx,8)
movupd %xmm1,0x10(%rax,%rdx,8)
cmp    %r15,%rcx
je     1597 <CreateTargetMoments+0x447>
movsd  0xa9f(%rip),%xmm0
cs nopw 0x0(%rax,%rax,1)
nopl   0x0(%rax,%rax,1)
movsd  (%rax,%rcx,8),%xmm1
addsd  %xmm0,%xmm1
movsd  %xmm1,(%rax,%rcx,8)
add    $0x1,%rcx
cmp    %rcx,%r15
jne    1580 <CreateTargetMoments+0x430>
test   $0x1,%r14b
je     1723 <CreateTargetMoments+0x5d3>
test   %r12d,%r12d
jle    1723 <CreateTargetMoments+0x5d3>
xorps  %xmm1,%xmm1
cvtsi2sd %ebp,%xmm1
movsd  0xa5f(%rip),%xmm0
addsd  %xmm1,%xmm0
movsd  0xa5b(%rip),%xmm2
addsd  %xmm1,%xmm2
movapd %xmm0,%xmm3
mulsd  %xmm2,%xmm3
movsd  0xa27(%rip),%xmm4
addsd  %xmm1,%xmm4
mulsd  %xmm4,%xmm2
mulsd  %xmm3,%xmm4
divsd  %xmm1,%xmm3
divsd  %xmm1,%xmm3
movsd  %xmm3,0x28(%rsp)
movapd %xmm0,%xmm3
divsd  %xmm1,%xmm3
movsd  %xmm3,0x8(%rsp)
movsd  0xa1f(%rip),%xmm3
addsd  %xmm1,%xmm3
mulsd  %xmm1,%xmm3
divsd  %xmm3,%xmm4
divsd  %xmm1,%xmm4
movsd  %xmm4,0x30(%rsp)
divsd  %xmm0,%xmm1
movsd  0x9e5(%rip),%xmm3
mulsd  %xmm0,%xmm3
mulsd  %xmm0,%xmm3
divsd  %xmm2,%xmm3
movsd  %xmm3,0x20(%rsp)
xor    %ebp,%ebp
movsd  %xmm1,(%rsp)
xorps  %xmm0,%xmm0
sqrtsd %xmm1,%xmm0
movsd  %xmm0,0x18(%rsp)
jmp    16fb <CreateTargetMoments+0x5ab>
cs nopw 0x0(%rax,%rax,1)
mov    0x8(%rbx),%rax
movsd  (%rax,%rbp,8),%xmm1
divsd  %xmm0,%xmm1
movsd  %xmm1,(%rax,%rbp,8)
mov    0x10(%rbx),%rax
movsd  (%rax,%rbp,8),%xmm0
mulsd  0x28(%rsp),%xmm0
movsd  %xmm0,(%rax,%rbp,8)
movsd  0x8(%rsp),%xmm0
mov    $0x1,%edi
call   1050 <pow@plt>
xorps  %xmm0,%xmm0
cvtsi2sd %eax,%xmm0
mov    0x10(%rbx),%rax
movsd  (%rax,%rbp,8),%xmm1
divsd  %xmm0,%xmm1
movsd  %xmm1,(%rax,%rbp,8)
mov    0x18(%rbx),%rax
movsd  (%rax,%rbp,8),%xmm0
addsd  0x20(%rsp),%xmm0
mulsd  0x30(%rsp),%xmm0
movsd  %xmm0,(%rax,%rbp,8)
movsd  0x8(%rsp),%xmm0
mov    $0x2,%edi
call   1050 <pow@plt>
xorps  %xmm0,%xmm0
cvtsi2sd %eax,%xmm0
mov    0x18(%rbx),%rax
movsd  (%rax,%rbp,8),%xmm1
divsd  %xmm0,%xmm1
movsd  %xmm1,(%rax,%rbp,8)
add    $0x1,%rbp
cmp    %rbp,%r15
je     1723 <CreateTargetMoments+0x5d3>
movsd  (%rsp),%xmm0
ucomisd 0x928(%rip),%xmm0
movsd  0x18(%rsp),%xmm0
jae    1660 <CreateTargetMoments+0x510>
movsd  (%rsp),%xmm0
call   1060 <sqrt@plt>
jmp    1660 <CreateTargetMoments+0x510>
test   %r12d,%r12d
jle    1837 <CreateTargetMoments+0x6e7>
xor    %ebp,%ebp
xchg   %ax,%ax
mov    0x10(%rbx),%rax
mov    0x18(%rbx),%rcx
movsd  (%rcx,%rbp,8),%xmm0
movsd  %xmm0,0x8(%rsp)
movsd  (%rax,%rbp,8),%xmm0
mov    $0x2,%edi
call   1050 <pow@plt>
add    $0x1,%eax
xorps  %xmm0,%xmm0
cvtsi2sd %eax,%xmm0
ucomisd 0x8(%rsp),%xmm0
jae    1874 <CreateTargetMoments+0x724>
add    $0x1,%rbp
cmp    %rbp,%r15
jne    1730 <CreateTargetMoments+0x5e0>
test   %r12d,%r12d
jle    1837 <CreateTargetMoments+0x6e7>
mov    0x10(%rsp),%rdi
mov    (%rdi),%rcx
mov    0x8(%rdi),%rdx
mov    0x10(%rbx),%rsi
mov    0x18(%rbx),%rax
mov    0x10(%rdi),%rbp
mov    0x18(%rdi),%rdi
movabs $0x3ff0000000000000,%r8
cmp    $0x1,%r15d
jne    17aa <CreateTargetMoments+0x65a>
xor    %ebx,%ebx
jmp    1810 <CreateTargetMoments+0x6c0>
mov    %r15d,%r9d
and    $0xfffffffe,%r9d
xor    %ebx,%ebx
cs nopw 0x0(%rax,%rax,1)
nopl   (%rax)
movq   $0x0,(%rcx,%rbx,8)
mov    %r8,(%rdx,%rbx,8)
movsd  (%rsi,%rbx,8),%xmm0
movsd  %xmm0,0x0(%rbp,%rbx,8)
movsd  (%rax,%rbx,8),%xmm0
movsd  %xmm0,(%rdi,%rbx,8)
movq   $0x0,0x8(%rcx,%rbx,8)
mov    %r8,0x8(%rdx,%rbx,8)
movsd  0x8(%rsi,%rbx,8),%xmm0
movsd  %xmm0,0x8(%rbp,%rbx,8)
movsd  0x8(%rax,%rbx,8),%xmm0
movsd  %xmm0,0x8(%rdi,%rbx,8)
add    $0x2,%rbx
cmp    %rbx,%r9
jne    17c0 <CreateTargetMoments+0x670>
test   $0x1,%r15b
je     1837 <CreateTargetMoments+0x6e7>
movq   $0x0,(%rcx,%rbx,8)
mov    %r8,(%rdx,%rbx,8)
movsd  (%rsi,%rbx,8),%xmm0
movsd  %xmm0,0x0(%rbp,%rbx,8)
movsd  (%rax,%rbx,8),%xmm0
movsd  %xmm0,(%rdi,%rbx,8)
xor    %eax,%eax
add    $0x38,%rsp
pop    %rbx
pop    %r12
pop    %r13
pop    %r14
pop    %r15
pop    %rbp
ret
xor    %edx,%edx
test   $0x1,%sil
jne    153e <CreateTargetMoments+0x3ee>
jmp    1564 <CreateTargetMoments+0x414>
add    $0x1,%esi
lea    0x7ed(%rip),%rdi
xor    %eax,%eax
call   1040 <printf@plt>
mov    $0x1,%edi
call   1070 <exit@plt>
add    $0x1,%ebp
lea    0x805(%rip),%rdi
mov    %ebp,%esi
xor    %eax,%eax
call   1040 <printf@plt>
lea    0x829(%rip),%rdi
call   1030 <puts@plt>
lea    0x84b(%rip),%rdi
call   1030 <puts@plt>
mov    $0x1,%edi
call   1070 <exit@plt>

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

LLVM IR (-O2):
@.str = [51 x i8] c"\0A\0AERROR : Variance of variable %d is negative!!!\0A\0A\00"
@.str.1 = [52 x i8] c"\0A\0AERROR : Kurtosis of variable %d is too small!!!\0A\0A\00"
@str = [46 x i8] c"\09Kurtosis must be: kurt > var^2 + skew^2/var\0A\00"
@str.4 = [43 x i8] c"\09!!! Control the format of input data !!!\0A\00"
define i32 @CreateTargetMoments(i32 %0, i32 %1, i16 zeroext %2, double** nocapture %3, double** nocapture %4) {
%6 = and i16 %2, 16
%7 = icmp ne i16 %6, 0
%8 = icmp sgt i32 %0, 0
%9 = and i1 %7, %8
br i1 %9, label %10, label %64
10: ; preds = %5
%11 = getelementptr inbounds double*, double** %3, i64 1
%12 = getelementptr inbounds double*, double** %3, i64 2
%13 = getelementptr inbounds double*, double** %3, i64 3
%14 = zext i32 %0 to i64
br label %15
15: ; preds = %10, %15
%16 = phi i64 [ 0, %10 ], [ %62, %15 ]
%17 = load double*, double** %3
%18 = getelementptr inbounds double, double* %17, i64 %16
%19 = load double, double* %18
%20 = tail call i32 @pow(double %19, i32 2)
%21 = sub nsw i32 0, %20
%22 = sitofp i32 %21 to double
%23 = load double*, double** %11
%24 = getelementptr inbounds double, double* %23, i64 %16
%25 = load double, double* %24
%26 = fadd double %25, %22
store double %26, double* %24
%27 = load double*, double** %3
%28 = getelementptr inbounds double, double* %27, i64 %16
%29 = load double, double* %28
%30 = fmul double %29, -3.000000e+00
%31 = tail call i32 @pow(double %29, i32 3)
%32 = sitofp i32 %31 to double
%33 = fneg double %32
%34 = tail call double @llvm.fmuladd.f64(double %30, double %26, double %33)
%35 = load double*, double** %12
%36 = getelementptr inbounds double, double* %35, i64 %16
%37 = load double, double* %36
%38 = fadd double %37, %34
store double %38, double* %36
%39 = load double*, double** %3
%40 = getelementptr inbounds double, double* %39, i64 %16
%41 = load double, double* %40
%42 = fmul double %41, -4.000000e+00
%43 = tail call i32 @pow(double %41, i32 2)
%44 = mul nsw i32 %43, 6
%45 = sitofp i32 %44 to double
%46 = load double*, double** %11
%47 = getelementptr inbounds double, double* %46, i64 %16
%48 = load double, double* %47
%49 = fneg double %48
%50 = fmul double %49, %45
%51 = tail call double @llvm.fmuladd.f64(double %42, double %38, double %50)
%52 = load double*, double** %3
%53 = getelementptr inbounds double, double* %52, i64 %16
%54 = load double, double* %53
%55 = tail call i32 @pow(double %54, i32 4)
%56 = sitofp i32 %55 to double
%57 = fsub double %51, %56
%58 = load double*, double** %13
%59 = getelementptr inbounds double, double* %58, i64 %16
%60 = load double, double* %59
%61 = fadd double %60, %57
store double %61, double* %59
%62 = add nuw nsw i64 %16, 1
%63 = icmp eq i64 %62, %14
br i1 %63, label %64, label %15
64: ; preds = %15, %5
%65 = phi i16 [ %2, %5 ], [ 10, %15 ]
br i1 %8, label %66, label %379
66: ; preds = %64
%67 = getelementptr inbounds double*, double** %3, i64 1
%68 = load double*, double** %67
%69 = zext i32 %0 to i64
br label %70
70: ; preds = %66, %80
%71 = phi i64 [ 0, %66 ], [ %81, %80 ]
%72 = getelementptr inbounds double, double* %68, i64 %71
%73 = load double, double* %72
%74 = fcmp ugt double %73, 0.000000e+00
br i1 %74, label %80, label %75
75: ; preds = %70
%76 = trunc i64 %71 to i32
%77 = add nuw nsw i32 %76, 1
%78 = tail call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([51 x i8], [51 x i8]* @.str, i64 0, i64 0), i32 %77)
%79 = tail call i32 @exit(i32 1)
unreachable
80: ; preds = %70
%81 = add nuw nsw i64 %71, 1
%82 = icmp eq i64 %81, %69
br i1 %82, label %83, label %70
83: ; preds = %80
%84 = zext i16 %65 to i32
%85 = and i32 %84, 2
%86 = icmp ne i32 %85, 0
%87 = and i1 %86, %8
br i1 %87, label %88, label %142
88: ; preds = %83
%89 = getelementptr inbounds double*, double** %3, i64 1
%90 = load double*, double** %89
%91 = add nsw i64 %69, -1
%92 = and i64 %69, 3
%93 = icmp ult i64 %91, 3
br i1 %93, label %126, label %94
94: ; preds = %88
%95 = and i64 %69, 4294967292
br label %96
96: ; preds = %96, %94
%97 = phi double* [ %90, %94 ], [ %121, %96 ]
%98 = phi i64 [ 0, %94 ], [ %123, %96 ]
%99 = phi i64 [ 0, %94 ], [ %124, %96 ]
%100 = getelementptr inbounds double, double* %97, i64 %98
%101 = load double, double* %100
%102 = tail call double @sqrt(double %101)
%103 = load double*, double** %89
%104 = getelementptr inbounds double, double* %103, i64 %98
store double %102, double* %104
%105 = or i64 %98, 1
%106 = getelementptr inbounds double, double* %103, i64 %105
%107 = load double, double* %106
%108 = tail call double @sqrt(double %107)
%109 = load double*, double** %89
%110 = getelementptr inbounds double, double* %109, i64 %105
store double %108, double* %110
%111 = or i64 %98, 2
%112 = getelementptr inbounds double, double* %109, i64 %111
%113 = load double, double* %112
%114 = tail call double @sqrt(double %113)
%115 = load double*, double** %89
%116 = getelementptr inbounds double, double* %115, i64 %111
store double %114, double* %116
%117 = or i64 %98, 3
%118 = getelementptr inbounds double, double* %115, i64 %117
%119 = load double, double* %118
%120 = tail call double @sqrt(double %119)
%121 = load double*, double** %89
%122 = getelementptr inbounds double, double* %121, i64 %117
store double %120, double* %122
%123 = add nuw nsw i64 %98, 4
%124 = add i64 %99, 4
%125 = icmp eq i64 %124, %95
br i1 %125, label %126, label %96
126: ; preds = %96, %88
%127 = phi double* [ %90, %88 ], [ %121, %96 ]
%128 = phi i64 [ 0, %88 ], [ %123, %96 ]
%129 = icmp eq i64 %92, 0
br i1 %129, label %142, label %130
130: ; preds = %126, %130
%131 = phi double* [ %137, %130 ], [ %127, %126 ]
%132 = phi i64 [ %139, %130 ], [ %128, %126 ]
%133 = phi i64 [ %140, %130 ], [ 0, %126 ]
%134 = getelementptr inbounds double, double* %131, i64 %132
%135 = load double, double* %134
%136 = tail call double @sqrt(double %135)
%137 = load double*, double** %89
%138 = getelementptr inbounds double, double* %137, i64 %132
store double %136, double* %138
%139 = add nuw nsw i64 %132, 1
%140 = add i64 %133, 1
%141 = icmp eq i64 %140, %92
br i1 %141, label %142, label %130
142: ; preds = %126, %130, %83
%143 = and i32 %84, 8
%144 = icmp ne i32 %143, 0
%145 = and i1 %144, %8
br i1 %145, label %146, label %173
146: ; preds = %142
%147 = getelementptr inbounds double*, double** %3, i64 1
%148 = zext i32 %0 to i64
%149 = getelementptr inbounds double*, double** %3, i64 2
%150 = getelementptr inbounds double*, double** %3, i64 3
br label %151
151: ; preds = %146, %151
%152 = phi i64 [ 0, %146 ], [ %171, %151 ]
%153 = load double*, double** %147
%154 = getelementptr inbounds double, double* %153, i64 %152
%155 = load double, double* %154
%156 = tail call i32 @pow(double %155, i32 3)
%157 = sitofp i32 %156 to double
%158 = load double*, double** %149
%159 = getelementptr inbounds double, double* %158, i64 %152
%160 = load double, double* %159
%161 = fdiv double %160, %157
store double %161, double* %159
%162 = load double*, double** %147
%163 = getelementptr inbounds double, double* %162, i64 %152
%164 = load double, double* %163
%165 = tail call i32 @pow(double %164, i32 4)
%166 = sitofp i32 %165 to double
%167 = load double*, double** %150
%168 = getelementptr inbounds double, double* %167, i64 %152
%169 = load double, double* %168
%170 = fdiv double %169, %166
store double %170, double* %168
%171 = add nuw nsw i64 %152, 1
%172 = icmp eq i64 %171, %148
br i1 %172, label %173, label %151
173: ; preds = %151, %142
%174 = and i32 %84, 1
%175 = icmp ne i32 %174, 0
%176 = and i32 %84, 5
%177 = icmp eq i32 %176, 4
%178 = and i1 %177, %8
br i1 %178, label %179, label %245
179: ; preds = %173
%180 = getelementptr inbounds double*, double** %3, i64 3
%181 = load double*, double** %180
%182 = zext i32 %0 to i64
%183 = icmp ult i32 %0, 4
br i1 %183, label %236, label %184
184: ; preds = %179
%185 = and i64 %69, 4294967292
%186 = add nsw i64 %185, -4
%187 = lshr exact i64 %186, 2
%188 = add nuw nsw i64 %187, 1
%189 = and i64 %188, 1
%190 = icmp eq i64 %186, 0
br i1 %190, label %220, label %191
191: ; preds = %184
%192 = and i64 %188, 9223372036854775806
br label %193
193: ; preds = %193, %191
%194 = phi i64 [ 0, %191 ], [ %217, %193 ]
%195 = phi i64 [ 0, %191 ], [ %218, %193 ]
%196 = getelementptr inbounds double, double* %181, i64 %194
%197 = bitcast double* %196 to <2 x double>*
%198 = load <2 x double>, <2 x double>* %197
%199 = getelementptr inbounds double, double* %196, i64 2
%200 = bitcast double* %199 to <2 x double>*
%201 = load <2 x double>, <2 x double>* %200
%202 = fadd <2 x double> %198, <double 3.000000e+00, double 3.000000e+00>
%203 = fadd <2 x double> %201, <double 3.000000e+00, double 3.000000e+00>
%204 = bitcast double* %196 to <2 x double>*
store <2 x double> %202, <2 x double>* %204
%205 = bitcast double* %199 to <2 x double>*
store <2 x double> %203, <2 x double>* %205
%206 = or i64 %194, 4
%207 = getelementptr inbounds double, double* %181, i64 %206
%208 = bitcast double* %207 to <2 x double>*
%209 = load <2 x double>, <2 x double>* %208
%210 = getelementptr inbounds double, double* %207, i64 2
%211 = bitcast double* %210 to <2 x double>*
%212 = load <2 x double>, <2 x double>* %211
%213 = fadd <2 x double> %209, <double 3.000000e+00, double 3.000000e+00>
%214 = fadd <2 x double> %212, <double 3.000000e+00, double 3.000000e+00>
%215 = bitcast double* %207 to <2 x double>*
store <2 x double> %213, <2 x double>* %215
%216 = bitcast double* %210 to <2 x double>*
store <2 x double> %214, <2 x double>* %216
%217 = add nuw i64 %194, 8
%218 = add i64 %195, 2
%219 = icmp eq i64 %218, %192
br i1 %219, label %220, label %193
220: ; preds = %193, %184
%221 = phi i64 [ 0, %184 ], [ %217, %193 ]
%222 = icmp eq i64 %189, 0
br i1 %222, label %234, label %223
223: ; preds = %220
%224 = getelementptr inbounds double, double* %181, i64 %221
%225 = bitcast double* %224 to <2 x double>*
%226 = load <2 x double>, <2 x double>* %225
%227 = getelementptr inbounds double, double* %224, i64 2
%228 = bitcast double* %227 to <2 x double>*
%229 = load <2 x double>, <2 x double>* %228
%230 = fadd <2 x double> %226, <double 3.000000e+00, double 3.000000e+00>
%231 = fadd <2 x double> %229, <double 3.000000e+00, double 3.000000e+00>
%232 = bitcast double* %224 to <2 x double>*
store <2 x double> %230, <2 x double>* %232
%233 = bitcast double* %227 to <2 x double>*
store <2 x double> %231, <2 x double>* %233
br label %234
234: ; preds = %220, %223
%235 = icmp eq i64 %185, %69
br i1 %235, label %245, label %236
236: ; preds = %179, %234
%237 = phi i64 [ 0, %179 ], [ %185, %234 ]
br label %238
238: ; preds = %236, %238
%239 = phi i64 [ %243, %238 ], [ %237, %236 ]
%240 = getelementptr inbounds double, double* %181, i64 %239
%241 = load double, double* %240
%242 = fadd double %241, 3.000000e+00
store double %242, double* %240
%243 = add nuw nsw i64 %239, 1
%244 = icmp eq i64 %243, %182
br i1 %244, label %245, label %238
245: ; preds = %238, %234, %173
%246 = sitofp i32 %1 to double
%247 = and i1 %175, %8
br i1 %247, label %248, label %300
248: ; preds = %245
%249 = fadd double %246, -1.000000e+00
%250 = fdiv double %246, %249
%251 = getelementptr inbounds double*, double** %3, i64 1
%252 = fadd double %246, -2.000000e+00
%253 = fmul double %249, %252
%254 = fdiv double %253, %246
%255 = fdiv double %254, %246
%256 = getelementptr inbounds double*, double** %3, i64 2
%257 = fdiv double %249, %246
%258 = fmul double %249, 3.000000e+00
%259 = fmul double %249, %258
%260 = fadd double %246, -3.000000e+00
%261 = fmul double %252, %260
%262 = fdiv double %259, %261
%263 = getelementptr inbounds double*, double** %3, i64 3
%264 = fmul double %260, %253
%265 = fadd double %246, 1.000000e+00
%266 = fmul double %265, %246
%267 = fdiv double %264, %266
%268 = fdiv double %267, %246
%269 = zext i32 %0 to i64
br label %270
270: ; preds = %248, %270
%271 = phi i64 [ 0, %248 ], [ %298, %270 ]
%272 = tail call double @sqrt(double %250)
%273 = load double*, double** %251
%274 = getelementptr inbounds double, double* %273, i64 %271
%275 = load double, double* %274
%276 = fdiv double %275, %272
store double %276, double* %274
%277 = load double*, double** %256
%278 = getelementptr inbounds double, double* %277, i64 %271
%279 = load double, double* %278
%280 = fmul double %255, %279
store double %280, double* %278
%281 = tail call i32 @pow(double %257, i32 1)
%282 = sitofp i32 %281 to double
%283 = load double*, double** %256
%284 = getelementptr inbounds double, double* %283, i64 %271
%285 = load double, double* %284
%286 = fdiv double %285, %282
store double %286, double* %284
%287 = load double*, double** %263
%288 = getelementptr inbounds double, double* %287, i64 %271
%289 = load double, double* %288
%290 = fadd double %262, %289
%291 = fmul double %268, %290
store double %291, double* %288
%292 = tail call i32 @pow(double %257, i32 2)
%293 = sitofp i32 %292 to double
%294 = load double*, double** %263
%295 = getelementptr inbounds double, double* %294, i64 %271
%296 = load double, double* %295
%297 = fdiv double %296, %293
store double %297, double* %295
%298 = add nuw nsw i64 %271, 1
%299 = icmp eq i64 %298, %269
br i1 %299, label %300, label %270
300: ; preds = %270, %245
br i1 %8, label %301, label %379
301: ; preds = %300
%302 = getelementptr inbounds double*, double** %3, i64 3
%303 = getelementptr inbounds double*, double** %3, i64 2
%304 = zext i32 %0 to i64
br label %322
305: ; preds = %341
br i1 %8, label %306, label %379
306: ; preds = %305
%307 = load double*, double** %4
%308 = getelementptr inbounds double*, double** %4, i64 1
%309 = load double*, double** %308
%310 = getelementptr inbounds double*, double** %3, i64 2
%311 = load double*, double** %310
%312 = getelementptr inbounds double*, double** %4, i64 2
%313 = load double*, double** %312
%314 = getelementptr inbounds double*, double** %3, i64 3
%315 = load double*, double** %314
%316 = getelementptr inbounds double*, double** %4, i64 3
%317 = load double*, double** %316
%318 = and i64 %69, 1
%319 = icmp eq i32 %0, 1
br i1 %319, label %367, label %320
320: ; preds = %306
%321 = and i64 %69, 4294967294
br label %344
322: ; preds = %301, %341
%323 = phi i64 [ 0, %301 ], [ %342, %341 ]
%324 = load double*, double** %302
%325 = getelementptr inbounds double, double* %324, i64 %323
%326 = load double, double* %325
%327 = load double*, double** %303
%328 = getelementptr inbounds double, double* %327, i64 %323
%329 = load double, double* %328
%330 = tail call i32 @pow(double %329, i32 2)
%331 = add nsw i32 %330, 1
%332 = sitofp i32 %331 to double
%333 = fcmp ugt double %326, %332
br i1 %333, label %341, label %334
334: ; preds = %322
%335 = trunc i64 %323 to i32
%336 = add nuw nsw i32 %335, 1
%337 = tail call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([52 x i8], [52 x i8]* @.str.1, i64 0, i64 0), i32 %336)
%338 = tail call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([46 x i8], [46 x i8]* @str, i64 0, i64 0))
%339 = tail call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([43 x i8], [43 x i8]* @str.4, i64 0, i64 0))
%340 = tail call i32 @exit(i32 1)
unreachable
341: ; preds = %322
%342 = add nuw nsw i64 %323, 1
%343 = icmp eq i64 %342, %304
br i1 %343, label %305, label %322
344: ; preds = %344, %320
%345 = phi i64 [ 0, %320 ], [ %364, %344 ]
%346 = phi i64 [ 0, %320 ], [ %365, %344 ]
%347 = getelementptr inbounds double, double* %307, i64 %345
store double 0.000000e+00, double* %347
%348 = getelementptr inbounds double, double* %309, i64 %345
store double 1.000000e+00, double* %348
%349 = getelementptr inbounds double, double* %311, i64 %345
%350 = load double, double* %349
%351 = getelementptr inbounds double, double* %313, i64 %345
store double %350, double* %351
%352 = getelementptr inbounds double, double* %315, i64 %345
%353 = load double, double* %352
%354 = getelementptr inbounds double, double* %317, i64 %345
store double %353, double* %354
%355 = or i64 %345, 1
%356 = getelementptr inbounds double, double* %307, i64 %355
store double 0.000000e+00, double* %356
%357 = getelementptr inbounds double, double* %309, i64 %355
store double 1.000000e+00, double* %357
%358 = getelementptr inbounds double, double* %311, i64 %355
%359 = load double, double* %358
%360 = getelementptr inbounds double, double* %313, i64 %355
store double %359, double* %360
%361 = getelementptr inbounds double, double* %315, i64 %355
%362 = load double, double* %361
%363 = getelementptr inbounds double, double* %317, i64 %355
store double %362, double* %363
%364 = add nuw nsw i64 %345, 2
%365 = add i64 %346, 2
%366 = icmp eq i64 %365, %321
br i1 %366, label %367, label %344
367: ; preds = %344, %306
%368 = phi i64 [ 0, %306 ], [ %364, %344 ]
%369 = icmp eq i64 %318, 0
br i1 %369, label %379, label %370
370: ; preds = %367
%371 = getelementptr inbounds double, double* %307, i64 %368
store double 0.000000e+00, double* %371
%372 = getelementptr inbounds double, double* %309, i64 %368
store double 1.000000e+00, double* %372
%373 = getelementptr inbounds double, double* %311, i64 %368
%374 = load double, double* %373
%375 = getelementptr inbounds double, double* %313, i64 %368
store double %374, double* %375
%376 = getelementptr inbounds double, double* %315, i64 %368
%377 = load double, double* %376
%378 = getelementptr inbounds double, double* %317, i64 %368
store double %377, double* %378
br label %379
379: ; preds = %370, %367, %64, %300, %305
ret i32 0
}