#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*/ exit(int /*<<< orphan*/);
int /*<<< orphan*/ puts(char *);
void do_help(int man) {
  if (man)
    goto man;
  puts("xword-ent [-?h] [-fghnstv] [-o outfile] filename");
  puts("Lists words in a crossword template.");
  puts("  -H: show (only) horizontal clues");
  puts("  -V: show (only) vertical clues");
  puts("  -T: show H and V clues together, instead of in two lists");
  puts("  -S: show solution (letters only)");
  puts("  -G: show grid (hashes and ticks only)");
  puts("  -N:   ...with clue-number placeholders");
  puts("  -F: show frequency charts and statistics");
  puts("  -o filename: send output to specified file");
  puts("  --help: show this message");
  puts("  --man: show complete help text");
  exit(0);
man:
  puts("xword-ent: Crossword cluing tool.\n");
  puts(" This is what this program does, in present tense, using");
  puts("   a new paragraph to describe each option or parameter.");
  exit(0);
}


x86 assembly (clang, -O0):
<do_help>:
push   %rbp
mov    %rsp,%rbp
sub    $0x10,%rsp
mov    %edi,-0x4(%rbp)
cmpl   $0x0,-0x4(%rbp)
je     113a <do_help+0x1a>
jmp    11d1 <do_help+0xb1>
lea    0xebf(%rip),%rdi
call   1030 <puts@plt>
lea    0xee4(%rip),%rdi
call   1030 <puts@plt>
lea    0xefd(%rip),%rdi
call   1030 <puts@plt>
lea    0xf14(%rip),%rdi
call   1030 <puts@plt>
lea    0xf29(%rip),%rdi
call   1030 <puts@plt>
lea    0xf58(%rip),%rdi
call   1030 <puts@plt>
lea    0xf6f(%rip),%rdi
call   1030 <puts@plt>
lea    0xf8b(%rip),%rdi
call   1030 <puts@plt>
lea    0xfa8(%rip),%rdi
call   1030 <puts@plt>
lea    0xfc7(%rip),%rdi
call   1030 <puts@plt>
lea    0xfe8(%rip),%rdi
call   1030 <puts@plt>
lea    0xff8(%rip),%rdi
call   1030 <puts@plt>
xor    %edi,%edi
call   1040 <exit@plt>
lea    0x1006(%rip),%rdi
call   1030 <puts@plt>
lea    0x101d(%rip),%rdi
call   1030 <puts@plt>
lea    0x104a(%rip),%rdi
call   1030 <puts@plt>
xor    %edi,%edi
call   1040 <exit@plt>

x86 assembly (clang, -O2):
<do_help>:
push   %rax
test   %edi,%edi
jne    11b6 <do_help+0x96>
lea    0xed0(%rip),%rdi
call   1030 <puts@plt>
lea    0xef5(%rip),%rdi
call   1030 <puts@plt>
lea    0xf0e(%rip),%rdi
call   1030 <puts@plt>
lea    0xf25(%rip),%rdi
call   1030 <puts@plt>
lea    0xf3a(%rip),%rdi
call   1030 <puts@plt>
lea    0xf69(%rip),%rdi
call   1030 <puts@plt>
lea    0xf80(%rip),%rdi
call   1030 <puts@plt>
lea    0xf9c(%rip),%rdi
call   1030 <puts@plt>
lea    0xfb9(%rip),%rdi
call   1030 <puts@plt>
lea    0xfd8(%rip),%rdi
call   1030 <puts@plt>
lea    0xff9(%rip),%rdi
call   1030 <puts@plt>
lea    0x1009(%rip),%rdi
jmp    11d5 <do_help+0xb5>
lea    0x1021(%rip),%rdi
call   1030 <puts@plt>
lea    0x1038(%rip),%rdi
call   1030 <puts@plt>
lea    0x1065(%rip),%rdi
call   1030 <puts@plt>
xor    %edi,%edi
call   1040 <exit@plt>

