#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", "    -c <N>", "do N queries in parallel");
  printf("%-17s %s\n", "    -h --help", "print this help");
  printf("%-17s %s\n", "    -l <N>", "read ahead at most N lines");
  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    0xed3(%rip),%rdx
mov    $0x0,%al
call   1030 <printf@plt>
lea    0xeb0(%rip),%rdi
lea    0xed7(%rip),%rsi
lea    0xede(%rip),%rdx
mov    $0x0,%al
call   1030 <printf@plt>
lea    0xe94(%rip),%rdi
lea    0xed9(%rip),%rsi
lea    0xedd(%rip),%rdx
mov    $0x0,%al
call   1030 <printf@plt>
lea    0xe78(%rip),%rdi
lea    0xee3(%rip),%rsi
lea    0xeed(%rip),%rdx
mov    $0x0,%al
call   1030 <printf@plt>
lea    0xef9(%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    0xf5e(%rip),%rdi
call   1030 <puts@plt>
lea    0xeb5(%rip),%rbx
lea    0xeb8(%rip),%rsi
lea    0xebc(%rip),%rdx
mov    %rbx,%rdi
xor    %eax,%eax
call   1040 <printf@plt>
lea    0xec4(%rip),%rsi
lea    0xecb(%rip),%rdx
mov    %rbx,%rdi
xor    %eax,%eax
call   1040 <printf@plt>
lea    0xeca(%rip),%rsi
lea    0xece(%rip),%rdx
mov    %rbx,%rdi
xor    %eax,%eax
call   1040 <printf@plt>
lea    0xed8(%rip),%rsi
lea    0xee2(%rip),%rdx
mov    %rbx,%rdi
xor    %eax,%eax
call   1040 <printf@plt>
lea    0xef6(%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 = [11 x i8] c" -c <N>\00"
@.str.3 = [25 x i8] c"do N queries in parallel\00"
@.str.4 = [14 x i8] c" -h --help\00"
@.str.5 = [16 x i8] c"print this help\00"
@.str.6 = [11 x i8] c" -l <N>\00"
@.str.7 = [27 x i8] c"read ahead at most N lines\00"
@.str.8 = [17 x i8] c" -v --version\00"
@.str.9 = [26 x i8] c"print version information\00"
@.str.10 = [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 ([11 x i8], [11 x i8]* @.str.2, i64 0, i64 0), i8* getelementptr inbounds ([25 x i8], [25 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 ([14 x i8], [14 x i8]* @.str.4, i64 0, i64 0), i8* getelementptr inbounds ([16 x i8], [16 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 ([11 x i8], [11 x i8]* @.str.6, i64 0, i64 0), i8* getelementptr inbounds ([27 x i8], [27 x i8]* @.str.7, i64 0, i64 0))
%6 = 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.8, i64 0, i64 0), i8* getelementptr inbounds ([26 x i8], [26 x i8]* @.str.9, i64 0, i64 0))
%7 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([41 x i8], [41 x i8]* @.str.10, i64 0, i64 0))
ret void
}

LLVM IR (-O2):
@.str.1 = [10 x i8] c"%-17s %s\0A\00"
@.str.2 = [11 x i8] c" -c <N>\00"
@.str.3 = [25 x i8] c"do N queries in parallel\00"
@.str.4 = [14 x i8] c" -h --help\00"
@.str.5 = [16 x i8] c"print this help\00"
@.str.6 = [11 x i8] c" -l <N>\00"
@.str.7 = [27 x i8] c"read ahead at most N lines\00"
@.str.8 = [17 x i8] c" -v --version\00"
@.str.9 = [26 x i8] c"print version information\00"
@str = [11 x i8] c"\0A Options:\00"
@str.11 = [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 ([11 x i8], [11 x i8]* @.str.2, i64 0, i64 0), i8* getelementptr inbounds ([25 x i8], [25 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 ([14 x i8], [14 x i8]* @.str.4, i64 0, i64 0), i8* getelementptr inbounds ([16 x i8], [16 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 ([11 x i8], [11 x i8]* @.str.6, i64 0, i64 0), i8* getelementptr inbounds ([27 x i8], [27 x i8]* @.str.7, i64 0, i64 0))
%6 = 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.8, i64 0, i64 0), i8* getelementptr inbounds ([26 x i8], [26 x i8]* @.str.9, i64 0, i64 0))
%7 = tail call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([40 x i8], [40 x i8]* @str.11, i64 0, i64 0))
ret void
}