#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(int *);
int *perm_uniform(int, int, int *);
void lhs_edge(int nvar, int npoint, int *seed, double x[]) {
  int base = 0, i, j, k, *perm;
  if (npoint == 1)
    for (k = i = 0; i < nvar; i++)
      x[k++] = 0.5;
  else
    for (k = i = 0; i < nvar; i++) {
      perm = perm_uniform(npoint, base, seed);
      for (j = 0; j < npoint; j++)
        x[k++] = ((double)perm[j]) / ((float)(npoint - 1));
      free(perm);
    }
}


x86 assembly (clang, -O0):
<lhs_edge>:
push   %rbp
mov    %rsp,%rbp
sub    $0x30,%rsp
mov    %edi,-0x4(%rbp)
mov    %esi,-0x8(%rbp)
mov    %rdx,-0x10(%rbp)
mov    %rcx,-0x18(%rbp)
movl   $0x0,-0x1c(%rbp)
cmpl   $0x1,-0x8(%rbp)
jne    1193 <lhs_edge+0x73>
movl   $0x0,-0x20(%rbp)
movl   $0x0,-0x28(%rbp)
mov    -0x20(%rbp),%eax
cmp    -0x4(%rbp),%eax
jge    118e <lhs_edge+0x6e>
mov    -0x18(%rbp),%rax
mov    -0x28(%rbp),%ecx
mov    %ecx,%edx
add    $0x1,%edx
mov    %edx,-0x28(%rbp)
movslq %ecx,%rcx
movsd  0xe85(%rip),%xmm0
movsd  %xmm0,(%rax,%rcx,8)
mov    -0x20(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0x20(%rbp)
jmp    1155 <lhs_edge+0x35>
jmp    1233 <lhs_edge+0x113>
movl   $0x0,-0x20(%rbp)
movl   $0x0,-0x28(%rbp)
mov    -0x20(%rbp),%eax
cmp    -0x4(%rbp),%eax
jge    122e <lhs_edge+0x10e>
mov    -0x8(%rbp),%edi
mov    -0x1c(%rbp),%esi
mov    -0x10(%rbp),%rdx
call   1040 <perm_uniform@plt>
mov    %rax,-0x30(%rbp)
movl   $0x0,-0x24(%rbp)
mov    -0x24(%rbp),%eax
cmp    -0x8(%rbp),%eax
jge    1217 <lhs_edge+0xf7>
mov    -0x30(%rbp),%rax
movslq -0x24(%rbp),%rcx
cvtsi2sdl (%rax,%rcx,4),%xmm0
mov    -0x8(%rbp),%eax
sub    $0x1,%eax
cvtsi2ss %eax,%xmm1
cvtss2sd %xmm1,%xmm1
divsd  %xmm1,%xmm0
mov    -0x18(%rbp),%rax
mov    -0x28(%rbp),%ecx
mov    %ecx,%edx
add    $0x1,%edx
mov    %edx,-0x28(%rbp)
movslq %ecx,%rcx
movsd  %xmm0,(%rax,%rcx,8)
mov    -0x24(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0x24(%rbp)
jmp    11c7 <lhs_edge+0xa7>
mov    -0x30(%rbp),%rdi
call   1030 <free@plt>
mov    -0x20(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0x20(%rbp)
jmp    11a1 <lhs_edge+0x81>
jmp    1233 <lhs_edge+0x113>
add    $0x30,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<lhs_edge>:
push   %rbp
push   %r15
push   %r14
push   %r13
push   %r12
push   %rbx
sub    $0x68,%rsp
mov    %rcx,%rbx
mov    %rdx,0x48(%rsp)
mov    %edi,%r15d
cmp    $0x1,%esi
jne    115b <lhs_edge+0x3b>
test   %r15d,%r15d
jle    13dd <lhs_edge+0x2bd>
mov    %r15d,%eax
cmp    $0x4,%r15d
jae    12d9 <lhs_edge+0x1b9>
xor    %ecx,%ecx
jmp    13b7 <lhs_edge+0x297>
test   %r15d,%r15d
jle    13dd <lhs_edge+0x2bd>
mov    %esi,%ebp
lea    -0x1(%rbp),%eax
cvtsi2ss %eax,%xmm0
cvtss2sd %xmm0,%xmm0
mov    %esi,%r13d
mov    %r13,0x8(%rsp)
and    $0xfffffffe,%r13d
lea    -0x2(%r13),%rax
mov    %rax,0x40(%rsp)
mov    %rax,%rcx
shr    %rcx
add    $0x1,%rcx
movaps %xmm0,0x10(%rsp)
movlhps %xmm0,%xmm0
movaps %xmm0,0x50(%rsp)
mov    %rcx,%rax
mov    %rcx,0x38(%rsp)
and    $0xfffffffffffffffe,%rcx
mov    %rcx,0x30(%rsp)
lea    0x10(%rbx),%rax
mov    %rax,0x28(%rsp)
xor    %r12d,%r12d
xor    %r14d,%r14d
jmp    11d5 <lhs_edge+0xb5>
nop
mov    %rax,%rdi
call   1030 <free@plt>
add    $0x1,%r12d
cmp    %r15d,%r12d
je     13dd <lhs_edge+0x2bd>
mov    %ebp,%edi
xor    %esi,%esi
mov    0x48(%rsp),%rdx
call   1040 <perm_uniform@plt>
test   %ebp,%ebp
jle    11c0 <lhs_edge+0xa0>
movslq %r14d,%r14
cmp    $0x1,%ebp
jne    1200 <lhs_edge+0xe0>
xor    %esi,%esi
movapd 0x10(%rsp),%xmm1
jmp    1281 <lhs_edge+0x161>
nopl   0x0(%rax)
cmpq   $0x0,0x40(%rsp)
je     12c2 <lhs_edge+0x1a2>
mov    0x28(%rsp),%rcx
lea    (%rcx,%r14,8),%rdx
mov    0x30(%rsp),%rsi
xor    %ecx,%ecx
movapd 0x10(%rsp),%xmm1
movapd 0x50(%rsp),%xmm2
nopl   0x0(%rax,%rax,1)
cvtdq2pd (%rax,%rcx,4),%xmm0
divpd  %xmm2,%xmm0
movupd %xmm0,-0x10(%rdx,%rcx,8)
cvtdq2pd 0x8(%rax,%rcx,4),%xmm0
divpd  %xmm2,%xmm0
movupd %xmm0,(%rdx,%rcx,8)
add    $0x4,%rcx
add    $0xfffffffffffffffe,%rsi
jne    1230 <lhs_edge+0x110>
testb  $0x1,0x38(%rsp)
je     1270 <lhs_edge+0x150>
cvtdq2pd (%rax,%rcx,4),%xmm0
add    %r14,%rcx
divpd  %xmm2,%xmm0
movupd %xmm0,(%rbx,%rcx,8)
add    %r13,%r14
mov    %r13,%rsi
cmp    0x8(%rsp),%r13
je     11c0 <lhs_edge+0xa0>
lea    (%rax,%rsi,4),%rcx
mov    0x8(%rsp),%rdx
sub    %rsi,%rdx
lea    (%rbx,%r14,8),%rdi
xor    %esi,%esi
cs nopw 0x0(%rax,%rax,1)
nopl   (%rax)
xorps  %xmm0,%xmm0
cvtsi2sdl (%rcx,%rsi,4),%xmm0
divsd  %xmm1,%xmm0
movsd  %xmm0,(%rdi,%rsi,8)
add    $0x1,%rsi
cmp    %rsi,%rdx
jne    12a0 <lhs_edge+0x180>
add    %rsi,%r14
jmp    11c0 <lhs_edge+0xa0>
xor    %ecx,%ecx
movapd 0x10(%rsp),%xmm1
movapd 0x50(%rsp),%xmm2
testb  $0x1,0x38(%rsp)
jne    125f <lhs_edge+0x13f>
jmp    1270 <lhs_edge+0x150>
mov    %eax,%ecx
and    $0xfffffffc,%ecx
lea    -0x4(%rcx),%rdi
mov    %rdi,%rsi
shr    $0x2,%rsi
add    $0x1,%rsi
mov    %esi,%edx
and    $0x7,%edx
cmp    $0x1c,%rdi
jae    12ff <lhs_edge+0x1df>
xor    %edi,%edi
jmp    1381 <lhs_edge+0x261>
and    $0xfffffffffffffff8,%rsi
xor    %edi,%edi
movaps 0xcf4(%rip),%xmm0
nopl   0x0(%rax)
movups %xmm0,(%rbx,%rdi,8)
movups %xmm0,0x10(%rbx,%rdi,8)
movups %xmm0,0x20(%rbx,%rdi,8)
movups %xmm0,0x30(%rbx,%rdi,8)
movups %xmm0,0x40(%rbx,%rdi,8)
movups %xmm0,0x50(%rbx,%rdi,8)
movups %xmm0,0x60(%rbx,%rdi,8)
movups %xmm0,0x70(%rbx,%rdi,8)
movups %xmm0,0x80(%rbx,%rdi,8)
movups %xmm0,0x90(%rbx,%rdi,8)
movups %xmm0,0xa0(%rbx,%rdi,8)
movups %xmm0,0xb0(%rbx,%rdi,8)
movups %xmm0,0xc0(%rbx,%rdi,8)
movups %xmm0,0xd0(%rbx,%rdi,8)
movups %xmm0,0xe0(%rbx,%rdi,8)
movups %xmm0,0xf0(%rbx,%rdi,8)
add    $0x20,%rdi
add    $0xfffffffffffffff8,%rsi
jne    1310 <lhs_edge+0x1f0>
test   %rdx,%rdx
je     13b2 <lhs_edge+0x292>
lea    (%rbx,%rdi,8),%rsi
add    $0x10,%rsi
shl    $0x5,%rdx
xor    %edi,%edi
movaps 0xc65(%rip),%xmm0
nopl   0x0(%rax,%rax,1)
movups %xmm0,-0x10(%rsi,%rdi,1)
movups %xmm0,(%rsi,%rdi,1)
add    $0x20,%rdi
cmp    %rdi,%rdx
jne    13a0 <lhs_edge+0x280>
cmp    %rax,%rcx
je     13dd <lhs_edge+0x2bd>
movabs $0x3fe0000000000000,%rdx
cs nopw 0x0(%rax,%rax,1)
nopl   0x0(%rax,%rax,1)
mov    %rdx,(%rbx,%rcx,8)
add    $0x1,%rcx
cmp    %rcx,%rax
jne    13d0 <lhs_edge+0x2b0>
add    $0x68,%rsp
pop    %rbx
pop    %r12
pop    %r13
pop    %r14
pop    %r15
pop    %rbp
ret

LLVM IR (-O0):
define void @lhs_edge(i32 %0, i32 %1, i32* %2, double* %3) {
%5 = alloca i32
%6 = alloca i32
%7 = alloca i32*
%8 = alloca double*
%9 = alloca i32
%10 = alloca i32
%11 = alloca i32
%12 = alloca i32
%13 = alloca i32*
store i32 %0, i32* %5
store i32 %1, i32* %6
store i32* %2, i32** %7
store double* %3, double** %8
store i32 0, i32* %9
%14 = load i32, i32* %6
%15 = icmp eq i32 %14, 1
br i1 %15, label %16, label %31
16: ; preds = %4
store i32 0, i32* %10
store i32 0, i32* %12
br label %17
17: ; preds = %27, %16
%18 = load i32, i32* %10
%19 = load i32, i32* %5
%20 = icmp slt i32 %18, %19
br i1 %20, label %21, label %30
21: ; preds = %17
%22 = load double*, double** %8
%23 = load i32, i32* %12
%24 = add nsw i32 %23, 1
store i32 %24, i32* %12
%25 = sext i32 %23 to i64
%26 = getelementptr inbounds double, double* %22, i64 %25
store double 5.000000e-01, double* %26
br label %27
27: ; preds = %21
%28 = load i32, i32* %10
%29 = add nsw i32 %28, 1
store i32 %29, i32* %10
br label %17
30: ; preds = %17
br label %72
31: ; preds = %4
store i32 0, i32* %10
store i32 0, i32* %12
br label %32
32: ; preds = %68, %31
%33 = load i32, i32* %10
%34 = load i32, i32* %5
%35 = icmp slt i32 %33, %34
br i1 %35, label %36, label %71
36: ; preds = %32
%37 = load i32, i32* %6
%38 = load i32, i32* %9
%39 = load i32*, i32** %7
%40 = call i32* @perm_uniform(i32 %37, i32 %38, i32* %39)
store i32* %40, i32** %13
store i32 0, i32* %11
br label %41
41: ; preds = %62, %36
%42 = load i32, i32* %11
%43 = load i32, i32* %6
%44 = icmp slt i32 %42, %43
br i1 %44, label %45, label %65
45: ; preds = %41
%46 = load i32*, i32** %13
%47 = load i32, i32* %11
%48 = sext i32 %47 to i64
%49 = getelementptr inbounds i32, i32* %46, i64 %48
%50 = load i32, i32* %49
%51 = sitofp i32 %50 to double
%52 = load i32, i32* %6
%53 = sub nsw i32 %52, 1
%54 = sitofp i32 %53 to float
%55 = fpext float %54 to double
%56 = fdiv double %51, %55
%57 = load double*, double** %8
%58 = load i32, i32* %12
%59 = add nsw i32 %58, 1
store i32 %59, i32* %12
%60 = sext i32 %58 to i64
%61 = getelementptr inbounds double, double* %57, i64 %60
store double %56, double* %61
br label %62
62: ; preds = %45
%63 = load i32, i32* %11
%64 = add nsw i32 %63, 1
store i32 %64, i32* %11
br label %41
65: ; preds = %41
%66 = load i32*, i32** %13
%67 = call i32 @free(i32* %66)
br label %68
68: ; preds = %65
%69 = load i32, i32* %10
%70 = add nsw i32 %69, 1
store i32 %70, i32* %10
br label %32
71: ; preds = %32
br label %72
72: ; preds = %71, %30
ret void
}

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