build_level(image, level_x_size, level_y_size, lo_filter, hi_filter,
            filter_size, result_block) int level_x_size,
    level_y_size, filter_size;
float *image, *result_block, *lo_filter, *hi_filter;
{
  float *hi_imagetemp, *lo_imagetemp, *filtertemp;
  int total_size = level_x_size * level_y_size, i;
  filtertemp = (float *)check_malloc(filter_size * sizeof(float));
  hi_imagetemp = (float *)check_malloc(total_size * sizeof(float) / 2);
  lo_imagetemp = (float *)check_malloc(total_size * sizeof(float) / 2);
  internal_filter(image, level_x_size, level_y_size, lo_filter, filtertemp,
                  filter_size, 1, 0, 2, 0, 1, lo_imagetemp, "reflect1", 0);
  internal_filter(image, level_x_size, level_y_size, hi_filter, filtertemp,
                  filter_size, 1, 1, 2, 0, 1, hi_imagetemp, "reflect1", 0);
  level_x_size /= 2;
  internal_filter(lo_imagetemp, level_x_size, level_y_size, lo_filter,
                  filtertemp, 1, filter_size, 0, 1, 0, 2, result_block,
                  "reflect1", 0);
  internal_filter(lo_imagetemp, level_x_size, level_y_size, hi_filter,
                  filtertemp, 1, filter_size, 0, 1, 1, 2,
                  (result_block += (total_size / 4)), "reflect1", 0);
  internal_filter(hi_imagetemp, level_x_size, level_y_size, lo_filter,
                  filtertemp, 1, filter_size, 0, 1, 0, 2,
                  (result_block += (total_size / 4)), "reflect1", 0);
  internal_transpose(result_block, level_y_size / 2, level_x_size);
  internal_filter(hi_imagetemp, level_x_size, level_y_size, hi_filter,
                  filtertemp, 1, filter_size, 0, 1, 1, 2,
                  (result_block += (total_size / 4)), "reflect1", 0);
  check_free((char *)filtertemp);
  check_free((char *)hi_imagetemp);
  check_free((char *)lo_imagetemp);
}


