#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 */
typedef int /*<<< orphan*/ FILE;

/* Variables and functions */
char EOF;
int EXIT_SUCCESS;
int /*<<< orphan*/ assert(int);
int /*<<< orphan*/ fclose(int /*<<< orphan*/ *);
int /*<<< orphan*/ *fopen(char *, char *);
char getc(int /*<<< orphan*/ *);
int /*<<< orphan*/ printf(char *, ...);
int /*<<< orphan*/ strcpy(char *, char *);
int main(int argc, char **argv) {
  FILE *f = fopen(argv[1], "r");
  if (f != NULL) {
    char c;
    int char_count = 0;
    int word_count = 0;
    int line_count = 0;
    char longest_words[10][100];
    int longest_word_length = 0;
    int longest_words_count = 0;
    int white_space_flag = 0;
    char word_buf[100];
    int word_length = 0;
    int freq_char_count[26];
    int freq_char = 0;
    int freq_char_freq = 0;
    int trail_line_index = 0;
    int trail_line_count = 0;
    int all_char_count = 0;
    int i = 0;
    for (i = 0; i < 26; i++)
      freq_char_count[i] = 0;
    while ((c = getc(f)) != EOF) {
      while (c == '\n' || c == '\r' || c == ' ' || c == ',' || c == '.') {
        if (white_space_flag == 0) {
          white_space_flag = 1;
          word_buf[word_length] = '\0';
          if (word_length > 0) {
            word_count++;
            if (word_length > longest_word_length) {
              longest_words_count = 1;
              strcpy(longest_words[0], word_buf);
              longest_word_length = word_length;
            } else if (word_length == longest_word_length) {
              strcpy(longest_words[longest_words_count], word_buf);
              longest_words_count++;
              assert(longest_words_count <= 10);
            }
            word_length = 0;
          }
        }
        if (c == '\n') {
          line_count++;
          if (all_char_count == trail_line_index) {
            trail_line_count++;
          } else {
            trail_line_count = 0;
          }
          trail_line_index = all_char_count + 1;
        } else if (c == ',' || c == '.') {
          char_count++;
        }
        if (c != '\r') {
          all_char_count++;
        }
        c = getc(f);
      }
      white_space_flag = 0;
      if ((int)c >= 65 && (int)c <= 90) {
        freq_char_count[c - 65] += 1;
      } else if ((int)c >= 97 && (int)c <= 122) {
        freq_char_count[c - 97] += 1;
      } else if ((int)c == EOF) {
        break;
      }
      word_buf[word_length] = c;
      word_length++;
      assert(word_length <= 100);
      char_count++;
      all_char_count++;
    }
    line_count++;
    if (trail_line_index == all_char_count) {
      line_count -= trail_line_count + 1;
    }
    for (i = 0; i < 26; i++) {
      if (freq_char_count[i] > freq_char_freq) {
        freq_char_freq = freq_char_count[i];
        freq_char = i;
      }
    }
    printf("Number of lines = %d\n", line_count);
    printf("Number of words = %d\n", word_count);
    printf("Number of characters = %d\n", char_count);
    printf("The longest words = ");
    for (i = 0; i < longest_words_count; i++)
      printf("%s, ", longest_words[i]);
    printf("(%d)\n", longest_word_length);
    printf("The most frequently used characters = %c (%d)\n",
           (char)(freq_char + 97), freq_char_freq);
    fclose(f);
  } else {
    printf("Invalid input file.\n");
  }
  return (EXIT_SUCCESS);
}


