#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*/ my_putnbr(int);
int /*<<< orphan*/ my_putstr(char *);
int display_help(char *str) {
  my_putstr("Usage: ");
  my_putstr(str);
  my_putstr(" [-r rows] [-m mod]\n\n");
  my_putstr("Options:\n");
  my_putstr("-h, --help\t\t\tDislay this help and exit\n");
  my_putstr("-m, --mode\t\t\tChange the mode (number of human players)\n");
  my_putstr("-r, --rows, -l, --lines\t\t");
  my_putstr("Change the number of lines (maximum is ");
  my_putnbr(42);
  my_putstr(")\n");
  return (0);
}


x86 assembly (clang, -O0):
<display_help>:
push   %rbp
mov    %rsp,%rbp
sub    $0x10,%rsp
mov    %rdi,-0x8(%rbp)
lea    0xecd(%rip),%rdi
call   1030 <my_putstr@plt>
mov    -0x8(%rbp),%rdi
call   1030 <my_putstr@plt>
lea    0xec0(%rip),%rdi
call   1030 <my_putstr@plt>
lea    0xeca(%rip),%rdi
call   1030 <my_putstr@plt>
lea    0xec8(%rip),%rdi
call   1030 <my_putstr@plt>
lea    0xee4(%rip),%rdi
call   1030 <my_putstr@plt>
lea    0xf10(%rip),%rdi
call   1030 <my_putstr@plt>
lea    0xf1e(%rip),%rdi
call   1030 <my_putstr@plt>
mov    $0x2a,%edi
call   1040 <my_putnbr@plt>
lea    0xeeb(%rip),%rdi
call   1030 <my_putstr@plt>
xor    %eax,%eax
add    $0x10,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<display_help>:
push   %rbx
mov    %rdi,%rbx
lea    0xed5(%rip),%rdi
call   1030 <my_putstr@plt>
mov    %rbx,%rdi
call   1030 <my_putstr@plt>
lea    0xec9(%rip),%rdi
call   1030 <my_putstr@plt>
lea    0xed3(%rip),%rdi
call   1030 <my_putstr@plt>
lea    0xed1(%rip),%rdi
call   1030 <my_putstr@plt>
lea    0xeed(%rip),%rdi
call   1030 <my_putstr@plt>
lea    0xf19(%rip),%rdi
call   1030 <my_putstr@plt>
lea    0xf27(%rip),%rdi
call   1030 <my_putstr@plt>
mov    $0x2a,%edi
call   1040 <my_putnbr@plt>
lea    0xef4(%rip),%rdi
call   1030 <my_putstr@plt>
xor    %eax,%eax
pop    %rbx
ret

LLVM IR (-O0):
@.str = [8 x i8] c"Usage: \00"
@.str.1 = [22 x i8] c" [-r rows] [-m mod]\0A\0A\00"
@.str.2 = [10 x i8] c"Options:\0A\00"
@.str.3 = [40 x i8] c"-h, --help\09\09\09Dislay this help and exit\0A\00"
@.str.4 = [56 x i8] c"-m, --mode\09\09\09Change the mode (number of human players)\0A\00"
@.str.5 = [26 x i8] c"-r, --rows, -l, --lines\09\09\00"
@.str.6 = [40 x i8] c"Change the number of lines (maximum is \00"
@.str.7 = [3 x i8] c")\0A\00"
define i32 @display_help(i8* %0) {
%2 = alloca i8*
store i8* %0, i8** %2
%3 = call i32 @my_putstr(i8* getelementptr inbounds ([8 x i8], [8 x i8]* @.str, i64 0, i64 0))
%4 = load i8*, i8** %2
%5 = call i32 @my_putstr(i8* %4)
%6 = call i32 @my_putstr(i8* getelementptr inbounds ([22 x i8], [22 x i8]* @.str.1, i64 0, i64 0))
%7 = call i32 @my_putstr(i8* getelementptr inbounds ([10 x i8], [10 x i8]* @.str.2, i64 0, i64 0))
%8 = call i32 @my_putstr(i8* getelementptr inbounds ([40 x i8], [40 x i8]* @.str.3, i64 0, i64 0))
%9 = call i32 @my_putstr(i8* getelementptr inbounds ([56 x i8], [56 x i8]* @.str.4, i64 0, i64 0))
%10 = call i32 @my_putstr(i8* getelementptr inbounds ([26 x i8], [26 x i8]* @.str.5, i64 0, i64 0))
%11 = call i32 @my_putstr(i8* getelementptr inbounds ([40 x i8], [40 x i8]* @.str.6, i64 0, i64 0))
%12 = call i32 @my_putnbr(i32 42)
%13 = call i32 @my_putstr(i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str.7, i64 0, i64 0))
ret i32 0
}

LLVM IR (-O2):
@.str = [8 x i8] c"Usage: \00"
@.str.1 = [22 x i8] c" [-r rows] [-m mod]\0A\0A\00"
@.str.2 = [10 x i8] c"Options:\0A\00"
@.str.3 = [40 x i8] c"-h, --help\09\09\09Dislay this help and exit\0A\00"
@.str.4 = [56 x i8] c"-m, --mode\09\09\09Change the mode (number of human players)\0A\00"
@.str.5 = [26 x i8] c"-r, --rows, -l, --lines\09\09\00"
@.str.6 = [40 x i8] c"Change the number of lines (maximum is \00"
@.str.7 = [3 x i8] c")\0A\00"
define i32 @display_help(i8* %0) {
%2 = tail call i32 @my_putstr(i8* getelementptr inbounds ([8 x i8], [8 x i8]* @.str, i64 0, i64 0))
%3 = tail call i32 @my_putstr(i8* %0)
%4 = tail call i32 @my_putstr(i8* getelementptr inbounds ([22 x i8], [22 x i8]* @.str.1, i64 0, i64 0))
%5 = tail call i32 @my_putstr(i8* getelementptr inbounds ([10 x i8], [10 x i8]* @.str.2, i64 0, i64 0))
%6 = tail call i32 @my_putstr(i8* getelementptr inbounds ([40 x i8], [40 x i8]* @.str.3, i64 0, i64 0))
%7 = tail call i32 @my_putstr(i8* getelementptr inbounds ([56 x i8], [56 x i8]* @.str.4, i64 0, i64 0))
%8 = tail call i32 @my_putstr(i8* getelementptr inbounds ([26 x i8], [26 x i8]* @.str.5, i64 0, i64 0))
%9 = tail call i32 @my_putstr(i8* getelementptr inbounds ([40 x i8], [40 x i8]* @.str.6, i64 0, i64 0))
%10 = tail call i32 @my_putnbr(i32 42)
%11 = tail call i32 @my_putstr(i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str.7, i64 0, i64 0))
ret i32 0
}