#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("\napgbfm   APG Bloom filter management\n");
  printf("         Copyright (c) 2001 Adel I. Mirzazhanov\n");
  printf(
      "\napgbfm   -f filter < [-a word] | [-A dictfile] | [-n numofwords] |\n");
  printf("                     [-c word] | [-C dictfile] | [-d dictfile] > "
         "[-s]\n");
  printf("apgbfm   -i filter\n");
  printf("apgbfm   [-v] [-h]\n\n");
  printf("-a word        add word to filter\n");
  printf("-A dictfile    add words from dictfile to filter\n");
  printf("-c word        check word against filter\n");
  printf("-C dictfile    check dictfile against filter\n");
  printf("-n numofwords  create new empty filter\n");
  printf("-d dictfile    create new filter and add all words from dictfile\n");
  printf("-f filtername  use filtername as the name for filter\n");
  printf("-q             quiet mode (do not print dots for -A and -d)\n");
  printf("-s             create case insentive filter\n");
  printf("-i filter      print filter information\n");
  printf("-v             print version information\n");
  printf("-h             print  help (this screen)\n");
}


x86 assembly (clang, -O0):
<print_help>:
push   %rbp
mov    %rsp,%rbp
lea    0xee5(%rip),%rdi
call   1030 <printf@plt>
lea    0xf00(%rip),%rdi
call   1030 <printf@plt>
lea    0xf25(%rip),%rdi
call   1030 <printf@plt>
lea    0xf5e(%rip),%rdi
call   1030 <printf@plt>
lea    0xf99(%rip),%rdi
call   1030 <printf@plt>
lea    0xfa1(%rip),%rdi
call   1030 <printf@plt>
lea    0xfaa(%rip),%rdi
call   1030 <printf@plt>
lea    0xfc1(%rip),%rdi
call   1030 <printf@plt>
lea    0xfe7(%rip),%rdi
call   1030 <printf@plt>
lea    0x1005(%rip),%rdi
call   1030 <printf@plt>
lea    0x1027(%rip),%rdi
call   1030 <printf@plt>
lea    0x1043(%rip),%rdi
call   1030 <printf@plt>
lea    0x1079(%rip),%rdi
call   1030 <printf@plt>
lea    0x10a3(%rip),%rdi
call   1030 <printf@plt>
lea    0x10d4(%rip),%rdi
call   1030 <printf@plt>
lea    0x10f5(%rip),%rdi
call   1030 <printf@plt>
lea    0x1112(%rip),%rdi
call   1030 <printf@plt>
lea    0x1130(%rip),%rdi
call   1030 <printf@plt>
pop    %rbp
ret

x86 assembly (clang, -O2):
<print_help>:
push   %rax
lea    0xee8(%rip),%rdi
call   1030 <puts@plt>
lea    0xf02(%rip),%rdi
call   1030 <puts@plt>
lea    0xf26(%rip),%rdi
call   1030 <puts@plt>
lea    0xf5e(%rip),%rdi
call   1030 <puts@plt>
lea    0xf98(%rip),%rdi
call   1030 <puts@plt>
lea    0xf9f(%rip),%rdi
call   1030 <puts@plt>
lea    0xfa7(%rip),%rdi
call   1030 <puts@plt>
lea    0xfbd(%rip),%rdi
call   1030 <puts@plt>
lea    0xfe2(%rip),%rdi
call   1030 <puts@plt>
lea    0xfff(%rip),%rdi
call   1030 <puts@plt>
lea    0x1020(%rip),%rdi
call   1030 <puts@plt>
lea    0x103b(%rip),%rdi
call   1030 <puts@plt>
lea    0x1070(%rip),%rdi
call   1030 <puts@plt>
lea    0x1099(%rip),%rdi
call   1030 <puts@plt>
lea    0x10c9(%rip),%rdi
call   1030 <puts@plt>
lea    0x10e9(%rip),%rdi
call   1030 <puts@plt>
lea    0x1105(%rip),%rdi
call   1030 <puts@plt>
lea    0x1122(%rip),%rdi
pop    %rax
jmp    1030 <puts@plt>

