#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*/ _mm_free(double *);
scalar_t__ _mm_malloc(int, int);
int /*<<< orphan*/ apply_tri_special(double *, double *, double, double, int);
int /*<<< orphan*/ apply_tri_special_plus(double *, double *, double, double,
                                          int);
int /*<<< orphan*/ memset(double *, double, int);
int /*<<< orphan*/ solve_tri_special(double *, double, double, int);
int /*<<< orphan*/ transpose_cache(double *, double *, int);
int /*<<< orphan*/ vec_subtract(double *, double const *, int);
int /*<<< orphan*/ vec_subtract_half(double *, double *, int);
int /*<<< orphan*/ vec_transpose_add(double *, double *, int);
void relaxOperation(double *restrict u, const double *restrict fstar,
                    double *scratch, double a, double b, int n) {
  double *ustar = (double *)_mm_malloc(n * n * sizeof(double), 64);
  double *u_t = (double *)_mm_malloc(n * n * sizeof(double), 64);
  transpose_cache(u_t, u, n);
  for (int i = 1; i < n - 1; i++) {
    apply_tri_special_plus(u + i * n, scratch, a / 2, b / 2, n);
  }
  for (int i = 1; i < n - 1; i++) {
    apply_tri_special(u_t + i * n, scratch, a, b, n);
  }
  memset(u_t, 0.0, n * sizeof(double));
  memset(u_t + (n - 1) * n, 0.0, n * sizeof(double));
  vec_subtract(u, fstar, n);
  vec_transpose_add(u, u_t, n);
  int j;
#pragma omp parallel
  {
#pragma omp for private(j) schedule(dynamic, 8)
#pragma vector aligned
    for (j = 1; j < n - 1; j++) {
      solve_tri_special(u + j * n, a / 2, b / 2, n);
    }
#pragma omp single
    {
      transpose_cache(ustar, u, n);
      vec_subtract_half(ustar, u_t, n);
    }
#pragma omp for private(j) schedule(dynamic, 8)
#pragma vector aligned
    for (j = 1; j < n - 1; j++) {
      solve_tri_special(ustar + j * n, a / 2, b / 2, n);
    }
  }
  transpose_cache(u, ustar, n);
  _mm_free(ustar);
  _mm_free(u_t);
}


