void assign(struct vtx_data **graph, double **yvecs, int nvtxs, int ndims,
            int cube_or_mesh, int nsets, double *wsqrt, int *sets, int *active,
            int mediantype, double *goal, int vwgt_max) {
  extern int DEBUG_TRACE;
  extern int DEBUG_ASSIGN;
  double theta, phi, gamma;
  double temp;
  int using_vwgts;
  double tri_prod();
  double opt2d();
  void y2x(), mapper(), rotate2d(), opt3d(), rotate3d();
  if (DEBUG_TRACE > 0) {
    printf("<Entering assign, nvtxs = %d, ndims = %d>\n", nvtxs, ndims);
  }
  using_vwgts = (vwgt_max != 1);
  if (ndims == 1) {
    y2x(yvecs, ndims, nvtxs, wsqrt);
    mapper(graph, yvecs, nvtxs, active, sets, ndims, cube_or_mesh, nsets,
           mediantype, goal, vwgt_max);
  } else if (ndims == 2) {
    theta = opt2d(graph, yvecs, nvtxs, nvtxs);
    rotate2d(yvecs, nvtxs, theta);
    y2x(yvecs, ndims, nvtxs, wsqrt);
    mapper(graph, yvecs, nvtxs, active, sets, ndims, cube_or_mesh, nsets,
           mediantype, goal, vwgt_max);
  } else if (ndims == 3) {
    if (DEBUG_ASSIGN > 0) {
      temp = tri_prod(yvecs[1], yvecs[2], yvecs[3], wsqrt, nvtxs);
      printf("Before rotation, 3-way orthogonality = %e\n", temp);
    }
    opt3d(graph, yvecs, nvtxs, nvtxs, wsqrt, &theta, &phi, &gamma, using_vwgts);
    rotate3d(yvecs, nvtxs, theta, phi, gamma);
    if (DEBUG_ASSIGN > 0) {
      temp = tri_prod(yvecs[1], yvecs[2], yvecs[3], wsqrt, nvtxs);
      printf("After rotation (%f,%f,%f), 3-way orthogonality = %e\n", theta,
             phi, gamma, temp);
    }
    y2x(yvecs, ndims, nvtxs, wsqrt);
    mapper(graph, yvecs, nvtxs, active, sets, ndims, cube_or_mesh, nsets,
           mediantype, goal, vwgt_max);
  }
}