x86 assembly (clang, -O0):
<build_level>:
push   %rbp
mov    %rsp,%rbp
sub    $0xa0,%rsp
mov    0x10(%rbp),%rax
mov    %rdi,-0x10(%rbp)
mov    %esi,-0x14(%rbp)
mov    %edx,-0x18(%rbp)
mov    %rcx,-0x20(%rbp)
mov    %r8,-0x28(%rbp)
mov    %r9d,-0x2c(%rbp)
mov    -0x14(%rbp),%eax
imul   -0x18(%rbp),%eax
mov    %eax,-0x4c(%rbp)
movslq -0x2c(%rbp),%rdi
shl    $0x2,%rdi
mov    $0x0,%al
call   1050 <check_malloc@plt>
cltq
mov    %rax,-0x48(%rbp)
movslq -0x4c(%rbp),%rdi
shl    $0x2,%rdi
shr    $0x1,%rdi
mov    $0x0,%al
call   1050 <check_malloc@plt>
cltq
mov    %rax,-0x38(%rbp)
movslq -0x4c(%rbp),%rdi
shl    $0x2,%rdi
shr    $0x1,%rdi
mov    $0x0,%al
call   1050 <check_malloc@plt>
cltq
mov    %rax,-0x40(%rbp)
mov    -0x10(%rbp),%rdi
mov    -0x14(%rbp),%esi
mov    -0x18(%rbp),%edx
mov    -0x20(%rbp),%rcx
mov    -0x48(%rbp),%r8
mov    -0x2c(%rbp),%r9d
mov    -0x40(%rbp),%r10
xor    %eax,%eax
lea    0xe27(%rip),%rax
movl   $0x1,(%rsp)
movl   $0x0,0x8(%rsp)
movl   $0x2,0x10(%rsp)
movl   $0x0,0x18(%rsp)
movl   $0x1,0x20(%rsp)
mov    %r10,0x28(%rsp)
mov    %rax,0x30(%rsp)
movl   $0x0,0x38(%rsp)
mov    $0x0,%al
call   1060 <internal_filter@plt>
mov    -0x10(%rbp),%rdi
mov    -0x14(%rbp),%esi
mov    -0x18(%rbp),%edx
mov    -0x28(%rbp),%rcx
mov    -0x48(%rbp),%r8
mov    -0x2c(%rbp),%r9d
mov    -0x38(%rbp),%r10
xor    %eax,%eax
lea    0xdc4(%rip),%rax
movl   $0x1,(%rsp)
movl   $0x1,0x8(%rsp)
movl   $0x2,0x10(%rsp)
movl   $0x0,0x18(%rsp)
movl   $0x1,0x20(%rsp)
mov    %r10,0x28(%rsp)
mov    %rax,0x30(%rsp)
movl   $0x0,0x38(%rsp)
mov    $0x0,%al
call   1060 <internal_filter@plt>
mov    -0x14(%rbp),%eax
mov    $0x2,%ecx
cltd
idiv   %ecx
mov    %eax,-0x14(%rbp)
mov    -0x40(%rbp),%rdi
mov    -0x14(%rbp),%esi
mov    -0x18(%rbp),%edx
mov    -0x20(%rbp),%rcx
mov    -0x48(%rbp),%r8
mov    -0x2c(%rbp),%r11d
mov    0x10(%rbp),%r10
mov    $0x1,%r9d
xor    %eax,%eax
lea    0xd4d(%rip),%rax
mov    %r11d,(%rsp)
movl   $0x0,0x8(%rsp)
movl   $0x1,0x10(%rsp)
movl   $0x0,0x18(%rsp)
movl   $0x2,0x20(%rsp)
mov    %r10,0x28(%rsp)
mov    %rax,0x30(%rsp)
movl   $0x0,0x38(%rsp)
mov    $0x0,%al
call   1060 <internal_filter@plt>
mov    -0x40(%rbp),%rdi
mov    -0x14(%rbp),%esi
mov    -0x18(%rbp),%eax
mov    %eax,-0x5c(%rbp)
mov    -0x28(%rbp),%rcx
mov    -0x48(%rbp),%r8
mov    -0x2c(%rbp),%r11d
mov    -0x4c(%rbp),%eax
mov    $0x4,%r9d
cltd
idiv   %r9d
mov    -0x5c(%rbp),%edx
mov    0x10(%rbp),%r10
cltq
shl    $0x2,%rax
add    %rax,%r10
mov    %r10,0x10(%rbp)
mov    $0x1,%r9d
xor    %eax,%eax
lea    0xcc7(%rip),%rax
mov    %r11d,(%rsp)
movl   $0x0,0x8(%rsp)
movl   $0x1,0x10(%rsp)
movl   $0x1,0x18(%rsp)
movl   $0x2,0x20(%rsp)
mov    %r10,0x28(%rsp)
mov    %rax,0x30(%rsp)
movl   $0x0,0x38(%rsp)
mov    $0x0,%al
call   1060 <internal_filter@plt>
mov    -0x38(%rbp),%rdi
mov    -0x14(%rbp),%esi
mov    -0x18(%rbp),%eax
mov    %eax,-0x58(%rbp)
mov    -0x20(%rbp),%rcx
mov    -0x48(%rbp),%r8
mov    -0x2c(%rbp),%r11d
mov    -0x4c(%rbp),%eax
mov    $0x4,%r9d
cltd
idiv   %r9d
mov    -0x58(%rbp),%edx
mov    0x10(%rbp),%r10
cltq
shl    $0x2,%rax
add    %rax,%r10
mov    %r10,0x10(%rbp)
mov    $0x1,%r9d
xor    %eax,%eax
lea    0xc41(%rip),%rax
mov    %r11d,(%rsp)
movl   $0x0,0x8(%rsp)
movl   $0x1,0x10(%rsp)
movl   $0x0,0x18(%rsp)
movl   $0x2,0x20(%rsp)
mov    %r10,0x28(%rsp)
mov    %rax,0x30(%rsp)
movl   $0x0,0x38(%rsp)
mov    $0x0,%al
call   1060 <internal_filter@plt>
mov    0x10(%rbp),%rdi
mov    -0x18(%rbp),%eax
mov    $0x2,%ecx
cltd
idiv   %ecx
mov    %eax,%esi
mov    -0x14(%rbp),%edx
mov    $0x0,%al
call   1040 <internal_transpose@plt>
mov    -0x38(%rbp),%rdi
mov    -0x14(%rbp),%esi
mov    -0x18(%rbp),%eax
mov    %eax,-0x54(%rbp)
mov    -0x28(%rbp),%rcx
mov    -0x48(%rbp),%r8
mov    -0x2c(%rbp),%r11d
mov    -0x4c(%rbp),%eax
mov    $0x4,%r9d
cltd
idiv   %r9d
mov    -0x54(%rbp),%edx
mov    0x10(%rbp),%r10
cltq
shl    $0x2,%rax
add    %rax,%r10
mov    %r10,0x10(%rbp)
mov    $0x1,%r9d
xor    %eax,%eax
lea    0xba0(%rip),%rax
mov    %r11d,(%rsp)
movl   $0x0,0x8(%rsp)
movl   $0x1,0x10(%rsp)
movl   $0x1,0x18(%rsp)
movl   $0x2,0x20(%rsp)
mov    %r10,0x28(%rsp)
mov    %rax,0x30(%rsp)
movl   $0x0,0x38(%rsp)
mov    $0x0,%al
call   1060 <internal_filter@plt>
mov    -0x48(%rbp),%rdi
mov    $0x0,%al
call   1030 <check_free@plt>
mov    -0x38(%rbp),%rdi
mov    $0x0,%al
call   1030 <check_free@plt>
mov    -0x40(%rbp),%rdi
mov    $0x0,%al
call   1030 <check_free@plt>
mov    -0x4(%rbp),%eax
add    $0xa0,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<build_level>:
push   %rbp
push   %r15
push   %r14
push   %r13
push   %r12
push   %rbx
sub    $0x58,%rsp
mov    %r8,0x28(%rsp)
mov    %rcx,0x20(%rsp)
mov    %edx,%r13d
mov    %esi,%r12d
mov    %rdi,%r14
mov    %rdi,0x48(%rsp)
mov    0x90(%rsp),%rax
mov    %rax,0x50(%rsp)
mov    %edx,%ebx
imul   %esi,%ebx
movslq %r9d,%rax
mov    %rax,0x30(%rsp)
lea    0x0(,%rax,4),%rdi
xor    %eax,%eax
call   1050 <check_malloc@plt>
cltq
mov    %rax,0x18(%rsp)
movslq %ebx,%rax
mov    %rax,0x10(%rsp)
add    %rax,%rax
movabs $0x7ffffffffffffffe,%rbx
ff ff 7f
and    %rax,%rbx
mov    %rbx,%rdi
xor    %eax,%eax
call   1050 <check_malloc@plt>
movslq %eax,%r15
mov    %r15,0x38(%rsp)
mov    %rbx,%rdi
xor    %eax,%eax
call   1050 <check_malloc@plt>
movslq %eax,%rbp
mov    %rbp,0x40(%rsp)
lea    0xe27(%rip),%r10
mov    %r14,%rdi
mov    %r12d,%esi
mov    %r13d,%edx
mov    0x20(%rsp),%rcx
mov    0x18(%rsp),%r14
mov    %r14,%r8
mov    0x30(%rsp),%rbx
mov    %ebx,%r9d
xor    %eax,%eax
push   $0x0
push   %r10
push   %rbp
push   $0x1
push   $0x0
push   $0x2
push   $0x0
push   $0x1
call   1060 <internal_filter@plt>
add    $0x40,%rsp
mov    0x48(%rsp),%rdi
mov    %r12d,%esi
mov    %r13d,%edx
mov    %r13d,0xc(%rsp)
mov    0x28(%rsp),%rcx
mov    %r14,%r8
mov    %ebx,%r9d
xor    %eax,%eax
push   $0x0
lea    0xdc9(%rip),%rbx
push   %rbx
push   %r15
push   $0x1
push   $0x0
push   $0x2
push   $0x1
push   $0x1
call   1060 <internal_filter@plt>
add    $0x40,%rsp
mov    %r12d,%r15d
shr    $0x1f,%r15d
add    %r12d,%r15d
sar    %r15d
mov    0x40(%rsp),%rbx
mov    %rbx,%rdi
mov    %r15d,%esi
mov    %r13d,%edx
mov    0x20(%rsp),%rcx
mov    %r14,%r8
mov    $0x1,%r9d
xor    %eax,%eax
push   $0x0
lea    0xd7f(%rip),%rbp
push   %rbp
mov    0x60(%rsp),%rbp
push   %rbp
push   $0x2
push   $0x0
push   $0x1
push   $0x0
mov    0x68(%rsp),%r12
push   %r12
call   1060 <internal_filter@plt>
add    $0x40,%rsp
mov    0x10(%rsp),%rcx
lea    0x3(%rcx),%eax
test   %ecx,%ecx
cmovns %ecx,%eax
sar    $0x2,%eax
movslq %eax,%r14
lea    0x0(,%r14,4),%r13
add    %rbp,%r13
mov    %r14,0x10(%rsp)
mov    %rbx,%rdi
mov    %r15d,%esi
mov    0xc(%rsp),%edx
mov    0x28(%rsp),%rcx
mov    0x18(%rsp),%rbx
mov    %rbx,%r8
mov    $0x1,%r9d
xor    %eax,%eax
push   $0x0
lea    0xd15(%rip),%rbp
push   %rbp
push   %r13
push   $0x2
push   $0x1
push   $0x1
push   $0x0
push   %r12
call   1060 <internal_filter@plt>
add    $0x40,%rsp
lea    0x0(,%r14,4),%r10
add    %r13,%r10
mov    0x38(%rsp),%rdi
mov    %r15d,%esi
mov    0xc(%rsp),%r14d
mov    %r14d,%edx
mov    0x20(%rsp),%rcx
mov    %rbx,%r8
mov    $0x1,%r9d
xor    %eax,%eax
push   $0x0
lea    0xccb(%rip),%rbp
push   %rbp
mov    %r10,%rbx
push   %r10
push   $0x2
push   $0x0
push   $0x1
push   $0x0
push   %r12
call   1060 <internal_filter@plt>
add    $0x40,%rsp
mov    %r14d,%esi
shr    $0x1f,%esi
add    %r14d,%esi
sar    %esi
mov    %rbx,%rdi
mov    %r15d,%edx
xor    %eax,%eax
call   1040 <internal_transpose@plt>
mov    0x10(%rsp),%rax
lea    (%rbx,%rax,4),%r10
mov    0x38(%rsp),%r13
mov    %r13,%rdi
mov    %r15d,%esi
mov    %r14d,%edx
mov    0x28(%rsp),%rcx
mov    0x18(%rsp),%rbx
mov    %rbx,%r8
mov    $0x1,%r9d
xor    %eax,%eax
push   $0x0
lea    0xc65(%rip),%rbp
push   %rbp
push   %r10
push   $0x2
push   $0x1
push   $0x1
push   $0x0
push   %r12
call   1060 <internal_filter@plt>
add    $0x40,%rsp
mov    %rbx,%rdi
xor    %eax,%eax
call   1030 <check_free@plt>
mov    %r13,%rdi
xor    %eax,%eax
call   1030 <check_free@plt>
mov    0x40(%rsp),%rdi
xor    %eax,%eax
add    $0x58,%rsp
pop    %rbx
pop    %r12
pop    %r13
pop    %r14
pop    %r15
pop    %rbp
jmp    1030 <check_free@plt>

