#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 *, char *, char *);
int /*<<< orphan*/ puts(char *);
void PrintHelp(int everything) {
  puts(" SGFC V1.18  - Smart Game Format Syntax Checker & Converter\n"
       "               Copyright (C) 1996-2018 by Arno Hollosi\n"
       "               Email: <ahollosi@xmp.net>\n"
       " ----------------------------------------------------------");
  if (everything)
    printf("%s%s%s\n",
           " sgfc [options] infile [outfile]\n"
           " Options:\n"
           "    -h  ... print this help message\n"
           "    -bx ... x = 1,2,3: beginning of SGF data is detected by\n"
           "              1 - sophisticated search algorithm (default)\n"
           "              2 - first occurence of '(;'\n"
           "              3 - first occurence of '('\n"
           "    -c  ... write file even if a critical error occurs\n"
           "    -dn ... n = number : disable message number -n-\n"
           "    -e  ... expand compressed point lists\n"
           "    -g  ... print game signature (Go GM[1] games only)\n",
           "    -i  ... interactive mode (faulty game-info values only)\n"
           "    -k  ... keep header in front of SGF data\n"
           "    -lx ... x = 1,2,3,4: a hard linebreak is\n"
           "              1 - any linebreak encountered (default)\n"
           "              2 - any linebreak not preceeded by a space (MGT)\n"
           "              3 - two linebreaks in a row\n"
           "              4 - paragraph style (ISHI format, MFGO)\n"
           "    -L  ... try to keep linebreaks at the end of nodes\n"
           "    -m  ... delete markup on current move\n",
           "    -n  ... delete empty nodes\n"
           "    -o  ... delete obsolete properties\n"
           "    -p  ... write pass moves as '[tt]' if possible\n"
           "    -r  ... restrictive checking\n"
           "    -s  ... split game collection into single files\n"
           "    -t  ... do not insert any soft linebreaks into text values\n"
           "    -u  ... delete unknown properties\n"
           "    -v  ... correct variation level and root moves\n"
           "    -w  ... disable warning messages\n"
           "    -yP ... delete property P (P = property id)\n"
           "    -z  ... reverse ordering of variations");
  else
    puts(" 'sgfc -h' for help on options");
}


x86 assembly (clang, -O0):
<PrintHelp>:
push   %rbp
mov    %rsp,%rbp
sub    $0x10,%rsp
mov    %edi,-0x4(%rbp)
lea    0xece(%rip),%rdi
call   1030 <puts@plt>
cmpl   $0x0,-0x4(%rbp)
je     1167 <PrintHelp+0x47>
lea    0xf90(%rip),%rdi
lea    0xf91(%rip),%rsi
lea    0x1170(%rip),%rdx
lea    0x1336(%rip),%rcx
call   1040 <printf@plt>
jmp    1173 <PrintHelp+0x53>
lea    0x150b(%rip),%rdi
call   1030 <puts@plt>
add    $0x10,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<PrintHelp>:
push   %rbx
mov    %edi,%ebx
lea    0xed6(%rip),%rdi
call   1030 <puts@plt>
test   %ebx,%ebx
je     1155 <PrintHelp+0x35>
lea    0xf9e(%rip),%rdi
lea    0xf9f(%rip),%rsi
lea    0x117e(%rip),%rdx
lea    0x1344(%rip),%rcx
pop    %rbx
jmp    1040 <printf@plt>
lea    0x151d(%rip),%rdi
pop    %rbx
jmp    1030 <puts@plt>

