#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*/ pst_debug(int, char *, char *);
int /*<<< orphan*/ pst_debug_func(char *);
int /*<<< orphan*/ pst_debug_func_ret();
int /*<<< orphan*/ version();
void usage(char *prog_name) {
  {
    pst_debug_func("usage");
    pst_debug(150,
              "/scratch/repos/new/home/jordi_armengol_estape/c-scraper/outputs/"
              "2022-01-22/02-19-57/repos/Distrotech/libpst/refs/heads/master/"
              "src/lspst.c",
              "Entering function\n");
  };
  version();
  printf("Usage: %s [OPTIONS] {PST FILENAME}\n", prog_name);
  printf("OPTIONS:\n");
  printf("\t-d <filename> \t- Debug to file. This is a binary log. Use readlog "
         "to print it\n");
  printf("\t-h\t- Help. This screen\n");
  printf("\t-V\t- Version. Display program version\n");
  {
    pst_debug(157,
              "/scratch/repos/new/home/jordi_armengol_estape/c-scraper/outputs/"
              "2022-01-22/02-19-57/repos/Distrotech/libpst/refs/heads/master/"
              "src/lspst.c",
              "Leaving function\n");
    pst_debug_func_ret();
  };
}


x86 assembly (clang, -O0):
<usage>:
push   %rbp
mov    %rsp,%rbp
sub    $0x10,%rsp
mov    %rdi,-0x8(%rbp)
lea    0xe9d(%rip),%rdi
call   1060 <pst_debug_func@plt>
mov    $0x96,%edi
lea    0xe92(%rip),%rsi
lea    0xf15(%rip),%rdx
call   1040 <pst_debug@plt>
mov    $0x0,%al
call   1050 <version@plt>
mov    -0x8(%rbp),%rsi
lea    0xf11(%rip),%rdi
mov    $0x0,%al
call   1030 <printf@plt>
lea    0xf27(%rip),%rdi
mov    $0x0,%al
call   1030 <printf@plt>
lea    0xf23(%rip),%rdi
mov    $0x0,%al
call   1030 <printf@plt>
lea    0xf65(%rip),%rdi
mov    $0x0,%al
call   1030 <printf@plt>
lea    0xf70(%rip),%rdi
mov    $0x0,%al
call   1030 <printf@plt>
mov    $0x9d,%edi
lea    0xe29(%rip),%rsi
lea    0xf7e(%rip),%rdx
call   1040 <pst_debug@plt>
mov    $0x0,%al
call   1070 <pst_debug_func_ret@plt>
add    $0x10,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<usage>:
push   %r14
push   %rbx
push   %rax
mov    %rdi,%rbx
lea    0xe92(%rip),%rdi
call   1070 <pst_debug_func@plt>
lea    0xe8c(%rip),%r14
lea    0xf0f(%rip),%rdx
mov    $0x96,%edi
mov    %r14,%rsi
call   1050 <pst_debug@plt>
xor    %eax,%eax
call   1060 <version@plt>
lea    0xf07(%rip),%rdi
mov    %rbx,%rsi
xor    %eax,%eax
call   1040 <printf@plt>
lea    0xf2c(%rip),%rdi
call   1030 <puts@plt>
lea    0xf29(%rip),%rdi
call   1030 <puts@plt>
lea    0xf6c(%rip),%rdi
call   1030 <puts@plt>
lea    0xf78(%rip),%rdi
call   1030 <puts@plt>
lea    0xeea(%rip),%rdx
mov    $0x9d,%edi
mov    %r14,%rsi
call   1050 <pst_debug@plt>
xor    %eax,%eax
add    $0x8,%rsp
pop    %rbx
pop    %r14
jmp    1080 <pst_debug_func_ret@plt>