LLVM IR (-O0):
@.str = [9 x i8] c"reflect1\00"
define i32 @build_level(float* %0, i32 %1, i32 %2, float* %3, float* %4, i32 %5, float* %6) {
%8 = alloca i32
%9 = alloca float*
%10 = alloca i32
%11 = alloca i32
%12 = alloca float*
%13 = alloca float*
%14 = alloca i32
%15 = alloca float*
%16 = alloca float*
%17 = alloca float*
%18 = alloca float*
%19 = alloca i32
%20 = alloca i32
store float* %0, float** %9
store i32 %1, i32* %10
store i32 %2, i32* %11
store float* %3, float** %12
store float* %4, float** %13
store i32 %5, i32* %14
store float* %6, float** %15
%21 = load i32, i32* %10
%22 = load i32, i32* %11
%23 = mul nsw i32 %21, %22
store i32 %23, i32* %19
%24 = load i32, i32* %14
%25 = sext i32 %24 to i64
%26 = mul i64 %25, 4
%27 = call i32 (i64, ...) bitcast (i32 (...)* @check_malloc to i32 (i64, ...)*)(i64 %26)
%28 = sext i32 %27 to i64
%29 = inttoptr i64 %28 to float*
store float* %29, float** %18
%30 = load i32, i32* %19
%31 = sext i32 %30 to i64
%32 = mul i64 %31, 4
%33 = udiv i64 %32, 2
%34 = call i32 (i64, ...) bitcast (i32 (...)* @check_malloc to i32 (i64, ...)*)(i64 %33)
%35 = sext i32 %34 to i64
%36 = inttoptr i64 %35 to float*
store float* %36, float** %16
%37 = load i32, i32* %19
%38 = sext i32 %37 to i64
%39 = mul i64 %38, 4
%40 = udiv i64 %39, 2
%41 = call i32 (i64, ...) bitcast (i32 (...)* @check_malloc to i32 (i64, ...)*)(i64 %40)
%42 = sext i32 %41 to i64
%43 = inttoptr i64 %42 to float*
store float* %43, float** %17
%44 = load float*, float** %9
%45 = load i32, i32* %10
%46 = load i32, i32* %11
%47 = load float*, float** %12
%48 = load float*, float** %18
%49 = load i32, i32* %14
%50 = load float*, float** %17
%51 = call i32 (float*, i32, i32, float*, float*, i32, i32, i32, i32, i32, i32, float*, i8*, i32, ...) bitcast (i32 (...)* @internal_filter to i32 (float*, i32, i32, float*, float*, i32, i32, i32, i32, i32, i32, float*, i8*, i32, ...)*)(float* %44, i32 %45, i32 %46, float* %47, float* %48, i32 %49, i32 1, i32 0, i32 2, i32 0, i32 1, float* %50, i8* getelementptr inbounds ([9 x i8], [9 x i8]* @.str, i64 0, i64 0), i32 0)
%52 = load float*, float** %9
%53 = load i32, i32* %10
%54 = load i32, i32* %11
%55 = load float*, float** %13
%56 = load float*, float** %18
%57 = load i32, i32* %14
%58 = load float*, float** %16
%59 = call i32 (float*, i32, i32, float*, float*, i32, i32, i32, i32, i32, i32, float*, i8*, i32, ...) bitcast (i32 (...)* @internal_filter to i32 (float*, i32, i32, float*, float*, i32, i32, i32, i32, i32, i32, float*, i8*, i32, ...)*)(float* %52, i32 %53, i32 %54, float* %55, float* %56, i32 %57, i32 1, i32 1, i32 2, i32 0, i32 1, float* %58, i8* getelementptr inbounds ([9 x i8], [9 x i8]* @.str, i64 0, i64 0), i32 0)
%60 = load i32, i32* %10
%61 = sdiv i32 %60, 2
store i32 %61, i32* %10
%62 = load float*, float** %17
%63 = load i32, i32* %10
%64 = load i32, i32* %11
%65 = load float*, float** %12
%66 = load float*, float** %18
%67 = load i32, i32* %14
%68 = load float*, float** %15
%69 = call i32 (float*, i32, i32, float*, float*, i32, i32, i32, i32, i32, i32, float*, i8*, i32, ...) bitcast (i32 (...)* @internal_filter to i32 (float*, i32, i32, float*, float*, i32, i32, i32, i32, i32, i32, float*, i8*, i32, ...)*)(float* %62, i32 %63, i32 %64, float* %65, float* %66, i32 1, i32 %67, i32 0, i32 1, i32 0, i32 2, float* %68, i8* getelementptr inbounds ([9 x i8], [9 x i8]* @.str, i64 0, i64 0), i32 0)
%70 = load float*, float** %17
%71 = load i32, i32* %10
%72 = load i32, i32* %11
%73 = load float*, float** %13
%74 = load float*, float** %18
%75 = load i32, i32* %14
%76 = load i32, i32* %19
%77 = sdiv i32 %76, 4
%78 = load float*, float** %15
%79 = sext i32 %77 to i64
%80 = getelementptr inbounds float, float* %78, i64 %79
store float* %80, float** %15
%81 = call i32 (float*, i32, i32, float*, float*, i32, i32, i32, i32, i32, i32, float*, i8*, i32, ...) bitcast (i32 (...)* @internal_filter to i32 (float*, i32, i32, float*, float*, i32, i32, i32, i32, i32, i32, float*, i8*, i32, ...)*)(float* %70, i32 %71, i32 %72, float* %73, float* %74, i32 1, i32 %75, i32 0, i32 1, i32 1, i32 2, float* %80, i8* getelementptr inbounds ([9 x i8], [9 x i8]* @.str, i64 0, i64 0), i32 0)
%82 = load float*, float** %16
%83 = load i32, i32* %10
%84 = load i32, i32* %11
%85 = load float*, float** %12
%86 = load float*, float** %18
%87 = load i32, i32* %14
%88 = load i32, i32* %19
%89 = sdiv i32 %88, 4
%90 = load float*, float** %15
%91 = sext i32 %89 to i64
%92 = getelementptr inbounds float, float* %90, i64 %91
store float* %92, float** %15
%93 = call i32 (float*, i32, i32, float*, float*, i32, i32, i32, i32, i32, i32, float*, i8*, i32, ...) bitcast (i32 (...)* @internal_filter to i32 (float*, i32, i32, float*, float*, i32, i32, i32, i32, i32, i32, float*, i8*, i32, ...)*)(float* %82, i32 %83, i32 %84, float* %85, float* %86, i32 1, i32 %87, i32 0, i32 1, i32 0, i32 2, float* %92, i8* getelementptr inbounds ([9 x i8], [9 x i8]* @.str, i64 0, i64 0), i32 0)
%94 = load float*, float** %15
%95 = load i32, i32* %11
%96 = sdiv i32 %95, 2
%97 = load i32, i32* %10
%98 = call i32 (float*, i32, i32, ...) bitcast (i32 (...)* @internal_transpose to i32 (float*, i32, i32, ...)*)(float* %94, i32 %96, i32 %97)
%99 = load float*, float** %16
%100 = load i32, i32* %10
%101 = load i32, i32* %11
%102 = load float*, float** %13
%103 = load float*, float** %18
%104 = load i32, i32* %14
%105 = load i32, i32* %19
%106 = sdiv i32 %105, 4
%107 = load float*, float** %15
%108 = sext i32 %106 to i64
%109 = getelementptr inbounds float, float* %107, i64 %108
store float* %109, float** %15
%110 = call i32 (float*, i32, i32, float*, float*, i32, i32, i32, i32, i32, i32, float*, i8*, i32, ...) bitcast (i32 (...)* @internal_filter to i32 (float*, i32, i32, float*, float*, i32, i32, i32, i32, i32, i32, float*, i8*, i32, ...)*)(float* %99, i32 %100, i32 %101, float* %102, float* %103, i32 1, i32 %104, i32 0, i32 1, i32 1, i32 2, float* %109, i8* getelementptr inbounds ([9 x i8], [9 x i8]* @.str, i64 0, i64 0), i32 0)
%111 = load float*, float** %18
%112 = bitcast float* %111 to i8*
%113 = call i32 (i8*, ...) bitcast (i32 (...)* @check_free to i32 (i8*, ...)*)(i8* %112)
%114 = load float*, float** %16
%115 = bitcast float* %114 to i8*
%116 = call i32 (i8*, ...) bitcast (i32 (...)* @check_free to i32 (i8*, ...)*)(i8* %115)
%117 = load float*, float** %17
%118 = bitcast float* %117 to i8*
%119 = call i32 (i8*, ...) bitcast (i32 (...)* @check_free to i32 (i8*, ...)*)(i8* %118)
%120 = load i32, i32* %8
ret i32 %120
}

