#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 fabs(double);
int /*<<< orphan*/ lp(double *, double *, double *, int, int const, int, int);
int /*<<< orphan*/ memcpy(double *, double *, int const);
float randon(double, int const);
void shake(double *x, double *y, double *r, int know, const int DIM, double lb,
           double ub, int *cont, int RADII_T_FLAG, int p, int max_changes,
           double delta_percent) {
  *cont += 1;
  int i, cont_changes = 0;
  ;
  double aux;
  int itoChange = randon(0, DIM);
  memcpy(y, x, DIM * sizeof(double));
  do {
    double amount_ratio = r[know];
    for (i = 0; i < DIM; i++) {
      if (i == itoChange || randon(0, 1) < delta_percent) {
        if (cont_changes == max_changes) {
          break;
        }
        cont_changes++;
        aux = y[i];
        if (randon(0, 1) > 0.5f) {
          while (aux == y[i] || (aux < lb && aux > ub)) {
            aux = randon(aux, aux + (amount_ratio));
          }
        } else {
          while (aux == y[i] || (aux < lb && aux > ub)) {
            aux = randon(aux - (amount_ratio), aux);
          }
        }
        if (aux < lb) {
          aux = lb;
        } else if (aux > ub) {
          aux = ub;
        }
        y[i] = aux;
        amount_ratio = amount_ratio - fabs(fabs(x[i]) - fabs(aux));
        if (amount_ratio < 0.00001) {
          i = DIM;
          break;
        }
      }
    }
  } while (!lp(x, y, r, know, DIM, RADII_T_FLAG, p));
}


