#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*/ memset(double *, int /*<<< orphan*/, int);
void copy_sym_block(double **dest, double **source, int istart, int ni,
                    int jstart, int nj) {
  int ii, jj;
  for (ii = 0; ii < ni; ii++) {
    double *di = dest[ii];
    double *si = &source[istart + ii][jstart];
    if (jstart < istart)
      for (jj = 0; jj < nj; jj++)
        di[jj] = si[jj];
    else if (jstart == istart)
      for (jj = 0; jj <= ii; jj++)
        di[jj] = dest[jj][ii] = si[jj];
    else
      for (jj = 0; jj < nj; jj++)
        di[jj] = source[jstart + jj][istart + ii];
    for (jj = nj; jj < 32; jj++)
      di[jj] = 0;
  }
  int left = 32 - ii;
  if (left)
    memset(dest[ii], 0, sizeof(double) * left * 32);
}


x86 assembly (clang, -O0):
<copy_sym_block>:
push   %rbp
mov    %rsp,%rbp
sub    $0x40,%rsp
mov    %rdi,-0x8(%rbp)
mov    %rsi,-0x10(%rbp)
mov    %edx,-0x14(%rbp)
mov    %ecx,-0x18(%rbp)
mov    %r8d,-0x1c(%rbp)
mov    %r9d,-0x20(%rbp)
movl   $0x0,-0x24(%rbp)
mov    -0x24(%rbp),%eax
cmp    -0x18(%rbp),%eax
jge    12b6 <copy_sym_block+0x1a6>
mov    -0x8(%rbp),%rax
movslq -0x24(%rbp),%rcx
mov    (%rax,%rcx,8),%rax
mov    %rax,-0x30(%rbp)
mov    -0x10(%rbp),%rax
mov    -0x14(%rbp),%ecx
add    -0x24(%rbp),%ecx
movslq %ecx,%rcx
mov    (%rax,%rcx,8),%rax
movslq -0x1c(%rbp),%rcx
shl    $0x3,%rcx
add    %rcx,%rax
mov    %rax,-0x38(%rbp)
mov    -0x1c(%rbp),%eax
cmp    -0x14(%rbp),%eax
jge    11bd <copy_sym_block+0xad>
movl   $0x0,-0x28(%rbp)
mov    -0x28(%rbp),%eax
cmp    -0x20(%rbp),%eax
jge    11b8 <copy_sym_block+0xa8>
mov    -0x38(%rbp),%rax
movslq -0x28(%rbp),%rcx
movsd  (%rax,%rcx,8),%xmm0
mov    -0x30(%rbp),%rax
movslq -0x28(%rbp),%rcx
movsd  %xmm0,(%rax,%rcx,8)
mov    -0x28(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0x28(%rbp)
jmp    1184 <copy_sym_block+0x74>
jmp    1275 <copy_sym_block+0x165>
mov    -0x1c(%rbp),%eax
cmp    -0x14(%rbp),%eax
jne    121e <copy_sym_block+0x10e>
movl   $0x0,-0x28(%rbp)
mov    -0x28(%rbp),%eax
cmp    -0x24(%rbp),%eax
jg     1219 <copy_sym_block+0x109>
mov    -0x38(%rbp),%rax
movslq -0x28(%rbp),%rcx
movsd  (%rax,%rcx,8),%xmm0
mov    -0x8(%rbp),%rax
movslq -0x28(%rbp),%rcx
mov    (%rax,%rcx,8),%rax
movslq -0x24(%rbp),%rcx
movsd  %xmm0,(%rax,%rcx,8)
mov    -0x30(%rbp),%rax
movslq -0x28(%rbp),%rcx
movsd  %xmm0,(%rax,%rcx,8)
mov    -0x28(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0x28(%rbp)
jmp    11d0 <copy_sym_block+0xc0>
jmp    1270 <copy_sym_block+0x160>
movl   $0x0,-0x28(%rbp)
mov    -0x28(%rbp),%eax
cmp    -0x20(%rbp),%eax
jge    126b <copy_sym_block+0x15b>
mov    -0x10(%rbp),%rax
mov    -0x1c(%rbp),%ecx
add    -0x28(%rbp),%ecx
movslq %ecx,%rcx
mov    (%rax,%rcx,8),%rax
mov    -0x14(%rbp),%ecx
add    -0x24(%rbp),%ecx
movslq %ecx,%rcx
movsd  (%rax,%rcx,8),%xmm0
mov    -0x30(%rbp),%rax
movslq -0x28(%rbp),%rcx
movsd  %xmm0,(%rax,%rcx,8)
mov    -0x28(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0x28(%rbp)
jmp    1225 <copy_sym_block+0x115>
jmp    1270 <copy_sym_block+0x160>
jmp    1275 <copy_sym_block+0x165>
mov    -0x20(%rbp),%eax
mov    %eax,-0x28(%rbp)
cmpl   $0x20,-0x28(%rbp)
jge    12a3 <copy_sym_block+0x193>
mov    -0x30(%rbp),%rax
movslq -0x28(%rbp),%rcx
xorps  %xmm0,%xmm0
movsd  %xmm0,(%rax,%rcx,8)
mov    -0x28(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0x28(%rbp)
jmp    127b <copy_sym_block+0x16b>
jmp    12a8 <copy_sym_block+0x198>
mov    -0x24(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0x24(%rbp)
jmp    1135 <copy_sym_block+0x25>
mov    $0x20,%eax
sub    -0x24(%rbp),%eax
mov    %eax,-0x3c(%rbp)
cmpl   $0x0,-0x3c(%rbp)
je     12ec <copy_sym_block+0x1dc>
mov    -0x8(%rbp),%rax
movslq -0x24(%rbp),%rcx
mov    (%rax,%rcx,8),%rdi
movslq -0x3c(%rbp),%rax
shl    $0x3,%rax
shl    $0x5,%rax
mov    %eax,%edx
xor    %esi,%esi
call   1030 <memset@plt>
add    $0x40,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<copy_sym_block>:
push   %rbp
push   %r15
push   %r14
push   %r13
push   %r12
push   %rbx
sub    $0xb8,%rsp
mov    %r8d,0xc(%rsp)
mov    %edx,0x8(%rsp)
mov    %rdi,%rbp
test   %ecx,%ecx
jle    15b9 <copy_sym_block+0x4a9>
mov    %r9d,%r15d
mov    %rsi,%r11
movslq 0xc(%rsp),%r14
movslq %r9d,%rdx
mov    $0x1f,%eax
sub    %edx,%eax
lea    0x8(,%rax,8),%rax
mov    %rax,0xa0(%rsp)
movslq 0x8(%rsp),%r8
mov    %ecx,0x24(%rsp)
mov    %ecx,%r12d
mov    %rdx,%rax
mov    %rdx,0xa8(%rsp)
mov    %edx,%eax
lea    (%r14,%rax,1),%rcx
mov    %rcx,0x88(%rsp)
lea    -0x1(%rax),%rcx
mov    %rcx,0x80(%rsp)
mov    %eax,%ecx
and    $0xfffffffc,%ecx
mov    %rcx,0x28(%rsp)
add    $0xfffffffffffffffc,%rcx
mov    %rcx,0x60(%rsp)
shr    $0x2,%rcx
add    $0x1,%rcx
mov    %rax,0x10(%rsp)
and    $0x3,%eax
mov    %rax,0x18(%rsp)
mov    %ecx,%eax
and    $0x3,%eax
and    $0xfffffffffffffffc,%rcx
mov    %rcx,0x38(%rsp)
lea    0x3(%r14),%rcx
mov    %rcx,0x70(%rsp)
mov    %rax,0x58(%rsp)
shl    $0x5,%rax
mov    %rax,0x50(%rsp)
lea    (%rsi,%r14,8),%rax
add    $0x18,%rax
mov    %rax,0x48(%rsp)
lea    0x1(%r14),%rax
mov    %rax,0x78(%rsp)
lea    0xe(%r14),%rax
mov    %rax,0x30(%rsp)
lea    0x2(%r14),%rax
mov    %rax,0x40(%rsp)
mov    $0x1,%r10d
xor    %r13d,%r13d
mov    %r14,0xb0(%rsp)
mov    %r8,0x98(%rsp)
mov    %r12,0x90(%rsp)
jmp    1241 <copy_sym_block+0x131>
cs nopw 0x0(%rax,%rax,1)
nopl   (%rax)
add    $0x1,%r13
add    $0x1,%r10
cmp    %r12,%r13
je     159e <copy_sym_block+0x48e>
lea    (%r8,%r13,1),%rsi
mov    0x0(%rbp,%r13,8),%rax
mov    (%r11,%rsi,8),%rbx
lea    (%rbx,%r14,8),%rcx
cmp    %r8d,%r14d
jge    1320 <copy_sym_block+0x210>
test   %r15d,%r15d
jle    1550 <copy_sym_block+0x440>
cmp    $0x4,%r15d
jb     1291 <copy_sym_block+0x181>
mov    0x88(%rsp),%rdx
lea    (%rbx,%rdx,8),%rdx
cmp    %rdx,%rax
jae    13d1 <copy_sym_block+0x2c1>
mov    0x10(%rsp),%rdx
lea    (%rax,%rdx,8),%rdx
cmp    %rdx,%rcx
jae    13d1 <copy_sym_block+0x2c1>
xor    %esi,%esi
mov    %rsi,%rdx
not    %rdx
mov    0x10(%rsp),%rdi
add    %rdi,%rdx
test   $0x3,%dil
je     12c4 <copy_sym_block+0x1b4>
mov    0x18(%rsp),%rdi
nopl   0x0(%rax)
movsd  (%rcx,%rsi,8),%xmm0
movsd  %xmm0,(%rax,%rsi,8)
add    $0x1,%rsi
add    $0xffffffffffffffff,%rdi
jne    12b0 <copy_sym_block+0x1a0>
cmp    $0x3,%rdx
jb     1550 <copy_sym_block+0x440>
mov    0x70(%rsp),%rcx
lea    (%rbx,%rcx,8),%rcx
nopw   0x0(%rax,%rax,1)
movsd  -0x18(%rcx,%rsi,8),%xmm0
movsd  %xmm0,(%rax,%rsi,8)
movsd  -0x10(%rcx,%rsi,8),%xmm0
movsd  %xmm0,0x8(%rax,%rsi,8)
movsd  -0x8(%rcx,%rsi,8),%xmm0
movsd  %xmm0,0x10(%rax,%rsi,8)
movsd  (%rcx,%rsi,8),%xmm0
movsd  %xmm0,0x18(%rax,%rsi,8)
add    $0x4,%rsi
cmp    %rsi,0x10(%rsp)
jne    12e0 <copy_sym_block+0x1d0>
jmp    1550 <copy_sym_block+0x440>
xchg   %ax,%ax
mov    0x8(%rsp),%edx
cmp    %edx,0xc(%rsp)
jne    1390 <copy_sym_block+0x280>
test   %r13,%r13
je     13ab <copy_sym_block+0x29b>
mov    %r10,%rsi
and    $0xfffffffffffffffe,%rsi
mov    0x78(%rsp),%rdx
lea    (%rbx,%rdx,8),%rdi
xor    %edx,%edx
cs nopw 0x0(%rax,%rax,1)
nopl   0x0(%rax,%rax,1)
movsd  -0x8(%rdi,%rdx,8),%xmm0
mov    0x0(%rbp,%rdx,8),%rbx
movsd  %xmm0,(%rbx,%r13,8)
movsd  %xmm0,(%rax,%rdx,8)
movsd  (%rdi,%rdx,8),%xmm0
mov    0x8(%rbp,%rdx,8),%rbx
movsd  %xmm0,(%rbx,%r13,8)
movsd  %xmm0,0x8(%rax,%rdx,8)
add    $0x2,%rdx
cmp    %rdx,%rsi
jne    1350 <copy_sym_block+0x240>
test   $0x1,%r10b
jne    13b7 <copy_sym_block+0x2a7>
jmp    1550 <copy_sym_block+0x440>
test   %r15d,%r15d
jle    1550 <copy_sym_block+0x440>
cmpq   $0x3,0x80(%rsp)
jae    13e9 <copy_sym_block+0x2d9>
xor    %ecx,%ecx
jmp    1447 <copy_sym_block+0x337>
xor    %edx,%edx
test   $0x1,%r10b
je     1550 <copy_sym_block+0x440>
movsd  (%rcx,%rdx,8),%xmm0
mov    0x0(%rbp,%rdx,8),%rcx
movsd  %xmm0,(%rcx,%r13,8)
movsd  %xmm0,(%rax,%rdx,8)
jmp    1550 <copy_sym_block+0x440>
cmpq   $0xc,0x60(%rsp)
mov    %r10,0x68(%rsp)
jae    147e <copy_sym_block+0x36e>
xor    %esi,%esi
jmp    14e8 <copy_sym_block+0x3d8>
xor    %ecx,%ecx
mov    0x28(%rsp),%rdi
mov    0x48(%rsp),%rbx
cs nopw 0x0(%rax,%rax,1)
nop
mov    -0x18(%rbx,%rcx,8),%rdx
movsd  (%rdx,%rsi,8),%xmm0
movsd  %xmm0,(%rax,%rcx,8)
mov    -0x10(%rbx,%rcx,8),%rdx
movsd  (%rdx,%rsi,8),%xmm0
movsd  %xmm0,0x8(%rax,%rcx,8)
mov    -0x8(%rbx,%rcx,8),%rdx
movsd  (%rdx,%rsi,8),%xmm0
movsd  %xmm0,0x10(%rax,%rcx,8)
mov    (%rbx,%rcx,8),%rdx
movsd  (%rdx,%rsi,8),%xmm0
movsd  %xmm0,0x18(%rax,%rcx,8)
add    $0x4,%rcx
cmp    %rcx,%rdi
jne    1400 <copy_sym_block+0x2f0>
cmpq   $0x0,0x18(%rsp)
je     1550 <copy_sym_block+0x440>
lea    (%rax,%rcx,8),%rdx
add    %r14,%rcx
lea    (%r11,%rcx,8),%rcx
xor    %edi,%edi
mov    (%rcx,%rdi,8),%rbx
movsd  (%rbx,%rsi,8),%xmm0
movsd  %xmm0,(%rdx,%rdi,8)
add    $0x1,%rdi
cmp    %rdi,0x18(%rsp)
jne    1460 <copy_sym_block+0x350>
jmp    1550 <copy_sym_block+0x440>
mov    0x30(%rsp),%rdx
lea    (%rbx,%rdx,8),%rdi
mov    0x38(%rsp),%rdx
xor    %esi,%esi
xchg   %ax,%ax
movups -0x70(%rdi,%rsi,8),%xmm0
movups -0x60(%rdi,%rsi,8),%xmm1
movups %xmm0,(%rax,%rsi,8)
movups %xmm1,0x10(%rax,%rsi,8)
movups -0x50(%rdi,%rsi,8),%xmm0
movups -0x40(%rdi,%rsi,8),%xmm1
movups %xmm0,0x20(%rax,%rsi,8)
movups %xmm1,0x30(%rax,%rsi,8)
movups -0x30(%rdi,%rsi,8),%xmm0
movups -0x20(%rdi,%rsi,8),%xmm1
movups %xmm0,0x40(%rax,%rsi,8)
movups %xmm1,0x50(%rax,%rsi,8)
movups -0x10(%rdi,%rsi,8),%xmm0
movups (%rdi,%rsi,8),%xmm1
movups %xmm0,0x60(%rax,%rsi,8)
movups %xmm1,0x70(%rax,%rsi,8)
add    $0x10,%rsi
add    $0xfffffffffffffffc,%rdx
jne    1490 <copy_sym_block+0x380>
cmpq   $0x0,0x58(%rsp)
mov    0x50(%rsp),%r10
je     152b <copy_sym_block+0x41b>
lea    (%rax,%rsi,8),%rdx
add    $0x10,%rdx
mov    0x40(%rsp),%rdi
lea    (%rbx,%rdi,8),%rdi
lea    (%rdi,%rsi,8),%rsi
xor    %edi,%edi
nopl   0x0(%rax)
movups -0x10(%rsi,%rdi,1),%xmm0
movups (%rsi,%rdi,1),%xmm1
movups %xmm0,-0x10(%rdx,%rdi,1)
movups %xmm1,(%rdx,%rdi,1)
add    $0x20,%rdi
cmp    %rdi,%r10
jne    1510 <copy_sym_block+0x400>
mov    0x28(%rsp),%rdx
mov    %rdx,%rsi
cmp    0x10(%rsp),%rdx
mov    0x68(%rsp),%r10
jne    1293 <copy_sym_block+0x183>
cs nopw 0x0(%rax,%rax,1)
nopl   (%rax)
cmp    $0x1f,%r15d
jg     1230 <copy_sym_block+0x120>
mov    0xa8(%rsp),%rcx
lea    (%rax,%rcx,8),%rdi
xor    %esi,%esi
mov    0xa0(%rsp),%rdx
mov    %r11,%r12
mov    %r10,%rbx
call   1030 <memset@plt>
mov    %rbx,%r10
mov    %r12,%r11
mov    0x90(%rsp),%r12
mov    0xb0(%rsp),%r14
mov    0x98(%rsp),%r8
jmp    1230 <copy_sym_block+0x120>
mov    0x24(%rsp),%ecx
cmp    $0x20,%ecx
jne    15bb <copy_sym_block+0x4ab>
add    $0xb8,%rsp
pop    %rbx
pop    %r12
pop    %r13
pop    %r14
pop    %r15
pop    %rbp
ret
xor    %ecx,%ecx
mov    %ecx,%eax
mov    0x0(%rbp,%rax,8),%rdi
shl    $0x8,%ecx
mov    $0x2000,%edx
sub    %ecx,%edx
xor    %esi,%esi
add    $0xb8,%rsp
pop    %rbx
pop    %r12
pop    %r13
pop    %r14
pop    %r15
pop    %rbp
jmp    1030 <memset@plt>

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

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