#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 cipher(char *, int, int);
int /*<<< orphan*/ free(char *);
scalar_t__ malloc(int);
int /*<<< orphan*/ printf(char *, ...);
int processInput(char *);
void run_test(char *msg, int lkey, int nkey) {
  char *msgCopy = NULL;
  int i = 0;
  int msgOrigLen = 0, msgEncLen = 0, msgDecLen = 0;
  int testErr = 0;
  msgOrigLen = processInput(msg);
  msgCopy = (char *)malloc(msgOrigLen * sizeof(char));
  if (msgCopy == NULL) {
    printf("Malloc Error!\n");
    return;
  }
  i = 0;
  while (msg[i] != '\0') {
    msgCopy[i] = msg[i];
    ++i;
  }
  msgCopy[msgOrigLen] = '\0';
  printf("plaintext message: %s\n", msg);
  printf("size: %d\n", msgOrigLen);
  printf("\n");
  printf("Enryption system errors:\n");
  msgEncLen = cipher(msg, lkey, nkey);
  printf("encrypted message: %s\n", msg);
  printf("size: %d\n", msgEncLen);
  printf("\n");
  printf("Decryption system errors:\n");
  msgDecLen = cipher(msg, -lkey, -nkey);
  printf("decrypted message: %s\n", msg);
  printf("size: %d\n", msgDecLen);
  if (msgEncLen != msgOrigLen || msgDecLen != msgOrigLen) {
    testErr = 3;
    goto handle_errs;
  }
  printf("Origional message: %s\n", msgCopy);
  i = 0;
  while (msg[i] != '\0') {
    if (msg[i] != msgCopy[i]) {
      testErr = 2;
      break;
    } else
      ++i;
  }
handle_errs:
  switch (testErr) {
  case 0:
    printf("Test Passed!\n");
    break;
  case 2:
    printf("Test Failed: Strings not equal\n");
    break;
  case 3:
    printf("Test Failed: Length mismatch\n");
    break;
  }
  printf("\n");
  free(msgCopy);
}


