#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*/ cbc_decipher(unsigned char *, unsigned char *,
                                unsigned char *, int);
int /*<<< orphan*/ cbc_encipher(unsigned char *, unsigned char *,
                                unsigned char *, int);
int /*<<< orphan*/ fprintf(int /*<<< orphan*/, char *, ...);
int /*<<< orphan*/ stdout;
int main(int argc, char **argv) {
  unsigned char destmp[1000], desptx[1000], desctx[1000], deskey[8];
  int i;
  fprintf(stdout, "Enciphering with DES in CBC mode\n");
  deskey[0] = 0x01;
  deskey[1] = 0xf1;
  deskey[2] = 0x23;
  deskey[3] = 0x4a;
  deskey[4] = 0x1f;
  deskey[5] = 0x22;
  deskey[6] = 0x00;
  deskey[7] = 0xee;
  for (i = 0; i < 1000; i++)
    destmp[i] = (i * 23) % 256;
  cbc_encipher(destmp, desctx, deskey, 1000);
  cbc_decipher(desctx, desptx, deskey, 1000);
  fprintf(stdout, "deskey: %02x %02x %02x %02x %02x %02x %02x %02x\n",
          deskey[0], deskey[1], deskey[2], deskey[3], deskey[4], deskey[5],
          deskey[6], deskey[7]);
  for (i = 0; i < 1000; i++) {
    if (destmp[i] == desptx[i])
      fprintf(stdout,
              "destmp[%03d]=%02x, desctx[%03d]=%02x, desptx[%03d]="
              "%02x (OK)\n",
              i, destmp[i], i, desctx[i], i, desptx[i]);
    else
      fprintf(stdout,
              "destmp[%03d]=%02x, desctx[%03d]=%02x, desptx[%03d]="
              "%02x (ERROR)\n",
              i, destmp[i], i, desctx[i], i, desptx[i]);
  }
  return 0;
}


