#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 */
typedef int /*<<< orphan*/ FILE;

/* Variables and functions */
int /*<<< orphan*/ _IONBF;
int /*<<< orphan*/ blend(int, int, unsigned char **, unsigned char **,
                         unsigned char **);
int /*<<< orphan*/ buff(int /*<<< orphan*/ *, int, unsigned char **);
int /*<<< orphan*/ check(int, int, unsigned char **, unsigned char **,
                         unsigned char **);
int /*<<< orphan*/ fclose(int /*<<< orphan*/ *);
int /*<<< orphan*/ *fopen(char *, char *);
int /*<<< orphan*/ fwrite(unsigned char **, int, int, int /*<<< orphan*/ *);
int /*<<< orphan*/ getThingy(unsigned char **, int, int *);
int /*<<< orphan*/ setvbuf(int /*<<< orphan*/, int /*<<< orphan*/ *,
                           int /*<<< orphan*/, int /*<<< orphan*/);
int /*<<< orphan*/ stdout;
int main() {
  setvbuf(stdout, NULL, _IONBF, 0);
  int columns, rows, size;
  unsigned char headerOne[1][54];
  unsigned char headerTwo[1][54];
  FILE *infileOne, *infileTwo, *outfileOne, *outfileTwo;
  infileOne = fopen("in1.bmp", "rb");
  infileTwo = fopen("in2.bmp", "rb");
  buff(infileOne, 54, headerOne);
  buff(infileTwo, 54, headerTwo);
  getThingy(headerOne, 18, &columns);
  getThingy(headerOne, 22, &rows);
  getThingy(headerOne, 34, &size);
  columns = columns * 3;
  unsigned char bufferOne[rows][columns];
  unsigned char bufferTwo[rows][columns];
  buff(infileOne, size, bufferOne);
  buff(infileTwo, size, bufferTwo);
  fclose(infileOne);
  fclose(infileTwo);
  outfileOne = fopen("blend.bmp", "wr");
  unsigned char bufferblend[rows][columns];
  blend(rows, columns, bufferblend, bufferOne, bufferTwo);
  fwrite(headerOne, sizeof(char), 54, outfileOne);
  fwrite(bufferblend, sizeof(char), size, outfileOne);
  fclose(outfileOne);
  outfileTwo = fopen("checker.bmp", "wr");
  unsigned char buffercheck[rows][columns];
  check(rows, columns, buffercheck, bufferOne, bufferTwo);
  fwrite(headerTwo, sizeof(char), 54, outfileTwo);
  fwrite(buffercheck, sizeof(char), size, outfileTwo);
  fclose(outfileTwo);
  return 0;
}


