#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 *);
int /*<<< orphan*/ putchar(char);
int /*<<< orphan*/ puts(char *);
void show_help(char const *appName) {
  printf("Usage:\n\n\t%s [-?|--help] [-m] [-f input_filename] [-o "
         "output_filename] [-#]\n",
         appName);
  puts("\n\t(Note the spaces between the flags and their values!)");
  puts("\nThis tool reads JSON input using the cson API, then outputs the "
       "resulting DOM "
       "as JSON using the cson API. It is primarily intended for testing "
       "libcson.");
  puts("\nThe -m option enables the output of certain metrics collected during "
       "parsing.");
  puts("\nThe -# option means to specify a number, e.g. -1 or -4. The number 0 "
       "means "
       "to add no extra indentation (maybe a whitespace here and there). A "
       "value of 1 "
       "means to use 1 TAB for each level of indentation. A higher value means "
       "to use "
       "that many spaces for each level of indentation.");
  puts("\nThe default input source is stdin (same as -f -) and the default "
       "output "
       "destination is stdout (same as -o -)");
  puts("\nNote that all output which is not JSON (e.g. error messages or -m "
       "metrics) "
       "is sent to stderr.");
  puts("\ncson home page: htpp://fossil.wanderinghorse.net/repos/cson/");
  putchar('\n');
}


x86 assembly (clang, -O0):
<show_help>:
push   %rbp
mov    %rsp,%rbp
sub    $0x10,%rsp
mov    %rdi,-0x8(%rbp)
mov    -0x8(%rbp),%rsi
lea    0xeb9(%rip),%rdi
call   1050 <printf@plt>
lea    0xef9(%rip),%rdi
call   1040 <puts@plt>
lea    0xf25(%rip),%rdi
call   1040 <puts@plt>
lea    0xfb2(%rip),%rdi
call   1040 <puts@plt>
lea    0xff5(%rip),%rdi
call   1040 <puts@plt>
lea    0x1101(%rip),%rdi
call   1040 <puts@plt>
lea    0x1163(%rip),%rdi
call   1040 <puts@plt>
lea    0x11b6(%rip),%rdi
call   1040 <puts@plt>
mov    $0xa,%edi
call   1030 <putchar@plt>
add    $0x10,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<show_help>:
push   %rax
mov    %rdi,%rsi
lea    0xec5(%rip),%rdi
call   1050 <printf@plt>
lea    0xf05(%rip),%rdi
call   1040 <puts@plt>
lea    0xf31(%rip),%rdi
call   1040 <puts@plt>
lea    0xfbe(%rip),%rdi
call   1040 <puts@plt>
lea    0x1001(%rip),%rdi
call   1040 <puts@plt>
lea    0x110d(%rip),%rdi
call   1040 <puts@plt>
lea    0x116f(%rip),%rdi
call   1040 <puts@plt>
lea    0x11c2(%rip),%rdi
call   1040 <puts@plt>
mov    $0xa,%edi
pop    %rax
jmp    1030 <putchar@plt>

