#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*/ fprintf(int /*<<< orphan*/, char *, char *, char *, char *,
                           char *, char *, char *, char *, char *, char *,
                           char *);
int /*<<< orphan*/ stderr;
void display_help() {
  fprintf(stderr, "Usage: %s [%s]...\n%s\n\n%s\n%s\n%s\n%s\n%s\n%s\n%s\n ",
          "data_printer", "OPTIONS",
          "Print data amount from log file to stdout. Parameter -p mandatory.",
          "  -p, --path\tmust be followed by a path to single file with data "
          "logs, it's mandatory parameter",
          "  -t, --total\tprint total amount for data (download + upload)",
          "  -l, --less\tprint only numbers with units without the "
          "Down/Up/Total strings",
          "  -L, --LESS\tprint only number with no units",
          "  -c, --csv\tprint in .csv format",
          "  -kb, -mb, -gb\tprint in kilobytes, megabytes or gigabytes "
          "respectively, these are mutually exclusive",
          "  -h, --help\tdisplay usage information");
}


x86 assembly (clang, -O0):
<display_help>:
push   %rbp
mov    %rsp,%rbp
push   %r15
push   %r14
push   %rbx
sub    $0x38,%rsp
mov    0x2ebc(%rip),%rax
mov    (%rax),%edi
lea    0xed3(%rip),%rsi
lea    0xef9(%rip),%rdx
lea    0xeff(%rip),%rcx
lea    0xf00(%rip),%r8
lea    0xf3c(%rip),%r9
lea    0xf95(%rip),%r15
lea    0xfcc(%rip),%r14
lea    0x1012(%rip),%rbx
lea    0x1038(%rip),%r11
lea    0x1052(%rip),%r10
lea    0x10b1(%rip),%rax
mov    %r15,(%rsp)
mov    %r14,0x8(%rsp)
mov    %rbx,0x10(%rsp)
mov    %r11,0x18(%rsp)
mov    %r10,0x20(%rsp)
mov    %rax,0x28(%rsp)
call   1030 <fprintf@plt>
add    $0x38,%rsp
pop    %rbx
pop    %r14
pop    %r15
pop    %rbp
ret

x86 assembly (clang, -O2):
<display_help>:
push   %r15
push   %r14
push   %rbx
mov    0x2ec4(%rip),%rax
mov    (%rax),%edi
lea    0x10ff(%rip),%rax
lea    0x1092(%rip),%r10
lea    0x106a(%rip),%r11
lea    0x1036(%rip),%rbx
lea    0xfe2(%rip),%r14
lea    0xf9d(%rip),%r15
lea    0xeb1(%rip),%rsi
lea    0xed7(%rip),%rdx
lea    0xedd(%rip),%rcx
lea    0xede(%rip),%r8
lea    0xf1a(%rip),%r9
push   %rax
push   %r10
push   %r11
push   %rbx
push   %r14
push   %r15
call   1030 <fprintf@plt>
add    $0x30,%rsp
pop    %rbx
pop    %r14
pop    %r15
ret