x86 assembly (clang, -O0):
<run_test>:
push   %rbp
mov    %rsp,%rbp
sub    $0x30,%rsp
mov    %rdi,-0x8(%rbp)
mov    %esi,-0xc(%rbp)
mov    %edx,-0x10(%rbp)
movq   $0x0,-0x18(%rbp)
movl   $0x0,-0x1c(%rbp)
movl   $0x0,-0x20(%rbp)
movl   $0x0,-0x24(%rbp)
movl   $0x0,-0x28(%rbp)
movl   $0x0,-0x2c(%rbp)
mov    -0x8(%rbp),%rdi
call   1060 <processInput@plt>
mov    %eax,-0x20(%rbp)
movslq -0x20(%rbp),%rax
shl    $0x0,%rax
mov    %eax,%edi
call   1050 <malloc@plt>
mov    %rax,-0x18(%rbp)
cmpq   $0x0,-0x18(%rbp)
jne    11ca <run_test+0x7a>
lea    0xe42(%rip),%rdi
mov    $0x0,%al
call   1040 <printf@plt>
jmp    13f0 <run_test+0x2a0>
movl   $0x0,-0x1c(%rbp)
mov    -0x8(%rbp),%rax
movslq -0x1c(%rbp),%rcx
movsbl (%rax,%rcx,1),%eax
cmp    $0x0,%eax
je     120a <run_test+0xba>
mov    -0x8(%rbp),%rax
movslq -0x1c(%rbp),%rcx
mov    (%rax,%rcx,1),%dl
mov    -0x18(%rbp),%rax
movslq -0x1c(%rbp),%rcx
mov    %dl,(%rax,%rcx,1)
mov    -0x1c(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0x1c(%rbp)
jmp    11d1 <run_test+0x81>
mov    -0x18(%rbp),%rax
movslq -0x20(%rbp),%rcx
movb   $0x0,(%rax,%rcx,1)
mov    -0x8(%rbp),%rsi
lea    0xdee(%rip),%rdi
mov    $0x0,%al
call   1040 <printf@plt>
mov    -0x20(%rbp),%esi
lea    0xdf4(%rip),%rdi
mov    $0x0,%al
call   1040 <printf@plt>
lea    0xe76(%rip),%rdi
mov    $0x0,%al
call   1040 <printf@plt>
lea    0xde2(%rip),%rdi
mov    $0x0,%al
call   1040 <printf@plt>
mov    -0x8(%rbp),%rdi
mov    -0xc(%rbp),%esi
mov    -0x10(%rbp),%edx
call   1070 <cipher@plt>
mov    %eax,-0x24(%rbp)
mov    -0x8(%rbp),%rsi
lea    0xdd8(%rip),%rdi
mov    $0x0,%al
call   1040 <printf@plt>
mov    -0x24(%rbp),%esi
lea    0xda3(%rip),%rdi
mov    $0x0,%al
call   1040 <printf@plt>
lea    0xe25(%rip),%rdi
mov    $0x0,%al
call   1040 <printf@plt>
lea    0xdc2(%rip),%rdi
mov    $0x0,%al
call   1040 <printf@plt>
mov    -0x8(%rbp),%rdi
xor    %esi,%esi
sub    -0xc(%rbp),%esi
xor    %edx,%edx
sub    -0x10(%rbp),%edx
call   1070 <cipher@plt>
mov    %eax,-0x28(%rbp)
mov    -0x8(%rbp),%rsi
lea    0xdb5(%rip),%rdi
mov    $0x0,%al
call   1040 <printf@plt>
mov    -0x28(%rbp),%esi
lea    0xd4e(%rip),%rdi
mov    $0x0,%al
call   1040 <printf@plt>
mov    -0x24(%rbp),%eax
cmp    -0x20(%rbp),%eax
jne    12f7 <run_test+0x1a7>
mov    -0x28(%rbp),%eax
cmp    -0x20(%rbp),%eax
je     1303 <run_test+0x1b3>
movl   $0x3,-0x2c(%rbp)
jmp    1370 <run_test+0x220>
mov    -0x18(%rbp),%rsi
lea    0xd85(%rip),%rdi
mov    $0x0,%al
call   1040 <printf@plt>
movl   $0x0,-0x1c(%rbp)
mov    -0x8(%rbp),%rax
movslq -0x1c(%rbp),%rcx
movsbl (%rax,%rcx,1),%eax
cmp    $0x0,%eax
je     136b <run_test+0x21b>
mov    -0x8(%rbp),%rax
movslq -0x1c(%rbp),%rcx
movsbl (%rax,%rcx,1),%eax
mov    -0x18(%rbp),%rcx
movslq -0x1c(%rbp),%rdx
movsbl (%rcx,%rdx,1),%ecx
cmp    %ecx,%eax
je     135d <run_test+0x20d>
movl   $0x2,-0x2c(%rbp)
jmp    136b <run_test+0x21b>
mov    -0x1c(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0x1c(%rbp)
jmp    131c <run_test+0x1cc>
jmp    1370 <run_test+0x220>
mov    -0x2c(%rbp),%eax
mov    %eax,-0x30(%rbp)
test   %eax,%eax
je     13a5 <run_test+0x255>
jmp    1383 <run_test+0x233>
mov    -0x30(%rbp),%eax
sub    $0x2,%eax
je     13b8 <run_test+0x268>
jmp    1394 <run_test+0x244>
mov    -0x30(%rbp),%eax
sub    $0x3,%eax
je     13cb <run_test+0x27b>
jmp    13d9 <run_test+0x289>
lea    0xcfe(%rip),%rdi
mov    $0x0,%al
call   1040 <printf@plt>
jmp    13d9 <run_test+0x289>
lea    0xcf9(%rip),%rdi
mov    $0x0,%al
call   1040 <printf@plt>
jmp    13d9 <run_test+0x289>
lea    0xd06(%rip),%rdi
mov    $0x0,%al
call   1040 <printf@plt>
lea    0xcd6(%rip),%rdi
mov    $0x0,%al
call   1040 <printf@plt>
mov    -0x18(%rbp),%rdi
call   1030 <free@plt>
add    $0x30,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<run_test>:
push   %rbp
push   %r15
push   %r14
push   %r13
push   %r12
push   %rbx
push   %rax
mov    %edx,%r15d
mov    %esi,%r12d
mov    %rdi,%rbx
call   1080 <processInput@plt>
mov    %eax,%r13d
mov    %eax,%edi
call   1070 <malloc@plt>
test   %rax,%rax
je     12d5 <run_test+0x165>
mov    %rax,%r14
movslq %r13d,%rax
mov    (%rbx),%cl
test   %cl,%cl
je     11c1 <run_test+0x51>
xor    %edx,%edx
nopw   0x0(%rax,%rax,1)
mov    %cl,(%r14,%rdx,1)
movzbl 0x1(%rbx,%rdx,1),%ecx
add    $0x1,%rdx
test   %cl,%cl
jne    11b0 <run_test+0x40>
movb   $0x0,(%r14,%rax,1)
lea    0xe33(%rip),%rdi
mov    %rbx,%rsi
xor    %eax,%eax
call   1060 <printf@plt>
lea    0xe39(%rip),%rdi
mov    %r13d,%esi
xor    %eax,%eax
call   1060 <printf@plt>
mov    $0xa,%edi
call   1040 <putchar@plt>
lea    0xe6d(%rip),%rdi
call   1050 <puts@plt>
mov    %rbx,%rdi
mov    %r12d,%esi
mov    %r15d,%edx
call   1090 <cipher@plt>
mov    %eax,%ebp
mov    %eax,0x4(%rsp)
lea    0xe08(%rip),%rdi
mov    %rbx,%rsi
xor    %eax,%eax
call   1060 <printf@plt>
lea    0xded(%rip),%rdi
mov    %ebp,%esi
xor    %eax,%eax
call   1060 <printf@plt>
mov    $0xa,%edi
call   1040 <putchar@plt>
lea    0xe3b(%rip),%rdi
call   1050 <puts@plt>
neg    %r12d
neg    %r15d
mov    %rbx,%rdi
mov    %r12d,%esi
mov    %r15d,%edx
call   1090 <cipher@plt>
mov    %eax,%ebp
lea    0xdd2(%rip),%rdi
mov    %rbx,%rsi
xor    %eax,%eax
call   1060 <printf@plt>
lea    0xda0(%rip),%rdi
mov    %ebp,%esi
xor    %eax,%eax
call   1060 <printf@plt>
lea    0xe12(%rip),%rdi
cmp    %r13d,0x4(%rsp)
jne    12f2 <run_test+0x182>
cmp    %r13d,%ebp
jne    12f2 <run_test+0x182>
lea    0xdb5(%rip),%rdi
mov    %r14,%rsi
xor    %eax,%eax
call   1060 <printf@plt>
mov    (%rbx),%al
lea    0xe28(%rip),%rdi
test   %al,%al
je     12f2 <run_test+0x182>
xor    %ecx,%ecx
lea    0xdfc(%rip),%rdx
nopw   0x0(%rax,%rax,1)
cmp    (%r14,%rcx,1),%al
jne    12ef <run_test+0x17f>
movzbl 0x1(%rbx,%rcx,1),%eax
add    $0x1,%rcx
test   %al,%al
jne    12c0 <run_test+0x150>
jmp    12f2 <run_test+0x182>
lea    0xe06(%rip),%rdi
add    $0x8,%rsp
pop    %rbx
pop    %r12
pop    %r13
pop    %r14
pop    %r15
pop    %rbp
jmp    1050 <puts@plt>
mov    %rdx,%rdi
call   1050 <puts@plt>
mov    $0xa,%edi
call   1040 <putchar@plt>
mov    %r14,%rdi
add    $0x8,%rsp
pop    %rbx
pop    %r12
pop    %r13
pop    %r14
pop    %r15
pop    %rbp
jmp    1030 <free@plt>

LLVM IR (-O0):
@.str = [15 x i8] c"Malloc Error!\0A\00"
@.str.1 = [23 x i8] c"plaintext message: %s\0A\00"
@.str.2 = [10 x i8] c"size: %d\0A\00"
@.str.3 = [2 x i8] c"\0A\00"
@.str.4 = [26 x i8] c"Enryption system errors:\0A\00"
@.str.5 = [23 x i8] c"encrypted message: %s\0A\00"
@.str.6 = [27 x i8] c"Decryption system errors:\0A\00"
@.str.7 = [23 x i8] c"decrypted message: %s\0A\00"
@.str.8 = [23 x i8] c"Origional message: %s\0A\00"
@.str.9 = [14 x i8] c"Test Passed!\0A\00"
@.str.10 = [32 x i8] c"Test Failed: Strings not equal\0A\00"
@.str.11 = [30 x i8] c"Test Failed: Length mismatch\0A\00"
define void @run_test(i8* %0, i32 %1, i32 %2) {
%4 = alloca i8*
%5 = alloca i32
%6 = alloca i32
%7 = alloca i8*
%8 = alloca i32
%9 = alloca i32
%10 = alloca i32
%11 = alloca i32
%12 = alloca i32
store i8* %0, i8** %4
store i32 %1, i32* %5
store i32 %2, i32* %6
store i8* null, i8** %7
store i32 0, i32* %8
store i32 0, i32* %9
store i32 0, i32* %10
store i32 0, i32* %11
store i32 0, i32* %12
%13 = load i8*, i8** %4
%14 = call i32 @processInput(i8* %13)
store i32 %14, i32* %9
%15 = load i32, i32* %9
%16 = sext i32 %15 to i64
%17 = mul i64 %16, 1
%18 = trunc i64 %17 to i32
%19 = call i64 @malloc(i32 %18)
%20 = inttoptr i64 %19 to i8*
store i8* %20, i8** %7
%21 = load i8*, i8** %7
%22 = icmp eq i8* %21, null
br i1 %22, label %23, label %25
23: ; preds = %3
%24 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([15 x i8], [15 x i8]* @.str, i64 0, i64 0))
br label %128
25: ; preds = %3
store i32 0, i32* %8
br label %26
26: ; preds = %34, %25
%27 = load i8*, i8** %4
%28 = load i32, i32* %8
%29 = sext i32 %28 to i64
%30 = getelementptr inbounds i8, i8* %27, i64 %29
%31 = load i8, i8* %30
%32 = sext i8 %31 to i32
%33 = icmp ne i32 %32, 0
br i1 %33, label %34, label %46
34: ; preds = %26
%35 = load i8*, i8** %4
%36 = load i32, i32* %8
%37 = sext i32 %36 to i64
%38 = getelementptr inbounds i8, i8* %35, i64 %37
%39 = load i8, i8* %38
%40 = load i8*, i8** %7
%41 = load i32, i32* %8
%42 = sext i32 %41 to i64
%43 = getelementptr inbounds i8, i8* %40, i64 %42
store i8 %39, i8* %43
%44 = load i32, i32* %8
%45 = add nsw i32 %44, 1
store i32 %45, i32* %8
br label %26
46: ; preds = %26
%47 = load i8*, i8** %7
%48 = load i32, i32* %9
%49 = sext i32 %48 to i64
%50 = getelementptr inbounds i8, i8* %47, i64 %49
store i8 0, i8* %50
%51 = load i8*, i8** %4
%52 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([23 x i8], [23 x i8]* @.str.1, i64 0, i64 0), i8* %51)
%53 = load i32, i32* %9
%54 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([10 x i8], [10 x i8]* @.str.2, i64 0, i64 0), i32 %53)
%55 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([2 x i8], [2 x i8]* @.str.3, i64 0, i64 0))
%56 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([26 x i8], [26 x i8]* @.str.4, i64 0, i64 0))
%57 = load i8*, i8** %4
%58 = load i32, i32* %5
%59 = load i32, i32* %6
%60 = call i32 @cipher(i8* %57, i32 %58, i32 %59)
store i32 %60, i32* %10
%61 = load i8*, i8** %4
%62 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([23 x i8], [23 x i8]* @.str.5, i64 0, i64 0), i8* %61)
%63 = load i32, i32* %10
%64 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([10 x i8], [10 x i8]* @.str.2, i64 0, i64 0), i32 %63)
%65 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([2 x i8], [2 x i8]* @.str.3, i64 0, i64 0))
%66 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([27 x i8], [27 x i8]* @.str.6, i64 0, i64 0))
%67 = load i8*, i8** %4
%68 = load i32, i32* %5
%69 = sub nsw i32 0, %68
%70 = load i32, i32* %6
%71 = sub nsw i32 0, %70
%72 = call i32 @cipher(i8* %67, i32 %69, i32 %71)
store i32 %72, i32* %11
%73 = load i8*, i8** %4
%74 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([23 x i8], [23 x i8]* @.str.7, i64 0, i64 0), i8* %73)
%75 = load i32, i32* %11
%76 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([10 x i8], [10 x i8]* @.str.2, i64 0, i64 0), i32 %75)
%77 = load i32, i32* %10
%78 = load i32, i32* %9
%79 = icmp ne i32 %77, %78
br i1 %79, label %84, label %80
80: ; preds = %46
%81 = load i32, i32* %11
%82 = load i32, i32* %9
%83 = icmp ne i32 %81, %82
br i1 %83, label %84, label %85
84: ; preds = %80, %46
store i32 3, i32* %12
br label %116
85: ; preds = %80
%86 = load i8*, i8** %7
%87 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([23 x i8], [23 x i8]* @.str.8, i64 0, i64 0), i8* %86)
store i32 0, i32* %8
br label %88
88: ; preds = %114, %85
%89 = load i8*, i8** %4
%90 = load i32, i32* %8
%91 = sext i32 %90 to i64
%92 = getelementptr inbounds i8, i8* %89, i64 %91
%93 = load i8, i8* %92
%94 = sext i8 %93 to i32
%95 = icmp ne i32 %94, 0
br i1 %95, label %96, label %115
96: ; preds = %88
%97 = load i8*, i8** %4
%98 = load i32, i32* %8
%99 = sext i32 %98 to i64
%100 = getelementptr inbounds i8, i8* %97, i64 %99
%101 = load i8, i8* %100
%102 = sext i8 %101 to i32
%103 = load i8*, i8** %7
%104 = load i32, i32* %8
%105 = sext i32 %104 to i64
%106 = getelementptr inbounds i8, i8* %103, i64 %105
%107 = load i8, i8* %106
%108 = sext i8 %107 to i32
%109 = icmp ne i32 %102, %108
br i1 %109, label %110, label %111
110: ; preds = %96
store i32 2, i32* %12
br label %115
111: ; preds = %96
%112 = load i32, i32* %8
%113 = add nsw i32 %112, 1
store i32 %113, i32* %8
br label %114
114: ; preds = %111
br label %88
115: ; preds = %110, %88
br label %116
116: ; preds = %115, %84
%117 = load i32, i32* %12
switch i32 %117, label %124 [
i32 0, label %118
i32 2, label %120
i32 3, label %122
]
118: ; preds = %116
%119 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([14 x i8], [14 x i8]* @.str.9, i64 0, i64 0))
br label %124
120: ; preds = %116
%121 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([32 x i8], [32 x i8]* @.str.10, i64 0, i64 0))
br label %124
122: ; preds = %116
%123 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([30 x i8], [30 x i8]* @.str.11, i64 0, i64 0))
br label %124
124: ; preds = %116, %122, %120, %118
%125 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([2 x i8], [2 x i8]* @.str.3, i64 0, i64 0))
%126 = load i8*, i8** %7
%127 = call i32 @free(i8* %126)
br label %128
128: ; preds = %124, %23
ret void
}