x86 assembly (clang, -O0):
<relaxOperation>:
push   %rbp
mov    %rsp,%rbp
sub    $0x50,%rsp
mov    %rdi,-0x8(%rbp)
mov    %rsi,-0x10(%rbp)
mov    %rdx,-0x18(%rbp)
movsd  %xmm0,-0x20(%rbp)
movsd  %xmm1,-0x28(%rbp)
mov    %ecx,-0x2c(%rbp)
mov    -0x2c(%rbp),%eax
imul   -0x2c(%rbp),%eax
cltq
shl    $0x3,%rax
mov    %eax,%edi
mov    $0x40,%esi
call   10b0 <_mm_malloc@plt>
mov    %rax,-0x38(%rbp)
mov    -0x2c(%rbp),%eax
imul   -0x2c(%rbp),%eax
cltq
shl    $0x3,%rax
mov    %eax,%edi
mov    $0x40,%esi
call   10b0 <_mm_malloc@plt>
mov    %rax,-0x40(%rbp)
mov    -0x40(%rbp),%rdi
mov    -0x8(%rbp),%rsi
mov    -0x2c(%rbp),%edx
call   1060 <transpose_cache@plt>
movl   $0x1,-0x44(%rbp)
mov    -0x44(%rbp),%eax
mov    -0x2c(%rbp),%ecx
sub    $0x1,%ecx
cmp    %ecx,%eax
jge    1273 <relaxOperation+0xd3>
mov    -0x8(%rbp),%rdi
mov    -0x44(%rbp),%eax
imul   -0x2c(%rbp),%eax
cltq
shl    $0x3,%rax
add    %rax,%rdi
mov    -0x18(%rbp),%rsi
movsd  -0x20(%rbp),%xmm0
movsd  0xdb8(%rip),%xmm1
divsd  %xmm1,%xmm0
movsd  -0x28(%rbp),%xmm1
movsd  0xda7(%rip),%xmm2
divsd  %xmm2,%xmm1
mov    -0x2c(%rbp),%edx
call   1040 <apply_tri_special_plus@plt>
mov    -0x44(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0x44(%rbp)
jmp    1212 <relaxOperation+0x72>
movl   $0x1,-0x48(%rbp)
mov    -0x48(%rbp),%eax
mov    -0x2c(%rbp),%ecx
sub    $0x1,%ecx
cmp    %ecx,%eax
jge    12c3 <relaxOperation+0x123>
mov    -0x40(%rbp),%rdi
mov    -0x48(%rbp),%eax
imul   -0x2c(%rbp),%eax
cltq
shl    $0x3,%rax
add    %rax,%rdi
mov    -0x18(%rbp),%rsi
movsd  -0x20(%rbp),%xmm0
movsd  -0x28(%rbp),%xmm1
mov    -0x2c(%rbp),%edx
call   1030 <apply_tri_special@plt>
mov    -0x48(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0x48(%rbp)
jmp    127a <relaxOperation+0xda>
mov    -0x40(%rbp),%rdi
movslq -0x2c(%rbp),%rax
shl    $0x3,%rax
mov    %eax,%esi
xorps  %xmm0,%xmm0
call   1050 <memset@plt>
mov    -0x40(%rbp),%rdi
mov    -0x2c(%rbp),%eax
sub    $0x1,%eax
imul   -0x2c(%rbp),%eax
cltq
shl    $0x3,%rax
add    %rax,%rdi
movslq -0x2c(%rbp),%rax
shl    $0x3,%rax
mov    %eax,%esi
xorps  %xmm0,%xmm0
call   1050 <memset@plt>
mov    -0x8(%rbp),%rdi
mov    -0x10(%rbp),%rsi
mov    -0x2c(%rbp),%edx
call   1080 <vec_subtract@plt>
mov    -0x8(%rbp),%rdi
mov    -0x40(%rbp),%rsi
mov    -0x2c(%rbp),%edx
call   10a0 <vec_transpose_add@plt>
movl   $0x1,-0x4c(%rbp)
mov    -0x4c(%rbp),%eax
mov    -0x2c(%rbp),%ecx
sub    $0x1,%ecx
cmp    %ecx,%eax
jge    1386 <relaxOperation+0x1e6>
mov    -0x8(%rbp),%rdi
mov    -0x4c(%rbp),%eax
imul   -0x2c(%rbp),%eax
cltq
shl    $0x3,%rax
add    %rax,%rdi
movsd  -0x20(%rbp),%xmm0
movsd  0xca5(%rip),%xmm1
divsd  %xmm1,%xmm0
movsd  -0x28(%rbp),%xmm1
movsd  0xc94(%rip),%xmm2
divsd  %xmm2,%xmm1
mov    -0x2c(%rbp),%esi
call   1070 <solve_tri_special@plt>
mov    -0x4c(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0x4c(%rbp)
jmp    1329 <relaxOperation+0x189>
mov    -0x38(%rbp),%rdi
mov    -0x8(%rbp),%rsi
mov    -0x2c(%rbp),%edx
call   1060 <transpose_cache@plt>
mov    -0x38(%rbp),%rdi
mov    -0x40(%rbp),%rsi
mov    -0x2c(%rbp),%edx
call   1090 <vec_subtract_half@plt>
movl   $0x1,-0x4c(%rbp)
mov    -0x4c(%rbp),%eax
mov    -0x2c(%rbp),%ecx
sub    $0x1,%ecx
cmp    %ecx,%eax
jge    140a <relaxOperation+0x26a>
mov    -0x38(%rbp),%rdi
mov    -0x4c(%rbp),%eax
imul   -0x2c(%rbp),%eax
cltq
shl    $0x3,%rax
add    %rax,%rdi
movsd  -0x20(%rbp),%xmm0
movsd  0xc21(%rip),%xmm1
divsd  %xmm1,%xmm0
movsd  -0x28(%rbp),%xmm1
movsd  0xc10(%rip),%xmm2
divsd  %xmm2,%xmm1
mov    -0x2c(%rbp),%esi
call   1070 <solve_tri_special@plt>
mov    -0x4c(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0x4c(%rbp)
jmp    13ad <relaxOperation+0x20d>
mov    -0x8(%rbp),%rdi
mov    -0x38(%rbp),%rsi
mov    -0x2c(%rbp),%edx
call   1060 <transpose_cache@plt>
mov    -0x38(%rbp),%rdi
call   10c0 <_mm_free@plt>
mov    -0x40(%rbp),%rdi
call   10c0 <_mm_free@plt>
add    $0x50,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<relaxOperation>:
push   %rbp
push   %r15
push   %r14
push   %r13
push   %r12
push   %rbx
sub    $0x58,%rsp
mov    %ecx,%r14d
movsd  %xmm1,0x10(%rsp)
movsd  %xmm0,0x8(%rsp)
mov    %rdx,%r13
mov    %rsi,0x38(%rsp)
mov    %rdi,%r15
lea    0x0(,%r14,8),%ebp
mov    %ebp,0x1c(%rsp)
imul   %ecx,%ebp
mov    %ebp,%edi
mov    $0x40,%esi
call   10b0 <_mm_malloc@plt>
mov    %rax,0x40(%rsp)
mov    %ebp,%edi
mov    $0x40,%esi
call   10b0 <_mm_malloc@plt>
mov    %rax,%rbx
mov    %rax,%rdi
mov    %r15,%rsi
mov    %r14d,%edx
call   1060 <transpose_cache@plt>
lea    -0x1(%r14),%ebp
cmp    $0x3,%r14d
mov    %rbx,0x20(%rsp)
mov    %ebp,0x4(%rsp)
mov    %r15,0x28(%rsp)
jl     1392 <relaxOperation+0x1f2>
movsd  0xdd7(%rip),%xmm1
movsd  0x8(%rsp),%xmm0
mulsd  %xmm1,%xmm0
mulsd  0x10(%rsp),%xmm1
mov    %r14d,%eax
mov    %ebp,%r12d
lea    (%r15,%rax,8),%r15
mov    %rax,0x30(%rsp)
lea    0x0(,%rax,8),%rbp
lea    -0x1(%r12),%rbx
movsd  %xmm1,0x50(%rsp)
movsd  %xmm0,0x48(%rsp)
cs nopw 0x0(%rax,%rax,1)
nopl   0x0(%rax,%rax,1)
mov    %r15,%rdi
mov    %r13,%rsi
movsd  0x50(%rsp),%xmm1
mov    %r14d,%edx
call   1040 <apply_tri_special_plus@plt>
movsd  0x48(%rsp),%xmm0
add    %rbp,%r15
add    $0xffffffffffffffff,%rbx
jne    1270 <relaxOperation+0xd0>
cmp    $0x3,%r14d
mov    0x28(%rsp),%r15
mov    0x20(%rsp),%rbx
mov    0x4(%rsp),%ebp
jl     1392 <relaxOperation+0x1f2>
mov    0x30(%rsp),%rax
lea    (%rbx,%rax,8),%rbp
lea    0x0(,%rax,8),%r15
lea    -0x1(%r12),%rbx
cs nopw 0x0(%rax,%rax,1)
nopl   0x0(%rax,%rax,1)
mov    %rbp,%rdi
mov    %r13,%rsi
movsd  0x8(%rsp),%xmm0
movsd  0x10(%rsp),%xmm1
mov    %r14d,%edx
call   1030 <apply_tri_special@plt>
add    %r15,%rbp
add    $0xffffffffffffffff,%rbx
jne    12d0 <relaxOperation+0x130>
xorpd  %xmm0,%xmm0
mov    0x20(%rsp),%r13
mov    %r13,%rdi
mov    0x1c(%rsp),%ebp
mov    %ebp,%esi
call   1050 <memset@plt>
mov    0x4(%rsp),%eax
imul   %r14d,%eax
cltq
lea    0x0(,%rax,8),%rdi
add    %r13,%rdi
xorpd  %xmm0,%xmm0
mov    %ebp,%esi
call   1050 <memset@plt>
mov    0x28(%rsp),%r15
mov    %r15,%rdi
mov    0x38(%rsp),%rsi
mov    %r14d,%edx
call   1080 <vec_subtract@plt>
mov    %r15,%rdi
mov    %r13,%rsi
mov    %r14d,%edx
call   10a0 <vec_transpose_add@plt>
cmp    $0x3,%r14d
jl     1472 <relaxOperation+0x2d2>
mov    0x30(%rsp),%rbx
lea    (%r15,%rbx,8),%rbp
shl    $0x3,%rbx
add    $0xffffffffffffffff,%r12
nopl   0x0(%rax,%rax,1)
mov    %rbp,%rdi
movsd  0x48(%rsp),%xmm0
movsd  0x50(%rsp),%xmm1
mov    %r14d,%esi
call   1070 <solve_tri_special@plt>
add    %rbx,%rbp
add    $0xffffffffffffffff,%r12
jne    1370 <relaxOperation+0x1d0>
jmp    13e3 <relaxOperation+0x243>
xorpd  %xmm0,%xmm0
mov    %rbx,%rdi
mov    %rbx,%r13
mov    0x1c(%rsp),%ebx
mov    %ebx,%esi
call   1050 <memset@plt>
mov    %ebp,%eax
imul   %r14d,%eax
cltq
lea    0x0(,%rax,8),%rdi
add    %r13,%rdi
xorpd  %xmm0,%xmm0
mov    %ebx,%esi
call   1050 <memset@plt>
mov    %r15,%rdi
mov    0x38(%rsp),%rsi
mov    %r14d,%edx
call   1080 <vec_subtract@plt>
mov    %r15,%rdi
mov    %r13,%rsi
mov    %r14d,%edx
call   10a0 <vec_transpose_add@plt>
mov    0x40(%rsp),%r12
mov    %r12,%rdi
mov    %r15,%rsi
mov    %r14d,%edx
call   1060 <transpose_cache@plt>
mov    %r12,%rdi
mov    %r13,%rsi
mov    %r14d,%edx
call   1090 <vec_subtract_half@plt>
cmp    $0x3,%r14d
jl     1493 <relaxOperation+0x2f3>
movsd  0xbea(%rip),%xmm0
movsd  0x8(%rsp),%xmm1
mulsd  %xmm0,%xmm1
movsd  %xmm1,0x8(%rsp)
movsd  0x10(%rsp),%xmm1
mulsd  %xmm0,%xmm1
movsd  %xmm1,0x10(%rsp)
mov    %r14d,%r15d
mov    0x4(%rsp),%ebx
lea    (%r12,%r15,8),%rbp
shl    $0x3,%r15
add    $0xffffffffffffffff,%rbx
nopl   0x0(%rax)
mov    %rbp,%rdi
movsd  0x8(%rsp),%xmm0
movsd  0x10(%rsp),%xmm1
mov    %r14d,%esi
call   1070 <solve_tri_special@plt>
add    %r15,%rbp
add    $0xffffffffffffffff,%rbx
jne    1450 <relaxOperation+0x2b0>
jmp    1493 <relaxOperation+0x2f3>
mov    0x40(%rsp),%r12
mov    %r12,%rdi
mov    %r15,%rsi
mov    %r14d,%edx
call   1060 <transpose_cache@plt>
mov    %r12,%rdi
mov    %r13,%rsi
mov    %r14d,%edx
call   1090 <vec_subtract_half@plt>
mov    0x28(%rsp),%rdi
mov    %r12,%rsi
mov    %r14d,%edx
call   1060 <transpose_cache@plt>
mov    %r12,%rdi
call   10c0 <_mm_free@plt>
mov    0x20(%rsp),%rdi
add    $0x58,%rsp
pop    %rbx
pop    %r12
pop    %r13
pop    %r14
pop    %r15
pop    %rbp
jmp    10c0 <_mm_free@plt>

LLVM IR (-O0):
define void @relaxOperation(double* noalias %0, double* noalias %1, double* %2, double %3, double %4, i32 %5) {
%7 = alloca double*
%8 = alloca double*
%9 = alloca double*
%10 = alloca double
%11 = alloca double
%12 = alloca i32
%13 = alloca double*
%14 = alloca double*
%15 = alloca i32
%16 = alloca i32
%17 = alloca i32
store double* %0, double** %7
store double* %1, double** %8
store double* %2, double** %9
store double %3, double* %10
store double %4, double* %11
store i32 %5, i32* %12
%18 = load i32, i32* %12
%19 = load i32, i32* %12
%20 = mul nsw i32 %18, %19
%21 = sext i32 %20 to i64
%22 = mul i64 %21, 8
%23 = trunc i64 %22 to i32
%24 = call i64 @_mm_malloc(i32 %23, i32 64)
%25 = inttoptr i64 %24 to double*
store double* %25, double** %13
%26 = load i32, i32* %12
%27 = load i32, i32* %12
%28 = mul nsw i32 %26, %27
%29 = sext i32 %28 to i64
%30 = mul i64 %29, 8
%31 = trunc i64 %30 to i32
%32 = call i64 @_mm_malloc(i32 %31, i32 64)
%33 = inttoptr i64 %32 to double*
store double* %33, double** %14
%34 = load double*, double** %14
%35 = load double*, double** %7
%36 = load i32, i32* %12
%37 = call i32 @transpose_cache(double* %34, double* %35, i32 %36)
store i32 1, i32* %15
br label %38
38: ; preds = %57, %6
%39 = load i32, i32* %15
%40 = load i32, i32* %12
%41 = sub nsw i32 %40, 1
%42 = icmp slt i32 %39, %41
br i1 %42, label %43, label %60
43: ; preds = %38
%44 = load double*, double** %7
%45 = load i32, i32* %15
%46 = load i32, i32* %12
%47 = mul nsw i32 %45, %46
%48 = sext i32 %47 to i64
%49 = getelementptr inbounds double, double* %44, i64 %48
%50 = load double*, double** %9
%51 = load double, double* %10
%52 = fdiv double %51, 2.000000e+00
%53 = load double, double* %11
%54 = fdiv double %53, 2.000000e+00
%55 = load i32, i32* %12
%56 = call i32 @apply_tri_special_plus(double* %49, double* %50, double %52, double %54, i32 %55)
br label %57
57: ; preds = %43
%58 = load i32, i32* %15
%59 = add nsw i32 %58, 1
store i32 %59, i32* %15
br label %38
60: ; preds = %38
store i32 1, i32* %16
br label %61
61: ; preds = %78, %60
%62 = load i32, i32* %16
%63 = load i32, i32* %12
%64 = sub nsw i32 %63, 1
%65 = icmp slt i32 %62, %64
br i1 %65, label %66, label %81
66: ; preds = %61
%67 = load double*, double** %14
%68 = load i32, i32* %16
%69 = load i32, i32* %12
%70 = mul nsw i32 %68, %69
%71 = sext i32 %70 to i64
%72 = getelementptr inbounds double, double* %67, i64 %71
%73 = load double*, double** %9
%74 = load double, double* %10
%75 = load double, double* %11
%76 = load i32, i32* %12
%77 = call i32 @apply_tri_special(double* %72, double* %73, double %74, double %75, i32 %76)
br label %78
78: ; preds = %66
%79 = load i32, i32* %16
%80 = add nsw i32 %79, 1
store i32 %80, i32* %16
br label %61
81: ; preds = %61
%82 = load double*, double** %14
%83 = load i32, i32* %12
%84 = sext i32 %83 to i64
%85 = mul i64 %84, 8
%86 = trunc i64 %85 to i32
%87 = call i32 @memset(double* %82, double 0.000000e+00, i32 %86)
%88 = load double*, double** %14
%89 = load i32, i32* %12
%90 = sub nsw i32 %89, 1
%91 = load i32, i32* %12
%92 = mul nsw i32 %90, %91
%93 = sext i32 %92 to i64
%94 = getelementptr inbounds double, double* %88, i64 %93
%95 = load i32, i32* %12
%96 = sext i32 %95 to i64
%97 = mul i64 %96, 8
%98 = trunc i64 %97 to i32
%99 = call i32 @memset(double* %94, double 0.000000e+00, i32 %98)
%100 = load double*, double** %7
%101 = load double*, double** %8
%102 = load i32, i32* %12
%103 = call i32 @vec_subtract(double* %100, double* %101, i32 %102)
%104 = load double*, double** %7
%105 = load double*, double** %14
%106 = load i32, i32* %12
%107 = call i32 @vec_transpose_add(double* %104, double* %105, i32 %106)
store i32 1, i32* %17
br label %108
108: ; preds = %126, %81
%109 = load i32, i32* %17
%110 = load i32, i32* %12
%111 = sub nsw i32 %110, 1
%112 = icmp slt i32 %109, %111
br i1 %112, label %113, label %129
113: ; preds = %108
%114 = load double*, double** %7
%115 = load i32, i32* %17
%116 = load i32, i32* %12
%117 = mul nsw i32 %115, %116
%118 = sext i32 %117 to i64
%119 = getelementptr inbounds double, double* %114, i64 %118
%120 = load double, double* %10
%121 = fdiv double %120, 2.000000e+00
%122 = load double, double* %11
%123 = fdiv double %122, 2.000000e+00
%124 = load i32, i32* %12
%125 = call i32 @solve_tri_special(double* %119, double %121, double %123, i32 %124)
br label %126
126: ; preds = %113
%127 = load i32, i32* %17
%128 = add nsw i32 %127, 1
store i32 %128, i32* %17
br label %108
129: ; preds = %108
%130 = load double*, double** %13
%131 = load double*, double** %7
%132 = load i32, i32* %12
%133 = call i32 @transpose_cache(double* %130, double* %131, i32 %132)
%134 = load double*, double** %13
%135 = load double*, double** %14
%136 = load i32, i32* %12
%137 = call i32 @vec_subtract_half(double* %134, double* %135, i32 %136)
store i32 1, i32* %17
br label %138
138: ; preds = %156, %129
%139 = load i32, i32* %17
%140 = load i32, i32* %12
%141 = sub nsw i32 %140, 1
%142 = icmp slt i32 %139, %141
br i1 %142, label %143, label %159
143: ; preds = %138
%144 = load double*, double** %13
%145 = load i32, i32* %17
%146 = load i32, i32* %12
%147 = mul nsw i32 %145, %146
%148 = sext i32 %147 to i64
%149 = getelementptr inbounds double, double* %144, i64 %148
%150 = load double, double* %10
%151 = fdiv double %150, 2.000000e+00
%152 = load double, double* %11
%153 = fdiv double %152, 2.000000e+00
%154 = load i32, i32* %12
%155 = call i32 @solve_tri_special(double* %149, double %151, double %153, i32 %154)
br label %156
156: ; preds = %143
%157 = load i32, i32* %17
%158 = add nsw i32 %157, 1
store i32 %158, i32* %17
br label %138
159: ; preds = %138
%160 = load double*, double** %7
%161 = load double*, double** %13
%162 = load i32, i32* %12
%163 = call i32 @transpose_cache(double* %160, double* %161, i32 %162)
%164 = load double*, double** %13
%165 = call i32 @_mm_free(double* %164)
%166 = load double*, double** %14
%167 = call i32 @_mm_free(double* %166)
ret void
}

LLVM IR (-O2):
define void @relaxOperation(double* noalias %0, double* noalias %1, double* %2, double %3, double %4, i32 %5) {
%7 = shl i32 %5, 3
%8 = mul i32 %7, %5
%9 = tail call i64 @_mm_malloc(i32 %8, i32 64)
%10 = inttoptr i64 %9 to double*
%11 = tail call i64 @_mm_malloc(i32 %8, i32 64)
%12 = inttoptr i64 %11 to double*
%13 = tail call i32 @transpose_cache(double* %12, double* %0, i32 %5)
%14 = add i32 %5, -1
%15 = icmp sgt i32 %5, 2
br i1 %15, label %16, label %59
16: ; preds = %6
%17 = fmul double %3, 5.000000e-01
%18 = fmul double %4, 5.000000e-01
%19 = zext i32 %5 to i64
%20 = zext i32 %14 to i64
br label %25
21: ; preds = %25
br i1 %15, label %22, label %59
22: ; preds = %21
%23 = zext i32 %5 to i64
%24 = zext i32 %14 to i64
br label %45
25: ; preds = %16, %25
%26 = phi i64 [ 1, %16 ], [ %30, %25 ]
%27 = mul nsw i64 %26, %19
%28 = getelementptr inbounds double, double* %0, i64 %27
%29 = tail call i32 @apply_tri_special_plus(double* %28, double* %2, double %17, double %18, i32 %5)
%30 = add nuw nsw i64 %26, 1
%31 = icmp eq i64 %30, %20
br i1 %31, label %21, label %25
32: ; preds = %45
%33 = tail call i32 @memset(double* %12, double 0.000000e+00, i32 %7)
%34 = mul nsw i32 %14, %5
%35 = sext i32 %34 to i64
%36 = getelementptr inbounds double, double* %12, i64 %35
%37 = tail call i32 @memset(double* %36, double 0.000000e+00, i32 %7)
%38 = tail call i32 @vec_subtract(double* %0, double* %1, i32 %5)
%39 = tail call i32 @vec_transpose_add(double* %0, double* %12, i32 %5)
br i1 %15, label %40, label %82
40: ; preds = %32
%41 = fmul double %3, 5.000000e-01
%42 = fmul double %4, 5.000000e-01
%43 = zext i32 %5 to i64
%44 = zext i32 %14 to i64
br label %52
45: ; preds = %22, %45
%46 = phi i64 [ 1, %22 ], [ %50, %45 ]
%47 = mul nsw i64 %46, %23
%48 = getelementptr inbounds double, double* %12, i64 %47
%49 = tail call i32 @apply_tri_special(double* %48, double* %2, double %3, double %4, i32 %5)
%50 = add nuw nsw i64 %46, 1
%51 = icmp eq i64 %50, %24
br i1 %51, label %32, label %45
52: ; preds = %40, %52
%53 = phi i64 [ 1, %40 ], [ %57, %52 ]
%54 = mul nsw i64 %53, %43
%55 = getelementptr inbounds double, double* %0, i64 %54
%56 = tail call i32 @solve_tri_special(double* %55, double %41, double %42, i32 %5)
%57 = add nuw nsw i64 %53, 1
%58 = icmp eq i64 %57, %44
br i1 %58, label %67, label %52
59: ; preds = %21, %6
%60 = tail call i32 @memset(double* %12, double 0.000000e+00, i32 %7)
%61 = mul nsw i32 %14, %5
%62 = sext i32 %61 to i64
%63 = getelementptr inbounds double, double* %12, i64 %62
%64 = tail call i32 @memset(double* %63, double 0.000000e+00, i32 %7)
%65 = tail call i32 @vec_subtract(double* %0, double* %1, i32 %5)
%66 = tail call i32 @vec_transpose_add(double* %0, double* %12, i32 %5)
br label %67
67: ; preds = %52, %59
%68 = tail call i32 @transpose_cache(double* %10, double* %0, i32 %5)
%69 = tail call i32 @vec_subtract_half(double* %10, double* %12, i32 %5)
br i1 %15, label %70, label %85
70: ; preds = %67
%71 = fmul double %3, 5.000000e-01
%72 = fmul double %4, 5.000000e-01
%73 = zext i32 %5 to i64
%74 = zext i32 %14 to i64
br label %75
75: ; preds = %70, %75
%76 = phi i64 [ 1, %70 ], [ %80, %75 ]
%77 = mul nsw i64 %76, %73
%78 = getelementptr inbounds double, double* %10, i64 %77
%79 = tail call i32 @solve_tri_special(double* %78, double %71, double %72, i32 %5)
%80 = add nuw nsw i64 %76, 1
%81 = icmp eq i64 %80, %74
br i1 %81, label %85, label %75
82: ; preds = %32
%83 = tail call i32 @transpose_cache(double* %10, double* %0, i32 %5)
%84 = tail call i32 @vec_subtract_half(double* %10, double* %12, i32 %5)
br label %85
85: ; preds = %75, %82, %67
%86 = tail call i32 @transpose_cache(double* %0, double* %10, i32 %5)
%87 = tail call i32 @_mm_free(double* %10)
%88 = tail call i32 @_mm_free(double* %12)
ret void
}