x86 assembly (clang, -O0):
<main>:
push   %rbp
mov    %rsp,%rbp
sub    $0x140,%rsp
movl   $0x0,-0x4(%rbp)
mov    0x2e3f(%rip),%rax
mov    (%rax),%edi
mov    0x2e46(%rip),%rax
mov    (%rax),%edx
xor    %ecx,%ecx
mov    %ecx,%esi
call   1060 <setvbuf@plt>
lea    0xe4c(%rip),%rdi
lea    0xe4d(%rip),%rsi
mov    %rsi,-0x140(%rbp)
call   1070 <fopen@plt>
mov    -0x140(%rbp),%rsi
mov    %rax,-0x98(%rbp)
lea    0xe2f(%rip),%rdi
call   1070 <fopen@plt>
mov    %rax,-0xa0(%rbp)
mov    -0x98(%rbp),%rdi
mov    $0x36,%esi
mov    %esi,-0x12c(%rbp)
lea    -0x50(%rbp),%rdx
mov    %rdx,-0x138(%rbp)
call   1040 <buff@plt>
mov    -0x12c(%rbp),%esi
mov    -0xa0(%rbp),%rdi
lea    -0x90(%rbp),%rdx
call   1040 <buff@plt>
mov    -0x138(%rbp),%rdi
mov    $0x12,%esi
lea    -0x8(%rbp),%rdx
call   1050 <getThingy@plt>
mov    -0x138(%rbp),%rdi
mov    $0x16,%esi
lea    -0xc(%rbp),%rdx
call   1050 <getThingy@plt>
mov    -0x138(%rbp),%rdi
mov    $0x22,%esi
lea    -0x10(%rbp),%rdx
call   1050 <getThingy@plt>
mov    -0x8(%rbp),%ecx
mov    %ecx,%eax
lea    (%rax,%rax,2),%eax
mov    %eax,-0x8(%rbp)
mov    -0xc(%rbp),%eax
mov    %eax,%ecx
mov    -0x8(%rbp),%eax
mov    %rsp,%rdx
mov    %rdx,-0xb8(%rbp)
mov    %rcx,%rsi
imul   %rax,%rsi
add    $0xf,%rsi
and    $0xfffffffffffffff0,%rsi
mov    %rsp,%rdx
sub    %rsi,%rdx
mov    %rdx,-0x110(%rbp)
mov    %rdx,%rsp
mov    %rcx,-0xc0(%rbp)
mov    %rax,-0xc8(%rbp)
mov    -0xc(%rbp),%eax
mov    %eax,%ecx
mov    -0x8(%rbp),%eax
mov    %rcx,%rdi
imul   %rax,%rdi
add    $0xf,%rdi
and    $0xfffffffffffffff0,%rdi
mov    %rsp,%rsi
sub    %rdi,%rsi
mov    %rsi,-0x108(%rbp)
mov    %rsi,%rsp
mov    %rcx,-0xd0(%rbp)
mov    %rax,-0xd8(%rbp)
mov    -0x98(%rbp),%rdi
mov    -0x10(%rbp),%esi
call   1040 <buff@plt>
mov    -0x108(%rbp),%rdx
mov    -0xa0(%rbp),%rdi
mov    -0x10(%rbp),%esi
call   1040 <buff@plt>
mov    -0x98(%rbp),%rdi
call   1030 <fclose@plt>
mov    -0xa0(%rbp),%rdi
call   1030 <fclose@plt>
lea    0xcee(%rip),%rdi
lea    0xcf1(%rip),%rsi
mov    %rsi,-0x118(%rbp)
call   1070 <fopen@plt>
mov    -0x110(%rbp),%rcx
mov    -0x108(%rbp),%r8
mov    %rax,-0xa8(%rbp)
mov    -0xc(%rbp),%eax
mov    %eax,%esi
mov    -0x8(%rbp),%eax
mov    %rsi,%rdi
imul   %rax,%rdi
add    $0xf,%rdi
and    $0xfffffffffffffff0,%rdi
mov    %rsp,%rdx
sub    %rdi,%rdx
mov    %rdx,-0x128(%rbp)
mov    %rdx,%rsp
mov    %rsi,-0xe0(%rbp)
mov    %rax,-0xe8(%rbp)
mov    -0xc(%rbp),%edi
mov    -0x8(%rbp),%esi
call   1080 <blend@plt>
mov    -0x138(%rbp),%rdi
mov    -0x12c(%rbp),%edx
mov    -0xa8(%rbp),%rcx
mov    $0x1,%esi
mov    %esi,-0x11c(%rbp)
call   10a0 <fwrite@plt>
mov    -0x128(%rbp),%rdi
mov    -0x11c(%rbp),%esi
mov    -0x10(%rbp),%edx
mov    -0xa8(%rbp),%rcx
call   10a0 <fwrite@plt>
mov    -0xa8(%rbp),%rdi
call   1030 <fclose@plt>
mov    -0x118(%rbp),%rsi
lea    0xc39(%rip),%rdi
call   1070 <fopen@plt>
mov    -0x110(%rbp),%rcx
mov    -0x108(%rbp),%r8
mov    %rax,-0xb0(%rbp)
mov    -0xc(%rbp),%eax
mov    %eax,%esi
mov    -0x8(%rbp),%eax
mov    %rsi,%rdi
imul   %rax,%rdi
add    $0xf,%rdi
and    $0xfffffffffffffff0,%rdi
mov    %rsp,%rdx
sub    %rdi,%rdx
mov    %rdx,-0x100(%rbp)
mov    %rdx,%rsp
mov    %rsi,-0xf0(%rbp)
mov    %rax,-0xf8(%rbp)
mov    -0xc(%rbp),%edi
mov    -0x8(%rbp),%esi
call   1090 <check@plt>
lea    -0x90(%rbp),%rdi
mov    -0xb0(%rbp),%rcx
mov    $0x1,%esi
mov    $0x36,%edx
call   10a0 <fwrite@plt>
mov    -0x100(%rbp),%rdi
mov    -0x10(%rbp),%edx
mov    -0xb0(%rbp),%rcx
mov    $0x1,%esi
call   10a0 <fwrite@plt>
mov    -0xb0(%rbp),%rdi
call   1030 <fclose@plt>
movl   $0x0,-0x4(%rbp)
mov    -0xb8(%rbp),%rax
mov    %rax,%rsp
mov    -0x4(%rbp),%eax
mov    %rbp,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<main>:
push   %rbp
mov    %rsp,%rbp
push   %r15
push   %r14
push   %r13
push   %r12
push   %rbx
sub    $0x98,%rsp
mov    0x2e3d(%rip),%rax
mov    (%rax),%edi
mov    0x2e44(%rip),%rax
mov    (%rax),%edx
xor    %esi,%esi
xor    %ecx,%ecx
call   1060 <setvbuf@plt>
lea    0xe4a(%rip),%rdi
lea    0xe4b(%rip),%rbx
mov    %rbx,%rsi
call   1070 <fopen@plt>
mov    %rax,%r13
lea    0xe3c(%rip),%rdi
mov    %rbx,%rsi
call   1070 <fopen@plt>
mov    %rax,%r14
lea    -0xc0(%rbp),%rbx
mov    %r13,%rdi
mov    $0x36,%esi
mov    %rbx,%rdx
call   1040 <buff@plt>
lea    -0x80(%rbp),%rdx
mov    %r14,%rdi
mov    $0x36,%esi
call   1040 <buff@plt>
lea    -0x2c(%rbp),%rdx
mov    %rbx,%rdi
mov    $0x12,%esi
call   1050 <getThingy@plt>
lea    -0x34(%rbp),%rdx
mov    %rbx,%rdi
mov    $0x16,%esi
call   1050 <getThingy@plt>
lea    -0x30(%rbp),%rdx
mov    %rbx,%rdi
mov    $0x22,%esi
call   1050 <getThingy@plt>
mov    %rsp,-0x40(%rbp)
mov    -0x2c(%rbp),%eax
lea    (%rax,%rax,2),%eax
mov    %eax,-0x2c(%rbp)
mov    -0x34(%rbp),%ecx
imul   %rcx,%rax
add    $0xf,%rax
and    $0xfffffffffffffff0,%rax
mov    %rsp,%r12
sub    %rax,%r12
mov    %r12,%rsp
mov    -0x34(%rbp),%eax
mov    -0x2c(%rbp),%ecx
imul   %rax,%rcx
add    $0xf,%rcx
and    $0xfffffffffffffff0,%rcx
mov    %rsp,%r15
sub    %rcx,%r15
mov    %r15,%rsp
mov    -0x30(%rbp),%esi
mov    %r13,%rdi
mov    %r12,%rdx
call   1040 <buff@plt>
mov    -0x30(%rbp),%esi
mov    %r14,%rdi
mov    %r15,%rdx
call   1040 <buff@plt>
mov    %r13,%rdi
call   1030 <fclose@plt>
mov    %r14,%rdi
call   1030 <fclose@plt>
lea    0xd6b(%rip),%rdi
lea    0xd6e(%rip),%r14
mov    %r14,%rsi
call   1070 <fopen@plt>
mov    %rax,%r13
mov    -0x34(%rbp),%edi
mov    -0x2c(%rbp),%esi
mov    %rsi,%rax
imul   %rdi,%rax
add    $0xf,%rax
and    $0xfffffffffffffff0,%rax
mov    %rsp,%rbx
sub    %rax,%rbx
mov    %rbx,%rsp
mov    %rbx,%rdx
mov    %r12,%rcx
mov    %r15,%r8
call   1080 <blend@plt>
lea    -0xc0(%rbp),%rdi
mov    $0x1,%esi
mov    $0x36,%edx
mov    %r13,%rcx
call   10a0 <fwrite@plt>
mov    -0x30(%rbp),%edx
mov    %rbx,%rdi
mov    $0x1,%esi
mov    %r13,%rcx
call   10a0 <fwrite@plt>
mov    %r13,%rdi
call   1030 <fclose@plt>
lea    0xcff(%rip),%rdi
mov    %r14,%rsi
call   1070 <fopen@plt>
mov    %rax,%r14
mov    -0x34(%rbp),%edi
mov    -0x2c(%rbp),%esi
mov    %rsi,%rax
imul   %rdi,%rax
add    $0xf,%rax
and    $0xfffffffffffffff0,%rax
mov    %rsp,%rbx
sub    %rax,%rbx
mov    %rbx,%rsp
mov    %rbx,%rdx
mov    %r12,%rcx
mov    %r15,%r8
call   1090 <check@plt>
lea    -0x80(%rbp),%rdi
mov    $0x1,%esi
mov    $0x36,%edx
mov    %r14,%rcx
call   10a0 <fwrite@plt>
mov    -0x30(%rbp),%edx
mov    %rbx,%rdi
mov    $0x1,%esi
mov    %r14,%rcx
call   10a0 <fwrite@plt>
mov    %r14,%rdi
call   1030 <fclose@plt>
mov    -0x40(%rbp),%rsp
xor    %eax,%eax
lea    -0x28(%rbp),%rsp
pop    %rbx
pop    %r12
pop    %r13
pop    %r14
pop    %r15
pop    %rbp
ret

