#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*/ fclose(int /*<<< orphan*/ *);
int /*<<< orphan*/ fflush(int /*<<< orphan*/ *);
int /*<<< orphan*/ *fopen(char const *, char *);
int /*<<< orphan*/ fprintf(int /*<<< orphan*/ *, char *, ...);
int /*<<< orphan*/ rijndaelCBC_MCT(int /*<<< orphan*/ *, int, int);
int /*<<< orphan*/ rijndaelECB_MCT(int /*<<< orphan*/ *, int, int);
void makeMCTs(const char *ecbEncryptionFile, const char *ecbDecryptionFile,
              const char *cbcEncryptionFile, const char *cbcDecryptionFile) {
  FILE *fp;
  fp = fopen(ecbEncryptionFile, "w");
  fprintf(fp,
          "\n"
          "=========================\n"
          "\n"
          "FILENAME:  \"%s\"\n"
          "\n"
          "Electronic Codebook (ECB) Mode - ENCRYPTION\n"
          "Monte Carlo Test\n"
          "\n"
          "Algorithm Name: Rijndael\n"
          "Principal Submitter: %s\n",
          ecbEncryptionFile, "Joan Daemen");
  fflush(fp);
  rijndaelECB_MCT(fp, 128, 0);
  rijndaelECB_MCT(fp, 192, 0);
  rijndaelECB_MCT(fp, 256, 0);
  fprintf(fp, "\n"
              "===========");
  fclose(fp);
  fp = fopen(ecbDecryptionFile, "w");
  fprintf(fp,
          "\n"
          "=========================\n"
          "\n"
          "FILENAME:  \"%s\"\n"
          "\n"
          "Electronic Codebook (ECB) Mode - DECRYPTION\n"
          "Monte Carlo Test\n"
          "\n"
          "Algorithm Name: Rijndael\n"
          "Principal Submitter: %s\n",
          ecbDecryptionFile, "Joan Daemen");
  fflush(fp);
  rijndaelECB_MCT(fp, 128, 1);
  rijndaelECB_MCT(fp, 192, 1);
  rijndaelECB_MCT(fp, 256, 1);
  fprintf(fp, "\n"
              "===========");
  fclose(fp);
  fp = fopen(cbcEncryptionFile, "w");
  fprintf(fp,
          "\n"
          "=========================\n"
          "\n"
          "FILENAME:  \"%s\"\n"
          "\n"
          "Cipher Block Chaining (CBC) Mode - ENCRYPTION\n"
          "Monte Carlo Test\n"
          "\n"
          "Algorithm Name: Rijndael\n"
          "Principal Submitter: %s\n",
          cbcEncryptionFile, "Joan Daemen");
  fflush(fp);
  rijndaelCBC_MCT(fp, 128, 0);
  rijndaelCBC_MCT(fp, 192, 0);
  rijndaelCBC_MCT(fp, 256, 0);
  fprintf(fp, "\n"
              "===========");
  fclose(fp);
  fp = fopen(cbcDecryptionFile, "w");
  fprintf(fp,
          "\n"
          "=========================\n"
          "\n"
          "FILENAME:  \"%s\"\n"
          "\n"
          "Cipher Block Chaining (CBC) Mode - DECRYPTION\n"
          "Monte Carlo Test\n"
          "\n"
          "Algorithm Name: Rijndael\n"
          "Principal Submitter: %s\n",
          cbcDecryptionFile, "Joan Daemen");
  fflush(fp);
  rijndaelCBC_MCT(fp, 128, 1);
  rijndaelCBC_MCT(fp, 192, 1);
  rijndaelCBC_MCT(fp, 256, 1);
  fprintf(fp, "\n"
              "===========");
  fclose(fp);
}


