#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 */
scalar_t__ RAND_MAX;
scalar_t__ malloc(int);
int /*<<< orphan*/ printf(char *);
double rand();
int /*<<< orphan*/ srand(int /*<<< orphan*/);
int /*<<< orphan*/ time(int /*<<< orphan*/);
short md_init(const unsigned iNumPart, double *x, double *v, double dBoxX,
              double dBoxY) {
  if (iNumPart == 0) {
    printf("please supply a valied number of particles\n");
    return 0;
  }
  srand(time(0));
  dBoxX = 120;
  dBoxY = 120;
  x = (double *)malloc(sizeof(double) * 2 * iNumPart);
  for (unsigned i = 0; i < iNumPart; ++i) {
    x[2 * i] = 1.15 * ((int)iNumPart / 10);
    x[2 * i + 1] = 1.15 * ((int)iNumPart % 10);
  }
  v = (double *)malloc(sizeof(double) * 2 * iNumPart);
  for (unsigned i = 0; i < iNumPart; ++i) {
    v[2 * i] = rand() / ((double)RAND_MAX);
    v[2 * i + 1] = rand() / ((double)RAND_MAX);
  }
  return 1;
}


x86 assembly (clang, -O0):
<md_init>:
push   %rbp
mov    %rsp,%rbp
sub    $0x30,%rsp
mov    %edi,-0x8(%rbp)
mov    %rsi,-0x10(%rbp)
mov    %rdx,-0x18(%rbp)
movsd  %xmm0,-0x20(%rbp)
movsd  %xmm1,-0x28(%rbp)
cmpl   $0x0,-0x8(%rbp)
jne    118e <md_init+0x3e>
lea    0xe92(%rip),%rdi
call   1030 <printf@plt>
movw   $0x0,-0x2(%rbp)
jmp    12d0 <md_init+0x180>
xor    %edi,%edi
call   1050 <time@plt>
mov    %eax,%edi
call   1040 <srand@plt>
movsd  0xe5c(%rip),%xmm0
movsd  %xmm0,-0x20(%rbp)
movsd  0xe4f(%rip),%xmm0
movsd  %xmm0,-0x28(%rbp)
mov    -0x8(%rbp),%eax
shl    $0x4,%rax
mov    %eax,%edi
call   1060 <malloc@plt>
mov    %rax,-0x10(%rbp)
movl   $0x0,-0x2c(%rbp)
mov    -0x2c(%rbp),%eax
cmp    -0x8(%rbp),%eax
jae    1244 <md_init+0xf4>
mov    -0x8(%rbp),%eax
mov    $0xa,%ecx
cltd
idiv   %ecx
cvtsi2sd %eax,%xmm1
movsd  0xe16(%rip),%xmm0
mulsd  %xmm1,%xmm0
mov    -0x10(%rbp),%rax
mov    -0x2c(%rbp),%ecx
shl    $0x1,%ecx
mov    %ecx,%ecx
movsd  %xmm0,(%rax,%rcx,8)
mov    -0x8(%rbp),%eax
mov    $0xa,%ecx
cltd
idiv   %ecx
cvtsi2sd %edx,%xmm1
movsd  0xdea(%rip),%xmm0
mulsd  %xmm1,%xmm0
mov    -0x10(%rbp),%rax
mov    -0x2c(%rbp),%ecx
shl    $0x1,%ecx
add    $0x1,%ecx
mov    %ecx,%ecx
movsd  %xmm0,(%rax,%rcx,8)
mov    -0x2c(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0x2c(%rbp)
jmp    11cf <md_init+0x7f>
mov    -0x8(%rbp),%eax
shl    $0x4,%rax
mov    %eax,%edi
call   1060 <malloc@plt>
mov    %rax,-0x18(%rbp)
movl   $0x0,-0x30(%rbp)
mov    -0x30(%rbp),%eax
cmp    -0x8(%rbp),%eax
jae    12ca <md_init+0x17a>
mov    $0x0,%al
call   1070 <rand@plt>
mov    0x2d71(%rip),%rax
cvtsi2sdq (%rax),%xmm1
divsd  %xmm1,%xmm0
mov    -0x18(%rbp),%rax
mov    -0x30(%rbp),%ecx
shl    $0x1,%ecx
mov    %ecx,%ecx
movsd  %xmm0,(%rax,%rcx,8)
mov    $0x0,%al
call   1070 <rand@plt>
mov    0x2d49(%rip),%rax
cvtsi2sdq (%rax),%xmm1
divsd  %xmm1,%xmm0
mov    -0x18(%rbp),%rax
mov    -0x30(%rbp),%ecx
shl    $0x1,%ecx
add    $0x1,%ecx
mov    %ecx,%ecx
movsd  %xmm0,(%rax,%rcx,8)
mov    -0x30(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0x30(%rbp)
jmp    125d <md_init+0x10d>
movw   $0x1,-0x2(%rbp)
movswl -0x2(%rbp),%eax
add    $0x30,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<md_init>:
push   %rbp
push   %r15
push   %r14
push   %r12
push   %rbx
test   %edi,%edi
je     126a <md_init+0x11a>
mov    %edi,%r12d
xor    %ebp,%ebp
xor    %edi,%edi
call   1050 <time@plt>
mov    %eax,%edi
call   1040 <srand@plt>
mov    %r12d,%r14d
shl    $0x4,%r14d
mov    %r14d,%edi
call   1060 <malloc@plt>
mov    %rax,%rcx
movslq %r12d,%rax
imul   $0x66666667,%rax,%rax
mov    %rax,%rdx
shr    $0x3f,%rdx
sar    $0x22,%rax
add    %edx,%eax
lea    (%rax,%rax,1),%edx
lea    (%rdx,%rdx,4),%edx
mov    %r12d,%esi
sub    %edx,%esi
movd   %eax,%xmm0
movd   %esi,%xmm1
punpckldq %xmm1,%xmm0
cvtdq2pd %xmm0,%xmm0
mulpd  0xe41(%rip),%xmm0
mov    %r12d,%esi
cmp    $0x4,%r12d
jae    127d <md_init+0x12d>
mov    %rbp,%rax
not    %rax
add    %rsi,%rax
mov    %rsi,%rdx
and    $0x3,%rdx
je     1214 <md_init+0xc4>
mov    %ebp,%ebx
and    $0x7fffffff,%ebx
shl    $0x4,%rbx
mov    %rcx,%rdi
add    %rbx,%rdi
neg    %rdx
xor    %ebx,%ebx
cs nopw 0x0(%rax,%rax,1)
nop
movupd %xmm0,(%rdi)
add    $0xffffffffffffffff,%rbx
add    $0x10,%rdi
cmp    %rbx,%rdx
jne    1200 <md_init+0xb0>
sub    %rbx,%rbp
cmp    $0x3,%rax
jb     1399 <md_init+0x249>
sub    %rbp,%rsi
add    %rbp,%rbp
cs nopw 0x0(%rax,%rax,1)
xchg   %ax,%ax
mov    %ebp,%eax
and    $0xfffffffe,%eax
movupd %xmm0,(%rcx,%rax,8)
lea    0x2(%rbp),%eax
and    $0xfffffffe,%eax
movupd %xmm0,(%rcx,%rax,8)
lea    0x4(%rbp),%eax
and    $0xfffffffe,%eax
movupd %xmm0,(%rcx,%rax,8)
lea    0x6(%rbp),%eax
and    $0xfffffffe,%eax
movupd %xmm0,(%rcx,%rax,8)
add    $0x8,%rbp
add    $0xfffffffffffffffc,%rsi
jne    1230 <md_init+0xe0>
jmp    1399 <md_init+0x249>
lea    0xd9f(%rip),%rdi
call   1030 <puts@plt>
xor    %eax,%eax
jmp    1402 <md_init+0x2b2>
lea    -0x1(%rsi),%rax
mov    %rax,%rdi
shr    $0x20,%rdi
mov    $0x10,%edx
mul    %rdx
seto   %dl
xor    %ebp,%ebp
test   %rdi,%rdi
jne    11cc <md_init+0x7c>
lea    (%rcx,%rax,1),%rdi
cmp    %rcx,%rdi
jb     11cc <md_init+0x7c>
test   %dl,%dl
jne    11cc <md_init+0x7c>
lea    0x8(%rcx),%rdi
add    %rcx,%rax
add    $0x8,%rax
cmp    %rdi,%rax
jb     11cc <md_init+0x7c>
test   %dl,%dl
jne    11cc <md_init+0x7c>
mov    %esi,%ebp
and    $0xfffffffc,%ebp
movapd %xmm0,%xmm3
unpcklpd %xmm0,%xmm3
movapd %xmm0,%xmm1
unpckhpd %xmm0,%xmm1
lea    -0x4(%rbp),%rdx
mov    %rdx,%r8
shr    $0x2,%r8
add    $0x1,%r8
movapd %xmm3,%xmm2
unpcklpd %xmm1,%xmm2
movhlps %xmm3,%xmm1
test   %rdx,%rdx
je     140b <md_init+0x2bb>
mov    %r8,%rdi
and    $0xfffffffffffffffe,%rdi
mov    $0x8,%eax
cs nopw 0x0(%rax,%rax,1)
nopl   (%rax)
lea    -0x8(%rax),%ebx
and    $0xfffffff0,%ebx
movups %xmm1,0x10(%rcx,%rbx,8)
movupd %xmm2,(%rcx,%rbx,8)
movupd %xmm2,0x20(%rcx,%rbx,8)
movups %xmm1,0x30(%rcx,%rbx,8)
mov    %eax,%edx
and    $0xfffffff8,%edx
movups %xmm1,0x10(%rcx,%rdx,8)
movupd %xmm2,(%rcx,%rdx,8)
movupd %xmm2,0x20(%rcx,%rdx,8)
movups %xmm1,0x30(%rcx,%rdx,8)
add    $0x10,%rax
add    $0xfffffffffffffffe,%rdi
jne    1320 <md_init+0x1d0>
add    $0xfffffff8,%eax
and    $0xfffffff0,%eax
test   $0x1,%r8b
je     1390 <md_init+0x240>
shl    $0x3,%rax
mov    %rax,%rdx
or     $0x8,%rdx
or     $0x28,%rax
movups %xmm1,0x8(%rcx,%rdx,1)
movupd %xmm2,-0x8(%rcx,%rdx,1)
movups %xmm1,0x8(%rcx,%rax,1)
movupd %xmm2,-0x8(%rcx,%rax,1)
cmp    %rsi,%rbp
jne    11cc <md_init+0x7c>
mov    %r14d,%edi
call   1060 <malloc@plt>
cmp    $0x2,%r12d
mov    $0x1,%r15d
cmovae %r12d,%r15d
mov    %rax,%rbx
add    %r15,%r15
mov    0x2c2c(%rip),%r14
xor    %ebp,%ebp
xchg   %ax,%ax
xor    %eax,%eax
call   1070 <rand@plt>
xorps  %xmm1,%xmm1
cvtsi2sdq (%r14),%xmm1
divsd  %xmm1,%xmm0
mov    %ebp,%eax
movsd  %xmm0,(%rbx,%rax,8)
xor    %eax,%eax
call   1070 <rand@plt>
xorps  %xmm1,%xmm1
cvtsi2sdq (%r14),%xmm1
divsd  %xmm1,%xmm0
lea    0x1(%rbp),%eax
movsd  %xmm0,(%rbx,%rax,8)
add    $0x2,%rbp
cmp    %rbp,%r15
jne    13c0 <md_init+0x270>
mov    $0x1,%ax
pop    %rbx
pop    %r12
pop    %r14
pop    %r15
pop    %rbp
ret
xor    %eax,%eax
test   $0x1,%r8b
jne    136b <md_init+0x21b>
jmp    1390 <md_init+0x240>

LLVM IR (-O0):
@.str = [44 x i8] c"please supply a valied number of particles\0A\00"
@RAND_MAX = global i64 0
define signext i16 @md_init(i32 %0, double* %1, double* %2, double %3, double %4) {
%6 = alloca i16
%7 = alloca i32
%8 = alloca double*
%9 = alloca double*
%10 = alloca double
%11 = alloca double
%12 = alloca i32
%13 = alloca i32
store i32 %0, i32* %7
store double* %1, double** %8
store double* %2, double** %9
store double %3, double* %10
store double %4, double* %11
%14 = load i32, i32* %7
%15 = icmp eq i32 %14, 0
br i1 %15, label %16, label %18
16: ; preds = %5
%17 = call i32 @printf(i8* getelementptr inbounds ([44 x i8], [44 x i8]* @.str, i64 0, i64 0))
store i16 0, i16* %6
br label %89
18: ; preds = %5
%19 = call i32 @time(i32 0)
%20 = call i32 @srand(i32 %19)
store double 1.200000e+02, double* %10
store double 1.200000e+02, double* %11
%21 = load i32, i32* %7
%22 = zext i32 %21 to i64
%23 = mul i64 16, %22
%24 = trunc i64 %23 to i32
%25 = call i64 @malloc(i32 %24)
%26 = inttoptr i64 %25 to double*
store double* %26, double** %8
store i32 0, i32* %12
br label %27
27: ; preds = %51, %18
%28 = load i32, i32* %12
%29 = load i32, i32* %7
%30 = icmp ult i32 %28, %29
br i1 %30, label %31, label %54
31: ; preds = %27
%32 = load i32, i32* %7
%33 = sdiv i32 %32, 10
%34 = sitofp i32 %33 to double
%35 = fmul double 1.150000e+00, %34
%36 = load double*, double** %8
%37 = load i32, i32* %12
%38 = mul i32 2, %37
%39 = zext i32 %38 to i64
%40 = getelementptr inbounds double, double* %36, i64 %39
store double %35, double* %40
%41 = load i32, i32* %7
%42 = srem i32 %41, 10
%43 = sitofp i32 %42 to double
%44 = fmul double 1.150000e+00, %43
%45 = load double*, double** %8
%46 = load i32, i32* %12
%47 = mul i32 2, %46
%48 = add i32 %47, 1
%49 = zext i32 %48 to i64
%50 = getelementptr inbounds double, double* %45, i64 %49
store double %44, double* %50
br label %51
51: ; preds = %31
%52 = load i32, i32* %12
%53 = add i32 %52, 1
store i32 %53, i32* %12
br label %27
54: ; preds = %27
%55 = load i32, i32* %7
%56 = zext i32 %55 to i64
%57 = mul i64 16, %56
%58 = trunc i64 %57 to i32
%59 = call i64 @malloc(i32 %58)
%60 = inttoptr i64 %59 to double*
store double* %60, double** %9
store i32 0, i32* %13
br label %61
61: ; preds = %85, %54
%62 = load i32, i32* %13
%63 = load i32, i32* %7
%64 = icmp ult i32 %62, %63
br i1 %64, label %65, label %88
65: ; preds = %61
%66 = call double (...) @rand()
%67 = load i64, i64* @RAND_MAX
%68 = sitofp i64 %67 to double
%69 = fdiv double %66, %68
%70 = load double*, double** %9
%71 = load i32, i32* %13
%72 = mul i32 2, %71
%73 = zext i32 %72 to i64
%74 = getelementptr inbounds double, double* %70, i64 %73
store double %69, double* %74
%75 = call double (...) @rand()
%76 = load i64, i64* @RAND_MAX
%77 = sitofp i64 %76 to double
%78 = fdiv double %75, %77
%79 = load double*, double** %9
%80 = load i32, i32* %13
%81 = mul i32 2, %80
%82 = add i32 %81, 1
%83 = zext i32 %82 to i64
%84 = getelementptr inbounds double, double* %79, i64 %83
store double %78, double* %84
br label %85
85: ; preds = %65
%86 = load i32, i32* %13
%87 = add i32 %86, 1
store i32 %87, i32* %13
br label %61
88: ; preds = %61
store i16 1, i16* %6
br label %89
89: ; preds = %88, %16
%90 = load i16, i16* %6
ret i16 %90
}

LLVM IR (-O2):
@RAND_MAX = global i64 0
@str = [43 x i8] c"please supply a valied number of particles\00"
define signext i16 @md_init(i32 %0, double* nocapture readnone %1, double* nocapture readnone %2, double %3, double %4) {
%6 = icmp eq i32 %0, 0
br i1 %6, label %7, label %9
7: ; preds = %5
%8 = tail call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([43 x i8], [43 x i8]* @str, i64 0, i64 0))
br label %174
9: ; preds = %5
%10 = tail call i32 @time(i32 0)
%11 = tail call i32 @srand(i32 %10)
%12 = shl i32 %0, 4
%13 = tail call i64 @malloc(i32 %12)
%14 = inttoptr i64 %13 to double*
%15 = inttoptr i64 %13 to i8*
%16 = sdiv i32 %0, 10
%17 = srem i32 %0, 10
%18 = insertelement <2 x i32> poison, i32 %16, i64 0
%19 = insertelement <2 x i32> %18, i32 %17, i64 1
%20 = sitofp <2 x i32> %19 to <2 x double>
%21 = fmul <2 x double> %20, <double 1.150000e+00, double 1.150000e+00>
%22 = zext i32 %0 to i64
%23 = icmp ult i32 %0, 4
br i1 %23, label %108, label %24
24: ; preds = %9
%25 = add nsw i64 %22, -1
%26 = icmp ugt i64 %25, 4294967295
%27 = call { i64, i1 } @llvm.umul.with.overflow.i64(i64 %25, i64 16)
%28 = extractvalue { i64, i1 } %27, 0
%29 = extractvalue { i64, i1 } %27, 1
%30 = getelementptr i8, i8* %15, i64 %28
%31 = icmp ult i8* %30, %15
%32 = or i1 %31, %29
%33 = getelementptr double, double* %14, i64 1
%34 = call { i64, i1 } @llvm.umul.with.overflow.i64(i64 %25, i64 16)
%35 = extractvalue { i64, i1 } %34, 0
%36 = extractvalue { i64, i1 } %34, 1
%37 = bitcast double* %33 to i8*
%38 = getelementptr i8, i8* %37, i64 %35
%39 = icmp ult i8* %38, %37
%40 = or i1 %39, %36
%41 = or i1 %26, %32
%42 = or i1 %41, %40
br i1 %42, label %108, label %43
43: ; preds = %24
%44 = and i64 %22, 4294967292
%45 = shufflevector <2 x double> %21, <2 x double> poison, <2 x i32> zeroinitializer
%46 = shufflevector <2 x double> %21, <2 x double> undef, <2 x i32> <i32 1, i32 1>
%47 = add nsw i64 %44, -4
%48 = lshr exact i64 %47, 2
%49 = add nuw nsw i64 %48, 1
%50 = and i64 %49, 1
%51 = icmp eq i64 %47, 0
br i1 %51, label %92, label %52
52: ; preds = %43
%53 = and i64 %49, 9223372036854775806
%54 = getelementptr inbounds double, double* %14, i64 -1
%55 = getelementptr inbounds double, double* %14, i64 -1
%56 = shufflevector <2 x double> %45, <2 x double> %46, <4 x i32> <i32 0, i32 2, i32 1, i32 3>
%57 = shufflevector <2 x double> %45, <2 x double> %46, <4 x i32> <i32 0, i32 2, i32 1, i32 3>
%58 = getelementptr inbounds double, double* %14, i64 -1
%59 = getelementptr inbounds double, double* %14, i64 -1
%60 = shufflevector <2 x double> %45, <2 x double> %46, <4 x i32> <i32 0, i32 2, i32 1, i32 3>
%61 = shufflevector <2 x double> %45, <2 x double> %46, <4 x i32> <i32 0, i32 2, i32 1, i32 3>
br label %62
62: ; preds = %62, %52
%63 = phi i64 [ 0, %52 ], [ %86, %62 ]
%64 = phi i64 [ 0, %52 ], [ %87, %62 ]
%65 = shl i64 %63, 1
%66 = shl i64 %63, 1
%67 = and i64 %65, 4294967280
%68 = or i64 %67, 1
%69 = and i64 %66, 4294967280
%70 = or i64 %69, 5
%71 = getelementptr inbounds double, double* %54, i64 %68
%72 = bitcast double* %71 to <4 x double>*
%73 = getelementptr inbounds double, double* %55, i64 %70
%74 = bitcast double* %73 to <4 x double>*
store <4 x double> %56, <4 x double>* %72
store <4 x double> %57, <4 x double>* %74
%75 = or i64 %63, 4
%76 = shl i64 %75, 1
%77 = shl i64 %75, 1
%78 = and i64 %76, 4294967288
%79 = or i64 %78, 1
%80 = and i64 %77, 4294967288
%81 = or i64 %80, 5
%82 = getelementptr inbounds double, double* %58, i64 %79
%83 = bitcast double* %82 to <4 x double>*
%84 = getelementptr inbounds double, double* %59, i64 %81
%85 = bitcast double* %84 to <4 x double>*
store <4 x double> %60, <4 x double>* %83
store <4 x double> %61, <4 x double>* %85
%86 = add nuw i64 %63, 8
%87 = add i64 %64, 2
%88 = icmp eq i64 %87, %53
br i1 %88, label %89, label %62
89: ; preds = %62
%90 = shl i64 %86, 1
%91 = and i64 %90, 4294967280
br label %92
92: ; preds = %89, %43
%93 = phi i64 [ 0, %43 ], [ %91, %89 ]
%94 = icmp eq i64 %50, 0
br i1 %94, label %106, label %95
95: ; preds = %92
%96 = or i64 %93, 1
%97 = or i64 %93, 5
%98 = getelementptr inbounds double, double* %14, i64 -1
%99 = getelementptr inbounds double, double* %14, i64 -1
%100 = getelementptr inbounds double, double* %98, i64 %96
%101 = bitcast double* %100 to <4 x double>*
%102 = getelementptr inbounds double, double* %99, i64 %97
%103 = bitcast double* %102 to <4 x double>*
%104 = shufflevector <2 x double> %45, <2 x double> %46, <4 x i32> <i32 0, i32 2, i32 1, i32 3>
store <4 x double> %104, <4 x double>* %101
%105 = shufflevector <2 x double> %45, <2 x double> %46, <4 x i32> <i32 0, i32 2, i32 1, i32 3>
store <4 x double> %105, <4 x double>* %103
br label %106
106: ; preds = %92, %95
%107 = icmp eq i64 %44, %22
br i1 %107, label %127, label %108
108: ; preds = %24, %9, %106
%109 = phi i64 [ 0, %24 ], [ 0, %9 ], [ %44, %106 ]
%110 = xor i64 %109, -1
%111 = add nsw i64 %110, %22
%112 = and i64 %22, 3
%113 = icmp eq i64 %112, 0
br i1 %113, label %124, label %114
114: ; preds = %108, %114
%115 = phi i64 [ %121, %114 ], [ %109, %108 ]
%116 = phi i64 [ %122, %114 ], [ 0, %108 ]
%117 = shl nuw i64 %115, 1
%118 = and i64 %117, 4294967294
%119 = getelementptr inbounds double, double* %14, i64 %118
%120 = bitcast double* %119 to <2 x double>*
store <2 x double> %21, <2 x double>* %120
%121 = add nuw nsw i64 %115, 1
%122 = add i64 %116, 1
%123 = icmp eq i64 %122, %112
br i1 %123, label %124, label %114
124: ; preds = %114, %108
%125 = phi i64 [ %109, %108 ], [ %121, %114 ]
%126 = icmp ult i64 %111, 3
br i1 %126, label %127, label %132
127: ; preds = %124, %132, %106
%128 = tail call i64 @malloc(i32 %12)
%129 = inttoptr i64 %128 to double*
%130 = call i32 @llvm.umax.i32(i32 %0, i32 1)
%131 = zext i32 %130 to i64
br label %155
132: ; preds = %124, %132
%133 = phi i64 [ %153, %132 ], [ %125, %124 ]
%134 = shl i64 %133, 1
%135 = and i64 %134, 4294967294
%136 = getelementptr inbounds double, double* %14, i64 %135
%137 = bitcast double* %136 to <2 x double>*
store <2 x double> %21, <2 x double>* %137
%138 = shl i64 %133, 1
%139 = add i64 %138, 2
%140 = and i64 %139, 4294967294
%141 = getelementptr inbounds double, double* %14, i64 %140
%142 = bitcast double* %141 to <2 x double>*
store <2 x double> %21, <2 x double>* %142
%143 = shl i64 %133, 1
%144 = add i64 %143, 4
%145 = and i64 %144, 4294967294
%146 = getelementptr inbounds double, double* %14, i64 %145
%147 = bitcast double* %146 to <2 x double>*
store <2 x double> %21, <2 x double>* %147
%148 = shl i64 %133, 1
%149 = add i64 %148, 6
%150 = and i64 %149, 4294967294
%151 = getelementptr inbounds double, double* %14, i64 %150
%152 = bitcast double* %151 to <2 x double>*
store <2 x double> %21, <2 x double>* %152
%153 = add nuw nsw i64 %133, 4
%154 = icmp eq i64 %153, %22
br i1 %154, label %127, label %132
155: ; preds = %127, %155
%156 = phi i64 [ 0, %127 ], [ %172, %155 ]
%157 = tail call double (...) @rand()
%158 = load i64, i64* @RAND_MAX
%159 = sitofp i64 %158 to double
%160 = fdiv double %157, %159
%161 = trunc i64 %156 to i32
%162 = shl i32 %161, 1
%163 = zext i32 %162 to i64
%164 = getelementptr inbounds double, double* %129, i64 %163
store double %160, double* %164
%165 = tail call double (...) @rand()
%166 = load i64, i64* @RAND_MAX
%167 = sitofp i64 %166 to double
%168 = fdiv double %165, %167
%169 = or i32 %162, 1
%170 = zext i32 %169 to i64
%171 = getelementptr inbounds double, double* %129, i64 %170
store double %168, double* %171
%172 = add nuw nsw i64 %156, 1
%173 = icmp eq i64 %172, %131
br i1 %173, label %174, label %155
174: ; preds = %155, %7
%175 = phi i16 [ 0, %7 ], [ 1, %155 ]
ret i16 %175
}