#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*/ dgemm_(char *, char *, int *, int *, int *, double *,
                          double *, int *, double *, int *, double *, double *,
                          int *);
int /*<<< orphan*/ dgesvd_(char *, char *, int *, int *, double *, int *,
                           double *, double *, int *, double *, int *, double *,
                           int *, int *);
int /*<<< orphan*/ dscal_(int *, double *, double *, int *);
int /*<<< orphan*/ free(double *);
scalar_t__ malloc(int);
int invSVD(int nn, double *A) {
  int lWk, i, info;
  double *U, *VT, *S, *Wk;
  double tmp, nrm, one = 1.0, zero = 0.0;
  double tol = 1.e-17;
  lWk = 5 * nn;
  U = (double *)malloc(nn * nn * sizeof(double));
  VT = (double *)malloc(nn * nn * sizeof(double));
  S = (double *)malloc(nn * sizeof(double));
  Wk = (double *)malloc(lWk * sizeof(double));
  if (U == NULL || VT == NULL || S == NULL || Wk == NULL)
    return -1;
  if (nn == 1) {
    if (A[0] == 0.0)
      return 1;
    else {
      A[0] = one / A[0];
      return 0;
    }
  }
  dgesvd_("A", "A", &nn, &nn, A, &nn, S, U, &nn, VT, &nn, Wk, &lWk, &info);
  if (S[0] == 0.0)
    return 1;
  nrm = S[0] * tol;
  for (i = 0; i < nn; i++) {
    tmp = one / (((S[i]) > (nrm)) ? (S[i]) : (nrm));
    dscal_(&(nn), &(tmp), (&VT[i]), &(nn));
  }
  dgemm_("t", "t", &nn, &nn, &nn, &one, VT, &nn, U, &nn, &zero, A, &nn);
  free(U);
  free(VT);
  free(S);
  free(Wk);
  return 0;
}