x86 assembly (clang, -O0):
<makeMCTs>:
push   %rbp
mov    %rsp,%rbp
sub    $0x30,%rsp
mov    %rdi,-0x8(%rbp)
mov    %rsi,-0x10(%rbp)
mov    %rdx,-0x18(%rbp)
mov    %rcx,-0x20(%rbp)
mov    -0x8(%rbp),%rdi
lea    0xe7d(%rip),%rsi
call   1080 <fopen@plt>
mov    %rax,-0x28(%rbp)
mov    -0x28(%rbp),%rdi
mov    -0x8(%rbp),%rdx
lea    0xe67(%rip),%rsi
lea    0xefd(%rip),%rcx
mov    $0x0,%al
call   1050 <fprintf@plt>
mov    -0x28(%rbp),%rdi
call   1070 <fflush@plt>
mov    -0x28(%rbp),%rdi
mov    $0x80,%esi
xor    %edx,%edx
call   1030 <rijndaelECB_MCT@plt>
mov    -0x28(%rbp),%rdi
mov    $0xc0,%esi
xor    %edx,%edx
call   1030 <rijndaelECB_MCT@plt>
mov    -0x28(%rbp),%rdi
mov    $0x100,%esi
xor    %edx,%edx
call   1030 <rijndaelECB_MCT@plt>
mov    -0x28(%rbp),%rdi
lea    0xebe(%rip),%rsi
mov    $0x0,%al
call   1050 <fprintf@plt>
mov    -0x28(%rbp),%rdi
call   1040 <fclose@plt>
mov    -0x10(%rbp),%rdi
lea    0xdf8(%rip),%rsi
call   1080 <fopen@plt>
mov    %rax,-0x28(%rbp)
mov    -0x28(%rbp),%rdi
mov    -0x10(%rbp),%rdx
lea    0xe98(%rip),%rsi
lea    0xe78(%rip),%rcx
mov    $0x0,%al
call   1050 <fprintf@plt>
mov    -0x28(%rbp),%rdi
call   1070 <fflush@plt>
mov    -0x28(%rbp),%rdi
mov    $0x80,%esi
mov    $0x1,%edx
call   1030 <rijndaelECB_MCT@plt>
mov    -0x28(%rbp),%rdi
mov    $0xc0,%esi
mov    $0x1,%edx
call   1030 <rijndaelECB_MCT@plt>
mov    -0x28(%rbp),%rdi
mov    $0x100,%esi
mov    $0x1,%edx
call   1030 <rijndaelECB_MCT@plt>
mov    -0x28(%rbp),%rdi
lea    0xe30(%rip),%rsi
mov    $0x0,%al
call   1050 <fprintf@plt>
mov    -0x28(%rbp),%rdi
call   1040 <fclose@plt>
mov    -0x18(%rbp),%rdi
lea    0xd6a(%rip),%rsi
call   1080 <fopen@plt>
mov    %rax,-0x28(%rbp)
mov    -0x28(%rbp),%rdi
mov    -0x18(%rbp),%rdx
lea    0xea7(%rip),%rsi
lea    0xdea(%rip),%rcx
mov    $0x0,%al
call   1050 <fprintf@plt>
mov    -0x28(%rbp),%rdi
call   1070 <fflush@plt>
mov    -0x28(%rbp),%rdi
mov    $0x80,%esi
xor    %edx,%edx
call   1060 <rijndaelCBC_MCT@plt>
mov    -0x28(%rbp),%rdi
mov    $0xc0,%esi
xor    %edx,%edx
call   1060 <rijndaelCBC_MCT@plt>
mov    -0x28(%rbp),%rdi
mov    $0x100,%esi
xor    %edx,%edx
call   1060 <rijndaelCBC_MCT@plt>
mov    -0x28(%rbp),%rdi
lea    0xdab(%rip),%rsi
mov    $0x0,%al
call   1050 <fprintf@plt>
mov    -0x28(%rbp),%rdi
call   1040 <fclose@plt>
mov    -0x20(%rbp),%rdi
lea    0xce5(%rip),%rsi
call   1080 <fopen@plt>
mov    %rax,-0x28(%rbp)
mov    -0x28(%rbp),%rdi
mov    -0x20(%rbp),%rdx
lea    0xec1(%rip),%rsi
lea    0xd65(%rip),%rcx
mov    $0x0,%al
call   1050 <fprintf@plt>
mov    -0x28(%rbp),%rdi
call   1070 <fflush@plt>
mov    -0x28(%rbp),%rdi
mov    $0x80,%esi
mov    $0x1,%edx
call   1060 <rijndaelCBC_MCT@plt>
mov    -0x28(%rbp),%rdi
mov    $0xc0,%esi
mov    $0x1,%edx
call   1060 <rijndaelCBC_MCT@plt>
mov    -0x28(%rbp),%rdi
mov    $0x100,%esi
mov    $0x1,%edx
call   1060 <rijndaelCBC_MCT@plt>
mov    -0x28(%rbp),%rdi
lea    0xd1d(%rip),%rsi
mov    $0x0,%al
call   1050 <fprintf@plt>
mov    -0x28(%rbp),%rdi
call   1040 <fclose@plt>
add    $0x30,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<makeMCTs>:
push   %rbp
push   %r15
push   %r14
push   %r13
push   %r12
push   %rbx
push   %rax
mov    %rcx,%r13
mov    %rdx,%r15
mov    %rsi,%rbp
mov    %rdi,%rbx
lea    0xe72(%rip),%rsi
call   1080 <fopen@plt>
mov    %rax,%r14
lea    0xe65(%rip),%rsi
lea    0xefb(%rip),%rcx
mov    %rax,%rdi
mov    %rbx,%rdx
xor    %eax,%eax
call   1050 <fprintf@plt>
mov    %r14,%rdi
call   1070 <fflush@plt>
mov    %r14,%rdi
mov    $0x80,%esi
xor    %edx,%edx
call   1030 <rijndaelECB_MCT@plt>
mov    %r14,%rdi
mov    $0xc0,%esi
xor    %edx,%edx
call   1030 <rijndaelECB_MCT@plt>
mov    %r14,%rdi
mov    $0x100,%esi
xor    %edx,%edx
call   1030 <rijndaelECB_MCT@plt>
lea    0xebe(%rip),%r12
mov    $0xc,%esi
mov    $0x1,%edx
mov    %r12,%rdi
mov    %r14,%rcx
call   1090 <fwrite@plt>
mov    %r14,%rdi
call   1040 <fclose@plt>
mov    %rbp,%rdi
lea    0xdec(%rip),%r14
mov    %r14,%rsi
call   1080 <fopen@plt>
mov    %rax,%rbx
lea    0xe92(%rip),%rsi
mov    %rax,%rdi
mov    %rbp,%rdx
lea    0xe6c(%rip),%rbp
mov    %rbp,%rcx
xor    %eax,%eax
call   1050 <fprintf@plt>
mov    %rbx,%rdi
call   1070 <fflush@plt>
mov    %rbx,%rdi
mov    $0x80,%esi
mov    $0x1,%edx
call   1030 <rijndaelECB_MCT@plt>
mov    %rbx,%rdi
mov    $0xc0,%esi
mov    $0x1,%edx
call   1030 <rijndaelECB_MCT@plt>
mov    %rbx,%rdi
mov    $0x100,%esi
mov    $0x1,%edx
call   1030 <rijndaelECB_MCT@plt>
mov    $0xc,%esi
mov    $0x1,%edx
mov    %r12,%rdi
mov    %rbx,%rcx
call   1090 <fwrite@plt>
mov    %rbx,%rdi
call   1040 <fclose@plt>
mov    %r15,%rdi
mov    %r14,%rsi
call   1080 <fopen@plt>
mov    %rax,%rbx
lea    0xea8(%rip),%rsi
mov    %rax,%rdi
mov    %r15,%rdx
mov    %rbp,%rcx
xor    %eax,%eax
call   1050 <fprintf@plt>
mov    %rbx,%rdi
call   1070 <fflush@plt>
mov    %rbx,%rdi
mov    $0x80,%esi
xor    %edx,%edx
call   1060 <rijndaelCBC_MCT@plt>
mov    %rbx,%rdi
mov    $0xc0,%esi
xor    %edx,%edx
call   1060 <rijndaelCBC_MCT@plt>
mov    %rbx,%rdi
mov    $0x100,%esi
xor    %edx,%edx
call   1060 <rijndaelCBC_MCT@plt>
mov    $0xc,%esi
mov    $0x1,%edx
mov    %r12,%rdi
mov    %rbx,%rcx
call   1090 <fwrite@plt>
mov    %rbx,%rdi
call   1040 <fclose@plt>
mov    %r13,%rdi
mov    %r14,%rsi
call   1080 <fopen@plt>
mov    %rax,%rbx
lea    0xed0(%rip),%rsi
mov    %rax,%rdi
mov    %r13,%rdx
mov    %rbp,%rcx
xor    %eax,%eax
call   1050 <fprintf@plt>
mov    %rbx,%rdi
call   1070 <fflush@plt>
mov    %rbx,%rdi
mov    $0x80,%esi
mov    $0x1,%edx
call   1060 <rijndaelCBC_MCT@plt>
mov    %rbx,%rdi
mov    $0xc0,%esi
mov    $0x1,%edx
call   1060 <rijndaelCBC_MCT@plt>
mov    %rbx,%rdi
mov    $0x100,%esi
mov    $0x1,%edx
call   1060 <rijndaelCBC_MCT@plt>
mov    $0xc,%esi
mov    $0x1,%edx
mov    %r12,%rdi
mov    %rbx,%rcx
call   1090 <fwrite@plt>
mov    %rbx,%rdi
add    $0x8,%rsp
pop    %rbx
pop    %r12
pop    %r13
pop    %r14
pop    %r15
pop    %rbp
jmp    1040 <fclose@plt>

