#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 *, ...);
int /*<<< orphan*/ usage();
void printh(void) {
  usage();
  printf("\n Options:\n");
  printf("%-17s %s\n", "    -h --help", "print this help");
  printf("%-17s %s\n", "    -n --new", "use new output style");
  printf("%-17s %s\n", "    -v --version", "print version information");
  printf("\nReport bugs to <pj.pandit@yahoo.co.in>\n");
}


x86 assembly (clang, -O0):
<printh>:
push   %rbp
mov    %rsp,%rbp
mov    $0x0,%al
call   1040 <usage@plt>
lea    0xece(%rip),%rdi
mov    $0x0,%al
call   1030 <printf@plt>
lea    0xecc(%rip),%rdi
lea    0xecf(%rip),%rsi
lea    0xed6(%rip),%rdx
mov    $0x0,%al
call   1030 <printf@plt>
lea    0xeb0(%rip),%rdi
lea    0xed1(%rip),%rsi
lea    0xed7(%rip),%rdx
mov    $0x0,%al
call   1030 <printf@plt>
lea    0xe94(%rip),%rdi
lea    0xed7(%rip),%rsi
lea    0xee1(%rip),%rdx
mov    $0x0,%al
call   1030 <printf@plt>
lea    0xeed(%rip),%rdi
mov    $0x0,%al
call   1030 <printf@plt>
pop    %rbp
ret

x86 assembly (clang, -O2):
<printh>:
push   %rbx
xor    %eax,%eax
call   1050 <usage@plt>
lea    0xf36(%rip),%rdi
call   1030 <puts@plt>
lea    0xeb5(%rip),%rbx
lea    0xeb8(%rip),%rsi
lea    0xebf(%rip),%rdx
mov    %rbx,%rdi
xor    %eax,%eax
call   1040 <printf@plt>
lea    0xebe(%rip),%rsi
lea    0xec4(%rip),%rdx
mov    %rbx,%rdi
xor    %eax,%eax
call   1040 <printf@plt>
lea    0xec8(%rip),%rsi
lea    0xed2(%rip),%rdx
mov    %rbx,%rdi
xor    %eax,%eax
call   1040 <printf@plt>
lea    0xee6(%rip),%rdi
pop    %rbx
jmp    1030 <puts@plt>

LLVM IR (-O0):
@.str = [12 x i8] c"\0A Options:\0A\00"
@.str.1 = [10 x i8] c"%-17s %s\0A\00"
@.str.2 = [14 x i8] c" -h --help\00"
@.str.3 = [16 x i8] c"print this help\00"
@.str.4 = [13 x i8] c" -n --new\00"
@.str.5 = [21 x i8] c"use new output style\00"
@.str.6 = [17 x i8] c" -v --version\00"
@.str.7 = [26 x i8] c"print version information\00"
@.str.8 = [41 x i8] c"\0AReport bugs to <pj.pandit@yahoo.co.in>\0A\00"
define void @printh() {
%1 = call i32 (...) @usage()
%2 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([12 x i8], [12 x i8]* @.str, i64 0, i64 0))
%3 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([10 x i8], [10 x i8]* @.str.1, i64 0, i64 0), i8* getelementptr inbounds ([14 x i8], [14 x i8]* @.str.2, i64 0, i64 0), i8* getelementptr inbounds ([16 x i8], [16 x i8]* @.str.3, i64 0, i64 0))
%4 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([10 x i8], [10 x i8]* @.str.1, i64 0, i64 0), i8* getelementptr inbounds ([13 x i8], [13 x i8]* @.str.4, i64 0, i64 0), i8* getelementptr inbounds ([21 x i8], [21 x i8]* @.str.5, i64 0, i64 0))
%5 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([10 x i8], [10 x i8]* @.str.1, i64 0, i64 0), i8* getelementptr inbounds ([17 x i8], [17 x i8]* @.str.6, i64 0, i64 0), i8* getelementptr inbounds ([26 x i8], [26 x i8]* @.str.7, i64 0, i64 0))
%6 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([41 x i8], [41 x i8]* @.str.8, i64 0, i64 0))
ret void
}

LLVM IR (-O2):
@.str.1 = [10 x i8] c"%-17s %s\0A\00"
@.str.2 = [14 x i8] c" -h --help\00"
@.str.3 = [16 x i8] c"print this help\00"
@.str.4 = [13 x i8] c" -n --new\00"
@.str.5 = [21 x i8] c"use new output style\00"
@.str.6 = [17 x i8] c" -v --version\00"
@.str.7 = [26 x i8] c"print version information\00"
@str = [11 x i8] c"\0A Options:\00"
@str.9 = [40 x i8] c"\0AReport bugs to <pj.pandit@yahoo.co.in>\00"
define void @printh() {
%1 = tail call i32 (...) @usage()
%2 = tail call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([11 x i8], [11 x i8]* @str, i64 0, i64 0))
%3 = tail call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([10 x i8], [10 x i8]* @.str.1, i64 0, i64 0), i8* getelementptr inbounds ([14 x i8], [14 x i8]* @.str.2, i64 0, i64 0), i8* getelementptr inbounds ([16 x i8], [16 x i8]* @.str.3, i64 0, i64 0))
%4 = tail call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([10 x i8], [10 x i8]* @.str.1, i64 0, i64 0), i8* getelementptr inbounds ([13 x i8], [13 x i8]* @.str.4, i64 0, i64 0), i8* getelementptr inbounds ([21 x i8], [21 x i8]* @.str.5, i64 0, i64 0))
%5 = tail call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([10 x i8], [10 x i8]* @.str.1, i64 0, i64 0), i8* getelementptr inbounds ([17 x i8], [17 x i8]* @.str.6, i64 0, i64 0), i8* getelementptr inbounds ([26 x i8], [26 x i8]* @.str.7, i64 0, i64 0))
%6 = tail call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([40 x i8], [40 x i8]* @str.9, i64 0, i64 0))
ret void
}