#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 *, ...);
void print_help(void) {
  printf("\n usage: \n ------\n");
  printf(" 1. bsearch [OPTIONS] -p <pattern_hex> -f <file_name>\n");
  printf(" 2. bsearch [OPTIONS] -c <command> -f <file_name>\n");
  printf("\n   OPTIONS:\n");
  printf("     -a		search for all occurance\n");
  printf("     -t		text search, treats \"pattern_hex\" as text\n");
  printf("     -c		commands (see COMMAND section below)\n");
  printf("     -o		offset\n");
  printf("\n   COMMANDS:\n");
  printf("     dump	display contents of file with additional options\n");
  printf("     ext4	displays ext4 file system info\n");
  printf("\n\nv%.2f\n", (1.41));
}


x86 assembly (clang, -O0):
<print_help>:
push   %rbp
mov    %rsp,%rbp
lea    0xeed(%rip),%rdi
mov    $0x0,%al
call   1030 <printf@plt>
lea    0xef2(%rip),%rdi
mov    $0x0,%al
call   1030 <printf@plt>
lea    0xf1b(%rip),%rdi
mov    $0x0,%al
call   1030 <printf@plt>
lea    0xf40(%rip),%rdi
mov    $0x0,%al
call   1030 <printf@plt>
lea    0xf40(%rip),%rdi
mov    $0x0,%al
call   1030 <printf@plt>
lea    0xf55(%rip),%rdi
mov    $0x0,%al
call   1030 <printf@plt>
lea    0xf7b(%rip),%rdi
mov    $0x0,%al
call   1030 <printf@plt>
lea    0xf9c(%rip),%rdi
mov    $0x0,%al
call   1030 <printf@plt>
lea    0xf9f(%rip),%rdi
mov    $0x0,%al
call   1030 <printf@plt>
lea    0xfa0(%rip),%rdi
mov    $0x0,%al
call   1030 <printf@plt>
lea    0xfce(%rip),%rdi
mov    $0x0,%al
call   1030 <printf@plt>
lea    0xfea(%rip),%rdi
movsd  0xe43(%rip),%xmm0
mov    $0x1,%al
call   1030 <printf@plt>
pop    %rbp
ret

x86 assembly (clang, -O2):
<print_help>:
push   %rax
lea    0xee9(%rip),%rdi
call   1030 <puts@plt>
lea    0xeef(%rip),%rdi
call   1030 <puts@plt>
lea    0xf19(%rip),%rdi
call   1030 <puts@plt>
lea    0xf3f(%rip),%rdi
call   1030 <puts@plt>
lea    0xf40(%rip),%rdi
call   1030 <puts@plt>
lea    0xf56(%rip),%rdi
call   1030 <puts@plt>
lea    0xf7d(%rip),%rdi
call   1030 <puts@plt>
lea    0xf9f(%rip),%rdi
call   1030 <puts@plt>
lea    0xfa3(%rip),%rdi
call   1030 <puts@plt>
lea    0xfa5(%rip),%rdi
call   1030 <puts@plt>
lea    0xfd4(%rip),%rdi
call   1030 <puts@plt>
lea    0xe5c(%rip),%rdi
movsd  0xe4c(%rip),%xmm0
mov    $0x1,%al
pop    %rcx
jmp    1040 <printf@plt>