LLVM IR (-O0):
@.str = [2 x i8] c"w\00"
@.str.1 = [157 x i8] c"\0A=========================\0A\0AFILENAME: \22%s\22\0A\0AElectronic Codebook (ECB) Mode - ENCRYPTION\0AMonte Carlo Test\0A\0AAlgorithm Name: Rijndael\0APrincipal Submitter: %s\0A\00"
@.str.2 = [12 x i8] c"Joan Daemen\00"
@.str.3 = [13 x i8] c"\0A===========\00"
@.str.4 = [157 x i8] c"\0A=========================\0A\0AFILENAME: \22%s\22\0A\0AElectronic Codebook (ECB) Mode - DECRYPTION\0AMonte Carlo Test\0A\0AAlgorithm Name: Rijndael\0APrincipal Submitter: %s\0A\00"
@.str.5 = [159 x i8] c"\0A=========================\0A\0AFILENAME: \22%s\22\0A\0ACipher Block Chaining (CBC) Mode - ENCRYPTION\0AMonte Carlo Test\0A\0AAlgorithm Name: Rijndael\0APrincipal Submitter: %s\0A\00"
@.str.6 = [159 x i8] c"\0A=========================\0A\0AFILENAME: \22%s\22\0A\0ACipher Block Chaining (CBC) Mode - DECRYPTION\0AMonte Carlo Test\0A\0AAlgorithm Name: Rijndael\0APrincipal Submitter: %s\0A\00"
define void @makeMCTs(i8* %0, i8* %1, i8* %2, i8* %3) {
%5 = alloca i8*
%6 = alloca i8*
%7 = alloca i8*
%8 = alloca i8*
%9 = alloca i32*
store i8* %0, i8** %5
store i8* %1, i8** %6
store i8* %2, i8** %7
store i8* %3, i8** %8
%10 = load i8*, i8** %5
%11 = call i32* @fopen(i8* %10, i8* getelementptr inbounds ([2 x i8], [2 x i8]* @.str, i64 0, i64 0))
store i32* %11, i32** %9
%12 = load i32*, i32** %9
%13 = load i8*, i8** %5
%14 = call i32 (i32*, i8*, ...) @fprintf(i32* %12, i8* getelementptr inbounds ([157 x i8], [157 x i8]* @.str.1, i64 0, i64 0), i8* %13, i8* getelementptr inbounds ([12 x i8], [12 x i8]* @.str.2, i64 0, i64 0))
%15 = load i32*, i32** %9
%16 = call i32 @fflush(i32* %15)
%17 = load i32*, i32** %9
%18 = call i32 @rijndaelECB_MCT(i32* %17, i32 128, i32 0)
%19 = load i32*, i32** %9
%20 = call i32 @rijndaelECB_MCT(i32* %19, i32 192, i32 0)
%21 = load i32*, i32** %9
%22 = call i32 @rijndaelECB_MCT(i32* %21, i32 256, i32 0)
%23 = load i32*, i32** %9
%24 = call i32 (i32*, i8*, ...) @fprintf(i32* %23, i8* getelementptr inbounds ([13 x i8], [13 x i8]* @.str.3, i64 0, i64 0))
%25 = load i32*, i32** %9
%26 = call i32 @fclose(i32* %25)
%27 = load i8*, i8** %6
%28 = call i32* @fopen(i8* %27, i8* getelementptr inbounds ([2 x i8], [2 x i8]* @.str, i64 0, i64 0))
store i32* %28, i32** %9
%29 = load i32*, i32** %9
%30 = load i8*, i8** %6
%31 = call i32 (i32*, i8*, ...) @fprintf(i32* %29, i8* getelementptr inbounds ([157 x i8], [157 x i8]* @.str.4, i64 0, i64 0), i8* %30, i8* getelementptr inbounds ([12 x i8], [12 x i8]* @.str.2, i64 0, i64 0))
%32 = load i32*, i32** %9
%33 = call i32 @fflush(i32* %32)
%34 = load i32*, i32** %9
%35 = call i32 @rijndaelECB_MCT(i32* %34, i32 128, i32 1)
%36 = load i32*, i32** %9
%37 = call i32 @rijndaelECB_MCT(i32* %36, i32 192, i32 1)
%38 = load i32*, i32** %9
%39 = call i32 @rijndaelECB_MCT(i32* %38, i32 256, i32 1)
%40 = load i32*, i32** %9
%41 = call i32 (i32*, i8*, ...) @fprintf(i32* %40, i8* getelementptr inbounds ([13 x i8], [13 x i8]* @.str.3, i64 0, i64 0))
%42 = load i32*, i32** %9
%43 = call i32 @fclose(i32* %42)
%44 = load i8*, i8** %7
%45 = call i32* @fopen(i8* %44, i8* getelementptr inbounds ([2 x i8], [2 x i8]* @.str, i64 0, i64 0))
store i32* %45, i32** %9
%46 = load i32*, i32** %9
%47 = load i8*, i8** %7
%48 = call i32 (i32*, i8*, ...) @fprintf(i32* %46, i8* getelementptr inbounds ([159 x i8], [159 x i8]* @.str.5, i64 0, i64 0), i8* %47, i8* getelementptr inbounds ([12 x i8], [12 x i8]* @.str.2, i64 0, i64 0))
%49 = load i32*, i32** %9
%50 = call i32 @fflush(i32* %49)
%51 = load i32*, i32** %9
%52 = call i32 @rijndaelCBC_MCT(i32* %51, i32 128, i32 0)
%53 = load i32*, i32** %9
%54 = call i32 @rijndaelCBC_MCT(i32* %53, i32 192, i32 0)
%55 = load i32*, i32** %9
%56 = call i32 @rijndaelCBC_MCT(i32* %55, i32 256, i32 0)
%57 = load i32*, i32** %9
%58 = call i32 (i32*, i8*, ...) @fprintf(i32* %57, i8* getelementptr inbounds ([13 x i8], [13 x i8]* @.str.3, i64 0, i64 0))
%59 = load i32*, i32** %9
%60 = call i32 @fclose(i32* %59)
%61 = load i8*, i8** %8
%62 = call i32* @fopen(i8* %61, i8* getelementptr inbounds ([2 x i8], [2 x i8]* @.str, i64 0, i64 0))
store i32* %62, i32** %9
%63 = load i32*, i32** %9
%64 = load i8*, i8** %8
%65 = call i32 (i32*, i8*, ...) @fprintf(i32* %63, i8* getelementptr inbounds ([159 x i8], [159 x i8]* @.str.6, i64 0, i64 0), i8* %64, i8* getelementptr inbounds ([12 x i8], [12 x i8]* @.str.2, i64 0, i64 0))
%66 = load i32*, i32** %9
%67 = call i32 @fflush(i32* %66)
%68 = load i32*, i32** %9
%69 = call i32 @rijndaelCBC_MCT(i32* %68, i32 128, i32 1)
%70 = load i32*, i32** %9
%71 = call i32 @rijndaelCBC_MCT(i32* %70, i32 192, i32 1)
%72 = load i32*, i32** %9
%73 = call i32 @rijndaelCBC_MCT(i32* %72, i32 256, i32 1)
%74 = load i32*, i32** %9
%75 = call i32 (i32*, i8*, ...) @fprintf(i32* %74, i8* getelementptr inbounds ([13 x i8], [13 x i8]* @.str.3, i64 0, i64 0))
%76 = load i32*, i32** %9
%77 = call i32 @fclose(i32* %76)
ret void
}

