#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*/ fprintf(int /*<<< orphan*/, char *);
int /*<<< orphan*/ free(double *);
double *malloc(int);
int /*<<< orphan*/ memcpy(double *, double *, int);
int /*<<< orphan*/ printf(char *, int);
int /*<<< orphan*/ relax_aat(double *, int, int, int, double *, int);
int /*<<< orphan*/ relax_ata(double *, int, int, int, double *, int);
int /*<<< orphan*/ relax_atb(double *, int, int, int, double *, double *);
int relax_gauss(double *, int, int, int, double *);
int /*<<< orphan*/ stderr;
int direct_gauss(double *A, int m, int n, int stride, double *b, double *x0) {
  double *C, *c;
  int i, err;
  err = 0;
  C = NULL;
  c = NULL;
  if (m == n) {
    C = malloc(m * stride * sizeof C[0]);
    memcpy(C, A, m * stride * sizeof A[0]);
    memcpy(x0, b, m * sizeof b[0]);
    if ((err = relax_gauss(C, m, n, stride, x0)) == -1) {
      fprintf(stderr, "relax_gauss: could not solve\n");
      err = -1;
      goto err_out;
    }
  } else if (m > n) {
    C = malloc(n * n * sizeof C[0]);
    relax_ata(A, m, n, stride, C, n);
    relax_atb(A, m, n, stride, b, x0);
    if ((err = relax_gauss(C, n, n, n, x0)) == -1) {
      fprintf(stderr, "relax_gauss: could not solve\n");
      err = -1;
      goto err_out;
    }
  } else {
    C = malloc(m * m * sizeof C[0]);
    c = malloc(m * sizeof c[0]);
    relax_aat(A, m, n, stride, C, m);
    for (i = 0; i < m; i++)
      c[i] = b[i];
    if ((err = relax_gauss(C, m, m, m, c)) == -1) {
      fprintf(stderr, "relax_gauss: could not solve\n");
      err = -1;
      goto err_out;
    }
    relax_atb(A, m, n, stride, c, x0);
  }
err_out:
  if (C != NULL)
    free(C);
  if (c != NULL)
    free(c);
  printf(" iter %7d", -1);
  return err;
}


