#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_putstr(char *);
void display_params(char *prgm) {
  my_putstr("Usage: ");
  my_putstr(prgm);
  my_putstr(" [-c color]\n\n");
  my_putstr("Options:\n");
  my_putstr("\t-c, --color\tDisplay new numbers in green.\n");
  my_putstr("\t-h, --help\tDisplay this help and exit.\n");
}


x86 assembly (clang, -O0):
<display_params>:
push   %rbp
mov    %rsp,%rbp
sub    $0x10,%rsp
mov    %rdi,-0x8(%rbp)
lea    0xedd(%rip),%rdi
call   1030 <my_putstr@plt>
mov    -0x8(%rbp),%rdi
call   1030 <my_putstr@plt>
lea    0xed0(%rip),%rdi
call   1030 <my_putstr@plt>
lea    0xed2(%rip),%rdi
call   1030 <my_putstr@plt>
lea    0xed0(%rip),%rdi
call   1030 <my_putstr@plt>
lea    0xef0(%rip),%rdi
call   1030 <my_putstr@plt>
add    $0x10,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<display_params>:
push   %rbx
mov    %rdi,%rbx
lea    0xee5(%rip),%rdi
call   1030 <my_putstr@plt>
mov    %rbx,%rdi
call   1030 <my_putstr@plt>
lea    0xed9(%rip),%rdi
call   1030 <my_putstr@plt>
lea    0xedb(%rip),%rdi
call   1030 <my_putstr@plt>
lea    0xed9(%rip),%rdi
call   1030 <my_putstr@plt>
lea    0xef9(%rip),%rdi
pop    %rbx
jmp    1030 <my_putstr@plt>

LLVM IR (-O0):
@.str = [8 x i8] c"Usage: \00"
@.str.1 = [14 x i8] c" [-c color]\0A\0A\00"
@.str.2 = [10 x i8] c"Options:\0A\00"
@.str.3 = [44 x i8] c"\09-c, --color\09Display new numbers in green.\0A\00"
@.str.4 = [41 x i8] c"\09-h, --help\09Display this help and exit.\0A\00"
define void @display_params(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 ([14 x i8], [14 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 ([44 x i8], [44 x i8]* @.str.3, i64 0, i64 0))
%9 = call i32 @my_putstr(i8* getelementptr inbounds ([41 x i8], [41 x i8]* @.str.4, i64 0, i64 0))
ret void
}

LLVM IR (-O2):
@.str = [8 x i8] c"Usage: \00"
@.str.1 = [14 x i8] c" [-c color]\0A\0A\00"
@.str.2 = [10 x i8] c"Options:\0A\00"
@.str.3 = [44 x i8] c"\09-c, --color\09Display new numbers in green.\0A\00"
@.str.4 = [41 x i8] c"\09-h, --help\09Display this help and exit.\0A\00"
define void @display_params(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 ([14 x i8], [14 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 ([44 x i8], [44 x i8]* @.str.3, i64 0, i64 0))
%7 = tail call i32 @my_putstr(i8* getelementptr inbounds ([41 x i8], [41 x i8]* @.str.4, i64 0, i64 0))
ret void
}