LLVM IR (-O0):
@.str = [6 x i8] c"usage\00"
@.str.1 = [138 x i8] c"/scratch/repos/new/home/jordi_armengol_estape/c-scraper/outputs/2022-01-22/02-19-57/repos/Distrotech/libpst/refs/heads/master/src/lspst.c\00"
@.str.2 = [19 x i8] c"Entering function\0A\00"
@.str.3 = [36 x i8] c"Usage: %s [OPTIONS] {PST FILENAME}\0A\00"
@.str.4 = [10 x i8] c"OPTIONS:\0A\00"
@.str.5 = [80 x i8] c"\09-d <filename> \09- Debug to file. This is a binary log. Use readlog to print it\0A\00"
@.str.6 = [25 x i8] c"\09-h\09- Help. This screen\0A\00"
@.str.7 = [40 x i8] c"\09-V\09- Version. Display program version\0A\00"
@.str.8 = [18 x i8] c"Leaving function\0A\00"
define void @usage(i8* %0) {
%2 = alloca i8*
store i8* %0, i8** %2
%3 = call i32 @pst_debug_func(i8* getelementptr inbounds ([6 x i8], [6 x i8]* @.str, i64 0, i64 0))
%4 = call i32 @pst_debug(i32 150, i8* getelementptr inbounds ([138 x i8], [138 x i8]* @.str.1, i64 0, i64 0), i8* getelementptr inbounds ([19 x i8], [19 x i8]* @.str.2, i64 0, i64 0))
%5 = call i32 (...) @version()
%6 = load i8*, i8** %2
%7 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([36 x i8], [36 x i8]* @.str.3, i64 0, i64 0), i8* %6)
%8 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([10 x i8], [10 x i8]* @.str.4, i64 0, i64 0))
%9 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([80 x i8], [80 x i8]* @.str.5, i64 0, i64 0))
%10 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([25 x i8], [25 x i8]* @.str.6, i64 0, i64 0))
%11 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([40 x i8], [40 x i8]* @.str.7, i64 0, i64 0))
%12 = call i32 @pst_debug(i32 157, i8* getelementptr inbounds ([138 x i8], [138 x i8]* @.str.1, i64 0, i64 0), i8* getelementptr inbounds ([18 x i8], [18 x i8]* @.str.8, i64 0, i64 0))
%13 = call i32 (...) @pst_debug_func_ret()
ret void
}

LLVM IR (-O2):
@.str = [6 x i8] c"usage\00"
@.str.1 = [138 x i8] c"/scratch/repos/new/home/jordi_armengol_estape/c-scraper/outputs/2022-01-22/02-19-57/repos/Distrotech/libpst/refs/heads/master/src/lspst.c\00"
@.str.2 = [19 x i8] c"Entering function\0A\00"
@.str.3 = [36 x i8] c"Usage: %s [OPTIONS] {PST FILENAME}\0A\00"
@.str.8 = [18 x i8] c"Leaving function\0A\00"
@str = [9 x i8] c"OPTIONS:\00"
@str.9 = [79 x i8] c"\09-d <filename> \09- Debug to file. This is a binary log. Use readlog to print it\00"
@str.10 = [24 x i8] c"\09-h\09- Help. This screen\00"
@str.11 = [39 x i8] c"\09-V\09- Version. Display program version\00"
define void @usage(i8* %0) {
%2 = tail call i32 @pst_debug_func(i8* getelementptr inbounds ([6 x i8], [6 x i8]* @.str, i64 0, i64 0))
%3 = tail call i32 @pst_debug(i32 150, i8* getelementptr inbounds ([138 x i8], [138 x i8]* @.str.1, i64 0, i64 0), i8* getelementptr inbounds ([19 x i8], [19 x i8]* @.str.2, i64 0, i64 0))
%4 = tail call i32 (...) @version()
%5 = tail call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([36 x i8], [36 x i8]* @.str.3, i64 0, i64 0), i8* %0)
%6 = tail call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([9 x i8], [9 x i8]* @str, i64 0, i64 0))
%7 = tail call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([79 x i8], [79 x i8]* @str.9, i64 0, i64 0))
%8 = tail call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([24 x i8], [24 x i8]* @str.10, i64 0, i64 0))
%9 = tail call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([39 x i8], [39 x i8]* @str.11, i64 0, i64 0))
%10 = tail call i32 @pst_debug(i32 157, i8* getelementptr inbounds ([138 x i8], [138 x i8]* @.str.1, i64 0, i64 0), i8* getelementptr inbounds ([18 x i8], [18 x i8]* @.str.8, i64 0, i64 0))
%11 = tail call i32 (...) @pst_debug_func_ret()
ret void
}