#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*/ free(double *);
scalar_t__ malloc(int);
int /*<<< orphan*/ printf(char *, ...);
void PrintInfo(char *pname, int _k, int *partweights, int cut, int _nconst,
               float *targetweights) {
  double *tot, *maxi;
  int i, j;
  tot = (double *)malloc(sizeof(double) * _nconst);
  maxi = (double *)malloc(sizeof(double) * _nconst);
  for (j = 0; j < _nconst; ++j)
    tot[j] = 0.0;
  for (i = 0; i < _k; ++i)
    for (j = 0; j < _nconst; ++j)
      tot[j] += targetweights[i * _nconst + j];
  for (i = 0; i < _k; ++i)
    for (j = 0; j < _nconst; ++j)
      targetweights[i * _nconst + j] /= tot[j];
  printf(
      "\n-------------------------------------------------------------------");
  printf("\n Partitioner: %s", pname);
  printf("\n %d-way cutsize = %d \n", _k, cut);
  printf("\nPart Weights are:\n");
  for (i = 0; i < _nconst; ++i)
    maxi[i] = tot[i] = 0.0;
  for (i = 0; i < _k; ++i)
    for (j = 0; j < _nconst; ++j)
      tot[j] += partweights[i * _nconst + j];
  for (i = 0; i < _nconst; ++i)
    maxi[i] = 0.0;
  for (i = 0; i < _k; ++i) {
    printf("\n %3d :", i);
    for (j = 0; j < _nconst; ++j) {
      double im = (double)((double)partweights[i * _nconst + j] -
                           tot[j] * targetweights[i * _nconst + j]) /
                  (tot[j] * targetweights[i * _nconst + j]);
      maxi[j] = (((maxi[j]) >= (im)) ? (maxi[j]) : (im));
      printf("%10d (TrgtR:%.3f  imbal:%6.3lf%%) ", partweights[i * _nconst + j],
             targetweights[i * _nconst + j], 100.0 * im);
    }
  }
  printf("\n MaxImbals are:");
  printf("\n      ");
  for (i = 0; i < _nconst; ++i)
    printf("%10.1lf%% ", 100.0 * maxi[i]);
  printf("\n");
  free(maxi);
  free(tot);
}