x86 assembly (clang, -O0):
<assign>:
push   %rbp
mov    %rsp,%rbp
push   %r14
push   %rbx
sub    $0x70,%rsp
mov    0x38(%rbp),%eax
mov    0x30(%rbp),%rax
mov    0x28(%rbp),%eax
mov    0x20(%rbp),%rax
mov    0x18(%rbp),%rax
mov    0x10(%rbp),%rax
mov    %rdi,-0x18(%rbp)
mov    %rsi,-0x20(%rbp)
mov    %edx,-0x24(%rbp)
mov    %ecx,-0x28(%rbp)
mov    %r8d,-0x2c(%rbp)
mov    %r9d,-0x30(%rbp)
mov    0x2e12(%rip),%rax
cmpl   $0x0,(%rax)
jle    11db <assign+0x5b>
mov    -0x24(%rbp),%esi
mov    -0x28(%rbp),%edx
lea    0xe2c(%rip),%rdi
mov    $0x0,%al
call   1040 <printf@plt>
cmpl   $0x1,0x38(%rbp)
setne  %al
and    $0x1,%al
movzbl %al,%eax
mov    %eax,-0x54(%rbp)
cmpl   $0x1,-0x28(%rbp)
jne    1254 <assign+0xd4>
mov    -0x20(%rbp),%rdi
mov    -0x28(%rbp),%esi
mov    -0x24(%rbp),%edx
mov    0x10(%rbp),%rcx
mov    $0x0,%al
call   1070 <y2x@plt>
mov    -0x18(%rbp),%rdi
mov    -0x20(%rbp),%rsi
mov    -0x24(%rbp),%edx
mov    0x20(%rbp),%rcx
mov    0x18(%rbp),%r8
mov    -0x28(%rbp),%r9d
mov    -0x2c(%rbp),%r14d
mov    -0x30(%rbp),%ebx
mov    0x28(%rbp),%r11d
mov    0x30(%rbp),%r10
mov    0x38(%rbp),%eax
mov    %r14d,(%rsp)
mov    %ebx,0x8(%rsp)
mov    %r11d,0x10(%rsp)
mov    %r10,0x18(%rsp)
mov    %eax,0x20(%rsp)
mov    $0x0,%al
call   1060 <mapper@plt>
jmp    1459 <assign+0x2d9>
cmpl   $0x2,-0x28(%rbp)
jne    12eb <assign+0x16b>
mov    -0x18(%rbp),%rdi
mov    -0x20(%rbp),%rsi
mov    -0x24(%rbp),%edx
mov    -0x24(%rbp),%ecx
mov    $0x0,%al
call   10a0 <opt2d@plt>
movsd  %xmm0,-0x38(%rbp)
mov    -0x20(%rbp),%rdi
mov    -0x24(%rbp),%esi
movsd  -0x38(%rbp),%xmm0
mov    $0x1,%al
call   1080 <rotate2d@plt>
mov    -0x20(%rbp),%rdi
mov    -0x28(%rbp),%esi
mov    -0x24(%rbp),%edx
mov    0x10(%rbp),%rcx
mov    $0x0,%al
call   1070 <y2x@plt>
mov    -0x18(%rbp),%rdi
mov    -0x20(%rbp),%rsi
mov    -0x24(%rbp),%edx
mov    0x20(%rbp),%rcx
mov    0x18(%rbp),%r8
mov    -0x28(%rbp),%r9d
mov    -0x2c(%rbp),%r14d
mov    -0x30(%rbp),%ebx
mov    0x28(%rbp),%r11d
mov    0x30(%rbp),%r10
mov    0x38(%rbp),%eax
mov    %r14d,(%rsp)
mov    %ebx,0x8(%rsp)
mov    %r11d,0x10(%rsp)
mov    %r10,0x18(%rsp)
mov    %eax,0x20(%rsp)
mov    $0x0,%al
call   1060 <mapper@plt>
jmp    1454 <assign+0x2d4>
cmpl   $0x3,-0x28(%rbp)
jne    144f <assign+0x2cf>
mov    0x2ce4(%rip),%rax
cmpl   $0x0,(%rax)
jle    1344 <assign+0x1c4>
mov    -0x20(%rbp),%rax
mov    0x8(%rax),%rdi
mov    -0x20(%rbp),%rax
mov    0x10(%rax),%rsi
mov    -0x20(%rbp),%rax
mov    0x18(%rax),%rdx
mov    0x10(%rbp),%rcx
mov    -0x24(%rbp),%r8d
mov    $0x0,%al
call   1050 <tri_prod@plt>
movsd  %xmm0,-0x50(%rbp)
movsd  -0x50(%rbp),%xmm0
lea    0xcee(%rip),%rdi
mov    $0x1,%al
call   1040 <printf@plt>
mov    -0x18(%rbp),%rdi
mov    -0x20(%rbp),%rsi
mov    -0x24(%rbp),%edx
mov    -0x24(%rbp),%ecx
mov    0x10(%rbp),%r8
mov    -0x54(%rbp),%eax
lea    -0x38(%rbp),%r9
lea    -0x40(%rbp),%r11
lea    -0x48(%rbp),%r10
mov    %r11,(%rsp)
mov    %r10,0x8(%rsp)
mov    %eax,0x10(%rsp)
mov    $0x0,%al
call   1090 <opt3d@plt>
mov    -0x20(%rbp),%rdi
mov    -0x24(%rbp),%esi
movsd  -0x38(%rbp),%xmm0
movsd  -0x40(%rbp),%xmm1
movsd  -0x48(%rbp),%xmm2
mov    $0x3,%al
call   1030 <rotate3d@plt>
mov    0x2c43(%rip),%rax
cmpl   $0x0,(%rax)
jle    13f4 <assign+0x274>
mov    -0x20(%rbp),%rax
mov    0x8(%rax),%rdi
mov    -0x20(%rbp),%rax
mov    0x10(%rax),%rsi
mov    -0x20(%rbp),%rax
mov    0x18(%rax),%rdx
mov    0x10(%rbp),%rcx
mov    -0x24(%rbp),%r8d
mov    $0x0,%al
call   1050 <tri_prod@plt>
movsd  %xmm0,-0x50(%rbp)
movsd  -0x38(%rbp),%xmm0
movsd  -0x40(%rbp),%xmm1
movsd  -0x48(%rbp),%xmm2
movsd  -0x50(%rbp),%xmm3
lea    0xc69(%rip),%rdi
mov    $0x4,%al
call   1040 <printf@plt>
mov    -0x20(%rbp),%rdi
mov    -0x28(%rbp),%esi
mov    -0x24(%rbp),%edx
mov    0x10(%rbp),%rcx
mov    $0x0,%al
call   1070 <y2x@plt>
mov    -0x18(%rbp),%rdi
mov    -0x20(%rbp),%rsi
mov    -0x24(%rbp),%edx
mov    0x20(%rbp),%rcx
mov    0x18(%rbp),%r8
mov    -0x28(%rbp),%r9d
mov    -0x2c(%rbp),%r14d
mov    -0x30(%rbp),%ebx
mov    0x28(%rbp),%r11d
mov    0x30(%rbp),%r10
mov    0x38(%rbp),%eax
mov    %r14d,(%rsp)
mov    %ebx,0x8(%rsp)
mov    %r11d,0x10(%rsp)
mov    %r10,0x18(%rsp)
mov    %eax,0x20(%rsp)
mov    $0x0,%al
call   1060 <mapper@plt>
jmp    1454 <assign+0x2d4>
jmp    1459 <assign+0x2d9>
add    $0x70,%rsp
pop    %rbx
pop    %r14
pop    %rbp
ret

