void applyVankaFacesColor_CFP64_INT64(
    long long *rowptr, double _Complex *valA, long long *colA, long long *n,
    long long *nf, long long dim, double _Complex *x, double _Complex *b,
    float _Complex *D, long long numit, long long includePressure,
    long long blockSize, long long num_cells, long long VankaType) {
#pragma omp parallel shared(x, rowptr, valA, colA, n, nf, dim, b, D, numit)
  {
    int color;
    long long k, i, cellSizeInD;
    cellSizeInD =
        (VankaType == 1) ? blockSize * blockSize : (3 * (blockSize - 1) + 1);
    long long *Idxs = (long long *)malloc(blockSize * sizeof(long long));
    long long *i_vec = (long long *)malloc(dim * sizeof(long long));
    double _Complex *local_r =
        (double _Complex *)malloc(blockSize * sizeof(double _Complex));
    for (k = 0; k < numit; ++k) {
      for (color = 1; color <= 2; ++color) {
#pragma omp for
        for (i = 1; i <= num_cells; ++i) {
          cs2loc(i, n, dim, i_vec);
          if (cellColor(i_vec, dim) == color) {
            getVankaVariablesOfCell(i_vec, n, nf, Idxs, includePressure, dim);
            computeResidualAtIdx_CFP64_INT64(rowptr, valA, colA, b, x, Idxs,
                                             local_r, blockSize);
            if (VankaType == 1) {
              updateSolution_CFP64(D + (i - 1) * cellSizeInD, x, local_r,
                                   blockSize, Idxs);
            } else {
              updateSolutionEconomic_CFP64(D + (i - 1) * cellSizeInD, x,
                                           local_r, blockSize, Idxs);
            }
          }
        }
      }
    }
    free(Idxs);
    free(i_vec);
    free(local_r);
  }
  return;
}