LLVM IR (-O0):
@stdout = global i32 0
@_IONBF = global i32 0
@.str = [8 x i8] c"in1.bmp\00"
@.str.1 = [3 x i8] c"rb\00"
@.str.2 = [8 x i8] c"in2.bmp\00"
@.str.3 = [10 x i8] c"blend.bmp\00"
@.str.4 = [3 x i8] c"wr\00"
@.str.5 = [12 x i8] c"checker.bmp\00"
define i32 @main() {
%1 = alloca i32
%2 = alloca i32
%3 = alloca i32
%4 = alloca i32
%5 = alloca [1 x [54 x i8]]
%6 = alloca [1 x [54 x i8]]
%7 = alloca i32*
%8 = alloca i32*
%9 = alloca i32*
%10 = alloca i32*
%11 = alloca i8*
%12 = alloca i64
%13 = alloca i64
%14 = alloca i64
%15 = alloca i64
%16 = alloca i64
%17 = alloca i64
%18 = alloca i64
%19 = alloca i64
store i32 0, i32* %1
%20 = load i32, i32* @stdout
%21 = load i32, i32* @_IONBF
%22 = call i32 @setvbuf(i32 %20, i32* null, i32 %21, i32 0)
%23 = call i32* @fopen(i8* getelementptr inbounds ([8 x i8], [8 x i8]* @.str, i64 0, i64 0), i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str.1, i64 0, i64 0))
store i32* %23, i32** %7
%24 = call i32* @fopen(i8* getelementptr inbounds ([8 x i8], [8 x i8]* @.str.2, i64 0, i64 0), i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str.1, i64 0, i64 0))
store i32* %24, i32** %8
%25 = load i32*, i32** %7
%26 = getelementptr inbounds [1 x [54 x i8]], [1 x [54 x i8]]* %5, i64 0, i64 0
%27 = bitcast [54 x i8]* %26 to i8**
%28 = call i32 @buff(i32* %25, i32 54, i8** %27)
%29 = load i32*, i32** %8
%30 = getelementptr inbounds [1 x [54 x i8]], [1 x [54 x i8]]* %6, i64 0, i64 0
%31 = bitcast [54 x i8]* %30 to i8**
%32 = call i32 @buff(i32* %29, i32 54, i8** %31)
%33 = getelementptr inbounds [1 x [54 x i8]], [1 x [54 x i8]]* %5, i64 0, i64 0
%34 = bitcast [54 x i8]* %33 to i8**
%35 = call i32 @getThingy(i8** %34, i32 18, i32* %2)
%36 = getelementptr inbounds [1 x [54 x i8]], [1 x [54 x i8]]* %5, i64 0, i64 0
%37 = bitcast [54 x i8]* %36 to i8**
%38 = call i32 @getThingy(i8** %37, i32 22, i32* %3)
%39 = getelementptr inbounds [1 x [54 x i8]], [1 x [54 x i8]]* %5, i64 0, i64 0
%40 = bitcast [54 x i8]* %39 to i8**
%41 = call i32 @getThingy(i8** %40, i32 34, i32* %4)
%42 = load i32, i32* %2
%43 = mul nsw i32 %42, 3
store i32 %43, i32* %2
%44 = load i32, i32* %3
%45 = zext i32 %44 to i64
%46 = load i32, i32* %2
%47 = zext i32 %46 to i64
%48 = call i8* @llvm.stacksave()
store i8* %48, i8** %11
%49 = mul nuw i64 %45, %47
%50 = alloca i8, i64 %49
store i64 %45, i64* %12
store i64 %47, i64* %13
%51 = load i32, i32* %3
%52 = zext i32 %51 to i64
%53 = load i32, i32* %2
%54 = zext i32 %53 to i64
%55 = mul nuw i64 %52, %54
%56 = alloca i8, i64 %55
store i64 %52, i64* %14
store i64 %54, i64* %15
%57 = load i32*, i32** %7
%58 = load i32, i32* %4
%59 = bitcast i8* %50 to i8**
%60 = call i32 @buff(i32* %57, i32 %58, i8** %59)
%61 = load i32*, i32** %8
%62 = load i32, i32* %4
%63 = bitcast i8* %56 to i8**
%64 = call i32 @buff(i32* %61, i32 %62, i8** %63)
%65 = load i32*, i32** %7
%66 = call i32 @fclose(i32* %65)
%67 = load i32*, i32** %8
%68 = call i32 @fclose(i32* %67)
%69 = call i32* @fopen(i8* getelementptr inbounds ([10 x i8], [10 x i8]* @.str.3, i64 0, i64 0), i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str.4, i64 0, i64 0))
store i32* %69, i32** %9
%70 = load i32, i32* %3
%71 = zext i32 %70 to i64
%72 = load i32, i32* %2
%73 = zext i32 %72 to i64
%74 = mul nuw i64 %71, %73
%75 = alloca i8, i64 %74
store i64 %71, i64* %16
store i64 %73, i64* %17
%76 = load i32, i32* %3
%77 = load i32, i32* %2
%78 = bitcast i8* %75 to i8**
%79 = bitcast i8* %50 to i8**
%80 = bitcast i8* %56 to i8**
%81 = call i32 @blend(i32 %76, i32 %77, i8** %78, i8** %79, i8** %80)
%82 = getelementptr inbounds [1 x [54 x i8]], [1 x [54 x i8]]* %5, i64 0, i64 0
%83 = bitcast [54 x i8]* %82 to i8**
%84 = load i32*, i32** %9
%85 = call i32 @fwrite(i8** %83, i32 1, i32 54, i32* %84)
%86 = bitcast i8* %75 to i8**
%87 = load i32, i32* %4
%88 = load i32*, i32** %9
%89 = call i32 @fwrite(i8** %86, i32 1, i32 %87, i32* %88)
%90 = load i32*, i32** %9
%91 = call i32 @fclose(i32* %90)
%92 = call i32* @fopen(i8* getelementptr inbounds ([12 x i8], [12 x i8]* @.str.5, i64 0, i64 0), i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str.4, i64 0, i64 0))
store i32* %92, i32** %10
%93 = load i32, i32* %3
%94 = zext i32 %93 to i64
%95 = load i32, i32* %2
%96 = zext i32 %95 to i64
%97 = mul nuw i64 %94, %96
%98 = alloca i8, i64 %97
store i64 %94, i64* %18
store i64 %96, i64* %19
%99 = load i32, i32* %3
%100 = load i32, i32* %2
%101 = bitcast i8* %98 to i8**
%102 = bitcast i8* %50 to i8**
%103 = bitcast i8* %56 to i8**
%104 = call i32 @check(i32 %99, i32 %100, i8** %101, i8** %102, i8** %103)
%105 = getelementptr inbounds [1 x [54 x i8]], [1 x [54 x i8]]* %6, i64 0, i64 0
%106 = bitcast [54 x i8]* %105 to i8**
%107 = load i32*, i32** %10
%108 = call i32 @fwrite(i8** %106, i32 1, i32 54, i32* %107)
%109 = bitcast i8* %98 to i8**
%110 = load i32, i32* %4
%111 = load i32*, i32** %10
%112 = call i32 @fwrite(i8** %109, i32 1, i32 %110, i32* %111)
%113 = load i32*, i32** %10
%114 = call i32 @fclose(i32* %113)
store i32 0, i32* %1
%115 = load i8*, i8** %11
%116 = load i32, i32* %1
ret i32 %116
}