LLVM IR (-O0):
@.str = [49 x i8] c"xword-ent [-?h] [-fghnstv] [-o outfile] filename\00"
@.str.1 = [37 x i8] c"Lists words in a crossword template.\00"
@.str.2 = [35 x i8] c" -H: show (only) horizontal clues\00"
@.str.3 = [33 x i8] c" -V: show (only) vertical clues\00"
@.str.4 = [59 x i8] c" -T: show H and V clues together, instead of in two lists\00"
@.str.5 = [35 x i8] c" -S: show solution (letters only)\00"
@.str.6 = [40 x i8] c" -G: show grid (hashes and ticks only)\00"
@.str.7 = [41 x i8] c" -N: ...with clue-number placeholders\00"
@.str.8 = [43 x i8] c" -F: show frequency charts and statistics\00"
@.str.9 = [45 x i8] c" -o filename: send output to specified file\00"
@.str.10 = [28 x i8] c" --help: show this message\00"
@.str.11 = [33 x i8] c" --man: show complete help text\00"
@.str.12 = [35 x i8] c"xword-ent: Crossword cluing tool.\0A\00"
@.str.13 = [57 x i8] c" This is what this program does, in present tense, using\00"
@.str.14 = [57 x i8] c" a new paragraph to describe each option or parameter.\00"
define void @do_help(i32 %0) {
%2 = alloca i32
store i32 %0, i32* %2
%3 = load i32, i32* %2
%4 = icmp ne i32 %3, 0
br i1 %4, label %5, label %6
5: ; preds = %1
br label %20
6: ; preds = %1
%7 = call i32 @puts(i8* getelementptr inbounds ([49 x i8], [49 x i8]* @.str, i64 0, i64 0))
%8 = call i32 @puts(i8* getelementptr inbounds ([37 x i8], [37 x i8]* @.str.1, i64 0, i64 0))
%9 = call i32 @puts(i8* getelementptr inbounds ([35 x i8], [35 x i8]* @.str.2, i64 0, i64 0))
%10 = call i32 @puts(i8* getelementptr inbounds ([33 x i8], [33 x i8]* @.str.3, i64 0, i64 0))
%11 = call i32 @puts(i8* getelementptr inbounds ([59 x i8], [59 x i8]* @.str.4, i64 0, i64 0))
%12 = call i32 @puts(i8* getelementptr inbounds ([35 x i8], [35 x i8]* @.str.5, i64 0, i64 0))
%13 = call i32 @puts(i8* getelementptr inbounds ([40 x i8], [40 x i8]* @.str.6, i64 0, i64 0))
%14 = call i32 @puts(i8* getelementptr inbounds ([41 x i8], [41 x i8]* @.str.7, i64 0, i64 0))
%15 = call i32 @puts(i8* getelementptr inbounds ([43 x i8], [43 x i8]* @.str.8, i64 0, i64 0))
%16 = call i32 @puts(i8* getelementptr inbounds ([45 x i8], [45 x i8]* @.str.9, i64 0, i64 0))
%17 = call i32 @puts(i8* getelementptr inbounds ([28 x i8], [28 x i8]* @.str.10, i64 0, i64 0))
%18 = call i32 @puts(i8* getelementptr inbounds ([33 x i8], [33 x i8]* @.str.11, i64 0, i64 0))
%19 = call i32 @exit(i32 0)
unreachable
20: ; preds = %5
%21 = call i32 @puts(i8* getelementptr inbounds ([35 x i8], [35 x i8]* @.str.12, i64 0, i64 0))
%22 = call i32 @puts(i8* getelementptr inbounds ([57 x i8], [57 x i8]* @.str.13, i64 0, i64 0))
%23 = call i32 @puts(i8* getelementptr inbounds ([57 x i8], [57 x i8]* @.str.14, i64 0, i64 0))
%24 = call i32 @exit(i32 0)
unreachable
}

LLVM IR (-O2):
@.str = [49 x i8] c"xword-ent [-?h] [-fghnstv] [-o outfile] filename\00"
@.str.1 = [37 x i8] c"Lists words in a crossword template.\00"
@.str.2 = [35 x i8] c" -H: show (only) horizontal clues\00"
@.str.3 = [33 x i8] c" -V: show (only) vertical clues\00"
@.str.4 = [59 x i8] c" -T: show H and V clues together, instead of in two lists\00"
@.str.5 = [35 x i8] c" -S: show solution (letters only)\00"
@.str.6 = [40 x i8] c" -G: show grid (hashes and ticks only)\00"
@.str.7 = [41 x i8] c" -N: ...with clue-number placeholders\00"
@.str.8 = [43 x i8] c" -F: show frequency charts and statistics\00"
@.str.9 = [45 x i8] c" -o filename: send output to specified file\00"
@.str.10 = [28 x i8] c" --help: show this message\00"
@.str.11 = [33 x i8] c" --man: show complete help text\00"
@.str.12 = [35 x i8] c"xword-ent: Crossword cluing tool.\0A\00"
@.str.13 = [57 x i8] c" This is what this program does, in present tense, using\00"
@.str.14 = [57 x i8] c" a new paragraph to describe each option or parameter.\00"
define void @do_help(i32 %0) {
%2 = icmp eq i32 %0, 0
br i1 %2, label %3, label %17
3: ; preds = %1
%4 = tail call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([49 x i8], [49 x i8]* @.str, i64 0, i64 0))
%5 = tail call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([37 x i8], [37 x i8]* @.str.1, i64 0, i64 0))
%6 = tail call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([35 x i8], [35 x i8]* @.str.2, i64 0, i64 0))
%7 = tail call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([33 x i8], [33 x i8]* @.str.3, i64 0, i64 0))
%8 = tail call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([59 x i8], [59 x i8]* @.str.4, i64 0, i64 0))
%9 = tail call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([35 x i8], [35 x i8]* @.str.5, i64 0, i64 0))
%10 = tail call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([40 x i8], [40 x i8]* @.str.6, i64 0, i64 0))
%11 = tail call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([41 x i8], [41 x i8]* @.str.7, i64 0, i64 0))
%12 = tail call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([43 x i8], [43 x i8]* @.str.8, i64 0, i64 0))
%13 = tail call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([45 x i8], [45 x i8]* @.str.9, i64 0, i64 0))
%14 = tail call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([28 x i8], [28 x i8]* @.str.10, i64 0, i64 0))
%15 = tail call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([33 x i8], [33 x i8]* @.str.11, i64 0, i64 0))
%16 = tail call i32 @exit(i32 0)
unreachable
17: ; preds = %1
%18 = tail call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([35 x i8], [35 x i8]* @.str.12, i64 0, i64 0))
%19 = tail call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([57 x i8], [57 x i8]* @.str.13, i64 0, i64 0))
%20 = tail call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([57 x i8], [57 x i8]* @.str.14, i64 0, i64 0))
%21 = tail call i32 @exit(i32 0)
unreachable
}