#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 *);
void printhelp(char *argv[]) {
  printf("Options:\n");
  printf("  -help \t\t\t\t: This help\n");
  printf("  -file:[filename]\t\t\t: Input bmp file\n");
  printf("  -fontname:[name]\t\t\t: Output font name\n");
  printf("  -nbchars:[nb of characters]\t\t: Total number of characters\n");
  printf("  -cxsize:[nb of pixels]\t\t: Character x size\n");
  printf("  -cysize:[nb of pixels]\t\t: Character y size\n");
  printf("  -cxstep:[nb of pixels]\t\t: Character x step\n");
  printf("  -cystep:[nb of pixels]\t\t: Character y step\n");
  printf("  -xoffset:[nb of pixels]\t\t: Initial x offset\n");
  printf("  -yoffset:[nb of pixels]\t\t: Initial y offset\n");
  printf("  -charsperline:[nb of characters]\t: Characters per line\n");
  printf("  -charsperrow:[nb of characters]\t: Characters per row\n");
  printf("  -srcstartchar:[character number]\t: First character index in the "
         "font\n");
  printf("  -nofontpatch\t\t\t\t: Don't apply the final patch\n");
  printf("\n");
}


x86 assembly (clang, -O0):
<printhelp>:
push   %rbp
mov    %rsp,%rbp
sub    $0x10,%rsp
mov    %rdi,-0x8(%rbp)
lea    0xedd(%rip),%rdi
call   1030 <printf@plt>
lea    0xedb(%rip),%rdi
call   1030 <printf@plt>
lea    0xee8(%rip),%rdi
call   1030 <printf@plt>
lea    0xf03(%rip),%rdi
call   1030 <printf@plt>
lea    0xf20(%rip),%rdi
call   1030 <printf@plt>
lea    0xf51(%rip),%rdi
call   1030 <printf@plt>
lea    0xf73(%rip),%rdi
call   1030 <printf@plt>
lea    0xf95(%rip),%rdi
call   1030 <printf@plt>
lea    0xfb7(%rip),%rdi
call   1030 <printf@plt>
lea    0xfd9(%rip),%rdi
call   1030 <printf@plt>
lea    0xffc(%rip),%rdi
call   1030 <printf@plt>
lea    0x101f(%rip),%rdi
call   1030 <printf@plt>
lea    0x104d(%rip),%rdi
call   1030 <printf@plt>
lea    0x1079(%rip),%rdi
call   1030 <printf@plt>
lea    0x10b5(%rip),%rdi
call   1030 <printf@plt>
lea    0xe31(%rip),%rdi
call   1030 <printf@plt>
add    $0x10,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<printhelp>:
push   %rax
lea    0xed8(%rip),%rdi
call   1040 <puts@plt>
lea    0xed5(%rip),%rdi
call   1040 <puts@plt>
lea    0xee1(%rip),%rdi
call   1040 <puts@plt>
lea    0xefb(%rip),%rdi
call   1040 <puts@plt>
lea    0xf17(%rip),%rdi
call   1040 <puts@plt>
lea    0xf47(%rip),%rdi
call   1040 <puts@plt>
lea    0xf68(%rip),%rdi
call   1040 <puts@plt>
lea    0xf89(%rip),%rdi
call   1040 <puts@plt>
lea    0xfaa(%rip),%rdi
call   1040 <puts@plt>
lea    0xfcb(%rip),%rdi
call   1040 <puts@plt>
lea    0xfed(%rip),%rdi
call   1040 <puts@plt>
lea    0x100f(%rip),%rdi
call   1040 <puts@plt>
lea    0x103c(%rip),%rdi
call   1040 <puts@plt>
lea    0x1067(%rip),%rdi
call   1040 <puts@plt>
lea    0x10a2(%rip),%rdi
call   1040 <puts@plt>
mov    $0xa,%edi
pop    %rax
jmp    1030 <putchar@plt>

