#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(char **argv) {
  printf("Usage: %s [-c conf] [-W dir-width] [-w file-width] [-d depth] [-b "
         "base-dir] [-t thread-num]\n",
         argv[0]);
  printf("Optional arguments:\n"
         "	-t, --threads num: number of operating threads\n"
         "	-c, --conf file: conf file to use\n"
         "	-W, --dir-width width: number of dirs per level\n"
         "	-w, --file-width width: number of entries per level\n"
         "	-d, --depth depth: depth of created tree (width dir per)\n"
         "	-n, --no-unlink: don't remove the tree after creating it\n"
         "	-b, --base basedir: base dir to use\n");
}


x86 assembly (clang, -O0):
<print_help>:
push   %rbp
mov    %rsp,%rbp
sub    $0x10,%rsp
mov    %rdi,-0x8(%rbp)
mov    -0x8(%rbp),%rax
mov    (%rax),%rsi
lea    0xed6(%rip),%rdi
mov    $0x0,%al
call   1030 <printf@plt>
lea    0xf25(%rip),%rdi
mov    $0x0,%al
call   1030 <printf@plt>
add    $0x10,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<print_help>:
push   %rax
mov    (%rdi),%rsi
lea    0xed5(%rip),%rdi
xor    %eax,%eax
call   1040 <printf@plt>
lea    0xf24(%rip),%rdi
pop    %rax
jmp    1030 <puts@plt>

LLVM IR (-O0):
@.str = [93 x i8] c"Usage: %s [-c conf] [-W dir-width] [-w file-width] [-d depth] [-b base-dir] [-t thread-num]\0A\00"
@.str.1 = [359 x i8] c"Optional arguments:\0A\09-t, --threads num: number of operating threads\0A\09-c, --conf file: conf file to use\0A\09-W, --dir-width width: number of dirs per level\0A\09-w, --file-width width: number of entries per level\0A\09-d, --depth depth: depth of created tree (width dir per)\0A\09-n, --no-unlink: don't remove the tree after creating it\0A\09-b, --base basedir: base dir to use\0A\00"
define void @print_help(i8** %0) {
%2 = alloca i8**
store i8** %0, i8*** %2
%3 = load i8**, i8*** %2
%4 = getelementptr inbounds i8*, i8** %3, i64 0
%5 = load i8*, i8** %4
%6 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([93 x i8], [93 x i8]* @.str, i64 0, i64 0), i8* %5)
%7 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([359 x i8], [359 x i8]* @.str.1, i64 0, i64 0))
ret void
}

LLVM IR (-O2):
@.str = [93 x i8] c"Usage: %s [-c conf] [-W dir-width] [-w file-width] [-d depth] [-b base-dir] [-t thread-num]\0A\00"
@str = [358 x i8] c"Optional arguments:\0A\09-t, --threads num: number of operating threads\0A\09-c, --conf file: conf file to use\0A\09-W, --dir-width width: number of dirs per level\0A\09-w, --file-width width: number of entries per level\0A\09-d, --depth depth: depth of created tree (width dir per)\0A\09-n, --no-unlink: don't remove the tree after creating it\0A\09-b, --base basedir: base dir to use\00"
define void @print_help(i8** nocapture %0) {
%2 = load i8*, i8** %0
%3 = tail call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([93 x i8], [93 x i8]* @.str, i64 0, i64 0), i8* %2)
%4 = tail call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([358 x i8], [358 x i8]* @str, i64 0, i64 0))
ret void
}