#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*/ printf(char *, ...);
void print_help(void) {
  printf("%s,%s extract ngram tokens from textdata\n", "ngram", "1.0.1");
  printf("%s [-n [INT|INT-INT] [-u] [-c] [-s] [-S] [-i] [-l] [-d STRING]\n\n",
         "ngram");
  printf("  -h                print this help\n");
  printf("  -n [INT|INT-INT]  build ngrams of length N or within range N-N\n");
  printf("  -u                uniq, discard all but one of successive "
         "identical ngrams\n");
  printf("  -c                count, prefix ngrams by the number of "
         "occurrences\n");
  printf("  -s                write sorted concatenation of all ngrams to "
         "standard output\n");
  printf("  -S                reverse the result of comparisons\n");
  printf("  -i                ignore words shorter as ngram length\n");
  printf("  -l                lower case input before processing. May decrease "
         "performance\n");
  printf("  -d [STRING]       use STRING as word delimiters\n\n");
  printf(" Example: %s -n 4 -u -c -S < TEXT.FILE\n\n", "ngram");
}


x86 assembly (clang, -O0):
<print_help>:
push   %rbp
mov    %rsp,%rbp
lea    0xee5(%rip),%rdi
lea    0xf08(%rip),%rsi
lea    0xf07(%rip),%rdx
mov    $0x0,%al
call   1030 <printf@plt>
lea    0xeff(%rip),%rdi
lea    0xeec(%rip),%rsi
mov    $0x0,%al
call   1030 <printf@plt>
lea    0xf2b(%rip),%rdi
mov    $0x0,%al
call   1030 <printf@plt>
lea    0xf42(%rip),%rdi
mov    $0x0,%al
call   1030 <printf@plt>
lea    0xf76(%rip),%rdi
mov    $0x0,%al
call   1030 <printf@plt>
lea    0xfb6(%rip),%rdi
mov    $0x0,%al
call   1030 <printf@plt>
lea    0xfef(%rip),%rdi
mov    $0x0,%al
call   1030 <printf@plt>
lea    0x1032(%rip),%rdi
mov    $0x0,%al
call   1030 <printf@plt>
lea    0x105b(%rip),%rdi
mov    $0x0,%al
call   1030 <printf@plt>
lea    0x1087(%rip),%rdi
mov    $0x0,%al
call   1030 <printf@plt>
lea    0x10cb(%rip),%rdi
mov    $0x0,%al
call   1030 <printf@plt>
lea    0x10f1(%rip),%rdi
lea    0xe59(%rip),%rsi
mov    $0x0,%al
call   1030 <printf@plt>
pop    %rbp
ret

x86 assembly (clang, -O2):
<print_help>:
push   %rbx
lea    0xed8(%rip),%rdi
lea    0xefb(%rip),%rbx
lea    0xefa(%rip),%rdx
mov    %rbx,%rsi
xor    %eax,%eax
call   1040 <printf@plt>
lea    0xeef(%rip),%rdi
mov    %rbx,%rsi
xor    %eax,%eax
call   1040 <printf@plt>
lea    0xf48(%rip),%rdi
call   1030 <puts@plt>
lea    0xf60(%rip),%rdi
call   1030 <puts@plt>
lea    0xf95(%rip),%rdi
call   1030 <puts@plt>
lea    0xfd6(%rip),%rdi
call   1030 <puts@plt>
lea    0x1010(%rip),%rdi
call   1030 <puts@plt>
lea    0x1054(%rip),%rdi
call   1030 <puts@plt>
lea    0x107e(%rip),%rdi
call   1030 <puts@plt>
lea    0x10ab(%rip),%rdi
call   1030 <puts@plt>
lea    0x10f0(%rip),%rdi
call   1030 <puts@plt>
lea    0xeb3(%rip),%rdi
mov    %rbx,%rsi
xor    %eax,%eax
pop    %rbx
jmp    1040 <printf@plt>

