#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*/ printf(char *, ...);
int strlen(char *);
int main() {
  char mirror[256];
  char input[32];
  int count, length;
  int i, j;
  int is_mirror, is_palindrome;
  mirror['A'] = 'A';
  mirror['B'] = '\0';
  mirror['C'] = '\0';
  mirror['D'] = '\0';
  mirror['E'] = '3';
  mirror['F'] = '\0';
  mirror['G'] = '\0';
  mirror['H'] = 'H';
  mirror['I'] = 'I';
  mirror['J'] = 'L';
  mirror['K'] = '\0';
  mirror['L'] = 'J';
  mirror['M'] = 'M';
  mirror['N'] = '\0';
  mirror['O'] = 'O';
  mirror['P'] = '\0';
  mirror['Q'] = '\0';
  mirror['R'] = '\0';
  mirror['S'] = '2';
  mirror['T'] = 'T';
  mirror['U'] = 'U';
  mirror['V'] = 'V';
  mirror['W'] = 'W';
  mirror['X'] = 'X';
  mirror['Y'] = 'Y';
  mirror['Z'] = '5';
  mirror['1'] = '1';
  mirror['2'] = 'S';
  mirror['3'] = 'E';
  mirror['4'] = '\0';
  mirror['5'] = 'Z';
  mirror['6'] = '\0';
  mirror['7'] = '\0';
  mirror['8'] = '8';
  mirror['9'] = '\0';
  while (gets(input) != NULL) {
    length = strlen(input);
    is_mirror = is_palindrome = 1;
    for (i = 0, j = length - 1; i <= j; i++, j--) {
      if (input[i] != input[j])
        is_palindrome = 0;
      if (mirror[input[i]] != input[j])
        is_mirror = 0;
      if (is_palindrome == 0 && is_mirror == 0)
        break;
    }
    if (is_mirror == 1 && is_palindrome == 1) {
      printf("%s -- is a mirrored palindrome.\n", input);
    } else if (is_mirror == 1 && is_palindrome == 0) {
      printf("%s -- is a mirrored string.\n", input);
    } else if (is_mirror == 0 && is_palindrome == 1) {
      printf("%s -- is a regular palindrome.\n", input);
    } else {
      printf("%s -- is not a palindrome.\n", input);
    }
    printf("\n");
  }
  return 0;
}


