#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*/ fgets(char *, int, int /*<<< orphan*/);
scalar_t__ isspace(char);
int /*<<< orphan*/ printf(char *, ...);
int /*<<< orphan*/ stdin;
char *strchr(char *, char);
int strlen(char *);
int main() {
  printf("###############################\n");
  printf("####### Count Technique #######\n");
  printf("###############################\n");
  char string[100];
  char alphabets[27];
  int frequency[27] = {0};
  char ch, *tmp;
  int i, j, index_ch, probes;
  int frek_ch, frek_j;
  for (i = 0; i < 26; i++)
    alphabets[i] = (char)(i + 97);
  alphabets[26] = ' ';
  printf("\nAlphabets: ");
  for (i = 0; i < 27; i++)
    printf("%c", alphabets[i]);
  printf("\n\n");
  printf("Enter String [max 100 chars]: ");
  fgets(string, 100, stdin);
  tmp = strchr(string, '\n');
  if (tmp != NULL)
    *tmp = '\0';
  probes = 0;
  for (i = 0; i < strlen(string); i++) {
    ch = string[i];
    index_ch = -1;
    for (j = 0; j < 27; j++) {
      if (alphabets[j] == ch) {
        index_ch = j;
        break;
      }
    }
    if (index_ch == -1)
      continue;
    if (isspace(ch)) {
      frequency[26] += 1;
      frek_ch = frequency[26];
    } else {
      frequency[ch - 'a'] += 1;
      frek_ch = frequency[ch - 'a'];
    }
    j = index_ch - 1;
    while (j >= 0) {
      if (isspace(alphabets[j]))
        frek_j = frequency[26];
      else
        frek_j = frequency[alphabets[j] - 'a'];
      if (frek_ch > frek_j) {
        char T;
        T = alphabets[j + 1];
        alphabets[j + 1] = alphabets[j];
        alphabets[j] = T;
        ;
      } else
        break;
      j--;
    }
    probes += index_ch + 1;
  }
  printf("\nAlphabets: ");
  for (i = 0; i < 27; i++)
    printf("%-3c", alphabets[i]);
  printf("\nFrequency: ");
  for (i = 0; i < 27; i++) {
    if (isspace(alphabets[i]))
      printf("%-3d", frequency[26]);
    else
      printf("%-3d", frequency[alphabets[i] - 'a']);
  }
  printf("\nProbes   : %d", probes);
  printf("\n\n");
  return (0);
}


