#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 *, char const *);
void print_help(const char *progname) {
  const char *helptext[] = {
      "-c, --contain PHRASE  print anagrams containing PHRASE",
      "-d, --dict DICTIONARY search DICTIONARY for words",
      "-l, --length WORDS    find anagrams with up to WORDS number of words",
      "-m, --minimum WORDLEN only use words at least WORDLEN long",
      "-n, --number NUM      print a maximum of NUM anagrams",
      "-w, --words           print words that PHRASE letters make",
      "-t, --test ANAG       test if ANAG can be made with PHRASE",
      "-u, --used PHRASE     flag PHRASE letters as already used",
      "-h, --help            display this help and exit",
      "-v, --version         output version information and exit",
      NULL};
  const char **h = helptext;
  printf("Usage: %s [options] PHRASE\n\n", progname);
  while (*h) {
    printf("  %s\n", *h);
    h++;
  }
}


x86 assembly (clang, -O0):
<print_help>:
push   %rbp
mov    %rsp,%rbp
sub    $0x70,%rsp
mov    %rdi,-0x8(%rbp)
lea    -0x60(%rbp),%rdi
lea    0x2c89(%rip),%rsi
mov    $0x58,%edx
call   1040 <memcpy@plt>
lea    -0x60(%rbp),%rax
mov    %rax,-0x68(%rbp)
mov    -0x8(%rbp),%rsi
lea    0x10e6(%rip),%rdi
call   1030 <printf@plt>
mov    -0x68(%rbp),%rax
cmpq   $0x0,(%rax)
je     118b <print_help+0x6b>
mov    -0x68(%rbp),%rax
mov    (%rax),%rsi
lea    0x10e2(%rip),%rdi
call   1030 <printf@plt>
mov    -0x68(%rbp),%rax
add    $0x8,%rax
mov    %rax,-0x68(%rbp)
jmp    1159 <print_help+0x39>
add    $0x70,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<print_help>:
push   %r14
push   %rbx
sub    $0x58,%rsp
mov    %rdi,%rsi
mov    0x2cef(%rip),%rax
mov    %rax,0x50(%rsp)
movaps 0x2cd3(%rip),%xmm0
movaps %xmm0,0x40(%rsp)
movaps 0x2cb7(%rip),%xmm0
movaps %xmm0,0x30(%rsp)
movaps 0x2c9b(%rip),%xmm0
movaps %xmm0,0x20(%rsp)
movaps 0x2c7f(%rip),%xmm0
movaps %xmm0,0x10(%rsp)
movaps 0x2c63(%rip),%xmm0
movaps %xmm0,(%rsp)
lea    0x10d2(%rip),%rdi
call   1030 <printf@plt>
lea    0x8(%rsp),%rbx
lea    0xe87(%rip),%rsi
lea    0x10d7(%rip),%r14
mov    %r14,%rdi
call   1030 <printf@plt>
mov    (%rbx),%rsi
add    $0x8,%rbx
test   %rsi,%rsi
jne    1180 <print_help+0x70>
add    $0x58,%rsp
pop    %rbx
pop    %r14
ret

LLVM IR (-O0):
@.str = [55 x i8] c"-c, --contain PHRASE print anagrams containing PHRASE\00"
@.str.1 = [50 x i8] c"-d, --dict DICTIONARY search DICTIONARY for words\00"
@.str.2 = [69 x i8] c"-l, --length WORDS find anagrams with up to WORDS number of words\00"
@.str.3 = [59 x i8] c"-m, --minimum WORDLEN only use words at least WORDLEN long\00"
@.str.4 = [54 x i8] c"-n, --number NUM print a maximum of NUM anagrams\00"
@.str.5 = [59 x i8] c"-w, --words print words that PHRASE letters make\00"
@.str.6 = [59 x i8] c"-t, --test ANAG test if ANAG can be made with PHRASE\00"
@.str.7 = [58 x i8] c"-u, --used PHRASE flag PHRASE letters as already used\00"
@.str.8 = [49 x i8] c"-h, --help display this help and exit\00"
@.str.9 = [58 x i8] c"-v, --version output version information and exit\00"
@__const.print_help.helptext = [11 x i8*] [i8* getelementptr inbounds ([55 x i8], [55 x i8]* @.str, i32 0, i32 0), i8* getelementptr inbounds ([50 x i8], [50 x i8]* @.str.1, i32 0, i32 0), i8* getelementptr inbounds ([69 x i8], [69 x i8]* @.str.2, i32 0, i32 0), i8* getelementptr inbounds ([59 x i8], [59 x i8]* @.str.3, i32 0, i32 0), i8* getelementptr inbounds ([54 x i8], [54 x i8]* @.str.4, i32 0, i32 0), i8* getelementptr inbounds ([59 x i8], [59 x i8]* @.str.5, i32 0, i32 0), i8* getelementptr inbounds ([59 x i8], [59 x i8]* @.str.6, i32 0, i32 0), i8* getelementptr inbounds ([58 x i8], [58 x i8]* @.str.7, i32 0, i32 0), i8* getelementptr inbounds ([49 x i8], [49 x i8]* @.str.8, i32 0, i32 0), i8* getelementptr inbounds ([58 x i8], [58 x i8]* @.str.9, i32 0, i32 0), i8* null]
@.str.10 = [29 x i8] c"Usage: %s [options] PHRASE\0A\0A\00"
@.str.11 = [6 x i8] c" %s\0A\00"
define void @print_help(i8* %0) {
%2 = alloca i8*
%3 = alloca [11 x i8*]
%4 = alloca i8**
store i8* %0, i8** %2
%5 = bitcast [11 x i8*]* %3 to i8*
%6 = getelementptr inbounds [11 x i8*], [11 x i8*]* %3, i64 0, i64 0
store i8** %6, i8*** %4
%7 = load i8*, i8** %2
%8 = call i32 @printf(i8* getelementptr inbounds ([29 x i8], [29 x i8]* @.str.10, i64 0, i64 0), i8* %7)
br label %9
9: ; preds = %13, %1
%10 = load i8**, i8*** %4
%11 = load i8*, i8** %10
%12 = icmp ne i8* %11, null
br i1 %12, label %13, label %19
13: ; preds = %9
%14 = load i8**, i8*** %4
%15 = load i8*, i8** %14
%16 = call i32 @printf(i8* getelementptr inbounds ([6 x i8], [6 x i8]* @.str.11, i64 0, i64 0), i8* %15)
%17 = load i8**, i8*** %4
%18 = getelementptr inbounds i8*, i8** %17, i32 1
store i8** %18, i8*** %4
br label %9
19: ; preds = %9
ret void
}