LLVM IR (-O0):
@.str = [216 x i8] c" SGFC V1.18 - Smart Game Format Syntax Checker & Converter\0A Copyright (C) 1996-2018 by Arno Hollosi\0A Email: <ahollosi@xmp.net>\0A ----------------------------------------------------------\00"
@.str.1 = [8 x i8] c"%s%s%s\0A\00"
@.str.2 = [486 x i8] c" sgfc [options] infile [outfile]\0A Options:\0A -h ... print this help message\0A -bx ... x = 1,2,3: beginning of SGF data is detected by\0A 1 - sophisticated search algorithm (default)\0A 2 - first occurence of '(;'\0A 3 - first occurence of '('\0A -c ... write file even if a critical error occurs\0A -dn ... n = number : disable message number -n-\0A -e ... expand compressed point lists\0A -g ... print game signature (Go GM[1] games only)\0A\00"
@.str.3 = [461 x i8] c" -i ... interactive mode (faulty game-info values only)\0A -k ... keep header in front of SGF data\0A -lx ... x = 1,2,3,4: a hard linebreak is\0A 1 - any linebreak encountered (default)\0A 2 - any linebreak not preceeded by a space (MGT)\0A 3 - two linebreaks in a row\0A 4 - paragraph style (ISHI format, MFGO)\0A -L ... try to keep linebreaks at the end of nodes\0A -m ... delete markup on current move\0A\00"
@.str.4 = [486 x i8] c" -n ... delete empty nodes\0A -o ... delete obsolete properties\0A -p ... write pass moves as '[tt]' if possible\0A -r ... restrictive checking\0A -s ... split game collection into single files\0A -t ... do not insert any soft linebreaks into text values\0A -u ... delete unknown properties\0A -v ... correct variation level and root moves\0A -w ... disable warning messages\0A -yP ... delete property P (P = property id)\0A -z ... reverse ordering of variations\00"
@.str.5 = [31 x i8] c" 'sgfc -h' for help on options\00"
define void @PrintHelp(i32 %0) {
%2 = alloca i32
store i32 %0, i32* %2
%3 = call i32 @puts(i8* getelementptr inbounds ([216 x i8], [216 x i8]* @.str, i64 0, i64 0))
%4 = load i32, i32* %2
%5 = icmp ne i32 %4, 0
br i1 %5, label %6, label %8
6: ; preds = %1
%7 = call i32 @printf(i8* getelementptr inbounds ([8 x i8], [8 x i8]* @.str.1, i64 0, i64 0), i8* getelementptr inbounds ([486 x i8], [486 x i8]* @.str.2, i64 0, i64 0), i8* getelementptr inbounds ([461 x i8], [461 x i8]* @.str.3, i64 0, i64 0), i8* getelementptr inbounds ([486 x i8], [486 x i8]* @.str.4, i64 0, i64 0))
br label %10
8: ; preds = %1
%9 = call i32 @puts(i8* getelementptr inbounds ([31 x i8], [31 x i8]* @.str.5, i64 0, i64 0))
br label %10
10: ; preds = %8, %6
ret void
}

LLVM IR (-O2):
@.str = [216 x i8] c" SGFC V1.18 - Smart Game Format Syntax Checker & Converter\0A Copyright (C) 1996-2018 by Arno Hollosi\0A Email: <ahollosi@xmp.net>\0A ----------------------------------------------------------\00"
@.str.1 = [8 x i8] c"%s%s%s\0A\00"
@.str.2 = [486 x i8] c" sgfc [options] infile [outfile]\0A Options:\0A -h ... print this help message\0A -bx ... x = 1,2,3: beginning of SGF data is detected by\0A 1 - sophisticated search algorithm (default)\0A 2 - first occurence of '(;'\0A 3 - first occurence of '('\0A -c ... write file even if a critical error occurs\0A -dn ... n = number : disable message number -n-\0A -e ... expand compressed point lists\0A -g ... print game signature (Go GM[1] games only)\0A\00"
@.str.3 = [461 x i8] c" -i ... interactive mode (faulty game-info values only)\0A -k ... keep header in front of SGF data\0A -lx ... x = 1,2,3,4: a hard linebreak is\0A 1 - any linebreak encountered (default)\0A 2 - any linebreak not preceeded by a space (MGT)\0A 3 - two linebreaks in a row\0A 4 - paragraph style (ISHI format, MFGO)\0A -L ... try to keep linebreaks at the end of nodes\0A -m ... delete markup on current move\0A\00"
@.str.4 = [486 x i8] c" -n ... delete empty nodes\0A -o ... delete obsolete properties\0A -p ... write pass moves as '[tt]' if possible\0A -r ... restrictive checking\0A -s ... split game collection into single files\0A -t ... do not insert any soft linebreaks into text values\0A -u ... delete unknown properties\0A -v ... correct variation level and root moves\0A -w ... disable warning messages\0A -yP ... delete property P (P = property id)\0A -z ... reverse ordering of variations\00"
@.str.5 = [31 x i8] c" 'sgfc -h' for help on options\00"
define void @PrintHelp(i32 %0) {
%2 = tail call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([216 x i8], [216 x i8]* @.str, i64 0, i64 0))
%3 = icmp eq i32 %0, 0
br i1 %3, label %6, label %4
4: ; preds = %1
%5 = tail call i32 @printf(i8* getelementptr inbounds ([8 x i8], [8 x i8]* @.str.1, i64 0, i64 0), i8* getelementptr inbounds ([486 x i8], [486 x i8]* @.str.2, i64 0, i64 0), i8* getelementptr inbounds ([461 x i8], [461 x i8]* @.str.3, i64 0, i64 0), i8* getelementptr inbounds ([486 x i8], [486 x i8]* @.str.4, i64 0, i64 0))
br label %8
6: ; preds = %1
%7 = tail call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([31 x i8], [31 x i8]* @.str.5, i64 0, i64 0))
br label %8
8: ; preds = %6, %4
ret void
}