void double_exp_matrix(unsigned int lines, unsigned int columns,
                       double m1[4][4], unsigned int expNumber,
                       double result[4][4]) {
  unsigned int i, j, k, l;
  double m2[4][4];
  if (expNumber == 0) {
    for (i = 0; i < lines; i++) {
      for (j = 0; j < columns; j++) {
        if (i == j) {
          result[i][j] = 1.0;
        } else {
          result[i][j] = 0.0;
        }
      }
    }
    return;
  }
  for (i = 0; i < lines; i++)
    for (j = 0; j < columns; j++)
      result[i][j] = m1[i][j];
  if (expNumber == 1) {
    return;
  }
  for (l = 1; l < expNumber; l++) {
    for (i = 0; i < lines; i++)
      for (j = 0; j < columns; j++)
        m2[i][j] = result[i][j];
    for (i = 0; i < lines; i++)
      for (j = 0; j < columns; j++)
        result[i][j] = 0;
    for (i = 0; i < lines; i++) {
      for (j = 0; j < columns; j++) {
        for (k = 0; k < columns; k++) {
          result[i][j] = result[i][j] + (m2[i][k] * m1[k][j]);
        }
      }
    }
  }
}


x86 assembly (clang, -O0):
<double_exp_matrix>:
push   %rbp
mov    %rsp,%rbp
sub    $0x30,%rsp
mov    %edi,-0x4(%rbp)
mov    %esi,-0x8(%rbp)
mov    %rdx,-0x10(%rbp)
mov    %ecx,-0x14(%rbp)
mov    %r8,-0x20(%rbp)
cmpl   $0x0,-0x14(%rbp)
jne    11bc <double_exp_matrix+0xbc>
movl   $0x0,-0x24(%rbp)
mov    -0x24(%rbp),%eax
cmp    -0x4(%rbp),%eax
jae    11b7 <double_exp_matrix+0xb7>
movl   $0x0,-0x28(%rbp)
mov    -0x28(%rbp),%eax
cmp    -0x8(%rbp),%eax
jae    11a4 <double_exp_matrix+0xa4>
mov    -0x24(%rbp),%eax
cmp    -0x28(%rbp),%eax
jne    1178 <double_exp_matrix+0x78>
mov    -0x20(%rbp),%rax
mov    -0x24(%rbp),%ecx
shl    $0x5,%rcx
add    %rcx,%rax
mov    -0x28(%rbp),%ecx
movsd  0xe92(%rip),%xmm0
movsd  %xmm0,(%rax,%rcx,8)
jmp    1191 <double_exp_matrix+0x91>
mov    -0x20(%rbp),%rax
mov    -0x24(%rbp),%ecx
shl    $0x5,%rcx
add    %rcx,%rax
mov    -0x28(%rbp),%ecx
xorps  %xmm0,%xmm0
movsd  %xmm0,(%rax,%rcx,8)
jmp    1196 <double_exp_matrix+0x96>
mov    -0x28(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0x28(%rbp)
jmp    113d <double_exp_matrix+0x3d>
jmp    11a9 <double_exp_matrix+0xa9>
mov    -0x24(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0x24(%rbp)
jmp    112a <double_exp_matrix+0x2a>
jmp    140e <double_exp_matrix+0x30e>
movl   $0x0,-0x24(%rbp)
mov    -0x24(%rbp),%eax
cmp    -0x4(%rbp),%eax
jae    122f <double_exp_matrix+0x12f>
movl   $0x0,-0x28(%rbp)
mov    -0x28(%rbp),%eax
cmp    -0x8(%rbp),%eax
jae    121c <double_exp_matrix+0x11c>
mov    -0x10(%rbp),%rax
mov    -0x24(%rbp),%ecx
shl    $0x5,%rcx
add    %rcx,%rax
mov    -0x28(%rbp),%ecx
movsd  (%rax,%rcx,8),%xmm0
mov    -0x20(%rbp),%rax
mov    -0x24(%rbp),%ecx
shl    $0x5,%rcx
add    %rcx,%rax
mov    -0x28(%rbp),%ecx
movsd  %xmm0,(%rax,%rcx,8)
mov    -0x28(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0x28(%rbp)
jmp    11d6 <double_exp_matrix+0xd6>
jmp    1221 <double_exp_matrix+0x121>
mov    -0x24(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0x24(%rbp)
jmp    11c3 <double_exp_matrix+0xc3>
cmpl   $0x1,-0x14(%rbp)
jne    123e <double_exp_matrix+0x13e>
jmp    140e <double_exp_matrix+0x30e>
movl   $0x1,-0x30(%rbp)
mov    -0x30(%rbp),%eax
cmp    -0x14(%rbp),%eax
jae    140e <double_exp_matrix+0x30e>
movl   $0x0,-0x24(%rbp)
mov    -0x24(%rbp),%eax
cmp    -0x4(%rbp),%eax
jae    12c9 <double_exp_matrix+0x1c9>
movl   $0x0,-0x28(%rbp)
mov    -0x28(%rbp),%eax
cmp    -0x8(%rbp),%eax
jae    12b6 <double_exp_matrix+0x1b6>
mov    -0x20(%rbp),%rax
mov    -0x24(%rbp),%ecx
shl    $0x5,%rcx
add    %rcx,%rax
mov    -0x28(%rbp),%ecx
movsd  (%rax,%rcx,8),%xmm0
mov    -0x24(%rbp),%eax
mov    %eax,%ecx
lea    -0xb0(%rbp),%rax
shl    $0x5,%rcx
add    %rcx,%rax
mov    -0x28(%rbp),%ecx
movsd  %xmm0,(%rax,%rcx,8)
mov    -0x28(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0x28(%rbp)
jmp    126b <double_exp_matrix+0x16b>
jmp    12bb <double_exp_matrix+0x1bb>
mov    -0x24(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0x24(%rbp)
jmp    1258 <double_exp_matrix+0x158>
movl   $0x0,-0x24(%rbp)
mov    -0x24(%rbp),%eax
cmp    -0x4(%rbp),%eax
jae    1329 <double_exp_matrix+0x229>
movl   $0x0,-0x28(%rbp)
mov    -0x28(%rbp),%eax
cmp    -0x8(%rbp),%eax
jae    1316 <double_exp_matrix+0x216>
mov    -0x20(%rbp),%rax
mov    -0x24(%rbp),%ecx
shl    $0x5,%rcx
add    %rcx,%rax
mov    -0x28(%rbp),%ecx
xorps  %xmm0,%xmm0
movsd  %xmm0,(%rax,%rcx,8)
mov    -0x28(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0x28(%rbp)
jmp    12e3 <double_exp_matrix+0x1e3>
jmp    131b <double_exp_matrix+0x21b>
mov    -0x24(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0x24(%rbp)
jmp    12d0 <double_exp_matrix+0x1d0>
movl   $0x0,-0x24(%rbp)
mov    -0x24(%rbp),%eax
cmp    -0x4(%rbp),%eax
jae    13fb <double_exp_matrix+0x2fb>
movl   $0x0,-0x28(%rbp)
mov    -0x28(%rbp),%eax
cmp    -0x8(%rbp),%eax
jae    13e8 <double_exp_matrix+0x2e8>
movl   $0x0,-0x2c(%rbp)
mov    -0x2c(%rbp),%eax
cmp    -0x8(%rbp),%eax
jae    13d5 <double_exp_matrix+0x2d5>
mov    -0x20(%rbp),%rax
mov    -0x24(%rbp),%ecx
shl    $0x5,%rcx
add    %rcx,%rax
mov    -0x28(%rbp),%ecx
movsd  (%rax,%rcx,8),%xmm1
mov    -0x24(%rbp),%eax
mov    %eax,%ecx
lea    -0xb0(%rbp),%rax
shl    $0x5,%rcx
add    %rcx,%rax
mov    -0x2c(%rbp),%ecx
movsd  (%rax,%rcx,8),%xmm0
mov    -0x10(%rbp),%rax
mov    -0x2c(%rbp),%ecx
shl    $0x5,%rcx
add    %rcx,%rax
mov    -0x28(%rbp),%ecx
movsd  (%rax,%rcx,8),%xmm2
mulsd  %xmm2,%xmm0
addsd  %xmm1,%xmm0
mov    -0x20(%rbp),%rax
mov    -0x24(%rbp),%ecx
shl    $0x5,%rcx
add    %rcx,%rax
mov    -0x28(%rbp),%ecx
movsd  %xmm0,(%rax,%rcx,8)
mov    -0x2c(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0x2c(%rbp)
jmp    1356 <double_exp_matrix+0x256>
jmp    13da <double_exp_matrix+0x2da>
mov    -0x28(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0x28(%rbp)
jmp    1343 <double_exp_matrix+0x243>
jmp    13ed <double_exp_matrix+0x2ed>
mov    -0x24(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0x24(%rbp)
jmp    1330 <double_exp_matrix+0x230>
jmp    1400 <double_exp_matrix+0x300>
mov    -0x30(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0x30(%rbp)
jmp    1245 <double_exp_matrix+0x145>
add    $0x30,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<double_exp_matrix>:
push   %rbp
push   %r15
push   %r14
push   %r13
push   %r12
push   %rbx
sub    $0xf8,%rsp
mov    %r8,%r15
mov    %esi,%r12d
mov    %ecx,0x1c(%rsp)
test   %ecx,%ecx
mov    %edi,0x4(%rsp)
je     162b <double_exp_matrix+0x50b>
mov    %rdx,0x8(%rsp)
mov    %r12d,%r13d
mov    %edi,%eax
mov    %rax,0x20(%rsp)
test   %edi,%edi
mov    %r15,0x28(%rsp)
je     132d <double_exp_matrix+0x20d>
mov    %r13d,%r11d
and    $0xfffffffc,%r11d
lea    -0x4(%r11),%r10
mov    %r10,0x10(%rsp)
shr    $0x2,%r10
add    $0x1,%r10
mov    %r10,%rax
and    $0xfffffffffffffffe,%rax
mov    %rax,0x30(%rsp)
mov    %r13d,%r14d
and    $0x3,%r14d
mov    0x8(%rsp),%rax
lea    0x30(%rax),%rsi
lea    0x30(%r15),%rcx
xor    %r9d,%r9d
mov    %r15,%rbx
jmp    11cf <double_exp_matrix+0xaf>
cs nopw 0x0(%rax,%rax,1)
nopl   (%rax)
add    $0x1,%r9
add    $0x20,%rsi
add    $0x20,%rcx
add    $0x20,%rbx
add    $0x20,%rax
cmp    0x20(%rsp),%r9
je     132d <double_exp_matrix+0x20d>
test   %r12d,%r12d
je     11b0 <double_exp_matrix+0x90>
cmp    $0x4,%r12d
jae    11f0 <double_exp_matrix+0xd0>
xor    %edi,%edi
jmp    12a0 <double_exp_matrix+0x180>
cs nopw 0x0(%rax,%rax,1)
nopl   0x0(%rax,%rax,1)
mov    %r9,%rdi
shl    $0x5,%rdi
add    %rdi,%r15
add    0x8(%rsp),%rdi
lea    (%rdi,%r13,8),%rdx
cmp    %rdx,%r15
jae    121d <double_exp_matrix+0xfd>
lea    (%r15,%r13,8),%rdx
cmp    %rdx,%rdi
jae    121d <double_exp_matrix+0xfd>
xor    %edi,%edi
mov    0x28(%rsp),%r15
jmp    12a0 <double_exp_matrix+0x180>
cmpq   $0x0,0x10(%rsp)
je     131c <double_exp_matrix+0x1fc>
mov    0x30(%rsp),%r8
xor    %ebp,%ebp
movups -0x30(%rsi,%rbp,8),%xmm0
movups -0x20(%rsi,%rbp,8),%xmm1
movups %xmm0,-0x30(%rcx,%rbp,8)
movups %xmm1,-0x20(%rcx,%rbp,8)
movupd -0x10(%rsi,%rbp,8),%xmm0
movupd (%rsi,%rbp,8),%xmm1
movupd %xmm0,-0x10(%rcx,%rbp,8)
movupd %xmm1,(%rcx,%rbp,8)
add    $0x8,%rbp
add    $0xfffffffffffffffe,%r8
jne    1230 <double_exp_matrix+0x110>
test   $0x1,%r10b
je     1282 <double_exp_matrix+0x162>
movupd (%rdi,%rbp,8),%xmm0
movupd 0x10(%rdi,%rbp,8),%xmm1
movupd %xmm0,(%r15,%rbp,8)
movupd %xmm1,0x10(%r15,%rbp,8)
mov    %r11,%rdi
cmp    %r13,%r11
mov    0x28(%rsp),%r15
je     11b0 <double_exp_matrix+0x90>
cs nopw 0x0(%rax,%rax,1)
nopl   (%rax)
mov    %rdi,%rbp
not    %rbp
add    %r13,%rbp
test   %r14,%r14
je     12d4 <double_exp_matrix+0x1b4>
mov    %r14,%rdx
cs nopw 0x0(%rax,%rax,1)
nopl   0x0(%rax,%rax,1)
movsd  (%rax,%rdi,8),%xmm0
movsd  %xmm0,(%rbx,%rdi,8)
add    $0x1,%rdi
add    $0xffffffffffffffff,%rdx
jne    12c0 <double_exp_matrix+0x1a0>
cmp    $0x3,%rbp
jb     11b0 <double_exp_matrix+0x90>
xchg   %ax,%ax
movsd  (%rax,%rdi,8),%xmm0
movsd  %xmm0,(%rbx,%rdi,8)
movsd  0x8(%rax,%rdi,8),%xmm0
movsd  %xmm0,0x8(%rbx,%rdi,8)
movsd  0x10(%rax,%rdi,8),%xmm0
movsd  %xmm0,0x10(%rbx,%rdi,8)
movsd  0x18(%rax,%rdi,8),%xmm0
movsd  %xmm0,0x18(%rbx,%rdi,8)
add    $0x4,%rdi
cmp    %rdi,%r13
jne    12e0 <double_exp_matrix+0x1c0>
jmp    11b0 <double_exp_matrix+0x90>
xor    %ebp,%ebp
test   $0x1,%r10b
jne    126a <double_exp_matrix+0x14a>
jmp    1282 <double_exp_matrix+0x162>
cmpl   $0x2,0x1c(%rsp)
mov    0x8(%rsp),%r9
jb     1722 <double_exp_matrix+0x602>
lea    0x0(,%r13,8),%rax
mov    %rax,0x10(%rsp)
mov    0x20(%rsp),%rax
lea    -0x1(%rax),%rcx
mov    %rcx,0x50(%rsp)
mov    %eax,%ecx
and    $0xfffffffe,%ecx
mov    %rcx,0x30(%rsp)
mov    %eax,%ecx
and    $0x3,%ecx
and    $0xfffffffc,%eax
mov    %rax,0x60(%rsp)
mov    %r13d,%r14d
and    $0xfffffffe,%r14d
lea    0x60(%r15),%rax
mov    %rax,0x40(%rsp)
mov    %rcx,0x48(%rsp)
shl    $0x5,%rcx
mov    %rcx,0x68(%rsp)
lea    0x20(%r9),%rax
mov    %rax,0x58(%rsp)
mov    $0x1,%eax
jmp    13b1 <double_exp_matrix+0x291>
nopl   (%rax)
mov    0x3c(%rsp),%eax
add    $0x1,%eax
cmp    0x1c(%rsp),%eax
je     1722 <double_exp_matrix+0x602>
mov    %eax,0x3c(%rsp)
cmpl   $0x0,0x4(%rsp)
je     13a0 <double_exp_matrix+0x280>
cmpl   $0x1,0x4(%rsp)
jne    1550 <double_exp_matrix+0x430>
xor    %ebx,%ebx
testb  $0x1,0x20(%rsp)
je     13f4 <double_exp_matrix+0x2d4>
test   %r12d,%r12d
je     13f4 <double_exp_matrix+0x2d4>
shl    $0x5,%rbx
lea    (%r15,%rbx,1),%rsi
lea    (%rsp,%rbx,1),%rdi
add    $0x70,%rdi
mov    0x10(%rsp),%rdx
call   1040 <memcpy@plt>
mov    0x8(%rsp),%r9
cmpl   $0x0,0x4(%rsp)
je     13a0 <double_exp_matrix+0x280>
cmpq   $0x3,0x50(%rsp)
jae    15b9 <double_exp_matrix+0x499>
xor    %ebx,%ebx
cmpq   $0x0,0x48(%rsp)
mov    0x28(%rsp),%r15
je     1460 <double_exp_matrix+0x340>
shl    $0x5,%rbx
add    %r15,%rbx
xor    %ebp,%ebp
jmp    143b <double_exp_matrix+0x31b>
cs nopw 0x0(%rax,%rax,1)
nopl   0x0(%rax,%rax,1)
add    $0x20,%rbp
cmp    %rbp,0x68(%rsp)
je     1460 <double_exp_matrix+0x340>
test   %r12d,%r12d
je     1430 <double_exp_matrix+0x310>
lea    (%rbx,%rbp,1),%rdi
xor    %esi,%esi
mov    0x10(%rsp),%rdx
call   1030 <memset@plt>
mov    0x8(%rsp),%r9
jmp    1430 <double_exp_matrix+0x310>
nopw   0x0(%rax,%rax,1)
cmpl   $0x0,0x4(%rsp)
je     13a0 <double_exp_matrix+0x280>
lea    0x78(%rsp),%rax
xor    %r8d,%r8d
jmp    1493 <double_exp_matrix+0x373>
cs nopw 0x0(%rax,%rax,1)
nop
add    $0x1,%r8
add    $0x20,%rax
cmp    0x20(%rsp),%r8
je     13a0 <double_exp_matrix+0x280>
test   %r12d,%r12d
je     1480 <double_exp_matrix+0x360>
mov    0x58(%rsp),%rbx
xor    %esi,%esi
jmp    14bd <double_exp_matrix+0x39d>
cs nopw 0x0(%rax,%rax,1)
nopl   0x0(%rax,%rax,1)
add    $0x1,%rsi
add    $0x8,%rbx
cmp    %r13,%rsi
je     1480 <double_exp_matrix+0x360>
mov    %r8,%rcx
shl    $0x5,%rcx
lea    (%r15,%rcx,1),%rdx
lea    (%rdx,%rsi,8),%rdi
movsd  (%rdx,%rsi,8),%xmm0
cmp    $0x1,%r12d
jne    14e0 <double_exp_matrix+0x3c0>
xor    %ebp,%ebp
jmp    1521 <double_exp_matrix+0x401>
nopl   0x0(%rax,%rax,1)
mov    %rbx,%rdx
xor    %ebp,%ebp
cs nopw 0x0(%rax,%rax,1)
nop
movsd  -0x8(%rax,%rbp,8),%xmm1
mulsd  -0x20(%rdx),%xmm1
addsd  %xmm0,%xmm1
movsd  %xmm1,(%rdi)
movsd  (%rax,%rbp,8),%xmm0
mulsd  (%rdx),%xmm0
addsd  %xmm1,%xmm0
movsd  %xmm0,(%rdi)
add    $0x2,%rbp
add    $0x40,%rdx
cmp    %rbp,%r14
jne    14f0 <double_exp_matrix+0x3d0>
test   $0x1,%r13b
je     14b0 <double_exp_matrix+0x390>
add    %rsp,%rcx
add    $0x70,%rcx
movsd  (%rcx,%rbp,8),%xmm1
shl    $0x5,%rbp
add    %r9,%rbp
mulsd  0x0(%rbp,%rsi,8),%xmm1
addsd  %xmm0,%xmm1
movsd  %xmm1,(%rdi)
jmp    14b0 <double_exp_matrix+0x390>
nopl   (%rax)
mov    $0x20,%ebp
xor    %ebx,%ebx
jmp    1573 <double_exp_matrix+0x453>
nopl   0x0(%rax)
add    $0x2,%rbx
add    $0x40,%rbp
cmp    %rbx,0x30(%rsp)
je     13c9 <double_exp_matrix+0x2a9>
test   %r12d,%r12d
je     1597 <double_exp_matrix+0x477>
lea    (%r15,%rbp,1),%rsi
add    $0xffffffffffffffe0,%rsi
lea    (%rsp,%rbp,1),%rdi
add    $0x50,%rdi
mov    0x10(%rsp),%rdx
call   1040 <memcpy@plt>
mov    0x8(%rsp),%r9
test   %r12d,%r12d
je     1560 <double_exp_matrix+0x440>
lea    (%r15,%rbp,1),%rsi
lea    (%rsp,%rbp,1),%rdi
add    $0x70,%rdi
mov    0x10(%rsp),%rdx
call   1040 <memcpy@plt>
mov    0x8(%rsp),%r9
jmp    1560 <double_exp_matrix+0x440>
mov    0x40(%rsp),%r15
xor    %ebx,%ebx
jmp    15e3 <double_exp_matrix+0x4c3>
cs nopw 0x0(%rax,%rax,1)
nopl   0x0(%rax)
add    $0x4,%rbx
sub    $0xffffffffffffff80,%r15
cmp    %rbx,0x60(%rsp)
je     1409 <double_exp_matrix+0x2e9>
test   %r12d,%r12d
je     15d0 <double_exp_matrix+0x4b0>
lea    -0x60(%r15),%rdi
xor    %esi,%esi
mov    0x10(%rsp),%rbp
mov    %rbp,%rdx
call   1030 <memset@plt>
lea    -0x40(%r15),%rdi
xor    %esi,%esi
mov    %rbp,%rdx
call   1030 <memset@plt>
lea    -0x20(%r15),%rdi
xor    %esi,%esi
mov    %rbp,%rdx
call   1030 <memset@plt>
mov    %r15,%rdi
xor    %esi,%esi
mov    %rbp,%rdx
call   1030 <memset@plt>
mov    0x8(%rsp),%r9
jmp    15d0 <double_exp_matrix+0x4b0>
test   %edi,%edi
je     1722 <double_exp_matrix+0x602>
mov    0x4(%rsp),%r9d
mov    %r12d,%ecx
lea    -0x1(%rcx),%r8
mov    %ecx,%esi
and    $0x3,%esi
and    $0xfffffffc,%ecx
lea    0x18(%r15),%rdi
xor    %ebx,%ebx
movsd  0x9ab(%rip),%xmm0
jmp    1675 <double_exp_matrix+0x555>
nopw   0x0(%rax,%rax,1)
add    $0x1,%rbx
add    $0x20,%rdi
add    $0x20,%r15
cmp    %r9,%rbx
je     1722 <double_exp_matrix+0x602>
test   %r12d,%r12d
je     1660 <double_exp_matrix+0x540>
xor    %edx,%edx
cmp    $0x3,%r8
jae    16ce <double_exp_matrix+0x5ae>
test   %rsi,%rsi
je     1660 <double_exp_matrix+0x540>
lea    (%r15,%rdx,8),%rbp
mov    %rbx,%rax
sub    %rdx,%rax
xor    %edx,%edx
jmp    16af <double_exp_matrix+0x58f>
cs nopw 0x0(%rax,%rax,1)
nop
movsd  %xmm1,0x0(%rbp,%rdx,8)
add    $0x1,%rdx
cmp    %rdx,%rsi
je     1660 <double_exp_matrix+0x540>
movapd %xmm0,%xmm1
cmp    %rdx,%rax
je     16a0 <double_exp_matrix+0x580>
xorpd  %xmm1,%xmm1
jmp    16a0 <double_exp_matrix+0x580>
xchg   %ax,%ax
movsd  %xmm1,(%rdi,%rdx,8)
add    $0x4,%rdx
cmp    %rcx,%rdx
je     1682 <double_exp_matrix+0x562>
movapd %xmm0,%xmm1
cmp    %rdx,%rbx
je     16db <double_exp_matrix+0x5bb>
xorpd  %xmm1,%xmm1
movsd  %xmm1,-0x18(%rdi,%rdx,8)
lea    0x1(%rdx),%rax
movapd %xmm0,%xmm1
cmp    %rax,%rbx
je     16f2 <double_exp_matrix+0x5d2>
xorpd  %xmm1,%xmm1
movsd  %xmm1,-0x10(%rdi,%rdx,8)
lea    0x2(%rdx),%rax
movapd %xmm0,%xmm1
cmp    %rax,%rbx
je     1709 <double_exp_matrix+0x5e9>
xorpd  %xmm1,%xmm1
movsd  %xmm1,-0x8(%rdi,%rdx,8)
lea    0x3(%rdx),%rax
movapd %xmm0,%xmm1
cmp    %rax,%rbx
je     16c0 <double_exp_matrix+0x5a0>
xorpd  %xmm1,%xmm1
jmp    16c0 <double_exp_matrix+0x5a0>
add    $0xf8,%rsp
pop    %rbx
pop    %r12
pop    %r13
pop    %r14
pop    %r15
pop    %rbp
ret

LLVM IR (-O0):
define void @double_exp_matrix(i32 %0, i32 %1, [4 x double]* %2, i32 %3, [4 x double]* %4) {
%6 = alloca i32
%7 = alloca i32
%8 = alloca [4 x double]*
%9 = alloca i32
%10 = alloca [4 x double]*
%11 = alloca i32
%12 = alloca i32
%13 = alloca i32
%14 = alloca i32
%15 = alloca [4 x [4 x double]]
store i32 %0, i32* %6
store i32 %1, i32* %7
store [4 x double]* %2, [4 x double]** %8
store i32 %3, i32* %9
store [4 x double]* %4, [4 x double]** %10
%16 = load i32, i32* %9
%17 = icmp eq i32 %16, 0
br i1 %17, label %18, label %57
18: ; preds = %5
store i32 0, i32* %11
br label %19
19: ; preds = %53, %18
%20 = load i32, i32* %11
%21 = load i32, i32* %6
%22 = icmp ult i32 %20, %21
br i1 %22, label %23, label %56
23: ; preds = %19
store i32 0, i32* %12
br label %24
24: ; preds = %49, %23
%25 = load i32, i32* %12
%26 = load i32, i32* %7
%27 = icmp ult i32 %25, %26
br i1 %27, label %28, label %52
28: ; preds = %24
%29 = load i32, i32* %11
%30 = load i32, i32* %12
%31 = icmp eq i32 %29, %30
br i1 %31, label %32, label %40
32: ; preds = %28
%33 = load [4 x double]*, [4 x double]** %10
%34 = load i32, i32* %11
%35 = zext i32 %34 to i64
%36 = getelementptr inbounds [4 x double], [4 x double]* %33, i64 %35
%37 = load i32, i32* %12
%38 = zext i32 %37 to i64
%39 = getelementptr inbounds [4 x double], [4 x double]* %36, i64 0, i64 %38
store double 1.000000e+00, double* %39
br label %48
40: ; preds = %28
%41 = load [4 x double]*, [4 x double]** %10
%42 = load i32, i32* %11
%43 = zext i32 %42 to i64
%44 = getelementptr inbounds [4 x double], [4 x double]* %41, i64 %43
%45 = load i32, i32* %12
%46 = zext i32 %45 to i64
%47 = getelementptr inbounds [4 x double], [4 x double]* %44, i64 0, i64 %46
store double 0.000000e+00, double* %47
br label %48
48: ; preds = %40, %32
br label %49
49: ; preds = %48
%50 = load i32, i32* %12
%51 = add i32 %50, 1
store i32 %51, i32* %12
br label %24
52: ; preds = %24
br label %53
53: ; preds = %52
%54 = load i32, i32* %11
%55 = add i32 %54, 1
store i32 %55, i32* %11
br label %19
56: ; preds = %19
br label %218
57: ; preds = %5
store i32 0, i32* %11
br label %58
58: ; preds = %87, %57
%59 = load i32, i32* %11
%60 = load i32, i32* %6
%61 = icmp ult i32 %59, %60
br i1 %61, label %62, label %90
62: ; preds = %58
store i32 0, i32* %12
br label %63
63: ; preds = %83, %62
%64 = load i32, i32* %12
%65 = load i32, i32* %7
%66 = icmp ult i32 %64, %65
br i1 %66, label %67, label %86
67: ; preds = %63
%68 = load [4 x double]*, [4 x double]** %8
%69 = load i32, i32* %11
%70 = zext i32 %69 to i64
%71 = getelementptr inbounds [4 x double], [4 x double]* %68, i64 %70
%72 = load i32, i32* %12
%73 = zext i32 %72 to i64
%74 = getelementptr inbounds [4 x double], [4 x double]* %71, i64 0, i64 %73
%75 = load double, double* %74
%76 = load [4 x double]*, [4 x double]** %10
%77 = load i32, i32* %11
%78 = zext i32 %77 to i64
%79 = getelementptr inbounds [4 x double], [4 x double]* %76, i64 %78
%80 = load i32, i32* %12
%81 = zext i32 %80 to i64
%82 = getelementptr inbounds [4 x double], [4 x double]* %79, i64 0, i64 %81
store double %75, double* %82
br label %83
83: ; preds = %67
%84 = load i32, i32* %12
%85 = add i32 %84, 1
store i32 %85, i32* %12
br label %63
86: ; preds = %63
br label %87
87: ; preds = %86
%88 = load i32, i32* %11
%89 = add i32 %88, 1
store i32 %89, i32* %11
br label %58
90: ; preds = %58
%91 = load i32, i32* %9
%92 = icmp eq i32 %91, 1
br i1 %92, label %93, label %94
93: ; preds = %90
br label %218
94: ; preds = %90
store i32 1, i32* %14
br label %95
95: ; preds = %215, %94
%96 = load i32, i32* %14
%97 = load i32, i32* %9
%98 = icmp ult i32 %96, %97
br i1 %98, label %99, label %218
99: ; preds = %95
store i32 0, i32* %11
br label %100
100: ; preds = %128, %99
%101 = load i32, i32* %11
%102 = load i32, i32* %6
%103 = icmp ult i32 %101, %102
br i1 %103, label %104, label %131
104: ; preds = %100
store i32 0, i32* %12
br label %105
105: ; preds = %124, %104
%106 = load i32, i32* %12
%107 = load i32, i32* %7
%108 = icmp ult i32 %106, %107
br i1 %108, label %109, label %127
109: ; preds = %105
%110 = load [4 x double]*, [4 x double]** %10
%111 = load i32, i32* %11
%112 = zext i32 %111 to i64
%113 = getelementptr inbounds [4 x double], [4 x double]* %110, i64 %112
%114 = load i32, i32* %12
%115 = zext i32 %114 to i64
%116 = getelementptr inbounds [4 x double], [4 x double]* %113, i64 0, i64 %115
%117 = load double, double* %116
%118 = load i32, i32* %11
%119 = zext i32 %118 to i64
%120 = getelementptr inbounds [4 x [4 x double]], [4 x [4 x double]]* %15, i64 0, i64 %119
%121 = load i32, i32* %12
%122 = zext i32 %121 to i64
%123 = getelementptr inbounds [4 x double], [4 x double]* %120, i64 0, i64 %122
store double %117, double* %123
br label %124
124: ; preds = %109
%125 = load i32, i32* %12
%126 = add i32 %125, 1
store i32 %126, i32* %12
br label %105
127: ; preds = %105
br label %128
128: ; preds = %127
%129 = load i32, i32* %11
%130 = add i32 %129, 1
store i32 %130, i32* %11
br label %100
131: ; preds = %100
store i32 0, i32* %11
br label %132
132: ; preds = %153, %131
%133 = load i32, i32* %11
%134 = load i32, i32* %6
%135 = icmp ult i32 %133, %134
br i1 %135, label %136, label %156
136: ; preds = %132
store i32 0, i32* %12
br label %137
137: ; preds = %149, %136
%138 = load i32, i32* %12
%139 = load i32, i32* %7
%140 = icmp ult i32 %138, %139
br i1 %140, label %141, label %152
141: ; preds = %137
%142 = load [4 x double]*, [4 x double]** %10
%143 = load i32, i32* %11
%144 = zext i32 %143 to i64
%145 = getelementptr inbounds [4 x double], [4 x double]* %142, i64 %144
%146 = load i32, i32* %12
%147 = zext i32 %146 to i64
%148 = getelementptr inbounds [4 x double], [4 x double]* %145, i64 0, i64 %147
store double 0.000000e+00, double* %148
br label %149
149: ; preds = %141
%150 = load i32, i32* %12
%151 = add i32 %150, 1
store i32 %151, i32* %12
br label %137
152: ; preds = %137
br label %153
153: ; preds = %152
%154 = load i32, i32* %11
%155 = add i32 %154, 1
store i32 %155, i32* %11
br label %132
156: ; preds = %132
store i32 0, i32* %11
br label %157
157: ; preds = %211, %156
%158 = load i32, i32* %11
%159 = load i32, i32* %6
%160 = icmp ult i32 %158, %159
br i1 %160, label %161, label %214
161: ; preds = %157
store i32 0, i32* %12
br label %162
162: ; preds = %207, %161
%163 = load i32, i32* %12
%164 = load i32, i32* %7
%165 = icmp ult i32 %163, %164
br i1 %165, label %166, label %210
166: ; preds = %162
store i32 0, i32* %13
br label %167
167: ; preds = %203, %166
%168 = load i32, i32* %13
%169 = load i32, i32* %7
%170 = icmp ult i32 %168, %169
br i1 %170, label %171, label %206
171: ; preds = %167
%172 = load [4 x double]*, [4 x double]** %10
%173 = load i32, i32* %11
%174 = zext i32 %173 to i64
%175 = getelementptr inbounds [4 x double], [4 x double]* %172, i64 %174
%176 = load i32, i32* %12
%177 = zext i32 %176 to i64
%178 = getelementptr inbounds [4 x double], [4 x double]* %175, i64 0, i64 %177
%179 = load double, double* %178
%180 = load i32, i32* %11
%181 = zext i32 %180 to i64
%182 = getelementptr inbounds [4 x [4 x double]], [4 x [4 x double]]* %15, i64 0, i64 %181
%183 = load i32, i32* %13
%184 = zext i32 %183 to i64
%185 = getelementptr inbounds [4 x double], [4 x double]* %182, i64 0, i64 %184
%186 = load double, double* %185
%187 = load [4 x double]*, [4 x double]** %8
%188 = load i32, i32* %13
%189 = zext i32 %188 to i64
%190 = getelementptr inbounds [4 x double], [4 x double]* %187, i64 %189
%191 = load i32, i32* %12
%192 = zext i32 %191 to i64
%193 = getelementptr inbounds [4 x double], [4 x double]* %190, i64 0, i64 %192
%194 = load double, double* %193
%195 = call double @llvm.fmuladd.f64(double %186, double %194, double %179)
%196 = load [4 x double]*, [4 x double]** %10
%197 = load i32, i32* %11
%198 = zext i32 %197 to i64
%199 = getelementptr inbounds [4 x double], [4 x double]* %196, i64 %198
%200 = load i32, i32* %12
%201 = zext i32 %200 to i64
%202 = getelementptr inbounds [4 x double], [4 x double]* %199, i64 0, i64 %201
store double %195, double* %202
br label %203
203: ; preds = %171
%204 = load i32, i32* %13
%205 = add i32 %204, 1
store i32 %205, i32* %13
br label %167
206: ; preds = %167
br label %207
207: ; preds = %206
%208 = load i32, i32* %12
%209 = add i32 %208, 1
store i32 %209, i32* %12
br label %162
210: ; preds = %162
br label %211
211: ; preds = %210
%212 = load i32, i32* %11
%213 = add i32 %212, 1
store i32 %213, i32* %11
br label %157
214: ; preds = %157
br label %215
215: ; preds = %214
%216 = load i32, i32* %14
%217 = add i32 %216, 1
store i32 %217, i32* %14
br label %95
218: ; preds = %56, %93, %95
ret void
}

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