x86 assembly (clang, -O0):
<applyVankaFacesColor_CFP64_INT64>:
push   %rbp
mov    %rsp,%rbp
sub    $0x80,%rsp
mov    0x48(%rbp),%rax
mov    0x40(%rbp),%rax
mov    0x38(%rbp),%rax
mov    0x30(%rbp),%rax
mov    0x28(%rbp),%rax
mov    0x20(%rbp),%rax
mov    0x18(%rbp),%rax
mov    0x10(%rbp),%rax
mov    %rdi,-0x8(%rbp)
mov    %rsi,-0x10(%rbp)
mov    %rdx,-0x18(%rbp)
mov    %rcx,-0x20(%rbp)
mov    %r8,-0x28(%rbp)
mov    %r9,-0x30(%rbp)
cmpq   $0x1,0x48(%rbp)
jne    11e0 <applyVankaFacesColor_CFP64_INT64+0x60>
mov    0x38(%rbp),%rax
imul   0x38(%rbp),%rax
mov    %rax,-0x70(%rbp)
jmp    11f4 <applyVankaFacesColor_CFP64_INT64+0x74>
mov    0x38(%rbp),%rax
sub    $0x1,%rax
imul   $0x3,%rax,%rax
add    $0x1,%rax
mov    %rax,-0x70(%rbp)
mov    -0x70(%rbp),%rax
mov    %rax,-0x50(%rbp)
mov    0x38(%rbp),%rdi
shl    $0x3,%rdi
call   1070 <malloc@plt>
mov    %rax,-0x58(%rbp)
mov    -0x30(%rbp),%rdi
shl    $0x3,%rdi
call   1070 <malloc@plt>
mov    %rax,-0x60(%rbp)
mov    0x38(%rbp),%rdi
shl    $0x4,%rdi
call   1070 <malloc@plt>
mov    %rax,-0x68(%rbp)
movq   $0x0,-0x40(%rbp)
mov    -0x40(%rbp),%rax
cmp    0x28(%rbp),%rax
jge    139c <applyVankaFacesColor_CFP64_INT64+0x21c>
movl   $0x1,-0x34(%rbp)
cmpl   $0x2,-0x34(%rbp)
jg     1386 <applyVankaFacesColor_CFP64_INT64+0x206>
movq   $0x1,-0x48(%rbp)
mov    -0x48(%rbp),%rax
cmp    0x40(%rbp),%rax
jg     1373 <applyVankaFacesColor_CFP64_INT64+0x1f3>
mov    -0x48(%rbp),%rdi
mov    -0x20(%rbp),%rsi
mov    -0x30(%rbp),%rdx
mov    -0x60(%rbp),%rcx
mov    $0x0,%al
call   1060 <cs2loc@plt>
mov    -0x60(%rbp),%rdi
mov    -0x30(%rbp),%rsi
mov    $0x0,%al
call   1080 <cellColor@plt>
cmp    -0x34(%rbp),%eax
jne    135d <applyVankaFacesColor_CFP64_INT64+0x1dd>
mov    -0x60(%rbp),%rdi
mov    -0x20(%rbp),%rsi
mov    -0x28(%rbp),%rdx
mov    -0x58(%rbp),%rcx
mov    0x30(%rbp),%r8
mov    -0x30(%rbp),%r9
mov    $0x0,%al
call   1090 <getVankaVariablesOfCell@plt>
mov    -0x8(%rbp),%rdi
mov    -0x10(%rbp),%rsi
mov    -0x18(%rbp),%rdx
mov    0x18(%rbp),%rcx
mov    0x10(%rbp),%r8
mov    -0x58(%rbp),%r9
mov    -0x68(%rbp),%r10
mov    0x38(%rbp),%rax
mov    %r10,(%rsp)
mov    %rax,0x8(%rsp)
mov    $0x0,%al
call   10a0 <computeResidualAtIdx_CFP64_INT64@plt>
cmpq   $0x1,0x48(%rbp)
jne    1329 <applyVankaFacesColor_CFP64_INT64+0x1a9>
mov    0x20(%rbp),%rdi
mov    -0x48(%rbp),%rax
sub    $0x1,%rax
imul   -0x50(%rbp),%rax
shl    $0x3,%rax
add    %rax,%rdi
mov    0x10(%rbp),%rsi
mov    -0x68(%rbp),%rdx
mov    0x38(%rbp),%rcx
mov    -0x58(%rbp),%r8
mov    $0x0,%al
call   1040 <updateSolution_CFP64@plt>
jmp    1358 <applyVankaFacesColor_CFP64_INT64+0x1d8>
mov    0x20(%rbp),%rdi
mov    -0x48(%rbp),%rax
sub    $0x1,%rax
imul   -0x50(%rbp),%rax
shl    $0x3,%rax
add    %rax,%rdi
mov    0x10(%rbp),%rsi
mov    -0x68(%rbp),%rdx
mov    0x38(%rbp),%rcx
mov    -0x58(%rbp),%r8
mov    $0x0,%al
call   1050 <updateSolutionEconomic_CFP64@plt>
jmp    135d <applyVankaFacesColor_CFP64_INT64+0x1dd>
jmp    1362 <applyVankaFacesColor_CFP64_INT64+0x1e2>
mov    -0x48(%rbp),%rax
add    $0x1,%rax
mov    %rax,-0x48(%rbp)
jmp    125e <applyVankaFacesColor_CFP64_INT64+0xde>
jmp    1378 <applyVankaFacesColor_CFP64_INT64+0x1f8>
mov    -0x34(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0x34(%rbp)
jmp    124c <applyVankaFacesColor_CFP64_INT64+0xcc>
jmp    138b <applyVankaFacesColor_CFP64_INT64+0x20b>
mov    -0x40(%rbp),%rax
add    $0x1,%rax
mov    %rax,-0x40(%rbp)
jmp    1237 <applyVankaFacesColor_CFP64_INT64+0xb7>
mov    -0x58(%rbp),%rdi
call   1030 <free@plt>
mov    -0x60(%rbp),%rdi
call   1030 <free@plt>
mov    -0x68(%rbp),%rdi
call   1030 <free@plt>
add    $0x80,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<applyVankaFacesColor_CFP64_INT64>:
push   %rbp
push   %r15
push   %r14
push   %r13
push   %r12
push   %rbx
sub    $0x98,%rsp
mov    %r9,%r15
mov    %r8,0x78(%rsp)
mov    %rcx,0x10(%rsp)
mov    %rdx,0x70(%rsp)
mov    %rsi,0x68(%rsp)
mov    %rdi,0x60(%rsp)
mov    0x108(%rsp),%rcx
mov    0x100(%rsp),%rax
mov    %rax,0x18(%rsp)
mov    0xf8(%rsp),%rbx
mov    0xf0(%rsp),%rax
mov    %rax,0x48(%rsp)
mov    0xe8(%rsp),%rbp
mov    0xe0(%rsp),%rax
mov    %rax,0x30(%rsp)
mov    0xd8(%rsp),%rax
mov    %rax,0x40(%rsp)
mov    %rbx,%rax
imul   %rbx,%rax
mov    %rcx,0x58(%rsp)
cmp    $0x1,%rcx
lea    -0x2(%rbx,%rbx,2),%rcx
cmove  %rax,%rcx
mov    %rcx,0x28(%rsp)
mov    0xd0(%rsp),%r14
lea    0x0(,%rbx,8),%rdi
call   1070 <malloc@plt>
mov    %rax,%r12
lea    0x0(,%r15,8),%rdi
call   1070 <malloc@plt>
mov    %rax,%r13
mov    %rbx,0x50(%rsp)
mov    %rbx,%rdi
shl    $0x4,%rdi
call   1070 <malloc@plt>
mov    %rax,0x20(%rsp)
mov    %rbp,0x88(%rsp)
test   %rbp,%rbp
jle    14cd <applyVankaFacesColor_CFP64_INT64+0x34d>
mov    0x18(%rsp),%rax
neg    %rax
mov    %rax,0x80(%rsp)
shlq   $0x3,0x28(%rsp)
xor    %eax,%eax
mov    %r15,0x8(%rsp)
mov    %r13,(%rsp)
mov    %r14,0x38(%rsp)
jmp    12aa <applyVankaFacesColor_CFP64_INT64+0x12a>
xchg   %ax,%ax
mov    0x90(%rsp),%rax
add    $0x1,%rax
cmp    0x88(%rsp),%rax
je     14cd <applyVankaFacesColor_CFP64_INT64+0x34d>
mov    %rax,0x90(%rsp)
cmpq   $0x0,0x18(%rsp)
jle    1290 <applyVankaFacesColor_CFP64_INT64+0x110>
mov    $0x1,%ebp
mov    0x30(%rsp),%r14
jmp    1314 <applyVankaFacesColor_CFP64_INT64+0x194>
cs nopw 0x0(%rax,%rax,1)
mov    %r14,%rdi
mov    %rbx,%rsi
mov    %r13,%rdx
mov    %r12,%rcx
mov    %r15,%r8
xor    %eax,%eax
call   1050 <updateSolutionEconomic_CFP64@plt>
mov    %r15,%r12
mov    0x8(%rsp),%r15
mov    (%rsp),%r13
mov    0x80(%rsp),%rax
add    %rbp,%rax
add    $0x1,%rax
add    $0x1,%rbp
add    0x28(%rsp),%r14
cmp    $0x1,%rax
je     13c0 <applyVankaFacesColor_CFP64_INT64+0x240>
mov    %rbp,%rdi
mov    0x10(%rsp),%rsi
mov    %r15,%rdx
mov    %r13,%rcx
xor    %eax,%eax
call   1060 <cs2loc@plt>
mov    %r13,%rdi
mov    %r15,%rsi
xor    %eax,%eax
call   1080 <cellColor@plt>
cmp    $0x1,%eax
jne    12f2 <applyVankaFacesColor_CFP64_INT64+0x172>
mov    %r13,%rdi
mov    0x10(%rsp),%rsi
mov    0x78(%rsp),%rdx
mov    %r12,%rcx
mov    0x48(%rsp),%r8
mov    %r15,%r9
xor    %eax,%eax
call   1090 <getVankaVariablesOfCell@plt>
mov    0x60(%rsp),%rdi
mov    0x68(%rsp),%rsi
mov    0x70(%rsp),%rdx
mov    0x40(%rsp),%rcx
mov    0x38(%rsp),%rbx
mov    %rbx,%r8
mov    %r12,%r9
xor    %eax,%eax
mov    %r12,%r15
mov    0x50(%rsp),%r12
push   %r12
mov    0x28(%rsp),%r13
push   %r13
call   10a0 <computeResidualAtIdx_CFP64_INT64@plt>
add    $0x10,%rsp
cmpq   $0x1,0x58(%rsp)
jne    12d0 <applyVankaFacesColor_CFP64_INT64+0x150>
mov    %r14,%rdi
mov    %rbx,%rsi
mov    %r13,%rdx
mov    %r12,%rcx
mov    %r15,%r8
xor    %eax,%eax
call   1040 <updateSolution_CFP64@plt>
jmp    12e6 <applyVankaFacesColor_CFP64_INT64+0x166>
nopl   0x0(%rax)
cmpq   $0x0,0x18(%rsp)
mov    0x38(%rsp),%r14
jle    1290 <applyVankaFacesColor_CFP64_INT64+0x110>
mov    $0x1,%ebp
mov    0x30(%rsp),%rbx
jmp    1427 <applyVankaFacesColor_CFP64_INT64+0x2a7>
nopl   (%rax)
mov    %rbx,%rdi
mov    %r12,%rsi
mov    %r13,%rdx
mov    %r14,%rcx
mov    %r15,%r8
xor    %eax,%eax
call   1040 <updateSolution_CFP64@plt>
mov    %r12,%r14
mov    %r15,%r12
mov    0x8(%rsp),%r15
mov    (%rsp),%r13
mov    0x80(%rsp),%rax
add    %rbp,%rax
add    $0x1,%rax
add    $0x1,%rbp
add    0x28(%rsp),%rbx
cmp    $0x1,%rax
je     1290 <applyVankaFacesColor_CFP64_INT64+0x110>
mov    %rbp,%rdi
mov    0x10(%rsp),%rsi
mov    %r15,%rdx
mov    %r13,%rcx
xor    %eax,%eax
call   1060 <cs2loc@plt>
mov    %r13,%rdi
mov    %r15,%rsi
xor    %eax,%eax
call   1080 <cellColor@plt>
cmp    $0x2,%eax
jne    1405 <applyVankaFacesColor_CFP64_INT64+0x285>
mov    %r13,%rdi
mov    0x10(%rsp),%rsi
mov    0x78(%rsp),%rdx
mov    %r12,%rcx
mov    0x48(%rsp),%r8
mov    %r15,%r9
xor    %eax,%eax
call   1090 <getVankaVariablesOfCell@plt>
mov    0x60(%rsp),%rdi
mov    0x68(%rsp),%rsi
mov    0x70(%rsp),%rdx
mov    0x40(%rsp),%rcx
mov    %r14,%r8
mov    %r12,%r9
xor    %eax,%eax
mov    %r12,%r15
mov    %r14,%r12
mov    0x50(%rsp),%r14
push   %r14
mov    0x28(%rsp),%r13
push   %r13
call   10a0 <computeResidualAtIdx_CFP64_INT64@plt>
add    $0x10,%rsp
cmpq   $0x1,0x58(%rsp)
je     13e0 <applyVankaFacesColor_CFP64_INT64+0x260>
mov    %rbx,%rdi
mov    %r12,%rsi
mov    %r13,%rdx
mov    %r14,%rcx
mov    %r15,%r8
xor    %eax,%eax
call   1050 <updateSolutionEconomic_CFP64@plt>
jmp    13f6 <applyVankaFacesColor_CFP64_INT64+0x276>
mov    %r12,%rdi
call   1030 <free@plt>
mov    %r13,%rdi
call   1030 <free@plt>
mov    0x20(%rsp),%rdi
add    $0x98,%rsp
pop    %rbx
pop    %r12
pop    %r13
pop    %r14
pop    %r15
pop    %rbp
jmp    1030 <free@plt>

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

LLVM IR (-O2):
define void @applyVankaFacesColor_CFP64_INT64(i64* %0, { double, double }* %1, i64* %2, i64* %3, i64* %4, i64 %5, { double, double }* %6, { double, double }* %7, { float, float }* %8, i64 %9, i64 %10, i64 %11, i64 %12, i64 %13) {
%15 = icmp eq i64 %13, 1
%16 = mul nsw i64 %11, %11
%17 = mul i64 %11, 3
%18 = add i64 %17, -2
%19 = select i1 %15, i64 %16, i64 %18
%20 = shl i64 %11, 3
%21 = tail call i8* @malloc(i64 %20)
%22 = bitcast i8* %21 to i64*
%23 = shl i64 %5, 3
%24 = tail call i8* @malloc(i64 %23)
%25 = bitcast i8* %24 to i64*
%26 = shl i64 %11, 4
%27 = tail call i8* @malloc(i64 %26)
%28 = bitcast i8* %27 to { double, double }*
%29 = icmp sgt i64 %9, 0
br i1 %29, label %30, label %74
30: ; preds = %14
%31 = icmp slt i64 %12, 1
br label %32
32: ; preds = %30, %71
%33 = phi i64 [ 0, %30 ], [ %72, %71 ]
br i1 %31, label %71, label %34
34: ; preds = %32, %49
%35 = phi i64 [ %50, %49 ], [ 1, %32 ]
%36 = tail call i32 (i64, i64*, i64, i64*, ...) bitcast (i32 (...)* @cs2loc to i32 (i64, i64*, i64, i64*, ...)*)(i64 %35, i64* %3, i64 %5, i64* %25)
%37 = tail call i32 (i64*, i64, ...) bitcast (i32 (...)* @cellColor to i32 (i64*, i64, ...)*)(i64* %25, i64 %5)
%38 = icmp eq i32 %37, 1
br i1 %38, label %39, label %49
39: ; preds = %34
%40 = tail call i32 (i64*, i64*, i64*, i64*, i64, i64, ...) bitcast (i32 (...)* @getVankaVariablesOfCell to i32 (i64*, i64*, i64*, i64*, i64, i64, ...)*)(i64* %25, i64* %3, i64* %4, i64* %22, i64 %10, i64 %5)
%41 = tail call i32 (i64*, { double, double }*, i64*, { double, double }*, { double, double }*, i64*, { double, double }*, i64, ...) bitcast (i32 (...)* @computeResidualAtIdx_CFP64_INT64 to i32 (i64*, { double, double }*, i64*, { double, double }*, { double, double }*, i64*, { double, double }*, i64, ...)*)(i64* %0, { double, double }* %1, i64* %2, { double, double }* %7, { double, double }* %6, i64* %22, { double, double }* %28, i64 %11)
%42 = add nsw i64 %35, -1
%43 = mul nsw i64 %42, %19
%44 = getelementptr inbounds { float, float }, { float, float }* %8, i64 %43
br i1 %15, label %45, label %47
45: ; preds = %39
%46 = tail call i32 ({ float, float }*, { double, double }*, { double, double }*, i64, i64*, ...) bitcast (i32 (...)* @updateSolution_CFP64 to i32 ({ float, float }*, { double, double }*, { double, double }*, i64, i64*, ...)*)({ float, float }* %44, { double, double }* %6, { double, double }* %28, i64 %11, i64* %22)
br label %49
47: ; preds = %39
%48 = tail call i32 ({ float, float }*, { double, double }*, { double, double }*, i64, i64*, ...) bitcast (i32 (...)* @updateSolutionEconomic_CFP64 to i32 ({ float, float }*, { double, double }*, { double, double }*, i64, i64*, ...)*)({ float, float }* %44, { double, double }* %6, { double, double }* %28, i64 %11, i64* %22)
br label %49
49: ; preds = %34, %47, %45
%50 = add nuw i64 %35, 1
%51 = icmp eq i64 %35, %12
br i1 %51, label %52, label %34
52: ; preds = %49
br i1 %31, label %71, label %53
53: ; preds = %52, %68
%54 = phi i64 [ %69, %68 ], [ 1, %52 ]
%55 = tail call i32 (i64, i64*, i64, i64*, ...) bitcast (i32 (...)* @cs2loc to i32 (i64, i64*, i64, i64*, ...)*)(i64 %54, i64* %3, i64 %5, i64* %25)
%56 = tail call i32 (i64*, i64, ...) bitcast (i32 (...)* @cellColor to i32 (i64*, i64, ...)*)(i64* %25, i64 %5)
%57 = icmp eq i32 %56, 2
br i1 %57, label %58, label %68
58: ; preds = %53
%59 = tail call i32 (i64*, i64*, i64*, i64*, i64, i64, ...) bitcast (i32 (...)* @getVankaVariablesOfCell to i32 (i64*, i64*, i64*, i64*, i64, i64, ...)*)(i64* %25, i64* %3, i64* %4, i64* %22, i64 %10, i64 %5)
%60 = tail call i32 (i64*, { double, double }*, i64*, { double, double }*, { double, double }*, i64*, { double, double }*, i64, ...) bitcast (i32 (...)* @computeResidualAtIdx_CFP64_INT64 to i32 (i64*, { double, double }*, i64*, { double, double }*, { double, double }*, i64*, { double, double }*, i64, ...)*)(i64* %0, { double, double }* %1, i64* %2, { double, double }* %7, { double, double }* %6, i64* %22, { double, double }* %28, i64 %11)
%61 = add nsw i64 %54, -1
%62 = mul nsw i64 %61, %19
%63 = getelementptr inbounds { float, float }, { float, float }* %8, i64 %62
br i1 %15, label %66, label %64
64: ; preds = %58
%65 = tail call i32 ({ float, float }*, { double, double }*, { double, double }*, i64, i64*, ...) bitcast (i32 (...)* @updateSolutionEconomic_CFP64 to i32 ({ float, float }*, { double, double }*, { double, double }*, i64, i64*, ...)*)({ float, float }* %63, { double, double }* %6, { double, double }* %28, i64 %11, i64* %22)
br label %68
66: ; preds = %58
%67 = tail call i32 ({ float, float }*, { double, double }*, { double, double }*, i64, i64*, ...) bitcast (i32 (...)* @updateSolution_CFP64 to i32 ({ float, float }*, { double, double }*, { double, double }*, i64, i64*, ...)*)({ float, float }* %63, { double, double }* %6, { double, double }* %28, i64 %11, i64* %22)
br label %68
68: ; preds = %66, %64, %53
%69 = add nuw i64 %54, 1
%70 = icmp eq i64 %54, %12
br i1 %70, label %71, label %53
71: ; preds = %68, %32, %52
%72 = add nuw nsw i64 %33, 1
%73 = icmp eq i64 %72, %9
br i1 %73, label %74, label %32
74: ; preds = %71, %14
tail call void @free(i8* %21)
tail call void @free(i8* %24)
tail call void @free(i8* %27)
ret void
}