x86 assembly (clang, -O2):
<assign>:
push   %rbp
push   %r15
push   %r14
push   %r13
push   %r12
push   %rbx
sub    $0x38,%rsp
mov    %r9,0x8(%rsp)
mov    %r8,0x18(%rsp)
mov    %ecx,%r14d
mov    %edx,%r12d
mov    %rsi,%r15
mov    %rdi,0x10(%rsp)
mov    0x98(%rsp),%ecx
mov    0x2e1c(%rip),%rax
cmpl   $0x0,(%rax)
jle    11d3 <assign+0x53>
lea    0xe40(%rip),%rdi
mov    %r12d,%esi
mov    %r14d,%edx
xor    %eax,%eax
mov    %rcx,%rbp
call   1040 <printf@plt>
mov    %rbp,%rcx
mov    0x88(%rsp),%r8d
mov    0x78(%rsp),%rbp
mov    0x70(%rsp),%rbx
xor    %r13d,%r13d
cmp    $0x1,%ecx
setne  %al
cmp    $0x3,%r14d
je     1257 <assign+0xd7>
cmp    $0x2,%r14d
je     1397 <assign+0x217>
cmp    $0x1,%r14d
jne    138e <assign+0x20e>
mov    %r15,%rdi
mov    $0x1,%esi
mov    %r12d,%edx
mov    %rcx,%r13
mov    %rbx,%rcx
xor    %eax,%eax
call   1070 <y2x@plt>
sub    $0x8,%rsp
mov    0x18(%rsp),%rdi
mov    %r15,%rsi
mov    %r12d,%edx
mov    0x88(%rsp),%rcx
mov    %rbp,%r8
mov    $0x1,%r9d
xor    %eax,%eax
push   %r13
push   0xa0(%rsp)
mov    0xa0(%rsp),%ebp
jmp    1405 <assign+0x285>
mov    %al,%r13b
mov    0x2d7f(%rip),%rax
cmpl   $0x0,(%rax)
jle    128d <assign+0x10d>
mov    0x8(%r15),%rdi
mov    0x10(%r15),%rsi
mov    0x18(%r15),%rdx
mov    %rbx,%rcx
mov    %r12d,%r8d
xor    %eax,%eax
call   1050 <tri_prod@plt>
lea    0xda5(%rip),%rdi
mov    $0x1,%al
call   1040 <printf@plt>
sub    $0x8,%rsp
lea    0x28(%rsp),%r10
lea    0x30(%rsp),%r11
lea    0x38(%rsp),%r9
mov    0x18(%rsp),%rbp
mov    %rbp,%rdi
mov    %r15,%rsi
mov    %r12d,%edx
mov    %r12d,%ecx
mov    %rbx,%r8
xor    %eax,%eax
push   %r13
push   %r10
push   %r11
call   1090 <opt3d@plt>
add    $0x20,%rsp
movsd  0x30(%rsp),%xmm0
movsd  0x28(%rsp),%xmm1
movsd  0x20(%rsp),%xmm2
mov    %r15,%rdi
mov    %r12d,%esi
mov    $0x3,%al
call   1030 <rotate3d@plt>
mov    0x2cf5(%rip),%rax
cmpl   $0x0,(%rax)
jle    132c <assign+0x1ac>
mov    0x8(%r15),%rdi
mov    0x10(%r15),%rsi
mov    0x18(%r15),%rdx
mov    %rbx,%rcx
mov    %r12d,%r8d
xor    %eax,%eax
call   1050 <tri_prod@plt>
movaps %xmm0,%xmm3
movsd  0x30(%rsp),%xmm0
movsd  0x28(%rsp),%xmm1
movsd  0x20(%rsp),%xmm2
lea    0xd31(%rip),%rdi
mov    $0x4,%al
call   1040 <printf@plt>
mov    %r15,%rdi
mov    $0x3,%esi
mov    %r12d,%edx
mov    %rbx,%rcx
xor    %eax,%eax
call   1070 <y2x@plt>
sub    $0x8,%rsp
mov    %rbp,%rdi
mov    %r15,%rsi
mov    %r12d,%edx
mov    0x88(%rsp),%rcx
mov    0x80(%rsp),%r8
mov    $0x3,%r9d
xor    %eax,%eax
mov    0xa0(%rsp),%ebp
push   %rbp
push   0xa0(%rsp)
mov    0xa0(%rsp),%ebp
push   %rbp
push   0x28(%rsp)
push   0x40(%rsp)
call   1060 <mapper@plt>
add    $0x30,%rsp
add    $0x38,%rsp
jmp    1417 <assign+0x297>
mov    0x10(%rsp),%r13
mov    %r13,%rdi
mov    %r15,%rsi
mov    %r12d,%edx
mov    %rcx,%r14
mov    %r12d,%ecx
xor    %eax,%eax
mov    %r8,%rbp
call   10a0 <opt2d@plt>
mov    %r15,%rdi
mov    %r12d,%esi
mov    $0x1,%al
call   1080 <rotate2d@plt>
mov    %r15,%rdi
mov    $0x2,%esi
mov    %r12d,%edx
mov    %rbx,%rcx
xor    %eax,%eax
call   1070 <y2x@plt>
sub    $0x8,%rsp
mov    %r13,%rdi
mov    %r15,%rsi
mov    %r12d,%edx
mov    0x88(%rsp),%rcx
mov    0x80(%rsp),%r8
mov    $0x2,%r9d
xor    %eax,%eax
push   %r14
push   0xa0(%rsp)
push   %rbp
push   0x28(%rsp)
push   0x40(%rsp)
call   1060 <mapper@plt>
add    $0x68,%rsp
pop    %rbx
pop    %r12
pop    %r13
pop    %r14
pop    %r15
pop    %rbp
ret