x86 assembly (clang, -O0):
<invSVD>:
push   %rbp
mov    %rsp,%rbp
push   %r15
push   %r14
push   %r12
push   %rbx
sub    $0xc0,%rsp
mov    %edi,-0x28(%rbp)
mov    %rsi,-0x30(%rbp)
movsd  0xe97(%rip),%xmm0
movsd  %xmm0,-0x78(%rbp)
xorps  %xmm0,%xmm0
movsd  %xmm0,-0x80(%rbp)
movsd  0xe7a(%rip),%xmm0
movsd  %xmm0,-0x88(%rbp)
ff
imul   $0x5,-0x28(%rbp),%eax
mov    %eax,-0x34(%rbp)
mov    -0x28(%rbp),%eax
imul   -0x28(%rbp),%eax
cltq
shl    $0x3,%rax
mov    %eax,%edi
call   1060 <malloc@plt>
mov    %rax,-0x48(%rbp)
mov    -0x28(%rbp),%eax
imul   -0x28(%rbp),%eax
cltq
shl    $0x3,%rax
mov    %eax,%edi
call   1060 <malloc@plt>
mov    %rax,-0x50(%rbp)
movslq -0x28(%rbp),%rax
shl    $0x3,%rax
mov    %eax,%edi
call   1060 <malloc@plt>
mov    %rax,-0x58(%rbp)
movslq -0x34(%rbp),%rax
shl    $0x3,%rax
mov    %eax,%edi
call   1060 <malloc@plt>
mov    %rax,-0x60(%rbp)
cmpq   $0x0,-0x48(%rbp)
je     1217 <invSVD+0xc7>
cmpq   $0x0,-0x50(%rbp)
je     1217 <invSVD+0xc7>
cmpq   $0x0,-0x58(%rbp)
je     1217 <invSVD+0xc7>
cmpq   $0x0,-0x60(%rbp)
jne    1223 <invSVD+0xd3>
movl   $0xffffffff,-0x24(%rbp)
jmp    1432 <invSVD+0x2e2>
cmpl   $0x1,-0x28(%rbp)
jne    1275 <invSVD+0x125>
mov    -0x30(%rbp),%rax
movsd  (%rax),%xmm0
xorps  %xmm1,%xmm1
ucomisd %xmm1,%xmm0
jne    1254 <invSVD+0x104>
jp     1254 <invSVD+0x104>
movl   $0x1,-0x24(%rbp)
jmp    1432 <invSVD+0x2e2>
movsd  -0x78(%rbp),%xmm0
mov    -0x30(%rbp),%rax
divsd  (%rax),%xmm0
mov    -0x30(%rbp),%rax
movsd  %xmm0,(%rax)
movl   $0x0,-0x24(%rbp)
jmp    1432 <invSVD+0x2e2>
mov    -0x30(%rbp),%r8
mov    -0x58(%rbp),%r12
mov    -0x48(%rbp),%r15
mov    -0x50(%rbp),%r14
mov    -0x60(%rbp),%r11
lea    0xd80(%rip),%rsi
lea    -0x28(%rbp),%rbx
lea    -0x34(%rbp),%r10
lea    -0x3c(%rbp),%rax
mov    %rsi,%rdi
mov    %rbx,%rdx
mov    %rbx,%rcx
mov    %rbx,%r9
mov    %r12,(%rsp)
mov    %r15,0x8(%rsp)
mov    %rbx,0x10(%rsp)
mov    %r14,0x18(%rsp)
mov    %rbx,0x20(%rsp)
mov    %r11,0x28(%rsp)
mov    %r10,0x30(%rsp)
mov    %rax,0x38(%rsp)
call   1070 <dgesvd_@plt>
mov    -0x58(%rbp),%rax
movsd  (%rax),%xmm0
xorps  %xmm1,%xmm1
ucomisd %xmm1,%xmm0
jne    12fb <invSVD+0x1ab>
jp     12fb <invSVD+0x1ab>
movl   $0x1,-0x24(%rbp)
jmp    1432 <invSVD+0x2e2>
mov    -0x58(%rbp),%rax
movsd  (%rax),%xmm0
mulsd  -0x88(%rbp),%xmm0
ff
movsd  %xmm0,-0x70(%rbp)
movl   $0x0,-0x38(%rbp)
mov    -0x38(%rbp),%eax
cmp    -0x28(%rbp),%eax
jge    13b5 <invSVD+0x265>
movsd  -0x78(%rbp),%xmm0
movsd  %xmm0,-0x90(%rbp)
ff
mov    -0x58(%rbp),%rax
movslq -0x38(%rbp),%rcx
movsd  (%rax,%rcx,8),%xmm0
ucomisd -0x70(%rbp),%xmm0
jbe    1362 <invSVD+0x212>
mov    -0x58(%rbp),%rax
movslq -0x38(%rbp),%rcx
movsd  (%rax,%rcx,8),%xmm0
movsd  %xmm0,-0x98(%rbp)
ff
jmp    136f <invSVD+0x21f>
movsd  -0x70(%rbp),%xmm0
movsd  %xmm0,-0x98(%rbp)
ff
movsd  -0x90(%rbp),%xmm0
ff
movsd  -0x98(%rbp),%xmm1
ff
divsd  %xmm1,%xmm0
movsd  %xmm0,-0x68(%rbp)
mov    -0x50(%rbp),%rdx
movslq -0x38(%rbp),%rax
shl    $0x3,%rax
add    %rax,%rdx
lea    -0x28(%rbp),%rcx
lea    -0x68(%rbp),%rsi
mov    %rcx,%rdi
call   1050 <dscal_@plt>
mov    -0x38(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0x38(%rbp)
jmp    1317 <invSVD+0x1c7>
mov    -0x50(%rbp),%r14
mov    -0x48(%rbp),%rbx
mov    -0x30(%rbp),%r10
lea    0xc4a(%rip),%rsi
lea    -0x28(%rbp),%rax
lea    -0x78(%rbp),%r9
lea    -0x80(%rbp),%r11
mov    %rsi,%rdi
mov    %rax,%rdx
mov    %rax,%rcx
mov    %rax,%r8
mov    %r14,(%rsp)
mov    %rax,0x8(%rsp)
mov    %rbx,0x10(%rsp)
mov    %rax,0x18(%rsp)
mov    %r11,0x20(%rsp)
mov    %r10,0x28(%rsp)
mov    %rax,0x30(%rsp)
call   1040 <dgemm_@plt>
mov    -0x48(%rbp),%rdi
call   1030 <free@plt>
mov    -0x50(%rbp),%rdi
call   1030 <free@plt>
mov    -0x58(%rbp),%rdi
call   1030 <free@plt>
mov    -0x60(%rbp),%rdi
call   1030 <free@plt>
movl   $0x0,-0x24(%rbp)
mov    -0x24(%rbp),%eax
add    $0xc0,%rsp
pop    %rbx
pop    %r12
pop    %r14
pop    %r15
pop    %rbp
ret

x86 assembly (clang, -O2):
<invSVD>:
push   %rbp
push   %r15
push   %r14
push   %r13
push   %r12
push   %rbx
sub    $0x48,%rsp
mov    %rsi,0x8(%rsp)
mov    %edi,%r12d
mov    %edi,0x4(%rsp)
movabs $0x3ff0000000000000,%rax
mov    %rax,0x38(%rsp)
movq   $0x0,0x30(%rsp)
lea    (%r12,%r12,4),%eax
mov    %eax,0x1c(%rsp)
lea    0x0(,%r12,8),%ebx
mov    %ebx,%ebp
imul   %edi,%ebp
mov    %ebp,%edi
call   1060 <malloc@plt>
mov    %rax,%r15
mov    %ebp,%edi
call   1060 <malloc@plt>
mov    %rax,%r14
mov    %ebx,%edi
call   1060 <malloc@plt>
mov    %rax,%r13
lea    (%rbx,%rbx,4),%edi
call   1060 <malloc@plt>
mov    %rax,%rbx
mov    $0xffffffff,%eax
test   %r15,%r15
je     1380 <invSVD+0x230>
test   %r14,%r14
je     1380 <invSVD+0x230>
test   %r13,%r13
je     1380 <invSVD+0x230>
test   %rbx,%rbx
je     1380 <invSVD+0x230>
cmp    $0x1,%r12d
jne    1227 <invSVD+0xd7>
mov    0x8(%rsp),%rax
movsd  (%rax),%xmm0
mov    $0x1,%eax
xorpd  %xmm1,%xmm1
ucomisd %xmm1,%xmm0
jne    120d <invSVD+0xbd>
jnp    1380 <invSVD+0x230>
movsd  0xdf3(%rip),%xmm1
divsd  %xmm0,%xmm1
mov    0x8(%rsp),%rax
movsd  %xmm1,(%rax)
jmp    137e <invSVD+0x22e>
lea    0x44(%rsp),%rax
lea    0x1c(%rsp),%rbp
lea    0x4(%rsp),%rcx
lea    0xdd3(%rip),%rdi
mov    %rdi,%rsi
mov    %rcx,%rdx
mov    0x8(%rsp),%r8
mov    %rcx,%r9
push   %rax
push   %rbp
push   %rbx
push   %rcx
push   %r14
push   %rcx
push   %r15
push   %r13
call   1070 <dgesvd_@plt>
add    $0x40,%rsp
movsd  0x0(%r13),%xmm0
mov    $0x1,%eax
xorpd  %xmm1,%xmm1
ucomisd %xmm1,%xmm0
jne    127a <invSVD+0x12a>
jnp    1380 <invSVD+0x230>
mov    %rbx,0x20(%rsp)
cmpl   $0x0,0x4(%rsp)
jle    1324 <invSVD+0x1d4>
movsd  0xd6e(%rip),%xmm1
mulsd  %xmm0,%xmm1
movsd  %xmm1,0x28(%rsp)
maxsd  %xmm1,%xmm0
movsd  0xd60(%rip),%xmm1
divsd  %xmm0,%xmm1
movsd  %xmm1,0x10(%rsp)
lea    0x10(%rsp),%rsi
lea    0x4(%rsp),%rcx
mov    %rcx,%rdi
mov    %r14,%rdx
call   1050 <dscal_@plt>
cmpl   $0x2,0x4(%rsp)
jl     1324 <invSVD+0x1d4>
mov    %r14,%r12
add    $0x8,%r12
mov    $0x1,%ebx
lea    0x4(%rsp),%rbp
nop
movsd  0x0(%r13,%rbx,8),%xmm0
maxsd  0x28(%rsp),%xmm0
movsd  0xd13(%rip),%xmm1
divsd  %xmm0,%xmm1
movsd  %xmm1,0x10(%rsp)
mov    %rbp,%rdi
lea    0x10(%rsp),%rsi
mov    %r12,%rdx
mov    %rbp,%rcx
call   1050 <dscal_@plt>
add    $0x1,%rbx
movslq 0x4(%rsp),%rax
add    $0x8,%r12
cmp    %rax,%rbx
jl     12e0 <invSVD+0x190>
sub    $0x8,%rsp
lea    0x38(%rsp),%rax
lea    0xcde(%rip),%rdi
lea    0x40(%rsp),%r9
mov    %rdi,%rsi
lea    0xc(%rsp),%rcx
mov    %rcx,%rdx
mov    %rcx,%r8
push   %rcx
push   0x18(%rsp)
push   %rax
push   %rcx
push   %r15
push   %rcx
push   %r14
call   1040 <dgemm_@plt>
add    $0x40,%rsp
mov    %r15,%rdi
call   1030 <free@plt>
mov    %r14,%rdi
call   1030 <free@plt>
mov    %r13,%rdi
call   1030 <free@plt>
mov    0x20(%rsp),%rdi
call   1030 <free@plt>
xor    %eax,%eax
add    $0x48,%rsp
pop    %rbx
pop    %r12
pop    %r13
pop    %r14
pop    %r15
pop    %rbp
ret

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

LLVM IR (-O2):
@.str = [2 x i8] c"A\00"
@.str.1 = [2 x i8] c"t\00"
define i32 @invSVD(i32 %0, double* %1) {
%3 = alloca i32
%4 = alloca i32
%5 = alloca i32
%6 = alloca double
%7 = alloca double
%8 = alloca double
store i32 %0, i32* %3
%9 = bitcast i32* %4 to i8*
%10 = bitcast i32* %5 to i8*
%11 = bitcast double* %6 to i8*
%12 = bitcast double* %7 to i8*
store double 1.000000e+00, double* %7
%13 = bitcast double* %8 to i8*
store double 0.000000e+00, double* %8
%14 = mul nsw i32 %0, 5
store i32 %14, i32* %4
%15 = shl i32 %0, 3
%16 = mul i32 %15, %0
%17 = tail call i64 @malloc(i32 %16)
%18 = inttoptr i64 %17 to double*
%19 = tail call i64 @malloc(i32 %16)
%20 = inttoptr i64 %19 to double*
%21 = tail call i64 @malloc(i32 %15)
%22 = inttoptr i64 %21 to double*
%23 = mul i32 %0, 40
%24 = tail call i64 @malloc(i32 %23)
%25 = inttoptr i64 %24 to double*
%26 = icmp eq i64 %17, 0
%27 = icmp eq i64 %19, 0
%28 = select i1 %26, i1 true, i1 %27
%29 = icmp eq i64 %21, 0
%30 = select i1 %28, i1 true, i1 %29
%31 = icmp eq i64 %24, 0
%32 = select i1 %30, i1 true, i1 %31
br i1 %32, label %74, label %33
33: ; preds = %2
%34 = icmp eq i32 %0, 1
br i1 %34, label %35, label %40
35: ; preds = %33
%36 = load double, double* %1
%37 = fcmp oeq double %36, 0.000000e+00
br i1 %37, label %74, label %38
38: ; preds = %35
%39 = fdiv double 1.000000e+00, %36
store double %39, double* %1
br label %74
40: ; preds = %33
%41 = call i32 @dgesvd_(i8* getelementptr inbounds ([2 x i8], [2 x i8]* @.str, i64 0, i64 0), i8* getelementptr inbounds ([2 x i8], [2 x i8]* @.str, i64 0, i64 0), i32* %3, i32* %3, double* %1, i32* %3, double* %22, double* %18, i32* %3, double* %20, i32* %3, double* %25, i32* %4, i32* %5)
%42 = load double, double* %22
%43 = fcmp oeq double %42, 0.000000e+00
br i1 %43, label %74, label %44
44: ; preds = %40
%45 = fmul double %42, 1.000000e-17
%46 = load i32, i32* %3
%47 = icmp sgt i32 %46, 0
br i1 %47, label %48, label %68
48: ; preds = %44
%49 = fcmp ogt double %42, %45
%50 = select i1 %49, double %42, double %45
%51 = fdiv double 1.000000e+00, %50
store double %51, double* %6
%52 = call i32 @dscal_(i32* %3, double* %6, double* %20, i32* %3)
%53 = load i32, i32* %3
%54 = icmp sgt i32 %53, 1
br i1 %54, label %55, label %68
55: ; preds = %48, %55
%56 = phi i64 [ %64, %55 ], [ 1, %48 ]
%57 = getelementptr inbounds double, double* %22, i64 %56
%58 = load double, double* %57
%59 = fcmp ogt double %58, %45
%60 = select i1 %59, double %58, double %45
%61 = fdiv double 1.000000e+00, %60
store double %61, double* %6
%62 = getelementptr inbounds double, double* %20, i64 %56
%63 = call i32 @dscal_(i32* %3, double* %6, double* %62, i32* %3)
%64 = add nuw nsw i64 %56, 1
%65 = load i32, i32* %3
%66 = sext i32 %65 to i64
%67 = icmp slt i64 %64, %66
br i1 %67, label %55, label %68
68: ; preds = %55, %48, %44
%69 = call i32 @dgemm_(i8* getelementptr inbounds ([2 x i8], [2 x i8]* @.str.1, i64 0, i64 0), i8* getelementptr inbounds ([2 x i8], [2 x i8]* @.str.1, i64 0, i64 0), i32* %3, i32* %3, i32* %3, double* %7, double* %20, i32* %3, double* %18, i32* %3, double* %8, double* %1, i32* %3)
%70 = call i32 @free(double* %18)
%71 = call i32 @free(double* %20)
%72 = call i32 @free(double* %22)
%73 = call i32 @free(double* %25)
br label %74
74: ; preds = %40, %35, %2, %68, %38
%75 = phi i32 [ 0, %38 ], [ 0, %68 ], [ -1, %2 ], [ 1, %35 ], [ 1, %40 ]
ret i32 %75
}