void print_help(argv0) {
  printf("Usage: %s [OPTION]... DEVICE\n", argv0);
  puts("learn_brd -- learn board and/or pieces interactively");
  puts("OPTION:");
  puts("  -h            display this help and exit");
  puts("  -P            learn pieces");
  puts("  -B            learn board");
  puts("  -i BRD_IN     use BRD_IN for input, with -P");
  puts("                if -B is specified, it is ignored");
  puts("  -o BRD_OUT    use BRD_OUT for output");
  puts("  -r READER     use READER as the program to read the board in");
  puts("  -n PASS       read PASS pass for piece learning,  with -P (default "
       "5)");
}


x86 assembly (clang, -O0):
<print_help>:
push   %rbp
mov    %rsp,%rbp
sub    $0x10,%rsp
mov    %edi,-0x4(%rbp)
mov    -0x4(%rbp),%esi
lea    0xecb(%rip),%rdi
mov    $0x0,%al
call   1040 <printf@plt>
lea    0xedb(%rip),%rdi
mov    $0x0,%al
call   1030 <puts@plt>
lea    0xf02(%rip),%rdi
mov    $0x0,%al
call   1030 <puts@plt>
lea    0xefc(%rip),%rdi
mov    $0x0,%al
call   1030 <puts@plt>
lea    0xf19(%rip),%rdi
mov    $0x0,%al
call   1030 <puts@plt>
lea    0xf28(%rip),%rdi
mov    $0x0,%al
call   1030 <puts@plt>
lea    0xf36(%rip),%rdi
mov    $0x0,%al
call   1030 <puts@plt>
lea    0xf56(%rip),%rdi
mov    $0x0,%al
call   1030 <puts@plt>
lea    0xf7a(%rip),%rdi
mov    $0x0,%al
call   1030 <puts@plt>
lea    0xf93(%rip),%rdi
mov    $0x0,%al
call   1030 <puts@plt>
lea    0xfc4(%rip),%rdi
mov    $0x0,%al
call   1030 <puts@plt>
add    $0x10,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<print_help>:
push   %rax
mov    %edi,%esi
lea    0xed6(%rip),%rdi
xor    %eax,%eax
call   1040 <printf@plt>
lea    0xee6(%rip),%rdi
xor    %eax,%eax
call   1030 <puts@plt>
lea    0xf0d(%rip),%rdi
xor    %eax,%eax
call   1030 <puts@plt>
lea    0xf07(%rip),%rdi
xor    %eax,%eax
call   1030 <puts@plt>
lea    0xf24(%rip),%rdi
xor    %eax,%eax
call   1030 <puts@plt>
lea    0xf33(%rip),%rdi
xor    %eax,%eax
call   1030 <puts@plt>
lea    0xf41(%rip),%rdi
xor    %eax,%eax
call   1030 <puts@plt>
lea    0xf61(%rip),%rdi
xor    %eax,%eax
call   1030 <puts@plt>
lea    0xf85(%rip),%rdi
xor    %eax,%eax
call   1030 <puts@plt>
lea    0xf9e(%rip),%rdi
xor    %eax,%eax
call   1030 <puts@plt>
lea    0xfcf(%rip),%rdi
xor    %eax,%eax
pop    %rcx
jmp    1030 <puts@plt>

LLVM IR (-O0):
@.str = [30 x i8] c"Usage: %s [OPTION]... DEVICE\0A\00"
@.str.1 = [53 x i8] c"learn_brd -- learn board and/or pieces interactively\00"
@.str.2 = [8 x i8] c"OPTION:\00"
@.str.3 = [43 x i8] c" -h display this help and exit\00"
@.str.4 = [29 x i8] c" -P learn pieces\00"
@.str.5 = [28 x i8] c" -B learn board\00"
@.str.6 = [46 x i8] c" -i BRD_IN use BRD_IN for input, with -P\00"
@.str.7 = [50 x i8] c" if -B is specified, it is ignored\00"
@.str.8 = [39 x i8] c" -o BRD_OUT use BRD_OUT for output\00"
@.str.9 = [63 x i8] c" -r READER use READER as the program to read the board in\00"
@.str.10 = [72 x i8] c" -n PASS read PASS pass for piece learning, with -P (default 5)\00"
define void @print_help(i32 %0) {
%2 = alloca i32
store i32 %0, i32* %2
%3 = load i32, i32* %2
%4 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([30 x i8], [30 x i8]* @.str, i64 0, i64 0), i32 %3)
%5 = call i32 (i8*, ...) bitcast (i32 (...)* @puts to i32 (i8*, ...)*)(i8* getelementptr inbounds ([53 x i8], [53 x i8]* @.str.1, i64 0, i64 0))
%6 = call i32 (i8*, ...) bitcast (i32 (...)* @puts to i32 (i8*, ...)*)(i8* getelementptr inbounds ([8 x i8], [8 x i8]* @.str.2, i64 0, i64 0))
%7 = call i32 (i8*, ...) bitcast (i32 (...)* @puts to i32 (i8*, ...)*)(i8* getelementptr inbounds ([43 x i8], [43 x i8]* @.str.3, i64 0, i64 0))
%8 = call i32 (i8*, ...) bitcast (i32 (...)* @puts to i32 (i8*, ...)*)(i8* getelementptr inbounds ([29 x i8], [29 x i8]* @.str.4, i64 0, i64 0))
%9 = call i32 (i8*, ...) bitcast (i32 (...)* @puts to i32 (i8*, ...)*)(i8* getelementptr inbounds ([28 x i8], [28 x i8]* @.str.5, i64 0, i64 0))
%10 = call i32 (i8*, ...) bitcast (i32 (...)* @puts to i32 (i8*, ...)*)(i8* getelementptr inbounds ([46 x i8], [46 x i8]* @.str.6, i64 0, i64 0))
%11 = call i32 (i8*, ...) bitcast (i32 (...)* @puts to i32 (i8*, ...)*)(i8* getelementptr inbounds ([50 x i8], [50 x i8]* @.str.7, i64 0, i64 0))
%12 = call i32 (i8*, ...) bitcast (i32 (...)* @puts to i32 (i8*, ...)*)(i8* getelementptr inbounds ([39 x i8], [39 x i8]* @.str.8, i64 0, i64 0))
%13 = call i32 (i8*, ...) bitcast (i32 (...)* @puts to i32 (i8*, ...)*)(i8* getelementptr inbounds ([63 x i8], [63 x i8]* @.str.9, i64 0, i64 0))
%14 = call i32 (i8*, ...) bitcast (i32 (...)* @puts to i32 (i8*, ...)*)(i8* getelementptr inbounds ([72 x i8], [72 x i8]* @.str.10, i64 0, i64 0))
ret void
}