LLVM IR (-O2):
@.str = [9 x i8] c"reflect1\00"
define i32 @build_level(float* %0, i32 %1, i32 %2, float* %3, float* %4, i32 %5, float* %6) {
%8 = mul nsw i32 %2, %1
%9 = sext i32 %5 to i64
%10 = shl nsw i64 %9, 2
%11 = tail call i32 (i64, ...) bitcast (i32 (...)* @check_malloc to i32 (i64, ...)*)(i64 %10)
%12 = sext i32 %11 to i64
%13 = inttoptr i64 %12 to float*
%14 = sext i32 %8 to i64
%15 = shl nsw i64 %14, 1
%16 = and i64 %15, 9223372036854775806
%17 = tail call i32 (i64, ...) bitcast (i32 (...)* @check_malloc to i32 (i64, ...)*)(i64 %16)
%18 = sext i32 %17 to i64
%19 = inttoptr i64 %18 to float*
%20 = tail call i32 (i64, ...) bitcast (i32 (...)* @check_malloc to i32 (i64, ...)*)(i64 %16)
%21 = sext i32 %20 to i64
%22 = inttoptr i64 %21 to float*
%23 = tail call i32 (float*, i32, i32, float*, float*, i32, i32, i32, i32, i32, i32, float*, i8*, i32, ...) bitcast (i32 (...)* @internal_filter to i32 (float*, i32, i32, float*, float*, i32, i32, i32, i32, i32, i32, float*, i8*, i32, ...)*)(float* %0, i32 %1, i32 %2, float* %3, float* %13, i32 %5, i32 1, i32 0, i32 2, i32 0, i32 1, float* %22, i8* getelementptr inbounds ([9 x i8], [9 x i8]* @.str, i64 0, i64 0), i32 0)
%24 = tail call i32 (float*, i32, i32, float*, float*, i32, i32, i32, i32, i32, i32, float*, i8*, i32, ...) bitcast (i32 (...)* @internal_filter to i32 (float*, i32, i32, float*, float*, i32, i32, i32, i32, i32, i32, float*, i8*, i32, ...)*)(float* %0, i32 %1, i32 %2, float* %4, float* %13, i32 %5, i32 1, i32 1, i32 2, i32 0, i32 1, float* %19, i8* getelementptr inbounds ([9 x i8], [9 x i8]* @.str, i64 0, i64 0), i32 0)
%25 = sdiv i32 %1, 2
%26 = tail call i32 (float*, i32, i32, float*, float*, i32, i32, i32, i32, i32, i32, float*, i8*, i32, ...) bitcast (i32 (...)* @internal_filter to i32 (float*, i32, i32, float*, float*, i32, i32, i32, i32, i32, i32, float*, i8*, i32, ...)*)(float* %22, i32 %25, i32 %2, float* %3, float* %13, i32 1, i32 %5, i32 0, i32 1, i32 0, i32 2, float* %6, i8* getelementptr inbounds ([9 x i8], [9 x i8]* @.str, i64 0, i64 0), i32 0)
%27 = sdiv i32 %8, 4
%28 = sext i32 %27 to i64
%29 = getelementptr inbounds float, float* %6, i64 %28
%30 = tail call i32 (float*, i32, i32, float*, float*, i32, i32, i32, i32, i32, i32, float*, i8*, i32, ...) bitcast (i32 (...)* @internal_filter to i32 (float*, i32, i32, float*, float*, i32, i32, i32, i32, i32, i32, float*, i8*, i32, ...)*)(float* %22, i32 %25, i32 %2, float* %4, float* %13, i32 1, i32 %5, i32 0, i32 1, i32 1, i32 2, float* %29, i8* getelementptr inbounds ([9 x i8], [9 x i8]* @.str, i64 0, i64 0), i32 0)
%31 = getelementptr inbounds float, float* %29, i64 %28
%32 = tail call i32 (float*, i32, i32, float*, float*, i32, i32, i32, i32, i32, i32, float*, i8*, i32, ...) bitcast (i32 (...)* @internal_filter to i32 (float*, i32, i32, float*, float*, i32, i32, i32, i32, i32, i32, float*, i8*, i32, ...)*)(float* %19, i32 %25, i32 %2, float* %3, float* %13, i32 1, i32 %5, i32 0, i32 1, i32 0, i32 2, float* %31, i8* getelementptr inbounds ([9 x i8], [9 x i8]* @.str, i64 0, i64 0), i32 0)
%33 = sdiv i32 %2, 2
%34 = tail call i32 (float*, i32, i32, ...) bitcast (i32 (...)* @internal_transpose to i32 (float*, i32, i32, ...)*)(float* %31, i32 %33, i32 %25)
%35 = getelementptr inbounds float, float* %31, i64 %28
%36 = tail call i32 (float*, i32, i32, float*, float*, i32, i32, i32, i32, i32, i32, float*, i8*, i32, ...) bitcast (i32 (...)* @internal_filter to i32 (float*, i32, i32, float*, float*, i32, i32, i32, i32, i32, i32, float*, i8*, i32, ...)*)(float* %19, i32 %25, i32 %2, float* %4, float* %13, i32 1, i32 %5, i32 0, i32 1, i32 1, i32 2, float* %35, i8* getelementptr inbounds ([9 x i8], [9 x i8]* @.str, i64 0, i64 0), i32 0)
%37 = inttoptr i64 %12 to i8*
%38 = tail call i32 (i8*, ...) bitcast (i32 (...)* @check_free to i32 (i8*, ...)*)(i8* %37)
%39 = inttoptr i64 %18 to i8*
%40 = tail call i32 (i8*, ...) bitcast (i32 (...)* @check_free to i32 (i8*, ...)*)(i8* %39)
%41 = inttoptr i64 %21 to i8*
%42 = tail call i32 (i8*, ...) bitcast (i32 (...)* @check_free to i32 (i8*, ...)*)(i8* %41)
ret i32 undef
}