LLVM IR (-O0):
@.str = [39 x i8] c"\0Aapgbfm APG Bloom filter management\0A\00"
@.str.1 = [49 x i8] c" Copyright (c) 2001 Adel I. Mirzazhanov\0A\00"
@.str.2 = [69 x i8] c"\0Aapgbfm -f filter < [-a word] | [-A dictfile] | [-n numofwords] |\0A\00"
@.str.3 = [71 x i8] c" [-c word] | [-C dictfile] | [-d dictfile] > [-s]\0A\00"
@.str.4 = [20 x i8] c"apgbfm -i filter\0A\00"
@.str.5 = [21 x i8] c"apgbfm [-v] [-h]\0A\0A\00"
@.str.6 = [35 x i8] c"-a word add word to filter\0A\00"
@.str.7 = [50 x i8] c"-A dictfile add words from dictfile to filter\0A\00"
@.str.8 = [42 x i8] c"-c word check word against filter\0A\00"
@.str.9 = [46 x i8] c"-C dictfile check dictfile against filter\0A\00"
@.str.10 = [40 x i8] c"-n numofwords create new empty filter\0A\00"
@.str.11 = [66 x i8] c"-d dictfile create new filter and add all words from dictfile\0A\00"
@.str.12 = [54 x i8] c"-f filtername use filtername as the name for filter\0A\00"
@.str.13 = [61 x i8] c"-q quiet mode (do not print dots for -A and -d)\0A\00"
@.str.14 = [45 x i8] c"-s create case insentive filter\0A\00"
@.str.15 = [41 x i8] c"-i filter print filter information\0A\00"
@.str.16 = [42 x i8] c"-v print version information\0A\00"
@.str.17 = [42 x i8] c"-h print help (this screen)\0A\00"
define void @print_help() {
%1 = call i32 @printf(i8* getelementptr inbounds ([39 x i8], [39 x i8]* @.str, i64 0, i64 0))
%2 = call i32 @printf(i8* getelementptr inbounds ([49 x i8], [49 x i8]* @.str.1, i64 0, i64 0))
%3 = call i32 @printf(i8* getelementptr inbounds ([69 x i8], [69 x i8]* @.str.2, i64 0, i64 0))
%4 = call i32 @printf(i8* getelementptr inbounds ([71 x i8], [71 x i8]* @.str.3, i64 0, i64 0))
%5 = call i32 @printf(i8* getelementptr inbounds ([20 x i8], [20 x i8]* @.str.4, i64 0, i64 0))
%6 = call i32 @printf(i8* getelementptr inbounds ([21 x i8], [21 x i8]* @.str.5, i64 0, i64 0))
%7 = call i32 @printf(i8* getelementptr inbounds ([35 x i8], [35 x i8]* @.str.6, i64 0, i64 0))
%8 = call i32 @printf(i8* getelementptr inbounds ([50 x i8], [50 x i8]* @.str.7, i64 0, i64 0))
%9 = call i32 @printf(i8* getelementptr inbounds ([42 x i8], [42 x i8]* @.str.8, i64 0, i64 0))
%10 = call i32 @printf(i8* getelementptr inbounds ([46 x i8], [46 x i8]* @.str.9, i64 0, i64 0))
%11 = call i32 @printf(i8* getelementptr inbounds ([40 x i8], [40 x i8]* @.str.10, i64 0, i64 0))
%12 = call i32 @printf(i8* getelementptr inbounds ([66 x i8], [66 x i8]* @.str.11, i64 0, i64 0))
%13 = call i32 @printf(i8* getelementptr inbounds ([54 x i8], [54 x i8]* @.str.12, i64 0, i64 0))
%14 = call i32 @printf(i8* getelementptr inbounds ([61 x i8], [61 x i8]* @.str.13, i64 0, i64 0))
%15 = call i32 @printf(i8* getelementptr inbounds ([45 x i8], [45 x i8]* @.str.14, i64 0, i64 0))
%16 = call i32 @printf(i8* getelementptr inbounds ([41 x i8], [41 x i8]* @.str.15, i64 0, i64 0))
%17 = call i32 @printf(i8* getelementptr inbounds ([42 x i8], [42 x i8]* @.str.16, i64 0, i64 0))
%18 = call i32 @printf(i8* getelementptr inbounds ([42 x i8], [42 x i8]* @.str.17, i64 0, i64 0))
ret void
}