LLVM IR (-O0):
@.str = [42 x i8] c"%s,%s extract ngram tokens from textdata\0A\00"
@.str.1 = [6 x i8] c"ngram\00"
@.str.2 = [6 x i8] c"1.0.1\00"
@.str.3 = [65 x i8] c"%s [-n [INT|INT-INT] [-u] [-c] [-s] [-S] [-i] [-l] [-d STRING]\0A\0A\00"
@.str.4 = [37 x i8] c" -h print this help\0A\00"
@.str.5 = [66 x i8] c" -n [INT|INT-INT] build ngrams of length N or within range N-N\0A\00"
@.str.6 = [78 x i8] c" -u uniq, discard all but one of successive identical ngrams\0A\00"
@.str.7 = [71 x i8] c" -c count, prefix ngrams by the number of occurrences\0A\00"
@.str.8 = [81 x i8] c" -s write sorted concatenation of all ngrams to standard output\0A\00"
@.str.9 = [55 x i8] c" -S reverse the result of comparisons\0A\00"
@.str.10 = [58 x i8] c" -i ignore words shorter as ngram length\0A\00"
@.str.11 = [82 x i8] c" -l lower case input before processing. May decrease performance\0A\00"
@.str.12 = [52 x i8] c" -d [STRING] use STRING as word delimiters\0A\0A\00"
@.str.13 = [41 x i8] c" Example: %s -n 4 -u -c -S < TEXT.FILE\0A\0A\00"
define void @print_help() {
%1 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([42 x i8], [42 x i8]* @.str, i64 0, i64 0), i8* getelementptr inbounds ([6 x i8], [6 x i8]* @.str.1, i64 0, i64 0), i8* getelementptr inbounds ([6 x i8], [6 x i8]* @.str.2, i64 0, i64 0))
%2 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([65 x i8], [65 x i8]* @.str.3, i64 0, i64 0), i8* getelementptr inbounds ([6 x i8], [6 x i8]* @.str.1, i64 0, i64 0))
%3 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([37 x i8], [37 x i8]* @.str.4, i64 0, i64 0))
%4 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([66 x i8], [66 x i8]* @.str.5, i64 0, i64 0))
%5 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([78 x i8], [78 x i8]* @.str.6, i64 0, i64 0))
%6 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([71 x i8], [71 x i8]* @.str.7, i64 0, i64 0))
%7 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([81 x i8], [81 x i8]* @.str.8, i64 0, i64 0))
%8 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([55 x i8], [55 x i8]* @.str.9, i64 0, i64 0))
%9 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([58 x i8], [58 x i8]* @.str.10, i64 0, i64 0))
%10 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([82 x i8], [82 x i8]* @.str.11, i64 0, i64 0))
%11 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([52 x i8], [52 x i8]* @.str.12, i64 0, i64 0))
%12 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([41 x i8], [41 x i8]* @.str.13, i64 0, i64 0), i8* getelementptr inbounds ([6 x i8], [6 x i8]* @.str.1, i64 0, i64 0))
ret void
}

LLVM IR (-O2):
@.str = [42 x i8] c"%s,%s extract ngram tokens from textdata\0A\00"
@.str.1 = [6 x i8] c"ngram\00"
@.str.2 = [6 x i8] c"1.0.1\00"
@.str.3 = [65 x i8] c"%s [-n [INT|INT-INT] [-u] [-c] [-s] [-S] [-i] [-l] [-d STRING]\0A\0A\00"
@.str.13 = [41 x i8] c" Example: %s -n 4 -u -c -S < TEXT.FILE\0A\0A\00"
@str = [36 x i8] c" -h print this help\00"
@str.14 = [65 x i8] c" -n [INT|INT-INT] build ngrams of length N or within range N-N\00"
@str.15 = [77 x i8] c" -u uniq, discard all but one of successive identical ngrams\00"
@str.16 = [70 x i8] c" -c count, prefix ngrams by the number of occurrences\00"
@str.17 = [80 x i8] c" -s write sorted concatenation of all ngrams to standard output\00"
@str.18 = [54 x i8] c" -S reverse the result of comparisons\00"
@str.19 = [57 x i8] c" -i ignore words shorter as ngram length\00"
@str.20 = [81 x i8] c" -l lower case input before processing. May decrease performance\00"
@str.21 = [51 x i8] c" -d [STRING] use STRING as word delimiters\0A\00"
define void @print_help() {
%1 = tail call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([42 x i8], [42 x i8]* @.str, i64 0, i64 0), i8* getelementptr inbounds ([6 x i8], [6 x i8]* @.str.1, i64 0, i64 0), i8* getelementptr inbounds ([6 x i8], [6 x i8]* @.str.2, i64 0, i64 0))
%2 = tail call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([65 x i8], [65 x i8]* @.str.3, i64 0, i64 0), i8* getelementptr inbounds ([6 x i8], [6 x i8]* @.str.1, i64 0, i64 0))
%3 = tail call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([36 x i8], [36 x i8]* @str, i64 0, i64 0))
%4 = tail call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([65 x i8], [65 x i8]* @str.14, i64 0, i64 0))
%5 = tail call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([77 x i8], [77 x i8]* @str.15, i64 0, i64 0))
%6 = tail call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([70 x i8], [70 x i8]* @str.16, i64 0, i64 0))
%7 = tail call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([80 x i8], [80 x i8]* @str.17, i64 0, i64 0))
%8 = tail call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([54 x i8], [54 x i8]* @str.18, i64 0, i64 0))
%9 = tail call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([57 x i8], [57 x i8]* @str.19, i64 0, i64 0))
%10 = tail call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([81 x i8], [81 x i8]* @str.20, i64 0, i64 0))
%11 = tail call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([51 x i8], [51 x i8]* @str.21, i64 0, i64 0))
%12 = tail call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([41 x i8], [41 x i8]* @.str.13, i64 0, i64 0), i8* getelementptr inbounds ([6 x i8], [6 x i8]* @.str.1, i64 0, i64 0))
ret void
}