LLVM IR (-O0):
@.str = [10 x i8] c"Options:\0A\00"
@.str.1 = [25 x i8] c" -help \09\09\09\09: This help\0A\00"
@.str.2 = [39 x i8] c" -file:[filename]\09\09\09: Input bmp file\0A\00"
@.str.3 = [41 x i8] c" -fontname:[name]\09\09\09: Output font name\0A\00"
@.str.4 = [61 x i8] c" -nbchars:[nb of characters]\09\09: Total number of characters\0A\00"
@.str.5 = [46 x i8] c" -cxsize:[nb of pixels]\09\09: Character x size\0A\00"
@.str.6 = [46 x i8] c" -cysize:[nb of pixels]\09\09: Character y size\0A\00"
@.str.7 = [46 x i8] c" -cxstep:[nb of pixels]\09\09: Character x step\0A\00"
@.str.8 = [46 x i8] c" -cystep:[nb of pixels]\09\09: Character y step\0A\00"
@.str.9 = [47 x i8] c" -xoffset:[nb of pixels]\09\09: Initial x offset\0A\00"
@.str.10 = [47 x i8] c" -yoffset:[nb of pixels]\09\09: Initial y offset\0A\00"
@.str.11 = [58 x i8] c" -charsperline:[nb of characters]\09: Characters per line\0A\00"
@.str.12 = [56 x i8] c" -charsperrow:[nb of characters]\09: Characters per row\0A\00"
@.str.13 = [72 x i8] c" -srcstartchar:[character number]\09: First character index in the font\0A\00"
@.str.14 = [49 x i8] c" -nofontpatch\09\09\09\09: Don't apply the final patch\0A\00"
@.str.15 = [2 x i8] c"\0A\00"
define void @printhelp(i8** %0) {
%2 = alloca i8**
store i8** %0, i8*** %2
%3 = call i32 @printf(i8* getelementptr inbounds ([10 x i8], [10 x i8]* @.str, i64 0, i64 0))
%4 = call i32 @printf(i8* getelementptr inbounds ([25 x i8], [25 x i8]* @.str.1, i64 0, i64 0))
%5 = call i32 @printf(i8* getelementptr inbounds ([39 x i8], [39 x i8]* @.str.2, i64 0, i64 0))
%6 = call i32 @printf(i8* getelementptr inbounds ([41 x i8], [41 x i8]* @.str.3, i64 0, i64 0))
%7 = call i32 @printf(i8* getelementptr inbounds ([61 x i8], [61 x i8]* @.str.4, i64 0, i64 0))
%8 = call i32 @printf(i8* getelementptr inbounds ([46 x i8], [46 x i8]* @.str.5, i64 0, i64 0))
%9 = call i32 @printf(i8* getelementptr inbounds ([46 x i8], [46 x i8]* @.str.6, i64 0, i64 0))
%10 = call i32 @printf(i8* getelementptr inbounds ([46 x i8], [46 x i8]* @.str.7, i64 0, i64 0))
%11 = call i32 @printf(i8* getelementptr inbounds ([46 x i8], [46 x i8]* @.str.8, i64 0, i64 0))
%12 = call i32 @printf(i8* getelementptr inbounds ([47 x i8], [47 x i8]* @.str.9, i64 0, i64 0))
%13 = call i32 @printf(i8* getelementptr inbounds ([47 x i8], [47 x i8]* @.str.10, i64 0, i64 0))
%14 = call i32 @printf(i8* getelementptr inbounds ([58 x i8], [58 x i8]* @.str.11, i64 0, i64 0))
%15 = call i32 @printf(i8* getelementptr inbounds ([56 x i8], [56 x i8]* @.str.12, i64 0, i64 0))
%16 = call i32 @printf(i8* getelementptr inbounds ([72 x i8], [72 x i8]* @.str.13, i64 0, i64 0))
%17 = call i32 @printf(i8* getelementptr inbounds ([49 x i8], [49 x i8]* @.str.14, i64 0, i64 0))
%18 = call i32 @printf(i8* getelementptr inbounds ([2 x i8], [2 x i8]* @.str.15, i64 0, i64 0))
ret void
}

LLVM IR (-O2):
@str = [9 x i8] c"Options:\00"
@str.16 = [24 x i8] c" -help \09\09\09\09: This help\00"
@str.17 = [38 x i8] c" -file:[filename]\09\09\09: Input bmp file\00"
@str.18 = [40 x i8] c" -fontname:[name]\09\09\09: Output font name\00"
@str.19 = [60 x i8] c" -nbchars:[nb of characters]\09\09: Total number of characters\00"
@str.20 = [45 x i8] c" -cxsize:[nb of pixels]\09\09: Character x size\00"
@str.21 = [45 x i8] c" -cysize:[nb of pixels]\09\09: Character y size\00"
@str.22 = [45 x i8] c" -cxstep:[nb of pixels]\09\09: Character x step\00"
@str.23 = [45 x i8] c" -cystep:[nb of pixels]\09\09: Character y step\00"
@str.24 = [46 x i8] c" -xoffset:[nb of pixels]\09\09: Initial x offset\00"
@str.25 = [46 x i8] c" -yoffset:[nb of pixels]\09\09: Initial y offset\00"
@str.26 = [57 x i8] c" -charsperline:[nb of characters]\09: Characters per line\00"
@str.27 = [55 x i8] c" -charsperrow:[nb of characters]\09: Characters per row\00"
@str.28 = [71 x i8] c" -srcstartchar:[character number]\09: First character index in the font\00"
@str.29 = [48 x i8] c" -nofontpatch\09\09\09\09: Don't apply the final patch\00"
define void @printhelp(i8** nocapture readnone %0) {
%2 = tail call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([9 x i8], [9 x i8]* @str, i64 0, i64 0))
%3 = tail call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([24 x i8], [24 x i8]* @str.16, i64 0, i64 0))
%4 = tail call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([38 x i8], [38 x i8]* @str.17, i64 0, i64 0))
%5 = tail call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([40 x i8], [40 x i8]* @str.18, i64 0, i64 0))
%6 = tail call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([60 x i8], [60 x i8]* @str.19, i64 0, i64 0))
%7 = tail call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([45 x i8], [45 x i8]* @str.20, i64 0, i64 0))
%8 = tail call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([45 x i8], [45 x i8]* @str.21, i64 0, i64 0))
%9 = tail call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([45 x i8], [45 x i8]* @str.22, i64 0, i64 0))
%10 = tail call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([45 x i8], [45 x i8]* @str.23, i64 0, i64 0))
%11 = tail call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([46 x i8], [46 x i8]* @str.24, i64 0, i64 0))
%12 = tail call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([46 x i8], [46 x i8]* @str.25, i64 0, i64 0))
%13 = tail call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([57 x i8], [57 x i8]* @str.26, i64 0, i64 0))
%14 = tail call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([55 x i8], [55 x i8]* @str.27, i64 0, i64 0))
%15 = tail call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([71 x i8], [71 x i8]* @str.28, i64 0, i64 0))
%16 = tail call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([48 x i8], [48 x i8]* @str.29, i64 0, i64 0))
%17 = tail call i32 @putchar(i32 10)
ret void
}