LLVM IR (-O2):
@str = [38 x i8] c"\0Aapgbfm APG Bloom filter management\00"
@str.18 = [48 x i8] c" Copyright (c) 2001 Adel I. Mirzazhanov\00"
@str.19 = [68 x i8] c"\0Aapgbfm -f filter < [-a word] | [-A dictfile] | [-n numofwords] |\00"
@str.20 = [70 x i8] c" [-c word] | [-C dictfile] | [-d dictfile] > [-s]\00"
@str.21 = [19 x i8] c"apgbfm -i filter\00"
@str.22 = [20 x i8] c"apgbfm [-v] [-h]\0A\00"
@str.23 = [34 x i8] c"-a word add word to filter\00"
@str.24 = [49 x i8] c"-A dictfile add words from dictfile to filter\00"
@str.25 = [41 x i8] c"-c word check word against filter\00"
@str.26 = [45 x i8] c"-C dictfile check dictfile against filter\00"
@str.27 = [39 x i8] c"-n numofwords create new empty filter\00"
@str.28 = [65 x i8] c"-d dictfile create new filter and add all words from dictfile\00"
@str.29 = [53 x i8] c"-f filtername use filtername as the name for filter\00"
@str.30 = [60 x i8] c"-q quiet mode (do not print dots for -A and -d)\00"
@str.31 = [44 x i8] c"-s create case insentive filter\00"
@str.32 = [40 x i8] c"-i filter print filter information\00"
@str.33 = [41 x i8] c"-v print version information\00"
@str.34 = [41 x i8] c"-h print help (this screen)\00"
define void @print_help() {
%1 = tail call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([38 x i8], [38 x i8]* @str, i64 0, i64 0))
%2 = tail call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([48 x i8], [48 x i8]* @str.18, i64 0, i64 0))
%3 = tail call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([68 x i8], [68 x i8]* @str.19, i64 0, i64 0))
%4 = tail call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([70 x i8], [70 x i8]* @str.20, i64 0, i64 0))
%5 = tail call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([19 x i8], [19 x i8]* @str.21, i64 0, i64 0))
%6 = tail call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([20 x i8], [20 x i8]* @str.22, i64 0, i64 0))
%7 = tail call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([34 x i8], [34 x i8]* @str.23, i64 0, i64 0))
%8 = tail call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([49 x i8], [49 x i8]* @str.24, i64 0, i64 0))
%9 = tail call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([41 x i8], [41 x i8]* @str.25, i64 0, i64 0))
%10 = tail call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([45 x i8], [45 x i8]* @str.26, i64 0, i64 0))
%11 = tail call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([39 x i8], [39 x i8]* @str.27, i64 0, i64 0))
%12 = tail call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([65 x i8], [65 x i8]* @str.28, i64 0, i64 0))
%13 = tail call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([53 x i8], [53 x i8]* @str.29, i64 0, i64 0))
%14 = tail call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([60 x i8], [60 x i8]* @str.30, i64 0, i64 0))
%15 = tail call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([44 x i8], [44 x i8]* @str.31, i64 0, i64 0))
%16 = tail call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([40 x i8], [40 x i8]* @str.32, i64 0, i64 0))
%17 = tail call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([41 x i8], [41 x i8]* @str.33, i64 0, i64 0))
%18 = tail call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([41 x i8], [41 x i8]* @str.34, i64 0, i64 0))
ret void
}