x86 assembly (clang, -O0):
<shake>:
push   %rbp
mov    %rsp,%rbp
sub    $0x70,%rsp
mov    0x20(%rbp),%eax
mov    0x18(%rbp),%eax
mov    0x10(%rbp),%eax
mov    %rdi,-0x8(%rbp)
mov    %rsi,-0x10(%rbp)
mov    %rdx,-0x18(%rbp)
mov    %ecx,-0x1c(%rbp)
mov    %r8d,-0x20(%rbp)
movsd  %xmm0,-0x28(%rbp)
movsd  %xmm1,-0x30(%rbp)
mov    %r9,-0x38(%rbp)
movsd  %xmm2,-0x40(%rbp)
mov    -0x38(%rbp),%rax
mov    (%rax),%ecx
add    $0x1,%ecx
mov    %ecx,(%rax)
movl   $0x0,-0x48(%rbp)
mov    -0x20(%rbp),%edi
xorps  %xmm0,%xmm0
call   1030 <randon@plt>
cvttss2si %xmm0,%eax
mov    %eax,-0x54(%rbp)
mov    -0x10(%rbp),%rdi
mov    -0x8(%rbp),%rsi
movslq -0x20(%rbp),%rax
shl    $0x3,%rax
mov    %eax,%edx
call   1040 <memcpy@plt>
mov    -0x18(%rbp),%rax
movslq -0x1c(%rbp),%rcx
movsd  (%rax,%rcx,8),%xmm0
movsd  %xmm0,-0x60(%rbp)
movl   $0x0,-0x44(%rbp)
mov    -0x44(%rbp),%eax
cmp    -0x20(%rbp),%eax
jge    1436 <shake+0x306>
mov    -0x44(%rbp),%eax
cmp    -0x54(%rbp),%eax
je     11f3 <shake+0xc3>
xorps  %xmm0,%xmm0
mov    $0x1,%edi
call   1030 <randon@plt>
cvtss2sd %xmm0,%xmm1
movsd  -0x40(%rbp),%xmm0
ucomisd %xmm1,%xmm0
jbe    1423 <shake+0x2f3>
mov    -0x48(%rbp),%eax
cmp    0x20(%rbp),%eax
jne    1204 <shake+0xd4>
jmp    1436 <shake+0x306>
mov    -0x48(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0x48(%rbp)
mov    -0x10(%rbp),%rax
movslq -0x44(%rbp),%rcx
movsd  (%rax,%rcx,8),%xmm0
movsd  %xmm0,-0x50(%rbp)
xorps  %xmm0,%xmm0
mov    $0x1,%edi
call   1030 <randon@plt>
movss  0xdcc(%rip),%xmm1
ucomiss %xmm1,%xmm0
jbe    12d4 <shake+0x1a4>
jmp    1242 <shake+0x112>
movsd  -0x50(%rbp),%xmm0
mov    -0x10(%rbp),%rcx
movslq -0x44(%rbp),%rdx
mov    $0x1,%al
ucomisd (%rcx,%rdx,8),%xmm0
mov    %al,-0x61(%rbp)
jne    126a <shake+0x13a>
jp     126a <shake+0x13a>
jmp    1299 <shake+0x169>
movsd  -0x50(%rbp),%xmm1
movsd  -0x28(%rbp),%xmm0
xor    %eax,%eax
ucomisd %xmm1,%xmm0
mov    %al,-0x62(%rbp)
jbe    1293 <shake+0x163>
movsd  -0x50(%rbp),%xmm0
ucomisd -0x30(%rbp),%xmm0
seta   %al
mov    %al,-0x62(%rbp)
mov    -0x62(%rbp),%al
mov    %al,-0x61(%rbp)
mov    -0x61(%rbp),%al
test   $0x1,%al
jne    12a9 <shake+0x179>
jmp    12cf <shake+0x19f>
movsd  -0x50(%rbp),%xmm0
movsd  -0x50(%rbp),%xmm1
addsd  -0x60(%rbp),%xmm1
cvttsd2si %xmm1,%edi
call   1030 <randon@plt>
cvtss2sd %xmm0,%xmm0
movsd  %xmm0,-0x50(%rbp)
jmp    1242 <shake+0x112>
jmp    1367 <shake+0x237>
jmp    12d9 <shake+0x1a9>
movsd  -0x50(%rbp),%xmm0
mov    -0x10(%rbp),%rcx
movslq -0x44(%rbp),%rdx
mov    $0x1,%al
ucomisd (%rcx,%rdx,8),%xmm0
mov    %al,-0x63(%rbp)
jne    1301 <shake+0x1d1>
jp     1301 <shake+0x1d1>
jmp    1330 <shake+0x200>
movsd  -0x50(%rbp),%xmm1
movsd  -0x28(%rbp),%xmm0
xor    %eax,%eax
ucomisd %xmm1,%xmm0
mov    %al,-0x64(%rbp)
jbe    132a <shake+0x1fa>
movsd  -0x50(%rbp),%xmm0
ucomisd -0x30(%rbp),%xmm0
seta   %al
mov    %al,-0x64(%rbp)
mov    -0x64(%rbp),%al
mov    %al,-0x63(%rbp)
mov    -0x63(%rbp),%al
test   $0x1,%al
jne    1340 <shake+0x210>
jmp    1362 <shake+0x232>
movsd  -0x50(%rbp),%xmm0
subsd  -0x60(%rbp),%xmm0
cvttsd2si -0x50(%rbp),%edi
call   1030 <randon@plt>
cvtss2sd %xmm0,%xmm0
movsd  %xmm0,-0x50(%rbp)
jmp    12d9 <shake+0x1a9>
jmp    1367 <shake+0x237>
movsd  -0x50(%rbp),%xmm1
movsd  -0x28(%rbp),%xmm0
ucomisd %xmm1,%xmm0
jbe    138a <shake+0x25a>
movsd  -0x28(%rbp),%xmm0
movsd  %xmm0,-0x50(%rbp)
jmp    13a9 <shake+0x279>
movsd  -0x50(%rbp),%xmm0
ucomisd -0x30(%rbp),%xmm0
jbe    13a4 <shake+0x274>
movsd  -0x30(%rbp),%xmm0
movsd  %xmm0,-0x50(%rbp)
jmp    13a9 <shake+0x279>
movsd  -0x50(%rbp),%xmm0
mov    -0x10(%rbp),%rax
movslq -0x44(%rbp),%rcx
movsd  %xmm0,(%rax,%rcx,8)
movsd  -0x60(%rbp),%xmm0
mov    -0x8(%rbp),%rax
movslq -0x44(%rbp),%rcx
movsd  (%rax,%rcx,8),%xmm1
movaps 0xc3c(%rip),%xmm2
pand   %xmm2,%xmm1
movsd  -0x50(%rbp),%xmm2
movaps 0xc2c(%rip),%xmm3
pand   %xmm3,%xmm2
subsd  %xmm2,%xmm1
movaps 0xc1d(%rip),%xmm2
pand   %xmm2,%xmm1
subsd  %xmm1,%xmm0
movsd  %xmm0,-0x60(%rbp)
movsd  0xc00(%rip),%xmm0
ucomisd -0x60(%rbp),%xmm0
jbe    141e <shake+0x2ee>
mov    -0x20(%rbp),%eax
mov    %eax,-0x44(%rbp)
jmp    1436 <shake+0x306>
jmp    1423 <shake+0x2f3>
jmp    1428 <shake+0x2f8>
mov    -0x44(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0x44(%rbp)
jmp    11bb <shake+0x8b>
jmp    143b <shake+0x30b>
mov    -0x8(%rbp),%rdi
mov    -0x10(%rbp),%rsi
mov    -0x18(%rbp),%rdx
mov    -0x1c(%rbp),%ecx
mov    -0x20(%rbp),%r8d
mov    0x10(%rbp),%r9d
mov    0x18(%rbp),%eax
mov    %eax,(%rsp)
call   1050 <lp@plt>
cmp    $0x0,%eax
setne  %al
xor    $0xff,%al
test   $0x1,%al
jne    11a2 <shake+0x72>
add    $0x70,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<shake>:
push   %rbp
push   %r15
push   %r14
push   %r13
push   %r12
push   %rbx
sub    $0x58,%rsp
movsd  %xmm2,0x50(%rsp)
movsd  %xmm1,0x8(%rsp)
movsd  %xmm0,0x18(%rsp)
mov    %r8d,%ebx
mov    %ecx,%r15d
mov    %rdx,0x30(%rsp)
mov    %rsi,%rbp
mov    %rdi,%r12
addl   $0x1,(%r9)
xorps  %xmm0,%xmm0
mov    %r8d,%edi
call   1030 <randon@plt>
cvttss2si %xmm0,%r14d
lea    0x0(,%rbx,8),%edx
mov    %rbp,%rdi
mov    %r12,0x28(%rsp)
mov    %r12,%rsi
call   1040 <memcpy@plt>
mov    %r15d,0x24(%rsp)
movslq %r15d,%rax
mov    %rax,0x40(%rsp)
mov    %ebx,%r15d
xor    %r12d,%r12d
mov    %rbx,0x48(%rsp)
jmp    11eb <shake+0xbb>
cs nopw 0x0(%rax,%rax,1)
mov    0x28(%rsp),%rbx
mov    0x98(%rsp),%eax
mov    %eax,(%rsp)
mov    %rbx,%rdi
mov    %rbp,%rsi
mov    0x30(%rsp),%rdx
mov    0x24(%rsp),%ecx
mov    0x48(%rsp),%rbx
mov    %ebx,%r8d
mov    0x90(%rsp),%r9d
call   1050 <lp@plt>
test   %eax,%eax
jne    1393 <shake+0x263>
test   %ebx,%ebx
jle    11b0 <shake+0x80>
mov    0x30(%rsp),%rax
mov    0x40(%rsp),%rcx
movsd  (%rax,%rcx,8),%xmm0
movsd  %xmm0,0x10(%rsp)
xor    %r13d,%r13d
mov    0x28(%rsp),%rbx
jmp    1268 <shake+0x138>
xchg   %ax,%ax
add    $0x1,%r12d
movsd  %xmm0,0x0(%rbp,%r13,8)
movsd  (%rbx,%r13,8),%xmm1
movapd 0xde7(%rip),%xmm2
andpd  %xmm2,%xmm1
andpd  %xmm2,%xmm0
subsd  %xmm0,%xmm1
andpd  %xmm2,%xmm1
movsd  0x10(%rsp),%xmm2
subsd  %xmm1,%xmm2
movsd  0xdd5(%rip),%xmm0
movsd  %xmm2,0x10(%rsp)
ucomisd %xmm2,%xmm0
ja     11b5 <shake+0x85>
add    $0x1,%r13
cmp    %r15,%r13
je     11b5 <shake+0x85>
cmp    %r14,%r13
je     128a <shake+0x15a>
xorps  %xmm0,%xmm0
mov    $0x1,%edi
call   1030 <randon@plt>
cvtss2sd %xmm0,%xmm0
movsd  0x50(%rsp),%xmm1
ucomisd %xmm0,%xmm1
jbe    125b <shake+0x12b>
cmp    0xa0(%rsp),%r12d
je     1384 <shake+0x254>
movsd  0x0(%rbp,%r13,8),%xmm0
movsd  %xmm0,0x38(%rsp)
xorps  %xmm0,%xmm0
mov    $0x1,%edi
call   1030 <randon@plt>
ucomiss 0xd47(%rip),%xmm0
jbe    1310 <shake+0x1e0>
movsd  0x38(%rsp),%xmm1
jmp    12ee <shake+0x1be>
cs nopw 0x0(%rax,%rax,1)
nopl   (%rax)
movsd  0x10(%rsp),%xmm0
addsd  %xmm1,%xmm0
cvttsd2si %xmm0,%edi
movapd %xmm1,%xmm0
call   1030 <randon@plt>
xorps  %xmm1,%xmm1
cvtss2sd %xmm0,%xmm1
ucomisd 0x0(%rbp,%r13,8),%xmm1
jne    12f9 <shake+0x1c9>
jnp    12d0 <shake+0x1a0>
movsd  0x18(%rsp),%xmm0
ucomisd %xmm1,%xmm0
jbe    1359 <shake+0x229>
ucomisd 0x8(%rsp),%xmm1
ja     12d0 <shake+0x1a0>
jmp    1359 <shake+0x229>
nop
movsd  0x38(%rsp),%xmm1
jmp    133a <shake+0x20a>
nopl   0x0(%rax,%rax,1)
cvttsd2si %xmm1,%edi
subsd  0x10(%rsp),%xmm1
movapd %xmm1,%xmm0
call   1030 <randon@plt>
xorps  %xmm1,%xmm1
cvtss2sd %xmm0,%xmm1
ucomisd 0x0(%rbp,%r13,8),%xmm1
jne    1345 <shake+0x215>
jnp    1320 <shake+0x1f0>
movsd  0x18(%rsp),%xmm0
ucomisd %xmm1,%xmm0
jbe    1359 <shake+0x229>
ucomisd 0x8(%rsp),%xmm1
ja     1320 <shake+0x1f0>
movsd  0x18(%rsp),%xmm0
ucomisd %xmm1,%xmm0
ja     1210 <shake+0xe0>
ucomisd 0x8(%rsp),%xmm1
movapd %xmm1,%xmm0
jbe    1210 <shake+0xe0>
movsd  0x8(%rsp),%xmm0
jmp    1210 <shake+0xe0>
mov    0xa0(%rsp),%eax
mov    %eax,%r12d
jmp    11b5 <shake+0x85>
add    $0x58,%rsp
pop    %rbx
pop    %r12
pop    %r13
pop    %r14
pop    %r15
pop    %rbp
ret

LLVM IR (-O0):
define void @shake(double* %0, double* %1, double* %2, i32 %3, i32 %4, double %5, double %6, i32* %7, i32 %8, i32 %9, i32 %10, double %11) {
%13 = alloca double*
%14 = alloca double*
%15 = alloca double*
%16 = alloca i32
%17 = alloca i32
%18 = alloca double
%19 = alloca double
%20 = alloca i32*
%21 = alloca i32
%22 = alloca i32
%23 = alloca i32
%24 = alloca double
%25 = alloca i32
%26 = alloca i32
%27 = alloca double
%28 = alloca i32
%29 = alloca double
store double* %0, double** %13
store double* %1, double** %14
store double* %2, double** %15
store i32 %3, i32* %16
store i32 %4, i32* %17
store double %5, double* %18
store double %6, double* %19
store i32* %7, i32** %20
store i32 %8, i32* %21
store i32 %9, i32* %22
store i32 %10, i32* %23
store double %11, double* %24
%30 = load i32*, i32** %20
%31 = load i32, i32* %30
%32 = add nsw i32 %31, 1
store i32 %32, i32* %30
store i32 0, i32* %26
%33 = load i32, i32* %17
%34 = call float @randon(double 0.000000e+00, i32 %33)
%35 = fptosi float %34 to i32
store i32 %35, i32* %28
%36 = load double*, double** %14
%37 = load double*, double** %13
%38 = load i32, i32* %17
%39 = sext i32 %38 to i64
%40 = mul i64 %39, 8
%41 = trunc i64 %40 to i32
%42 = call i32 @memcpy(double* %36, double* %37, i32 %41)
br label %43
43: ; preds = %178, %12
%44 = load double*, double** %15
%45 = load i32, i32* %16
%46 = sext i32 %45 to i64
%47 = getelementptr inbounds double, double* %44, i64 %46
%48 = load double, double* %47
store double %48, double* %29
store i32 0, i32* %25
br label %49
49: ; preds = %174, %43
%50 = load i32, i32* %25
%51 = load i32, i32* %17
%52 = icmp slt i32 %50, %51
br i1 %52, label %53, label %177
53: ; preds = %49
%54 = load i32, i32* %25
%55 = load i32, i32* %28
%56 = icmp eq i32 %54, %55
br i1 %56, label %62, label %57
57: ; preds = %53
%58 = call float @randon(double 0.000000e+00, i32 1)
%59 = fpext float %58 to double
%60 = load double, double* %24
%61 = fcmp olt double %59, %60
br i1 %61, label %62, label %173
62: ; preds = %57, %53
%63 = load i32, i32* %26
%64 = load i32, i32* %23
%65 = icmp eq i32 %63, %64
br i1 %65, label %66, label %67
66: ; preds = %62
br label %177
67: ; preds = %62
%68 = load i32, i32* %26
%69 = add nsw i32 %68, 1
store i32 %69, i32* %26
%70 = load double*, double** %14
%71 = load i32, i32* %25
%72 = sext i32 %71 to i64
%73 = getelementptr inbounds double, double* %70, i64 %72
%74 = load double, double* %73
store double %74, double* %27
%75 = call float @randon(double 0.000000e+00, i32 1)
%76 = fcmp ogt float %75, 5.000000e-01
br i1 %76, label %77, label %107
77: ; preds = %67
br label %78
78: ; preds = %98, %77
%79 = load double, double* %27
%80 = load double*, double** %14
%81 = load i32, i32* %25
%82 = sext i32 %81 to i64
%83 = getelementptr inbounds double, double* %80, i64 %82
%84 = load double, double* %83
%85 = fcmp oeq double %79, %84
br i1 %85, label %96, label %86
86: ; preds = %78
%87 = load double, double* %27
%88 = load double, double* %18
%89 = fcmp olt double %87, %88
br i1 %89, label %90, label %94
90: ; preds = %86
%91 = load double, double* %27
%92 = load double, double* %19
%93 = fcmp ogt double %91, %92
br label %94
94: ; preds = %90, %86
%95 = phi i1 [ false, %86 ], [ %93, %90 ]
br label %96
96: ; preds = %94, %78
%97 = phi i1 [ true, %78 ], [ %95, %94 ]
br i1 %97, label %98, label %106
98: ; preds = %96
%99 = load double, double* %27
%100 = load double, double* %27
%101 = load double, double* %29
%102 = fadd double %100, %101
%103 = fptosi double %102 to i32
%104 = call float @randon(double %99, i32 %103)
%105 = fpext float %104 to double
store double %105, double* %27
br label %78
106: ; preds = %96
br label %137
107: ; preds = %67
br label %108
108: ; preds = %128, %107
%109 = load double, double* %27
%110 = load double*, double** %14
%111 = load i32, i32* %25
%112 = sext i32 %111 to i64
%113 = getelementptr inbounds double, double* %110, i64 %112
%114 = load double, double* %113
%115 = fcmp oeq double %109, %114
br i1 %115, label %126, label %116
116: ; preds = %108
%117 = load double, double* %27
%118 = load double, double* %18
%119 = fcmp olt double %117, %118
br i1 %119, label %120, label %124
120: ; preds = %116
%121 = load double, double* %27
%122 = load double, double* %19
%123 = fcmp ogt double %121, %122
br label %124
124: ; preds = %120, %116
%125 = phi i1 [ false, %116 ], [ %123, %120 ]
br label %126
126: ; preds = %124, %108
%127 = phi i1 [ true, %108 ], [ %125, %124 ]
br i1 %127, label %128, label %136
128: ; preds = %126
%129 = load double, double* %27
%130 = load double, double* %29
%131 = fsub double %129, %130
%132 = load double, double* %27
%133 = fptosi double %132 to i32
%134 = call float @randon(double %131, i32 %133)
%135 = fpext float %134 to double
store double %135, double* %27
br label %108
136: ; preds = %126
br label %137
137: ; preds = %136, %106
%138 = load double, double* %27
%139 = load double, double* %18
%140 = fcmp olt double %138, %139
br i1 %140, label %141, label %143
141: ; preds = %137
%142 = load double, double* %18
store double %142, double* %27
br label %150
143: ; preds = %137
%144 = load double, double* %27
%145 = load double, double* %19
%146 = fcmp ogt double %144, %145
br i1 %146, label %147, label %149
147: ; preds = %143
%148 = load double, double* %19
store double %148, double* %27
br label %149
149: ; preds = %147, %143
br label %150
150: ; preds = %149, %141
%151 = load double, double* %27
%152 = load double*, double** %14
%153 = load i32, i32* %25
%154 = sext i32 %153 to i64
%155 = getelementptr inbounds double, double* %152, i64 %154
store double %151, double* %155
%156 = load double, double* %29
%157 = load double*, double** %13
%158 = load i32, i32* %25
%159 = sext i32 %158 to i64
%160 = getelementptr inbounds double, double* %157, i64 %159
%161 = load double, double* %160
%162 = call double @llvm.fabs.f64(double %161)
%163 = load double, double* %27
%164 = call double @llvm.fabs.f64(double %163)
%165 = fsub double %162, %164
%166 = call double @llvm.fabs.f64(double %165)
%167 = fsub double %156, %166
store double %167, double* %29
%168 = load double, double* %29
%169 = fcmp olt double %168, 1.000000e-05
br i1 %169, label %170, label %172
170: ; preds = %150
%171 = load i32, i32* %17
store i32 %171, i32* %25
br label %177
172: ; preds = %150
br label %173
173: ; preds = %172, %57
br label %174
174: ; preds = %173
%175 = load i32, i32* %25
%176 = add nsw i32 %175, 1
store i32 %176, i32* %25
br label %49
177: ; preds = %170, %66, %49
br label %178
178: ; preds = %177
%179 = load double*, double** %13
%180 = load double*, double** %14
%181 = load double*, double** %15
%182 = load i32, i32* %16
%183 = load i32, i32* %17
%184 = load i32, i32* %21
%185 = load i32, i32* %22
%186 = call i32 @lp(double* %179, double* %180, double* %181, i32 %182, i32 %183, i32 %184, i32 %185)
%187 = icmp ne i32 %186, 0
%188 = xor i1 %187, true
br i1 %188, label %43, label %189
189: ; preds = %178
ret void
}

LLVM IR (-O2):
define void @shake(double* %0, double* %1, double* %2, i32 %3, i32 %4, double %5, double %6, i32* nocapture %7, i32 %8, i32 %9, i32 %10, double %11) {
%13 = load i32, i32* %7
%14 = add nsw i32 %13, 1
store i32 %14, i32* %7
%15 = tail call float @randon(double 0.000000e+00, i32 %4)
%16 = fptosi float %15 to i32
%17 = shl i32 %4, 3
%18 = tail call i32 @memcpy(double* %1, double* %0, i32 %17)
%19 = sext i32 %3 to i64
%20 = getelementptr inbounds double, double* %2, i64 %19
%21 = icmp sgt i32 %4, 0
%22 = zext i32 %16 to i64
%23 = zext i32 %4 to i64
br label %24
24: ; preds = %92, %12
%25 = phi i32 [ 0, %12 ], [ %93, %92 ]
br i1 %21, label %26, label %92
26: ; preds = %24
%27 = load double, double* %20
br label %28
28: ; preds = %26, %87
%29 = phi i64 [ 0, %26 ], [ %90, %87 ]
%30 = phi double [ %27, %26 ], [ %89, %87 ]
%31 = phi i32 [ %25, %26 ], [ %88, %87 ]
%32 = icmp eq i64 %29, %22
br i1 %32, label %37, label %33
33: ; preds = %28
%34 = tail call float @randon(double 0.000000e+00, i32 1)
%35 = fpext float %34 to double
%36 = fcmp olt double %35, %11
br i1 %36, label %37, label %87
37: ; preds = %33, %28
%38 = icmp eq i32 %31, %10
br i1 %38, label %92, label %39
39: ; preds = %37
%40 = add nsw i32 %31, 1
%41 = getelementptr inbounds double, double* %1, i64 %29
%42 = load double, double* %41
%43 = tail call float @randon(double 0.000000e+00, i32 1)
%44 = fcmp ogt float %43, 5.000000e-01
br i1 %44, label %45, label %58
45: ; preds = %39, %53
%46 = phi double [ %57, %53 ], [ %42, %39 ]
%47 = load double, double* %41
%48 = fcmp oeq double %46, %47
br i1 %48, label %53, label %49
49: ; preds = %45
%50 = fcmp olt double %46, %5
%51 = fcmp ogt double %46, %6
%52 = and i1 %50, %51
br i1 %52, label %53, label %71
53: ; preds = %45, %49
%54 = fadd double %30, %46
%55 = fptosi double %54 to i32
%56 = tail call float @randon(double %46, i32 %55)
%57 = fpext float %56 to double
br label %45
58: ; preds = %39, %66
%59 = phi double [ %70, %66 ], [ %42, %39 ]
%60 = load double, double* %41
%61 = fcmp oeq double %59, %60
br i1 %61, label %66, label %62
62: ; preds = %58
%63 = fcmp olt double %59, %5
%64 = fcmp ogt double %59, %6
%65 = and i1 %63, %64
br i1 %65, label %66, label %71
66: ; preds = %58, %62
%67 = fsub double %59, %30
%68 = fptosi double %59 to i32
%69 = tail call float @randon(double %67, i32 %68)
%70 = fpext float %69 to double
br label %58
71: ; preds = %62, %49
%72 = phi double [ %46, %49 ], [ %59, %62 ]
%73 = fcmp olt double %72, %5
br i1 %73, label %77, label %74
74: ; preds = %71
%75 = fcmp ogt double %72, %6
br i1 %75, label %76, label %77
76: ; preds = %74
br label %77
77: ; preds = %71, %74, %76
%78 = phi double [ %6, %76 ], [ %72, %74 ], [ %5, %71 ]
store double %78, double* %41
%79 = getelementptr inbounds double, double* %0, i64 %29
%80 = load double, double* %79
%81 = tail call double @llvm.fabs.f64(double %80)
%82 = tail call double @llvm.fabs.f64(double %78)
%83 = fsub double %81, %82
%84 = tail call double @llvm.fabs.f64(double %83)
%85 = fsub double %30, %84
%86 = fcmp olt double %85, 1.000000e-05
br i1 %86, label %92, label %87
87: ; preds = %33, %77
%88 = phi i32 [ %40, %77 ], [ %31, %33 ]
%89 = phi double [ %85, %77 ], [ %30, %33 ]
%90 = add nuw nsw i64 %29, 1
%91 = icmp eq i64 %90, %23
br i1 %91, label %92, label %28
92: ; preds = %87, %37, %77, %24
%93 = phi i32 [ %25, %24 ], [ %40, %77 ], [ %10, %37 ], [ %88, %87 ]
%94 = tail call i32 @lp(double* %0, double* %1, double* %2, i32 %3, i32 %4, i32 %8, i32 %9)
%95 = icmp eq i32 %94, 0
br i1 %95, label %24, label %96
96: ; preds = %92
ret void
}