LLVM IR (-O2):
@.str = [30 x i8] c"Usage: %s [OPTION]... DEVICE\0A\00"
@.str.1 = [53 x i8] c"learn_brd -- learn board and/or pieces interactively\00"
@.str.2 = [8 x i8] c"OPTION:\00"
@.str.3 = [43 x i8] c" -h display this help and exit\00"
@.str.4 = [29 x i8] c" -P learn pieces\00"
@.str.5 = [28 x i8] c" -B learn board\00"
@.str.6 = [46 x i8] c" -i BRD_IN use BRD_IN for input, with -P\00"
@.str.7 = [50 x i8] c" if -B is specified, it is ignored\00"
@.str.8 = [39 x i8] c" -o BRD_OUT use BRD_OUT for output\00"
@.str.9 = [63 x i8] c" -r READER use READER as the program to read the board in\00"
@.str.10 = [72 x i8] c" -n PASS read PASS pass for piece learning, with -P (default 5)\00"
define void @print_help(i32 %0) {
%2 = tail call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([30 x i8], [30 x i8]* @.str, i64 0, i64 0), i32 %0)
%3 = tail call i32 (i8*, ...) bitcast (i32 (...)* @puts to i32 (i8*, ...)*)(i8* getelementptr inbounds ([53 x i8], [53 x i8]* @.str.1, i64 0, i64 0))
%4 = tail call i32 (i8*, ...) bitcast (i32 (...)* @puts to i32 (i8*, ...)*)(i8* getelementptr inbounds ([8 x i8], [8 x i8]* @.str.2, i64 0, i64 0))
%5 = tail call i32 (i8*, ...) bitcast (i32 (...)* @puts to i32 (i8*, ...)*)(i8* getelementptr inbounds ([43 x i8], [43 x i8]* @.str.3, i64 0, i64 0))
%6 = tail call i32 (i8*, ...) bitcast (i32 (...)* @puts to i32 (i8*, ...)*)(i8* getelementptr inbounds ([29 x i8], [29 x i8]* @.str.4, i64 0, i64 0))
%7 = tail call i32 (i8*, ...) bitcast (i32 (...)* @puts to i32 (i8*, ...)*)(i8* getelementptr inbounds ([28 x i8], [28 x i8]* @.str.5, i64 0, i64 0))
%8 = tail call i32 (i8*, ...) bitcast (i32 (...)* @puts to i32 (i8*, ...)*)(i8* getelementptr inbounds ([46 x i8], [46 x i8]* @.str.6, i64 0, i64 0))
%9 = tail call i32 (i8*, ...) bitcast (i32 (...)* @puts to i32 (i8*, ...)*)(i8* getelementptr inbounds ([50 x i8], [50 x i8]* @.str.7, i64 0, i64 0))
%10 = tail call i32 (i8*, ...) bitcast (i32 (...)* @puts to i32 (i8*, ...)*)(i8* getelementptr inbounds ([39 x i8], [39 x i8]* @.str.8, i64 0, i64 0))
%11 = tail call i32 (i8*, ...) bitcast (i32 (...)* @puts to i32 (i8*, ...)*)(i8* getelementptr inbounds ([63 x i8], [63 x i8]* @.str.9, i64 0, i64 0))
%12 = tail call i32 (i8*, ...) bitcast (i32 (...)* @puts to i32 (i8*, ...)*)(i8* getelementptr inbounds ([72 x i8], [72 x i8]* @.str.10, i64 0, i64 0))
ret void
}