x86 assembly (clang, -O0):
<PrintInfo>:
push   %rbp
mov    %rsp,%rbp
sub    $0x50,%rsp
mov    %rdi,-0x8(%rbp)
mov    %esi,-0xc(%rbp)
mov    %rdx,-0x18(%rbp)
mov    %ecx,-0x1c(%rbp)
mov    %r8d,-0x20(%rbp)
mov    %r9,-0x28(%rbp)
movslq -0x20(%rbp),%rax
shl    $0x3,%rax
mov    %eax,%edi
call   1050 <malloc@plt>
mov    %rax,-0x30(%rbp)
movslq -0x20(%rbp),%rax
shl    $0x3,%rax
mov    %eax,%edi
call   1050 <malloc@plt>
mov    %rax,-0x38(%rbp)
movl   $0x0,-0x40(%rbp)
mov    -0x40(%rbp),%eax
cmp    -0x20(%rbp),%eax
jge    11a5 <PrintInfo+0x75>
mov    -0x30(%rbp),%rax
movslq -0x40(%rbp),%rcx
xorps  %xmm0,%xmm0
movsd  %xmm0,(%rax,%rcx,8)
mov    -0x40(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0x40(%rbp)
jmp    117b <PrintInfo+0x4b>
movl   $0x0,-0x3c(%rbp)
mov    -0x3c(%rbp),%eax
cmp    -0xc(%rbp),%eax
jge    1218 <PrintInfo+0xe8>
movl   $0x0,-0x40(%rbp)
mov    -0x40(%rbp),%eax
cmp    -0x20(%rbp),%eax
jge    1205 <PrintInfo+0xd5>
mov    -0x28(%rbp),%rax
mov    -0x3c(%rbp),%ecx
imul   -0x20(%rbp),%ecx
add    -0x40(%rbp),%ecx
movslq %ecx,%rcx
movss  (%rax,%rcx,4),%xmm0
cvtss2sd %xmm0,%xmm0
mov    -0x30(%rbp),%rax
movslq -0x40(%rbp),%rcx
addsd  (%rax,%rcx,8),%xmm0
movsd  %xmm0,(%rax,%rcx,8)
mov    -0x40(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0x40(%rbp)
jmp    11bf <PrintInfo+0x8f>
jmp    120a <PrintInfo+0xda>
mov    -0x3c(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0x3c(%rbp)
jmp    11ac <PrintInfo+0x7c>
movl   $0x0,-0x3c(%rbp)
mov    -0x3c(%rbp),%eax
cmp    -0xc(%rbp),%eax
jge    1293 <PrintInfo+0x163>
movl   $0x0,-0x40(%rbp)
mov    -0x40(%rbp),%eax
cmp    -0x20(%rbp),%eax
jge    1280 <PrintInfo+0x150>
mov    -0x30(%rbp),%rax
movslq -0x40(%rbp),%rcx
movsd  (%rax,%rcx,8),%xmm1
mov    -0x28(%rbp),%rax
mov    -0x3c(%rbp),%ecx
imul   -0x20(%rbp),%ecx
add    -0x40(%rbp),%ecx
movslq %ecx,%rcx
movss  (%rax,%rcx,4),%xmm0
cvtss2sd %xmm0,%xmm0
divsd  %xmm1,%xmm0
cvtsd2ss %xmm0,%xmm0
movss  %xmm0,(%rax,%rcx,4)
mov    -0x40(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0x40(%rbp)
jmp    1232 <PrintInfo+0x102>
jmp    1285 <PrintInfo+0x155>
mov    -0x3c(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0x3c(%rbp)
jmp    121f <PrintInfo+0xef>
lea    0xd6e(%rip),%rdi
mov    $0x0,%al
call   1040 <printf@plt>
mov    -0x8(%rbp),%rsi
lea    0xda1(%rip),%rdi
mov    $0x0,%al
call   1040 <printf@plt>
mov    -0xc(%rbp),%esi
mov    -0x1c(%rbp),%edx
lea    0xd9f(%rip),%rdi
mov    $0x0,%al
call   1040 <printf@plt>
lea    0xda9(%rip),%rdi
mov    $0x0,%al
call   1040 <printf@plt>
movl   $0x0,-0x3c(%rbp)
mov    -0x3c(%rbp),%eax
cmp    -0x20(%rbp),%eax
jge    1316 <PrintInfo+0x1e6>
mov    -0x30(%rbp),%rax
movslq -0x3c(%rbp),%rcx
xorps  %xmm0,%xmm0
movsd  %xmm0,(%rax,%rcx,8)
mov    -0x38(%rbp),%rax
movslq -0x3c(%rbp),%rcx
xorps  %xmm0,%xmm0
movsd  %xmm0,(%rax,%rcx,8)
mov    -0x3c(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0x3c(%rbp)
jmp    12dc <PrintInfo+0x1ac>
movl   $0x0,-0x3c(%rbp)
mov    -0x3c(%rbp),%eax
cmp    -0xc(%rbp),%eax
jge    1385 <PrintInfo+0x255>
movl   $0x0,-0x40(%rbp)
mov    -0x40(%rbp),%eax
cmp    -0x20(%rbp),%eax
jge    1372 <PrintInfo+0x242>
mov    -0x18(%rbp),%rax
mov    -0x3c(%rbp),%ecx
imul   -0x20(%rbp),%ecx
add    -0x40(%rbp),%ecx
movslq %ecx,%rcx
cvtsi2sdl (%rax,%rcx,4),%xmm0
mov    -0x30(%rbp),%rax
movslq -0x40(%rbp),%rcx
addsd  (%rax,%rcx,8),%xmm0
movsd  %xmm0,(%rax,%rcx,8)
mov    -0x40(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0x40(%rbp)
jmp    1330 <PrintInfo+0x200>
jmp    1377 <PrintInfo+0x247>
mov    -0x3c(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0x3c(%rbp)
jmp    131d <PrintInfo+0x1ed>
movl   $0x0,-0x3c(%rbp)
mov    -0x3c(%rbp),%eax
cmp    -0x20(%rbp),%eax
jge    13b6 <PrintInfo+0x286>
mov    -0x38(%rbp),%rax
movslq -0x3c(%rbp),%rcx
xorps  %xmm0,%xmm0
movsd  %xmm0,(%rax,%rcx,8)
mov    -0x3c(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0x3c(%rbp)
jmp    138c <PrintInfo+0x25c>
movl   $0x0,-0x3c(%rbp)
mov    -0x3c(%rbp),%eax
cmp    -0xc(%rbp),%eax
jge    1532 <PrintInfo+0x402>
mov    -0x3c(%rbp),%esi
lea    0xcb8(%rip),%rdi
mov    $0x0,%al
call   1040 <printf@plt>
movl   $0x0,-0x40(%rbp)
mov    -0x40(%rbp),%eax
cmp    -0x20(%rbp),%eax
jge    151f <PrintInfo+0x3ef>
mov    -0x18(%rbp),%rax
mov    -0x3c(%rbp),%ecx
imul   -0x20(%rbp),%ecx
add    -0x40(%rbp),%ecx
movslq %ecx,%rcx
cvtsi2sdl (%rax,%rcx,4),%xmm1
mov    -0x30(%rbp),%rax
movslq -0x40(%rbp),%rcx
movsd  (%rax,%rcx,8),%xmm0
mov    -0x28(%rbp),%rax
mov    -0x3c(%rbp),%ecx
imul   -0x20(%rbp),%ecx
add    -0x40(%rbp),%ecx
movslq %ecx,%rcx
movss  (%rax,%rcx,4),%xmm2
cvtss2sd %xmm2,%xmm2
movq   %xmm0,%rax
movabs $0x8000000000000000,%rcx
xor    %rcx,%rax
movq   %rax,%xmm0
mulsd  %xmm2,%xmm0
addsd  %xmm1,%xmm0
mov    -0x30(%rbp),%rax
movslq -0x40(%rbp),%rcx
movsd  (%rax,%rcx,8),%xmm1
mov    -0x28(%rbp),%rax
mov    -0x3c(%rbp),%ecx
imul   -0x20(%rbp),%ecx
add    -0x40(%rbp),%ecx
movslq %ecx,%rcx
movss  (%rax,%rcx,4),%xmm2
cvtss2sd %xmm2,%xmm2
mulsd  %xmm2,%xmm1
divsd  %xmm1,%xmm0
movsd  %xmm0,-0x48(%rbp)
mov    -0x38(%rbp),%rax
movslq -0x40(%rbp),%rcx
movsd  (%rax,%rcx,8),%xmm0
ucomisd -0x48(%rbp),%xmm0
jb     14ac <PrintInfo+0x37c>
mov    -0x38(%rbp),%rax
movslq -0x40(%rbp),%rcx
movsd  (%rax,%rcx,8),%xmm0
movsd  %xmm0,-0x50(%rbp)
jmp    14b6 <PrintInfo+0x386>
movsd  -0x48(%rbp),%xmm0
movsd  %xmm0,-0x50(%rbp)
movsd  -0x50(%rbp),%xmm0
mov    -0x38(%rbp),%rax
movslq -0x40(%rbp),%rcx
movsd  %xmm0,(%rax,%rcx,8)
mov    -0x18(%rbp),%rax
mov    -0x3c(%rbp),%ecx
imul   -0x20(%rbp),%ecx
add    -0x40(%rbp),%ecx
movslq %ecx,%rcx
mov    (%rax,%rcx,4),%esi
mov    -0x28(%rbp),%rax
mov    -0x3c(%rbp),%ecx
imul   -0x20(%rbp),%ecx
add    -0x40(%rbp),%ecx
movslq %ecx,%rcx
movss  (%rax,%rcx,4),%xmm0
cvtss2sd %xmm0,%xmm0
movsd  0xb02(%rip),%xmm1
mulsd  -0x48(%rbp),%xmm1
lea    0xb89(%rip),%rdi
mov    $0x2,%al
call   1040 <printf@plt>
mov    -0x40(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0x40(%rbp)
jmp    13e1 <PrintInfo+0x2b1>
jmp    1524 <PrintInfo+0x3f4>
mov    -0x3c(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0x3c(%rbp)
jmp    13bd <PrintInfo+0x28d>
lea    0xb7d(%rip),%rdi
mov    $0x0,%al
call   1040 <printf@plt>
lea    0xb80(%rip),%rdi
mov    $0x0,%al
call   1040 <printf@plt>
movl   $0x0,-0x3c(%rbp)
mov    -0x3c(%rbp),%eax
cmp    -0x20(%rbp),%eax
jge    1592 <PrintInfo+0x462>
mov    -0x38(%rbp),%rax
movslq -0x3c(%rbp),%rcx
movsd  0xa8f(%rip),%xmm0
mulsd  (%rax,%rcx,8),%xmm0
lea    0xb52(%rip),%rdi
mov    $0x1,%al
call   1040 <printf@plt>
mov    -0x3c(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0x3c(%rbp)
jmp    1555 <PrintInfo+0x425>
lea    0xadc(%rip),%rdi
mov    $0x0,%al
call   1040 <printf@plt>
mov    -0x38(%rbp),%rdi
call   1030 <free@plt>
mov    -0x30(%rbp),%rdi
call   1030 <free@plt>
add    $0x50,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<PrintInfo>:
push   %rbp
push   %r15
push   %r14
push   %r13
push   %r12
push   %rbx
sub    $0x48,%rsp
mov    %r9,(%rsp)
mov    %r8d,%r12d
mov    %ecx,0x30(%rsp)
mov    %rdx,0x10(%rsp)
mov    %esi,%r14d
mov    %rdi,0x28(%rsp)
lea    0x0(,%r12,8),%ebp
mov    %ebp,%edi
call   1080 <malloc@plt>
mov    %rax,%rbx
mov    %ebp,%edi
call   1080 <malloc@plt>
mov    %rax,0x38(%rsp)
mov    %r12d,%r13d
test   %r12d,%r12d
jle    11be <PrintInfo+0x5e>
lea    0x0(,%r13,8),%rdx
mov    %rbx,%rdi
xor    %esi,%esi
call   1070 <memset@plt>
movabs $0x7ffffffffffffffe,%rax
ff ff 7f
mov    %rax,0x20(%rsp)
movslq %r12d,%rax
mov    %rax,0x8(%rsp)
mov    %r14d,%r15d
mov    %r14d,0x1c(%rsp)
test   %r14d,%r14d
jle    146f <PrintInfo+0x30f>
mov    %r13d,%r11d
and    $0xfffffffc,%r11d
lea    -0x4(%r11),%r9
mov    %r9,%r10
shr    $0x2,%r10
add    $0x1,%r10
mov    %r10,%r8
movabs $0x7ffffffffffffffe,%rax
ff ff 7f
and    %rax,%r8
mov    (%rsp),%rdx
lea    0x18(%rdx),%rbp
mov    0x8(%rsp),%rax
lea    0x0(,%rax,4),%r14
xor    %edi,%edi
mov    (%rsp),%rax
jmp    1243 <PrintInfo+0xe3>
nopl   0x0(%rax)
add    $0x1,%rdi
add    %r14,%rbp
add    %r14,%rdx
cmp    %r15,%rdi
je     134b <PrintInfo+0x1eb>
test   %r12d,%r12d
jle    1230 <PrintInfo+0xd0>
cmp    $0x4,%r12d
jae    1260 <PrintInfo+0x100>
xor    %ecx,%ecx
jmp    1320 <PrintInfo+0x1c0>
cs nopw 0x0(%rax,%rax,1)
nop
test   %r9,%r9
je     1341 <PrintInfo+0x1e1>
mov    %r8,%rcx
xor    %esi,%esi
xchg   %ax,%ax
cvtps2pd -0x18(%rbp,%rsi,4),%xmm0
cvtps2pd -0x10(%rbp,%rsi,4),%xmm1
movupd (%rbx,%rsi,8),%xmm2
addpd  %xmm0,%xmm2
movupd 0x10(%rbx,%rsi,8),%xmm0
addpd  %xmm1,%xmm0
movupd 0x20(%rbx,%rsi,8),%xmm1
movupd 0x30(%rbx,%rsi,8),%xmm3
movupd %xmm2,(%rbx,%rsi,8)
movupd %xmm0,0x10(%rbx,%rsi,8)
cvtps2pd -0x8(%rbp,%rsi,4),%xmm0
addpd  %xmm1,%xmm0
cvtps2pd 0x0(%rbp,%rsi,4),%xmm1
addpd  %xmm3,%xmm1
movupd %xmm0,0x20(%rbx,%rsi,8)
movupd %xmm1,0x30(%rbx,%rsi,8)
add    $0x8,%rsi
add    $0xfffffffffffffffe,%rcx
jne    1270 <PrintInfo+0x110>
test   $0x1,%r10b
je     1305 <PrintInfo+0x1a5>
mov    %rdi,%rcx
imul   0x8(%rsp),%rcx
add    %rsi,%rcx
cvtps2pd (%rax,%rcx,4),%xmm0
cvtps2pd 0x8(%rax,%rcx,4),%xmm1
movupd (%rbx,%rsi,8),%xmm2
addpd  %xmm0,%xmm2
movupd 0x10(%rbx,%rsi,8),%xmm0
addpd  %xmm1,%xmm0
movupd %xmm2,(%rbx,%rsi,8)
movupd %xmm0,0x10(%rbx,%rsi,8)
mov    %r11,%rcx
cmp    %r13,%r11
je     1230 <PrintInfo+0xd0>
cs nopw 0x0(%rax,%rax,1)
nopl   0x0(%rax,%rax,1)
movss  (%rdx,%rcx,4),%xmm0
cvtss2sd %xmm0,%xmm0
addsd  (%rbx,%rcx,8),%xmm0
movsd  %xmm0,(%rbx,%rcx,8)
add    $0x1,%rcx
cmp    %rcx,%r13
jne    1320 <PrintInfo+0x1c0>
jmp    1230 <PrintInfo+0xd0>
xor    %esi,%esi
test   $0x1,%r10b
jne    12d2 <PrintInfo+0x172>
jmp    1305 <PrintInfo+0x1a5>
cmpl   $0x0,0x1c(%rsp)
jle    146f <PrintInfo+0x30f>
mov    %r13d,%r11d
and    $0xfffffffe,%r11d
lea    -0x2(%r11),%r9
mov    %r9,%r10
shr    %r10
add    $0x1,%r10
mov    %r10,%r8
and    $0xfffffffffffffffe,%r8
mov    (%rsp),%rdx
lea    0x8(%rdx),%rbp
xor    %edi,%edi
mov    (%rsp),%rax
jmp    13a3 <PrintInfo+0x243>
cs nopw 0x0(%rax,%rax,1)
nopl   0x0(%rax)
add    $0x1,%rdi
add    %r14,%rbp
add    %r14,%rdx
cmp    %r15,%rdi
je     146f <PrintInfo+0x30f>
test   %r12d,%r12d
jle    1390 <PrintInfo+0x230>
cmp    $0x1,%r12d
jne    13c0 <PrintInfo+0x260>
xor    %ecx,%ecx
jmp    1440 <PrintInfo+0x2e0>
cs nopw 0x0(%rax,%rax,1)
nop
test   %r9,%r9
je     1465 <PrintInfo+0x305>
mov    %r8,%rcx
xor    %esi,%esi
xchg   %ax,%ax
cvtps2pd -0x8(%rbp,%rsi,4),%xmm0
movupd (%rbx,%rsi,8),%xmm1
divpd  %xmm1,%xmm0
cvtpd2ps %xmm0,%xmm0
movlpd %xmm0,-0x8(%rbp,%rsi,4)
cvtps2pd 0x0(%rbp,%rsi,4),%xmm0
movupd 0x10(%rbx,%rsi,8),%xmm1
divpd  %xmm1,%xmm0
cvtpd2ps %xmm0,%xmm0
movlpd %xmm0,0x0(%rbp,%rsi,4)
add    $0x4,%rsi
add    $0xfffffffffffffffe,%rcx
jne    13d0 <PrintInfo+0x270>
test   $0x1,%r10b
je     1433 <PrintInfo+0x2d3>
mov    %rdi,%rcx
imul   0x8(%rsp),%rcx
movupd (%rbx,%rsi,8),%xmm0
add    %rsi,%rcx
cvtps2pd (%rax,%rcx,4),%xmm1
divpd  %xmm0,%xmm1
cvtpd2ps %xmm1,%xmm0
movlpd %xmm0,(%rax,%rcx,4)
mov    %r11,%rcx
cmp    %r13,%r11
je     1390 <PrintInfo+0x230>
nop
movss  (%rdx,%rcx,4),%xmm0
cvtss2sd %xmm0,%xmm0
divsd  (%rbx,%rcx,8),%xmm0
cvtsd2ss %xmm0,%xmm0
movss  %xmm0,(%rdx,%rcx,4)
add    $0x1,%rcx
cmp    %rcx,%r13
jne    1440 <PrintInfo+0x2e0>
jmp    1390 <PrintInfo+0x230>
xor    %esi,%esi
test   $0x1,%r10b
jne    1411 <PrintInfo+0x2b1>
jmp    1433 <PrintInfo+0x2d3>
lea    0xb92(%rip),%rdi
xor    %eax,%eax
call   1060 <printf@plt>
lea    0xbc9(%rip),%rdi
mov    0x28(%rsp),%rsi
xor    %eax,%eax
call   1060 <printf@plt>
lea    0xbc8(%rip),%rdi
mov    0x1c(%rsp),%r14d
mov    %r14d,%esi
mov    0x30(%rsp),%edx
xor    %eax,%eax
call   1060 <printf@plt>
lea    0xc15(%rip),%rdi
call   1050 <puts@plt>
test   %r12d,%r12d
mov    (%rsp),%r11
mov    0x38(%rsp),%rdi
jle    1688 <PrintInfo+0x528>
cmp    $0x4,%r12d
jb     14e8 <PrintInfo+0x388>
lea    (%rdi,%r13,8),%rax
cmp    %rax,%rbx
jae    1584 <PrintInfo+0x424>
lea    (%rbx,%r13,8),%rax
cmp    %rax,%rdi
jae    1584 <PrintInfo+0x424>
xor    %eax,%eax
mov    %rax,%rcx
not    %rcx
add    %r13,%rcx
mov    %r13,%rdx
and    $0x3,%rdx
je     151a <PrintInfo+0x3ba>
nopl   0x0(%rax)
movq   $0x0,(%rbx,%rax,8)
movq   $0x0,(%rdi,%rax,8)
add    $0x1,%rax
add    $0xffffffffffffffff,%rdx
jne    1500 <PrintInfo+0x3a0>
cmp    $0x3,%rcx
jb     1688 <PrintInfo+0x528>
cs nopw 0x0(%rax,%rax,1)
xchg   %ax,%ax
movq   $0x0,(%rbx,%rax,8)
movq   $0x0,(%rdi,%rax,8)
movq   $0x0,0x8(%rbx,%rax,8)
movq   $0x0,0x8(%rdi,%rax,8)
movq   $0x0,0x10(%rbx,%rax,8)
movq   $0x0,0x10(%rdi,%rax,8)
movq   $0x0,0x18(%rbx,%rax,8)
movq   $0x0,0x18(%rdi,%rax,8)
add    $0x4,%rax
cmp    %rax,%r13
jne    1530 <PrintInfo+0x3d0>
jmp    1688 <PrintInfo+0x528>
mov    %r13d,%eax
and    $0xfffffffc,%eax
lea    -0x4(%rax),%rsi
mov    %rsi,%rdx
shr    $0x2,%rdx
add    $0x1,%rdx
mov    %edx,%ecx
and    $0x3,%ecx
cmp    $0xc,%rsi
jae    15ab <PrintInfo+0x44b>
xor    %esi,%esi
jmp    1638 <PrintInfo+0x4d8>
movabs $0x7ffffffffffffffe,%rsi
ff ff 7f
add    $0xfffffffffffffffe,%rsi
and    %rsi,%rdx
xor    %esi,%esi
xorpd  %xmm0,%xmm0
cs nopw 0x0(%rax,%rax,1)
nopl   0x0(%rax)
movupd %xmm0,(%rbx,%rsi,8)
movupd %xmm0,0x10(%rbx,%rsi,8)
movupd %xmm0,(%rdi,%rsi,8)
movupd %xmm0,0x10(%rdi,%rsi,8)
movupd %xmm0,0x20(%rbx,%rsi,8)
movupd %xmm0,0x30(%rbx,%rsi,8)
movupd %xmm0,0x20(%rdi,%rsi,8)
movupd %xmm0,0x30(%rdi,%rsi,8)
movupd %xmm0,0x40(%rbx,%rsi,8)
movupd %xmm0,0x50(%rbx,%rsi,8)
movupd %xmm0,0x40(%rdi,%rsi,8)
movupd %xmm0,0x50(%rdi,%rsi,8)
movupd %xmm0,0x60(%rbx,%rsi,8)
movupd %xmm0,0x70(%rbx,%rsi,8)
movupd %xmm0,0x60(%rdi,%rsi,8)
movupd %xmm0,0x70(%rdi,%rsi,8)
add    $0x10,%rsi
add    $0xfffffffffffffffc,%rdx
jne    15d0 <PrintInfo+0x470>
test   %rcx,%rcx
je     167f <PrintInfo+0x51f>
lea    (%rdi,%rsi,8),%rdx
add    $0x10,%rdx
lea    (%rbx,%rsi,8),%rsi
add    $0x10,%rsi
shl    $0x5,%rcx
xor    %ebp,%ebp
xorpd  %xmm0,%xmm0
nopw   0x0(%rax,%rax,1)
movupd %xmm0,-0x10(%rsi,%rbp,1)
movupd %xmm0,(%rsi,%rbp,1)
movupd %xmm0,-0x10(%rdx,%rbp,1)
movupd %xmm0,(%rdx,%rbp,1)
add    $0x20,%rbp
cmp    %rbp,%rcx
jne    1660 <PrintInfo+0x500>
cmp    %r13,%rax
jne    14ea <PrintInfo+0x38a>
test   %r14d,%r14d
mov    0x10(%rsp),%rdx
mov    %r15,0x30(%rsp)
jle    17fe <PrintInfo+0x69e>
mov    %r13d,%r10d
and    $0xfffffffc,%r10d
lea    -0x4(%r10),%r8
mov    %r8,%r9
shr    $0x2,%r9
add    $0x1,%r9
and    %r9,0x20(%rsp)
lea    0x18(%rdx),%rsi
mov    0x8(%rsp),%rax
lea    0x0(,%rax,4),%r14
xor    %ebp,%ebp
mov    %rdx,%rcx
jmp    16e3 <PrintInfo+0x583>
xchg   %ax,%ax
add    $0x1,%rbp
add    %r14,%rsi
add    %r14,%rcx
cmp    %r15,%rbp
je     17fe <PrintInfo+0x69e>
test   %r12d,%r12d
jle    16d0 <PrintInfo+0x570>
cmp    $0x4,%r12d
jae    1700 <PrintInfo+0x5a0>
xor    %eax,%eax
jmp    17d0 <PrintInfo+0x670>
cs nopw 0x0(%rax,%rax,1)
nop
test   %r8,%r8
je     17f0 <PrintInfo+0x690>
mov    0x20(%rsp),%rax
xor    %edx,%edx
cvtdq2pd -0x18(%rsi,%rdx,4),%xmm0
cvtdq2pd -0x10(%rsi,%rdx,4),%xmm1
movupd (%rbx,%rdx,8),%xmm2
addpd  %xmm0,%xmm2
movupd 0x10(%rbx,%rdx,8),%xmm0
addpd  %xmm1,%xmm0
movupd 0x20(%rbx,%rdx,8),%xmm1
movupd 0x30(%rbx,%rdx,8),%xmm3
movupd %xmm2,(%rbx,%rdx,8)
movupd %xmm0,0x10(%rbx,%rdx,8)
cvtdq2pd -0x8(%rsi,%rdx,4),%xmm0
addpd  %xmm1,%xmm0
cvtdq2pd (%rsi,%rdx,4),%xmm1
addpd  %xmm3,%xmm1
movupd %xmm0,0x20(%rbx,%rdx,8)
movupd %xmm1,0x30(%rbx,%rdx,8)
add    $0x8,%rdx
add    $0xfffffffffffffffe,%rax
jne    1710 <PrintInfo+0x5b0>
test   $0x1,%r9b
je     17b6 <PrintInfo+0x656>
mov    %rbp,%rax
imul   0x8(%rsp),%rax
add    %rdx,%rax
mov    0x10(%rsp),%r15
cvtdq2pd (%r15,%rax,4),%xmm0
cvtdq2pd 0x8(%r15,%rax,4),%xmm1
mov    0x30(%rsp),%r15
movupd (%rbx,%rdx,8),%xmm2
addpd  %xmm0,%xmm2
movupd 0x10(%rbx,%rdx,8),%xmm0
addpd  %xmm1,%xmm0
movupd %xmm2,(%rbx,%rdx,8)
movupd %xmm0,0x10(%rbx,%rdx,8)
mov    %r10,%rax
cmp    %r13,%r10
mov    0x10(%rsp),%rdx
je     16d0 <PrintInfo+0x570>
nopw   0x0(%rax,%rax,1)
xorps  %xmm0,%xmm0
cvtsi2sdl (%rcx,%rax,4),%xmm0
addsd  (%rbx,%rax,8),%xmm0
movsd  %xmm0,(%rbx,%rax,8)
add    $0x1,%rax
cmp    %rax,%r13
jne    17d0 <PrintInfo+0x670>
jmp    16d0 <PrintInfo+0x570>
xor    %edx,%edx
test   $0x1,%r9b
jne    1775 <PrintInfo+0x615>
jmp    17b6 <PrintInfo+0x656>
mov    %rbx,0x28(%rsp)
test   %r12d,%r12d
jle    1820 <PrintInfo+0x6c0>
lea    0x0(,%r13,8),%rdx
xor    %esi,%esi
call   1070 <memset@plt>
mov    0x10(%rsp),%rdx
mov    (%rsp),%r11
mov    %r13,0x20(%rsp)
cmpl   $0x0,0x1c(%rsp)
jle    1928 <PrintInfo+0x7c8>
shlq   $0x2,0x8(%rsp)
xor    %esi,%esi
mov    %r12,0x40(%rsp)
mov    0x38(%rsp),%r13
mov    0x20(%rsp),%r15
mov    0x28(%rsp),%rbp
jmp    187e <PrintInfo+0x71e>
xchg   %ax,%ax
mov    (%rsp),%rsi
add    $0x1,%rsi
mov    0x8(%rsp),%rax
mov    0x10(%rsp),%rcx
add    %rax,%rcx
add    %rax,%r14
cmp    0x30(%rsp),%rsi
mov    0x40(%rsp),%r12
mov    %r14,%r11
mov    %rcx,%rdx
je     1928 <PrintInfo+0x7c8>
mov    %rdx,0x10(%rsp)
lea    0x7ed(%rip),%rdi
mov    %rsi,(%rsp)
xor    %eax,%eax
mov    %r11,%r14
call   1060 <printf@plt>
test   %r12d,%r12d
movsd  0x75d(%rip),%xmm5
lea    0x7d5(%rip),%rbx
jle    1850 <PrintInfo+0x6f0>
xor    %r12d,%r12d
nop
mov    0x10(%rsp),%rax
mov    (%rax,%r12,4),%esi
xorps  %xmm1,%xmm1
cvtsi2sd %esi,%xmm1
movss  (%r14,%r12,4),%xmm0
cvtss2sd %xmm0,%xmm0
movsd  0x0(%rbp,%r12,8),%xmm2
mulsd  %xmm0,%xmm2
subsd  %xmm2,%xmm1
divsd  %xmm2,%xmm1
movsd  0x0(%r13,%r12,8),%xmm2
movapd %xmm1,%xmm3
cmplesd %xmm2,%xmm3
movapd %xmm3,%xmm4
andnpd %xmm1,%xmm4
andpd  %xmm2,%xmm3
orpd   %xmm4,%xmm3
movlpd %xmm3,0x0(%r13,%r12,8)
mulsd  %xmm5,%xmm1
mov    %rbx,%rdi
mov    $0x2,%al
call   1060 <printf@plt>
movsd  0x6e6(%rip),%xmm5
add    $0x1,%r12
cmp    %r12,%r15
jne    18b0 <PrintInfo+0x750>
jmp    1850 <PrintInfo+0x6f0>
lea    0x773(%rip),%rdi
xor    %eax,%eax
call   1060 <printf@plt>
lea    0x776(%rip),%rdi
xor    %eax,%eax
call   1060 <printf@plt>
test   %r12d,%r12d
mov    0x38(%rsp),%r14
mov    0x20(%rsp),%r12
jle    1981 <PrintInfo+0x821>
xor    %ebp,%ebp
lea    0x75f(%rip),%r15
nopl   0x0(%rax)
movsd  (%r14,%rbp,8),%xmm0
mulsd  0x692(%rip),%xmm0
mov    %r15,%rdi
mov    $0x1,%al
call   1060 <printf@plt>
add    $0x1,%rbp
cmp    %rbp,%r12
jne    1960 <PrintInfo+0x800>
mov    $0xa,%edi
call   1040 <putchar@plt>
mov    %r14,%rdi
call   1030 <free@plt>
mov    0x28(%rsp),%rdi
add    $0x48,%rsp
pop    %rbx
pop    %r12
pop    %r13
pop    %r14
pop    %r15
pop    %rbp
jmp    1030 <free@plt>

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

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