LLVM IR (-O0):
@.str = [19 x i8] c"\0A usage: \0A ------\0A\00"
@.str.1 = [55 x i8] c" 1. bsearch [OPTIONS] -p <pattern_hex> -f <file_name>\0A\00"
@.str.2 = [51 x i8] c" 2. bsearch [OPTIONS] -c <command> -f <file_name>\0A\00"
@.str.3 = [14 x i8] c"\0A OPTIONS:\0A\00"
@.str.4 = [35 x i8] c" -a\09\09search for all occurance\0A\00"
@.str.5 = [52 x i8] c" -t\09\09text search, treats \22pattern_hex\22 as text\0A\00"
@.str.6 = [47 x i8] c" -c\09\09commands (see COMMAND section below)\0A\00"
@.str.7 = [17 x i8] c" -o\09\09offset\0A\00"
@.str.8 = [15 x i8] c"\0A COMMANDS:\0A\00"
@.str.9 = [60 x i8] c" dump\09display contents of file with additional options\0A\00"
@.str.10 = [42 x i8] c" ext4\09displays ext4 file system info\0A\00"
@.str.11 = [9 x i8] c"\0A\0Av%.2f\0A\00"
define void @print_help() {
%1 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([19 x i8], [19 x i8]* @.str, i64 0, i64 0))
%2 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([55 x i8], [55 x i8]* @.str.1, i64 0, i64 0))
%3 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([51 x i8], [51 x i8]* @.str.2, i64 0, i64 0))
%4 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([14 x i8], [14 x i8]* @.str.3, i64 0, i64 0))
%5 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([35 x i8], [35 x i8]* @.str.4, i64 0, i64 0))
%6 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([52 x i8], [52 x i8]* @.str.5, i64 0, i64 0))
%7 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([47 x i8], [47 x i8]* @.str.6, i64 0, i64 0))
%8 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([17 x i8], [17 x i8]* @.str.7, i64 0, i64 0))
%9 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([15 x i8], [15 x i8]* @.str.8, i64 0, i64 0))
%10 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([60 x i8], [60 x i8]* @.str.9, i64 0, i64 0))
%11 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([42 x i8], [42 x i8]* @.str.10, i64 0, i64 0))
%12 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([9 x i8], [9 x i8]* @.str.11, i64 0, i64 0), double 1.410000e+00)
ret void
}

LLVM IR (-O2):
@.str.11 = [9 x i8] c"\0A\0Av%.2f\0A\00"
@str = [18 x i8] c"\0A usage: \0A ------\00"
@str.12 = [54 x i8] c" 1. bsearch [OPTIONS] -p <pattern_hex> -f <file_name>\00"
@str.13 = [50 x i8] c" 2. bsearch [OPTIONS] -c <command> -f <file_name>\00"
@str.14 = [13 x i8] c"\0A OPTIONS:\00"
@str.15 = [34 x i8] c" -a\09\09search for all occurance\00"
@str.16 = [51 x i8] c" -t\09\09text search, treats \22pattern_hex\22 as text\00"
@str.17 = [46 x i8] c" -c\09\09commands (see COMMAND section below)\00"
@str.18 = [16 x i8] c" -o\09\09offset\00"
@str.19 = [14 x i8] c"\0A COMMANDS:\00"
@str.20 = [59 x i8] c" dump\09display contents of file with additional options\00"
@str.21 = [41 x i8] c" ext4\09displays ext4 file system info\00"
define void @print_help() {
%1 = tail call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([18 x i8], [18 x i8]* @str, i64 0, i64 0))
%2 = tail call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([54 x i8], [54 x i8]* @str.12, i64 0, i64 0))
%3 = tail call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([50 x i8], [50 x i8]* @str.13, i64 0, i64 0))
%4 = tail call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([13 x i8], [13 x i8]* @str.14, i64 0, i64 0))
%5 = tail call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([34 x i8], [34 x i8]* @str.15, i64 0, i64 0))
%6 = tail call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([51 x i8], [51 x i8]* @str.16, i64 0, i64 0))
%7 = tail call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([46 x i8], [46 x i8]* @str.17, i64 0, i64 0))
%8 = tail call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([16 x i8], [16 x i8]* @str.18, i64 0, i64 0))
%9 = tail call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([14 x i8], [14 x i8]* @str.19, i64 0, i64 0))
%10 = tail call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([59 x i8], [59 x i8]* @str.20, i64 0, i64 0))
%11 = tail call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([41 x i8], [41 x i8]* @str.21, i64 0, i64 0))
%12 = tail call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([9 x i8], [9 x i8]* @.str.11, i64 0, i64 0), double 1.410000e+00)
ret void
}