#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 */
typedef int /*<<< orphan*/ FILE;

/* Variables and functions */
int /*<<< orphan*/ fprintf(int /*<<< orphan*/ *, char *);
int /*<<< orphan*/ print_usage(int /*<<< orphan*/ *);
void print_help(FILE *fp) {
  print_usage(fp);
  fprintf(fp, "\nThis program converts positive integers to binary, octal, ");
  fprintf(fp, "hexadecimal and more.\n");
  fprintf(fp, "\nOptions:\n");
  fprintf(fp, "  -h or --help\tPrint this help text\n");
  fprintf(fp, "  --version\tPrint version and author info\n");
  fprintf(fp, "  -\t\tRead from stdin (absence of args will also work)\n");
  fprintf(fp, "  -v\t\tPrint number type before number (verbosity)\n");
  fprintf(fp, "  -b\t\tPrint binary (default)\n");
  fprintf(fp, "  -d\t\tPrint decimal\n");
  fprintf(fp, "  -o\t\tPrint octal\n");
  fprintf(fp, "  -x\t\tPrint hexadecimal\n");
  fprintf(fp, "  -X\t\tPrint hexadecimal with capital letters\n");
  fprintf(fp, "  -a\t\tPrecise hexadecimal (printf %%a, see 'man 3 printf')\n");
  fprintf(fp, "  -A\t\tPreceise hexadecimal with capital letters\n");
  fprintf(fp, "  -e\t\tPrint binary numbers as little-endian\n");
  fprintf(fp, "  -E\t\tPrint binary numbers as big-endian (default)\n");
  fprintf(fp, "  -t\t\tSwitch on 'text conversion' mode\n");
  fprintf(fp, "  -l\t\tPrint a line between sections of output\n");
  fprintf(fp, "  -s\t\tPrint in 4-character sections, space-separated\n");
  fprintf(fp, "\t\t(in text conversion mode, this will instead print 4");
  fprintf(fp, " spaces \n\t\tbetween each converted character)\n");
}