x86 assembly (clang, -O0):
<main>:
push   %rbp
mov    %rsp,%rbp
sub    $0x150,%rsp
movl   $0x0,-0x4(%rbp)
movb   $0x41,-0xcf(%rbp)
movb   $0x0,-0xce(%rbp)
movb   $0x0,-0xcd(%rbp)
movb   $0x0,-0xcc(%rbp)
movb   $0x33,-0xcb(%rbp)
movb   $0x0,-0xca(%rbp)
movb   $0x0,-0xc9(%rbp)
movb   $0x48,-0xc8(%rbp)
movb   $0x49,-0xc7(%rbp)
movb   $0x4c,-0xc6(%rbp)
movb   $0x0,-0xc5(%rbp)
movb   $0x4a,-0xc4(%rbp)
movb   $0x4d,-0xc3(%rbp)
movb   $0x0,-0xc2(%rbp)
movb   $0x4f,-0xc1(%rbp)
movb   $0x0,-0xc0(%rbp)
movb   $0x0,-0xbf(%rbp)
movb   $0x0,-0xbe(%rbp)
movb   $0x32,-0xbd(%rbp)
movb   $0x54,-0xbc(%rbp)
movb   $0x55,-0xbb(%rbp)
movb   $0x56,-0xba(%rbp)
movb   $0x57,-0xb9(%rbp)
movb   $0x58,-0xb8(%rbp)
movb   $0x59,-0xb7(%rbp)
movb   $0x35,-0xb6(%rbp)
movb   $0x31,-0xdf(%rbp)
movb   $0x53,-0xde(%rbp)
movb   $0x45,-0xdd(%rbp)
movb   $0x0,-0xdc(%rbp)
movb   $0x5a,-0xdb(%rbp)
movb   $0x0,-0xda(%rbp)
movb   $0x0,-0xd9(%rbp)
movb   $0x38,-0xd8(%rbp)
movb   $0x0,-0xd7(%rbp)
lea    -0x130(%rbp),%rdi
call   1050 <gets@plt>
cmp    $0x0,%rax
je     141c <main+0x2ec>
lea    -0x130(%rbp),%rdi
call   1030 <strlen@plt>
mov    %eax,-0x138(%rbp)
movl   $0x1,-0x148(%rbp)
movl   $0x1,-0x144(%rbp)
movl   $0x0,-0x13c(%rbp)
mov    -0x138(%rbp),%eax
sub    $0x1,%eax
mov    %eax,-0x140(%rbp)
mov    -0x13c(%rbp),%eax
cmp    -0x140(%rbp),%eax
jg     134e <main+0x21e>
movslq -0x13c(%rbp),%rax
movsbl -0x130(%rbp,%rax,1),%eax
ff
movslq -0x140(%rbp),%rcx
movsbl -0x130(%rbp,%rcx,1),%ecx
ff
cmp    %ecx,%eax
je     12ce <main+0x19e>
movl   $0x0,-0x148(%rbp)
movslq -0x13c(%rbp),%rax
movsbq -0x130(%rbp,%rax,1),%rax
ff ff
movsbl -0x110(%rbp,%rax,1),%eax
ff
movslq -0x140(%rbp),%rcx
movsbl -0x130(%rbp,%rcx,1),%ecx
ff
cmp    %ecx,%eax
je     1307 <main+0x1d7>
movl   $0x0,-0x144(%rbp)
cmpl   $0x0,-0x148(%rbp)
jne    1326 <main+0x1f6>
cmpl   $0x0,-0x144(%rbp)
jne    1326 <main+0x1f6>
jmp    134e <main+0x21e>
jmp    132b <main+0x1fb>
mov    -0x13c(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0x13c(%rbp)
mov    -0x140(%rbp),%eax
add    $0xffffffff,%eax
mov    %eax,-0x140(%rbp)
jmp    128c <main+0x15c>
cmpl   $0x1,-0x144(%rbp)
jne    1382 <main+0x252>
cmpl   $0x1,-0x148(%rbp)
jne    1382 <main+0x252>
lea    -0x130(%rbp),%rsi
lea    0xc8a(%rip),%rdi
mov    $0x0,%al
call   1040 <printf@plt>
jmp    1409 <main+0x2d9>
cmpl   $0x1,-0x144(%rbp)
jne    13b6 <main+0x286>
cmpl   $0x0,-0x148(%rbp)
jne    13b6 <main+0x286>
lea    -0x130(%rbp),%rsi
lea    0xc77(%rip),%rdi
mov    $0x0,%al
call   1040 <printf@plt>
jmp    1404 <main+0x2d4>
cmpl   $0x0,-0x144(%rbp)
jne    13ea <main+0x2ba>
cmpl   $0x1,-0x148(%rbp)
jne    13ea <main+0x2ba>
lea    -0x130(%rbp),%rsi
lea    0xc60(%rip),%rdi
mov    $0x0,%al
call   1040 <printf@plt>
jmp    13ff <main+0x2cf>
lea    -0x130(%rbp),%rsi
lea    0xc66(%rip),%rdi
mov    $0x0,%al
call   1040 <printf@plt>
jmp    1404 <main+0x2d4>
jmp    1409 <main+0x2d9>
lea    0xc68(%rip),%rdi
mov    $0x0,%al
call   1040 <printf@plt>
jmp    1237 <main+0x107>
xor    %eax,%eax
add    $0x150,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<main>:
push   %rbp
push   %r15
push   %r14
push   %r13
push   %r12
push   %rbx
sub    $0x128,%rsp
movaps 0xea8(%rip),%xmm0
movups %xmm0,0x61(%rsp)
movabs $0x5857565554320000,%rax
56 57 58
mov    %rax,0x71(%rsp)
movw   $0x3559,0x79(%rsp)
movabs $0x3800005a00455331,%rax
mov    %rax,0x51(%rsp)
movb   $0x0,0x59(%rsp)
mov    %rsp,%rdi
call   1060 <gets@plt>
test   %rax,%rax
je     1298 <main+0x158>
mov    %rsp,%r14
xor    %ebp,%ebp
lea    0xeca(%rip),%r15
lea    0xe65(%rip),%r12
lea    0xe7f(%rip),%r13
jmp    11e8 <main+0xa8>
cs nopw 0x0(%rax,%rax,1)
xchg   %ax,%ax
mov    %r15,%rdi
mov    %r14,%rsi
xor    %eax,%eax
call   1050 <printf@plt>
mov    $0xa,%edi
call   1030 <putchar@plt>
mov    %r14,%rdi
call   1060 <gets@plt>
test   %rax,%rax
je     1298 <main+0x158>
mov    %r14,%rdi
call   1040 <strlen@plt>
test   %eax,%eax
jle    1250 <main+0x110>
mov    %eax,%edx
add    $0xffffffffffffffff,%rdx
mov    $0x1,%eax
xor    %esi,%esi
mov    $0x1,%ecx
cs nopw 0x0(%rax,%rax,1)
movsbq (%rsp,%rsi,1),%rdi
movzbl (%rsp,%rdx,1),%ebx
cmp    %bl,%dil
cmovne %ebp,%eax
cmp    %bl,0x20(%rsp,%rdi,1)
cmovne %ebp,%ecx
mov    %eax,%edi
or     %ecx,%edi
je     11c0 <main+0x80>
add    $0x1,%rsi
lea    -0x1(%rdx),%rdi
cmp    %rdx,%rsi
mov    %rdi,%rdx
jl     1210 <main+0xd0>
cmp    $0x1,%ecx
je     125f <main+0x11f>
jmp    126b <main+0x12b>
cs nopw 0x0(%rax,%rax,1)
nopl   (%rax)
mov    $0x1,%ecx
mov    $0x1,%eax
cmp    $0x1,%ecx
jne    126b <main+0x12b>
mov    %r12,%rdi
cmp    $0x1,%eax
je     11c3 <main+0x83>
cmp    $0x1,%ecx
jne    127b <main+0x13b>
mov    %r13,%rdi
test   %eax,%eax
je     11c3 <main+0x83>
test   %ecx,%ecx
jne    11c0 <main+0x80>
lea    0xdc4(%rip),%rdi
cmp    $0x1,%eax
je     11c3 <main+0x83>
jmp    11c0 <main+0x80>
xor    %eax,%eax
add    $0x128,%rsp
pop    %rbx
pop    %r12
pop    %r13
pop    %r14
pop    %r15
pop    %rbp
ret

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

LLVM IR (-O2):
@.str = [33 x i8] c"%s -- is a mirrored palindrome.\0A\00"
@.str.1 = [29 x i8] c"%s -- is a mirrored string.\0A\00"
@.str.2 = [32 x i8] c"%s -- is a regular palindrome.\0A\00"
@.str.3 = [28 x i8] c"%s -- is not a palindrome.\0A\00"
define i32 @main() {
%1 = alloca [256 x i8]
%2 = alloca [32 x i8]
%3 = getelementptr inbounds [256 x i8], [256 x i8]* %1, i64 0, i64 0
%4 = getelementptr inbounds [32 x i8], [32 x i8]* %2, i64 0, i64 0
%5 = getelementptr inbounds [256 x i8], [256 x i8]* %1, i64 0, i64 65
%6 = bitcast i8* %5 to <16 x i8>*
store <16 x i8> <i8 65, i8 0, i8 0, i8 0, i8 51, i8 0, i8 0, i8 72, i8 73, i8 76, i8 0, i8 74, i8 77, i8 0, i8 79, i8 0>, <16 x i8>* %6
%7 = getelementptr inbounds [256 x i8], [256 x i8]* %1, i64 0, i64 81
store i8 0, i8* %7
%8 = getelementptr inbounds [256 x i8], [256 x i8]* %1, i64 0, i64 82
store i8 0, i8* %8
%9 = getelementptr inbounds [256 x i8], [256 x i8]* %1, i64 0, i64 83
store i8 50, i8* %9
%10 = getelementptr inbounds [256 x i8], [256 x i8]* %1, i64 0, i64 84
store i8 84, i8* %10
%11 = getelementptr inbounds [256 x i8], [256 x i8]* %1, i64 0, i64 85
store i8 85, i8* %11
%12 = getelementptr inbounds [256 x i8], [256 x i8]* %1, i64 0, i64 86
store i8 86, i8* %12
%13 = getelementptr inbounds [256 x i8], [256 x i8]* %1, i64 0, i64 87
store i8 87, i8* %13
%14 = getelementptr inbounds [256 x i8], [256 x i8]* %1, i64 0, i64 88
store i8 88, i8* %14
%15 = getelementptr inbounds [256 x i8], [256 x i8]* %1, i64 0, i64 89
store i8 89, i8* %15
%16 = getelementptr inbounds [256 x i8], [256 x i8]* %1, i64 0, i64 90
store i8 53, i8* %16
%17 = getelementptr inbounds [256 x i8], [256 x i8]* %1, i64 0, i64 49
store i8 49, i8* %17
%18 = getelementptr inbounds [256 x i8], [256 x i8]* %1, i64 0, i64 50
store i8 83, i8* %18
%19 = getelementptr inbounds [256 x i8], [256 x i8]* %1, i64 0, i64 51
store i8 69, i8* %19
%20 = getelementptr inbounds [256 x i8], [256 x i8]* %1, i64 0, i64 52
store i8 0, i8* %20
%21 = getelementptr inbounds [256 x i8], [256 x i8]* %1, i64 0, i64 53
store i8 90, i8* %21
%22 = getelementptr inbounds [256 x i8], [256 x i8]* %1, i64 0, i64 54
store i8 0, i8* %22
%23 = getelementptr inbounds [256 x i8], [256 x i8]* %1, i64 0, i64 55
store i8 0, i8* %23
%24 = getelementptr inbounds [256 x i8], [256 x i8]* %1, i64 0, i64 56
store i8 56, i8* %24
%25 = getelementptr inbounds [256 x i8], [256 x i8]* %1, i64 0, i64 57
store i8 0, i8* %25
%26 = call i32* @gets(i8* %4)
%27 = icmp eq i32* %26, null
br i1 %27, label %75, label %28
28: ; preds = %0, %69
%29 = call i32 @strlen(i8* %4)
%30 = icmp sgt i32 %29, 0
br i1 %30, label %31, label %56
31: ; preds = %28
%32 = zext i32 %29 to i64
br label %35
33: ; preds = %35
%34 = icmp slt i64 %55, %40
br i1 %34, label %35, label %56
35: ; preds = %31, %33
%36 = phi i64 [ 0, %31 ], [ %55, %33 ]
%37 = phi i64 [ %32, %31 ], [ %40, %33 ]
%38 = phi i32 [ 1, %31 ], [ %46, %33 ]
%39 = phi i32 [ 1, %31 ], [ %51, %33 ]
%40 = add nsw i64 %37, -1
%41 = getelementptr inbounds [32 x i8], [32 x i8]* %2, i64 0, i64 %36
%42 = load i8, i8* %41
%43 = getelementptr inbounds [32 x i8], [32 x i8]* %2, i64 0, i64 %40
%44 = load i8, i8* %43
%45 = icmp eq i8 %42, %44
%46 = select i1 %45, i32 %38, i32 0
%47 = sext i8 %42 to i64
%48 = getelementptr inbounds [256 x i8], [256 x i8]* %1, i64 0, i64 %47
%49 = load i8, i8* %48
%50 = icmp eq i8 %49, %44
%51 = select i1 %50, i32 %39, i32 0
%52 = icmp eq i32 %46, 0
%53 = icmp eq i32 %51, 0
%54 = select i1 %52, i1 %53, i1 false
%55 = add nuw nsw i64 %36, 1
br i1 %54, label %68, label %33
56: ; preds = %33, %28
%57 = phi i32 [ 1, %28 ], [ %51, %33 ]
%58 = phi i32 [ 1, %28 ], [ %46, %33 ]
%59 = icmp eq i32 %57, 1
%60 = icmp eq i32 %58, 1
%61 = select i1 %59, i1 %60, i1 false
br i1 %61, label %69, label %62
62: ; preds = %56
%63 = icmp eq i32 %58, 0
%64 = select i1 %59, i1 %63, i1 false
br i1 %64, label %69, label %65
65: ; preds = %62
%66 = icmp eq i32 %57, 0
%67 = select i1 %66, i1 %60, i1 false
br i1 %67, label %69, label %68
68: ; preds = %35, %65
br label %69
69: ; preds = %65, %62, %56, %68
%70 = phi i8* [ getelementptr inbounds ([28 x i8], [28 x i8]* @.str.3, i64 0, i64 0), %68 ], [ getelementptr inbounds ([33 x i8], [33 x i8]* @.str, i64 0, i64 0), %56 ], [ getelementptr inbounds ([29 x i8], [29 x i8]* @.str.1, i64 0, i64 0), %62 ], [ getelementptr inbounds ([32 x i8], [32 x i8]* @.str.2, i64 0, i64 0), %65 ]
%71 = call i32 (i8*, ...) @printf(i8* dereferenceable(1) %70, i8* %4)
%72 = call i32 @putchar(i32 10)
%73 = call i32* @gets(i8* %4)
%74 = icmp eq i32* %73, null
br i1 %74, label %75, label %28
75: ; preds = %69, %0
ret i32 0
}