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

/* Forward declarations */

/* Type definitions */

/* Variables and functions */
double dist(int, double *, double *);
int /*<<< orphan*/ free(double *);
scalar_t__ malloc(int);
int rand();
int /*<<< orphan*/ srand(int /*<<< orphan*/);
int /*<<< orphan*/ time(int /*<<< orphan*/ *);
double kcenter(int nk, int nt, int nv, double **data, int *cents,
               int *assignment) {
  srand(time(NULL));
  int seed = 0;
  cents[0] = rand() % nt;
  double *VecDist = (double *)malloc(nt * sizeof(double));
  for (int i = 0; i < nt; ++i)
    VecDist[i] = 1.e60;
  while (seed++ < nk) {
    double MaxDist = 0.0;
    for (int i = 0; i < nt; ++i) {
      double Dist = dist(nv, data[i], data[cents[seed - 1]]);
      if (Dist < VecDist[i]) {
        VecDist[i] = Dist;
        assignment[i] = seed - 1;
      }
      if (MaxDist < VecDist[i]) {
        MaxDist = VecDist[i];
        cents[seed] = i;
      }
    }
  }
  double MaxDist = 0;
  for (int i = 0; i < nt; ++i)
    MaxDist = ((MaxDist) > (VecDist[i]) ? (MaxDist) : (VecDist[i]));
  free(VecDist);
  return MaxDist;
}