x86 assembly (clang, -O0):
<print_help>:
push   %rbp
mov    %rsp,%rbp
sub    $0x10,%rsp
mov    %rdi,-0x8(%rbp)
mov    -0x8(%rbp),%rdi
call   1040 <print_usage@plt>
mov    -0x8(%rbp),%rdi
lea    0xec0(%rip),%rsi
call   1030 <fprintf@plt>
mov    -0x8(%rbp),%rdi
lea    0xeec(%rip),%rsi
call   1030 <fprintf@plt>
mov    -0x8(%rbp),%rdi
lea    0xef3(%rip),%rsi
call   1030 <fprintf@plt>
mov    -0x8(%rbp),%rdi
lea    0xeee(%rip),%rsi
call   1030 <fprintf@plt>
mov    -0x8(%rbp),%rdi
lea    0xf03(%rip),%rsi
call   1030 <fprintf@plt>
mov    -0x8(%rbp),%rdi
lea    0xf1e(%rip),%rsi
call   1030 <fprintf@plt>
mov    -0x8(%rbp),%rdi
lea    0xf45(%rip),%rsi
call   1030 <fprintf@plt>
mov    -0x8(%rbp),%rdi
lea    0xf68(%rip),%rsi
call   1030 <fprintf@plt>
mov    -0x8(%rbp),%rdi
lea    0xf76(%rip),%rsi
call   1030 <fprintf@plt>
mov    -0x8(%rbp),%rdi
lea    0xf7b(%rip),%rsi
call   1030 <fprintf@plt>
mov    -0x8(%rbp),%rdi
lea    0xf7e(%rip),%rsi
call   1030 <fprintf@plt>
mov    -0x8(%rbp),%rdi
lea    0xf87(%rip),%rsi
call   1030 <fprintf@plt>
mov    -0x8(%rbp),%rdi
lea    0xfa5(%rip),%rsi
call   1030 <fprintf@plt>
mov    -0x8(%rbp),%rdi
lea    0xfd1(%rip),%rsi
call   1030 <fprintf@plt>
mov    -0x8(%rbp),%rdi
lea    0xff2(%rip),%rsi
call   1030 <fprintf@plt>
mov    -0x8(%rbp),%rdi
lea    0x100f(%rip),%rsi
call   1030 <fprintf@plt>
mov    -0x8(%rbp),%rdi
lea    0x1033(%rip),%rsi
call   1030 <fprintf@plt>
mov    -0x8(%rbp),%rdi
lea    0x104b(%rip),%rsi
call   1030 <fprintf@plt>
mov    -0x8(%rbp),%rdi
lea    0x106a(%rip),%rsi
call   1030 <fprintf@plt>
mov    -0x8(%rbp),%rdi
lea    0x1090(%rip),%rsi
call   1030 <fprintf@plt>
mov    -0x8(%rbp),%rdi
lea    0x10b6(%rip),%rsi
call   1030 <fprintf@plt>
add    $0x10,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<print_help>:
push   %rbx
mov    %rdi,%rbx
call   1050 <print_usage@plt>
lea    0xec0(%rip),%rdi
mov    $0x3b,%esi
mov    $0x1,%edx
mov    %rbx,%rcx
call   1040 <fwrite@plt>
lea    0xee3(%rip),%rdi
mov    $0x16,%esi
mov    $0x1,%edx
mov    %rbx,%rcx
call   1040 <fwrite@plt>
lea    0xee1(%rip),%rdi
mov    $0xa,%esi
mov    $0x1,%edx
mov    %rbx,%rcx
call   1040 <fwrite@plt>
lea    0xed3(%rip),%rdi
mov    $0x24,%esi
mov    $0x1,%edx
mov    %rbx,%rcx
call   1040 <fwrite@plt>
lea    0xedf(%rip),%rdi
mov    $0x2a,%esi
mov    $0x1,%edx
mov    %rbx,%rcx
call   1040 <fwrite@plt>
lea    0xef1(%rip),%rdi
mov    $0x36,%esi
mov    $0x1,%edx
mov    %rbx,%rcx
call   1040 <fwrite@plt>
lea    0xf0f(%rip),%rdi
mov    $0x32,%esi
mov    $0x1,%edx
mov    %rbx,%rcx
call   1040 <fwrite@plt>
lea    0xf29(%rip),%rdi
mov    $0x1d,%esi
mov    $0x1,%edx
mov    %rbx,%rcx
call   1040 <fwrite@plt>
lea    0xf2e(%rip),%rdi
mov    $0x14,%esi
mov    $0x1,%edx
mov    %rbx,%rcx
call   1040 <fwrite@plt>
lea    0xf2a(%rip),%rdi
mov    $0x12,%esi
mov    $0x1,%edx
mov    %rbx,%rcx
call   1040 <fwrite@plt>
lea    0xf24(%rip),%rdi
mov    $0x18,%esi
mov    $0x1,%edx
mov    %rbx,%rcx
call   1040 <fwrite@plt>
lea    0xf24(%rip),%rdi
mov    $0x2d,%esi
mov    $0x1,%edx
mov    %rbx,%rcx
call   1040 <fwrite@plt>
lea    0xf39(%rip),%rsi
mov    %rbx,%rdi
call   1030 <fprintf@plt>
lea    0xf66(%rip),%rdi
mov    $0x30,%esi
mov    $0x1,%edx
mov    %rbx,%rcx
call   1040 <fwrite@plt>
lea    0xf7e(%rip),%rdi
mov    $0x2c,%esi
mov    $0x1,%edx
mov    %rbx,%rcx
call   1040 <fwrite@plt>
lea    0xf92(%rip),%rdi
mov    $0x33,%esi
mov    $0x1,%edx
mov    %rbx,%rcx
call   1040 <fwrite@plt>
lea    0xfad(%rip),%rdi
mov    $0x27,%esi
mov    $0x1,%edx
mov    %rbx,%rcx
call   1040 <fwrite@plt>
lea    0xfbc(%rip),%rdi
mov    $0x2e,%esi
mov    $0x1,%edx
mov    %rbx,%rcx
call   1040 <fwrite@plt>
lea    0xfd2(%rip),%rdi
mov    $0x35,%esi
mov    $0x1,%edx
mov    %rbx,%rcx
call   1040 <fwrite@plt>
lea    0xfef(%rip),%rdi
mov    $0x35,%esi
mov    $0x1,%edx
mov    %rbx,%rcx
call   1040 <fwrite@plt>
lea    0x100c(%rip),%rdi
mov    $0x2d,%esi
mov    $0x1,%edx
mov    %rbx,%rcx
pop    %rbx
jmp    1040 <fwrite@plt>

