#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*/ exit(int);
int /*<<< orphan*/ fprintf(int /*<<< orphan*/, char *);
int /*<<< orphan*/ free(double *);
scalar_t__ malloc(int);
int /*<<< orphan*/ stderr;
void trans_mat_ext2ext(int np, double *mat) {
  static double t[121] = {
      1.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 1.0, 0.0,
      0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 1.0, 0.0, 0.0, 0.0,
      0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 1.0, 0.0, 0.0, 0.0, 0.0, 0.0,
      0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 1.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0,
      0.0, 0.0, 0.0, 0.0, 1.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0,
      0.0, 0.0, 2.0, 0.0, 0.0, 0.0, 1.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0,
      2.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 2.0, 0.0,
      0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 2.0, 0.0, 0.0, 0.0,
      0.0, 0.0, 0.0, 0.0, 1.0, 0.0, 0.0, 0.0, 2.0};
  int i, ii, i11, i0;
  int j, jj, j11, j0;
  int k;
  int n = np * 11;
  double *tmp = (double *)malloc(sizeof(double) * n * n);
  if (tmp == NULL) {
    fprintf(stderr, "trans_mat_ext2ext"
                    " : malloc error for "
                    "tmp"
                    "\n");
    exit(1);
  };
  for (i = 0; i < np; ++i) {
    i11 = i * 11;
    for (j = 0; j < np; ++j) {
      j11 = j * 11;
      for (ii = 0; ii < 11; ++ii) {
        i0 = i11 + ii;
        for (jj = 0; jj < 11; ++jj) {
          j0 = j11 + jj;
          tmp[i0 * n + j0] = 0.0;
          for (k = 0; k < 11; k++) {
            tmp[i0 * n + j0] += mat[i0 * n + j11 + k] * t[k * 11 + jj];
          }
        }
      }
    }
  }
  for (i = 0; i < n * n; ++i) {
    mat[i] = tmp[i];
  }
  free(tmp);
}


