#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*/ gets(char *);
int /*<<< orphan*/ playfair(char, char, char **);
int /*<<< orphan*/ printf(char *, ...);
void main() {
  char mat[5][5], key[10], str[25] = {0};
  int m, n, i, j;
  char temp;
  printf("Enter Key:");
  gets(key);
  m = n = 0;
  for (i = 0; key[i] != '\0'; i++) {
    for (j = 0; j < i; j++)
      if (key[j] == key[i])
        break;
    if (key[i] == 'j')
      key[i] = 'i';
    if (j >= i) {
      mat[m][n++] = key[i];
      if (n == 5)
        n = 0, m++;
    }
  }
  for (i = 97; i <= 122; i++) {
    for (j = 0; key[j] != '\0'; j++)
      if (key[j] == i)
        break;
      else if (i == 'j')
        break;
    if (key[j] == '\0') {
      mat[m][n++] = i;
      if (n == 5)
        n = 0, m++;
    }
  }
  printf("Enter input String:");
  gets(str);
  printf("\n\nMatrix :\n");
  for (i = 0; i < 5; i++) {
    for (j = 0; j < 5; j++)
      printf("%c\t", mat[i][j]);
    printf("\n");
  }
  printf("\n\nEntered text :%s\nCipher Text :", str);
  for (i = 0; str[i] != '\0'; i++) {
    temp = str[i++];
    if (temp == 'j')
      temp = 'i';
    if (str[i] == '\0')
      playfair(temp, 'x', mat);
    else {
      if (str[i] == 'j')
        str[i] = 'i';
      if (temp == str[i]) {
        playfair(temp, 'x', mat);
        playfair('x', str[i], mat);
      } else
        playfair(temp, str[i], mat);
    }
  }
}