LLVM IR (-O0):
%struct.vtx_data = type opaque
@DEBUG_TRACE = external global i32
@.str = [43 x i8] c"<Entering assign, nvtxs = %d, ndims = %d>\0A\00"
@DEBUG_ASSIGN = external global i32
@.str.1 = [43 x i8] c"Before rotation, 3-way orthogonality = %e\0A\00"
@.str.2 = [53 x i8] c"After rotation (%f,%f,%f), 3-way orthogonality = %e\0A\00"
define void @assign(%struct.vtx_data** %0, double** %1, i32 %2, i32 %3, i32 %4, i32 %5, double* %6, i32* %7, i32* %8, i32 %9, double* %10, i32 %11) {
%13 = alloca %struct.vtx_data**
%14 = alloca double**
%15 = alloca i32
%16 = alloca i32
%17 = alloca i32
%18 = alloca i32
%19 = alloca double*
%20 = alloca i32*
%21 = alloca i32*
%22 = alloca i32
%23 = alloca double*
%24 = alloca i32
%25 = alloca double
%26 = alloca double
%27 = alloca double
%28 = alloca double
%29 = alloca i32
store %struct.vtx_data** %0, %struct.vtx_data*** %13
store double** %1, double*** %14
store i32 %2, i32* %15
store i32 %3, i32* %16
store i32 %4, i32* %17
store i32 %5, i32* %18
store double* %6, double** %19
store i32* %7, i32** %20
store i32* %8, i32** %21
store i32 %9, i32* %22
store double* %10, double** %23
store i32 %11, i32* %24
%30 = load i32, i32* @DEBUG_TRACE
%31 = icmp sgt i32 %30, 0
br i1 %31, label %32, label %36
32: ; preds = %12
%33 = load i32, i32* %15
%34 = load i32, i32* %16
%35 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([43 x i8], [43 x i8]* @.str, i64 0, i64 0), i32 %33, i32 %34)
br label %36
36: ; preds = %32, %12
%37 = load i32, i32* %24
%38 = icmp ne i32 %37, 1
%39 = zext i1 %38 to i32
store i32 %39, i32* %29
%40 = load i32, i32* %16
%41 = icmp eq i32 %40, 1
br i1 %41, label %42, label %58
42: ; preds = %36
%43 = load double**, double*** %14
%44 = load i32, i32* %16
%45 = load i32, i32* %15
%46 = load double*, double** %19
%47 = load %struct.vtx_data**, %struct.vtx_data*** %13
%48 = load double**, double*** %14
%49 = load i32, i32* %15
%50 = load i32*, i32** %21
%51 = load i32*, i32** %20
%52 = load i32, i32* %16
%53 = load i32, i32* %17
%54 = load i32, i32* %18
%55 = load i32, i32* %22
%56 = load double*, double** %23
%57 = load i32, i32* %24
br label %156
58: ; preds = %36
%59 = load i32, i32* %16
%60 = icmp eq i32 %59, 2
br i1 %60, label %61, label %85
61: ; preds = %58
%62 = load %struct.vtx_data**, %struct.vtx_data*** %13
%63 = load double**, double*** %14
%64 = load i32, i32* %15
%65 = load i32, i32* %15
%66 = call double (%struct.vtx_data**, double**, i32, i32, ...) bitcast (double (...)* @opt2d to double (%struct.vtx_data**, double**, i32, i32, ...)*)(%struct.vtx_data** %62, double** %63, i32 %64, i32 %65)
store double %66, double* %25
%67 = load double**, double*** %14
%68 = load i32, i32* %15
%69 = load double, double* %25
%70 = load double**, double*** %14
%71 = load i32, i32* %16
%72 = load i32, i32* %15
%73 = load double*, double** %19
%74 = load %struct.vtx_data**, %struct.vtx_data*** %13
%75 = load double**, double*** %14
%76 = load i32, i32* %15
%77 = load i32*, i32** %21
%78 = load i32*, i32** %20
%79 = load i32, i32* %16
%80 = load i32, i32* %17
%81 = load i32, i32* %18
%82 = load i32, i32* %22
%83 = load double*, double** %23
%84 = load i32, i32* %24
br label %155
85: ; preds = %58
%86 = load i32, i32* %16
%87 = icmp eq i32 %86, 3
br i1 %87, label %88, label %154
88: ; preds = %85
%89 = load i32, i32* @DEBUG_ASSIGN
%90 = icmp sgt i32 %89, 0
br i1 %90, label %91, label %106
91: ; preds = %88
%92 = load double**, double*** %14
%93 = getelementptr inbounds double*, double** %92, i64 1
%94 = load double*, double** %93
%95 = load double**, double*** %14
%96 = getelementptr inbounds double*, double** %95, i64 2
%97 = load double*, double** %96
%98 = load double**, double*** %14
%99 = getelementptr inbounds double*, double** %98, i64 3
%100 = load double*, double** %99
%101 = load double*, double** %19
%102 = load i32, i32* %15
%103 = call double (double*, double*, double*, double*, i32, ...) bitcast (double (...)* @tri_prod to double (double*, double*, double*, double*, i32, ...)*)(double* %94, double* %97, double* %100, double* %101, i32 %102)
store double %103, double* %28
%104 = load double, double* %28
%105 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([43 x i8], [43 x i8]* @.str.1, i64 0, i64 0), double %104)
br label %106
106: ; preds = %91, %88
%107 = load %struct.vtx_data**, %struct.vtx_data*** %13
%108 = load double**, double*** %14
%109 = load i32, i32* %15
%110 = load i32, i32* %15
%111 = load double*, double** %19
%112 = load i32, i32* %29
%113 = load double**, double*** %14
%114 = load i32, i32* %15
%115 = load double, double* %25
%116 = load double, double* %26
%117 = load double, double* %27
%118 = load i32, i32* @DEBUG_ASSIGN
%119 = icmp sgt i32 %118, 0
br i1 %119, label %120, label %138
120: ; preds = %106
%121 = load double**, double*** %14
%122 = getelementptr inbounds double*, double** %121, i64 1
%123 = load double*, double** %122
%124 = load double**, double*** %14
%125 = getelementptr inbounds double*, double** %124, i64 2
%126 = load double*, double** %125
%127 = load double**, double*** %14
%128 = getelementptr inbounds double*, double** %127, i64 3
%129 = load double*, double** %128
%130 = load double*, double** %19
%131 = load i32, i32* %15
%132 = call double (double*, double*, double*, double*, i32, ...) bitcast (double (...)* @tri_prod to double (double*, double*, double*, double*, i32, ...)*)(double* %123, double* %126, double* %129, double* %130, i32 %131)
store double %132, double* %28
%133 = load double, double* %25
%134 = load double, double* %26
%135 = load double, double* %27
%136 = load double, double* %28
%137 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([53 x i8], [53 x i8]* @.str.2, i64 0, i64 0), double %133, double %134, double %135, double %136)
br label %138
138: ; preds = %120, %106
%139 = load double**, double*** %14
%140 = load i32, i32* %16
%141 = load i32, i32* %15
%142 = load double*, double** %19
%143 = load %struct.vtx_data**, %struct.vtx_data*** %13
%144 = load double**, double*** %14
%145 = load i32, i32* %15
%146 = load i32*, i32** %21
%147 = load i32*, i32** %20
%148 = load i32, i32* %16
%149 = load i32, i32* %17
%150 = load i32, i32* %18
%151 = load i32, i32* %22
%152 = load double*, double** %23
%153 = load i32, i32* %24
br label %154
154: ; preds = %138, %85
br label %155
155: ; preds = %154, %61
br label %156
156: ; preds = %155, %42
ret void
}