LLVM IR (-O0):
@.str = [76 x i8] c"Usage:\0A\0A\09%s [-?|--help] [-m] [-f input_filename] [-o output_filename] [-#]\0A\00"
@.str.1 = [56 x i8] c"\0A\09(Note the spaces between the flags and their values!)\00"
@.str.2 = [153 x i8] c"\0AThis tool reads JSON input using the cson API, then outputs the resulting DOM as JSON using the cson API. It is primarily intended for testing libcson.\00"
@.str.3 = [79 x i8] c"\0AThe -m option enables the output of certain metrics collected during parsing.\00"
@.str.4 = [280 x i8] c"\0AThe -# option means to specify a number, e.g. -1 or -4. The number 0 means to add no extra indentation (maybe a whitespace here and there). A value of 1 means to use 1 TAB for each level of indentation. A higher value means to use that many spaces for each level of indentation.\00"
@.str.5 = [110 x i8] c"\0AThe default input source is stdin (same as -f -) and the default output destination is stdout (same as -o -)\00"
@.str.6 = [95 x i8] c"\0ANote that all output which is not JSON (e.g. error messages or -m metrics) is sent to stderr.\00"
@.str.7 = [62 x i8] c"\0Acson home page: htpp://fossil.wanderinghorse.net/repos/cson/\00"
define void @show_help(i8* %0) {
%2 = alloca i8*
store i8* %0, i8** %2
%3 = load i8*, i8** %2
%4 = call i32 @printf(i8* getelementptr inbounds ([76 x i8], [76 x i8]* @.str, i64 0, i64 0), i8* %3)
%5 = call i32 @puts(i8* getelementptr inbounds ([56 x i8], [56 x i8]* @.str.1, i64 0, i64 0))
%6 = call i32 @puts(i8* getelementptr inbounds ([153 x i8], [153 x i8]* @.str.2, i64 0, i64 0))
%7 = call i32 @puts(i8* getelementptr inbounds ([79 x i8], [79 x i8]* @.str.3, i64 0, i64 0))
%8 = call i32 @puts(i8* getelementptr inbounds ([280 x i8], [280 x i8]* @.str.4, i64 0, i64 0))
%9 = call i32 @puts(i8* getelementptr inbounds ([110 x i8], [110 x i8]* @.str.5, i64 0, i64 0))
%10 = call i32 @puts(i8* getelementptr inbounds ([95 x i8], [95 x i8]* @.str.6, i64 0, i64 0))
%11 = call i32 @puts(i8* getelementptr inbounds ([62 x i8], [62 x i8]* @.str.7, i64 0, i64 0))
%12 = call i32 @putchar(i8 signext 10)
ret void
}

LLVM IR (-O2):
@.str = [76 x i8] c"Usage:\0A\0A\09%s [-?|--help] [-m] [-f input_filename] [-o output_filename] [-#]\0A\00"
@.str.1 = [56 x i8] c"\0A\09(Note the spaces between the flags and their values!)\00"
@.str.2 = [153 x i8] c"\0AThis tool reads JSON input using the cson API, then outputs the resulting DOM as JSON using the cson API. It is primarily intended for testing libcson.\00"
@.str.3 = [79 x i8] c"\0AThe -m option enables the output of certain metrics collected during parsing.\00"
@.str.4 = [280 x i8] c"\0AThe -# option means to specify a number, e.g. -1 or -4. The number 0 means to add no extra indentation (maybe a whitespace here and there). A value of 1 means to use 1 TAB for each level of indentation. A higher value means to use that many spaces for each level of indentation.\00"
@.str.5 = [110 x i8] c"\0AThe default input source is stdin (same as -f -) and the default output destination is stdout (same as -o -)\00"
@.str.6 = [95 x i8] c"\0ANote that all output which is not JSON (e.g. error messages or -m metrics) is sent to stderr.\00"
@.str.7 = [62 x i8] c"\0Acson home page: htpp://fossil.wanderinghorse.net/repos/cson/\00"
define void @show_help(i8* %0) {
%2 = tail call i32 @printf(i8* getelementptr inbounds ([76 x i8], [76 x i8]* @.str, i64 0, i64 0), i8* %0)
%3 = tail call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([56 x i8], [56 x i8]* @.str.1, i64 0, i64 0))
%4 = tail call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([153 x i8], [153 x i8]* @.str.2, i64 0, i64 0))
%5 = tail call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([79 x i8], [79 x i8]* @.str.3, i64 0, i64 0))
%6 = tail call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([280 x i8], [280 x i8]* @.str.4, i64 0, i64 0))
%7 = tail call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([110 x i8], [110 x i8]* @.str.5, i64 0, i64 0))
%8 = tail call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([95 x i8], [95 x i8]* @.str.6, i64 0, i64 0))
%9 = tail call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([62 x i8], [62 x i8]* @.str.7, i64 0, i64 0))
%10 = tail call i32 @putchar(i8 signext 10)
ret void
}