x86 assembly (clang, -O0):
<kcenter>:
push   %rbp
mov    %rsp,%rbp
sub    $0x70,%rsp
mov    %edi,-0x4(%rbp)
mov    %esi,-0x8(%rbp)
mov    %edx,-0xc(%rbp)
mov    %rcx,-0x18(%rbp)
mov    %r8,-0x20(%rbp)
mov    %r9,-0x28(%rbp)
xor    %eax,%eax
mov    %eax,%edi
call   1050 <time@plt>
mov    %eax,%edi
call   1040 <srand@plt>
movl   $0x0,-0x2c(%rbp)
mov    $0x0,%al
call   1080 <rand@plt>
cltd
idivl  -0x8(%rbp)
mov    -0x20(%rbp),%rax
mov    %edx,(%rax)
movslq -0x8(%rbp),%rax
shl    $0x3,%rax
mov    %eax,%edi
call   1060 <malloc@plt>
mov    %rax,-0x38(%rbp)
movl   $0x0,-0x3c(%rbp)
mov    -0x3c(%rbp),%eax
cmp    -0x8(%rbp),%eax
jge    11ee <kcenter+0x8e>
mov    -0x38(%rbp),%rax
movslq -0x3c(%rbp),%rcx
movsd  0xe25(%rip),%xmm0
movsd  %xmm0,(%rax,%rcx,8)
mov    -0x3c(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0x3c(%rbp)
jmp    11bf <kcenter+0x5f>
jmp    11f3 <kcenter+0x93>
mov    -0x2c(%rbp),%eax
mov    %eax,%ecx
add    $0x1,%ecx
mov    %ecx,-0x2c(%rbp)
cmp    -0x4(%rbp),%eax
jge    12e7 <kcenter+0x187>
xorps  %xmm0,%xmm0
movsd  %xmm0,-0x48(%rbp)
movl   $0x0,-0x4c(%rbp)
mov    -0x4c(%rbp),%eax
cmp    -0x8(%rbp),%eax
jge    12e2 <kcenter+0x182>
mov    -0xc(%rbp),%edi
mov    -0x18(%rbp),%rax
movslq -0x4c(%rbp),%rcx
mov    (%rax,%rcx,8),%rsi
mov    -0x18(%rbp),%rax
mov    -0x20(%rbp),%rcx
mov    -0x2c(%rbp),%edx
sub    $0x1,%edx
movslq %edx,%rdx
movslq (%rcx,%rdx,4),%rcx
mov    (%rax,%rcx,8),%rdx
call   1070 <dist@plt>
movsd  %xmm0,-0x58(%rbp)
movsd  -0x58(%rbp),%xmm1
mov    -0x38(%rbp),%rax
movslq -0x4c(%rbp),%rcx
movsd  (%rax,%rcx,8),%xmm0
ucomisd %xmm1,%xmm0
jbe    1293 <kcenter+0x133>
movsd  -0x58(%rbp),%xmm0
mov    -0x38(%rbp),%rax
movslq -0x4c(%rbp),%rcx
movsd  %xmm0,(%rax,%rcx,8)
mov    -0x2c(%rbp),%edx
sub    $0x1,%edx
mov    -0x28(%rbp),%rax
movslq -0x4c(%rbp),%rcx
mov    %edx,(%rax,%rcx,4)
movsd  -0x48(%rbp),%xmm1
mov    -0x38(%rbp),%rax
movslq -0x4c(%rbp),%rcx
movsd  (%rax,%rcx,8),%xmm0
ucomisd %xmm1,%xmm0
jbe    12cf <kcenter+0x16f>
mov    -0x38(%rbp),%rax
movslq -0x4c(%rbp),%rcx
movsd  (%rax,%rcx,8),%xmm0
movsd  %xmm0,-0x48(%rbp)
mov    -0x4c(%rbp),%edx
mov    -0x20(%rbp),%rax
movslq -0x2c(%rbp),%rcx
mov    %edx,(%rax,%rcx,4)
jmp    12d4 <kcenter+0x174>
mov    -0x4c(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0x4c(%rbp)
jmp    1216 <kcenter+0xb6>
jmp    11f3 <kcenter+0x93>
xorps  %xmm0,%xmm0
movsd  %xmm0,-0x60(%rbp)
movl   $0x0,-0x64(%rbp)
mov    -0x64(%rbp),%eax
cmp    -0x8(%rbp),%eax
jge    1353 <kcenter+0x1f3>
movsd  -0x60(%rbp),%xmm0
mov    -0x38(%rbp),%rax
movslq -0x64(%rbp),%rcx
ucomisd (%rax,%rcx,8),%xmm0
jbe    1329 <kcenter+0x1c9>
movsd  -0x60(%rbp),%xmm0
movsd  %xmm0,-0x70(%rbp)
jmp    133b <kcenter+0x1db>
mov    -0x38(%rbp),%rax
movslq -0x64(%rbp),%rcx
movsd  (%rax,%rcx,8),%xmm0
movsd  %xmm0,-0x70(%rbp)
movsd  -0x70(%rbp),%xmm0
movsd  %xmm0,-0x60(%rbp)
mov    -0x64(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0x64(%rbp)
jmp    12f6 <kcenter+0x196>
mov    -0x38(%rbp),%rdi
call   1030 <free@plt>
movsd  -0x60(%rbp),%xmm0
add    $0x70,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<kcenter>:
push   %rbp
push   %r15
push   %r14
push   %r13
push   %r12
push   %rbx
sub    $0x38,%rsp
mov    %r9,0x30(%rsp)
mov    %r8,%r14
mov    %rcx,%rbx
mov    %edx,0x14(%rsp)
mov    %esi,%ebp
mov    %edi,%r13d
xor    %edi,%edi
call   1050 <time@plt>
mov    %eax,%edi
call   1040 <srand@plt>
xor    %eax,%eax
call   1080 <rand@plt>
cltd
idiv   %ebp
mov    %r14,0x18(%rsp)
mov    %edx,(%r14)
lea    0x0(,%rbp,8),%edi
call   1060 <malloc@plt>
mov    %rax,%r12
mov    %ebp,%r15d
mov    %rbp,0x8(%rsp)
test   %ebp,%ebp
jle    12fd <kcenter+0x19d>
cmpl   $0x4,0x8(%rsp)
jae    11cf <kcenter+0x6f>
xor    %edi,%edi
jmp    12d9 <kcenter+0x179>
mov    %r15d,%edi
and    $0xfffffffc,%edi
lea    -0x4(%rdi),%rsi
mov    %rsi,%rdx
shr    $0x2,%rdx
add    $0x1,%rdx
mov    %edx,%ecx
and    $0x7,%ecx
cmp    $0x1c,%rsi
jae    11f6 <kcenter+0x96>
xor    %esi,%esi
jmp    12a5 <kcenter+0x145>
and    $0xfffffffffffffff8,%rdx
xor    %esi,%esi
movapd 0xdfc(%rip),%xmm0
cs nopw 0x0(%rax,%rax,1)
xchg   %ax,%ax
movupd %xmm0,(%r12,%rsi,8)
movupd %xmm0,0x10(%r12,%rsi,8)
movupd %xmm0,0x20(%r12,%rsi,8)
movupd %xmm0,0x30(%r12,%rsi,8)
movupd %xmm0,0x40(%r12,%rsi,8)
movupd %xmm0,0x50(%r12,%rsi,8)
movupd %xmm0,0x60(%r12,%rsi,8)
movupd %xmm0,0x70(%r12,%rsi,8)
movupd %xmm0,0x80(%r12,%rsi,8)
movupd %xmm0,0x90(%r12,%rsi,8)
movupd %xmm0,0xa0(%r12,%rsi,8)
movupd %xmm0,0xb0(%r12,%rsi,8)
movupd %xmm0,0xc0(%r12,%rsi,8)
movupd %xmm0,0xd0(%r12,%rsi,8)
movupd %xmm0,0xe0(%r12,%rsi,8)
movupd %xmm0,0xf0(%r12,%rsi,8)
add    $0x20,%rsi
add    $0xfffffffffffffff8,%rdx
jne    1210 <kcenter+0xb0>
test   %rcx,%rcx
je     12d4 <kcenter+0x174>
lea    (%r12,%rsi,8),%rdx
add    $0x10,%rdx
shl    $0x5,%rcx
xor    %esi,%esi
movapd 0xd40(%rip),%xmm0
movupd %xmm0,-0x10(%rdx,%rsi,1)
movupd %xmm0,(%rdx,%rsi,1)
add    $0x20,%rsi
cmp    %rsi,%rcx
jne    12c0 <kcenter+0x160>
cmp    %r15,%rdi
je     12fd <kcenter+0x19d>
movabs $0x4c63e9e4e4c2f344,%rcx
e9 63 4c
cs nopw 0x0(%rax,%rax,1)
nopl   (%rax)
mov    %rcx,(%r12,%rdi,8)
add    $0x1,%rdi
cmp    %rdi,%r15
jne    12f0 <kcenter+0x190>
test   %r13d,%r13d
jle    13ac <kcenter+0x24c>
mov    %r13d,%eax
mov    %rax,0x20(%rsp)
mov    $0x1,%r14d
xor    %ebp,%ebp
jmp    1330 <kcenter+0x1d0>
nopl   0x0(%rax,%rax,1)
add    $0x1,%r14
mov    0x28(%rsp),%rbp
cmp    0x20(%rsp),%rbp
je     13ac <kcenter+0x24c>
lea    0x1(%rbp),%rax
mov    %rax,0x28(%rsp)
cmpl   $0x0,0x8(%rsp)
jle    1320 <kcenter+0x1c0>
xorpd  %xmm0,%xmm0
movsd  %xmm0,(%rsp)
xor    %r13d,%r13d
jmp    1359 <kcenter+0x1f9>
xchg   %ax,%ax
add    $0x1,%r13
cmp    %r13,%r15
je     1320 <kcenter+0x1c0>
mov    (%rbx,%r13,8),%rsi
mov    0x18(%rsp),%rax
movslq (%rax,%rbp,4),%rax
mov    (%rbx,%rax,8),%rdx
mov    0x14(%rsp),%edi
call   1070 <dist@plt>
movsd  (%r12,%r13,8),%xmm1
ucomisd %xmm0,%xmm1
jbe    1395 <kcenter+0x235>
mov    %r12,%rax
movsd  %xmm0,(%r12,%r13,8)
mov    0x30(%rsp),%rax
mov    %ebp,(%rax,%r13,4)
movapd %xmm0,%xmm1
ucomisd (%rsp),%xmm1
jbe    1350 <kcenter+0x1f0>
mov    0x18(%rsp),%rax
mov    %r13d,(%rax,%r14,4)
movsd  %xmm1,(%rsp)
jmp    1350 <kcenter+0x1f0>
cmpl   $0x0,0x8(%rsp)
jle    13cb <kcenter+0x26b>
lea    -0x1(%r15),%rcx
mov    %r15d,%eax
and    $0x3,%eax
cmp    $0x3,%rcx
jae    13d1 <kcenter+0x271>
xorpd  %xmm0,%xmm0
xor    %ecx,%ecx
jmp    1404 <kcenter+0x2a4>
xorpd  %xmm0,%xmm0
jmp    141e <kcenter+0x2be>
and    $0xfffffffc,%r15d
xorpd  %xmm0,%xmm0
xor    %ecx,%ecx
nopl   0x0(%rax,%rax,1)
maxsd  (%r12,%rcx,8),%xmm0
maxsd  0x8(%r12,%rcx,8),%xmm0
maxsd  0x10(%r12,%rcx,8),%xmm0
maxsd  0x18(%r12,%rcx,8),%xmm0
add    $0x4,%rcx
cmp    %rcx,%r15
jne    13e0 <kcenter+0x280>
test   %rax,%rax
je     141e <kcenter+0x2be>
lea    (%r12,%rcx,8),%rcx
xor    %edx,%edx
nop
maxsd  (%rcx,%rdx,8),%xmm0
add    $0x1,%rdx
cmp    %rdx,%rax
jne    1410 <kcenter+0x2b0>
movsd  %xmm0,(%rsp)
mov    %r12,%rdi
call   1030 <free@plt>
movsd  (%rsp),%xmm0
add    $0x38,%rsp
pop    %rbx
pop    %r12
pop    %r13
pop    %r14
pop    %r15
pop    %rbp
ret

LLVM IR (-O0):
define double @kcenter(i32 %0, i32 %1, i32 %2, double** %3, i32* %4, i32* %5) {
%7 = alloca i32
%8 = alloca i32
%9 = alloca i32
%10 = alloca double**
%11 = alloca i32*
%12 = alloca i32*
%13 = alloca i32
%14 = alloca double*
%15 = alloca i32
%16 = alloca double
%17 = alloca i32
%18 = alloca double
%19 = alloca double
%20 = alloca i32
store i32 %0, i32* %7
store i32 %1, i32* %8
store i32 %2, i32* %9
store double** %3, double*** %10
store i32* %4, i32** %11
store i32* %5, i32** %12
%21 = call i32 @time(i32* null)
%22 = call i32 @srand(i32 %21)
store i32 0, i32* %13
%23 = call i32 (...) @rand()
%24 = load i32, i32* %8
%25 = srem i32 %23, %24
%26 = load i32*, i32** %11
%27 = getelementptr inbounds i32, i32* %26, i64 0
store i32 %25, i32* %27
%28 = load i32, i32* %8
%29 = sext i32 %28 to i64
%30 = mul i64 %29, 8
%31 = trunc i64 %30 to i32
%32 = call i64 @malloc(i32 %31)
%33 = inttoptr i64 %32 to double*
store double* %33, double** %14
store i32 0, i32* %15
br label %34
34: ; preds = %43, %6
%35 = load i32, i32* %15
%36 = load i32, i32* %8
%37 = icmp slt i32 %35, %36
br i1 %37, label %38, label %46
38: ; preds = %34
%39 = load double*, double** %14
%40 = load i32, i32* %15
%41 = sext i32 %40 to i64
%42 = getelementptr inbounds double, double* %39, i64 %41
store double 0x4C63E9E4E4C2F344, double* %42
br label %43
43: ; preds = %38
%44 = load i32, i32* %15
%45 = add nsw i32 %44, 1
store i32 %45, i32* %15
br label %34
46: ; preds = %34
br label %47
47: ; preds = %117, %46
%48 = load i32, i32* %13
%49 = add nsw i32 %48, 1
store i32 %49, i32* %13
%50 = load i32, i32* %7
%51 = icmp slt i32 %48, %50
br i1 %51, label %52, label %118
52: ; preds = %47
store double 0.000000e+00, double* %16
store i32 0, i32* %17
br label %53
53: ; preds = %114, %52
%54 = load i32, i32* %17
%55 = load i32, i32* %8
%56 = icmp slt i32 %54, %55
br i1 %56, label %57, label %117
57: ; preds = %53
%58 = load i32, i32* %9
%59 = load double**, double*** %10
%60 = load i32, i32* %17
%61 = sext i32 %60 to i64
%62 = getelementptr inbounds double*, double** %59, i64 %61
%63 = load double*, double** %62
%64 = load double**, double*** %10
%65 = load i32*, i32** %11
%66 = load i32, i32* %13
%67 = sub nsw i32 %66, 1
%68 = sext i32 %67 to i64
%69 = getelementptr inbounds i32, i32* %65, i64 %68
%70 = load i32, i32* %69
%71 = sext i32 %70 to i64
%72 = getelementptr inbounds double*, double** %64, i64 %71
%73 = load double*, double** %72
%74 = call double @dist(i32 %58, double* %63, double* %73)
store double %74, double* %18
%75 = load double, double* %18
%76 = load double*, double** %14
%77 = load i32, i32* %17
%78 = sext i32 %77 to i64
%79 = getelementptr inbounds double, double* %76, i64 %78
%80 = load double, double* %79
%81 = fcmp olt double %75, %80
br i1 %81, label %82, label %94
82: ; preds = %57
%83 = load double, double* %18
%84 = load double*, double** %14
%85 = load i32, i32* %17
%86 = sext i32 %85 to i64
%87 = getelementptr inbounds double, double* %84, i64 %86
store double %83, double* %87
%88 = load i32, i32* %13
%89 = sub nsw i32 %88, 1
%90 = load i32*, i32** %12
%91 = load i32, i32* %17
%92 = sext i32 %91 to i64
%93 = getelementptr inbounds i32, i32* %90, i64 %92
store i32 %89, i32* %93
br label %94
94: ; preds = %82, %57
%95 = load double, double* %16
%96 = load double*, double** %14
%97 = load i32, i32* %17
%98 = sext i32 %97 to i64
%99 = getelementptr inbounds double, double* %96, i64 %98
%100 = load double, double* %99
%101 = fcmp olt double %95, %100
br i1 %101, label %102, label %113
102: ; preds = %94
%103 = load double*, double** %14
%104 = load i32, i32* %17
%105 = sext i32 %104 to i64
%106 = getelementptr inbounds double, double* %103, i64 %105
%107 = load double, double* %106
store double %107, double* %16
%108 = load i32, i32* %17
%109 = load i32*, i32** %11
%110 = load i32, i32* %13
%111 = sext i32 %110 to i64
%112 = getelementptr inbounds i32, i32* %109, i64 %111
store i32 %108, i32* %112
br label %113
113: ; preds = %102, %94
br label %114
114: ; preds = %113
%115 = load i32, i32* %17
%116 = add nsw i32 %115, 1
store i32 %116, i32* %17
br label %53
117: ; preds = %53
br label %47
118: ; preds = %47
store double 0.000000e+00, double* %19
store i32 0, i32* %20
br label %119
119: ; preds = %141, %118
%120 = load i32, i32* %20
%121 = load i32, i32* %8
%122 = icmp slt i32 %120, %121
br i1 %122, label %123, label %144
123: ; preds = %119
%124 = load double, double* %19
%125 = load double*, double** %14
%126 = load i32, i32* %20
%127 = sext i32 %126 to i64
%128 = getelementptr inbounds double, double* %125, i64 %127
%129 = load double, double* %128
%130 = fcmp ogt double %124, %129
br i1 %130, label %131, label %133
131: ; preds = %123
%132 = load double, double* %19
br label %139
133: ; preds = %123
%134 = load double*, double** %14
%135 = load i32, i32* %20
%136 = sext i32 %135 to i64
%137 = getelementptr inbounds double, double* %134, i64 %136
%138 = load double, double* %137
br label %139
139: ; preds = %133, %131
%140 = phi double [ %132, %131 ], [ %138, %133 ]
store double %140, double* %19
br label %141
141: ; preds = %139
%142 = load i32, i32* %20
%143 = add nsw i32 %142, 1
store i32 %143, i32* %20
br label %119
144: ; preds = %119
%145 = load double*, double** %14
%146 = call i32 @free(double* %145)
%147 = load double, double* %19
ret double %147
}

LLVM IR (-O2):
define double @kcenter(i32 %0, i32 %1, i32 %2, double** nocapture %3, i32* nocapture %4, i32* nocapture writeonly %5) {
%7 = tail call i32 @time(i32* null)
%8 = tail call i32 @srand(i32 %7)
%9 = tail call i32 (...) @rand()
%10 = srem i32 %9, %1
store i32 %10, i32* %4
%11 = shl i32 %1, 3
%12 = tail call i64 @malloc(i32 %11)
%13 = inttoptr i64 %12 to double*
%14 = icmp sgt i32 %1, 0
br i1 %14, label %15, label %89
15: ; preds = %6
%16 = zext i32 %1 to i64
%17 = icmp ult i32 %1, 4
br i1 %17, label %87, label %18
18: ; preds = %15
%19 = and i64 %16, 4294967292
%20 = add nsw i64 %19, -4
%21 = lshr exact i64 %20, 2
%22 = add nuw nsw i64 %21, 1
%23 = and i64 %22, 7
%24 = icmp ult i64 %20, 28
br i1 %24, label %72, label %25
25: ; preds = %18
%26 = and i64 %22, 9223372036854775800
br label %27
27: ; preds = %27, %25
%28 = phi i64 [ 0, %25 ], [ %69, %27 ]
%29 = phi i64 [ 0, %25 ], [ %70, %27 ]
%30 = getelementptr inbounds double, double* %13, i64 %28
%31 = bitcast double* %30 to <2 x double>*
store <2 x double> <double 0x4C63E9E4E4C2F344, double 0x4C63E9E4E4C2F344>, <2 x double>* %31
%32 = getelementptr inbounds double, double* %30, i64 2
%33 = bitcast double* %32 to <2 x double>*
store <2 x double> <double 0x4C63E9E4E4C2F344, double 0x4C63E9E4E4C2F344>, <2 x double>* %33
%34 = or i64 %28, 4
%35 = getelementptr inbounds double, double* %13, i64 %34
%36 = bitcast double* %35 to <2 x double>*
store <2 x double> <double 0x4C63E9E4E4C2F344, double 0x4C63E9E4E4C2F344>, <2 x double>* %36
%37 = getelementptr inbounds double, double* %35, i64 2
%38 = bitcast double* %37 to <2 x double>*
store <2 x double> <double 0x4C63E9E4E4C2F344, double 0x4C63E9E4E4C2F344>, <2 x double>* %38
%39 = or i64 %28, 8
%40 = getelementptr inbounds double, double* %13, i64 %39
%41 = bitcast double* %40 to <2 x double>*
store <2 x double> <double 0x4C63E9E4E4C2F344, double 0x4C63E9E4E4C2F344>, <2 x double>* %41
%42 = getelementptr inbounds double, double* %40, i64 2
%43 = bitcast double* %42 to <2 x double>*
store <2 x double> <double 0x4C63E9E4E4C2F344, double 0x4C63E9E4E4C2F344>, <2 x double>* %43
%44 = or i64 %28, 12
%45 = getelementptr inbounds double, double* %13, i64 %44
%46 = bitcast double* %45 to <2 x double>*
store <2 x double> <double 0x4C63E9E4E4C2F344, double 0x4C63E9E4E4C2F344>, <2 x double>* %46
%47 = getelementptr inbounds double, double* %45, i64 2
%48 = bitcast double* %47 to <2 x double>*
store <2 x double> <double 0x4C63E9E4E4C2F344, double 0x4C63E9E4E4C2F344>, <2 x double>* %48
%49 = or i64 %28, 16
%50 = getelementptr inbounds double, double* %13, i64 %49
%51 = bitcast double* %50 to <2 x double>*
store <2 x double> <double 0x4C63E9E4E4C2F344, double 0x4C63E9E4E4C2F344>, <2 x double>* %51
%52 = getelementptr inbounds double, double* %50, i64 2
%53 = bitcast double* %52 to <2 x double>*
store <2 x double> <double 0x4C63E9E4E4C2F344, double 0x4C63E9E4E4C2F344>, <2 x double>* %53
%54 = or i64 %28, 20
%55 = getelementptr inbounds double, double* %13, i64 %54
%56 = bitcast double* %55 to <2 x double>*
store <2 x double> <double 0x4C63E9E4E4C2F344, double 0x4C63E9E4E4C2F344>, <2 x double>* %56
%57 = getelementptr inbounds double, double* %55, i64 2
%58 = bitcast double* %57 to <2 x double>*
store <2 x double> <double 0x4C63E9E4E4C2F344, double 0x4C63E9E4E4C2F344>, <2 x double>* %58
%59 = or i64 %28, 24
%60 = getelementptr inbounds double, double* %13, i64 %59
%61 = bitcast double* %60 to <2 x double>*
store <2 x double> <double 0x4C63E9E4E4C2F344, double 0x4C63E9E4E4C2F344>, <2 x double>* %61
%62 = getelementptr inbounds double, double* %60, i64 2
%63 = bitcast double* %62 to <2 x double>*
store <2 x double> <double 0x4C63E9E4E4C2F344, double 0x4C63E9E4E4C2F344>, <2 x double>* %63
%64 = or i64 %28, 28
%65 = getelementptr inbounds double, double* %13, i64 %64
%66 = bitcast double* %65 to <2 x double>*
store <2 x double> <double 0x4C63E9E4E4C2F344, double 0x4C63E9E4E4C2F344>, <2 x double>* %66
%67 = getelementptr inbounds double, double* %65, i64 2
%68 = bitcast double* %67 to <2 x double>*
store <2 x double> <double 0x4C63E9E4E4C2F344, double 0x4C63E9E4E4C2F344>, <2 x double>* %68
%69 = add nuw i64 %28, 32
%70 = add i64 %29, 8
%71 = icmp eq i64 %70, %26
br i1 %71, label %72, label %27
72: ; preds = %27, %18
%73 = phi i64 [ 0, %18 ], [ %69, %27 ]
%74 = icmp eq i64 %23, 0
br i1 %74, label %85, label %75
75: ; preds = %72, %75
%76 = phi i64 [ %82, %75 ], [ %73, %72 ]
%77 = phi i64 [ %83, %75 ], [ 0, %72 ]
%78 = getelementptr inbounds double, double* %13, i64 %76
%79 = bitcast double* %78 to <2 x double>*
store <2 x double> <double 0x4C63E9E4E4C2F344, double 0x4C63E9E4E4C2F344>, <2 x double>* %79
%80 = getelementptr inbounds double, double* %78, i64 2
%81 = bitcast double* %80 to <2 x double>*
store <2 x double> <double 0x4C63E9E4E4C2F344, double 0x4C63E9E4E4C2F344>, <2 x double>* %81
%82 = add nuw i64 %76, 4
%83 = add i64 %77, 1
%84 = icmp eq i64 %83, %23
br i1 %84, label %85, label %75
85: ; preds = %75, %72
%86 = icmp eq i64 %19, %16
br i1 %86, label %89, label %87
87: ; preds = %15, %85
%88 = phi i64 [ 0, %15 ], [ %19, %85 ]
br label %94
89: ; preds = %94, %85, %6
%90 = icmp sgt i32 %0, 0
br i1 %90, label %91, label %110
91: ; preds = %89
%92 = zext i32 %0 to i64
%93 = zext i32 %1 to i64
br label %102
94: ; preds = %87, %94
%95 = phi i64 [ %97, %94 ], [ %88, %87 ]
%96 = getelementptr inbounds double, double* %13, i64 %95
store double 0x4C63E9E4E4C2F344, double* %96
%97 = add nuw nsw i64 %95, 1
%98 = icmp eq i64 %97, %16
br i1 %98, label %89, label %94
99: ; preds = %138, %102
%100 = add nuw nsw i64 %104, 1
%101 = icmp eq i64 %105, %92
br i1 %101, label %110, label %102
102: ; preds = %91, %99
%103 = phi i64 [ 0, %91 ], [ %105, %99 ]
%104 = phi i64 [ 1, %91 ], [ %100, %99 ]
%105 = add nuw nsw i64 %103, 1
br i1 %14, label %106, label %99
106: ; preds = %102
%107 = getelementptr inbounds i32, i32* %4, i64 %103
%108 = getelementptr inbounds i32, i32* %4, i64 %104
%109 = trunc i64 %103 to i32
br label %118
110: ; preds = %99, %89
br i1 %14, label %111, label %158
111: ; preds = %110
%112 = zext i32 %1 to i64
%113 = add nsw i64 %112, -1
%114 = and i64 %112, 3
%115 = icmp ult i64 %113, 3
br i1 %115, label %142, label %116
116: ; preds = %111
%117 = and i64 %112, 4294967292
br label %161
118: ; preds = %106, %138
%119 = phi i64 [ 0, %106 ], [ %140, %138 ]
%120 = phi double [ 0.000000e+00, %106 ], [ %139, %138 ]
%121 = getelementptr inbounds double*, double** %3, i64 %119
%122 = load double*, double** %121
%123 = load i32, i32* %107
%124 = sext i32 %123 to i64
%125 = getelementptr inbounds double*, double** %3, i64 %124
%126 = load double*, double** %125
%127 = tail call double @dist(i32 %2, double* %122, double* %126)
%128 = getelementptr inbounds double, double* %13, i64 %119
%129 = load double, double* %128
%130 = fcmp olt double %127, %129
br i1 %130, label %131, label %133
131: ; preds = %118
store double %127, double* %128
%132 = getelementptr inbounds i32, i32* %5, i64 %119
store i32 %109, i32* %132
br label %133
133: ; preds = %131, %118
%134 = phi double [ %127, %131 ], [ %129, %118 ]
%135 = fcmp olt double %120, %134
br i1 %135, label %136, label %138
136: ; preds = %133
%137 = trunc i64 %119 to i32
store i32 %137, i32* %108
br label %138
138: ; preds = %136, %133
%139 = phi double [ %134, %136 ], [ %120, %133 ]
%140 = add nuw nsw i64 %119, 1
%141 = icmp eq i64 %140, %93
br i1 %141, label %99, label %118
142: ; preds = %161, %111
%143 = phi double [ undef, %111 ], [ %183, %161 ]
%144 = phi i64 [ 0, %111 ], [ %184, %161 ]
%145 = phi double [ 0.000000e+00, %111 ], [ %183, %161 ]
%146 = icmp eq i64 %114, 0
br i1 %146, label %158, label %147
147: ; preds = %142, %147
%148 = phi i64 [ %155, %147 ], [ %144, %142 ]
%149 = phi double [ %154, %147 ], [ %145, %142 ]
%150 = phi i64 [ %156, %147 ], [ 0, %142 ]
%151 = getelementptr inbounds double, double* %13, i64 %148
%152 = load double, double* %151
%153 = fcmp ogt double %149, %152
%154 = select i1 %153, double %149, double %152
%155 = add nuw nsw i64 %148, 1
%156 = add i64 %150, 1
%157 = icmp eq i64 %156, %114
br i1 %157, label %158, label %147
158: ; preds = %142, %147, %110
%159 = phi double [ 0.000000e+00, %110 ], [ %143, %142 ], [ %154, %147 ]
%160 = tail call i32 @free(double* %13)
ret double %159
161: ; preds = %161, %116
%162 = phi i64 [ 0, %116 ], [ %184, %161 ]
%163 = phi double [ 0.000000e+00, %116 ], [ %183, %161 ]
%164 = phi i64 [ 0, %116 ], [ %185, %161 ]
%165 = getelementptr inbounds double, double* %13, i64 %162
%166 = load double, double* %165
%167 = fcmp ogt double %163, %166
%168 = select i1 %167, double %163, double %166
%169 = or i64 %162, 1
%170 = getelementptr inbounds double, double* %13, i64 %169
%171 = load double, double* %170
%172 = fcmp ogt double %168, %171
%173 = select i1 %172, double %168, double %171
%174 = or i64 %162, 2
%175 = getelementptr inbounds double, double* %13, i64 %174
%176 = load double, double* %175
%177 = fcmp ogt double %173, %176
%178 = select i1 %177, double %173, double %176
%179 = or i64 %162, 3
%180 = getelementptr inbounds double, double* %13, i64 %179
%181 = load double, double* %180
%182 = fcmp ogt double %178, %181
%183 = select i1 %182, double %178, double %181
%184 = add nuw nsw i64 %162, 4
%185 = add i64 %164, 4
%186 = icmp eq i64 %185, %117
br i1 %186, label %142, label %161
}