#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*/ dpotf2_(char *, int *, double *, int *, int *);
int /*<<< orphan*/ fprintf(int /*<<< orphan*/, char *, int, char *);
int /*<<< orphan*/ stderr;
int dlevmar_chol(double *C, double *W, int m) {
  register int i, j;
  int info;
  for (i = 0, j = m * m; i < j; ++i)
    W[i] = C[i];
  dpotf2_("L", (int *)&m, W, (int *)&m, (int *)&info);
  if (info != 0) {
    if (info < 0) {
      fprintf(stderr,
              "LAPACK error: illegal value for argument %d of dpotf2 in %s\n",
              -info,
              "dlevmar_chol"
              "()");
    } else {
      fprintf(stderr,
              "LAPACK error: the leading minor of order %d is not positive "
              "definite,\n%s()\n",
              info,
              "and the Cholesky factorization could not be completed in "
              "dlevmar_chol");
    }
    return -1;
  }
  for (i = 0; i < m; i++)
    for (j = i + 1; j < m; j++)
      W[i + j * m] = 0.0;
  return 0;
}


x86 assembly (clang, -O0):
<dlevmar_chol>:
push   %rbp
mov    %rsp,%rbp
sub    $0x30,%rsp
mov    %rdi,-0x10(%rbp)
mov    %rsi,-0x18(%rbp)
mov    %edx,-0x1c(%rbp)
movl   $0x0,-0x20(%rbp)
mov    -0x1c(%rbp),%eax
imul   -0x1c(%rbp),%eax
mov    %eax,-0x24(%rbp)
mov    -0x20(%rbp),%eax
cmp    -0x24(%rbp),%eax
jge    1178 <dlevmar_chol+0x58>
mov    -0x10(%rbp),%rax
movslq -0x20(%rbp),%rcx
movsd  (%rax,%rcx,8),%xmm0
mov    -0x18(%rbp),%rax
movslq -0x20(%rbp),%rcx
movsd  %xmm0,(%rax,%rcx,8)
mov    -0x20(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0x20(%rbp)
jmp    1144 <dlevmar_chol+0x24>
mov    -0x18(%rbp),%rdx
lea    0xe7d(%rip),%rdi
lea    -0x1c(%rbp),%rcx
lea    -0x28(%rbp),%r8
mov    %rcx,%rsi
call   1040 <dpotf2_@plt>
cmpl   $0x0,-0x28(%rbp)
je     11f8 <dlevmar_chol+0xd8>
cmpl   $0x0,-0x28(%rbp)
jge    11cd <dlevmar_chol+0xad>
mov    0x2e32(%rip),%rax
mov    (%rax),%edi
xor    %edx,%edx
sub    -0x28(%rbp),%edx
lea    0xe46(%rip),%rsi
lea    0xe7c(%rip),%rcx
call   1030 <fprintf@plt>
jmp    11ec <dlevmar_chol+0xcc>
mov    0x2e0c(%rip),%rax
mov    (%rax),%edi
mov    -0x28(%rbp),%edx
lea    0xe6e(%rip),%rsi
lea    0xeb3(%rip),%rcx
call   1030 <fprintf@plt>
movl   $0xffffffff,-0x4(%rbp)
jmp    1263 <dlevmar_chol+0x143>
movl   $0x0,-0x20(%rbp)
mov    -0x20(%rbp),%eax
cmp    -0x1c(%rbp),%eax
jge    125c <dlevmar_chol+0x13c>
mov    -0x20(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0x24(%rbp)
mov    -0x24(%rbp),%eax
cmp    -0x1c(%rbp),%eax
jge    1249 <dlevmar_chol+0x129>
mov    -0x18(%rbp),%rax
mov    -0x20(%rbp),%ecx
mov    -0x24(%rbp),%edx
imul   -0x1c(%rbp),%edx
add    %edx,%ecx
movslq %ecx,%rcx
xorps  %xmm0,%xmm0
movsd  %xmm0,(%rax,%rcx,8)
mov    -0x24(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0x24(%rbp)
jmp    1214 <dlevmar_chol+0xf4>
jmp    124e <dlevmar_chol+0x12e>
mov    -0x20(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0x20(%rbp)
jmp    11ff <dlevmar_chol+0xdf>
movl   $0x0,-0x4(%rbp)
mov    -0x4(%rbp),%eax
add    $0x30,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<dlevmar_chol>:
push   %r15
push   %r14
push   %r12
push   %rbx
push   %rax
mov    %rsi,%r14
mov    %edx,(%rsp)
imul   %edx,%edx
test   %edx,%edx
je     12a4 <dlevmar_chol+0x184>
mov    %edx,%eax
cmp    $0x4,%edx
jb     1156 <dlevmar_chol+0x36>
lea    (%rdi,%rax,8),%rcx
cmp    %r14,%rcx
jbe    11d0 <dlevmar_chol+0xb0>
lea    (%r14,%rax,8),%rcx
cmp    %rdi,%rcx
jbe    11d0 <dlevmar_chol+0xb0>
xor    %ecx,%ecx
mov    %rcx,%rdx
not    %rdx
add    %rax,%rdx
mov    %rax,%rsi
and    $0x3,%rsi
je     1185 <dlevmar_chol+0x65>
nopw   0x0(%rax,%rax,1)
movsd  (%rdi,%rcx,8),%xmm0
movsd  %xmm0,(%r14,%rcx,8)
add    $0x1,%rcx
add    $0xffffffffffffffff,%rsi
jne    1170 <dlevmar_chol+0x50>
cmp    $0x3,%rdx
jb     12a4 <dlevmar_chol+0x184>
nop
movsd  (%rdi,%rcx,8),%xmm0
movsd  %xmm0,(%r14,%rcx,8)
movsd  0x8(%rdi,%rcx,8),%xmm0
movsd  %xmm0,0x8(%r14,%rcx,8)
movsd  0x10(%rdi,%rcx,8),%xmm0
movsd  %xmm0,0x10(%r14,%rcx,8)
movsd  0x18(%rdi,%rcx,8),%xmm0
movsd  %xmm0,0x18(%r14,%rcx,8)
add    $0x4,%rcx
cmp    %rcx,%rax
jne    1190 <dlevmar_chol+0x70>
jmp    12a4 <dlevmar_chol+0x184>
mov    %eax,%ecx
and    $0xfffffffc,%ecx
lea    -0x4(%rcx),%rdx
mov    %rdx,%rsi
shr    $0x2,%rsi
add    $0x1,%rsi
mov    %esi,%r8d
and    $0x3,%r8d
cmp    $0xc,%rdx
jae    11f5 <dlevmar_chol+0xd5>
xor    %ebx,%ebx
jmp    1260 <dlevmar_chol+0x140>
and    $0xfffffffffffffffc,%rsi
xor    %ebx,%ebx
nopl   0x0(%rax,%rax,1)
movups (%rdi,%rbx,8),%xmm0
movups 0x10(%rdi,%rbx,8),%xmm1
movups %xmm0,(%r14,%rbx,8)
movups %xmm1,0x10(%r14,%rbx,8)
movups 0x20(%rdi,%rbx,8),%xmm0
movups 0x30(%rdi,%rbx,8),%xmm1
movups %xmm0,0x20(%r14,%rbx,8)
movups %xmm1,0x30(%r14,%rbx,8)
movups 0x40(%rdi,%rbx,8),%xmm0
movups 0x50(%rdi,%rbx,8),%xmm1
movups %xmm0,0x40(%r14,%rbx,8)
movups %xmm1,0x50(%r14,%rbx,8)
movups 0x60(%rdi,%rbx,8),%xmm0
movups 0x70(%rdi,%rbx,8),%xmm1
movups %xmm0,0x60(%r14,%rbx,8)
movups %xmm1,0x70(%r14,%rbx,8)
add    $0x10,%rbx
add    $0xfffffffffffffffc,%rsi
jne    1200 <dlevmar_chol+0xe0>
test   %r8,%r8
je     129b <dlevmar_chol+0x17b>
lea    (%r14,%rbx,8),%rsi
add    $0x10,%rsi
lea    (%rdi,%rbx,8),%rbx
add    $0x10,%rbx
shl    $0x5,%r8
xor    %edx,%edx
nopl   0x0(%rax,%rax,1)
movups -0x10(%rbx,%rdx,1),%xmm0
movups (%rbx,%rdx,1),%xmm1
movups %xmm0,-0x10(%rsi,%rdx,1)
movups %xmm1,(%rsi,%rdx,1)
add    $0x20,%rdx
cmp    %rdx,%r8
jne    1280 <dlevmar_chol+0x160>
cmp    %rax,%rcx
jne    1158 <dlevmar_chol+0x38>
lea    0xd55(%rip),%rdi
mov    %rsp,%rcx
lea    0x4(%rsp),%r8
mov    %rcx,%rsi
mov    %r14,%rdx
call   1040 <dpotf2_@plt>
mov    0x4(%rsp),%edx
test   %edx,%edx
je     12e1 <dlevmar_chol+0x1c1>
mov    0x2d13(%rip),%rax
mov    (%rax),%edi
js     1332 <dlevmar_chol+0x212>
lea    0xd76(%rip),%rsi
lea    0xdbb(%rip),%rcx
jmp    1342 <dlevmar_chol+0x222>
mov    (%rsp),%r10d
xor    %eax,%eax
test   %r10d,%r10d
jle    134c <dlevmar_chol+0x22c>
cmp    $0x1,%r10d
jne    1358 <dlevmar_chol+0x238>
mov    $0x1,%edx
xor    %r11d,%r11d
test   $0x1,%r10b
je     134c <dlevmar_chol+0x22c>
lea    0x1(%r11),%rcx
cmp    %r10,%rcx
jae    134c <dlevmar_chol+0x22c>
mov    %r10,%rcx
sub    %rdx,%rcx
imul   %r10,%rdx
add    %rdx,%r11
lea    (%r14,%r11,8),%rdx
shl    $0x3,%r10
xchg   %ax,%ax
movq   $0x0,(%rdx)
add    %r10,%rdx
add    $0xffffffffffffffff,%rcx
jne    1320 <dlevmar_chol+0x200>
jmp    134c <dlevmar_chol+0x22c>
neg    %edx
lea    0xcc7(%rip),%rsi
lea    0xcfd(%rip),%rcx
call   1030 <fprintf@plt>
mov    $0xffffffff,%eax
add    $0x8,%rsp
pop    %rbx
pop    %r12
pop    %r14
pop    %r15
ret
mov    %r10d,%r8d
and    $0xfffffffe,%r8d
lea    (%r14,%r10,8),%r15
mov    %r10,%r9
shl    $0x4,%r9
lea    0x0(,%r10,8),%rcx
lea    -0x2(%r10),%r12
lea    (%r9,%r14,1),%rbx
add    $0x8,%rbx
add    $0x10,%r9
mov    $0x1,%edx
xor    %r11d,%r11d
jmp    13a7 <dlevmar_chol+0x287>
nopl   0x0(%rax)
add    $0x2,%rdx
add    %r9,%r15
add    $0xfffffffffffffffe,%r12
add    %r9,%rbx
cmp    %r8,%r11
je     12fa <dlevmar_chol+0x1da>
mov    %r11,%rsi
or     $0x1,%rsi
cmp    %r10,%rsi
jae    13d3 <dlevmar_chol+0x2b3>
mov    %r10,%rdi
mov    %r15,%rsi
nopl   0x0(%rax)
movq   $0x0,(%rsi)
add    %rcx,%rsi
add    $0xffffffffffffffff,%rdi
cmp    %rdi,%rdx
jne    13c0 <dlevmar_chol+0x2a0>
add    $0x2,%r11
cmp    %r10,%r11
jae    1390 <dlevmar_chol+0x270>
mov    %rbx,%rdi
mov    %r12,%rsi
cs nopw 0x0(%rax,%rax,1)
nopl   0x0(%rax)
movq   $0x0,(%rdi)
add    %rcx,%rdi
add    $0xffffffffffffffff,%rsi
jne    13f0 <dlevmar_chol+0x2d0>
jmp    1390 <dlevmar_chol+0x270>

LLVM IR (-O0):
@.str = [2 x i8] c"L\00"
@stderr = global i32 0
@.str.1 = [61 x i8] c"LAPACK error: illegal value for argument %d of dpotf2 in %s\0A\00"
@.str.2 = [15 x i8] c"dlevmar_chol()\00"
@.str.3 = [76 x i8] c"LAPACK error: the leading minor of order %d is not positive definite,\0A%s()\0A\00"
@.str.4 = [70 x i8] c"and the Cholesky factorization could not be completed in dlevmar_chol\00"
define i32 @dlevmar_chol(double* %0, double* %1, i32 %2) {
%4 = alloca i32
%5 = alloca double*
%6 = alloca double*
%7 = alloca i32
%8 = alloca i32
%9 = alloca i32
%10 = alloca i32
store double* %0, double** %5
store double* %1, double** %6
store i32 %2, i32* %7
store i32 0, i32* %8
%11 = load i32, i32* %7
%12 = load i32, i32* %7
%13 = mul nsw i32 %11, %12
store i32 %13, i32* %9
br label %14
14: ; preds = %28, %3
%15 = load i32, i32* %8
%16 = load i32, i32* %9
%17 = icmp slt i32 %15, %16
br i1 %17, label %18, label %31
18: ; preds = %14
%19 = load double*, double** %5
%20 = load i32, i32* %8
%21 = sext i32 %20 to i64
%22 = getelementptr inbounds double, double* %19, i64 %21
%23 = load double, double* %22
%24 = load double*, double** %6
%25 = load i32, i32* %8
%26 = sext i32 %25 to i64
%27 = getelementptr inbounds double, double* %24, i64 %26
store double %23, double* %27
br label %28
28: ; preds = %18
%29 = load i32, i32* %8
%30 = add nsw i32 %29, 1
store i32 %30, i32* %8
br label %14
31: ; preds = %14
%32 = load double*, double** %6
%33 = call i32 @dpotf2_(i8* getelementptr inbounds ([2 x i8], [2 x i8]* @.str, i64 0, i64 0), i32* %7, double* %32, i32* %7, i32* %10)
%34 = load i32, i32* %10
%35 = icmp ne i32 %34, 0
br i1 %35, label %36, label %49
36: ; preds = %31
%37 = load i32, i32* %10
%38 = icmp slt i32 %37, 0
br i1 %38, label %39, label %44
39: ; preds = %36
%40 = load i32, i32* @stderr
%41 = load i32, i32* %10
%42 = sub nsw i32 0, %41
%43 = call i32 @fprintf(i32 %40, i8* getelementptr inbounds ([61 x i8], [61 x i8]* @.str.1, i64 0, i64 0), i32 %42, i8* getelementptr inbounds ([15 x i8], [15 x i8]* @.str.2, i64 0, i64 0))
br label %48
44: ; preds = %36
%45 = load i32, i32* @stderr
%46 = load i32, i32* %10
%47 = call i32 @fprintf(i32 %45, i8* getelementptr inbounds ([76 x i8], [76 x i8]* @.str.3, i64 0, i64 0), i32 %46, i8* getelementptr inbounds ([70 x i8], [70 x i8]* @.str.4, i64 0, i64 0))
br label %48
48: ; preds = %44, %39
store i32 -1, i32* %4
br label %78
49: ; preds = %31
store i32 0, i32* %8
br label %50
50: ; preds = %74, %49
%51 = load i32, i32* %8
%52 = load i32, i32* %7
%53 = icmp slt i32 %51, %52
br i1 %53, label %54, label %77
54: ; preds = %50
%55 = load i32, i32* %8
%56 = add nsw i32 %55, 1
store i32 %56, i32* %9
br label %57
57: ; preds = %70, %54
%58 = load i32, i32* %9
%59 = load i32, i32* %7
%60 = icmp slt i32 %58, %59
br i1 %60, label %61, label %73
61: ; preds = %57
%62 = load double*, double** %6
%63 = load i32, i32* %8
%64 = load i32, i32* %9
%65 = load i32, i32* %7
%66 = mul nsw i32 %64, %65
%67 = add nsw i32 %63, %66
%68 = sext i32 %67 to i64
%69 = getelementptr inbounds double, double* %62, i64 %68
store double 0.000000e+00, double* %69
br label %70
70: ; preds = %61
%71 = load i32, i32* %9
%72 = add nsw i32 %71, 1
store i32 %72, i32* %9
br label %57
73: ; preds = %57
br label %74
74: ; preds = %73
%75 = load i32, i32* %8
%76 = add nsw i32 %75, 1
store i32 %76, i32* %8
br label %50
77: ; preds = %50
store i32 0, i32* %4
br label %78
78: ; preds = %77, %48
%79 = load i32, i32* %4
ret i32 %79
}

LLVM IR (-O2):
@.str = [2 x i8] c"L\00"
@stderr = global i32 0
@.str.1 = [61 x i8] c"LAPACK error: illegal value for argument %d of dpotf2 in %s\0A\00"
@.str.2 = [15 x i8] c"dlevmar_chol()\00"
@.str.3 = [76 x i8] c"LAPACK error: the leading minor of order %d is not positive definite,\0A%s()\0A\00"
@.str.4 = [70 x i8] c"and the Cholesky factorization could not be completed in dlevmar_chol\00"
define i32 @dlevmar_chol(double* nocapture %0, double* %1, i32 %2) {
%4 = alloca i32
%5 = alloca i32
store i32 %2, i32* %4
%6 = bitcast i32* %5 to i8*
%7 = mul i32 %2, %2
%8 = icmp eq i32 %7, 0
br i1 %8, label %134, label %9
9: ; preds = %3
%10 = zext i32 %7 to i64
%11 = icmp ult i32 %7, 4
br i1 %11, label %97, label %12
12: ; preds = %9
%13 = getelementptr double, double* %1, i64 %10
%14 = getelementptr double, double* %0, i64 %10
%15 = icmp ugt double* %14, %1
%16 = icmp ugt double* %13, %0
%17 = and i1 %15, %16
br i1 %17, label %97, label %18
18: ; preds = %12
%19 = and i64 %10, 4294967292
%20 = add nsw i64 %19, -4
%21 = lshr exact i64 %20, 2
%22 = add nuw nsw i64 %21, 1
%23 = and i64 %22, 3
%24 = icmp ult i64 %20, 12
br i1 %24, label %76, label %25
25: ; preds = %18
%26 = and i64 %22, 9223372036854775804
br label %27
27: ; preds = %27, %25
%28 = phi i64 [ 0, %25 ], [ %73, %27 ]
%29 = phi i64 [ 0, %25 ], [ %74, %27 ]
%30 = getelementptr inbounds double, double* %0, i64 %28
%31 = bitcast double* %30 to <2 x double>*
%32 = load <2 x double>, <2 x double>* %31
%33 = getelementptr inbounds double, double* %30, i64 2
%34 = bitcast double* %33 to <2 x double>*
%35 = load <2 x double>, <2 x double>* %34
%36 = getelementptr inbounds double, double* %1, i64 %28
%37 = bitcast double* %36 to <2 x double>*
store <2 x double> %32, <2 x double>* %37
%38 = getelementptr inbounds double, double* %36, i64 2
%39 = bitcast double* %38 to <2 x double>*
store <2 x double> %35, <2 x double>* %39
%40 = or i64 %28, 4
%41 = getelementptr inbounds double, double* %0, i64 %40
%42 = bitcast double* %41 to <2 x double>*
%43 = load <2 x double>, <2 x double>* %42
%44 = getelementptr inbounds double, double* %41, i64 2
%45 = bitcast double* %44 to <2 x double>*
%46 = load <2 x double>, <2 x double>* %45
%47 = getelementptr inbounds double, double* %1, i64 %40
%48 = bitcast double* %47 to <2 x double>*
store <2 x double> %43, <2 x double>* %48
%49 = getelementptr inbounds double, double* %47, i64 2
%50 = bitcast double* %49 to <2 x double>*
store <2 x double> %46, <2 x double>* %50
%51 = or i64 %28, 8
%52 = getelementptr inbounds double, double* %0, i64 %51
%53 = bitcast double* %52 to <2 x double>*
%54 = load <2 x double>, <2 x double>* %53
%55 = getelementptr inbounds double, double* %52, i64 2
%56 = bitcast double* %55 to <2 x double>*
%57 = load <2 x double>, <2 x double>* %56
%58 = getelementptr inbounds double, double* %1, i64 %51
%59 = bitcast double* %58 to <2 x double>*
store <2 x double> %54, <2 x double>* %59
%60 = getelementptr inbounds double, double* %58, i64 2
%61 = bitcast double* %60 to <2 x double>*
store <2 x double> %57, <2 x double>* %61
%62 = or i64 %28, 12
%63 = getelementptr inbounds double, double* %0, i64 %62
%64 = bitcast double* %63 to <2 x double>*
%65 = load <2 x double>, <2 x double>* %64
%66 = getelementptr inbounds double, double* %63, i64 2
%67 = bitcast double* %66 to <2 x double>*
%68 = load <2 x double>, <2 x double>* %67
%69 = getelementptr inbounds double, double* %1, i64 %62
%70 = bitcast double* %69 to <2 x double>*
store <2 x double> %65, <2 x double>* %70
%71 = getelementptr inbounds double, double* %69, i64 2
%72 = bitcast double* %71 to <2 x double>*
store <2 x double> %68, <2 x double>* %72
%73 = add nuw i64 %28, 16
%74 = add nuw i64 %29, 4
%75 = icmp eq i64 %74, %26
br i1 %75, label %76, label %27
76: ; preds = %27, %18
%77 = phi i64 [ 0, %18 ], [ %73, %27 ]
%78 = icmp eq i64 %23, 0
br i1 %78, label %95, label %79
79: ; preds = %76, %79
%80 = phi i64 [ %92, %79 ], [ %77, %76 ]
%81 = phi i64 [ %93, %79 ], [ 0, %76 ]
%82 = getelementptr inbounds double, double* %0, i64 %80
%83 = bitcast double* %82 to <2 x double>*
%84 = load <2 x double>, <2 x double>* %83
%85 = getelementptr inbounds double, double* %82, i64 2
%86 = bitcast double* %85 to <2 x double>*
%87 = load <2 x double>, <2 x double>* %86
%88 = getelementptr inbounds double, double* %1, i64 %80
%89 = bitcast double* %88 to <2 x double>*
store <2 x double> %84, <2 x double>* %89
%90 = getelementptr inbounds double, double* %88, i64 2
%91 = bitcast double* %90 to <2 x double>*
store <2 x double> %87, <2 x double>* %91
%92 = add nuw i64 %80, 4
%93 = add i64 %81, 1
%94 = icmp eq i64 %93, %23
br i1 %94, label %95, label %79
95: ; preds = %79, %76
%96 = icmp eq i64 %19, %10
br i1 %96, label %134, label %97
97: ; preds = %12, %9, %95
%98 = phi i64 [ 0, %12 ], [ 0, %9 ], [ %19, %95 ]
%99 = xor i64 %98, -1
%100 = add nsw i64 %99, %10
%101 = and i64 %10, 3
%102 = icmp eq i64 %101, 0
br i1 %102, label %112, label %103
103: ; preds = %97, %103
%104 = phi i64 [ %109, %103 ], [ %98, %97 ]
%105 = phi i64 [ %110, %103 ], [ 0, %97 ]
%106 = getelementptr inbounds double, double* %0, i64 %104
%107 = load double, double* %106
%108 = getelementptr inbounds double, double* %1, i64 %104
store double %107, double* %108
%109 = add nuw nsw i64 %104, 1
%110 = add i64 %105, 1
%111 = icmp eq i64 %110, %101
br i1 %111, label %112, label %103
112: ; preds = %103, %97
%113 = phi i64 [ %98, %97 ], [ %109, %103 ]
%114 = icmp ult i64 %100, 3
br i1 %114, label %134, label %115
115: ; preds = %112, %115
%116 = phi i64 [ %132, %115 ], [ %113, %112 ]
%117 = getelementptr inbounds double, double* %0, i64 %116
%118 = load double, double* %117
%119 = getelementptr inbounds double, double* %1, i64 %116
store double %118, double* %119
%120 = add nuw nsw i64 %116, 1
%121 = getelementptr inbounds double, double* %0, i64 %120
%122 = load double, double* %121
%123 = getelementptr inbounds double, double* %1, i64 %120
store double %122, double* %123
%124 = add nuw nsw i64 %116, 2
%125 = getelementptr inbounds double, double* %0, i64 %124
%126 = load double, double* %125
%127 = getelementptr inbounds double, double* %1, i64 %124
store double %126, double* %127
%128 = add nuw nsw i64 %116, 3
%129 = getelementptr inbounds double, double* %0, i64 %128
%130 = load double, double* %129
%131 = getelementptr inbounds double, double* %1, i64 %128
store double %130, double* %131
%132 = add nuw nsw i64 %116, 4
%133 = icmp eq i64 %132, %10
br i1 %133, label %134, label %115
134: ; preds = %112, %115, %95, %3
%135 = call i32 @dpotf2_(i8* getelementptr inbounds ([2 x i8], [2 x i8]* @.str, i64 0, i64 0), i32* %4, double* %1, i32* %4, i32* %5)
%136 = load i32, i32* %5
%137 = icmp eq i32 %136, 0
br i1 %137, label %138, label %148
138: ; preds = %134
%139 = load i32, i32* %4
%140 = icmp sgt i32 %139, 0
br i1 %140, label %141, label %199
141: ; preds = %138
%142 = zext i32 %139 to i64
%143 = zext i32 %139 to i64
%144 = and i64 %143, 1
%145 = icmp eq i32 %139, 1
br i1 %145, label %185, label %146
146: ; preds = %141
%147 = and i64 %143, 4294967294
br label %172
148: ; preds = %134
%149 = icmp slt i32 %136, 0
%150 = load i32, i32* @stderr
br i1 %149, label %151, label %154
151: ; preds = %148
%152 = sub nsw i32 0, %136
%153 = call i32 @fprintf(i32 %150, i8* getelementptr inbounds ([61 x i8], [61 x i8]* @.str.1, i64 0, i64 0), i32 %152, i8* getelementptr inbounds ([15 x i8], [15 x i8]* @.str.2, i64 0, i64 0))
br label %199
154: ; preds = %148
%155 = call i32 @fprintf(i32 %150, i8* getelementptr inbounds ([76 x i8], [76 x i8]* @.str.3, i64 0, i64 0), i32 %136, i8* getelementptr inbounds ([70 x i8], [70 x i8]* @.str.4, i64 0, i64 0))
br label %199
156: ; preds = %178, %172
%157 = add nuw nsw i64 %173, 2
%158 = icmp ult i64 %157, %142
br i1 %158, label %159, label %168
159: ; preds = %156
%160 = add nuw nsw i64 %174, 1
br label %161
161: ; preds = %161, %159
%162 = phi i64 [ %166, %161 ], [ %160, %159 ]
%163 = mul nsw i64 %162, %142
%164 = add nuw nsw i64 %163, %176
%165 = getelementptr inbounds double, double* %1, i64 %164
store double 0.000000e+00, double* %165
%166 = add nuw nsw i64 %162, 1
%167 = icmp eq i64 %166, %143
br i1 %167, label %168, label %161
168: ; preds = %161, %156
%169 = add nuw nsw i64 %174, 2
%170 = add i64 %175, 2
%171 = icmp eq i64 %170, %147
br i1 %171, label %185, label %172
172: ; preds = %168, %146
%173 = phi i64 [ 0, %146 ], [ %157, %168 ]
%174 = phi i64 [ 1, %146 ], [ %169, %168 ]
%175 = phi i64 [ 0, %146 ], [ %170, %168 ]
%176 = or i64 %173, 1
%177 = icmp ult i64 %176, %142
br i1 %177, label %178, label %156
178: ; preds = %172, %178
%179 = phi i64 [ %183, %178 ], [ %174, %172 ]
%180 = mul nsw i64 %179, %142
%181 = add nuw nsw i64 %180, %173
%182 = getelementptr inbounds double, double* %1, i64 %181
store double 0.000000e+00, double* %182
%183 = add nuw nsw i64 %179, 1
%184 = icmp eq i64 %183, %143
br i1 %184, label %156, label %178
185: ; preds = %168, %141
%186 = phi i64 [ 0, %141 ], [ %157, %168 ]
%187 = phi i64 [ 1, %141 ], [ %169, %168 ]
%188 = icmp ne i64 %144, 0
%189 = add nuw nsw i64 %186, 1
%190 = icmp ult i64 %189, %142
%191 = select i1 %188, i1 %190, i1 false
br i1 %191, label %192, label %199
192: ; preds = %185, %192
%193 = phi i64 [ %197, %192 ], [ %187, %185 ]
%194 = mul nsw i64 %193, %142
%195 = add nuw nsw i64 %194, %186
%196 = getelementptr inbounds double, double* %1, i64 %195
store double 0.000000e+00, double* %196
%197 = add nuw nsw i64 %193, 1
%198 = icmp eq i64 %197, %143
br i1 %198, label %199, label %192
199: ; preds = %185, %192, %138, %151, %154
%200 = phi i32 [ -1, %154 ], [ -1, %151 ], [ 0, %138 ], [ 0, %192 ], [ 0, %185 ]
ret i32 %200
}