x86 assembly (clang, -O0):
<main>:
push   %rbp
mov    %rsp,%rbp
sub    $0x130,%rsp
movl   $0x0,-0x4(%rbp)
lea    0xe87(%rip),%rdi
mov    $0x0,%al
call   1050 <printf@plt>
lea    0xe9a(%rip),%rdi
mov    $0x0,%al
call   1050 <printf@plt>
lea    0xe6b(%rip),%rdi
mov    $0x0,%al
call   1050 <printf@plt>
lea    -0x100(%rbp),%rdi
xor    %esi,%esi
mov    $0x6c,%edx
call   1060 <memset@plt>
movl   $0x0,-0x114(%rbp)
cmpl   $0x1a,-0x114(%rbp)
jge    11f3 <main+0x93>
mov    -0x114(%rbp),%eax
add    $0x61,%eax
mov    %al,%cl
movslq -0x114(%rbp),%rax
mov    %cl,-0x90(%rbp,%rax,1)
mov    -0x114(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0x114(%rbp)
jmp    11b9 <main+0x59>
movb   $0x20,-0x76(%rbp)
lea    0xe44(%rip),%rdi
mov    $0x0,%al
call   1050 <printf@plt>
movl   $0x0,-0x114(%rbp)
cmpl   $0x1b,-0x114(%rbp)
jge    124d <main+0xed>
movslq -0x114(%rbp),%rax
movsbl -0x90(%rbp,%rax,1),%esi
ff
lea    0xe1d(%rip),%rdi
mov    $0x0,%al
call   1050 <printf@plt>
mov    -0x114(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0x114(%rbp)
jmp    120f <main+0xaf>
lea    0xdfe(%rip),%rdi
mov    $0x0,%al
call   1050 <printf@plt>
lea    0xdf3(%rip),%rdi
mov    $0x0,%al
call   1050 <printf@plt>
lea    -0x70(%rbp),%rdi
mov    0x2d74(%rip),%rax
mov    (%rax),%edx
mov    $0x64,%esi
call   1080 <fgets@plt>
lea    -0x70(%rbp),%rdi
mov    $0xa,%esi
call   1040 <strchr@plt>
mov    %rax,-0x110(%rbp)
cmpq   $0x0,-0x110(%rbp)
je     12ad <main+0x14d>
mov    -0x110(%rbp),%rax
movb   $0x0,(%rax)
movl   $0x0,-0x120(%rbp)
movl   $0x0,-0x114(%rbp)
mov    -0x114(%rbp),%eax
mov    %eax,-0x130(%rbp)
lea    -0x70(%rbp),%rdi
call   1030 <strlen@plt>
mov    %eax,%ecx
mov    -0x130(%rbp),%eax
cmp    %ecx,%eax
jge    14ef <main+0x38f>
movslq -0x114(%rbp),%rax
mov    -0x70(%rbp,%rax,1),%al
mov    %al,-0x101(%rbp)
movl   $0xffffffff,-0x11c(%rbp)
ff ff ff
movl   $0x0,-0x118(%rbp)
cmpl   $0x1b,-0x118(%rbp)
jge    1360 <main+0x200>
movslq -0x118(%rbp),%rax
movsbl -0x90(%rbp,%rax,1),%eax
ff
movsbl -0x101(%rbp),%ecx
cmp    %ecx,%eax
jne    1347 <main+0x1e7>
mov    -0x118(%rbp),%eax
mov    %eax,-0x11c(%rbp)
jmp    1360 <main+0x200>
jmp    134c <main+0x1ec>
mov    -0x118(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0x118(%rbp)
jmp    130b <main+0x1ab>
cmpl   $0xffffffff,-0x11c(%rbp)
jne    1372 <main+0x212>
jmp    14db <main+0x37b>
movsbl -0x101(%rbp),%edi
call   1070 <isspace@plt>
cmp    $0x0,%rax
je     13a8 <main+0x248>
mov    -0x98(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0x98(%rbp)
mov    -0x98(%rbp),%eax
mov    %eax,-0x124(%rbp)
jmp    13de <main+0x27e>
movsbl -0x101(%rbp),%eax
sub    $0x61,%eax
cltq
mov    -0x100(%rbp,%rax,4),%ecx
add    $0x1,%ecx
mov    %ecx,-0x100(%rbp,%rax,4)
movsbl -0x101(%rbp),%eax
sub    $0x61,%eax
cltq
mov    -0x100(%rbp,%rax,4),%eax
mov    %eax,-0x124(%rbp)
mov    -0x11c(%rbp),%eax
sub    $0x1,%eax
mov    %eax,-0x118(%rbp)
cmpl   $0x0,-0x118(%rbp)
jl     14c6 <main+0x366>
movslq -0x118(%rbp),%rax
movsbl -0x90(%rbp,%rax,1),%edi
ff
call   1070 <isspace@plt>
cmp    $0x0,%rax
je     1429 <main+0x2c9>
mov    -0x98(%rbp),%eax
mov    %eax,-0x128(%rbp)
jmp    144a <main+0x2ea>
movslq -0x118(%rbp),%rax
movsbl -0x90(%rbp,%rax,1),%eax
ff
sub    $0x61,%eax
cltq
mov    -0x100(%rbp,%rax,4),%eax
mov    %eax,-0x128(%rbp)
mov    -0x124(%rbp),%eax
cmp    -0x128(%rbp),%eax
jle    14ad <main+0x34d>
mov    -0x118(%rbp),%eax
add    $0x1,%eax
cltq
mov    -0x90(%rbp,%rax,1),%al
mov    %al,-0x129(%rbp)
movslq -0x118(%rbp),%rax
mov    -0x90(%rbp,%rax,1),%cl
mov    -0x118(%rbp),%eax
add    $0x1,%eax
cltq
mov    %cl,-0x90(%rbp,%rax,1)
mov    -0x129(%rbp),%cl
movslq -0x118(%rbp),%rax
mov    %cl,-0x90(%rbp,%rax,1)
jmp    14b2 <main+0x352>
jmp    14c6 <main+0x366>
mov    -0x118(%rbp),%eax
add    $0xffffffff,%eax
mov    %eax,-0x118(%rbp)
jmp    13ed <main+0x28d>
mov    -0x11c(%rbp),%eax
add    $0x1,%eax
add    -0x120(%rbp),%eax
mov    %eax,-0x120(%rbp)
mov    -0x114(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0x114(%rbp)
jmp    12c1 <main+0x161>
lea    0xb4c(%rip),%rdi
mov    $0x0,%al
call   1050 <printf@plt>
movl   $0x0,-0x114(%rbp)
cmpl   $0x1b,-0x114(%rbp)
jge    1545 <main+0x3e5>
movslq -0x114(%rbp),%rax
movsbl -0x90(%rbp,%rax,1),%esi
ff
lea    0xb4a(%rip),%rdi
mov    $0x0,%al
call   1050 <printf@plt>
mov    -0x114(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0x114(%rbp)
jmp    1507 <main+0x3a7>
lea    0xb2d(%rip),%rdi
mov    $0x0,%al
call   1050 <printf@plt>
movl   $0x0,-0x114(%rbp)
cmpl   $0x1b,-0x114(%rbp)
jge    15e3 <main+0x483>
movslq -0x114(%rbp),%rax
movsbl -0x90(%rbp,%rax,1),%edi
ff
call   1070 <isspace@plt>
cmp    $0x0,%rax
je     15a1 <main+0x441>
mov    -0x98(%rbp),%esi
lea    0xaf1(%rip),%rdi
mov    $0x0,%al
call   1050 <printf@plt>
jmp    15ca <main+0x46a>
movslq -0x114(%rbp),%rax
movsbl -0x90(%rbp,%rax,1),%eax
ff
sub    $0x61,%eax
cltq
mov    -0x100(%rbp,%rax,4),%esi
lea    0xac3(%rip),%rdi
mov    $0x0,%al
call   1050 <printf@plt>
jmp    15cf <main+0x46f>
mov    -0x114(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0x114(%rbp)
jmp    155d <main+0x3fd>
mov    -0x120(%rbp),%esi
lea    0xa9b(%rip),%rdi
mov    $0x0,%al
call   1050 <printf@plt>
lea    0xa54(%rip),%rdi
mov    $0x0,%al
call   1050 <printf@plt>
xor    %eax,%eax
add    $0x130,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<main>:
push   %rbp
push   %r15
push   %r14
push   %r13
push   %r12
push   %rbx
sub    $0x108,%rsp
lea    0xefa(%rip),%rbx
mov    %rbx,%rdi
call   1040 <puts@plt>
lea    0xecb(%rip),%rdi
call   1040 <puts@plt>
mov    %rbx,%rdi
call   1040 <puts@plt>
xorps  %xmm0,%xmm0
movups %xmm0,0x8c(%rsp)
movaps %xmm0,0x80(%rsp)
movaps %xmm0,0x70(%rsp)
movaps %xmm0,0x60(%rsp)
movaps %xmm0,0x50(%rsp)
movaps %xmm0,0x40(%rsp)
movaps %xmm0,0x30(%rsp)
movaps 0xe29(%rip),%xmm0
movaps %xmm0,(%rsp)
movabs $0x7877767574737271,%rax
76 77 78
mov    %rax,0x10(%rsp)
movw   $0x7a79,0x18(%rsp)
movb   $0x20,0x1a(%rsp)
lea    0xe13(%rip),%rdi
xor    %r14d,%r14d
xor    %eax,%eax
call   1070 <printf@plt>
mov    $0x61,%edi
call   1030 <putchar@plt>
mov    $0x62,%edi
call   1030 <putchar@plt>
mov    $0x63,%edi
call   1030 <putchar@plt>
mov    $0x64,%edi
call   1030 <putchar@plt>
mov    $0x65,%edi
call   1030 <putchar@plt>
mov    $0x66,%edi
call   1030 <putchar@plt>
mov    $0x67,%edi
call   1030 <putchar@plt>
mov    $0x68,%edi
call   1030 <putchar@plt>
mov    $0x69,%edi
call   1030 <putchar@plt>
mov    $0x6a,%edi
call   1030 <putchar@plt>
mov    $0x6b,%edi
call   1030 <putchar@plt>
mov    $0x6c,%edi
call   1030 <putchar@plt>
mov    $0x6d,%edi
call   1030 <putchar@plt>
mov    $0x6e,%edi
call   1030 <putchar@plt>
mov    $0x6f,%edi
call   1030 <putchar@plt>
mov    $0x70,%edi
call   1030 <putchar@plt>
mov    $0x71,%edi
call   1030 <putchar@plt>
mov    $0x72,%edi
call   1030 <putchar@plt>
mov    $0x73,%edi
call   1030 <putchar@plt>
mov    $0x74,%edi
call   1030 <putchar@plt>
mov    $0x75,%edi
call   1030 <putchar@plt>
mov    $0x76,%edi
call   1030 <putchar@plt>
mov    $0x77,%edi
call   1030 <putchar@plt>
mov    $0x78,%edi
call   1030 <putchar@plt>
mov    $0x79,%edi
call   1030 <putchar@plt>
mov    $0x7a,%edi
call   1030 <putchar@plt>
mov    $0x20,%edi
call   1030 <putchar@plt>
lea    0xd86(%rip),%rdi
call   1040 <puts@plt>
lea    0xcf5(%rip),%rdi
xor    %eax,%eax
call   1070 <printf@plt>
mov    0x2cb2(%rip),%rax
mov    (%rax),%edx
lea    0xa0(%rsp),%rbx
mov    %rbx,%rdi
mov    $0x64,%esi
call   1090 <fgets@plt>
mov    %rbx,%rdi
mov    $0xa,%esi
call   1060 <strchr@plt>
test   %rax,%rax
je     1362 <main+0x1f2>
movb   $0x0,(%rax)
lea    0xa0(%rsp),%rdi
call   1050 <strlen@plt>
mov    $0x0,%r15d
test   %eax,%eax
jle    15fe <main+0x48e>
xor    %r14d,%r14d
xor    %r15d,%r15d
cs nopw 0x0(%rax,%rax,1)
nopl   (%rax)
movsbq 0xa0(%rsp,%r14,1),%r13
cmp    %r13b,(%rsp)
jne    13b0 <main+0x240>
xor    %ebp,%ebp
jmp    1530 <main+0x3c0>
cs nopw 0x0(%rax,%rax,1)
mov    $0x1,%ebp
cmp    %r13b,0x1(%rsp)
je     1530 <main+0x3c0>
mov    $0x2,%ebp
cmp    %r13b,0x2(%rsp)
je     1530 <main+0x3c0>
mov    $0x3,%ebp
cmp    %r13b,0x3(%rsp)
je     1530 <main+0x3c0>
mov    $0x4,%ebp
cmp    %r13b,0x4(%rsp)
je     1530 <main+0x3c0>
mov    $0x5,%ebp
cmp    %r13b,0x5(%rsp)
je     1530 <main+0x3c0>
mov    $0x6,%ebp
cmp    %r13b,0x6(%rsp)
je     1530 <main+0x3c0>
mov    $0x7,%ebp
cmp    %r13b,0x7(%rsp)
je     1530 <main+0x3c0>
mov    $0x8,%ebp
cmp    %r13b,0x8(%rsp)
je     1530 <main+0x3c0>
mov    $0x9,%ebp
cmp    %r13b,0x9(%rsp)
je     1530 <main+0x3c0>
mov    $0xa,%ebp
cmp    %r13b,0xa(%rsp)
je     1530 <main+0x3c0>
mov    $0xb,%ebp
cmp    %r13b,0xb(%rsp)
je     1530 <main+0x3c0>
mov    $0xc,%ebp
cmp    %r13b,0xc(%rsp)
je     1530 <main+0x3c0>
mov    $0xd,%ebp
cmp    %r13b,0xd(%rsp)
je     1530 <main+0x3c0>
mov    $0xe,%ebp
cmp    %r13b,0xe(%rsp)
je     1530 <main+0x3c0>
mov    $0xf,%ebp
cmp    %r13b,0xf(%rsp)
je     1530 <main+0x3c0>
mov    $0x10,%ebp
cmp    %r13b,0x10(%rsp)
je     1530 <main+0x3c0>
mov    $0x11,%ebp
cmp    %r13b,0x11(%rsp)
je     1530 <main+0x3c0>
mov    $0x12,%ebp
cmp    %r13b,0x12(%rsp)
je     1530 <main+0x3c0>
mov    $0x13,%ebp
cmp    %r13b,0x13(%rsp)
je     1530 <main+0x3c0>
mov    $0x14,%ebp
cmp    %r13b,0x14(%rsp)
je     1530 <main+0x3c0>
mov    $0x15,%ebp
cmp    %r13b,0x15(%rsp)
je     1530 <main+0x3c0>
mov    $0x16,%ebp
cmp    %r13b,0x16(%rsp)
je     1530 <main+0x3c0>
mov    $0x17,%ebp
cmp    %r13b,0x17(%rsp)
je     1530 <main+0x3c0>
mov    $0x18,%ebp
cmp    %r13b,0x18(%rsp)
je     1530 <main+0x3c0>
mov    $0x19,%ebp
cmp    %r13b,0x19(%rsp)
je     1530 <main+0x3c0>
mov    $0x1a,%ebp
cmp    %r13b,0x1a(%rsp)
jne    15da <main+0x46a>
nopl   0x0(%rax)
mov    %r15,0x28(%rsp)
mov    %r13d,%edi
call   1080 <isspace@plt>
test   %rax,%rax
je     1560 <main+0x3f0>
mov    0x98(%rsp),%ebx
add    $0x1,%ebx
mov    %ebx,0x98(%rsp)
jmp    1573 <main+0x403>
cs nopw 0x0(%rax,%rax,1)
nop
mov    -0x154(%rsp,%r13,4),%ebx
ff
add    $0x1,%ebx
mov    %ebx,-0x154(%rsp,%r13,4)
ff
mov    %rbp,%r12
test   %ebp,%ebp
je     15ce <main+0x45e>
mov    0x98(%rsp),%r13d
mov    %r12,%rbp
add    $0x1,%rbp
nopl   0x0(%rax)
movzbl -0x2(%rsp,%rbp,1),%r15d
movsbl %r15b,%edi
call   1080 <isspace@plt>
mov    %r13d,%ecx
test   %rax,%rax
jne    15b2 <main+0x442>
movsbq %r15b,%rax
mov    -0x154(%rsp,%rax,4),%ecx
cmp    %ecx,%ebx
jle    15ce <main+0x45e>
movzbl -0x1(%rsp,%rbp,1),%eax
mov    %r15b,-0x1(%rsp,%rbp,1)
mov    %al,-0x2(%rsp,%rbp,1)
add    $0xffffffffffffffff,%rbp
cmp    $0x1,%rbp
ja     1590 <main+0x420>
mov    0x28(%rsp),%r15
add    %r12d,%r15d
add    $0x1,%r15d
add    $0x1,%r14
lea    0xa0(%rsp),%rdi
call   1050 <strlen@plt>
cltq
cmp    %rax,%r14
jl     1390 <main+0x220>
mov    0x98(%rsp),%r14d
lea    0xa0b(%rip),%rdi
xor    %eax,%eax
call   1070 <printf@plt>
movsbl (%rsp),%esi
lea    0xa25(%rip),%rbx
mov    %rbx,%rdi
xor    %eax,%eax
call   1070 <printf@plt>
movsbl 0x1(%rsp),%esi
mov    %rbx,%rdi
xor    %eax,%eax
call   1070 <printf@plt>
movsbl 0x2(%rsp),%esi
mov    %rbx,%rdi
xor    %eax,%eax
call   1070 <printf@plt>
movsbl 0x3(%rsp),%esi
mov    %rbx,%rdi
xor    %eax,%eax
call   1070 <printf@plt>
movsbl 0x4(%rsp),%esi
mov    %rbx,%rdi
xor    %eax,%eax
call   1070 <printf@plt>
movsbl 0x5(%rsp),%esi
mov    %rbx,%rdi
xor    %eax,%eax
call   1070 <printf@plt>
movsbl 0x6(%rsp),%esi
mov    %rbx,%rdi
xor    %eax,%eax
call   1070 <printf@plt>
movsbl 0x7(%rsp),%esi
mov    %rbx,%rdi
xor    %eax,%eax
call   1070 <printf@plt>
movsbl 0x8(%rsp),%esi
mov    %rbx,%rdi
xor    %eax,%eax
call   1070 <printf@plt>
movsbl 0x9(%rsp),%esi
mov    %rbx,%rdi
xor    %eax,%eax
call   1070 <printf@plt>
movsbl 0xa(%rsp),%esi
mov    %rbx,%rdi
xor    %eax,%eax
call   1070 <printf@plt>
movsbl 0xb(%rsp),%esi
mov    %rbx,%rdi
xor    %eax,%eax
call   1070 <printf@plt>
movsbl 0xc(%rsp),%esi
mov    %rbx,%rdi
xor    %eax,%eax
call   1070 <printf@plt>
movsbl 0xd(%rsp),%esi
mov    %rbx,%rdi
xor    %eax,%eax
call   1070 <printf@plt>
movsbl 0xe(%rsp),%esi
mov    %rbx,%rdi
xor    %eax,%eax
call   1070 <printf@plt>
movsbl 0xf(%rsp),%esi
mov    %rbx,%rdi
xor    %eax,%eax
call   1070 <printf@plt>
movsbl 0x10(%rsp),%esi
mov    %rbx,%rdi
xor    %eax,%eax
call   1070 <printf@plt>
movsbl 0x11(%rsp),%esi
mov    %rbx,%rdi
xor    %eax,%eax
call   1070 <printf@plt>
movsbl 0x12(%rsp),%esi
mov    %rbx,%rdi
xor    %eax,%eax
call   1070 <printf@plt>
movsbl 0x13(%rsp),%esi
mov    %rbx,%rdi
xor    %eax,%eax
call   1070 <printf@plt>
movsbl 0x14(%rsp),%esi
mov    %rbx,%rdi
xor    %eax,%eax
call   1070 <printf@plt>
movsbl 0x15(%rsp),%esi
mov    %rbx,%rdi
xor    %eax,%eax
call   1070 <printf@plt>
movsbl 0x16(%rsp),%esi
mov    %rbx,%rdi
xor    %eax,%eax
call   1070 <printf@plt>
movsbl 0x17(%rsp),%esi
mov    %rbx,%rdi
xor    %eax,%eax
call   1070 <printf@plt>
movsbl 0x18(%rsp),%esi
mov    %rbx,%rdi
xor    %eax,%eax
call   1070 <printf@plt>
movsbl 0x19(%rsp),%esi
mov    %rbx,%rdi
xor    %eax,%eax
call   1070 <printf@plt>
movsbl 0x1a(%rsp),%esi
mov    %rbx,%rdi
xor    %eax,%eax
call   1070 <printf@plt>
lea    0x893(%rip),%rdi
xor    %eax,%eax
call   1070 <printf@plt>
lea    0x892(%rip),%r12
xor    %ebx,%ebx
jmp    17d4 <main+0x664>
mov    %r12,%rdi
xor    %eax,%eax
call   1070 <printf@plt>
add    $0x1,%rbx
cmp    $0x1b,%rbx
je     17f3 <main+0x683>
movsbl (%rsp,%rbx,1),%ebp
mov    %ebp,%edi
call   1080 <isspace@plt>
mov    %r14d,%esi
test   %rax,%rax
jne    17c0 <main+0x650>
movslq %ebp,%rax
mov    -0x154(%rsp,%rax,4),%esi
jmp    17c0 <main+0x650>
lea    0x859(%rip),%rdi
mov    %r15d,%esi
xor    %eax,%eax
call   1070 <printf@plt>
lea    0x897(%rip),%rdi
call   1040 <puts@plt>
xor    %eax,%eax
add    $0x108,%rsp
pop    %rbx
pop    %r12
pop    %r13
pop    %r14
pop    %r15
pop    %rbp
ret

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

LLVM IR (-O2):
@.str.2 = [13 x i8] c"\0AAlphabets: \00"
@.str.5 = [31 x i8] c"Enter String [max 100 chars]: \00"
@stdin = global i32 0
@.str.6 = [5 x i8] c"%-3c\00"
@.str.7 = [13 x i8] c"\0AFrequency: \00"
@.str.8 = [5 x i8] c"%-3d\00"
@.str.9 = [15 x i8] c"\0AProbes : %d\00"
@str.10 = [32 x i8] c"####### Count Technique #######\00"
@str.11 = [32 x i8] c"###############################\00"
@str.13 = [2 x i8] c"\0A\00"
define i32 @main() {
%1 = alloca [100 x i8]
%2 = alloca [27 x i8]
%3 = alloca [27 x i32]
%4 = tail call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([32 x i8], [32 x i8]* @str.11, i64 0, i64 0))
%5 = tail call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([32 x i8], [32 x i8]* @str.10, i64 0, i64 0))
%6 = tail call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([32 x i8], [32 x i8]* @str.11, i64 0, i64 0))
%7 = getelementptr inbounds [100 x i8], [100 x i8]* %1, i64 0, i64 0
%8 = getelementptr inbounds [27 x i8], [27 x i8]* %2, i64 0, i64 0
%9 = bitcast [27 x i32]* %3 to i8*
%10 = getelementptr inbounds [27 x i8], [27 x i8]* %2, i64 0, i64 1
%11 = getelementptr inbounds [27 x i8], [27 x i8]* %2, i64 0, i64 2
%12 = getelementptr inbounds [27 x i8], [27 x i8]* %2, i64 0, i64 3
%13 = getelementptr inbounds [27 x i8], [27 x i8]* %2, i64 0, i64 4
%14 = getelementptr inbounds [27 x i8], [27 x i8]* %2, i64 0, i64 5
%15 = getelementptr inbounds [27 x i8], [27 x i8]* %2, i64 0, i64 6
%16 = getelementptr inbounds [27 x i8], [27 x i8]* %2, i64 0, i64 7
%17 = getelementptr inbounds [27 x i8], [27 x i8]* %2, i64 0, i64 8
%18 = getelementptr inbounds [27 x i8], [27 x i8]* %2, i64 0, i64 9
%19 = getelementptr inbounds [27 x i8], [27 x i8]* %2, i64 0, i64 10
%20 = getelementptr inbounds [27 x i8], [27 x i8]* %2, i64 0, i64 11
%21 = getelementptr inbounds [27 x i8], [27 x i8]* %2, i64 0, i64 12
%22 = getelementptr inbounds [27 x i8], [27 x i8]* %2, i64 0, i64 13
%23 = getelementptr inbounds [27 x i8], [27 x i8]* %2, i64 0, i64 14
%24 = getelementptr inbounds [27 x i8], [27 x i8]* %2, i64 0, i64 15
%25 = bitcast [27 x i8]* %2 to <16 x i8>*
store <16 x i8> <i8 97, i8 98, i8 99, i8 100, i8 101, i8 102, i8 103, i8 104, i8 105, i8 106, i8 107, i8 108, i8 109, i8 110, i8 111, i8 112>, <16 x i8>* %25
%26 = getelementptr inbounds [27 x i8], [27 x i8]* %2, i64 0, i64 16
store i8 113, i8* %26
%27 = getelementptr inbounds [27 x i8], [27 x i8]* %2, i64 0, i64 17
store i8 114, i8* %27
%28 = getelementptr inbounds [27 x i8], [27 x i8]* %2, i64 0, i64 18
store i8 115, i8* %28
%29 = getelementptr inbounds [27 x i8], [27 x i8]* %2, i64 0, i64 19
store i8 116, i8* %29
%30 = getelementptr inbounds [27 x i8], [27 x i8]* %2, i64 0, i64 20
store i8 117, i8* %30
%31 = getelementptr inbounds [27 x i8], [27 x i8]* %2, i64 0, i64 21
store i8 118, i8* %31
%32 = getelementptr inbounds [27 x i8], [27 x i8]* %2, i64 0, i64 22
store i8 119, i8* %32
%33 = getelementptr inbounds [27 x i8], [27 x i8]* %2, i64 0, i64 23
store i8 120, i8* %33
%34 = getelementptr inbounds [27 x i8], [27 x i8]* %2, i64 0, i64 24
store i8 121, i8* %34
%35 = getelementptr inbounds [27 x i8], [27 x i8]* %2, i64 0, i64 25
store i8 122, i8* %35
%36 = getelementptr inbounds [27 x i8], [27 x i8]* %2, i64 0, i64 26
store i8 32, i8* %36
%37 = tail call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([13 x i8], [13 x i8]* @.str.2, i64 0, i64 0))
%38 = tail call i32 @putchar(i32 97)
%39 = tail call i32 @putchar(i32 98)
%40 = tail call i32 @putchar(i32 99)
%41 = tail call i32 @putchar(i32 100)
%42 = tail call i32 @putchar(i32 101)
%43 = tail call i32 @putchar(i32 102)
%44 = tail call i32 @putchar(i32 103)
%45 = tail call i32 @putchar(i32 104)
%46 = tail call i32 @putchar(i32 105)
%47 = tail call i32 @putchar(i32 106)
%48 = tail call i32 @putchar(i32 107)
%49 = tail call i32 @putchar(i32 108)
%50 = tail call i32 @putchar(i32 109)
%51 = tail call i32 @putchar(i32 110)
%52 = tail call i32 @putchar(i32 111)
%53 = tail call i32 @putchar(i32 112)
%54 = tail call i32 @putchar(i32 113)
%55 = tail call i32 @putchar(i32 114)
%56 = tail call i32 @putchar(i32 115)
%57 = tail call i32 @putchar(i32 116)
%58 = tail call i32 @putchar(i32 117)
%59 = tail call i32 @putchar(i32 118)
%60 = tail call i32 @putchar(i32 119)
%61 = tail call i32 @putchar(i32 120)
%62 = tail call i32 @putchar(i32 121)
%63 = tail call i32 @putchar(i32 122)
%64 = tail call i32 @putchar(i32 32)
%65 = tail call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([2 x i8], [2 x i8]* @str.13, i64 0, i64 0))
%66 = tail call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([31 x i8], [31 x i8]* @.str.5, i64 0, i64 0))
%67 = load i32, i32* @stdin
%68 = call i32 @fgets(i8* %7, i32 100, i32 %67)
%69 = call i8* @strchr(i8* %7, i8 signext 10)
%70 = icmp eq i8* %69, null
br i1 %70, label %72, label %71
71: ; preds = %0
store i8 0, i8* %69
br label %72
72: ; preds = %71, %0
%73 = call i32 @strlen(i8* %7)
%74 = icmp sgt i32 %73, 0
br i1 %74, label %75, label %211
75: ; preds = %72
%76 = getelementptr inbounds [27 x i32], [27 x i32]* %3, i64 0, i64 26
br label %77
77: ; preds = %75, %203
%78 = phi i64 [ 0, %75 ], [ %205, %203 ]
%79 = phi i32 [ 0, %75 ], [ %204, %203 ]
%80 = getelementptr inbounds [100 x i8], [100 x i8]* %1, i64 0, i64 %78
%81 = load i8, i8* %80
%82 = load i8, i8* %8
%83 = icmp eq i8 %82, %81
br i1 %83, label %162, label %84
84: ; preds = %77
%85 = load i8, i8* %10
%86 = icmp eq i8 %85, %81
br i1 %86, label %162, label %87
87: ; preds = %84
%88 = load i8, i8* %11
%89 = icmp eq i8 %88, %81
br i1 %89, label %162, label %90
90: ; preds = %87
%91 = load i8, i8* %12
%92 = icmp eq i8 %91, %81
br i1 %92, label %162, label %93
93: ; preds = %90
%94 = load i8, i8* %13
%95 = icmp eq i8 %94, %81
br i1 %95, label %162, label %96
96: ; preds = %93
%97 = load i8, i8* %14
%98 = icmp eq i8 %97, %81
br i1 %98, label %162, label %99
99: ; preds = %96
%100 = load i8, i8* %15
%101 = icmp eq i8 %100, %81
br i1 %101, label %162, label %102
102: ; preds = %99
%103 = load i8, i8* %16
%104 = icmp eq i8 %103, %81
br i1 %104, label %162, label %105
105: ; preds = %102
%106 = load i8, i8* %17
%107 = icmp eq i8 %106, %81
br i1 %107, label %162, label %108
108: ; preds = %105
%109 = load i8, i8* %18
%110 = icmp eq i8 %109, %81
br i1 %110, label %162, label %111
111: ; preds = %108
%112 = load i8, i8* %19
%113 = icmp eq i8 %112, %81
br i1 %113, label %162, label %114
114: ; preds = %111
%115 = load i8, i8* %20
%116 = icmp eq i8 %115, %81
br i1 %116, label %162, label %117
117: ; preds = %114
%118 = load i8, i8* %21
%119 = icmp eq i8 %118, %81
br i1 %119, label %162, label %120
120: ; preds = %117
%121 = load i8, i8* %22
%122 = icmp eq i8 %121, %81
br i1 %122, label %162, label %123
123: ; preds = %120
%124 = load i8, i8* %23
%125 = icmp eq i8 %124, %81
br i1 %125, label %162, label %126
126: ; preds = %123
%127 = load i8, i8* %24
%128 = icmp eq i8 %127, %81
br i1 %128, label %162, label %129
129: ; preds = %126
%130 = load i8, i8* %26
%131 = icmp eq i8 %130, %81
br i1 %131, label %162, label %132
132: ; preds = %129
%133 = load i8, i8* %27
%134 = icmp eq i8 %133, %81
br i1 %134, label %162, label %135
135: ; preds = %132
%136 = load i8, i8* %28
%137 = icmp eq i8 %136, %81
br i1 %137, label %162, label %138
138: ; preds = %135
%139 = load i8, i8* %29
%140 = icmp eq i8 %139, %81
br i1 %140, label %162, label %141
141: ; preds = %138
%142 = load i8, i8* %30
%143 = icmp eq i8 %142, %81
br i1 %143, label %162, label %144
144: ; preds = %141
%145 = load i8, i8* %31
%146 = icmp eq i8 %145, %81
br i1 %146, label %162, label %147
147: ; preds = %144
%148 = load i8, i8* %32
%149 = icmp eq i8 %148, %81
br i1 %149, label %162, label %150
150: ; preds = %147
%151 = load i8, i8* %33
%152 = icmp eq i8 %151, %81
br i1 %152, label %162, label %153
153: ; preds = %150
%154 = load i8, i8* %34
%155 = icmp eq i8 %154, %81
br i1 %155, label %162, label %156
156: ; preds = %153
%157 = load i8, i8* %35
%158 = icmp eq i8 %157, %81
br i1 %158, label %162, label %159
159: ; preds = %156
%160 = load i8, i8* %36
%161 = icmp eq i8 %160, %81
br i1 %161, label %162, label %203
162: ; preds = %159, %156, %153, %150, %147, %144, %141, %138, %135, %132, %129, %126, %123, %120, %117, %114, %111, %108, %105, %102, %99, %96, %93, %90, %87, %84, %77
%163 = phi i64 [ 0, %77 ], [ 1, %84 ], [ 2, %87 ], [ 3, %90 ], [ 4, %93 ], [ 5, %96 ], [ 6, %99 ], [ 7, %102 ], [ 8, %105 ], [ 9, %108 ], [ 10, %111 ], [ 11, %114 ], [ 12, %117 ], [ 13, %120 ], [ 14, %123 ], [ 15, %126 ], [ 16, %129 ], [ 17, %132 ], [ 18, %135 ], [ 19, %138 ], [ 20, %141 ], [ 21, %144 ], [ 22, %147 ], [ 23, %150 ], [ 24, %153 ], [ 25, %156 ], [ 26, %159 ]
%164 = trunc i64 %163 to i32
%165 = call i64 @isspace(i8 signext %81)
%166 = icmp eq i64 %165, 0
br i1 %166, label %170, label %167
167: ; preds = %162
%168 = load i32, i32* %76
%169 = add nsw i32 %168, 1
store i32 %169, i32* %76
br label %176
170: ; preds = %162
%171 = sext i8 %81 to i64
%172 = add nsw i64 %171, -97
%173 = getelementptr inbounds [27 x i32], [27 x i32]* %3, i64 0, i64 %172
%174 = load i32, i32* %173
%175 = add nsw i32 %174, 1
store i32 %175, i32* %173
br label %176
176: ; preds = %170, %167
%177 = phi i32 [ %169, %167 ], [ %175, %170 ]
%178 = icmp eq i32 %164, 0
br i1 %178, label %200, label %179
179: ; preds = %176
%180 = load i32, i32* %76
br label %181
181: ; preds = %179, %196
%182 = phi i64 [ %163, %179 ], [ %183, %196 ]
%183 = add nsw i64 %182, -1
%184 = getelementptr inbounds [27 x i8], [27 x i8]* %2, i64 0, i64 %183
%185 = load i8, i8* %184
%186 = call i64 @isspace(i8 signext %185)
%187 = icmp eq i64 %186, 0
br i1 %187, label %188, label %193
188: ; preds = %181
%189 = sext i8 %185 to i64
%190 = add nsw i64 %189, -97
%191 = getelementptr inbounds [27 x i32], [27 x i32]* %3, i64 0, i64 %190
%192 = load i32, i32* %191
br label %193
193: ; preds = %181, %188
%194 = phi i32 [ %192, %188 ], [ %180, %181 ]
%195 = icmp sgt i32 %177, %194
br i1 %195, label %196, label %200
196: ; preds = %193
%197 = getelementptr inbounds [27 x i8], [27 x i8]* %2, i64 0, i64 %182
%198 = load i8, i8* %197
store i8 %185, i8* %197
store i8 %198, i8* %184
%199 = icmp ugt i64 %182, 1
br i1 %199, label %181, label %200
200: ; preds = %196, %193, %176
%201 = add nuw nsw i32 %164, 1
%202 = add nsw i32 %201, %79
br label %203
203: ; preds = %159, %200
%204 = phi i32 [ %202, %200 ], [ %79, %159 ]
%205 = add nuw nsw i64 %78, 1
%206 = call i32 @strlen(i8* %7)
%207 = sext i32 %206 to i64
%208 = icmp slt i64 %205, %207
br i1 %208, label %77, label %209
209: ; preds = %203
%210 = load i32, i32* %76
br label %211
211: ; preds = %209, %72
%212 = phi i32 [ 0, %72 ], [ %210, %209 ]
%213 = phi i32 [ 0, %72 ], [ %204, %209 ]
%214 = call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([13 x i8], [13 x i8]* @.str.2, i64 0, i64 0))
%215 = load i8, i8* %8
%216 = sext i8 %215 to i32
%217 = call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([5 x i8], [5 x i8]* @.str.6, i64 0, i64 0), i32 %216)
%218 = load i8, i8* %10
%219 = sext i8 %218 to i32
%220 = call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([5 x i8], [5 x i8]* @.str.6, i64 0, i64 0), i32 %219)
%221 = load i8, i8* %11
%222 = sext i8 %221 to i32
%223 = call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([5 x i8], [5 x i8]* @.str.6, i64 0, i64 0), i32 %222)
%224 = load i8, i8* %12
%225 = sext i8 %224 to i32
%226 = call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([5 x i8], [5 x i8]* @.str.6, i64 0, i64 0), i32 %225)
%227 = load i8, i8* %13
%228 = sext i8 %227 to i32
%229 = call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([5 x i8], [5 x i8]* @.str.6, i64 0, i64 0), i32 %228)
%230 = load i8, i8* %14
%231 = sext i8 %230 to i32
%232 = call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([5 x i8], [5 x i8]* @.str.6, i64 0, i64 0), i32 %231)
%233 = load i8, i8* %15
%234 = sext i8 %233 to i32
%235 = call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([5 x i8], [5 x i8]* @.str.6, i64 0, i64 0), i32 %234)
%236 = load i8, i8* %16
%237 = sext i8 %236 to i32
%238 = call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([5 x i8], [5 x i8]* @.str.6, i64 0, i64 0), i32 %237)
%239 = load i8, i8* %17
%240 = sext i8 %239 to i32
%241 = call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([5 x i8], [5 x i8]* @.str.6, i64 0, i64 0), i32 %240)
%242 = load i8, i8* %18
%243 = sext i8 %242 to i32
%244 = call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([5 x i8], [5 x i8]* @.str.6, i64 0, i64 0), i32 %243)
%245 = load i8, i8* %19
%246 = sext i8 %245 to i32
%247 = call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([5 x i8], [5 x i8]* @.str.6, i64 0, i64 0), i32 %246)
%248 = load i8, i8* %20
%249 = sext i8 %248 to i32
%250 = call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([5 x i8], [5 x i8]* @.str.6, i64 0, i64 0), i32 %249)
%251 = load i8, i8* %21
%252 = sext i8 %251 to i32
%253 = call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([5 x i8], [5 x i8]* @.str.6, i64 0, i64 0), i32 %252)
%254 = load i8, i8* %22
%255 = sext i8 %254 to i32
%256 = call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([5 x i8], [5 x i8]* @.str.6, i64 0, i64 0), i32 %255)
%257 = load i8, i8* %23
%258 = sext i8 %257 to i32
%259 = call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([5 x i8], [5 x i8]* @.str.6, i64 0, i64 0), i32 %258)
%260 = load i8, i8* %24
%261 = sext i8 %260 to i32
%262 = call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([5 x i8], [5 x i8]* @.str.6, i64 0, i64 0), i32 %261)
%263 = load i8, i8* %26
%264 = sext i8 %263 to i32
%265 = call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([5 x i8], [5 x i8]* @.str.6, i64 0, i64 0), i32 %264)
%266 = load i8, i8* %27
%267 = sext i8 %266 to i32
%268 = call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([5 x i8], [5 x i8]* @.str.6, i64 0, i64 0), i32 %267)
%269 = load i8, i8* %28
%270 = sext i8 %269 to i32
%271 = call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([5 x i8], [5 x i8]* @.str.6, i64 0, i64 0), i32 %270)
%272 = load i8, i8* %29
%273 = sext i8 %272 to i32
%274 = call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([5 x i8], [5 x i8]* @.str.6, i64 0, i64 0), i32 %273)
%275 = load i8, i8* %30
%276 = sext i8 %275 to i32
%277 = call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([5 x i8], [5 x i8]* @.str.6, i64 0, i64 0), i32 %276)
%278 = load i8, i8* %31
%279 = sext i8 %278 to i32
%280 = call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([5 x i8], [5 x i8]* @.str.6, i64 0, i64 0), i32 %279)
%281 = load i8, i8* %32
%282 = sext i8 %281 to i32
%283 = call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([5 x i8], [5 x i8]* @.str.6, i64 0, i64 0), i32 %282)
%284 = load i8, i8* %33
%285 = sext i8 %284 to i32
%286 = call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([5 x i8], [5 x i8]* @.str.6, i64 0, i64 0), i32 %285)
%287 = load i8, i8* %34
%288 = sext i8 %287 to i32
%289 = call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([5 x i8], [5 x i8]* @.str.6, i64 0, i64 0), i32 %288)
%290 = load i8, i8* %35
%291 = sext i8 %290 to i32
%292 = call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([5 x i8], [5 x i8]* @.str.6, i64 0, i64 0), i32 %291)
%293 = load i8, i8* %36
%294 = sext i8 %293 to i32
%295 = call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([5 x i8], [5 x i8]* @.str.6, i64 0, i64 0), i32 %294)
%296 = call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([13 x i8], [13 x i8]* @.str.7, i64 0, i64 0))
br label %297
297: ; preds = %211, %308
%298 = phi i64 [ 0, %211 ], [ %311, %308 ]
%299 = getelementptr inbounds [27 x i8], [27 x i8]* %2, i64 0, i64 %298
%300 = load i8, i8* %299
%301 = call i64 @isspace(i8 signext %300)
%302 = icmp eq i64 %301, 0
br i1 %302, label %303, label %308
303: ; preds = %297
%304 = sext i8 %300 to i64
%305 = add nsw i64 %304, -97
%306 = getelementptr inbounds [27 x i32], [27 x i32]* %3, i64 0, i64 %305
%307 = load i32, i32* %306
br label %308
308: ; preds = %297, %303
%309 = phi i32 [ %307, %303 ], [ %212, %297 ]
%310 = call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([5 x i8], [5 x i8]* @.str.8, i64 0, i64 0), i32 %309)
%311 = add nuw nsw i64 %298, 1
%312 = icmp eq i64 %311, 27
br i1 %312, label %313, label %297
313: ; preds = %308
%314 = call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([15 x i8], [15 x i8]* @.str.9, i64 0, i64 0), i32 %213)
%315 = call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([2 x i8], [2 x i8]* @str.13, i64 0, i64 0))
ret i32 0
}