LLVM IR (-O2):
%struct.vtx_data = type opaque
@DEBUG_TRACE = external global i32
@.str = [43 x i8] c"<Entering assign, nvtxs = %d, ndims = %d>\0A\00"
@DEBUG_ASSIGN = external global i32
@.str.1 = [43 x i8] c"Before rotation, 3-way orthogonality = %e\0A\00"
@.str.2 = [53 x i8] c"After rotation (%f,%f,%f), 3-way orthogonality = %e\0A\00"
define void @assign(%struct.vtx_data** %0, double** %1, i32 %2, i32 %3, i32 %4, i32 %5, double* %6, i32* %7, i32* %8, i32 %9, double* %10, i32 %11) {
%13 = alloca double
%14 = alloca double
%15 = alloca double
%16 = bitcast double* %13 to i8*
%17 = bitcast double* %14 to i8*
%18 = bitcast double* %15 to i8*
%19 = load i32, i32* @DEBUG_TRACE
%20 = icmp sgt i32 %19, 0
br i1 %20, label %21, label %23
21: ; preds = %12
%22 = tail call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([43 x i8], [43 x i8]* @.str, i64 0, i64 0), i32 %2, i32 %3)
br label %23
23: ; preds = %21, %12
%24 = icmp ne i32 %11, 1
%25 = zext i1 %24 to i32
switch i32 %3, label %60 [
i32 1, label %26
i32 2, label %27
i32 3, label %29
]
26: ; preds = %23
tail call void (double**, i32, i32, double*, ...) bitcast (void (...)* @y2x to void (double**, i32, i32, double*, ...)*)(double** %1, i32 1, i32 %2, double* %6)
tail call void (%struct.vtx_data**, double**, i32, i32*, i32*, i32, i32, i32, i32, double*, i32, ...) bitcast (void (...)* @mapper to void (%struct.vtx_data**, double**, i32, i32*, i32*, i32, i32, i32, i32, double*, i32, ...)*)(%struct.vtx_data** %0, double** %1, i32 %2, i32* %8, i32* %7, i32 1, i32 %4, i32 %5, i32 %9, double* %10, i32 %11)
br label %60
27: ; preds = %23
%28 = tail call double (%struct.vtx_data**, double**, i32, i32, ...) bitcast (double (...)* @opt2d to double (%struct.vtx_data**, double**, i32, i32, ...)*)(%struct.vtx_data** %0, double** %1, i32 %2, i32 %2)
tail call void (double**, i32, double, ...) bitcast (void (...)* @rotate2d to void (double**, i32, double, ...)*)(double** %1, i32 %2, double %28)
tail call void (double**, i32, i32, double*, ...) bitcast (void (...)* @y2x to void (double**, i32, i32, double*, ...)*)(double** %1, i32 2, i32 %2, double* %6)
tail call void (%struct.vtx_data**, double**, i32, i32*, i32*, i32, i32, i32, i32, double*, i32, ...) bitcast (void (...)* @mapper to void (%struct.vtx_data**, double**, i32, i32*, i32*, i32, i32, i32, i32, double*, i32, ...)*)(%struct.vtx_data** %0, double** %1, i32 %2, i32* %8, i32* %7, i32 2, i32 %4, i32 %5, i32 %9, double* %10, i32 %11)
br label %60
29: ; preds = %23
%30 = load i32, i32* @DEBUG_ASSIGN
%31 = icmp sgt i32 %30, 0
br i1 %31, label %32, label %41
32: ; preds = %29
%33 = getelementptr inbounds double*, double** %1, i64 1
%34 = load double*, double** %33
%35 = getelementptr inbounds double*, double** %1, i64 2
%36 = load double*, double** %35
%37 = getelementptr inbounds double*, double** %1, i64 3
%38 = load double*, double** %37
%39 = tail call double (double*, double*, double*, double*, i32, ...) bitcast (double (...)* @tri_prod to double (double*, double*, double*, double*, i32, ...)*)(double* %34, double* %36, double* %38, double* %6, i32 %2)
%40 = tail call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([43 x i8], [43 x i8]* @.str.1, i64 0, i64 0), double %39)
br label %41
41: ; preds = %32, %29
%42 = load double, double* %13
%43 = load double, double* %14
%44 = load double, double* %15
%45 = load i32, i32* @DEBUG_ASSIGN
%46 = icmp sgt i32 %45, 0
br i1 %46, label %47, label %59
47: ; preds = %41
%48 = getelementptr inbounds double*, double** %1, i64 1
%49 = load double*, double** %48
%50 = getelementptr inbounds double*, double** %1, i64 2
%51 = load double*, double** %50
%52 = getelementptr inbounds double*, double** %1, i64 3
%53 = load double*, double** %52
%54 = call double (double*, double*, double*, double*, i32, ...) bitcast (double (...)* @tri_prod to double (double*, double*, double*, double*, i32, ...)*)(double* %49, double* %51, double* %53, double* %6, i32 %2)
%55 = load double, double* %13
%56 = load double, double* %14
%57 = load double, double* %15
%58 = call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([53 x i8], [53 x i8]* @.str.2, i64 0, i64 0), double %55, double %56, double %57, double %54)
br label %59
59: ; preds = %47, %41
br label %60
60: ; preds = %23, %27, %59, %26
ret void
}