LLVM IR (-O2):
@.str = [2 x i8] c"w\00"
@.str.1 = [157 x i8] c"\0A=========================\0A\0AFILENAME: \22%s\22\0A\0AElectronic Codebook (ECB) Mode - ENCRYPTION\0AMonte Carlo Test\0A\0AAlgorithm Name: Rijndael\0APrincipal Submitter: %s\0A\00"
@.str.2 = [12 x i8] c"Joan Daemen\00"
@.str.3 = [13 x i8] c"\0A===========\00"
@.str.4 = [157 x i8] c"\0A=========================\0A\0AFILENAME: \22%s\22\0A\0AElectronic Codebook (ECB) Mode - DECRYPTION\0AMonte Carlo Test\0A\0AAlgorithm Name: Rijndael\0APrincipal Submitter: %s\0A\00"
@.str.5 = [159 x i8] c"\0A=========================\0A\0AFILENAME: \22%s\22\0A\0ACipher Block Chaining (CBC) Mode - ENCRYPTION\0AMonte Carlo Test\0A\0AAlgorithm Name: Rijndael\0APrincipal Submitter: %s\0A\00"
@.str.6 = [159 x i8] c"\0A=========================\0A\0AFILENAME: \22%s\22\0A\0ACipher Block Chaining (CBC) Mode - DECRYPTION\0AMonte Carlo Test\0A\0AAlgorithm Name: Rijndael\0APrincipal Submitter: %s\0A\00"
define void @makeMCTs(i8* %0, i8* %1, i8* %2, i8* %3) {
%5 = tail call i32* @fopen(i8* %0, i8* getelementptr inbounds ([2 x i8], [2 x i8]* @.str, i64 0, i64 0))
%6 = tail call i32 (i32*, i8*, ...) @fprintf(i32* %5, i8* getelementptr inbounds ([157 x i8], [157 x i8]* @.str.1, i64 0, i64 0), i8* %0, i8* getelementptr inbounds ([12 x i8], [12 x i8]* @.str.2, i64 0, i64 0))
%7 = tail call i32 @fflush(i32* %5)
%8 = tail call i32 @rijndaelECB_MCT(i32* %5, i32 128, i32 0)
%9 = tail call i32 @rijndaelECB_MCT(i32* %5, i32 192, i32 0)
%10 = tail call i32 @rijndaelECB_MCT(i32* %5, i32 256, i32 0)
%11 = tail call i64 @fwrite(i8* getelementptr inbounds ([13 x i8], [13 x i8]* @.str.3, i64 0, i64 0), i64 12, i64 1, i32* %5)
%12 = tail call i32 @fclose(i32* %5)
%13 = tail call i32* @fopen(i8* %1, i8* getelementptr inbounds ([2 x i8], [2 x i8]* @.str, i64 0, i64 0))
%14 = tail call i32 (i32*, i8*, ...) @fprintf(i32* %13, i8* getelementptr inbounds ([157 x i8], [157 x i8]* @.str.4, i64 0, i64 0), i8* %1, i8* getelementptr inbounds ([12 x i8], [12 x i8]* @.str.2, i64 0, i64 0))
%15 = tail call i32 @fflush(i32* %13)
%16 = tail call i32 @rijndaelECB_MCT(i32* %13, i32 128, i32 1)
%17 = tail call i32 @rijndaelECB_MCT(i32* %13, i32 192, i32 1)
%18 = tail call i32 @rijndaelECB_MCT(i32* %13, i32 256, i32 1)
%19 = tail call i64 @fwrite(i8* getelementptr inbounds ([13 x i8], [13 x i8]* @.str.3, i64 0, i64 0), i64 12, i64 1, i32* %13)
%20 = tail call i32 @fclose(i32* %13)
%21 = tail call i32* @fopen(i8* %2, i8* getelementptr inbounds ([2 x i8], [2 x i8]* @.str, i64 0, i64 0))
%22 = tail call i32 (i32*, i8*, ...) @fprintf(i32* %21, i8* getelementptr inbounds ([159 x i8], [159 x i8]* @.str.5, i64 0, i64 0), i8* %2, i8* getelementptr inbounds ([12 x i8], [12 x i8]* @.str.2, i64 0, i64 0))
%23 = tail call i32 @fflush(i32* %21)
%24 = tail call i32 @rijndaelCBC_MCT(i32* %21, i32 128, i32 0)
%25 = tail call i32 @rijndaelCBC_MCT(i32* %21, i32 192, i32 0)
%26 = tail call i32 @rijndaelCBC_MCT(i32* %21, i32 256, i32 0)
%27 = tail call i64 @fwrite(i8* getelementptr inbounds ([13 x i8], [13 x i8]* @.str.3, i64 0, i64 0), i64 12, i64 1, i32* %21)
%28 = tail call i32 @fclose(i32* %21)
%29 = tail call i32* @fopen(i8* %3, i8* getelementptr inbounds ([2 x i8], [2 x i8]* @.str, i64 0, i64 0))
%30 = tail call i32 (i32*, i8*, ...) @fprintf(i32* %29, i8* getelementptr inbounds ([159 x i8], [159 x i8]* @.str.6, i64 0, i64 0), i8* %3, i8* getelementptr inbounds ([12 x i8], [12 x i8]* @.str.2, i64 0, i64 0))
%31 = tail call i32 @fflush(i32* %29)
%32 = tail call i32 @rijndaelCBC_MCT(i32* %29, i32 128, i32 1)
%33 = tail call i32 @rijndaelCBC_MCT(i32* %29, i32 192, i32 1)
%34 = tail call i32 @rijndaelCBC_MCT(i32* %29, i32 256, i32 1)
%35 = tail call i64 @fwrite(i8* getelementptr inbounds ([13 x i8], [13 x i8]* @.str.3, i64 0, i64 0), i64 12, i64 1, i32* %29)
%36 = tail call i32 @fclose(i32* %29)
ret void
}