LLVM IR (-O0):
@stderr = global i32 0
@.str = [45 x i8] c"Usage: %s [%s]...\0A%s\0A\0A%s\0A%s\0A%s\0A%s\0A%s\0A%s\0A%s\0A \00"
@.str.1 = [13 x i8] c"data_printer\00"
@.str.2 = [8 x i8] c"OPTIONS\00"
@.str.3 = [67 x i8] c"Print data amount from log file to stdout. Parameter -p mandatory.\00"
@.str.4 = [96 x i8] c" -p, --path\09must be followed by a path to single file with data logs, it's mandatory parameter\00"
@.str.5 = [62 x i8] c" -t, --total\09print total amount for data (download + upload)\00"
@.str.6 = [77 x i8] c" -l, --less\09print only numbers with units without the Down/Up/Total strings\00"
@.str.7 = [45 x i8] c" -L, --LESS\09print only number with no units\00"
@.str.8 = [33 x i8] c" -c, --csv\09print in .csv format\00"
@.str.9 = [102 x i8] c" -kb, -mb, -gb\09print in kilobytes, megabytes or gigabytes respectively, these are mutually exclusive\00"
@.str.10 = [39 x i8] c" -h, --help\09display usage information\00"
define void @display_help() {
%1 = load i32, i32* @stderr
%2 = call i32 @fprintf(i32 %1, i8* getelementptr inbounds ([45 x i8], [45 x i8]* @.str, i64 0, i64 0), i8* getelementptr inbounds ([13 x i8], [13 x i8]* @.str.1, i64 0, i64 0), i8* getelementptr inbounds ([8 x i8], [8 x i8]* @.str.2, i64 0, i64 0), i8* getelementptr inbounds ([67 x i8], [67 x i8]* @.str.3, i64 0, i64 0), i8* getelementptr inbounds ([96 x i8], [96 x i8]* @.str.4, i64 0, i64 0), i8* getelementptr inbounds ([62 x i8], [62 x i8]* @.str.5, i64 0, i64 0), i8* getelementptr inbounds ([77 x i8], [77 x i8]* @.str.6, i64 0, i64 0), i8* getelementptr inbounds ([45 x i8], [45 x i8]* @.str.7, i64 0, i64 0), i8* getelementptr inbounds ([33 x i8], [33 x i8]* @.str.8, i64 0, i64 0), i8* getelementptr inbounds ([102 x i8], [102 x i8]* @.str.9, i64 0, i64 0), i8* getelementptr inbounds ([39 x i8], [39 x i8]* @.str.10, i64 0, i64 0))
ret void
}

LLVM IR (-O2):
@stderr = global i32 0
@.str = [45 x i8] c"Usage: %s [%s]...\0A%s\0A\0A%s\0A%s\0A%s\0A%s\0A%s\0A%s\0A%s\0A \00"
@.str.1 = [13 x i8] c"data_printer\00"
@.str.2 = [8 x i8] c"OPTIONS\00"
@.str.3 = [67 x i8] c"Print data amount from log file to stdout. Parameter -p mandatory.\00"
@.str.4 = [96 x i8] c" -p, --path\09must be followed by a path to single file with data logs, it's mandatory parameter\00"
@.str.5 = [62 x i8] c" -t, --total\09print total amount for data (download + upload)\00"
@.str.6 = [77 x i8] c" -l, --less\09print only numbers with units without the Down/Up/Total strings\00"
@.str.7 = [45 x i8] c" -L, --LESS\09print only number with no units\00"
@.str.8 = [33 x i8] c" -c, --csv\09print in .csv format\00"
@.str.9 = [102 x i8] c" -kb, -mb, -gb\09print in kilobytes, megabytes or gigabytes respectively, these are mutually exclusive\00"
@.str.10 = [39 x i8] c" -h, --help\09display usage information\00"
define void @display_help() {
%1 = load i32, i32* @stderr
%2 = tail call i32 @fprintf(i32 %1, i8* getelementptr inbounds ([45 x i8], [45 x i8]* @.str, i64 0, i64 0), i8* getelementptr inbounds ([13 x i8], [13 x i8]* @.str.1, i64 0, i64 0), i8* getelementptr inbounds ([8 x i8], [8 x i8]* @.str.2, i64 0, i64 0), i8* getelementptr inbounds ([67 x i8], [67 x i8]* @.str.3, i64 0, i64 0), i8* getelementptr inbounds ([96 x i8], [96 x i8]* @.str.4, i64 0, i64 0), i8* getelementptr inbounds ([62 x i8], [62 x i8]* @.str.5, i64 0, i64 0), i8* getelementptr inbounds ([77 x i8], [77 x i8]* @.str.6, i64 0, i64 0), i8* getelementptr inbounds ([45 x i8], [45 x i8]* @.str.7, i64 0, i64 0), i8* getelementptr inbounds ([33 x i8], [33 x i8]* @.str.8, i64 0, i64 0), i8* getelementptr inbounds ([102 x i8], [102 x i8]* @.str.9, i64 0, i64 0), i8* getelementptr inbounds ([39 x i8], [39 x i8]* @.str.10, i64 0, i64 0))
ret void
}