x86 assembly (clang, -O0):
<main>:
push   %rbp
mov    %rsp,%rbp
sub    $0x510,%rsp
movl   $0x0,-0x4(%rbp)
mov    %edi,-0x8(%rbp)
mov    %rsi,-0x10(%rbp)
mov    -0x10(%rbp),%rax
mov    0x8(%rax),%rdi
lea    0xe78(%rip),%rsi
call   1070 <fopen@plt>
mov    %rax,-0x18(%rbp)
cmpq   $0x0,-0x18(%rbp)
je     16e7 <main+0x587>
movl   $0x0,-0x20(%rbp)
movl   $0x0,-0x24(%rbp)
movl   $0x0,-0x28(%rbp)
movl   $0x0,-0x414(%rbp)
movl   $0x0,-0x418(%rbp)
movl   $0x0,-0x41c(%rbp)
movl   $0x0,-0x484(%rbp)
movl   $0x0,-0x4f4(%rbp)
movl   $0x0,-0x4f8(%rbp)
movl   $0x0,-0x4fc(%rbp)
movl   $0x0,-0x500(%rbp)
movl   $0x0,-0x504(%rbp)
movl   $0x0,-0x508(%rbp)
movl   $0x0,-0x508(%rbp)
cmpl   $0x1a,-0x508(%rbp)
jge    1252 <main+0xf2>
movslq -0x508(%rbp),%rax
movl   $0x0,-0x4f0(%rbp,%rax,4)
mov    -0x508(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0x508(%rbp)
jmp    121f <main+0xbf>
jmp    1257 <main+0xf7>
mov    -0x18(%rbp),%rdi
call   1080 <getc@plt>
mov    %al,-0x19(%rbp)
movsbl %al,%eax
mov    0x2d7b(%rip),%rcx
movsbl (%rcx),%ecx
cmp    %ecx,%eax
je     157b <main+0x41b>
jmp    127d <main+0x11d>
movsbl -0x19(%rbp),%ecx
mov    $0x1,%al
cmp    $0xa,%ecx
mov    %al,-0x509(%rbp)
je     12e1 <main+0x181>
movsbl -0x19(%rbp),%ecx
mov    $0x1,%al
cmp    $0xd,%ecx
mov    %al,-0x509(%rbp)
je     12e1 <main+0x181>
movsbl -0x19(%rbp),%ecx
mov    $0x1,%al
cmp    $0x20,%ecx
mov    %al,-0x509(%rbp)
je     12e1 <main+0x181>
movsbl -0x19(%rbp),%ecx
mov    $0x1,%al
cmp    $0x2c,%ecx
mov    %al,-0x509(%rbp)
je     12e1 <main+0x181>
movsbl -0x19(%rbp),%eax
cmp    $0x2e,%eax
sete   %al
mov    %al,-0x509(%rbp)
mov    -0x509(%rbp),%al
test   $0x1,%al
jne    12f4 <main+0x194>
jmp    1489 <main+0x329>
cmpl   $0x0,-0x41c(%rbp)
jne    13da <main+0x27a>
movl   $0x1,-0x41c(%rbp)
movslq -0x484(%rbp),%rax
movb   $0x0,-0x480(%rbp,%rax,1)
cmpl   $0x0,-0x484(%rbp)
jle    13d5 <main+0x275>
mov    -0x24(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0x24(%rbp)
mov    -0x484(%rbp),%eax
cmp    -0x414(%rbp),%eax
jle    1370 <main+0x210>
movl   $0x1,-0x418(%rbp)
lea    -0x410(%rbp),%rdi
lea    -0x480(%rbp),%rsi
call   1030 <strcpy@plt>
mov    -0x484(%rbp),%eax
mov    %eax,-0x414(%rbp)
jmp    13cb <main+0x26b>
mov    -0x484(%rbp),%eax
cmp    -0x414(%rbp),%eax
jne    13c6 <main+0x266>
movslq -0x418(%rbp),%rax
lea    -0x410(%rbp),%rdi
imul   $0x64,%rax,%rax
add    %rax,%rdi
lea    -0x480(%rbp),%rsi
call   1030 <strcpy@plt>
mov    -0x418(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0x418(%rbp)
cmpl   $0xa,-0x418(%rbp)
setle  %al
and    $0x1,%al
movzbl %al,%edi
call   1060 <assert@plt>
jmp    13cb <main+0x26b>
movl   $0x0,-0x484(%rbp)
jmp    13da <main+0x27a>
movsbl -0x19(%rbp),%eax
cmp    $0xa,%eax
jne    1434 <main+0x2d4>
mov    -0x28(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0x28(%rbp)
mov    -0x504(%rbp),%eax
cmp    -0x4fc(%rbp),%eax
jne    1416 <main+0x2b6>
mov    -0x500(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0x500(%rbp)
jmp    1420 <main+0x2c0>
movl   $0x0,-0x500(%rbp)
mov    -0x504(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0x4fc(%rbp)
jmp    145c <main+0x2fc>
movsbl -0x19(%rbp),%eax
cmp    $0x2c,%eax
je     144e <main+0x2ee>
movsbl -0x19(%rbp),%eax
cmp    $0x2e,%eax
jne    1457 <main+0x2f7>
mov    -0x20(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0x20(%rbp)
jmp    145c <main+0x2fc>
movsbl -0x19(%rbp),%eax
cmp    $0xd,%eax
je     1478 <main+0x318>
mov    -0x504(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0x504(%rbp)
mov    -0x18(%rbp),%rdi
call   1080 <getc@plt>
mov    %al,-0x19(%rbp)
jmp    127d <main+0x11d>
movl   $0x0,-0x41c(%rbp)
movsbl -0x19(%rbp),%eax
cmp    $0x41,%eax
jl     14cc <main+0x36c>
movsbl -0x19(%rbp),%eax
cmp    $0x5a,%eax
jg     14cc <main+0x36c>
movsbl -0x19(%rbp),%eax
sub    $0x41,%eax
cltq
mov    -0x4f0(%rbp,%rax,4),%ecx
add    $0x1,%ecx
mov    %ecx,-0x4f0(%rbp,%rax,4)
jmp    152a <main+0x3ca>
movsbl -0x19(%rbp),%eax
cmp    $0x61,%eax
jl     1505 <main+0x3a5>
movsbl -0x19(%rbp),%eax
cmp    $0x7a,%eax
jg     1505 <main+0x3a5>
movsbl -0x19(%rbp),%eax
sub    $0x61,%eax
cltq
mov    -0x4f0(%rbp,%rax,4),%ecx
add    $0x1,%ecx
mov    %ecx,-0x4f0(%rbp,%rax,4)
jmp    1525 <main+0x3c5>
movsbl -0x19(%rbp),%eax
mov    0x2ad8(%rip),%rcx
movsbl (%rcx),%ecx
cmp    %ecx,%eax
jne    1520 <main+0x3c0>
jmp    157b <main+0x41b>
jmp    1525 <main+0x3c5>
jmp    152a <main+0x3ca>
mov    -0x19(%rbp),%cl
movslq -0x484(%rbp),%rax
mov    %cl,-0x480(%rbp,%rax,1)
mov    -0x484(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0x484(%rbp)
cmpl   $0x64,-0x484(%rbp)
setle  %al
and    $0x1,%al
movzbl %al,%edi
call   1060 <assert@plt>
mov    -0x20(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0x20(%rbp)
mov    -0x504(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0x504(%rbp)
jmp    1257 <main+0xf7>
mov    -0x28(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0x28(%rbp)
mov    -0x4fc(%rbp),%eax
cmp    -0x504(%rbp),%eax
jne    15a7 <main+0x447>
mov    -0x500(%rbp),%ecx
add    $0x1,%ecx
mov    -0x28(%rbp),%eax
sub    %ecx,%eax
mov    %eax,-0x28(%rbp)
movl   $0x0,-0x508(%rbp)
cmpl   $0x1a,-0x508(%rbp)
jge    1611 <main+0x4b1>
movslq -0x508(%rbp),%rax
mov    -0x4f0(%rbp,%rax,4),%eax
cmp    -0x4f8(%rbp),%eax
jle    15f8 <main+0x498>
movslq -0x508(%rbp),%rax
mov    -0x4f0(%rbp,%rax,4),%eax
mov    %eax,-0x4f8(%rbp)
mov    -0x508(%rbp),%eax
mov    %eax,-0x4f4(%rbp)
jmp    15fd <main+0x49d>
mov    -0x508(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0x508(%rbp)
jmp    15b1 <main+0x451>
mov    -0x28(%rbp),%esi
lea    0x9e7(%rip),%rdi
mov    $0x0,%al
call   1050 <printf@plt>
mov    -0x24(%rbp),%esi
lea    0x9ec(%rip),%rdi
mov    $0x0,%al
call   1050 <printf@plt>
mov    -0x20(%rbp),%esi
lea    0x9f1(%rip),%rdi
mov    $0x0,%al
call   1050 <printf@plt>
lea    0x9fe(%rip),%rdi
mov    $0x0,%al
call   1050 <printf@plt>
movl   $0x0,-0x508(%rbp)
mov    -0x508(%rbp),%eax
cmp    -0x418(%rbp),%eax
jge    16a5 <main+0x545>
movslq -0x508(%rbp),%rax
lea    -0x410(%rbp),%rsi
imul   $0x64,%rax,%rax
add    %rax,%rsi
lea    0x9d4(%rip),%rdi
mov    $0x0,%al
call   1050 <printf@plt>
mov    -0x508(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0x508(%rbp)
jmp    165c <main+0x4fc>
mov    -0x414(%rbp),%esi
lea    0x9da(%rip),%rdi
mov    $0x0,%al
call   1050 <printf@plt>
mov    -0x4f4(%rbp),%eax
add    $0x61,%eax
movsbl %al,%esi
mov    -0x4f8(%rbp),%edx
lea    0x991(%rip),%rdi
mov    $0x0,%al
call   1050 <printf@plt>
mov    -0x18(%rbp),%rdi
call   1040 <fclose@plt>
jmp    16f5 <main+0x595>
lea    0x9a4(%rip),%rdi
mov    $0x0,%al
call   1050 <printf@plt>
mov    0x28dc(%rip),%rax
mov    (%rax),%eax
add    $0x510,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<main>:
push   %rbp
push   %r15
push   %r14
push   %r13
push   %r12
push   %rbx
sub    $0x5a8,%rsp
mov    0x8(%rsi),%rdi
lea    0xe74(%rip),%rsi
call   1080 <fopen@plt>
test   %rax,%rax
je     1472 <main+0x302>
xorps  %xmm0,%xmm0
movaps %xmm0,0x130(%rsp)
movaps %xmm0,0x120(%rsp)
movaps %xmm0,0x110(%rsp)
movaps %xmm0,0x100(%rsp)
movaps %xmm0,0xf0(%rsp)
movaps %xmm0,0xe0(%rsp)
movq   $0x0,0x140(%rsp)
mov    %rax,0x28(%rsp)
mov    %rax,%rdi
call   1090 <getc@plt>
mov    %eax,%r12d
mov    0x2df8(%rip),%rdi
xor    %ecx,%ecx
mov    $0x0,%ebx
mov    $0x0,%r15d
mov    $0x0,%eax
movl   $0x0,0x14(%rsp)
mov    $0x0,%ebp
mov    $0x0,%esi
mov    $0x0,%edx
mov    $0x0,%r13d
cmp    (%rdi),%r12b
je     14a5 <main+0x335>
mov    $0x1,%al
xor    %ecx,%ecx
mov    %rcx,0x20(%rsp)
movl   $0x0,0x18(%rsp)
movl   $0x0,0x1c(%rsp)
movl   $0x0,0x14(%rsp)
movl   $0x0,0xc(%rsp)
xor    %r14d,%r14d
xor    %ecx,%ecx
mov    %rcx,0x30(%rsp)
movl   $0x0,0x10(%rsp)
xor    %r13d,%r13d
jmp    12ad <main+0x13d>
nopl   0x0(%rax,%rax,1)
mov    %r12d,%eax
and    $0xfd,%al
xor    %ecx,%ecx
cmp    $0x2c,%al
sete   %cl
add    %ecx,%edx
add    %ebp,%edx
mov    %rdx,0x20(%rsp)
mov    %r15d,0x14(%rsp)
xor    %eax,%eax
cmp    $0xd,%r12b
setne  %al
add    %eax,%r13d
add    %r13d,%ebp
call   1090 <getc@plt>
mov    %eax,%r12d
xor    %eax,%eax
mov    %ebp,%r13d
mov    0x2d3b(%rip),%rdi
mov    %r14d,%ebx
movslq %r14d,%rcx
lea    (%rsp,%rcx,1),%r15
add    $0x150,%r15
xor    %ebp,%ebp
lea    (%rbx,%rbp,1),%r14
cmp    $0x2e,%r12b
ja     12e2 <main+0x172>
movzbl %r12b,%ecx
movabs $0x500100002400,%rdx
bt     %rcx,%rdx
jb     1370 <main+0x200>
lea    -0x41(%r12),%eax
cmp    $0x1a,%al
jae    1300 <main+0x190>
mov    $0xffffff9f,%eax
add    $0x20,%rax
jmp    130f <main+0x19f>
cs nopw 0x0(%rax,%rax,1)
lea    -0x61(%r12),%ecx
mov    $0xffffff9f,%eax
cmp    $0x1a,%cl
jae    1320 <main+0x1b0>
movsbq %r12b,%rcx
add    %ecx,%eax
addl   $0x1,0xe0(%rsp,%rax,4)
01
jmp    1329 <main+0x1b9>
nop
cmp    (%rdi),%r12b
je     1483 <main+0x313>
mov    %r12b,(%r15,%rbp,1)
xor    %edi,%edi
cmp    $0x64,%r14d
setl   %dil
call   1070 <assert@plt>
mov    0x28(%rsp),%rdi
call   1090 <getc@plt>
mov    0x2c9b(%rip),%rdi
mov    %eax,%r12d
add    $0x1,%rbp
mov    $0x1,%al
cmp    (%rdi),%r12b
jne    12c0 <main+0x150>
jmp    1483 <main+0x313>
cs nopw 0x0(%rax,%rax,1)
xchg   %ax,%ax
test   $0x1,%al
je     13c0 <main+0x250>
movslq %ebx,%rax
add    %rsp,%rax
add    $0x150,%rax
movb   $0x0,0x0(%rbp,%rax,1)
test   %r14d,%r14d
jle    13c0 <main+0x250>
addl   $0x1,0x18(%rsp)
mov    0x14(%rsp),%r15d
cmp    %r15d,%r14d
jle    13cc <main+0x25c>
lea    0x1c0(%rsp),%rdi
lea    0x150(%rsp),%rsi
call   1030 <strcpy@plt>
movl   $0x1,0xc(%rsp)
mov    %r14d,%r15d
xor    %r14d,%r14d
jmp    1420 <main+0x2b0>
xchg   %ax,%ax
mov    0x28(%rsp),%rdi
mov    0x14(%rsp),%r15d
jmp    1425 <main+0x2b5>
mov    %r15d,%eax
neg    %eax
add    %rax,%rbx
add    %rbp,%rbx
xor    %r14d,%r14d
test   %ebx,%ebx
jne    1420 <main+0x2b0>
movslq 0xc(%rsp),%rbx
imul   $0x64,%rbx,%rax
lea    (%rsp,%rax,1),%rdi
add    $0x1c0,%rdi
lea    0x150(%rsp),%rsi
call   1030 <strcpy@plt>
lea    0x1(%rbx),%eax
mov    %eax,0xc(%rsp)
xor    %edi,%edi
cmp    $0xa,%ebx
setl   %dil
call   1070 <assert@plt>
cs nopw 0x0(%rax,%rax,1)
xchg   %ax,%ax
mov    0x28(%rsp),%rdi
mov    0x20(%rsp),%rdx
cmp    $0xa,%r12b
jne    1270 <main+0x100>
mov    0x30(%rsp),%rcx
neg    %ecx
mov    %r13d,%eax
add    %rax,%rcx
mov    %edx,%edx
add    %rbp,%rdx
add    %rbp,%rcx
addl   $0x1,0x1c(%rsp)
mov    0x10(%rsp),%eax
add    $0x1,%eax
test   %ecx,%ecx
mov    $0x0,%ecx
cmovne %ecx,%eax
mov    %eax,0x10(%rsp)
lea    0x1(%r13,%rbp,1),%eax
mov    %rax,0x30(%rsp)
jmp    1280 <main+0x110>
lea    0xc19(%rip),%rdi
call   1040 <puts@plt>
jmp    1974 <main+0x804>
mov    0x20(%rsp),%rbx
add    %ebp,%ebx
add    %ebp,%r13d
mov    0x18(%rsp),%r15d
mov    0xc(%rsp),%ebp
mov    0x1c(%rsp),%eax
xor    %ecx,%ecx
mov    0x10(%rsp),%edx
mov    0x30(%rsp),%rsi
neg    %edx
cmp    %r13d,%esi
mov    $0x1,%esi
cmove  %edx,%esi
mov    0xe0(%rsp),%r14d
mov    0xe4(%rsp),%edx
test   %r14d,%r14d
cmovs  %ecx,%r14d
cmp    %r14d,%edx
mov    %r14d,%r12d
mov    %edx,0x38(%rsp)
cmovg  %edx,%r12d
mov    0xe8(%rsp),%edx
cmp    %r12d,%edx
mov    %r12d,0x10(%rsp)
mov    %edx,0x98(%rsp)
cmovg  %edx,%r12d
mov    0xec(%rsp),%ecx
cmp    %r12d,%ecx
mov    %r12d,0x30(%rsp)
mov    %ecx,0x94(%rsp)
cmovg  %ecx,%r12d
mov    0xf0(%rsp),%ecx
cmp    %r12d,%ecx
mov    %r12d,%r13d
mov    %ecx,0x90(%rsp)
cmovg  %ecx,%r13d
mov    0xf4(%rsp),%edx
cmp    %r13d,%edx
mov    %r13d,%ecx
mov    %edx,0x8c(%rsp)
cmovg  %edx,%ecx
mov    0xf8(%rsp),%edx
cmp    %ecx,%edx
mov    %ecx,0x1c(%rsp)
mov    %edx,0x88(%rsp)
cmovg  %edx,%ecx
mov    0xfc(%rsp),%edx
cmp    %ecx,%edx
mov    %ecx,0x18(%rsp)
mov    %edx,0x84(%rsp)
cmovg  %edx,%ecx
mov    0x100(%rsp),%edx
cmp    %ecx,%edx
mov    %ecx,0xc(%rsp)
mov    %edx,0x80(%rsp)
cmovg  %edx,%ecx
mov    0x104(%rsp),%edx
cmp    %ecx,%edx
mov    %ecx,0xdc(%rsp)
mov    %edx,0x7c(%rsp)
cmovg  %edx,%ecx
mov    0x108(%rsp),%edx
cmp    %ecx,%edx
mov    %ecx,0xd8(%rsp)
mov    %edx,0x78(%rsp)
cmovg  %edx,%ecx
mov    0x10c(%rsp),%edx
cmp    %ecx,%edx
mov    %ecx,0xd4(%rsp)
mov    %edx,0x74(%rsp)
cmovg  %edx,%ecx
mov    0x110(%rsp),%edx
cmp    %ecx,%edx
mov    %ecx,0xd0(%rsp)
mov    %edx,0x70(%rsp)
cmovg  %edx,%ecx
mov    0x114(%rsp),%edx
cmp    %ecx,%edx
mov    %ecx,0xcc(%rsp)
mov    %edx,0x6c(%rsp)
cmovg  %edx,%ecx
mov    0x118(%rsp),%edx
cmp    %ecx,%edx
mov    %ecx,0xc8(%rsp)
mov    %edx,0x68(%rsp)
cmovg  %edx,%ecx
mov    0x11c(%rsp),%edx
cmp    %ecx,%edx
mov    %ecx,0xc4(%rsp)
mov    %edx,0x64(%rsp)
cmovg  %edx,%ecx
mov    0x120(%rsp),%edx
cmp    %ecx,%edx
mov    %ecx,0xc0(%rsp)
mov    %edx,0x60(%rsp)
cmovg  %edx,%ecx
mov    0x124(%rsp),%edx
cmp    %ecx,%edx
mov    %ecx,0xbc(%rsp)
mov    %edx,0x5c(%rsp)
cmovg  %edx,%ecx
mov    0x128(%rsp),%edx
cmp    %ecx,%edx
mov    %ecx,0xb8(%rsp)
mov    %edx,0x58(%rsp)
cmovg  %edx,%ecx
mov    0x12c(%rsp),%edx
cmp    %ecx,%edx
mov    %ecx,0xb4(%rsp)
mov    %edx,0x54(%rsp)
cmovg  %edx,%ecx
mov    0x130(%rsp),%edx
cmp    %ecx,%edx
mov    %ecx,0xb0(%rsp)
mov    %edx,0x50(%rsp)
cmovg  %edx,%ecx
mov    0x134(%rsp),%edx
cmp    %ecx,%edx
mov    %ecx,0xac(%rsp)
mov    %edx,0x4c(%rsp)
cmovg  %edx,%ecx
mov    0x138(%rsp),%edx
cmp    %ecx,%edx
mov    %ecx,0xa8(%rsp)
mov    %edx,0x48(%rsp)
cmovg  %edx,%ecx
mov    0x13c(%rsp),%edx
cmp    %ecx,%edx
mov    %ecx,0xa4(%rsp)
mov    %edx,0x44(%rsp)
cmovg  %edx,%ecx
mov    0x140(%rsp),%edx
cmp    %ecx,%edx
mov    %ecx,0xa0(%rsp)
mov    %edx,0x40(%rsp)
cmovg  %edx,%ecx
mov    0x144(%rsp),%edx
cmp    %ecx,%edx
mov    %ecx,0x9c(%rsp)
mov    %edx,0x3c(%rsp)
cmovg  %edx,%ecx
mov    %ecx,0x20(%rsp)
add    %eax,%esi
lea    0x8f0(%rip),%rdi
xor    %eax,%eax
call   1060 <printf@plt>
lea    0x8f8(%rip),%rdi
mov    %r15d,%esi
xor    %eax,%eax
call   1060 <printf@plt>
lea    0x8fd(%rip),%rdi
mov    %ebx,%esi
xor    %eax,%eax
call   1060 <printf@plt>
lea    0x908(%rip),%rdi
xor    %eax,%eax
call   1060 <printf@plt>
test   %ebp,%ebp
jle    1777 <main+0x607>
mov    %ebp,%r15d
lea    0x1c0(%rsp),%rbp
lea    0x900(%rip),%rbx
xchg   %ax,%ax
mov    %rbx,%rdi
mov    %rbp,%rsi
xor    %eax,%eax
call   1060 <printf@plt>
add    $0x64,%rbp
add    $0xffffffffffffffff,%r15
jne    1760 <main+0x5f0>
xor    %ebx,%ebx
cmp    %r14d,0x38(%rsp)
setg   %bl
lea    0x904(%rip),%rdi
mov    0x14(%rsp),%esi
xor    %eax,%eax
call   1060 <printf@plt>
add    $0x61,%ebx
mov    0x98(%rsp),%eax
cmp    0x10(%rsp),%eax
mov    $0x63,%eax
cmovle %ebx,%eax
mov    0x94(%rsp),%ecx
cmp    0x30(%rsp),%ecx
mov    $0x64,%ecx
cmovle %eax,%ecx
cmp    %r12d,0x90(%rsp)
mov    $0x65,%eax
cmovle %ecx,%eax
cmp    %r13d,0x8c(%rsp)
mov    $0x66,%ecx
cmovle %eax,%ecx
mov    0x88(%rsp),%eax
cmp    0x1c(%rsp),%eax
mov    $0x67,%eax
cmovle %ecx,%eax
mov    0x84(%rsp),%ecx
cmp    0x18(%rsp),%ecx
mov    $0x68,%ecx
cmovle %eax,%ecx
mov    0x80(%rsp),%eax
cmp    0xc(%rsp),%eax
mov    $0x69,%eax
cmovle %ecx,%eax
mov    0x7c(%rsp),%ecx
cmp    0xdc(%rsp),%ecx
mov    $0x6a,%ecx
cmovle %eax,%ecx
mov    0x78(%rsp),%eax
cmp    0xd8(%rsp),%eax
mov    $0x6b,%eax
cmovle %ecx,%eax
mov    0x74(%rsp),%ecx
cmp    0xd4(%rsp),%ecx
mov    $0x6c,%ecx
cmovle %eax,%ecx
mov    0x70(%rsp),%eax
cmp    0xd0(%rsp),%eax
mov    $0x6d,%eax
cmovle %ecx,%eax
mov    0x6c(%rsp),%ecx
cmp    0xcc(%rsp),%ecx
mov    $0x6e,%ecx
cmovle %eax,%ecx
mov    0x68(%rsp),%eax
cmp    0xc8(%rsp),%eax
mov    $0x6f,%eax
cmovle %ecx,%eax
mov    0x64(%rsp),%ecx
cmp    0xc4(%rsp),%ecx
mov    $0x70,%ecx
cmovle %eax,%ecx
mov    0x60(%rsp),%eax
cmp    0xc0(%rsp),%eax
mov    $0x71,%eax
cmovle %ecx,%eax
mov    0x5c(%rsp),%ecx
cmp    0xbc(%rsp),%ecx
mov    $0x72,%ecx
cmovle %eax,%ecx
mov    0x58(%rsp),%eax
cmp    0xb8(%rsp),%eax
mov    $0x73,%eax
cmovle %ecx,%eax
mov    0x54(%rsp),%ecx
cmp    0xb4(%rsp),%ecx
mov    $0x74,%ecx
cmovle %eax,%ecx
mov    0x50(%rsp),%eax
cmp    0xb0(%rsp),%eax
mov    $0x75,%eax
cmovle %ecx,%eax
mov    0x4c(%rsp),%ecx
cmp    0xac(%rsp),%ecx
mov    $0x76,%ecx
cmovle %eax,%ecx
mov    0x48(%rsp),%eax
cmp    0xa8(%rsp),%eax
mov    $0x77,%eax
cmovle %ecx,%eax
mov    0x44(%rsp),%ecx
cmp    0xa4(%rsp),%ecx
mov    $0x78,%ecx
cmovle %eax,%ecx
mov    0x40(%rsp),%eax
cmp    0xa0(%rsp),%eax
mov    $0x79,%eax
cmovle %ecx,%eax
mov    0x3c(%rsp),%ecx
cmp    0x9c(%rsp),%ecx
mov    $0x7a,%esi
cmovle %eax,%esi
lea    0x704(%rip),%rdi
mov    0x20(%rsp),%edx
xor    %eax,%eax
call   1060 <printf@plt>
mov    0x28(%rsp),%rdi
call   1050 <fclose@plt>
mov    0x265d(%rip),%rax
mov    (%rax),%eax
add    $0x5a8,%rsp
pop    %rbx
pop    %r12
pop    %r13
pop    %r14
pop    %r15
pop    %rbp
ret

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

LLVM IR (-O2):
@.str = [2 x i8] c"r\00"
@EOF = global i8 0
@.str.1 = [22 x i8] c"Number of lines = %d\0A\00"
@.str.2 = [22 x i8] c"Number of words = %d\0A\00"
@.str.3 = [27 x i8] c"Number of characters = %d\0A\00"
@.str.4 = [21 x i8] c"The longest words = \00"
@.str.5 = [5 x i8] c"%s, \00"
@.str.6 = [6 x i8] c"(%d)\0A\00"
@.str.7 = [47 x i8] c"The most frequently used characters = %c (%d)\0A\00"
@EXIT_SUCCESS = global i32 0
@str = [20 x i8] c"Invalid input file.\00"
define i32 @main(i32 %0, i8** nocapture %1) {
%3 = alloca [10 x [100 x i8]]
%4 = alloca [100 x i8]
%5 = alloca [26 x i32]
%6 = bitcast [26 x i32]* %5 to i8*
%7 = getelementptr inbounds i8*, i8** %1, i64 1
%8 = load i8*, i8** %7
%9 = tail call i32* @fopen(i8* %8, i8* getelementptr inbounds ([2 x i8], [2 x i8]* @.str, i64 0, i64 0))
%10 = icmp eq i32* %9, null
br i1 %10, label %269, label %11
11: ; preds = %2
%12 = getelementptr inbounds [10 x [100 x i8]], [10 x [100 x i8]]* %3, i64 0, i64 0, i64 0
%13 = getelementptr inbounds [100 x i8], [100 x i8]* %4, i64 0, i64 0
%14 = call signext i8 @getc(i32* %9)
%15 = load i8, i8* @EOF
%16 = icmp eq i8 %14, %15
br i1 %16, label %110, label %17
17: ; preds = %11, %72
%18 = phi i8 [ %80, %72 ], [ %14, %11 ]
%19 = phi i32 [ %73, %72 ], [ 0, %11 ]
%20 = phi i32 [ %57, %72 ], [ 0, %11 ]
%21 = phi i32 [ %74, %72 ], [ 0, %11 ]
%22 = phi i32 [ %58, %72 ], [ 0, %11 ]
%23 = phi i32 [ %59, %72 ], [ 0, %11 ]
%24 = phi i1 [ false, %72 ], [ true, %11 ]
%25 = phi i32 [ %60, %72 ], [ 0, %11 ]
%26 = phi i32 [ %75, %72 ], [ 0, %11 ]
%27 = phi i32 [ %76, %72 ], [ 0, %11 ]
%28 = phi i32 [ %79, %72 ], [ 0, %11 ]
br label %29
29: ; preds = %17, %98
%30 = phi i8 [ %107, %98 ], [ %18, %17 ]
%31 = phi i32 [ %105, %98 ], [ %19, %17 ]
%32 = phi i1 [ true, %98 ], [ %24, %17 ]
%33 = phi i32 [ %101, %98 ], [ %25, %17 ]
%34 = phi i32 [ %106, %98 ], [ %28, %17 ]
switch i8 %30, label %81 [
i8 46, label %35
i8 44, label %35
i8 32, label %35
i8 13, label %35
i8 10, label %35
]
35: ; preds = %29, %29, %29, %29, %29
%36 = icmp eq i8 %30, 10
br i1 %32, label %37, label %56
37: ; preds = %35
%38 = sext i32 %33 to i64
%39 = getelementptr inbounds [100 x i8], [100 x i8]* %4, i64 0, i64 %38
store i8 0, i8* %39
%40 = icmp sgt i32 %33, 0
br i1 %40, label %41, label %56
41: ; preds = %37
%42 = add nsw i32 %20, 1
%43 = icmp sgt i32 %33, %22
br i1 %43, label %44, label %46
44: ; preds = %41
%45 = call i32 @strcpy(i8* %12, i8* %13)
br label %56
46: ; preds = %41
%47 = icmp eq i32 %33, %22
br i1 %47, label %48, label %56
48: ; preds = %46
%49 = sext i32 %23 to i64
%50 = getelementptr inbounds [10 x [100 x i8]], [10 x [100 x i8]]* %3, i64 0, i64 %49, i64 0
%51 = call i32 @strcpy(i8* %50, i8* %13)
%52 = add nsw i32 %23, 1
%53 = icmp slt i32 %23, 10
%54 = zext i1 %53 to i32
%55 = call i32 @assert(i32 %54)
br label %56
56: ; preds = %44, %48, %46, %37, %35
%57 = phi i32 [ %20, %37 ], [ %20, %35 ], [ %42, %46 ], [ %42, %48 ], [ %42, %44 ]
%58 = phi i32 [ %22, %37 ], [ %22, %35 ], [ %22, %46 ], [ %22, %48 ], [ %33, %44 ]
%59 = phi i32 [ %23, %37 ], [ %23, %35 ], [ %23, %46 ], [ %52, %48 ], [ 1, %44 ]
%60 = phi i32 [ %33, %37 ], [ %33, %35 ], [ 0, %46 ], [ 0, %48 ], [ 0, %44 ]
br i1 %36, label %61, label %67
61: ; preds = %56
%62 = add nsw i32 %21, 1
%63 = icmp eq i32 %34, %26
%64 = add nsw i32 %27, 1
%65 = select i1 %63, i32 %64, i32 0
%66 = add nsw i32 %34, 1
br label %72
67: ; preds = %56
%68 = and i8 %30, -3
%69 = icmp eq i8 %68, 44
%70 = zext i1 %69 to i32
%71 = add nsw i32 %31, %70
br label %72
72: ; preds = %67, %61
%73 = phi i32 [ %31, %61 ], [ %71, %67 ]
%74 = phi i32 [ %62, %61 ], [ %21, %67 ]
%75 = phi i32 [ %66, %61 ], [ %26, %67 ]
%76 = phi i32 [ %65, %61 ], [ %27, %67 ]
%77 = icmp ne i8 %30, 13
%78 = zext i1 %77 to i32
%79 = add nsw i32 %34, %78
%80 = call signext i8 @getc(i32* %9)
br label %17
81: ; preds = %29
%82 = sext i8 %30 to i64
%83 = add i8 %30, -65
%84 = icmp ult i8 %83, 26
br i1 %84, label %91, label %85
85: ; preds = %81
%86 = add i8 %30, -97
%87 = icmp ult i8 %86, 26
br i1 %87, label %91, label %88
88: ; preds = %85
%89 = load i8, i8* @EOF
%90 = icmp eq i8 %30, %89
br i1 %90, label %110, label %98
91: ; preds = %85, %81
%92 = phi i64 [ 4294967231, %81 ], [ 4294967199, %85 ]
%93 = add nsw i64 %92, %82
%94 = and i64 %93, 4294967295
%95 = getelementptr inbounds [26 x i32], [26 x i32]* %5, i64 0, i64 %94
%96 = load i32, i32* %95
%97 = add nsw i32 %96, 1
store i32 %97, i32* %95
br label %98
98: ; preds = %91, %88
%99 = sext i32 %33 to i64
%100 = getelementptr inbounds [100 x i8], [100 x i8]* %4, i64 0, i64 %99
store i8 %30, i8* %100
%101 = add nsw i32 %33, 1
%102 = icmp slt i32 %33, 100
%103 = zext i1 %102 to i32
%104 = call i32 @assert(i32 %103)
%105 = add nsw i32 %31, 1
%106 = add nsw i32 %34, 1
%107 = call signext i8 @getc(i32* %9)
%108 = load i8, i8* @EOF
%109 = icmp eq i8 %107, %108
br i1 %109, label %110, label %29
110: ; preds = %98, %88, %11
%111 = phi i32 [ 0, %11 ], [ %31, %88 ], [ %105, %98 ]
%112 = phi i32 [ 0, %11 ], [ %20, %88 ], [ %20, %98 ]
%113 = phi i32 [ 0, %11 ], [ %21, %88 ], [ %21, %98 ]
%114 = phi i32 [ 0, %11 ], [ %22, %88 ], [ %22, %98 ]
%115 = phi i32 [ 0, %11 ], [ %23, %88 ], [ %23, %98 ]
%116 = phi i32 [ 0, %11 ], [ %26, %88 ], [ %26, %98 ]
%117 = phi i32 [ 0, %11 ], [ %27, %88 ], [ %27, %98 ]
%118 = phi i32 [ 0, %11 ], [ %34, %88 ], [ %106, %98 ]
%119 = icmp eq i32 %116, %118
%120 = sub i32 0, %117
%121 = select i1 %119, i32 %120, i32 1
%122 = getelementptr inbounds [26 x i32], [26 x i32]* %5, i64 0, i64 0
%123 = load i32, i32* %122
%124 = icmp sgt i32 %123, 0
%125 = select i1 %124, i32 %123, i32 0
%126 = getelementptr inbounds [26 x i32], [26 x i32]* %5, i64 0, i64 1
%127 = load i32, i32* %126
%128 = icmp sgt i32 %127, %125
%129 = select i1 %128, i32 %127, i32 %125
%130 = getelementptr inbounds [26 x i32], [26 x i32]* %5, i64 0, i64 2
%131 = load i32, i32* %130
%132 = icmp sgt i32 %131, %129
%133 = select i1 %132, i32 %131, i32 %129
%134 = getelementptr inbounds [26 x i32], [26 x i32]* %5, i64 0, i64 3
%135 = load i32, i32* %134
%136 = icmp sgt i32 %135, %133
%137 = select i1 %136, i32 %135, i32 %133
%138 = getelementptr inbounds [26 x i32], [26 x i32]* %5, i64 0, i64 4
%139 = load i32, i32* %138
%140 = icmp sgt i32 %139, %137
%141 = select i1 %140, i32 %139, i32 %137
%142 = getelementptr inbounds [26 x i32], [26 x i32]* %5, i64 0, i64 5
%143 = load i32, i32* %142
%144 = icmp sgt i32 %143, %141
%145 = select i1 %144, i32 %143, i32 %141
%146 = getelementptr inbounds [26 x i32], [26 x i32]* %5, i64 0, i64 6
%147 = load i32, i32* %146
%148 = icmp sgt i32 %147, %145
%149 = select i1 %148, i32 %147, i32 %145
%150 = getelementptr inbounds [26 x i32], [26 x i32]* %5, i64 0, i64 7
%151 = load i32, i32* %150
%152 = icmp sgt i32 %151, %149
%153 = select i1 %152, i32 %151, i32 %149
%154 = getelementptr inbounds [26 x i32], [26 x i32]* %5, i64 0, i64 8
%155 = load i32, i32* %154
%156 = icmp sgt i32 %155, %153
%157 = select i1 %156, i32 %155, i32 %153
%158 = getelementptr inbounds [26 x i32], [26 x i32]* %5, i64 0, i64 9
%159 = load i32, i32* %158
%160 = icmp sgt i32 %159, %157
%161 = select i1 %160, i32 %159, i32 %157
%162 = getelementptr inbounds [26 x i32], [26 x i32]* %5, i64 0, i64 10
%163 = load i32, i32* %162
%164 = icmp sgt i32 %163, %161
%165 = select i1 %164, i32 %163, i32 %161
%166 = getelementptr inbounds [26 x i32], [26 x i32]* %5, i64 0, i64 11
%167 = load i32, i32* %166
%168 = icmp sgt i32 %167, %165
%169 = select i1 %168, i32 %167, i32 %165
%170 = getelementptr inbounds [26 x i32], [26 x i32]* %5, i64 0, i64 12
%171 = load i32, i32* %170
%172 = icmp sgt i32 %171, %169
%173 = select i1 %172, i32 %171, i32 %169
%174 = getelementptr inbounds [26 x i32], [26 x i32]* %5, i64 0, i64 13
%175 = load i32, i32* %174
%176 = icmp sgt i32 %175, %173
%177 = select i1 %176, i32 %175, i32 %173
%178 = getelementptr inbounds [26 x i32], [26 x i32]* %5, i64 0, i64 14
%179 = load i32, i32* %178
%180 = icmp sgt i32 %179, %177
%181 = select i1 %180, i32 %179, i32 %177
%182 = getelementptr inbounds [26 x i32], [26 x i32]* %5, i64 0, i64 15
%183 = load i32, i32* %182
%184 = icmp sgt i32 %183, %181
%185 = select i1 %184, i32 %183, i32 %181
%186 = getelementptr inbounds [26 x i32], [26 x i32]* %5, i64 0, i64 16
%187 = load i32, i32* %186
%188 = icmp sgt i32 %187, %185
%189 = select i1 %188, i32 %187, i32 %185
%190 = getelementptr inbounds [26 x i32], [26 x i32]* %5, i64 0, i64 17
%191 = load i32, i32* %190
%192 = icmp sgt i32 %191, %189
%193 = select i1 %192, i32 %191, i32 %189
%194 = getelementptr inbounds [26 x i32], [26 x i32]* %5, i64 0, i64 18
%195 = load i32, i32* %194
%196 = icmp sgt i32 %195, %193
%197 = select i1 %196, i32 %195, i32 %193
%198 = getelementptr inbounds [26 x i32], [26 x i32]* %5, i64 0, i64 19
%199 = load i32, i32* %198
%200 = icmp sgt i32 %199, %197
%201 = select i1 %200, i32 %199, i32 %197
%202 = getelementptr inbounds [26 x i32], [26 x i32]* %5, i64 0, i64 20
%203 = load i32, i32* %202
%204 = icmp sgt i32 %203, %201
%205 = select i1 %204, i32 %203, i32 %201
%206 = getelementptr inbounds [26 x i32], [26 x i32]* %5, i64 0, i64 21
%207 = load i32, i32* %206
%208 = icmp sgt i32 %207, %205
%209 = select i1 %208, i32 %207, i32 %205
%210 = getelementptr inbounds [26 x i32], [26 x i32]* %5, i64 0, i64 22
%211 = load i32, i32* %210
%212 = icmp sgt i32 %211, %209
%213 = select i1 %212, i32 %211, i32 %209
%214 = getelementptr inbounds [26 x i32], [26 x i32]* %5, i64 0, i64 23
%215 = load i32, i32* %214
%216 = icmp sgt i32 %215, %213
%217 = select i1 %216, i32 %215, i32 %213
%218 = getelementptr inbounds [26 x i32], [26 x i32]* %5, i64 0, i64 24
%219 = load i32, i32* %218
%220 = icmp sgt i32 %219, %217
%221 = select i1 %220, i32 %219, i32 %217
%222 = getelementptr inbounds [26 x i32], [26 x i32]* %5, i64 0, i64 25
%223 = load i32, i32* %222
%224 = icmp sgt i32 %223, %221
%225 = select i1 %224, i32 %223, i32 %221
%226 = add i32 %121, %113
%227 = call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([22 x i8], [22 x i8]* @.str.1, i64 0, i64 0), i32 %226)
%228 = call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([22 x i8], [22 x i8]* @.str.2, i64 0, i64 0), i32 %112)
%229 = call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([27 x i8], [27 x i8]* @.str.3, i64 0, i64 0), i32 %111)
%230 = call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([21 x i8], [21 x i8]* @.str.4, i64 0, i64 0))
%231 = icmp sgt i32 %115, 0
br i1 %231, label %232, label %240
232: ; preds = %110
%233 = zext i32 %115 to i64
br label %234
234: ; preds = %232, %234
%235 = phi i64 [ 0, %232 ], [ %238, %234 ]
%236 = getelementptr inbounds [10 x [100 x i8]], [10 x [100 x i8]]* %3, i64 0, i64 %235, i64 0
%237 = call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([5 x i8], [5 x i8]* @.str.5, i64 0, i64 0), i8* %236)
%238 = add nuw nsw i64 %235, 1
%239 = icmp eq i64 %238, %233
br i1 %239, label %240, label %234
240: ; preds = %234, %110
%241 = call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([6 x i8], [6 x i8]* @.str.6, i64 0, i64 0), i32 %114)
%242 = select i1 %128, i32 98, i32 97
%243 = select i1 %132, i32 99, i32 %242
%244 = select i1 %136, i32 100, i32 %243
%245 = select i1 %140, i32 101, i32 %244
%246 = select i1 %144, i32 102, i32 %245
%247 = select i1 %148, i32 103, i32 %246
%248 = select i1 %152, i32 104, i32 %247
%249 = select i1 %156, i32 105, i32 %248
%250 = select i1 %160, i32 106, i32 %249
%251 = select i1 %164, i32 107, i32 %250
%252 = select i1 %168, i32 108, i32 %251
%253 = select i1 %172, i32 109, i32 %252
%254 = select i1 %176, i32 110, i32 %253
%255 = select i1 %180, i32 111, i32 %254
%256 = select i1 %184, i32 112, i32 %255
%257 = select i1 %188, i32 113, i32 %256
%258 = select i1 %192, i32 114, i32 %257
%259 = select i1 %196, i32 115, i32 %258
%260 = select i1 %200, i32 116, i32 %259
%261 = select i1 %204, i32 117, i32 %260
%262 = select i1 %208, i32 118, i32 %261
%263 = select i1 %212, i32 119, i32 %262
%264 = select i1 %216, i32 120, i32 %263
%265 = select i1 %220, i32 121, i32 %264
%266 = select i1 %224, i32 122, i32 %265
%267 = call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([47 x i8], [47 x i8]* @.str.7, i64 0, i64 0), i32 %266, i32 %225)
%268 = call i32 @fclose(i32* %9)
br label %271
269: ; preds = %2
%270 = tail call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([20 x i8], [20 x i8]* @str, i64 0, i64 0))
br label %271
271: ; preds = %269, %240
%272 = load i32, i32* @EXIT_SUCCESS
ret i32 %272
}