LLVM IR (-O0):
@.str = [60 x i8] c"\0AThis program converts positive integers to binary, octal, \00"
@.str.1 = [23 x i8] c"hexadecimal and more.\0A\00"
@.str.2 = [11 x i8] c"\0AOptions:\0A\00"
@.str.3 = [37 x i8] c" -h or --help\09Print this help text\0A\00"
@.str.4 = [43 x i8] c" --version\09Print version and author info\0A\00"
@.str.5 = [55 x i8] c" -\09\09Read from stdin (absence of args will also work)\0A\00"
@.str.6 = [51 x i8] c" -v\09\09Print number type before number (verbosity)\0A\00"
@.str.7 = [30 x i8] c" -b\09\09Print binary (default)\0A\00"
@.str.8 = [21 x i8] c" -d\09\09Print decimal\0A\00"
@.str.9 = [19 x i8] c" -o\09\09Print octal\0A\00"
@.str.10 = [25 x i8] c" -x\09\09Print hexadecimal\0A\00"
@.str.11 = [46 x i8] c" -X\09\09Print hexadecimal with capital letters\0A\00"
@.str.12 = [60 x i8] c" -a\09\09Precise hexadecimal (printf %%a, see 'man 3 printf')\0A\00"
@.str.13 = [49 x i8] c" -A\09\09Preceise hexadecimal with capital letters\0A\00"
@.str.14 = [45 x i8] c" -e\09\09Print binary numbers as little-endian\0A\00"
@.str.15 = [52 x i8] c" -E\09\09Print binary numbers as big-endian (default)\0A\00"
@.str.16 = [40 x i8] c" -t\09\09Switch on 'text conversion' mode\0A\00"
@.str.17 = [47 x i8] c" -l\09\09Print a line between sections of output\0A\00"
@.str.18 = [54 x i8] c" -s\09\09Print in 4-character sections, space-separated\0A\00"
@.str.19 = [54 x i8] c"\09\09(in text conversion mode, this will instead print 4\00"
@.str.20 = [46 x i8] c" spaces \0A\09\09between each converted character)\0A\00"
define void @print_help(i32* %0) {
%2 = alloca i32*
store i32* %0, i32** %2
%3 = load i32*, i32** %2
%4 = call i32 @print_usage(i32* %3)
%5 = load i32*, i32** %2
%6 = call i32 @fprintf(i32* %5, i8* getelementptr inbounds ([60 x i8], [60 x i8]* @.str, i64 0, i64 0))
%7 = load i32*, i32** %2
%8 = call i32 @fprintf(i32* %7, i8* getelementptr inbounds ([23 x i8], [23 x i8]* @.str.1, i64 0, i64 0))
%9 = load i32*, i32** %2
%10 = call i32 @fprintf(i32* %9, i8* getelementptr inbounds ([11 x i8], [11 x i8]* @.str.2, i64 0, i64 0))
%11 = load i32*, i32** %2
%12 = call i32 @fprintf(i32* %11, i8* getelementptr inbounds ([37 x i8], [37 x i8]* @.str.3, i64 0, i64 0))
%13 = load i32*, i32** %2
%14 = call i32 @fprintf(i32* %13, i8* getelementptr inbounds ([43 x i8], [43 x i8]* @.str.4, i64 0, i64 0))
%15 = load i32*, i32** %2
%16 = call i32 @fprintf(i32* %15, i8* getelementptr inbounds ([55 x i8], [55 x i8]* @.str.5, i64 0, i64 0))
%17 = load i32*, i32** %2
%18 = call i32 @fprintf(i32* %17, i8* getelementptr inbounds ([51 x i8], [51 x i8]* @.str.6, i64 0, i64 0))
%19 = load i32*, i32** %2
%20 = call i32 @fprintf(i32* %19, i8* getelementptr inbounds ([30 x i8], [30 x i8]* @.str.7, i64 0, i64 0))
%21 = load i32*, i32** %2
%22 = call i32 @fprintf(i32* %21, i8* getelementptr inbounds ([21 x i8], [21 x i8]* @.str.8, i64 0, i64 0))
%23 = load i32*, i32** %2
%24 = call i32 @fprintf(i32* %23, i8* getelementptr inbounds ([19 x i8], [19 x i8]* @.str.9, i64 0, i64 0))
%25 = load i32*, i32** %2
%26 = call i32 @fprintf(i32* %25, i8* getelementptr inbounds ([25 x i8], [25 x i8]* @.str.10, i64 0, i64 0))
%27 = load i32*, i32** %2
%28 = call i32 @fprintf(i32* %27, i8* getelementptr inbounds ([46 x i8], [46 x i8]* @.str.11, i64 0, i64 0))
%29 = load i32*, i32** %2
%30 = call i32 @fprintf(i32* %29, i8* getelementptr inbounds ([60 x i8], [60 x i8]* @.str.12, i64 0, i64 0))
%31 = load i32*, i32** %2
%32 = call i32 @fprintf(i32* %31, i8* getelementptr inbounds ([49 x i8], [49 x i8]* @.str.13, i64 0, i64 0))
%33 = load i32*, i32** %2
%34 = call i32 @fprintf(i32* %33, i8* getelementptr inbounds ([45 x i8], [45 x i8]* @.str.14, i64 0, i64 0))
%35 = load i32*, i32** %2
%36 = call i32 @fprintf(i32* %35, i8* getelementptr inbounds ([52 x i8], [52 x i8]* @.str.15, i64 0, i64 0))
%37 = load i32*, i32** %2
%38 = call i32 @fprintf(i32* %37, i8* getelementptr inbounds ([40 x i8], [40 x i8]* @.str.16, i64 0, i64 0))
%39 = load i32*, i32** %2
%40 = call i32 @fprintf(i32* %39, i8* getelementptr inbounds ([47 x i8], [47 x i8]* @.str.17, i64 0, i64 0))
%41 = load i32*, i32** %2
%42 = call i32 @fprintf(i32* %41, i8* getelementptr inbounds ([54 x i8], [54 x i8]* @.str.18, i64 0, i64 0))
%43 = load i32*, i32** %2
%44 = call i32 @fprintf(i32* %43, i8* getelementptr inbounds ([54 x i8], [54 x i8]* @.str.19, i64 0, i64 0))
%45 = load i32*, i32** %2
%46 = call i32 @fprintf(i32* %45, i8* getelementptr inbounds ([46 x i8], [46 x i8]* @.str.20, i64 0, i64 0))
ret void
}