x86 assembly (clang, -O0):
<main>:
push   %rbp
mov    %rsp,%rbp
sub    $0x70,%rsp
lea    -0x50(%rbp),%rdi
xor    %esi,%esi
mov    $0x19,%edx
call   1040 <memset@plt>
lea    0xea1(%rip),%rdi
mov    $0x0,%al
call   1030 <printf@plt>
lea    -0x2a(%rbp),%rdi
call   1060 <gets@plt>
movl   $0x0,-0x58(%rbp)
movl   $0x0,-0x54(%rbp)
movl   $0x0,-0x5c(%rbp)
movslq -0x5c(%rbp),%rax
movsbl -0x2a(%rbp,%rax,1),%eax
cmp    $0x0,%eax
je     125c <main+0x11c>
movl   $0x0,-0x60(%rbp)
mov    -0x60(%rbp),%eax
cmp    -0x5c(%rbp),%eax
jge    11db <main+0x9b>
movslq -0x60(%rbp),%rax
movsbl -0x2a(%rbp,%rax,1),%eax
movslq -0x5c(%rbp),%rcx
movsbl -0x2a(%rbp,%rcx,1),%ecx
cmp    %ecx,%eax
jne    11c8 <main+0x88>
jmp    11db <main+0x9b>
jmp    11cd <main+0x8d>
mov    -0x60(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0x60(%rbp)
jmp    119d <main+0x5d>
movslq -0x5c(%rbp),%rax
movsbl -0x2a(%rbp,%rax,1),%eax
cmp    $0x6a,%eax
jne    11f6 <main+0xb6>
movslq -0x5c(%rbp),%rax
movb   $0x69,-0x2a(%rbp,%rax,1)
mov    -0x60(%rbp),%eax
cmp    -0x5c(%rbp),%eax
jl     1249 <main+0x109>
movslq -0x5c(%rbp),%rax
mov    -0x2a(%rbp,%rax,1),%dl
movslq -0x54(%rbp),%rcx
lea    -0x20(%rbp),%rax
imul   $0x5,%rcx,%rcx
add    %rcx,%rax
mov    -0x58(%rbp),%ecx
mov    %ecx,%esi
add    $0x1,%esi
mov    %esi,-0x58(%rbp)
movslq %ecx,%rcx
mov    %dl,(%rax,%rcx,1)
cmpl   $0x5,-0x58(%rbp)
jne    1244 <main+0x104>
movl   $0x0,-0x58(%rbp)
mov    -0x54(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0x54(%rbp)
jmp    1249 <main+0x109>
jmp    124e <main+0x10e>
mov    -0x5c(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0x5c(%rbp)
jmp    1184 <main+0x44>
movl   $0x61,-0x5c(%rbp)
cmpl   $0x7a,-0x5c(%rbp)
jg     132d <main+0x1ed>
movl   $0x0,-0x60(%rbp)
movslq -0x60(%rbp),%rax
movsbl -0x2a(%rbp,%rax,1),%eax
cmp    $0x0,%eax
je     12c4 <main+0x184>
movslq -0x60(%rbp),%rax
movsbl -0x2a(%rbp,%rax,1),%eax
cmp    -0x5c(%rbp),%eax
jne    129d <main+0x15d>
jmp    12c4 <main+0x184>
cmpl   $0x6a,-0x5c(%rbp)
jne    12ac <main+0x16c>
jmp    12c4 <main+0x184>
jmp    12b1 <main+0x171>
jmp    12b6 <main+0x176>
mov    -0x60(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0x60(%rbp)
jmp    1274 <main+0x134>
movslq -0x60(%rbp),%rax
movsbl -0x2a(%rbp,%rax,1),%eax
cmp    $0x0,%eax
jne    131a <main+0x1da>
mov    -0x5c(%rbp),%eax
mov    %al,%dl
movslq -0x54(%rbp),%rcx
lea    -0x20(%rbp),%rax
imul   $0x5,%rcx,%rcx
add    %rcx,%rax
mov    -0x58(%rbp),%ecx
mov    %ecx,%esi
add    $0x1,%esi
mov    %esi,-0x58(%rbp)
movslq %ecx,%rcx
mov    %dl,(%rax,%rcx,1)
cmpl   $0x5,-0x58(%rbp)
jne    1315 <main+0x1d5>
movl   $0x0,-0x58(%rbp)
mov    -0x54(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0x54(%rbp)
jmp    131a <main+0x1da>
jmp    131f <main+0x1df>
mov    -0x5c(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0x5c(%rbp)
jmp    1263 <main+0x123>
lea    0xcd7(%rip),%rdi
mov    $0x0,%al
call   1030 <printf@plt>
lea    -0x50(%rbp),%rdi
call   1060 <gets@plt>
lea    0xcd4(%rip),%rdi
mov    $0x0,%al
call   1030 <printf@plt>
movl   $0x0,-0x5c(%rbp)
cmpl   $0x5,-0x5c(%rbp)
jge    13c3 <main+0x283>
movl   $0x0,-0x60(%rbp)
cmpl   $0x5,-0x60(%rbp)
jge    13a7 <main+0x267>
movslq -0x5c(%rbp),%rcx
lea    -0x20(%rbp),%rax
imul   $0x5,%rcx,%rcx
add    %rcx,%rax
movslq -0x60(%rbp),%rcx
movsbl (%rax,%rcx,1),%esi
lea    0xc99(%rip),%rdi
mov    $0x0,%al
call   1030 <printf@plt>
mov    -0x60(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0x60(%rbp)
jmp    136a <main+0x22a>
lea    0xc7b(%rip),%rdi
mov    $0x0,%al
call   1030 <printf@plt>
mov    -0x5c(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0x5c(%rbp)
jmp    1359 <main+0x219>
lea    -0x50(%rbp),%rsi
lea    0xc61(%rip),%rdi
mov    $0x0,%al
call   1030 <printf@plt>
movl   $0x0,-0x5c(%rbp)
movslq -0x5c(%rbp),%rax
movsbl -0x50(%rbp,%rax,1),%eax
cmp    $0x0,%eax
je     14d2 <main+0x392>
mov    -0x5c(%rbp),%eax
mov    %eax,%ecx
add    $0x1,%ecx
mov    %ecx,-0x5c(%rbp)
cltq
mov    -0x50(%rbp,%rax,1),%al
mov    %al,-0x61(%rbp)
movsbl -0x61(%rbp),%eax
cmp    $0x6a,%eax
jne    1413 <main+0x2d3>
movb   $0x69,-0x61(%rbp)
movslq -0x5c(%rbp),%rax
movsbl -0x50(%rbp,%rax,1),%eax
cmp    $0x0,%eax
jne    143e <main+0x2fe>
mov    -0x61(%rbp),%al
lea    -0x20(%rbp),%rdx
mov    $0x78,%esi
movsbl %al,%edi
call   1050 <playfair@plt>
jmp    14bf <main+0x37f>
movslq -0x5c(%rbp),%rax
movsbl -0x50(%rbp,%rax,1),%eax
cmp    $0x6a,%eax
jne    1459 <main+0x319>
movslq -0x5c(%rbp),%rax
movb   $0x69,-0x50(%rbp,%rax,1)
movsbl -0x61(%rbp),%eax
movslq -0x5c(%rbp),%rcx
movsbl -0x50(%rbp,%rcx,1),%ecx
cmp    %ecx,%eax
jne    14a0 <main+0x360>
mov    -0x61(%rbp),%al
lea    -0x20(%rbp),%rdx
mov    $0x78,%esi
movsbl %al,%edi
call   1050 <playfair@plt>
movslq -0x5c(%rbp),%rax
mov    -0x50(%rbp,%rax,1),%al
lea    -0x20(%rbp),%rdx
mov    $0x78,%edi
movsbl %al,%esi
call   1050 <playfair@plt>
jmp    14ba <main+0x37a>
mov    -0x61(%rbp),%cl
movslq -0x5c(%rbp),%rax
mov    -0x50(%rbp,%rax,1),%al
lea    -0x20(%rbp),%rdx
movsbl %cl,%edi
movsbl %al,%esi
call   1050 <playfair@plt>
jmp    14bf <main+0x37f>
jmp    14c4 <main+0x384>
mov    -0x5c(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0x5c(%rbp)
jmp    13dc <main+0x29c>
add    $0x70,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<main>:
push   %rbp
push   %r14
push   %rbx
sub    $0x50,%rsp
xorps  %xmm0,%xmm0
movups %xmm0,0x39(%rsp)
movaps %xmm0,0x30(%rsp)
lea    0xe94(%rip),%rdi
xor    %r14d,%r14d
xor    %eax,%eax
call   1050 <printf@plt>
lea    0x26(%rsp),%rbx
mov    %rbx,%rdi
call   1070 <gets@plt>
mov    0x26(%rsp),%dl
mov    $0x0,%esi
mov    $0x0,%ecx
mov    $0x0,%eax
test   %dl,%dl
je     1267 <main+0x117>
xor    %r8d,%r8d
xor    %esi,%esi
xor    %eax,%eax
xor    %ecx,%ecx
jmp    11c8 <main+0x78>
nopl   0x0(%rax)
lea    (%rsp,%rsi,1),%rbx
add    $0x27,%rbx
mov    0x27(%rsp,%rsi,1),%dl
add    $0x1,%rsi
test   %dl,%dl
je     1262 <main+0x112>
test   %rsi,%rsi
je     11f0 <main+0xa0>
mov    $0x1,%bpl
cmp    %dl,0x26(%rsp)
jne    1200 <main+0xb0>
cmp    $0x6a,%dl
je     122e <main+0xde>
test   %bpl,%bpl
jne    11b0 <main+0x60>
jmp    123c <main+0xec>
cs nopw 0x0(%rax,%rax,1)
nopl   0x0(%rax)
xor    %ebp,%ebp
cmp    $0x6a,%dl
jne    11db <main+0x8b>
jmp    122e <main+0xde>
nopl   0x0(%rax)
mov    $0x1,%edi
cs nopw 0x0(%rax,%rax,1)
nop
mov    %rdi,%rbp
cmp    %rdi,%rsi
je     1222 <main+0xd2>
lea    0x1(%rbp),%rdi
cmp    %dl,0x26(%rsp,%rbp,1)
jne    1210 <main+0xc0>
cmp    %rsi,%rbp
setb   %bpl
cmp    $0x6a,%dl
jne    11db <main+0x8b>
movb   $0x69,(%rbx)
mov    $0x69,%dl
test   %bpl,%bpl
jne    11b0 <main+0x60>
movslq %ecx,%rcx
movslq %eax,%rdi
add    $0x1,%eax
lea    (%rcx,%rcx,4),%rbp
add    %rsp,%rbp
mov    %dl,(%rdi,%rbp,1)
xor    %edx,%edx
cmp    $0x5,%eax
sete   %dl
cmove  %r8d,%eax
add    %edx,%ecx
jmp    11b0 <main+0x60>
mov    0x26(%rsp),%sil
mov    $0x61,%edx
lea    0x27(%rsp),%rbp
jmp    12aa <main+0x15a>
cs nopw 0x0(%rax,%rax,1)
nopl   (%rax)
movslq %ecx,%rcx
movslq %eax,%rdi
add    $0x1,%eax
lea    (%rcx,%rcx,4),%rbx
add    %rsp,%rbx
mov    %dl,(%rdi,%rbx,1)
xor    %edi,%edi
cmp    $0x5,%eax
sete   %dil
cmove  %r14d,%eax
add    %edi,%ecx
add    $0x1,%edx
cmp    $0x7b,%edx
je     12d4 <main+0x184>
test   %sil,%sil
je     1280 <main+0x130>
cmp    $0x6a,%edx
je     12a2 <main+0x152>
mov    %rbp,%rdi
mov    %esi,%ebx
nopl   0x0(%rax)
movsbl %bl,%ebx
cmp    %ebx,%edx
je     12a2 <main+0x152>
movzbl (%rdi),%ebx
add    $0x1,%rdi
test   %bl,%bl
jne    12c0 <main+0x170>
jmp    1280 <main+0x130>
lea    0xd30(%rip),%rdi
xor    %eax,%eax
call   1050 <printf@plt>
lea    0x30(%rsp),%r14
mov    %r14,%rdi
call   1070 <gets@plt>
lea    0xd4e(%rip),%rdi
call   1040 <puts@plt>
movsbl (%rsp),%esi
lea    0xd19(%rip),%rbx
mov    %rbx,%rdi
xor    %eax,%eax
call   1050 <printf@plt>
movsbl 0x1(%rsp),%esi
mov    %rbx,%rdi
xor    %eax,%eax
call   1050 <printf@plt>
movsbl 0x2(%rsp),%esi
mov    %rbx,%rdi
xor    %eax,%eax
call   1050 <printf@plt>
movsbl 0x3(%rsp),%esi
mov    %rbx,%rdi
xor    %eax,%eax
call   1050 <printf@plt>
movsbl 0x4(%rsp),%esi
mov    %rbx,%rdi
xor    %eax,%eax
call   1050 <printf@plt>
mov    $0xa,%edi
call   1030 <putchar@plt>
movsbl 0x5(%rsp),%esi
mov    %rbx,%rdi
xor    %eax,%eax
call   1050 <printf@plt>
movsbl 0x6(%rsp),%esi
mov    %rbx,%rdi
xor    %eax,%eax
call   1050 <printf@plt>
movsbl 0x7(%rsp),%esi
mov    %rbx,%rdi
xor    %eax,%eax
call   1050 <printf@plt>
movsbl 0x8(%rsp),%esi
mov    %rbx,%rdi
xor    %eax,%eax
call   1050 <printf@plt>
movsbl 0x9(%rsp),%esi
mov    %rbx,%rdi
xor    %eax,%eax
call   1050 <printf@plt>
mov    $0xa,%edi
call   1030 <putchar@plt>
movsbl 0xa(%rsp),%esi
mov    %rbx,%rdi
xor    %eax,%eax
call   1050 <printf@plt>
movsbl 0xb(%rsp),%esi
mov    %rbx,%rdi
xor    %eax,%eax
call   1050 <printf@plt>
movsbl 0xc(%rsp),%esi
mov    %rbx,%rdi
xor    %eax,%eax
call   1050 <printf@plt>
movsbl 0xd(%rsp),%esi
mov    %rbx,%rdi
xor    %eax,%eax
call   1050 <printf@plt>
movsbl 0xe(%rsp),%esi
mov    %rbx,%rdi
xor    %eax,%eax
call   1050 <printf@plt>
mov    $0xa,%edi
call   1030 <putchar@plt>
movsbl 0xf(%rsp),%esi
mov    %rbx,%rdi
xor    %eax,%eax
call   1050 <printf@plt>
movsbl 0x10(%rsp),%esi
mov    %rbx,%rdi
xor    %eax,%eax
call   1050 <printf@plt>
movsbl 0x11(%rsp),%esi
mov    %rbx,%rdi
xor    %eax,%eax
call   1050 <printf@plt>
movsbl 0x12(%rsp),%esi
mov    %rbx,%rdi
xor    %eax,%eax
call   1050 <printf@plt>
movsbl 0x13(%rsp),%esi
mov    %rbx,%rdi
xor    %eax,%eax
call   1050 <printf@plt>
mov    $0xa,%edi
call   1030 <putchar@plt>
movsbl 0x14(%rsp),%esi
mov    %rbx,%rdi
xor    %eax,%eax
call   1050 <printf@plt>
movsbl 0x15(%rsp),%esi
mov    %rbx,%rdi
xor    %eax,%eax
call   1050 <printf@plt>
movsbl 0x16(%rsp),%esi
mov    %rbx,%rdi
xor    %eax,%eax
call   1050 <printf@plt>
movsbl 0x17(%rsp),%esi
mov    %rbx,%rdi
xor    %eax,%eax
call   1050 <printf@plt>
movsbl 0x18(%rsp),%esi
mov    %rbx,%rdi
xor    %eax,%eax
call   1050 <printf@plt>
mov    $0xa,%edi
call   1030 <putchar@plt>
lea    0xb72(%rip),%rdi
mov    %r14,%rsi
xor    %eax,%eax
call   1050 <printf@plt>
mov    0x30(%rsp),%al
test   %al,%al
je     1545 <main+0x3f5>
lea    0x31(%rsp),%rbp
mov    $0x69,%r14d
mov    %rsp,%rbx
jmp    14f7 <main+0x3a7>
nopw   0x0(%rax,%rax,1)
movsbl %cl,%esi
mov    %rbx,%rdx
call   1060 <playfair@plt>
movzbl 0x1(%rbp),%eax
add    $0x2,%rbp
test   %al,%al
je     1545 <main+0x3f5>
cmp    $0x6a,%al
movzbl %al,%eax
cmove  %r14d,%eax
movzbl 0x0(%rbp),%ecx
cmp    $0x6a,%cl
je     1520 <main+0x3d0>
test   %cl,%cl
jne    1526 <main+0x3d6>
movsbl %al,%edi
mov    $0x78,%esi
jmp    14e3 <main+0x393>
nopw   0x0(%rax,%rax,1)
movb   $0x69,0x0(%rbp)
mov    $0x69,%cl
movsbl %al,%edi
cmp    %cl,%al
jne    14e0 <main+0x390>
mov    $0x78,%esi
mov    %rbx,%rdx
call   1060 <playfair@plt>
movsbl 0x0(%rbp),%esi
mov    $0x78,%edi
jmp    14e3 <main+0x393>
add    $0x50,%rsp
pop    %rbx
pop    %r14
pop    %rbp
ret

LLVM IR (-O0):
@.str = [11 x i8] c"Enter Key:\00"
@.str.1 = [20 x i8] c"Enter input String:\00"
@.str.2 = [12 x i8] c"\0A\0AMatrix :\0A\00"
@.str.3 = [4 x i8] c"%c\09\00"
@.str.4 = [2 x i8] c"\0A\00"
@.str.5 = [33 x i8] c"\0A\0AEntered text :%s\0ACipher Text :\00"
define void @main() {
%1 = alloca [5 x [5 x i8]]
%2 = alloca [10 x i8]
%3 = alloca [25 x i8]
%4 = alloca i32
%5 = alloca i32
%6 = alloca i32
%7 = alloca i32
%8 = alloca i8
%9 = bitcast [25 x i8]* %3 to i8*
%10 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([11 x i8], [11 x i8]* @.str, i64 0, i64 0))
%11 = getelementptr inbounds [10 x i8], [10 x i8]* %2, i64 0, i64 0
%12 = call i32 @gets(i8* %11)
store i32 0, i32* %5
store i32 0, i32* %4
store i32 0, i32* %6
br label %13
13: ; preds = %76, %0
%14 = load i32, i32* %6
%15 = sext i32 %14 to i64
%16 = getelementptr inbounds [10 x i8], [10 x i8]* %2, i64 0, i64 %15
%17 = load i8, i8* %16
%18 = sext i8 %17 to i32
%19 = icmp ne i32 %18, 0
br i1 %19, label %20, label %79
20: ; preds = %13
store i32 0, i32* %7
br label %21
21: ; preds = %39, %20
%22 = load i32, i32* %7
%23 = load i32, i32* %6
%24 = icmp slt i32 %22, %23
br i1 %24, label %25, label %42
25: ; preds = %21
%26 = load i32, i32* %7
%27 = sext i32 %26 to i64
%28 = getelementptr inbounds [10 x i8], [10 x i8]* %2, i64 0, i64 %27
%29 = load i8, i8* %28
%30 = sext i8 %29 to i32
%31 = load i32, i32* %6
%32 = sext i32 %31 to i64
%33 = getelementptr inbounds [10 x i8], [10 x i8]* %2, i64 0, i64 %32
%34 = load i8, i8* %33
%35 = sext i8 %34 to i32
%36 = icmp eq i32 %30, %35
br i1 %36, label %37, label %38
37: ; preds = %25
br label %42
38: ; preds = %25
br label %39
39: ; preds = %38
%40 = load i32, i32* %7
%41 = add nsw i32 %40, 1
store i32 %41, i32* %7
br label %21
42: ; preds = %37, %21
%43 = load i32, i32* %6
%44 = sext i32 %43 to i64
%45 = getelementptr inbounds [10 x i8], [10 x i8]* %2, i64 0, i64 %44
%46 = load i8, i8* %45
%47 = sext i8 %46 to i32
%48 = icmp eq i32 %47, 106
br i1 %48, label %49, label %53
49: ; preds = %42
%50 = load i32, i32* %6
%51 = sext i32 %50 to i64
%52 = getelementptr inbounds [10 x i8], [10 x i8]* %2, i64 0, i64 %51
store i8 105, i8* %52
br label %53
53: ; preds = %49, %42
%54 = load i32, i32* %7
%55 = load i32, i32* %6
%56 = icmp sge i32 %54, %55
br i1 %56, label %57, label %75
57: ; preds = %53
%58 = load i32, i32* %6
%59 = sext i32 %58 to i64
%60 = getelementptr inbounds [10 x i8], [10 x i8]* %2, i64 0, i64 %59
%61 = load i8, i8* %60
%62 = load i32, i32* %4
%63 = sext i32 %62 to i64
%64 = getelementptr inbounds [5 x [5 x i8]], [5 x [5 x i8]]* %1, i64 0, i64 %63
%65 = load i32, i32* %5
%66 = add nsw i32 %65, 1
store i32 %66, i32* %5
%67 = sext i32 %65 to i64
%68 = getelementptr inbounds [5 x i8], [5 x i8]* %64, i64 0, i64 %67
store i8 %61, i8* %68
%69 = load i32, i32* %5
%70 = icmp eq i32 %69, 5
br i1 %70, label %71, label %74
71: ; preds = %57
store i32 0, i32* %5
%72 = load i32, i32* %4
%73 = add nsw i32 %72, 1
store i32 %73, i32* %4
br label %74
74: ; preds = %71, %57
br label %75
75: ; preds = %74, %53
br label %76
76: ; preds = %75
%77 = load i32, i32* %6
%78 = add nsw i32 %77, 1
store i32 %78, i32* %6
br label %13
79: ; preds = %13
store i32 97, i32* %6
br label %80
80: ; preds = %133, %79
%81 = load i32, i32* %6
%82 = icmp sle i32 %81, 122
br i1 %82, label %83, label %136
83: ; preds = %80
store i32 0, i32* %7
br label %84
84: ; preds = %106, %83
%85 = load i32, i32* %7
%86 = sext i32 %85 to i64
%87 = getelementptr inbounds [10 x i8], [10 x i8]* %2, i64 0, i64 %86
%88 = load i8, i8* %87
%89 = sext i8 %88 to i32
%90 = icmp ne i32 %89, 0
br i1 %90, label %91, label %109
91: ; preds = %84
%92 = load i32, i32* %7
%93 = sext i32 %92 to i64
%94 = getelementptr inbounds [10 x i8], [10 x i8]* %2, i64 0, i64 %93
%95 = load i8, i8* %94
%96 = sext i8 %95 to i32
%97 = load i32, i32* %6
%98 = icmp eq i32 %96, %97
br i1 %98, label %99, label %100
99: ; preds = %91
br label %109
100: ; preds = %91
%101 = load i32, i32* %6
%102 = icmp eq i32 %101, 106
br i1 %102, label %103, label %104
103: ; preds = %100
br label %109
104: ; preds = %100
br label %105
105: ; preds = %104
br label %106
106: ; preds = %105
%107 = load i32, i32* %7
%108 = add nsw i32 %107, 1
store i32 %108, i32* %7
br label %84
109: ; preds = %103, %99, %84
%110 = load i32, i32* %7
%111 = sext i32 %110 to i64
%112 = getelementptr inbounds [10 x i8], [10 x i8]* %2, i64 0, i64 %111
%113 = load i8, i8* %112
%114 = sext i8 %113 to i32
%115 = icmp eq i32 %114, 0
br i1 %115, label %116, label %132
116: ; preds = %109
%117 = load i32, i32* %6
%118 = trunc i32 %117 to i8
%119 = load i32, i32* %4
%120 = sext i32 %119 to i64
%121 = getelementptr inbounds [5 x [5 x i8]], [5 x [5 x i8]]* %1, i64 0, i64 %120
%122 = load i32, i32* %5
%123 = add nsw i32 %122, 1
store i32 %123, i32* %5
%124 = sext i32 %122 to i64
%125 = getelementptr inbounds [5 x i8], [5 x i8]* %121, i64 0, i64 %124
store i8 %118, i8* %125
%126 = load i32, i32* %5
%127 = icmp eq i32 %126, 5
br i1 %127, label %128, label %131
128: ; preds = %116
store i32 0, i32* %5
%129 = load i32, i32* %4
%130 = add nsw i32 %129, 1
store i32 %130, i32* %4
br label %131
131: ; preds = %128, %116
br label %132
132: ; preds = %131, %109
br label %133
133: ; preds = %132
%134 = load i32, i32* %6
%135 = add nsw i32 %134, 1
store i32 %135, i32* %6
br label %80
136: ; preds = %80
%137 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([20 x i8], [20 x i8]* @.str.1, i64 0, i64 0))
%138 = getelementptr inbounds [25 x i8], [25 x i8]* %3, i64 0, i64 0
%139 = call i32 @gets(i8* %138)
%140 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([12 x i8], [12 x i8]* @.str.2, i64 0, i64 0))
store i32 0, i32* %6
br label %141
141: ; preds = %163, %136
%142 = load i32, i32* %6
%143 = icmp slt i32 %142, 5
br i1 %143, label %144, label %166
144: ; preds = %141
store i32 0, i32* %7
br label %145
145: ; preds = %158, %144
%146 = load i32, i32* %7
%147 = icmp slt i32 %146, 5
br i1 %147, label %148, label %161
148: ; preds = %145
%149 = load i32, i32* %6
%150 = sext i32 %149 to i64
%151 = getelementptr inbounds [5 x [5 x i8]], [5 x [5 x i8]]* %1, i64 0, i64 %150
%152 = load i32, i32* %7
%153 = sext i32 %152 to i64
%154 = getelementptr inbounds [5 x i8], [5 x i8]* %151, i64 0, i64 %153
%155 = load i8, i8* %154
%156 = sext i8 %155 to i32
%157 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([4 x i8], [4 x i8]* @.str.3, i64 0, i64 0), i32 %156)
br label %158
158: ; preds = %148
%159 = load i32, i32* %7
%160 = add nsw i32 %159, 1
store i32 %160, i32* %7
br label %145
161: ; preds = %145
%162 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([2 x i8], [2 x i8]* @.str.4, i64 0, i64 0))
br label %163
163: ; preds = %161
%164 = load i32, i32* %6
%165 = add nsw i32 %164, 1
store i32 %165, i32* %6
br label %141
166: ; preds = %141
%167 = getelementptr inbounds [25 x i8], [25 x i8]* %3, i64 0, i64 0
%168 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([33 x i8], [33 x i8]* @.str.5, i64 0, i64 0), i8* %167)
store i32 0, i32* %6
br label %169
169: ; preds = %241, %166
%170 = load i32, i32* %6
%171 = sext i32 %170 to i64
%172 = getelementptr inbounds [25 x i8], [25 x i8]* %3, i64 0, i64 %171
%173 = load i8, i8* %172
%174 = sext i8 %173 to i32
%175 = icmp ne i32 %174, 0
br i1 %175, label %176, label %244
176: ; preds = %169
%177 = load i32, i32* %6
%178 = add nsw i32 %177, 1
store i32 %178, i32* %6
%179 = sext i32 %177 to i64
%180 = getelementptr inbounds [25 x i8], [25 x i8]* %3, i64 0, i64 %179
%181 = load i8, i8* %180
store i8 %181, i8* %8
%182 = load i8, i8* %8
%183 = sext i8 %182 to i32
%184 = icmp eq i32 %183, 106
br i1 %184, label %185, label %186
185: ; preds = %176
store i8 105, i8* %8
br label %186
186: ; preds = %185, %176
%187 = load i32, i32* %6
%188 = sext i32 %187 to i64
%189 = getelementptr inbounds [25 x i8], [25 x i8]* %3, i64 0, i64 %188
%190 = load i8, i8* %189
%191 = sext i8 %190 to i32
%192 = icmp eq i32 %191, 0
br i1 %192, label %193, label %198
193: ; preds = %186
%194 = load i8, i8* %8
%195 = getelementptr inbounds [5 x [5 x i8]], [5 x [5 x i8]]* %1, i64 0, i64 0
%196 = bitcast [5 x i8]* %195 to i8**
%197 = call i32 @playfair(i8 signext %194, i8 signext 120, i8** %196)
br label %240
198: ; preds = %186
%199 = load i32, i32* %6
%200 = sext i32 %199 to i64
%201 = getelementptr inbounds [25 x i8], [25 x i8]* %3, i64 0, i64 %200
%202 = load i8, i8* %201
%203 = sext i8 %202 to i32
%204 = icmp eq i32 %203, 106
br i1 %204, label %205, label %209
205: ; preds = %198
%206 = load i32, i32* %6
%207 = sext i32 %206 to i64
%208 = getelementptr inbounds [25 x i8], [25 x i8]* %3, i64 0, i64 %207
store i8 105, i8* %208
br label %209
209: ; preds = %205, %198
%210 = load i8, i8* %8
%211 = sext i8 %210 to i32
%212 = load i32, i32* %6
%213 = sext i32 %212 to i64
%214 = getelementptr inbounds [25 x i8], [25 x i8]* %3, i64 0, i64 %213
%215 = load i8, i8* %214
%216 = sext i8 %215 to i32
%217 = icmp eq i32 %211, %216
br i1 %217, label %218, label %230
218: ; preds = %209
%219 = load i8, i8* %8
%220 = getelementptr inbounds [5 x [5 x i8]], [5 x [5 x i8]]* %1, i64 0, i64 0
%221 = bitcast [5 x i8]* %220 to i8**
%222 = call i32 @playfair(i8 signext %219, i8 signext 120, i8** %221)
%223 = load i32, i32* %6
%224 = sext i32 %223 to i64
%225 = getelementptr inbounds [25 x i8], [25 x i8]* %3, i64 0, i64 %224
%226 = load i8, i8* %225
%227 = getelementptr inbounds [5 x [5 x i8]], [5 x [5 x i8]]* %1, i64 0, i64 0
%228 = bitcast [5 x i8]* %227 to i8**
%229 = call i32 @playfair(i8 signext 120, i8 signext %226, i8** %228)
br label %239
230: ; preds = %209
%231 = load i8, i8* %8
%232 = load i32, i32* %6
%233 = sext i32 %232 to i64
%234 = getelementptr inbounds [25 x i8], [25 x i8]* %3, i64 0, i64 %233
%235 = load i8, i8* %234
%236 = getelementptr inbounds [5 x [5 x i8]], [5 x [5 x i8]]* %1, i64 0, i64 0
%237 = bitcast [5 x i8]* %236 to i8**
%238 = call i32 @playfair(i8 signext %231, i8 signext %235, i8** %237)
br label %239
239: ; preds = %230, %218
br label %240
240: ; preds = %239, %193
br label %241
241: ; preds = %240
%242 = load i32, i32* %6
%243 = add nsw i32 %242, 1
store i32 %243, i32* %6
br label %169
244: ; preds = %169
ret void
}

LLVM IR (-O2):
@.str = [11 x i8] c"Enter Key:\00"
@.str.1 = [20 x i8] c"Enter input String:\00"
@.str.3 = [4 x i8] c"%c\09\00"
@.str.5 = [33 x i8] c"\0A\0AEntered text :%s\0ACipher Text :\00"
@str = [11 x i8] c"\0A\0AMatrix :\00"
define void @main() {
%1 = alloca [5 x [5 x i8]]
%2 = alloca [10 x i8]
%3 = alloca [25 x i8]
%4 = getelementptr inbounds [5 x [5 x i8]], [5 x [5 x i8]]* %1, i64 0, i64 0, i64 0
%5 = getelementptr inbounds [10 x i8], [10 x i8]* %2, i64 0, i64 0
%6 = getelementptr inbounds [25 x i8], [25 x i8]* %3, i64 0, i64 0
%7 = tail call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([11 x i8], [11 x i8]* @.str, i64 0, i64 0))
%8 = call i32 @gets(i8* %5)
%9 = load i8, i8* %5
%10 = icmp eq i8 %9, 0
br i1 %10, label %25, label %11
11: ; preds = %0
%12 = getelementptr inbounds [10 x i8], [10 x i8]* %2, i64 0, i64 0
br label %13
13: ; preds = %11, %55
%14 = phi i64 [ %58, %55 ], [ 0, %11 ]
%15 = phi i8 [ %60, %55 ], [ %9, %11 ]
%16 = phi i8* [ %59, %55 ], [ %5, %11 ]
%17 = phi i32 [ %57, %55 ], [ 0, %11 ]
%18 = phi i32 [ %56, %55 ], [ 0, %11 ]
%19 = icmp eq i64 %14, 0
br i1 %19, label %40, label %20
20: ; preds = %13
%21 = load i8, i8* %12
%22 = icmp eq i8 %21, %15
br i1 %22, label %40, label %30
23: ; preds = %55
%24 = load i8, i8* %5
br label %25
25: ; preds = %23, %0
%26 = phi i8 [ 0, %0 ], [ %24, %23 ]
%27 = phi i32 [ 0, %0 ], [ %56, %23 ]
%28 = phi i32 [ 0, %0 ], [ %57, %23 ]
%29 = icmp eq i8 %26, 0
br label %62
30: ; preds = %20, %33
%31 = phi i64 [ %37, %33 ], [ 1, %20 ]
%32 = icmp eq i64 %31, %14
br i1 %32, label %38, label %33
33: ; preds = %30
%34 = getelementptr inbounds [10 x i8], [10 x i8]* %2, i64 0, i64 %31
%35 = load i8, i8* %34
%36 = icmp eq i8 %35, %15
%37 = add nuw nsw i64 %31, 1
br i1 %36, label %38, label %30
38: ; preds = %30, %33
%39 = icmp ult i64 %31, %14
br label %40
40: ; preds = %38, %20, %13
%41 = phi i1 [ false, %13 ], [ true, %20 ], [ %39, %38 ]
%42 = icmp eq i8 %15, 106
br i1 %42, label %43, label %44
43: ; preds = %40
store i8 105, i8* %16
br label %44
44: ; preds = %43, %40
%45 = phi i8 [ 105, %43 ], [ %15, %40 ]
br i1 %41, label %55, label %46
46: ; preds = %44
%47 = sext i32 %18 to i64
%48 = add nsw i32 %17, 1
%49 = sext i32 %17 to i64
%50 = getelementptr inbounds [5 x [5 x i8]], [5 x [5 x i8]]* %1, i64 0, i64 %47, i64 %49
store i8 %45, i8* %50
%51 = icmp eq i32 %48, 5
%52 = zext i1 %51 to i32
%53 = add nsw i32 %18, %52
%54 = select i1 %51, i32 0, i32 %48
br label %55
55: ; preds = %46, %44
%56 = phi i32 [ %18, %44 ], [ %53, %46 ]
%57 = phi i32 [ %17, %44 ], [ %54, %46 ]
%58 = add nuw i64 %14, 1
%59 = getelementptr inbounds [10 x i8], [10 x i8]* %2, i64 0, i64 %58
%60 = load i8, i8* %59
%61 = icmp eq i8 %60, 0
br i1 %61, label %23, label %13
62: ; preds = %25, %88
%63 = phi i32 [ 97, %25 ], [ %91, %88 ]
%64 = phi i32 [ %28, %25 ], [ %90, %88 ]
%65 = phi i32 [ %27, %25 ], [ %89, %88 ]
br i1 %29, label %78, label %66
66: ; preds = %62
%67 = icmp eq i32 %63, 106
br i1 %67, label %88, label %72
68: ; preds = %72
%69 = getelementptr inbounds [10 x i8], [10 x i8]* %2, i64 0, i64 %77
%70 = load i8, i8* %69
%71 = icmp eq i8 %70, 0
br i1 %71, label %78, label %72
72: ; preds = %66, %68
%73 = phi i64 [ %77, %68 ], [ 0, %66 ]
%74 = phi i8 [ %70, %68 ], [ %26, %66 ]
%75 = sext i8 %74 to i32
%76 = icmp eq i32 %63, %75
%77 = add nuw i64 %73, 1
br i1 %76, label %88, label %68
78: ; preds = %68, %62
%79 = trunc i32 %63 to i8
%80 = sext i32 %65 to i64
%81 = add nsw i32 %64, 1
%82 = sext i32 %64 to i64
%83 = getelementptr inbounds [5 x [5 x i8]], [5 x [5 x i8]]* %1, i64 0, i64 %80, i64 %82
store i8 %79, i8* %83
%84 = icmp eq i32 %81, 5
%85 = zext i1 %84 to i32
%86 = add nsw i32 %65, %85
%87 = select i1 %84, i32 0, i32 %81
br label %88
88: ; preds = %72, %66, %78
%89 = phi i32 [ %86, %78 ], [ %65, %66 ], [ %65, %72 ]
%90 = phi i32 [ %87, %78 ], [ %64, %66 ], [ %64, %72 ]
%91 = add nuw nsw i32 %63, 1
%92 = icmp eq i32 %91, 123
br i1 %92, label %93, label %62
93: ; preds = %88
%94 = call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([20 x i8], [20 x i8]* @.str.1, i64 0, i64 0))
%95 = call i32 @gets(i8* %6)
%96 = call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([11 x i8], [11 x i8]* @str, i64 0, i64 0))
%97 = load i8, i8* %4
%98 = sext i8 %97 to i32
%99 = call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([4 x i8], [4 x i8]* @.str.3, i64 0, i64 0), i32 %98)
%100 = getelementptr inbounds [5 x [5 x i8]], [5 x [5 x i8]]* %1, i64 0, i64 0, i64 1
%101 = load i8, i8* %100
%102 = sext i8 %101 to i32
%103 = call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([4 x i8], [4 x i8]* @.str.3, i64 0, i64 0), i32 %102)
%104 = getelementptr inbounds [5 x [5 x i8]], [5 x [5 x i8]]* %1, i64 0, i64 0, i64 2
%105 = load i8, i8* %104
%106 = sext i8 %105 to i32
%107 = call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([4 x i8], [4 x i8]* @.str.3, i64 0, i64 0), i32 %106)
%108 = getelementptr inbounds [5 x [5 x i8]], [5 x [5 x i8]]* %1, i64 0, i64 0, i64 3
%109 = load i8, i8* %108
%110 = sext i8 %109 to i32
%111 = call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([4 x i8], [4 x i8]* @.str.3, i64 0, i64 0), i32 %110)
%112 = getelementptr inbounds [5 x [5 x i8]], [5 x [5 x i8]]* %1, i64 0, i64 0, i64 4
%113 = load i8, i8* %112
%114 = sext i8 %113 to i32
%115 = call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([4 x i8], [4 x i8]* @.str.3, i64 0, i64 0), i32 %114)
%116 = call i32 @putchar(i32 10)
%117 = getelementptr inbounds [5 x [5 x i8]], [5 x [5 x i8]]* %1, i64 0, i64 1, i64 0
%118 = load i8, i8* %117
%119 = sext i8 %118 to i32
%120 = call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([4 x i8], [4 x i8]* @.str.3, i64 0, i64 0), i32 %119)
%121 = getelementptr inbounds [5 x [5 x i8]], [5 x [5 x i8]]* %1, i64 0, i64 1, i64 1
%122 = load i8, i8* %121
%123 = sext i8 %122 to i32
%124 = call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([4 x i8], [4 x i8]* @.str.3, i64 0, i64 0), i32 %123)
%125 = getelementptr inbounds [5 x [5 x i8]], [5 x [5 x i8]]* %1, i64 0, i64 1, i64 2
%126 = load i8, i8* %125
%127 = sext i8 %126 to i32
%128 = call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([4 x i8], [4 x i8]* @.str.3, i64 0, i64 0), i32 %127)
%129 = getelementptr inbounds [5 x [5 x i8]], [5 x [5 x i8]]* %1, i64 0, i64 1, i64 3
%130 = load i8, i8* %129
%131 = sext i8 %130 to i32
%132 = call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([4 x i8], [4 x i8]* @.str.3, i64 0, i64 0), i32 %131)
%133 = getelementptr inbounds [5 x [5 x i8]], [5 x [5 x i8]]* %1, i64 0, i64 1, i64 4
%134 = load i8, i8* %133
%135 = sext i8 %134 to i32
%136 = call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([4 x i8], [4 x i8]* @.str.3, i64 0, i64 0), i32 %135)
%137 = call i32 @putchar(i32 10)
%138 = getelementptr inbounds [5 x [5 x i8]], [5 x [5 x i8]]* %1, i64 0, i64 2, i64 0
%139 = load i8, i8* %138
%140 = sext i8 %139 to i32
%141 = call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([4 x i8], [4 x i8]* @.str.3, i64 0, i64 0), i32 %140)
%142 = getelementptr inbounds [5 x [5 x i8]], [5 x [5 x i8]]* %1, i64 0, i64 2, i64 1
%143 = load i8, i8* %142
%144 = sext i8 %143 to i32
%145 = call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([4 x i8], [4 x i8]* @.str.3, i64 0, i64 0), i32 %144)
%146 = getelementptr inbounds [5 x [5 x i8]], [5 x [5 x i8]]* %1, i64 0, i64 2, i64 2
%147 = load i8, i8* %146
%148 = sext i8 %147 to i32
%149 = call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([4 x i8], [4 x i8]* @.str.3, i64 0, i64 0), i32 %148)
%150 = getelementptr inbounds [5 x [5 x i8]], [5 x [5 x i8]]* %1, i64 0, i64 2, i64 3
%151 = load i8, i8* %150
%152 = sext i8 %151 to i32
%153 = call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([4 x i8], [4 x i8]* @.str.3, i64 0, i64 0), i32 %152)
%154 = getelementptr inbounds [5 x [5 x i8]], [5 x [5 x i8]]* %1, i64 0, i64 2, i64 4
%155 = load i8, i8* %154
%156 = sext i8 %155 to i32
%157 = call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([4 x i8], [4 x i8]* @.str.3, i64 0, i64 0), i32 %156)
%158 = call i32 @putchar(i32 10)
%159 = getelementptr inbounds [5 x [5 x i8]], [5 x [5 x i8]]* %1, i64 0, i64 3, i64 0
%160 = load i8, i8* %159
%161 = sext i8 %160 to i32
%162 = call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([4 x i8], [4 x i8]* @.str.3, i64 0, i64 0), i32 %161)
%163 = getelementptr inbounds [5 x [5 x i8]], [5 x [5 x i8]]* %1, i64 0, i64 3, i64 1
%164 = load i8, i8* %163
%165 = sext i8 %164 to i32
%166 = call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([4 x i8], [4 x i8]* @.str.3, i64 0, i64 0), i32 %165)
%167 = getelementptr inbounds [5 x [5 x i8]], [5 x [5 x i8]]* %1, i64 0, i64 3, i64 2
%168 = load i8, i8* %167
%169 = sext i8 %168 to i32
%170 = call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([4 x i8], [4 x i8]* @.str.3, i64 0, i64 0), i32 %169)
%171 = getelementptr inbounds [5 x [5 x i8]], [5 x [5 x i8]]* %1, i64 0, i64 3, i64 3
%172 = load i8, i8* %171
%173 = sext i8 %172 to i32
%174 = call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([4 x i8], [4 x i8]* @.str.3, i64 0, i64 0), i32 %173)
%175 = getelementptr inbounds [5 x [5 x i8]], [5 x [5 x i8]]* %1, i64 0, i64 3, i64 4
%176 = load i8, i8* %175
%177 = sext i8 %176 to i32
%178 = call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([4 x i8], [4 x i8]* @.str.3, i64 0, i64 0), i32 %177)
%179 = call i32 @putchar(i32 10)
%180 = getelementptr inbounds [5 x [5 x i8]], [5 x [5 x i8]]* %1, i64 0, i64 4, i64 0
%181 = load i8, i8* %180
%182 = sext i8 %181 to i32
%183 = call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([4 x i8], [4 x i8]* @.str.3, i64 0, i64 0), i32 %182)
%184 = getelementptr inbounds [5 x [5 x i8]], [5 x [5 x i8]]* %1, i64 0, i64 4, i64 1
%185 = load i8, i8* %184
%186 = sext i8 %185 to i32
%187 = call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([4 x i8], [4 x i8]* @.str.3, i64 0, i64 0), i32 %186)
%188 = getelementptr inbounds [5 x [5 x i8]], [5 x [5 x i8]]* %1, i64 0, i64 4, i64 2
%189 = load i8, i8* %188
%190 = sext i8 %189 to i32
%191 = call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([4 x i8], [4 x i8]* @.str.3, i64 0, i64 0), i32 %190)
%192 = getelementptr inbounds [5 x [5 x i8]], [5 x [5 x i8]]* %1, i64 0, i64 4, i64 3
%193 = load i8, i8* %192
%194 = sext i8 %193 to i32
%195 = call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([4 x i8], [4 x i8]* @.str.3, i64 0, i64 0), i32 %194)
%196 = getelementptr inbounds [5 x [5 x i8]], [5 x [5 x i8]]* %1, i64 0, i64 4, i64 4
%197 = load i8, i8* %196
%198 = sext i8 %197 to i32
%199 = call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([4 x i8], [4 x i8]* @.str.3, i64 0, i64 0), i32 %198)
%200 = call i32 @putchar(i32 10)
%201 = call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([33 x i8], [33 x i8]* @.str.5, i64 0, i64 0), i8* %6)
%202 = load i8, i8* %6
%203 = icmp eq i8 %202, 0
br i1 %203, label %231, label %204
204: ; preds = %93
%205 = bitcast [5 x [5 x i8]]* %1 to i8**
br label %206
206: ; preds = %204, %226
%207 = phi i64 [ 0, %204 ], [ %227, %226 ]
%208 = phi i8 [ %202, %204 ], [ %229, %226 ]
%209 = or i64 %207, 1
%210 = icmp eq i8 %208, 106
%211 = select i1 %210, i8 105, i8 %208
%212 = getelementptr inbounds [25 x i8], [25 x i8]* %3, i64 0, i64 %209
%213 = load i8, i8* %212
switch i8 %213, label %217 [
i8 0, label %214
i8 106, label %216
]
214: ; preds = %206
%215 = call i32 @playfair(i8 signext %211, i8 signext 120, i8** %205)
br label %226
216: ; preds = %206
store i8 105, i8* %212
br label %217
217: ; preds = %206, %216
%218 = phi i8 [ %213, %206 ], [ 105, %216 ]
%219 = icmp eq i8 %211, %218
br i1 %219, label %220, label %224
220: ; preds = %217
%221 = call i32 @playfair(i8 signext %211, i8 signext 120, i8** %205)
%222 = load i8, i8* %212
%223 = call i32 @playfair(i8 signext 120, i8 signext %222, i8** %205)
br label %226
224: ; preds = %217
%225 = call i32 @playfair(i8 signext %211, i8 signext %218, i8** %205)
br label %226
226: ; preds = %214, %224, %220
%227 = add nuw i64 %207, 2
%228 = getelementptr inbounds [25 x i8], [25 x i8]* %3, i64 0, i64 %227
%229 = load i8, i8* %228
%230 = icmp eq i8 %229, 0
br i1 %230, label %231, label %206
231: ; preds = %226, %93
ret void
}