LLVM IR (-O2):
@.str = [55 x i8] c"-c, --contain PHRASE print anagrams containing PHRASE\00"
@.str.1 = [50 x i8] c"-d, --dict DICTIONARY search DICTIONARY for words\00"
@.str.2 = [69 x i8] c"-l, --length WORDS find anagrams with up to WORDS number of words\00"
@.str.3 = [59 x i8] c"-m, --minimum WORDLEN only use words at least WORDLEN long\00"
@.str.4 = [54 x i8] c"-n, --number NUM print a maximum of NUM anagrams\00"
@.str.5 = [59 x i8] c"-w, --words print words that PHRASE letters make\00"
@.str.6 = [59 x i8] c"-t, --test ANAG test if ANAG can be made with PHRASE\00"
@.str.7 = [58 x i8] c"-u, --used PHRASE flag PHRASE letters as already used\00"
@.str.8 = [49 x i8] c"-h, --help display this help and exit\00"
@.str.9 = [58 x i8] c"-v, --version output version information and exit\00"
@__const.print_help.helptext = [11 x i8*] [i8* getelementptr inbounds ([55 x i8], [55 x i8]* @.str, i32 0, i32 0), i8* getelementptr inbounds ([50 x i8], [50 x i8]* @.str.1, i32 0, i32 0), i8* getelementptr inbounds ([69 x i8], [69 x i8]* @.str.2, i32 0, i32 0), i8* getelementptr inbounds ([59 x i8], [59 x i8]* @.str.3, i32 0, i32 0), i8* getelementptr inbounds ([54 x i8], [54 x i8]* @.str.4, i32 0, i32 0), i8* getelementptr inbounds ([59 x i8], [59 x i8]* @.str.5, i32 0, i32 0), i8* getelementptr inbounds ([59 x i8], [59 x i8]* @.str.6, i32 0, i32 0), i8* getelementptr inbounds ([58 x i8], [58 x i8]* @.str.7, i32 0, i32 0), i8* getelementptr inbounds ([49 x i8], [49 x i8]* @.str.8, i32 0, i32 0), i8* getelementptr inbounds ([58 x i8], [58 x i8]* @.str.9, i32 0, i32 0), i8* null]
@.str.10 = [29 x i8] c"Usage: %s [options] PHRASE\0A\0A\00"
@.str.11 = [6 x i8] c" %s\0A\00"
define void @print_help(i8* %0) {
%2 = alloca [11 x i8*]
%3 = bitcast [11 x i8*]* %2 to i8*
%4 = tail call i32 @printf(i8* getelementptr inbounds ([29 x i8], [29 x i8]* @.str.10, i64 0, i64 0), i8* %0)
%5 = getelementptr inbounds [11 x i8*], [11 x i8*]* %2, i64 0, i64 0
br label %6
6: ; preds = %1, %6
%7 = phi i8* [ %11, %6 ], [ getelementptr inbounds ([55 x i8], [55 x i8]* @.str, i64 0, i64 0), %1 ]
%8 = phi i8** [ %10, %6 ], [ %5, %1 ]
%9 = tail call i32 @printf(i8* getelementptr inbounds ([6 x i8], [6 x i8]* @.str.11, i64 0, i64 0), i8* %7)
%10 = getelementptr inbounds i8*, i8** %8, i64 1
%11 = load i8*, i8** %10
%12 = icmp eq i8* %11, null
br i1 %12, label %13, label %6
13: ; preds = %6
ret void
}