x86 assembly (clang, -O0):
<main>:
push   %rbp
mov    %rsp,%rbp
push   %rbx
sub    $0xc08,%rsp
movl   $0x0,-0xc(%rbp)
mov    %edi,-0x10(%rbp)
mov    %rsi,-0x18(%rbp)
mov    0x2e8f(%rip),%rax
mov    (%rax),%edi
lea    0xea6(%rip),%rsi
mov    $0x0,%al
call   1050 <fprintf@plt>
movb   $0x1,-0xbe8(%rbp)
movb   $0xf1,-0xbe7(%rbp)
movb   $0x23,-0xbe6(%rbp)
movb   $0x4a,-0xbe5(%rbp)
movb   $0x1f,-0xbe4(%rbp)
movb   $0x22,-0xbe3(%rbp)
movb   $0x0,-0xbe2(%rbp)
movb   $0xee,-0xbe1(%rbp)
movl   $0x0,-0xbec(%rbp)
cmpl   $0x3e8,-0xbec(%rbp)
jge    11e6 <main+0xb6>
imul   $0x17,-0xbec(%rbp),%eax
mov    $0x100,%ecx
cltd
idiv   %ecx
mov    %dl,%cl
movslq -0xbec(%rbp),%rax
mov    %cl,-0x400(%rbp,%rax,1)
mov    -0xbec(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0xbec(%rbp)
jmp    11a3 <main+0x73>
lea    -0x400(%rbp),%rdi
lea    -0xbe0(%rbp),%rsi
lea    -0xbe8(%rbp),%rdx
mov    $0x3e8,%ecx
call   1030 <cbc_encipher@plt>
lea    -0xbe0(%rbp),%rdi
lea    -0x7f0(%rbp),%rsi
lea    -0xbe8(%rbp),%rdx
mov    $0x3e8,%ecx
call   1040 <cbc_decipher@plt>
mov    0x2db5(%rip),%rax
mov    (%rax),%edi
movzbl -0xbe8(%rbp),%edx
movzbl -0xbe7(%rbp),%ecx
movzbl -0xbe6(%rbp),%r8d
ff
movzbl -0xbe5(%rbp),%r9d
ff
movzbl -0xbe4(%rbp),%ebx
movzbl -0xbe3(%rbp),%r11d
ff
movzbl -0xbe2(%rbp),%r10d
ff
movzbl -0xbe1(%rbp),%eax
lea    0xdb2(%rip),%rsi
mov    %ebx,(%rsp)
mov    %r11d,0x8(%rsp)
mov    %r10d,0x10(%rsp)
mov    %eax,0x18(%rsp)
mov    $0x0,%al
call   1050 <fprintf@plt>
movl   $0x0,-0xbec(%rbp)
cmpl   $0x3e8,-0xbec(%rbp)
jge    13a8 <main+0x278>
movslq -0xbec(%rbp),%rax
movzbl -0x400(%rbp,%rax,1),%eax
ff
movslq -0xbec(%rbp),%rcx
movzbl -0x7f0(%rbp,%rcx,1),%ecx
ff
cmp    %ecx,%eax
jne    132e <main+0x1fe>
mov    0x2d11(%rip),%rax
mov    (%rax),%edi
mov    -0xbec(%rbp),%edx
movslq -0xbec(%rbp),%rax
movzbl -0x400(%rbp,%rax,1),%ecx
ff
mov    -0xbec(%rbp),%r8d
movslq -0xbec(%rbp),%rax
movzbl -0xbe0(%rbp,%rax,1),%r9d
ff ff
mov    -0xbec(%rbp),%r10d
movslq -0xbec(%rbp),%rax
movzbl -0x7f0(%rbp,%rax,1),%eax
ff
lea    0xd39(%rip),%rsi
mov    %r10d,(%rsp)
mov    %eax,0x8(%rsp)
mov    $0x0,%al
call   1050 <fprintf@plt>
jmp    138f <main+0x25f>
mov    0x2cab(%rip),%rax
mov    (%rax),%edi
mov    -0xbec(%rbp),%edx
movslq -0xbec(%rbp),%rax
movzbl -0x400(%rbp,%rax,1),%ecx
ff
mov    -0xbec(%rbp),%r8d
movslq -0xbec(%rbp),%rax
movzbl -0xbe0(%rbp,%rax,1),%r9d
ff ff
mov    -0xbec(%rbp),%r10d
movslq -0xbec(%rbp),%rax
movzbl -0x7f0(%rbp,%rax,1),%eax
ff
lea    0xd11(%rip),%rsi
mov    %r10d,(%rsp)
mov    %eax,0x8(%rsp)
mov    $0x0,%al
call   1050 <fprintf@plt>
jmp    1394 <main+0x264>
mov    -0xbec(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0xbec(%rbp)
jmp    1292 <main+0x162>
xor    %eax,%eax
add    $0xc08,%rsp
pop    %rbx
pop    %rbp
ret

x86 assembly (clang, -O2):
<main>:
push   %r15
push   %r14
push   %r12
push   %rbx
sub    $0xbd8,%rsp
mov    0x2e9b(%rip),%r15
mov    (%r15),%edi
lea    0xf01(%rip),%rsi
xor    %eax,%eax
call   1050 <fprintf@plt>
movabs $0xee00221f4a23f101,%rax
mov    %rax,0x8(%rsp)
movdqa 0xe93(%rip),%xmm0
mov    $0x10,%eax
movdqa 0xe96(%rip),%xmm1
movdqa 0xe9e(%rip),%xmm2
movdqa 0xea6(%rip),%xmm3
movdqa 0xeae(%rip),%xmm4
cs nopw 0x0(%rax,%rax,1)
nopl   0x0(%rax)
movdqa %xmm0,%xmm5
punpckhbw %xmm5,%xmm5
pmullw %xmm1,%xmm5
pand   %xmm2,%xmm5
movdqa %xmm0,%xmm6
punpcklbw %xmm6,%xmm6
pmullw %xmm1,%xmm6
pand   %xmm2,%xmm6
packuswb %xmm5,%xmm6
movdqa %xmm6,(%rsp,%rax,1)
paddb  %xmm3,%xmm6
movdqa %xmm6,0x10(%rsp,%rax,1)
paddb  %xmm4,%xmm0
add    $0x20,%rax
cmp    $0x3f0,%rax
jne    11a0 <main+0x70>
movabs $0xc1aa937c654e3720,%rax
93 aa c1
mov    %rax,0x3f0(%rsp)
lea    0x10(%rsp),%rdi
lea    0x400(%rsp),%rbx
lea    0x8(%rsp),%r14
mov    %rbx,%rsi
mov    %r14,%rdx
mov    $0x3e8,%ecx
call   1030 <cbc_encipher@plt>
lea    0x7f0(%rsp),%rsi
mov    %rbx,%rdi
mov    %r14,%rdx
mov    $0x3e8,%ecx
call   1040 <cbc_decipher@plt>
mov    (%r15),%edi
movzbl 0x8(%rsp),%edx
movzbl 0x9(%rsp),%ecx
movzbl 0xa(%rsp),%r8d
movzbl 0xb(%rsp),%r9d
movzbl 0xc(%rsp),%r10d
movzbl 0xd(%rsp),%r11d
movzbl 0xe(%rsp),%r14d
movzbl 0xf(%rsp),%ebx
lea    0xe0c(%rip),%rsi
xor    %eax,%eax
push   %rbx
push   %r14
push   %r11
push   %r10
call   1050 <fprintf@plt>
add    $0x20,%rsp
lea    0xe24(%rip),%r14
lea    0xe5b(%rip),%r12
xor    %ebx,%ebx
nopl   0x0(%rax,%rax,1)
movzbl 0x10(%rsp,%rbx,1),%ecx
movzbl 0x7f0(%rsp,%rbx,1),%r10d
cmp    %r10b,%cl
mov    (%r15),%edi
movzbl 0x400(%rsp,%rbx,1),%r9d
mov    %r12,%rsi
cmove  %r14,%rsi
mov    %ebx,%edx
mov    %ebx,%r8d
xor    %eax,%eax
push   %r10
push   %rbx
call   1050 <fprintf@plt>
add    $0x10,%rsp
add    $0x1,%rbx
cmp    $0x3e8,%rbx
jne    1290 <main+0x160>
xor    %eax,%eax
add    $0xbd8,%rsp
pop    %rbx
pop    %r12
pop    %r14
pop    %r15
ret

LLVM IR (-O0):
@stdout = global i32 0
@.str = [34 x i8] c"Enciphering with DES in CBC mode\0A\00"
@.str.1 = [49 x i8] c"deskey: %02x %02x %02x %02x %02x %02x %02x %02x\0A\00"
@.str.2 = [62 x i8] c"destmp[%03d]=%02x, desctx[%03d]=%02x, desptx[%03d]=%02x (OK)\0A\00"
@.str.3 = [65 x i8] c"destmp[%03d]=%02x, desctx[%03d]=%02x, desptx[%03d]=%02x (ERROR)\0A\00"
define i32 @main(i32 %0, i8** %1) {
%3 = alloca i32
%4 = alloca i32
%5 = alloca i8**
%6 = alloca [1000 x i8]
%7 = alloca [1000 x i8]
%8 = alloca [1000 x i8]
%9 = alloca [8 x i8]
%10 = alloca i32
store i32 0, i32* %3
store i32 %0, i32* %4
store i8** %1, i8*** %5
%11 = load i32, i32* @stdout
%12 = call i32 (i32, i8*, ...) @fprintf(i32 %11, i8* getelementptr inbounds ([34 x i8], [34 x i8]* @.str, i64 0, i64 0))
%13 = getelementptr inbounds [8 x i8], [8 x i8]* %9, i64 0, i64 0
store i8 1, i8* %13
%14 = getelementptr inbounds [8 x i8], [8 x i8]* %9, i64 0, i64 1
store i8 -15, i8* %14
%15 = getelementptr inbounds [8 x i8], [8 x i8]* %9, i64 0, i64 2
store i8 35, i8* %15
%16 = getelementptr inbounds [8 x i8], [8 x i8]* %9, i64 0, i64 3
store i8 74, i8* %16
%17 = getelementptr inbounds [8 x i8], [8 x i8]* %9, i64 0, i64 4
store i8 31, i8* %17
%18 = getelementptr inbounds [8 x i8], [8 x i8]* %9, i64 0, i64 5
store i8 34, i8* %18
%19 = getelementptr inbounds [8 x i8], [8 x i8]* %9, i64 0, i64 6
store i8 0, i8* %19
%20 = getelementptr inbounds [8 x i8], [8 x i8]* %9, i64 0, i64 7
store i8 -18, i8* %20
store i32 0, i32* %10
br label %21
21: ; preds = %32, %2
%22 = load i32, i32* %10
%23 = icmp slt i32 %22, 1000
br i1 %23, label %24, label %35
24: ; preds = %21
%25 = load i32, i32* %10
%26 = mul nsw i32 %25, 23
%27 = srem i32 %26, 256
%28 = trunc i32 %27 to i8
%29 = load i32, i32* %10
%30 = sext i32 %29 to i64
%31 = getelementptr inbounds [1000 x i8], [1000 x i8]* %6, i64 0, i64 %30
store i8 %28, i8* %31
br label %32
32: ; preds = %24
%33 = load i32, i32* %10
%34 = add nsw i32 %33, 1
store i32 %34, i32* %10
br label %21
35: ; preds = %21
%36 = getelementptr inbounds [1000 x i8], [1000 x i8]* %6, i64 0, i64 0
%37 = getelementptr inbounds [1000 x i8], [1000 x i8]* %8, i64 0, i64 0
%38 = getelementptr inbounds [8 x i8], [8 x i8]* %9, i64 0, i64 0
%39 = call i32 @cbc_encipher(i8* %36, i8* %37, i8* %38, i32 1000)
%40 = getelementptr inbounds [1000 x i8], [1000 x i8]* %8, i64 0, i64 0
%41 = getelementptr inbounds [1000 x i8], [1000 x i8]* %7, i64 0, i64 0
%42 = getelementptr inbounds [8 x i8], [8 x i8]* %9, i64 0, i64 0
%43 = call i32 @cbc_decipher(i8* %40, i8* %41, i8* %42, i32 1000)
%44 = load i32, i32* @stdout
%45 = getelementptr inbounds [8 x i8], [8 x i8]* %9, i64 0, i64 0
%46 = load i8, i8* %45
%47 = zext i8 %46 to i32
%48 = getelementptr inbounds [8 x i8], [8 x i8]* %9, i64 0, i64 1
%49 = load i8, i8* %48
%50 = zext i8 %49 to i32
%51 = getelementptr inbounds [8 x i8], [8 x i8]* %9, i64 0, i64 2
%52 = load i8, i8* %51
%53 = zext i8 %52 to i32
%54 = getelementptr inbounds [8 x i8], [8 x i8]* %9, i64 0, i64 3
%55 = load i8, i8* %54
%56 = zext i8 %55 to i32
%57 = getelementptr inbounds [8 x i8], [8 x i8]* %9, i64 0, i64 4
%58 = load i8, i8* %57
%59 = zext i8 %58 to i32
%60 = getelementptr inbounds [8 x i8], [8 x i8]* %9, i64 0, i64 5
%61 = load i8, i8* %60
%62 = zext i8 %61 to i32
%63 = getelementptr inbounds [8 x i8], [8 x i8]* %9, i64 0, i64 6
%64 = load i8, i8* %63
%65 = zext i8 %64 to i32
%66 = getelementptr inbounds [8 x i8], [8 x i8]* %9, i64 0, i64 7
%67 = load i8, i8* %66
%68 = zext i8 %67 to i32
%69 = call i32 (i32, i8*, ...) @fprintf(i32 %44, i8* getelementptr inbounds ([49 x i8], [49 x i8]* @.str.1, i64 0, i64 0), i32 %47, i32 %50, i32 %53, i32 %56, i32 %59, i32 %62, i32 %65, i32 %68)
store i32 0, i32* %10
br label %70
70: ; preds = %128, %35
%71 = load i32, i32* %10
%72 = icmp slt i32 %71, 1000
br i1 %72, label %73, label %131
73: ; preds = %70
%74 = load i32, i32* %10
%75 = sext i32 %74 to i64
%76 = getelementptr inbounds [1000 x i8], [1000 x i8]* %6, i64 0, i64 %75
%77 = load i8, i8* %76
%78 = zext i8 %77 to i32
%79 = load i32, i32* %10
%80 = sext i32 %79 to i64
%81 = getelementptr inbounds [1000 x i8], [1000 x i8]* %7, i64 0, i64 %80
%82 = load i8, i8* %81
%83 = zext i8 %82 to i32
%84 = icmp eq i32 %78, %83
br i1 %84, label %85, label %106
85: ; preds = %73
%86 = load i32, i32* @stdout
%87 = load i32, i32* %10
%88 = load i32, i32* %10
%89 = sext i32 %88 to i64
%90 = getelementptr inbounds [1000 x i8], [1000 x i8]* %6, i64 0, i64 %89
%91 = load i8, i8* %90
%92 = zext i8 %91 to i32
%93 = load i32, i32* %10
%94 = load i32, i32* %10
%95 = sext i32 %94 to i64
%96 = getelementptr inbounds [1000 x i8], [1000 x i8]* %8, i64 0, i64 %95
%97 = load i8, i8* %96
%98 = zext i8 %97 to i32
%99 = load i32, i32* %10
%100 = load i32, i32* %10
%101 = sext i32 %100 to i64
%102 = getelementptr inbounds [1000 x i8], [1000 x i8]* %7, i64 0, i64 %101
%103 = load i8, i8* %102
%104 = zext i8 %103 to i32
%105 = call i32 (i32, i8*, ...) @fprintf(i32 %86, i8* getelementptr inbounds ([62 x i8], [62 x i8]* @.str.2, i64 0, i64 0), i32 %87, i32 %92, i32 %93, i32 %98, i32 %99, i32 %104)
br label %127
106: ; preds = %73
%107 = load i32, i32* @stdout
%108 = load i32, i32* %10
%109 = load i32, i32* %10
%110 = sext i32 %109 to i64
%111 = getelementptr inbounds [1000 x i8], [1000 x i8]* %6, i64 0, i64 %110
%112 = load i8, i8* %111
%113 = zext i8 %112 to i32
%114 = load i32, i32* %10
%115 = load i32, i32* %10
%116 = sext i32 %115 to i64
%117 = getelementptr inbounds [1000 x i8], [1000 x i8]* %8, i64 0, i64 %116
%118 = load i8, i8* %117
%119 = zext i8 %118 to i32
%120 = load i32, i32* %10
%121 = load i32, i32* %10
%122 = sext i32 %121 to i64
%123 = getelementptr inbounds [1000 x i8], [1000 x i8]* %7, i64 0, i64 %122
%124 = load i8, i8* %123
%125 = zext i8 %124 to i32
%126 = call i32 (i32, i8*, ...) @fprintf(i32 %107, i8* getelementptr inbounds ([65 x i8], [65 x i8]* @.str.3, i64 0, i64 0), i32 %108, i32 %113, i32 %114, i32 %119, i32 %120, i32 %125)
br label %127
127: ; preds = %106, %85
br label %128
128: ; preds = %127
%129 = load i32, i32* %10
%130 = add nsw i32 %129, 1
store i32 %130, i32* %10
br label %70
131: ; preds = %70
ret i32 0
}

LLVM IR (-O2):
@stdout = global i32 0
@.str = [34 x i8] c"Enciphering with DES in CBC mode\0A\00"
@.str.1 = [49 x i8] c"deskey: %02x %02x %02x %02x %02x %02x %02x %02x\0A\00"
@.str.2 = [62 x i8] c"destmp[%03d]=%02x, desctx[%03d]=%02x, desptx[%03d]=%02x (OK)\0A\00"
@.str.3 = [65 x i8] c"destmp[%03d]=%02x, desctx[%03d]=%02x, desptx[%03d]=%02x (ERROR)\0A\00"
define i32 @main(i32 %0, i8** nocapture readnone %1) {
%3 = alloca [1000 x i8]
%4 = alloca [1000 x i8]
%5 = alloca [1000 x i8]
%6 = alloca [8 x i8]
%7 = getelementptr inbounds [1000 x i8], [1000 x i8]* %3, i64 0, i64 0
%8 = getelementptr inbounds [1000 x i8], [1000 x i8]* %4, i64 0, i64 0
%9 = getelementptr inbounds [1000 x i8], [1000 x i8]* %5, i64 0, i64 0
%10 = getelementptr inbounds [8 x i8], [8 x i8]* %6, i64 0, i64 0
%11 = load i32, i32* @stdout
%12 = tail call i32 (i32, i8*, ...) @fprintf(i32 %11, i8* getelementptr inbounds ([34 x i8], [34 x i8]* @.str, i64 0, i64 0))
store i8 1, i8* %10
%13 = getelementptr inbounds [8 x i8], [8 x i8]* %6, i64 0, i64 1
store i8 -15, i8* %13
%14 = getelementptr inbounds [8 x i8], [8 x i8]* %6, i64 0, i64 2
store i8 35, i8* %14
%15 = getelementptr inbounds [8 x i8], [8 x i8]* %6, i64 0, i64 3
store i8 74, i8* %15
%16 = getelementptr inbounds [8 x i8], [8 x i8]* %6, i64 0, i64 4
store i8 31, i8* %16
%17 = getelementptr inbounds [8 x i8], [8 x i8]* %6, i64 0, i64 5
store i8 34, i8* %17
%18 = getelementptr inbounds [8 x i8], [8 x i8]* %6, i64 0, i64 6
store i8 0, i8* %18
%19 = getelementptr inbounds [8 x i8], [8 x i8]* %6, i64 0, i64 7
store i8 -18, i8* %19
br label %20
20: ; preds = %20, %2
%21 = phi i64 [ 0, %2 ], [ %31, %20 ]
%22 = phi <16 x i8> [ <i8 0, i8 1, i8 2, i8 3, i8 4, i8 5, i8 6, i8 7, i8 8, i8 9, i8 10, i8 11, i8 12, i8 13, i8 14, i8 15>, %2 ], [ %32, %20 ]
%23 = mul <16 x i8> %22, <i8 23, i8 23, i8 23, i8 23, i8 23, i8 23, i8 23, i8 23, i8 23, i8 23, i8 23, i8 23, i8 23, i8 23, i8 23, i8 23>
%24 = getelementptr inbounds [1000 x i8], [1000 x i8]* %3, i64 0, i64 %21
%25 = bitcast i8* %24 to <16 x i8>*
store <16 x i8> %23, <16 x i8>* %25
%26 = or i64 %21, 16
%27 = mul <16 x i8> %22, <i8 23, i8 23, i8 23, i8 23, i8 23, i8 23, i8 23, i8 23, i8 23, i8 23, i8 23, i8 23, i8 23, i8 23, i8 23, i8 23>
%28 = add <16 x i8> %27, <i8 112, i8 112, i8 112, i8 112, i8 112, i8 112, i8 112, i8 112, i8 112, i8 112, i8 112, i8 112, i8 112, i8 112, i8 112, i8 112>
%29 = getelementptr inbounds [1000 x i8], [1000 x i8]* %3, i64 0, i64 %26
%30 = bitcast i8* %29 to <16 x i8>*
store <16 x i8> %28, <16 x i8>* %30
%31 = add nuw nsw i64 %21, 32
%32 = add <16 x i8> %22, <i8 32, i8 32, i8 32, i8 32, i8 32, i8 32, i8 32, i8 32, i8 32, i8 32, i8 32, i8 32, i8 32, i8 32, i8 32, i8 32>
%33 = icmp eq i64 %31, 992
br i1 %33, label %34, label %20
34: ; preds = %20
%35 = getelementptr inbounds [1000 x i8], [1000 x i8]* %3, i64 0, i64 992
store i8 32, i8* %35
%36 = getelementptr inbounds [1000 x i8], [1000 x i8]* %3, i64 0, i64 993
store i8 55, i8* %36
%37 = getelementptr inbounds [1000 x i8], [1000 x i8]* %3, i64 0, i64 994
store i8 78, i8* %37
%38 = getelementptr inbounds [1000 x i8], [1000 x i8]* %3, i64 0, i64 995
store i8 101, i8* %38
%39 = getelementptr inbounds [1000 x i8], [1000 x i8]* %3, i64 0, i64 996
store i8 124, i8* %39
%40 = getelementptr inbounds [1000 x i8], [1000 x i8]* %3, i64 0, i64 997
store i8 -109, i8* %40
%41 = getelementptr inbounds [1000 x i8], [1000 x i8]* %3, i64 0, i64 998
store i8 -86, i8* %41
%42 = getelementptr inbounds [1000 x i8], [1000 x i8]* %3, i64 0, i64 999
store i8 -63, i8* %42
%43 = call i32 @cbc_encipher(i8* %7, i8* %9, i8* %10, i32 1000)
%44 = call i32 @cbc_decipher(i8* %9, i8* %8, i8* %10, i32 1000)
%45 = load i32, i32* @stdout
%46 = load i8, i8* %10
%47 = zext i8 %46 to i32
%48 = load i8, i8* %13
%49 = zext i8 %48 to i32
%50 = load i8, i8* %14
%51 = zext i8 %50 to i32
%52 = load i8, i8* %15
%53 = zext i8 %52 to i32
%54 = load i8, i8* %16
%55 = zext i8 %54 to i32
%56 = load i8, i8* %17
%57 = zext i8 %56 to i32
%58 = load i8, i8* %18
%59 = zext i8 %58 to i32
%60 = load i8, i8* %19
%61 = zext i8 %60 to i32
%62 = call i32 (i32, i8*, ...) @fprintf(i32 %45, i8* getelementptr inbounds ([49 x i8], [49 x i8]* @.str.1, i64 0, i64 0), i32 %47, i32 %49, i32 %51, i32 %53, i32 %55, i32 %57, i32 %59, i32 %61)
br label %63
63: ; preds = %34, %63
%64 = phi i64 [ 0, %34 ], [ %79, %63 ]
%65 = getelementptr inbounds [1000 x i8], [1000 x i8]* %3, i64 0, i64 %64
%66 = load i8, i8* %65
%67 = zext i8 %66 to i32
%68 = getelementptr inbounds [1000 x i8], [1000 x i8]* %4, i64 0, i64 %64
%69 = load i8, i8* %68
%70 = zext i8 %69 to i32
%71 = icmp eq i8 %66, %69
%72 = load i32, i32* @stdout
%73 = getelementptr inbounds [1000 x i8], [1000 x i8]* %5, i64 0, i64 %64
%74 = load i8, i8* %73
%75 = zext i8 %74 to i32
%76 = trunc i64 %64 to i32
%77 = select i1 %71, i8* getelementptr inbounds ([62 x i8], [62 x i8]* @.str.2, i64 0, i64 0), i8* getelementptr inbounds ([65 x i8], [65 x i8]* @.str.3, i64 0, i64 0)
%78 = call i32 (i32, i8*, ...) @fprintf(i32 %72, i8* %77, i32 %76, i32 %67, i32 %76, i32 %75, i32 %76, i32 %70)
%79 = add nuw nsw i64 %64, 1
%80 = icmp eq i64 %79, 1000
br i1 %80, label %81, label %63
81: ; preds = %63
ret i32 0
}