LLVM IR (-O2):
@.str = [60 x i8] c"\0AThis program converts positive integers to binary, octal, \00"
@.str.1 = [23 x i8] c"hexadecimal and more.\0A\00"
@.str.2 = [11 x i8] c"\0AOptions:\0A\00"
@.str.3 = [37 x i8] c" -h or --help\09Print this help text\0A\00"
@.str.4 = [43 x i8] c" --version\09Print version and author info\0A\00"
@.str.5 = [55 x i8] c" -\09\09Read from stdin (absence of args will also work)\0A\00"
@.str.6 = [51 x i8] c" -v\09\09Print number type before number (verbosity)\0A\00"
@.str.7 = [30 x i8] c" -b\09\09Print binary (default)\0A\00"
@.str.8 = [21 x i8] c" -d\09\09Print decimal\0A\00"
@.str.9 = [19 x i8] c" -o\09\09Print octal\0A\00"
@.str.10 = [25 x i8] c" -x\09\09Print hexadecimal\0A\00"
@.str.11 = [46 x i8] c" -X\09\09Print hexadecimal with capital letters\0A\00"
@.str.12 = [60 x i8] c" -a\09\09Precise hexadecimal (printf %%a, see 'man 3 printf')\0A\00"
@.str.13 = [49 x i8] c" -A\09\09Preceise hexadecimal with capital letters\0A\00"
@.str.14 = [45 x i8] c" -e\09\09Print binary numbers as little-endian\0A\00"
@.str.15 = [52 x i8] c" -E\09\09Print binary numbers as big-endian (default)\0A\00"
@.str.16 = [40 x i8] c" -t\09\09Switch on 'text conversion' mode\0A\00"
@.str.17 = [47 x i8] c" -l\09\09Print a line between sections of output\0A\00"
@.str.18 = [54 x i8] c" -s\09\09Print in 4-character sections, space-separated\0A\00"
@.str.19 = [54 x i8] c"\09\09(in text conversion mode, this will instead print 4\00"
@.str.20 = [46 x i8] c" spaces \0A\09\09between each converted character)\0A\00"
define void @print_help(i32* %0) {
%2 = tail call i32 @print_usage(i32* %0)
%3 = tail call i64 @fwrite(i8* getelementptr inbounds ([60 x i8], [60 x i8]* @.str, i64 0, i64 0), i64 59, i64 1, i32* %0)
%4 = tail call i64 @fwrite(i8* getelementptr inbounds ([23 x i8], [23 x i8]* @.str.1, i64 0, i64 0), i64 22, i64 1, i32* %0)
%5 = tail call i64 @fwrite(i8* getelementptr inbounds ([11 x i8], [11 x i8]* @.str.2, i64 0, i64 0), i64 10, i64 1, i32* %0)
%6 = tail call i64 @fwrite(i8* getelementptr inbounds ([37 x i8], [37 x i8]* @.str.3, i64 0, i64 0), i64 36, i64 1, i32* %0)
%7 = tail call i64 @fwrite(i8* getelementptr inbounds ([43 x i8], [43 x i8]* @.str.4, i64 0, i64 0), i64 42, i64 1, i32* %0)
%8 = tail call i64 @fwrite(i8* getelementptr inbounds ([55 x i8], [55 x i8]* @.str.5, i64 0, i64 0), i64 54, i64 1, i32* %0)
%9 = tail call i64 @fwrite(i8* getelementptr inbounds ([51 x i8], [51 x i8]* @.str.6, i64 0, i64 0), i64 50, i64 1, i32* %0)
%10 = tail call i64 @fwrite(i8* getelementptr inbounds ([30 x i8], [30 x i8]* @.str.7, i64 0, i64 0), i64 29, i64 1, i32* %0)
%11 = tail call i64 @fwrite(i8* getelementptr inbounds ([21 x i8], [21 x i8]* @.str.8, i64 0, i64 0), i64 20, i64 1, i32* %0)
%12 = tail call i64 @fwrite(i8* getelementptr inbounds ([19 x i8], [19 x i8]* @.str.9, i64 0, i64 0), i64 18, i64 1, i32* %0)
%13 = tail call i64 @fwrite(i8* getelementptr inbounds ([25 x i8], [25 x i8]* @.str.10, i64 0, i64 0), i64 24, i64 1, i32* %0)
%14 = tail call i64 @fwrite(i8* getelementptr inbounds ([46 x i8], [46 x i8]* @.str.11, i64 0, i64 0), i64 45, i64 1, i32* %0)
%15 = tail call i32 @fprintf(i32* %0, i8* getelementptr inbounds ([60 x i8], [60 x i8]* @.str.12, i64 0, i64 0))
%16 = tail call i64 @fwrite(i8* getelementptr inbounds ([49 x i8], [49 x i8]* @.str.13, i64 0, i64 0), i64 48, i64 1, i32* %0)
%17 = tail call i64 @fwrite(i8* getelementptr inbounds ([45 x i8], [45 x i8]* @.str.14, i64 0, i64 0), i64 44, i64 1, i32* %0)
%18 = tail call i64 @fwrite(i8* getelementptr inbounds ([52 x i8], [52 x i8]* @.str.15, i64 0, i64 0), i64 51, i64 1, i32* %0)
%19 = tail call i64 @fwrite(i8* getelementptr inbounds ([40 x i8], [40 x i8]* @.str.16, i64 0, i64 0), i64 39, i64 1, i32* %0)
%20 = tail call i64 @fwrite(i8* getelementptr inbounds ([47 x i8], [47 x i8]* @.str.17, i64 0, i64 0), i64 46, i64 1, i32* %0)
%21 = tail call i64 @fwrite(i8* getelementptr inbounds ([54 x i8], [54 x i8]* @.str.18, i64 0, i64 0), i64 53, i64 1, i32* %0)
%22 = tail call i64 @fwrite(i8* getelementptr inbounds ([54 x i8], [54 x i8]* @.str.19, i64 0, i64 0), i64 53, i64 1, i32* %0)
%23 = tail call i64 @fwrite(i8* getelementptr inbounds ([46 x i8], [46 x i8]* @.str.20, i64 0, i64 0), i64 45, i64 1, i32* %0)
ret void
}