LLVM IR (-O2):
@stdout = global i32 0
@_IONBF = global i32 0
@.str = [8 x i8] c"in1.bmp\00"
@.str.1 = [3 x i8] c"rb\00"
@.str.2 = [8 x i8] c"in2.bmp\00"
@.str.3 = [10 x i8] c"blend.bmp\00"
@.str.4 = [3 x i8] c"wr\00"
@.str.5 = [12 x i8] c"checker.bmp\00"
define i32 @main() {
%1 = alloca i32
%2 = alloca i32
%3 = alloca i32
%4 = alloca [1 x [54 x i8]]
%5 = alloca [1 x [54 x i8]]
%6 = load i32, i32* @stdout
%7 = load i32, i32* @_IONBF
%8 = tail call i32 @setvbuf(i32 %6, i32* null, i32 %7, i32 0)
%9 = bitcast i32* %1 to i8*
%10 = bitcast i32* %2 to i8*
%11 = bitcast i32* %3 to i8*
%12 = getelementptr inbounds [1 x [54 x i8]], [1 x [54 x i8]]* %4, i64 0, i64 0, i64 0
%13 = getelementptr inbounds [1 x [54 x i8]], [1 x [54 x i8]]* %5, i64 0, i64 0, i64 0
%14 = tail call i32* @fopen(i8* getelementptr inbounds ([8 x i8], [8 x i8]* @.str, i64 0, i64 0), i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str.1, i64 0, i64 0))
%15 = tail call i32* @fopen(i8* getelementptr inbounds ([8 x i8], [8 x i8]* @.str.2, i64 0, i64 0), i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str.1, i64 0, i64 0))
%16 = bitcast [1 x [54 x i8]]* %4 to i8**
%17 = call i32 @buff(i32* %14, i32 54, i8** %16)
%18 = bitcast [1 x [54 x i8]]* %5 to i8**
%19 = call i32 @buff(i32* %15, i32 54, i8** %18)
%20 = call i32 @getThingy(i8** %16, i32 18, i32* %1)
%21 = call i32 @getThingy(i8** %16, i32 22, i32* %2)
%22 = call i32 @getThingy(i8** %16, i32 34, i32* %3)
%23 = load i32, i32* %1
%24 = mul nsw i32 %23, 3
store i32 %24, i32* %1
%25 = load i32, i32* %2
%26 = zext i32 %25 to i64
%27 = zext i32 %24 to i64
%28 = call i8* @llvm.stacksave()
%29 = mul nuw i64 %26, %27
%30 = alloca i8, i64 %29
%31 = load i32, i32* %2
%32 = zext i32 %31 to i64
%33 = load i32, i32* %1
%34 = zext i32 %33 to i64
%35 = mul nuw i64 %34, %32
%36 = alloca i8, i64 %35
%37 = load i32, i32* %3
%38 = bitcast i8* %30 to i8**
%39 = call i32 @buff(i32* %14, i32 %37, i8** %38)
%40 = load i32, i32* %3
%41 = bitcast i8* %36 to i8**
%42 = call i32 @buff(i32* %15, i32 %40, i8** %41)
%43 = call i32 @fclose(i32* %14)
%44 = call i32 @fclose(i32* %15)
%45 = call i32* @fopen(i8* getelementptr inbounds ([10 x i8], [10 x i8]* @.str.3, i64 0, i64 0), i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str.4, i64 0, i64 0))
%46 = load i32, i32* %2
%47 = zext i32 %46 to i64
%48 = load i32, i32* %1
%49 = zext i32 %48 to i64
%50 = mul nuw i64 %49, %47
%51 = alloca i8, i64 %50
%52 = bitcast i8* %51 to i8**
%53 = call i32 @blend(i32 %46, i32 %48, i8** %52, i8** %38, i8** %41)
%54 = call i32 @fwrite(i8** %16, i32 1, i32 54, i32* %45)
%55 = load i32, i32* %3
%56 = call i32 @fwrite(i8** %52, i32 1, i32 %55, i32* %45)
%57 = call i32 @fclose(i32* %45)
%58 = call i32* @fopen(i8* getelementptr inbounds ([12 x i8], [12 x i8]* @.str.5, i64 0, i64 0), i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str.4, i64 0, i64 0))
%59 = load i32, i32* %2
%60 = zext i32 %59 to i64
%61 = load i32, i32* %1
%62 = zext i32 %61 to i64
%63 = mul nuw i64 %62, %60
%64 = alloca i8, i64 %63
%65 = bitcast i8* %64 to i8**
%66 = call i32 @check(i32 %59, i32 %61, i8** %65, i8** %38, i8** %41)
%67 = call i32 @fwrite(i8** %18, i32 1, i32 54, i32* %58)
%68 = load i32, i32* %3
%69 = call i32 @fwrite(i8** %65, i32 1, i32 %68, i32* %58)
%70 = call i32 @fclose(i32* %58)
ret i32 0
}