x86 assembly (clang, -O0):
<trans_mat_ext2ext>:
push   %rbp
mov    %rsp,%rbp
sub    $0x40,%rsp
mov    %edi,-0x4(%rbp)
mov    %rsi,-0x10(%rbp)
imul   $0xb,-0x4(%rbp),%eax
mov    %eax,-0x38(%rbp)
movslq -0x38(%rbp),%rax
shl    $0x3,%rax
movslq -0x38(%rbp),%rcx
imul   %rcx,%rax
mov    %eax,%edi
call   1050 <malloc@plt>
mov    %rax,-0x40(%rbp)
cmpq   $0x0,-0x40(%rbp)
jne    119b <trans_mat_ext2ext+0x5b>
mov    0x2e5d(%rip),%rax
mov    (%rax),%edi
lea    0xe74(%rip),%rsi
call   1040 <fprintf@plt>
mov    $0x1,%edi
call   1060 <exit@plt>
movl   $0x0,-0x14(%rbp)
mov    -0x14(%rbp),%eax
cmp    -0x4(%rbp),%eax
jge    12d9 <trans_mat_ext2ext+0x199>
imul   $0xb,-0x14(%rbp),%eax
mov    %eax,-0x1c(%rbp)
movl   $0x0,-0x24(%rbp)
mov    -0x24(%rbp),%eax
cmp    -0x4(%rbp),%eax
jge    12c6 <trans_mat_ext2ext+0x186>
imul   $0xb,-0x24(%rbp),%eax
mov    %eax,-0x2c(%rbp)
movl   $0x0,-0x18(%rbp)
cmpl   $0xb,-0x18(%rbp)
jge    12b3 <trans_mat_ext2ext+0x173>
mov    -0x1c(%rbp),%eax
add    -0x18(%rbp),%eax
mov    %eax,-0x20(%rbp)
movl   $0x0,-0x28(%rbp)
cmpl   $0xb,-0x28(%rbp)
jge    12a0 <trans_mat_ext2ext+0x160>
mov    -0x2c(%rbp),%eax
add    -0x28(%rbp),%eax
mov    %eax,-0x30(%rbp)
mov    -0x40(%rbp),%rax
mov    -0x20(%rbp),%ecx
imul   -0x38(%rbp),%ecx
add    -0x30(%rbp),%ecx
movslq %ecx,%rcx
xorps  %xmm0,%xmm0
movsd  %xmm0,(%rax,%rcx,8)
movl   $0x0,-0x34(%rbp)
cmpl   $0xb,-0x34(%rbp)
jge    128d <trans_mat_ext2ext+0x14d>
mov    -0x10(%rbp),%rax
mov    -0x20(%rbp),%ecx
imul   -0x38(%rbp),%ecx
add    -0x2c(%rbp),%ecx
add    -0x34(%rbp),%ecx
movslq %ecx,%rcx
movsd  (%rax,%rcx,8),%xmm0
imul   $0xb,-0x34(%rbp),%eax
add    -0x28(%rbp),%eax
movslq %eax,%rcx
lea    0x2df9(%rip),%rax
movsd  (%rax,%rcx,8),%xmm2
mov    -0x40(%rbp),%rax
mov    -0x20(%rbp),%ecx
imul   -0x38(%rbp),%ecx
add    -0x30(%rbp),%ecx
movslq %ecx,%rcx
movsd  (%rax,%rcx,8),%xmm1
mulsd  %xmm2,%xmm0
addsd  %xmm1,%xmm0
movsd  %xmm0,(%rax,%rcx,8)
mov    -0x34(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0x34(%rbp)
jmp    1223 <trans_mat_ext2ext+0xe3>
jmp    1292 <trans_mat_ext2ext+0x152>
mov    -0x28(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0x28(%rbp)
jmp    11f0 <trans_mat_ext2ext+0xb0>
jmp    12a5 <trans_mat_ext2ext+0x165>
mov    -0x18(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0x18(%rbp)
jmp    11d6 <trans_mat_ext2ext+0x96>
jmp    12b8 <trans_mat_ext2ext+0x178>
mov    -0x24(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0x24(%rbp)
jmp    11bc <trans_mat_ext2ext+0x7c>
jmp    12cb <trans_mat_ext2ext+0x18b>
mov    -0x14(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0x14(%rbp)
jmp    11a2 <trans_mat_ext2ext+0x62>
movl   $0x0,-0x14(%rbp)
mov    -0x14(%rbp),%eax
mov    -0x38(%rbp),%ecx
imul   -0x38(%rbp),%ecx
cmp    %ecx,%eax
jge    131a <trans_mat_ext2ext+0x1da>
mov    -0x40(%rbp),%rax
movslq -0x14(%rbp),%rcx
movsd  (%rax,%rcx,8),%xmm0
mov    -0x10(%rbp),%rax
movslq -0x14(%rbp),%rcx
movsd  %xmm0,(%rax,%rcx,8)
mov    -0x14(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0x14(%rbp)
jmp    12e0 <trans_mat_ext2ext+0x1a0>
mov    -0x40(%rbp),%rdi
call   1030 <free@plt>
add    $0x40,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<trans_mat_ext2ext>:
push   %rbp
push   %r15
push   %r14
push   %r13
push   %r12
push   %rbx
sub    $0x48,%rsp
mov    %rsi,%rbx
mov    %edi,%r14d
lea    (%r14,%r14,4),%eax
lea    (%r14,%rax,2),%ecx
mov    %edi,%eax
mov    %ecx,0xc(%rsp)
imul   %ecx,%eax
imul   $0x58,%eax,%edi
call   1050 <malloc@plt>
test   %rax,%rax
je     155f <trans_mat_ext2ext+0x41f>
test   %r14d,%r14d
jle    13c5 <trans_mat_ext2ext+0x285>
movabs $0xb00000000,%rcx
movslq 0xc(%rsp),%r13
mov    %r14d,%edx
mov    %rdx,0x10(%rsp)
mov    %r13,%rdx
imul   %rcx,%rdx
mov    %rdx,0x18(%rsp)
mov    %r13,0x30(%rsp)
shl    $0x20,%r13
xor    %r14d,%r14d
lea    0xe4b(%rip),%rbp
xorpd  %xmm0,%xmm0
movabs $0x100000000,%rcx
xor    %edi,%edi
cs nopw 0x0(%rax,%rax,1)
nop
lea    (%rdi,%rdi,4),%rsi
mov    %rdi,0x20(%rsp)
lea    (%rdi,%rsi,2),%rsi
mov    %r14,0x28(%rsp)
xor    %edx,%edx
cs nopw 0x0(%rax,%rax,1)
xchg   %ax,%ax
lea    (%rdx,%rdx,4),%rdi
mov    %rdx,0x38(%rsp)
lea    (%rdx,%rdi,2),%r15
mov    %r14,0x40(%rsp)
xor    %r8d,%r8d
mov    0x30(%rsp),%rdx
nopw   0x0(%rax,%rax,1)
lea    (%r8,%rsi,1),%r11
imul   %rdx,%r11
add    %r15,%r11
mov    $0xfffffffffffffff5,%r10
mov    %r14,%r9
cs nopw 0x0(%rax,%rax,1)
nop
mov    %r9,%r12
sar    $0x1d,%r12
movq   $0x0,(%rax,%r12,1)
movsd  (%rbx,%r11,8),%xmm1
mulsd  0x58(%rbp,%r10,8),%xmm1
addsd  %xmm0,%xmm1
movsd  %xmm1,(%rax,%r12,1)
movsd  0x8(%rbx,%r11,8),%xmm2
mulsd  0xb0(%rbp,%r10,8),%xmm2
addsd  %xmm1,%xmm2
movsd  %xmm2,(%rax,%r12,1)
movsd  0x10(%rbx,%r11,8),%xmm1
mulsd  0x108(%rbp,%r10,8),%xmm1
addsd  %xmm2,%xmm1
movsd  %xmm1,(%rax,%r12,1)
movsd  0x18(%rbx,%r11,8),%xmm2
mulsd  0x160(%rbp,%r10,8),%xmm2
addsd  %xmm1,%xmm2
movsd  %xmm2,(%rax,%r12,1)
movsd  0x20(%rbx,%r11,8),%xmm1
mulsd  0x1b8(%rbp,%r10,8),%xmm1
addsd  %xmm2,%xmm1
movsd  %xmm1,(%rax,%r12,1)
movsd  0x28(%rbx,%r11,8),%xmm2
mulsd  0x210(%rbp,%r10,8),%xmm2
addsd  %xmm1,%xmm2
movsd  %xmm2,(%rax,%r12,1)
movsd  0x30(%rbx,%r11,8),%xmm1
mulsd  0x268(%rbp,%r10,8),%xmm1
addsd  %xmm2,%xmm1
movsd  %xmm1,(%rax,%r12,1)
movsd  0x38(%rbx,%r11,8),%xmm2
mulsd  0x2c0(%rbp,%r10,8),%xmm2
addsd  %xmm1,%xmm2
movsd  %xmm2,(%rax,%r12,1)
movsd  0x40(%rbx,%r11,8),%xmm1
mulsd  0x318(%rbp,%r10,8),%xmm1
addsd  %xmm2,%xmm1
movsd  %xmm1,(%rax,%r12,1)
movsd  0x48(%rbx,%r11,8),%xmm2
mulsd  0x370(%rbp,%r10,8),%xmm2
addsd  %xmm1,%xmm2
movsd  %xmm2,(%rax,%r12,1)
movsd  0x50(%rbx,%r11,8),%xmm1
mulsd  0x3c8(%rbp,%r10,8),%xmm1
addsd  %xmm2,%xmm1
movsd  %xmm1,(%rax,%r12,1)
add    %rcx,%r9
inc    %r10
jne    1230 <trans_mat_ext2ext+0xf0>
add    $0x1,%r8
add    %r13,%r14
cmp    $0xb,%r8
jne    1210 <trans_mat_ext2ext+0xd0>
mov    0x38(%rsp),%rdx
add    $0x1,%rdx
movabs $0xb00000000,%rdi
mov    0x40(%rsp),%r14
add    %rdi,%r14
cmp    0x10(%rsp),%rdx
jne    11f0 <trans_mat_ext2ext+0xb0>
mov    0x20(%rsp),%rdi
add    $0x1,%rdi
mov    0x28(%rsp),%r14
add    0x18(%rsp),%r14
cmp    0x10(%rsp),%rdi
jne    11d0 <trans_mat_ext2ext+0x90>
mov    0xc(%rsp),%edx
imul   %edx,%edx
test   %edx,%edx
je     1549 <trans_mat_ext2ext+0x409>
mov    %edx,%ecx
cmp    $0x4,%edx
jb     13f1 <trans_mat_ext2ext+0x2b1>
lea    (%rax,%rcx,8),%rdx
cmp    %rbx,%rdx
jbe    146c <trans_mat_ext2ext+0x32c>
lea    (%rbx,%rcx,8),%rdx
cmp    %rdx,%rax
jae    146c <trans_mat_ext2ext+0x32c>
xor    %edx,%edx
mov    %rdx,%rsi
not    %rsi
add    %rcx,%rsi
mov    %rcx,%rdi
and    $0x3,%rdi
je     1424 <trans_mat_ext2ext+0x2e4>
cs nopw 0x0(%rax,%rax,1)
nop
movsd  (%rax,%rdx,8),%xmm0
movsd  %xmm0,(%rbx,%rdx,8)
add    $0x1,%rdx
add    $0xffffffffffffffff,%rdi
jne    1410 <trans_mat_ext2ext+0x2d0>
cmp    $0x3,%rsi
jb     1549 <trans_mat_ext2ext+0x409>
xchg   %ax,%ax
movsd  (%rax,%rdx,8),%xmm0
movsd  %xmm0,(%rbx,%rdx,8)
movsd  0x8(%rax,%rdx,8),%xmm0
movsd  %xmm0,0x8(%rbx,%rdx,8)
movsd  0x10(%rax,%rdx,8),%xmm0
movsd  %xmm0,0x10(%rbx,%rdx,8)
movsd  0x18(%rax,%rdx,8),%xmm0
movsd  %xmm0,0x18(%rbx,%rdx,8)
add    $0x4,%rdx
cmp    %rdx,%rcx
jne    1430 <trans_mat_ext2ext+0x2f0>
jmp    1549 <trans_mat_ext2ext+0x409>
mov    %ecx,%edx
and    $0xfffffffc,%edx
lea    -0x4(%rdx),%rsi
mov    %rsi,%rdi
shr    $0x2,%rdi
add    $0x1,%rdi
mov    %edi,%r8d
and    $0x3,%r8d
cmp    $0xc,%rsi
jae    1491 <trans_mat_ext2ext+0x351>
xor    %ebp,%ebp
jmp    14fc <trans_mat_ext2ext+0x3bc>
and    $0xfffffffffffffffc,%rdi
xor    %ebp,%ebp
nopw   0x0(%rax,%rax,1)
movups (%rax,%rbp,8),%xmm0
movups 0x10(%rax,%rbp,8),%xmm1
movups %xmm0,(%rbx,%rbp,8)
movups %xmm1,0x10(%rbx,%rbp,8)
movups 0x20(%rax,%rbp,8),%xmm0
movups 0x30(%rax,%rbp,8),%xmm1
movups %xmm0,0x20(%rbx,%rbp,8)
movups %xmm1,0x30(%rbx,%rbp,8)
movups 0x40(%rax,%rbp,8),%xmm0
movups 0x50(%rax,%rbp,8),%xmm1
movups %xmm0,0x40(%rbx,%rbp,8)
movups %xmm1,0x50(%rbx,%rbp,8)
movupd 0x60(%rax,%rbp,8),%xmm0
movupd 0x70(%rax,%rbp,8),%xmm1
movupd %xmm0,0x60(%rbx,%rbp,8)
movupd %xmm1,0x70(%rbx,%rbp,8)
add    $0x10,%rbp
add    $0xfffffffffffffffc,%rdi
jne    14a0 <trans_mat_ext2ext+0x360>
test   %r8,%r8
je     1540 <trans_mat_ext2ext+0x400>
lea    (%rbx,%rbp,8),%rdi
add    $0x10,%rdi
lea    (%rax,%rbp,8),%rbp
add    $0x10,%rbp
shl    $0x5,%r8
xor    %esi,%esi
nopw   0x0(%rax,%rax,1)
movupd -0x10(%rbp,%rsi,1),%xmm0
movupd 0x0(%rbp,%rsi,1),%xmm1
movupd %xmm0,-0x10(%rdi,%rsi,1)
movupd %xmm1,(%rdi,%rsi,1)
add    $0x20,%rsi
cmp    %rsi,%r8
jne    1520 <trans_mat_ext2ext+0x3e0>
cmp    %rcx,%rdx
jne    13f3 <trans_mat_ext2ext+0x2b3>
mov    %rax,%rdi
add    $0x48,%rsp
pop    %rbx
pop    %r12
pop    %r13
pop    %r14
pop    %r15
pop    %rbp
jmp    1030 <free@plt>
mov    0x2a7a(%rip),%rax
mov    (%rax),%edi
lea    0xe59(%rip),%rsi
call   1040 <fprintf@plt>
mov    $0x1,%edi
call   1060 <exit@plt>

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

LLVM IR (-O2):
@trans_mat_ext2ext.t = internal unnamed_addr constant [121 x double] [double 1.000000e+00, double 0.000000e+00, double 0.000000e+00, double 0.000000e+00, double 0.000000e+00, double 0.000000e+00, double 0.000000e+00, double 0.000000e+00, double 0.000000e+00, double 0.000000e+00, double 0.000000e+00, double 0.000000e+00, double 1.000000e+00, double 0.000000e+00, double 0.000000e+00, double 0.000000e+00, double 0.000000e+00, double 0.000000e+00, double 0.000000e+00, double 0.000000e+00, double 0.000000e+00, double 0.000000e+00, double 0.000000e+00, double 0.000000e+00, double 1.000000e+00, double 0.000000e+00, double 0.000000e+00, double 0.000000e+00, double 0.000000e+00, double 0.000000e+00, double 0.000000e+00, double 0.000000e+00, double 0.000000e+00, double 0.000000e+00, double 0.000000e+00, double 0.000000e+00, double 1.000000e+00, double 0.000000e+00, double 0.000000e+00, double 0.000000e+00, double 0.000000e+00, double 0.000000e+00, double 0.000000e+00, double 0.000000e+00, double 0.000000e+00, double 0.000000e+00, double 0.000000e+00, double 0.000000e+00, double 1.000000e+00, double 0.000000e+00, double 0.000000e+00, double 0.000000e+00, double 0.000000e+00, double 0.000000e+00, double 0.000000e+00, double 0.000000e+00, double 0.000000e+00, double 0.000000e+00, double 0.000000e+00, double 0.000000e+00, double 1.000000e+00, double 0.000000e+00, double 0.000000e+00, double 0.000000e+00, double 0.000000e+00, double 0.000000e+00, double 0.000000e+00, double 0.000000e+00, double 0.000000e+00, double 0.000000e+00, double 0.000000e+00, double 0.000000e+00, double 2.000000e+00, double 0.000000e+00, double 0.000000e+00, double 0.000000e+00, double 1.000000e+00, double 0.000000e+00, double 0.000000e+00, double 0.000000e+00, double 0.000000e+00, double 0.000000e+00, double 0.000000e+00, double 0.000000e+00, double 2.000000e+00, double 0.000000e+00, double 0.000000e+00, double 0.000000e+00, double 0.000000e+00, double 0.000000e+00, double 0.000000e+00, double 0.000000e+00, double 0.000000e+00, double 0.000000e+00, double 0.000000e+00, double 0.000000e+00, double 2.000000e+00, double 0.000000e+00, double 0.000000e+00, double 0.000000e+00, double 0.000000e+00, double 0.000000e+00, double 0.000000e+00, double 0.000000e+00, double 0.000000e+00, double 0.000000e+00, double 0.000000e+00, double 0.000000e+00, double 2.000000e+00, double 0.000000e+00, double 0.000000e+00, double 0.000000e+00, double 0.000000e+00, double 0.000000e+00, double 0.000000e+00, double 0.000000e+00, double 1.000000e+00, double 0.000000e+00, double 0.000000e+00, double 0.000000e+00, double 2.000000e+00]
@stderr = global i32 0
@.str = [42 x i8] c"trans_mat_ext2ext : malloc error for tmp\0A\00"
define void @trans_mat_ext2ext(i32 %0, double* nocapture %1) {
%3 = mul nsw i32 %0, 11
%4 = mul i32 %0, 88
%5 = mul i32 %4, %3
%6 = tail call i64 @malloc(i32 %5)
%7 = inttoptr i64 %6 to double*
%8 = inttoptr i64 %6 to i8*
%9 = icmp eq i64 %6, 0
br i1 %9, label %15, label %10
10: ; preds = %2
%11 = icmp sgt i32 %0, 0
br i1 %11, label %12, label %19
12: ; preds = %10
%13 = sext i32 %3 to i64
%14 = zext i32 %0 to i64
br label %129
15: ; preds = %2
%16 = load i32, i32* @stderr
%17 = tail call i32 @fprintf(i32 %16, i8* getelementptr inbounds ([42 x i8], [42 x i8]* @.str, i64 0, i64 0))
%18 = tail call i32 @exit(i32 1)
unreachable
19: ; preds = %230, %10
%20 = mul i32 %3, %3
%21 = icmp eq i32 %20, 0
br i1 %21, label %252, label %22
22: ; preds = %19
%23 = zext i32 %20 to i64
%24 = icmp ult i32 %20, 4
br i1 %24, label %111, label %25
25: ; preds = %22
%26 = getelementptr double, double* %1, i64 %23
%27 = bitcast double* %26 to i8*
%28 = getelementptr double, double* %7, i64 %23
%29 = icmp ugt double* %28, %1
%30 = icmp ult i8* %8, %27
%31 = and i1 %29, %30
br i1 %31, label %111, label %32
32: ; preds = %25
%33 = and i64 %23, 4294967292
%34 = add nsw i64 %33, -4
%35 = lshr exact i64 %34, 2
%36 = add nuw nsw i64 %35, 1
%37 = and i64 %36, 3
%38 = icmp ult i64 %34, 12
br i1 %38, label %90, label %39
39: ; preds = %32
%40 = and i64 %36, 9223372036854775804
br label %41
41: ; preds = %41, %39
%42 = phi i64 [ 0, %39 ], [ %87, %41 ]
%43 = phi i64 [ 0, %39 ], [ %88, %41 ]
%44 = getelementptr inbounds double, double* %7, i64 %42
%45 = bitcast double* %44 to <2 x double>*
%46 = load <2 x double>, <2 x double>* %45
%47 = getelementptr inbounds double, double* %44, i64 2
%48 = bitcast double* %47 to <2 x double>*
%49 = load <2 x double>, <2 x double>* %48
%50 = getelementptr inbounds double, double* %1, i64 %42
%51 = bitcast double* %50 to <2 x double>*
store <2 x double> %46, <2 x double>* %51
%52 = getelementptr inbounds double, double* %50, i64 2
%53 = bitcast double* %52 to <2 x double>*
store <2 x double> %49, <2 x double>* %53
%54 = or i64 %42, 4
%55 = getelementptr inbounds double, double* %7, i64 %54
%56 = bitcast double* %55 to <2 x double>*
%57 = load <2 x double>, <2 x double>* %56
%58 = getelementptr inbounds double, double* %55, i64 2
%59 = bitcast double* %58 to <2 x double>*
%60 = load <2 x double>, <2 x double>* %59
%61 = getelementptr inbounds double, double* %1, i64 %54
%62 = bitcast double* %61 to <2 x double>*
store <2 x double> %57, <2 x double>* %62
%63 = getelementptr inbounds double, double* %61, i64 2
%64 = bitcast double* %63 to <2 x double>*
store <2 x double> %60, <2 x double>* %64
%65 = or i64 %42, 8
%66 = getelementptr inbounds double, double* %7, i64 %65
%67 = bitcast double* %66 to <2 x double>*
%68 = load <2 x double>, <2 x double>* %67
%69 = getelementptr inbounds double, double* %66, i64 2
%70 = bitcast double* %69 to <2 x double>*
%71 = load <2 x double>, <2 x double>* %70
%72 = getelementptr inbounds double, double* %1, i64 %65
%73 = bitcast double* %72 to <2 x double>*
store <2 x double> %68, <2 x double>* %73
%74 = getelementptr inbounds double, double* %72, i64 2
%75 = bitcast double* %74 to <2 x double>*
store <2 x double> %71, <2 x double>* %75
%76 = or i64 %42, 12
%77 = getelementptr inbounds double, double* %7, i64 %76
%78 = bitcast double* %77 to <2 x double>*
%79 = load <2 x double>, <2 x double>* %78
%80 = getelementptr inbounds double, double* %77, i64 2
%81 = bitcast double* %80 to <2 x double>*
%82 = load <2 x double>, <2 x double>* %81
%83 = getelementptr inbounds double, double* %1, i64 %76
%84 = bitcast double* %83 to <2 x double>*
store <2 x double> %79, <2 x double>* %84
%85 = getelementptr inbounds double, double* %83, i64 2
%86 = bitcast double* %85 to <2 x double>*
store <2 x double> %82, <2 x double>* %86
%87 = add nuw i64 %42, 16
%88 = add nuw i64 %43, 4
%89 = icmp eq i64 %88, %40
br i1 %89, label %90, label %41
90: ; preds = %41, %32
%91 = phi i64 [ 0, %32 ], [ %87, %41 ]
%92 = icmp eq i64 %37, 0
br i1 %92, label %109, label %93
93: ; preds = %90, %93
%94 = phi i64 [ %106, %93 ], [ %91, %90 ]
%95 = phi i64 [ %107, %93 ], [ 0, %90 ]
%96 = getelementptr inbounds double, double* %7, i64 %94
%97 = bitcast double* %96 to <2 x double>*
%98 = load <2 x double>, <2 x double>* %97
%99 = getelementptr inbounds double, double* %96, i64 2
%100 = bitcast double* %99 to <2 x double>*
%101 = load <2 x double>, <2 x double>* %100
%102 = getelementptr inbounds double, double* %1, i64 %94
%103 = bitcast double* %102 to <2 x double>*
store <2 x double> %98, <2 x double>* %103
%104 = getelementptr inbounds double, double* %102, i64 2
%105 = bitcast double* %104 to <2 x double>*
store <2 x double> %101, <2 x double>* %105
%106 = add nuw i64 %94, 4
%107 = add i64 %95, 1
%108 = icmp eq i64 %107, %37
br i1 %108, label %109, label %93
109: ; preds = %93, %90
%110 = icmp eq i64 %33, %23
br i1 %110, label %252, label %111
111: ; preds = %25, %22, %109
%112 = phi i64 [ 0, %25 ], [ 0, %22 ], [ %33, %109 ]
%113 = xor i64 %112, -1
%114 = add nsw i64 %113, %23
%115 = and i64 %23, 3
%116 = icmp eq i64 %115, 0
br i1 %116, label %126, label %117
117: ; preds = %111, %117
%118 = phi i64 [ %123, %117 ], [ %112, %111 ]
%119 = phi i64 [ %124, %117 ], [ 0, %111 ]
%120 = getelementptr inbounds double, double* %7, i64 %118
%121 = load double, double* %120
%122 = getelementptr inbounds double, double* %1, i64 %118
store double %121, double* %122
%123 = add nuw nsw i64 %118, 1
%124 = add i64 %119, 1
%125 = icmp eq i64 %124, %115
br i1 %125, label %126, label %117
126: ; preds = %117, %111
%127 = phi i64 [ %112, %111 ], [ %123, %117 ]
%128 = icmp ult i64 %114, 3
br i1 %128, label %252, label %233
129: ; preds = %230, %12
%130 = phi i64 [ 0, %12 ], [ %231, %230 ]
%131 = mul nuw nsw i64 %130, 11
br label %132
132: ; preds = %129, %227
%133 = phi i64 [ 0, %129 ], [ %228, %227 ]
%134 = mul nuw nsw i64 %133, 11
br label %135
135: ; preds = %132, %224
%136 = phi i64 [ 0, %132 ], [ %225, %224 ]
%137 = add nuw nsw i64 %136, %131
%138 = mul nsw i64 %137, %13
%139 = add i64 %138, %134
%140 = add nsw i64 %138, %134
%141 = getelementptr inbounds double, double* %1, i64 %140
%142 = add nsw i64 %140, 1
%143 = getelementptr inbounds double, double* %1, i64 %142
%144 = add nsw i64 %140, 2
%145 = getelementptr inbounds double, double* %1, i64 %144
%146 = add nsw i64 %140, 3
%147 = getelementptr inbounds double, double* %1, i64 %146
%148 = add nsw i64 %140, 4
%149 = getelementptr inbounds double, double* %1, i64 %148
%150 = add nsw i64 %140, 5
%151 = getelementptr inbounds double, double* %1, i64 %150
%152 = add nsw i64 %140, 6
%153 = getelementptr inbounds double, double* %1, i64 %152
%154 = add nsw i64 %140, 7
%155 = getelementptr inbounds double, double* %1, i64 %154
%156 = add nsw i64 %140, 8
%157 = getelementptr inbounds double, double* %1, i64 %156
%158 = add nsw i64 %140, 9
%159 = getelementptr inbounds double, double* %1, i64 %158
%160 = add nsw i64 %140, 10
%161 = getelementptr inbounds double, double* %1, i64 %160
br label %162
162: ; preds = %135, %162
%163 = phi i64 [ 0, %135 ], [ %222, %162 ]
%164 = add i64 %139, %163
%165 = shl i64 %164, 32
%166 = ashr exact i64 %165, 32
%167 = getelementptr inbounds double, double* %7, i64 %166
store double 0.000000e+00, double* %167
%168 = load double, double* %141
%169 = getelementptr inbounds [121 x double], [121 x double]* @trans_mat_ext2ext.t, i64 0, i64 %163
%170 = load double, double* %169
%171 = tail call double @llvm.fmuladd.f64(double %168, double %170, double 0.000000e+00)
store double %171, double* %167
%172 = load double, double* %143
%173 = add nuw nsw i64 %163, 11
%174 = getelementptr inbounds [121 x double], [121 x double]* @trans_mat_ext2ext.t, i64 0, i64 %173
%175 = load double, double* %174
%176 = tail call double @llvm.fmuladd.f64(double %172, double %175, double %171)
store double %176, double* %167
%177 = load double, double* %145
%178 = add nuw nsw i64 %163, 22
%179 = getelementptr inbounds [121 x double], [121 x double]* @trans_mat_ext2ext.t, i64 0, i64 %178
%180 = load double, double* %179
%181 = tail call double @llvm.fmuladd.f64(double %177, double %180, double %176)
store double %181, double* %167
%182 = load double, double* %147
%183 = add nuw nsw i64 %163, 33
%184 = getelementptr inbounds [121 x double], [121 x double]* @trans_mat_ext2ext.t, i64 0, i64 %183
%185 = load double, double* %184
%186 = tail call double @llvm.fmuladd.f64(double %182, double %185, double %181)
store double %186, double* %167
%187 = load double, double* %149
%188 = add nuw nsw i64 %163, 44
%189 = getelementptr inbounds [121 x double], [121 x double]* @trans_mat_ext2ext.t, i64 0, i64 %188
%190 = load double, double* %189
%191 = tail call double @llvm.fmuladd.f64(double %187, double %190, double %186)
store double %191, double* %167
%192 = load double, double* %151
%193 = add nuw nsw i64 %163, 55
%194 = getelementptr inbounds [121 x double], [121 x double]* @trans_mat_ext2ext.t, i64 0, i64 %193
%195 = load double, double* %194
%196 = tail call double @llvm.fmuladd.f64(double %192, double %195, double %191)
store double %196, double* %167
%197 = load double, double* %153
%198 = add nuw nsw i64 %163, 66
%199 = getelementptr inbounds [121 x double], [121 x double]* @trans_mat_ext2ext.t, i64 0, i64 %198
%200 = load double, double* %199
%201 = tail call double @llvm.fmuladd.f64(double %197, double %200, double %196)
store double %201, double* %167
%202 = load double, double* %155
%203 = add nuw nsw i64 %163, 77
%204 = getelementptr inbounds [121 x double], [121 x double]* @trans_mat_ext2ext.t, i64 0, i64 %203
%205 = load double, double* %204
%206 = tail call double @llvm.fmuladd.f64(double %202, double %205, double %201)
store double %206, double* %167
%207 = load double, double* %157
%208 = add nuw nsw i64 %163, 88
%209 = getelementptr inbounds [121 x double], [121 x double]* @trans_mat_ext2ext.t, i64 0, i64 %208
%210 = load double, double* %209
%211 = tail call double @llvm.fmuladd.f64(double %207, double %210, double %206)
store double %211, double* %167
%212 = load double, double* %159
%213 = add nuw nsw i64 %163, 99
%214 = getelementptr inbounds [121 x double], [121 x double]* @trans_mat_ext2ext.t, i64 0, i64 %213
%215 = load double, double* %214
%216 = tail call double @llvm.fmuladd.f64(double %212, double %215, double %211)
store double %216, double* %167
%217 = load double, double* %161
%218 = add nuw nsw i64 %163, 110
%219 = getelementptr inbounds [121 x double], [121 x double]* @trans_mat_ext2ext.t, i64 0, i64 %218
%220 = load double, double* %219
%221 = tail call double @llvm.fmuladd.f64(double %217, double %220, double %216)
store double %221, double* %167
%222 = add nuw nsw i64 %163, 1
%223 = icmp eq i64 %222, 11
br i1 %223, label %224, label %162
224: ; preds = %162
%225 = add nuw nsw i64 %136, 1
%226 = icmp eq i64 %225, 11
br i1 %226, label %227, label %135
227: ; preds = %224
%228 = add nuw nsw i64 %133, 1
%229 = icmp eq i64 %228, %14
br i1 %229, label %230, label %132
230: ; preds = %227
%231 = add nuw nsw i64 %130, 1
%232 = icmp eq i64 %231, %14
br i1 %232, label %19, label %129
233: ; preds = %126, %233
%234 = phi i64 [ %250, %233 ], [ %127, %126 ]
%235 = getelementptr inbounds double, double* %7, i64 %234
%236 = load double, double* %235
%237 = getelementptr inbounds double, double* %1, i64 %234
store double %236, double* %237
%238 = add nuw nsw i64 %234, 1
%239 = getelementptr inbounds double, double* %7, i64 %238
%240 = load double, double* %239
%241 = getelementptr inbounds double, double* %1, i64 %238
store double %240, double* %241
%242 = add nuw nsw i64 %234, 2
%243 = getelementptr inbounds double, double* %7, i64 %242
%244 = load double, double* %243
%245 = getelementptr inbounds double, double* %1, i64 %242
store double %244, double* %245
%246 = add nuw nsw i64 %234, 3
%247 = getelementptr inbounds double, double* %7, i64 %246
%248 = load double, double* %247
%249 = getelementptr inbounds double, double* %1, i64 %246
store double %248, double* %249
%250 = add nuw nsw i64 %234, 4
%251 = icmp eq i64 %250, %23
br i1 %251, label %252, label %233
252: ; preds = %126, %233, %109, %19
%253 = tail call i32 @free(double* %7)
ret void
}