LLVM IR (-O2):
@.str.1 = [23 x i8] c"plaintext message: %s\0A\00"
@.str.2 = [10 x i8] c"size: %d\0A\00"
@.str.5 = [23 x i8] c"encrypted message: %s\0A\00"
@.str.7 = [23 x i8] c"decrypted message: %s\0A\00"
@.str.8 = [23 x i8] c"Origional message: %s\0A\00"
@str = [25 x i8] c"Enryption system errors:\00"
@str.12 = [26 x i8] c"Decryption system errors:\00"
@str.13 = [29 x i8] c"Test Failed: Length mismatch\00"
@str.14 = [31 x i8] c"Test Failed: Strings not equal\00"
@str.15 = [13 x i8] c"Test Passed!\00"
@str.16 = [14 x i8] c"Malloc Error!\00"
define void @run_test(i8* %0, i32 %1, i32 %2) {
%4 = tail call i32 @processInput(i8* %0)
%5 = sext i32 %4 to i64
%6 = tail call i64 @malloc(i32 %4)
%7 = inttoptr i64 %6 to i8*
%8 = icmp eq i64 %6, 0
br i1 %8, label %12, label %9
9: ; preds = %3
%10 = load i8, i8* %0
%11 = icmp eq i8 %10, 0
br i1 %11, label %22, label %14
12: ; preds = %3
%13 = tail call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([14 x i8], [14 x i8]* @str.16, i64 0, i64 0))
br label %61
14: ; preds = %9, %14
%15 = phi i64 [ %18, %14 ], [ 0, %9 ]
%16 = phi i8 [ %20, %14 ], [ %10, %9 ]
%17 = getelementptr inbounds i8, i8* %7, i64 %15
store i8 %16, i8* %17
%18 = add nuw nsw i64 %15, 1
%19 = getelementptr inbounds i8, i8* %0, i64 %18
%20 = load i8, i8* %19
%21 = icmp eq i8 %20, 0
br i1 %21, label %22, label %14
22: ; preds = %14, %9
%23 = getelementptr inbounds i8, i8* %7, i64 %5
store i8 0, i8* %23
%24 = tail call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([23 x i8], [23 x i8]* @.str.1, i64 0, i64 0), i8* %0)
%25 = tail call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([10 x i8], [10 x i8]* @.str.2, i64 0, i64 0), i32 %4)
%26 = tail call i32 @putchar(i32 10)
%27 = tail call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([25 x i8], [25 x i8]* @str, i64 0, i64 0))
%28 = tail call i32 @cipher(i8* %0, i32 %1, i32 %2)
%29 = tail call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([23 x i8], [23 x i8]* @.str.5, i64 0, i64 0), i8* %0)
%30 = tail call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([10 x i8], [10 x i8]* @.str.2, i64 0, i64 0), i32 %28)
%31 = tail call i32 @putchar(i32 10)
%32 = tail call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([26 x i8], [26 x i8]* @str.12, i64 0, i64 0))
%33 = sub nsw i32 0, %1
%34 = sub nsw i32 0, %2
%35 = tail call i32 @cipher(i8* %0, i32 %33, i32 %34)
%36 = tail call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([23 x i8], [23 x i8]* @.str.7, i64 0, i64 0), i8* %0)
%37 = tail call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([10 x i8], [10 x i8]* @.str.2, i64 0, i64 0), i32 %35)
%38 = icmp eq i32 %28, %4
%39 = icmp eq i32 %35, %4
%40 = select i1 %38, i1 %39, i1 false
br i1 %40, label %41, label %56
41: ; preds = %22
%42 = tail call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([23 x i8], [23 x i8]* @.str.8, i64 0, i64 0), i8* %7)
%43 = load i8, i8* %0
%44 = icmp eq i8 %43, 0
br i1 %44, label %56, label %49
45: ; preds = %49
%46 = getelementptr inbounds i8, i8* %0, i64 %55
%47 = load i8, i8* %46
%48 = icmp eq i8 %47, 0
br i1 %48, label %56, label %49
49: ; preds = %41, %45
%50 = phi i64 [ %55, %45 ], [ 0, %41 ]
%51 = phi i8 [ %47, %45 ], [ %43, %41 ]
%52 = getelementptr inbounds i8, i8* %7, i64 %50
%53 = load i8, i8* %52
%54 = icmp eq i8 %51, %53
%55 = add nuw i64 %50, 1
br i1 %54, label %45, label %56
56: ; preds = %49, %45, %22, %41
%57 = phi i8* [ getelementptr inbounds ([13 x i8], [13 x i8]* @str.15, i64 0, i64 0), %41 ], [ getelementptr inbounds ([29 x i8], [29 x i8]* @str.13, i64 0, i64 0), %22 ], [ getelementptr inbounds ([13 x i8], [13 x i8]* @str.15, i64 0, i64 0), %45 ], [ getelementptr inbounds ([31 x i8], [31 x i8]* @str.14, i64 0, i64 0), %49 ]
%58 = tail call i32 @puts(i8* dereferenceable(1) %57)
%59 = tail call i32 @putchar(i32 10)
%60 = tail call i32 @free(i8* %7)
br label %61
61: ; preds = %56, %12
ret void
}