x86 assembly (clang, -O0):
<direct_gauss>:
push   %rbp
mov    %rsp,%rbp
sub    $0x40,%rsp
mov    %rdi,-0x8(%rbp)
mov    %esi,-0xc(%rbp)
mov    %edx,-0x10(%rbp)
mov    %ecx,-0x14(%rbp)
mov    %r8,-0x20(%rbp)
mov    %r9,-0x28(%rbp)
movl   $0x0,-0x40(%rbp)
movq   $0x0,-0x30(%rbp)
movq   $0x0,-0x38(%rbp)
mov    -0xc(%rbp),%eax
cmp    -0x10(%rbp),%eax
jne    1263 <direct_gauss+0xd3>
mov    -0xc(%rbp),%eax
imul   -0x14(%rbp),%eax
cltq
shl    $0x3,%rax
mov    %eax,%edi
call   1090 <malloc@plt>
mov    %rax,-0x30(%rbp)
mov    -0x30(%rbp),%rdi
mov    -0x8(%rbp),%rsi
mov    -0xc(%rbp),%eax
imul   -0x14(%rbp),%eax
cltq
shl    $0x3,%rax
mov    %eax,%edx
call   1080 <memcpy@plt>
mov    -0x28(%rbp),%rdi
mov    -0x20(%rbp),%rsi
movslq -0xc(%rbp),%rax
shl    $0x3,%rax
mov    %eax,%edx
call   1080 <memcpy@plt>
mov    -0x30(%rbp),%rdi
mov    -0xc(%rbp),%esi
mov    -0x10(%rbp),%edx
mov    -0x14(%rbp),%ecx
mov    -0x28(%rbp),%r8
call   10b0 <relax_gauss@plt>
mov    %eax,-0x40(%rbp)
cmp    $0xffffffff,%eax
jne    125e <direct_gauss+0xce>
mov    0x2d9c(%rip),%rax
mov    (%rax),%edi
lea    0xdb3(%rip),%rsi
call   1070 <fprintf@plt>
movl   $0xffffffff,-0x40(%rbp)
jmp    13ea <direct_gauss+0x25a>
jmp    13e5 <direct_gauss+0x255>
mov    -0xc(%rbp),%eax
cmp    -0x10(%rbp),%eax
jle    1303 <direct_gauss+0x173>
mov    -0x10(%rbp),%eax
imul   -0x10(%rbp),%eax
cltq
shl    $0x3,%rax
mov    %eax,%edi
call   1090 <malloc@plt>
mov    %rax,-0x30(%rbp)
mov    -0x8(%rbp),%rdi
mov    -0xc(%rbp),%esi
mov    -0x10(%rbp),%edx
mov    -0x14(%rbp),%ecx
mov    -0x30(%rbp),%r8
mov    -0x10(%rbp),%r9d
call   1040 <relax_ata@plt>
mov    -0x8(%rbp),%rdi
mov    -0xc(%rbp),%esi
mov    -0x10(%rbp),%edx
mov    -0x14(%rbp),%ecx
mov    -0x20(%rbp),%r8
mov    -0x28(%rbp),%r9
call   10a0 <relax_atb@plt>
mov    -0x30(%rbp),%rdi
mov    -0x10(%rbp),%esi
mov    -0x10(%rbp),%edx
mov    -0x10(%rbp),%ecx
mov    -0x28(%rbp),%r8
call   10b0 <relax_gauss@plt>
mov    %eax,-0x40(%rbp)
cmp    $0xffffffff,%eax
jne    12fe <direct_gauss+0x16e>
mov    0x2cfc(%rip),%rax
mov    (%rax),%edi
lea    0xd13(%rip),%rsi
call   1070 <fprintf@plt>
movl   $0xffffffff,-0x40(%rbp)
jmp    13ea <direct_gauss+0x25a>
jmp    13e0 <direct_gauss+0x250>
mov    -0xc(%rbp),%eax
imul   -0xc(%rbp),%eax
cltq
shl    $0x3,%rax
mov    %eax,%edi
call   1090 <malloc@plt>
mov    %rax,-0x30(%rbp)
movslq -0xc(%rbp),%rax
shl    $0x3,%rax
mov    %eax,%edi
call   1090 <malloc@plt>
mov    %rax,-0x38(%rbp)
mov    -0x8(%rbp),%rdi
mov    -0xc(%rbp),%esi
mov    -0x10(%rbp),%edx
mov    -0x14(%rbp),%ecx
mov    -0x30(%rbp),%r8
mov    -0xc(%rbp),%r9d
call   1050 <relax_aat@plt>
movl   $0x0,-0x3c(%rbp)
mov    -0x3c(%rbp),%eax
cmp    -0xc(%rbp),%eax
jge    1383 <direct_gauss+0x1f3>
mov    -0x20(%rbp),%rax
movslq -0x3c(%rbp),%rcx
movsd  (%rax,%rcx,8),%xmm0
mov    -0x38(%rbp),%rax
movslq -0x3c(%rbp),%rcx
movsd  %xmm0,(%rax,%rcx,8)
mov    -0x3c(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0x3c(%rbp)
jmp    134f <direct_gauss+0x1bf>
mov    -0x30(%rbp),%rdi
mov    -0xc(%rbp),%esi
mov    -0xc(%rbp),%edx
mov    -0xc(%rbp),%ecx
mov    -0x38(%rbp),%r8
call   10b0 <relax_gauss@plt>
mov    %eax,-0x40(%rbp)
cmp    $0xffffffff,%eax
jne    13c6 <direct_gauss+0x236>
mov    0x2c34(%rip),%rax
mov    (%rax),%edi
lea    0xc4b(%rip),%rsi
call   1070 <fprintf@plt>
movl   $0xffffffff,-0x40(%rbp)
jmp    13ea <direct_gauss+0x25a>
mov    -0x8(%rbp),%rdi
mov    -0xc(%rbp),%esi
mov    -0x10(%rbp),%edx
mov    -0x14(%rbp),%ecx
mov    -0x38(%rbp),%r8
mov    -0x28(%rbp),%r9
call   10a0 <relax_atb@plt>
jmp    13e5 <direct_gauss+0x255>
jmp    13ea <direct_gauss+0x25a>
cmpq   $0x0,-0x30(%rbp)
je     13fe <direct_gauss+0x26e>
mov    -0x30(%rbp),%rdi
call   1030 <free@plt>
cmpq   $0x0,-0x38(%rbp)
je     1412 <direct_gauss+0x282>
mov    -0x38(%rbp),%rdi
call   1030 <free@plt>
lea    0xc05(%rip),%rdi
mov    $0xffffffff,%esi
call   1060 <printf@plt>
mov    -0x40(%rbp),%eax
add    $0x40,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<direct_gauss>:
push   %rbp
push   %r15
push   %r14
push   %r13
push   %r12
push   %rbx
sub    $0x28,%rsp
mov    %r9,%r13
mov    %esi,%ebp
mov    %rdi,%rbx
cmp    %edx,%esi
mov    %ecx,0xc(%rsp)
mov    %r8,0x10(%rsp)
jne    11f8 <direct_gauss+0x68>
mov    %rbx,%r15
lea    0x0(,%rbp,8),%r14d
mov    %r14d,%ebx
imul   %ecx,%ebx
mov    %ebx,%edi
call   1090 <malloc@plt>
mov    %rax,%r12
mov    %rax,%rdi
mov    %r15,%rsi
mov    %ebx,%edx
call   1080 <memcpy@plt>
mov    %r13,%rdi
mov    0x10(%rsp),%rsi
mov    %r14d,%edx
call   1080 <memcpy@plt>
mov    %r12,%rdi
mov    %ebp,%esi
mov    %ebp,%edx
mov    0xc(%rsp),%ecx
jmp    1252 <direct_gauss+0xc2>
mov    %edx,%r15d
jle    12bf <direct_gauss+0x12f>
mov    %r15d,%edi
imul   %r15d,%edi
shl    $0x3,%edi
call   1090 <malloc@plt>
mov    %rax,%r12
mov    %rbx,%rdi
mov    %ebp,%esi
mov    %r15d,%edx
mov    0xc(%rsp),%r14d
mov    %r14d,%ecx
mov    %rax,%r8
mov    %r15d,%r9d
call   1040 <relax_ata@plt>
mov    %rbx,%rdi
mov    %ebp,%esi
mov    %r15d,%edx
mov    %r14d,%ecx
mov    0x10(%rsp),%r8
mov    %r13,%r9
call   10a0 <relax_atb@plt>
mov    %r12,%rdi
mov    %r15d,%esi
mov    %r15d,%edx
mov    %r15d,%ecx
mov    %r13,%r8
call   10b0 <relax_gauss@plt>
cmp    $0xffffffff,%eax
je     1264 <direct_gauss+0xd4>
mov    %eax,%r14d
jmp    127f <direct_gauss+0xef>
mov    0x2d75(%rip),%rax
mov    (%rax),%edi
lea    0xd8c(%rip),%rsi
call   1070 <fprintf@plt>
mov    $0xffffffff,%r14d
xor    %r13d,%r13d
test   %r12,%r12
je     128f <direct_gauss+0xff>
mov    %r12,%rdi
call   1030 <free@plt>
test   %r13,%r13
je     129c <direct_gauss+0x10c>
mov    %r13,%rdi
call   1030 <free@plt>
lea    0xd7b(%rip),%rdi
mov    $0xffffffff,%esi
call   1060 <printf@plt>
mov    %r14d,%eax
add    $0x28,%rsp
pop    %rbx
pop    %r12
pop    %r13
pop    %r14
pop    %r15
pop    %rbp
ret
mov    %r13,0x20(%rsp)
lea    0x0(,%rbp,8),%r14d
mov    %r14d,%edi
imul   %ebp,%edi
call   1090 <malloc@plt>
mov    %rax,%r12
mov    %r14d,%edi
call   1090 <malloc@plt>
mov    %rax,%r13
mov    %rbx,0x18(%rsp)
mov    %rbx,%rdi
mov    %ebp,%esi
mov    %r15d,%edx
mov    0xc(%rsp),%ecx
mov    %r12,%r8
mov    %ebp,%r9d
call   1050 <relax_aat@plt>
test   %ebp,%ebp
jle    1318 <direct_gauss+0x188>
mov    %ebp,%edx
shl    $0x3,%rdx
mov    %r13,%rdi
mov    0x10(%rsp),%rsi
call   1080 <memcpy@plt>
mov    %r12,%rdi
mov    %ebp,%esi
mov    %ebp,%edx
mov    %ebp,%ecx
mov    %r13,%r8
call   10b0 <relax_gauss@plt>
cmp    $0xffffffff,%eax
je     135a <direct_gauss+0x1ca>
mov    %eax,%r14d
mov    0x18(%rsp),%rdi
mov    %ebp,%esi
mov    %r15d,%edx
mov    0xc(%rsp),%ecx
mov    %r13,%r8
mov    0x20(%rsp),%r9
call   10a0 <relax_atb@plt>
test   %r12,%r12
jne    1287 <direct_gauss+0xf7>
jmp    128f <direct_gauss+0xff>
mov    0x2c7f(%rip),%rax
mov    (%rax),%edi
lea    0xc96(%rip),%rsi
call   1070 <fprintf@plt>
mov    $0xffffffff,%r14d
test   %r12,%r12
jne    1287 <direct_gauss+0xf7>
jmp    128f <direct_gauss+0xff>

LLVM IR (-O0):
@stderr = global i32 0
@.str = [30 x i8] c"relax_gauss: could not solve\0A\00"
@.str.1 = [10 x i8] c" iter %7d\00"
define i32 @direct_gauss(double* %0, i32 %1, i32 %2, i32 %3, double* %4, double* %5) {
%7 = alloca double*
%8 = alloca i32
%9 = alloca i32
%10 = alloca i32
%11 = alloca double*
%12 = alloca double*
%13 = alloca double*
%14 = alloca double*
%15 = alloca i32
%16 = alloca i32
store double* %0, double** %7
store i32 %1, i32* %8
store i32 %2, i32* %9
store i32 %3, i32* %10
store double* %4, double** %11
store double* %5, double** %12
store i32 0, i32* %16
store double* null, double** %13
store double* null, double** %14
%17 = load i32, i32* %8
%18 = load i32, i32* %9
%19 = icmp eq i32 %17, %18
br i1 %19, label %20, label %55
20: ; preds = %6
%21 = load i32, i32* %8
%22 = load i32, i32* %10
%23 = mul nsw i32 %21, %22
%24 = sext i32 %23 to i64
%25 = mul i64 %24, 8
%26 = trunc i64 %25 to i32
%27 = call double* @malloc(i32 %26)
store double* %27, double** %13
%28 = load double*, double** %13
%29 = load double*, double** %7
%30 = load i32, i32* %8
%31 = load i32, i32* %10
%32 = mul nsw i32 %30, %31
%33 = sext i32 %32 to i64
%34 = mul i64 %33, 8
%35 = trunc i64 %34 to i32
%36 = call i32 @memcpy(double* %28, double* %29, i32 %35)
%37 = load double*, double** %12
%38 = load double*, double** %11
%39 = load i32, i32* %8
%40 = sext i32 %39 to i64
%41 = mul i64 %40, 8
%42 = trunc i64 %41 to i32
%43 = call i32 @memcpy(double* %37, double* %38, i32 %42)
%44 = load double*, double** %13
%45 = load i32, i32* %8
%46 = load i32, i32* %9
%47 = load i32, i32* %10
%48 = load double*, double** %12
%49 = call i32 @relax_gauss(double* %44, i32 %45, i32 %46, i32 %47, double* %48)
store i32 %49, i32* %16
%50 = icmp eq i32 %49, -1
br i1 %50, label %51, label %54
51: ; preds = %20
%52 = load i32, i32* @stderr
%53 = call i32 @fprintf(i32 %52, i8* getelementptr inbounds ([30 x i8], [30 x i8]* @.str, i64 0, i64 0))
store i32 -1, i32* %16
br label %150
54: ; preds = %20
br label %149
55: ; preds = %6
%56 = load i32, i32* %8
%57 = load i32, i32* %9
%58 = icmp sgt i32 %56, %57
br i1 %58, label %59, label %92
59: ; preds = %55
%60 = load i32, i32* %9
%61 = load i32, i32* %9
%62 = mul nsw i32 %60, %61
%63 = sext i32 %62 to i64
%64 = mul i64 %63, 8
%65 = trunc i64 %64 to i32
%66 = call double* @malloc(i32 %65)
store double* %66, double** %13
%67 = load double*, double** %7
%68 = load i32, i32* %8
%69 = load i32, i32* %9
%70 = load i32, i32* %10
%71 = load double*, double** %13
%72 = load i32, i32* %9
%73 = call i32 @relax_ata(double* %67, i32 %68, i32 %69, i32 %70, double* %71, i32 %72)
%74 = load double*, double** %7
%75 = load i32, i32* %8
%76 = load i32, i32* %9
%77 = load i32, i32* %10
%78 = load double*, double** %11
%79 = load double*, double** %12
%80 = call i32 @relax_atb(double* %74, i32 %75, i32 %76, i32 %77, double* %78, double* %79)
%81 = load double*, double** %13
%82 = load i32, i32* %9
%83 = load i32, i32* %9
%84 = load i32, i32* %9
%85 = load double*, double** %12
%86 = call i32 @relax_gauss(double* %81, i32 %82, i32 %83, i32 %84, double* %85)
store i32 %86, i32* %16
%87 = icmp eq i32 %86, -1
br i1 %87, label %88, label %91
88: ; preds = %59
%89 = load i32, i32* @stderr
%90 = call i32 @fprintf(i32 %89, i8* getelementptr inbounds ([30 x i8], [30 x i8]* @.str, i64 0, i64 0))
store i32 -1, i32* %16
br label %150
91: ; preds = %59
br label %148
92: ; preds = %55
%93 = load i32, i32* %8
%94 = load i32, i32* %8
%95 = mul nsw i32 %93, %94
%96 = sext i32 %95 to i64
%97 = mul i64 %96, 8
%98 = trunc i64 %97 to i32
%99 = call double* @malloc(i32 %98)
store double* %99, double** %13
%100 = load i32, i32* %8
%101 = sext i32 %100 to i64
%102 = mul i64 %101, 8
%103 = trunc i64 %102 to i32
%104 = call double* @malloc(i32 %103)
store double* %104, double** %14
%105 = load double*, double** %7
%106 = load i32, i32* %8
%107 = load i32, i32* %9
%108 = load i32, i32* %10
%109 = load double*, double** %13
%110 = load i32, i32* %8
%111 = call i32 @relax_aat(double* %105, i32 %106, i32 %107, i32 %108, double* %109, i32 %110)
store i32 0, i32* %15
br label %112
112: ; preds = %126, %92
%113 = load i32, i32* %15
%114 = load i32, i32* %8
%115 = icmp slt i32 %113, %114
br i1 %115, label %116, label %129
116: ; preds = %112
%117 = load double*, double** %11
%118 = load i32, i32* %15
%119 = sext i32 %118 to i64
%120 = getelementptr inbounds double, double* %117, i64 %119
%121 = load double, double* %120
%122 = load double*, double** %14
%123 = load i32, i32* %15
%124 = sext i32 %123 to i64
%125 = getelementptr inbounds double, double* %122, i64 %124
store double %121, double* %125
br label %126
126: ; preds = %116
%127 = load i32, i32* %15
%128 = add nsw i32 %127, 1
store i32 %128, i32* %15
br label %112
129: ; preds = %112
%130 = load double*, double** %13
%131 = load i32, i32* %8
%132 = load i32, i32* %8
%133 = load i32, i32* %8
%134 = load double*, double** %14
%135 = call i32 @relax_gauss(double* %130, i32 %131, i32 %132, i32 %133, double* %134)
store i32 %135, i32* %16
%136 = icmp eq i32 %135, -1
br i1 %136, label %137, label %140
137: ; preds = %129
%138 = load i32, i32* @stderr
%139 = call i32 @fprintf(i32 %138, i8* getelementptr inbounds ([30 x i8], [30 x i8]* @.str, i64 0, i64 0))
store i32 -1, i32* %16
br label %150
140: ; preds = %129
%141 = load double*, double** %7
%142 = load i32, i32* %8
%143 = load i32, i32* %9
%144 = load i32, i32* %10
%145 = load double*, double** %14
%146 = load double*, double** %12
%147 = call i32 @relax_atb(double* %141, i32 %142, i32 %143, i32 %144, double* %145, double* %146)
br label %148
148: ; preds = %140, %91
br label %149
149: ; preds = %148, %54
br label %150
150: ; preds = %149, %137, %88, %51
%151 = load double*, double** %13
%152 = icmp ne double* %151, null
br i1 %152, label %153, label %156
153: ; preds = %150
%154 = load double*, double** %13
%155 = call i32 @free(double* %154)
br label %156
156: ; preds = %153, %150
%157 = load double*, double** %14
%158 = icmp ne double* %157, null
br i1 %158, label %159, label %162
159: ; preds = %156
%160 = load double*, double** %14
%161 = call i32 @free(double* %160)
br label %162
162: ; preds = %159, %156
%163 = call i32 @printf(i8* getelementptr inbounds ([10 x i8], [10 x i8]* @.str.1, i64 0, i64 0), i32 -1)
%164 = load i32, i32* %16
ret i32 %164
}

LLVM IR (-O2):
@stderr = global i32 0
@.str = [30 x i8] c"relax_gauss: could not solve\0A\00"
@.str.1 = [10 x i8] c" iter %7d\00"
define i32 @direct_gauss(double* %0, i32 %1, i32 %2, i32 %3, double* %4, double* %5) {
%7 = bitcast double* %4 to i8*
%8 = icmp eq i32 %1, %2
br i1 %8, label %9, label %20
9: ; preds = %6
%10 = shl i32 %1, 3
%11 = mul i32 %10, %3
%12 = tail call double* @malloc(i32 %11)
%13 = tail call i32 @memcpy(double* %12, double* %0, i32 %11)
%14 = tail call i32 @memcpy(double* %5, double* %4, i32 %10)
%15 = tail call i32 @relax_gauss(double* %12, i32 %1, i32 %1, i32 %3, double* %5)
%16 = icmp eq i32 %15, -1
br i1 %16, label %17, label %52
17: ; preds = %9
%18 = load i32, i32* @stderr
%19 = tail call i32 @fprintf(i32 %18, i8* getelementptr inbounds ([30 x i8], [30 x i8]* @.str, i64 0, i64 0))
br label %52
20: ; preds = %6
%21 = icmp sgt i32 %1, %2
br i1 %21, label %22, label %33
22: ; preds = %20
%23 = shl i32 %2, 3
%24 = mul i32 %23, %2
%25 = tail call double* @malloc(i32 %24)
%26 = tail call i32 @relax_ata(double* %0, i32 %1, i32 %2, i32 %3, double* %25, i32 %2)
%27 = tail call i32 @relax_atb(double* %0, i32 %1, i32 %2, i32 %3, double* %4, double* %5)
%28 = tail call i32 @relax_gauss(double* %25, i32 %2, i32 %2, i32 %2, double* %5)
%29 = icmp eq i32 %28, -1
br i1 %29, label %30, label %52
30: ; preds = %22
%31 = load i32, i32* @stderr
%32 = tail call i32 @fprintf(i32 %31, i8* getelementptr inbounds ([30 x i8], [30 x i8]* @.str, i64 0, i64 0))
br label %52
33: ; preds = %20
%34 = shl i32 %1, 3
%35 = mul i32 %34, %1
%36 = tail call double* @malloc(i32 %35)
%37 = tail call double* @malloc(i32 %34)
%38 = tail call i32 @relax_aat(double* %0, i32 %1, i32 %2, i32 %3, double* %36, i32 %1)
%39 = icmp sgt i32 %1, 0
br i1 %39, label %40, label %44
40: ; preds = %33
%41 = bitcast double* %37 to i8*
%42 = zext i32 %1 to i64
%43 = shl nuw nsw i64 %42, 3
br label %44
44: ; preds = %40, %33
%45 = tail call i32 @relax_gauss(double* %36, i32 %1, i32 %1, i32 %1, double* %37)
%46 = icmp eq i32 %45, -1
br i1 %46, label %47, label %50
47: ; preds = %44
%48 = load i32, i32* @stderr
%49 = tail call i32 @fprintf(i32 %48, i8* getelementptr inbounds ([30 x i8], [30 x i8]* @.str, i64 0, i64 0))
br label %52
50: ; preds = %44
%51 = tail call i32 @relax_atb(double* %0, i32 %1, i32 %2, i32 %3, double* %37, double* %5)
br label %52
52: ; preds = %9, %22, %50, %47, %30, %17
%53 = phi double* [ %12, %17 ], [ %12, %9 ], [ %25, %30 ], [ %25, %22 ], [ %36, %47 ], [ %36, %50 ]
%54 = phi double* [ null, %17 ], [ null, %9 ], [ null, %30 ], [ null, %22 ], [ %37, %47 ], [ %37, %50 ]
%55 = phi i32 [ -1, %17 ], [ %15, %9 ], [ -1, %30 ], [ %28, %22 ], [ -1, %47 ], [ %45, %50 ]
%56 = icmp eq double* %53, null
br i1 %56, label %59, label %57
57: ; preds = %52
%58 = tail call i32 @free(double* %53)
br label %59
59: ; preds = %57, %52
%60 = icmp eq double* %54, null
br i1 %60, label %63, label %61
61: ; preds = %59
%62 = tail call i32 @free(double* %54)
br label %63
63: ; preds = %61, %59
%64 = tail call i32 @printf(i8* getelementptr inbounds ([10 x i8], [10 x i8]* @.str.1, i64 0, i64 0), i32 -1)
ret i32 %55
}