#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 INT_MAX;
int /*<<< orphan*/ fprintf(int /*<<< orphan*/, char *, ...);
int /*<<< orphan*/ fputs(char *, int /*<<< orphan*/);
int /*<<< orphan*/ stderr;
void print_usage(char **argv) {
  fprintf(stderr, "Usage: %s --max_time TIME --max_memory MEMORY ", argv[0]);
  fputs("[--min_mhard\n HARDNESS] [--iterations ITERATIONS] ", stderr);
  fputs("[--full_hash] [--verbose]\n", stderr);
  fputs("\n", stderr);
  fprintf(stderr, "-t, --max_time TIME");
  fprintf(stderr, "\tUpper bound for expected password-hashing time in \n");
  fprintf(stderr, "\t\t\tseconds(floating point). Max: %d\n", 86400);
  fprintf(stderr, "-m, --max_memory MEMORY");
  fprintf(stderr, "\tUpper bound for memory usage in KiB. Min: %d,\n", 1);
  fprintf(stderr, "\t\t\tMax: %d\n", INT_MAX);
  fprintf(stderr, "-h, --min_mhard HARDNESS");
  fprintf(stderr, "\tLower bound for memory-hardness factor.\n");
  fprintf(stderr, "\t\t\t\tDefault: %d, Min: %d, Max: %d\n", 2, 1, 255);
  fprintf(stderr, "-i, --iterations ITERATIONS");
  fprintf(stderr, "\tNumber of iterations used to determine the\n", stderr);
  fprintf(stderr, "\t\t\t\truntime. Higher values increase stability.\n");
  fprintf(stderr, "\t\t\t\tDefault: %d, Min: %d, Max: %d\n", 3, 1, INT_MAX);
  fprintf(stderr, "-f, --full_hash\tUses a full hash function instead of a ");
  fprintf(stderr, "reduced one for\n\t\tconsecutive calls\n");
  fprintf(stderr, "-v, --verbose\tOutputs progress information\n");
}


x86 assembly (clang, -O0):
<print_usage>:
push   %rbp
mov    %rsp,%rbp
sub    $0x10,%rsp
mov    %rdi,-0x8(%rbp)
mov    0x2ea5(%rip),%rax
mov    (%rax),%edi
mov    -0x8(%rbp),%rax
mov    (%rax),%rdx
lea    0xebd(%rip),%rsi
mov    $0x0,%al
call   1040 <fprintf@plt>
mov    0x2e87(%rip),%rax
mov    (%rax),%esi
lea    0xed5(%rip),%rdi
call   1030 <fputs@plt>
mov    0x2e72(%rip),%rax
mov    (%rax),%esi
lea    0xef3(%rip),%rdi
call   1030 <fputs@plt>
mov    0x2e5d(%rip),%rax
mov    (%rax),%esi
lea    0xf40(%rip),%rdi
call   1030 <fputs@plt>
mov    0x2e48(%rip),%rax
mov    (%rax),%edi
lea    0xee4(%rip),%rsi
mov    $0x0,%al
call   1040 <fprintf@plt>
mov    0x2e31(%rip),%rax
mov    (%rax),%edi
lea    0xee1(%rip),%rsi
mov    $0x0,%al
call   1040 <fprintf@plt>
mov    0x2e1a(%rip),%rax
mov    (%rax),%edi
lea    0xeff(%rip),%rsi
mov    $0x15180,%edx
mov    $0x0,%al
call   1040 <fprintf@plt>
mov    0x2dfe(%rip),%rax
mov    (%rax),%edi
lea    0xf08(%rip),%rsi
mov    $0x0,%al
call   1040 <fprintf@plt>
mov    0x2de7(%rip),%rax
mov    (%rax),%edi
lea    0xf09(%rip),%rsi
mov    $0x1,%edx
mov    $0x0,%al
call   1040 <fprintf@plt>
mov    0x2dcb(%rip),%rax
mov    (%rax),%edi
mov    0x2dd2(%rip),%rax
mov    (%rax),%edx
lea    0xf14(%rip),%rsi
mov    $0x0,%al
call   1040 <fprintf@plt>
mov    0x2dab(%rip),%rax
mov    (%rax),%edi
lea    0xf09(%rip),%rsi
mov    $0x0,%al
call   1040 <fprintf@plt>
mov    0x2d94(%rip),%rax
mov    (%rax),%edi
lea    0xf0b(%rip),%rsi
mov    $0x0,%al
call   1040 <fprintf@plt>
mov    0x2d7d(%rip),%rax
mov    (%rax),%edi
lea    0xf1e(%rip),%rsi
mov    $0x2,%edx
mov    $0x1,%ecx
mov    $0xff,%r8d
mov    $0x0,%al
call   1040 <fprintf@plt>
mov    0x2d56(%rip),%rax
mov    (%rax),%edi
lea    0xf1a(%rip),%rsi
mov    $0x0,%al
call   1040 <fprintf@plt>
mov    0x2d3f(%rip),%rax
mov    (%rax),%edi
mov    0x2d36(%rip),%rax
mov    (%rax),%edx
lea    0xf16(%rip),%rsi
mov    $0x0,%al
call   1040 <fprintf@plt>
mov    0x2d1f(%rip),%rax
mov    (%rax),%edi
lea    0xf2c(%rip),%rsi
mov    $0x0,%al
call   1040 <fprintf@plt>
mov    0x2d08(%rip),%rax
mov    (%rax),%edi
mov    0x2d0f(%rip),%rax
mov    (%rax),%r8d
lea    0xe9f(%rip),%rsi
mov    $0x3,%edx
mov    $0x1,%ecx
mov    $0x0,%al
call   1040 <fprintf@plt>
mov    0x2cdd(%rip),%rax
mov    (%rax),%edi
lea    0xf1a(%rip),%rsi
mov    $0x0,%al
call   1040 <fprintf@plt>
mov    0x2cc6(%rip),%rax
mov    (%rax),%edi
lea    0xf3b(%rip),%rsi
mov    $0x0,%al
call   1040 <fprintf@plt>
mov    0x2caf(%rip),%rax
mov    (%rax),%edi
lea    0xf49(%rip),%rsi
mov    $0x0,%al
call   1040 <fprintf@plt>
add    $0x10,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<print_usage>:
push   %r15
push   %r14
push   %rbx
mov    0x2eac(%rip),%rbx
mov    (%rbx),%eax
mov    (%rdi),%rdx
lea    0xec8(%rip),%rsi
mov    %eax,%edi
xor    %eax,%eax
call   1040 <fprintf@plt>
mov    (%rbx),%esi
lea    0xee5(%rip),%rdi
call   1030 <fputs@plt>
mov    (%rbx),%esi
lea    0xf0a(%rip),%rdi
call   1030 <fputs@plt>
mov    (%rbx),%esi
lea    0xf5e(%rip),%rdi
call   1030 <fputs@plt>
mov    (%rbx),%edi
lea    0xf09(%rip),%rsi
xor    %eax,%eax
call   1040 <fprintf@plt>
mov    (%rbx),%edi
lea    0xf0d(%rip),%rsi
xor    %eax,%eax
call   1040 <fprintf@plt>
mov    (%rbx),%edi
lea    0xf32(%rip),%rsi
mov    $0x15180,%edx
xor    %eax,%eax
call   1040 <fprintf@plt>
mov    (%rbx),%edi
lea    0xf42(%rip),%rsi
xor    %eax,%eax
call   1040 <fprintf@plt>
mov    (%rbx),%edi
lea    0xf4a(%rip),%rsi
mov    $0x1,%edx
xor    %eax,%eax
call   1040 <fprintf@plt>
mov    (%rbx),%edi
mov    0x2e1a(%rip),%r15
mov    (%r15),%edx
lea    0xf5b(%rip),%rsi
xor    %eax,%eax
call   1040 <fprintf@plt>
mov    (%rbx),%edi
lea    0xf57(%rip),%rsi
xor    %eax,%eax
call   1040 <fprintf@plt>
mov    (%rbx),%edi
lea    0xf60(%rip),%rsi
xor    %eax,%eax
call   1040 <fprintf@plt>
mov    (%rbx),%edi
lea    0xf7a(%rip),%r14
mov    %r14,%rsi
mov    $0x2,%edx
mov    $0x1,%ecx
mov    $0xff,%r8d
xor    %eax,%eax
call   1040 <fprintf@plt>
mov    (%rbx),%edi
lea    0xf7a(%rip),%rsi
xor    %eax,%eax
call   1040 <fprintf@plt>
mov    (%rbx),%edi
lea    0xf86(%rip),%rsi
mov    %edi,%edx
xor    %eax,%eax
call   1040 <fprintf@plt>
mov    (%rbx),%edi
lea    0xfa1(%rip),%rsi
xor    %eax,%eax
call   1040 <fprintf@plt>
mov    (%rbx),%edi
mov    (%r15),%r8d
mov    %r14,%rsi
mov    $0x3,%edx
mov    $0x1,%ecx
xor    %eax,%eax
call   1040 <fprintf@plt>
mov    (%rbx),%edi
lea    0xfa8(%rip),%rsi
xor    %eax,%eax
call   1040 <fprintf@plt>
mov    (%rbx),%edi
lea    0xfd0(%rip),%rsi
xor    %eax,%eax
call   1040 <fprintf@plt>
mov    (%rbx),%edi
lea    0xfe5(%rip),%rsi
xor    %eax,%eax
pop    %rbx
pop    %r14
pop    %r15
jmp    1040 <fprintf@plt>

LLVM IR (-O0):
@stderr = global i32 0
@.str = [47 x i8] c"Usage: %s --max_time TIME --max_memory MEMORY \00"
@.str.1 = [51 x i8] c"[--min_mhard\0A HARDNESS] [--iterations ITERATIONS] \00"
@.str.2 = [27 x i8] c"[--full_hash] [--verbose]\0A\00"
@.str.3 = [2 x i8] c"\0A\00"
@.str.4 = [20 x i8] c"-t, --max_time TIME\00"
@.str.5 = [53 x i8] c"\09Upper bound for expected password-hashing time in \0A\00"
@.str.6 = [37 x i8] c"\09\09\09seconds(floating point). Max: %d\0A\00"
@.str.7 = [24 x i8] c"-m, --max_memory MEMORY\00"
@.str.8 = [48 x i8] c"\09Upper bound for memory usage in KiB. Min: %d,\0A\00"
@.str.9 = [12 x i8] c"\09\09\09Max: %d\0A\00"
@INT_MAX = global i32 0
@.str.10 = [25 x i8] c"-h, --min_mhard HARDNESS\00"
@.str.11 = [42 x i8] c"\09Lower bound for memory-hardness factor.\0A\00"
@.str.12 = [35 x i8] c"\09\09\09\09Default: %d, Min: %d, Max: %d\0A\00"
@.str.13 = [28 x i8] c"-i, --iterations ITERATIONS\00"
@.str.14 = [45 x i8] c"\09Number of iterations used to determine the\0A\00"
@.str.15 = [48 x i8] c"\09\09\09\09runtime. Higher values increase stability.\0A\00"
@.str.16 = [56 x i8] c"-f, --full_hash\09Uses a full hash function instead of a \00"
@.str.17 = [37 x i8] c"reduced one for\0A\09\09consecutive calls\0A\00"
@.str.18 = [44 x i8] c"-v, --verbose\09Outputs progress information\0A\00"
define void @print_usage(i8** %0) {
%2 = alloca i8**
store i8** %0, i8*** %2
%3 = load i32, i32* @stderr
%4 = load i8**, i8*** %2
%5 = getelementptr inbounds i8*, i8** %4, i64 0
%6 = load i8*, i8** %5
%7 = call i32 (i32, i8*, ...) @fprintf(i32 %3, i8* getelementptr inbounds ([47 x i8], [47 x i8]* @.str, i64 0, i64 0), i8* %6)
%8 = load i32, i32* @stderr
%9 = call i32 @fputs(i8* getelementptr inbounds ([51 x i8], [51 x i8]* @.str.1, i64 0, i64 0), i32 %8)
%10 = load i32, i32* @stderr
%11 = call i32 @fputs(i8* getelementptr inbounds ([27 x i8], [27 x i8]* @.str.2, i64 0, i64 0), i32 %10)
%12 = load i32, i32* @stderr
%13 = call i32 @fputs(i8* getelementptr inbounds ([2 x i8], [2 x i8]* @.str.3, i64 0, i64 0), i32 %12)
%14 = load i32, i32* @stderr
%15 = call i32 (i32, i8*, ...) @fprintf(i32 %14, i8* getelementptr inbounds ([20 x i8], [20 x i8]* @.str.4, i64 0, i64 0))
%16 = load i32, i32* @stderr
%17 = call i32 (i32, i8*, ...) @fprintf(i32 %16, i8* getelementptr inbounds ([53 x i8], [53 x i8]* @.str.5, i64 0, i64 0))
%18 = load i32, i32* @stderr
%19 = call i32 (i32, i8*, ...) @fprintf(i32 %18, i8* getelementptr inbounds ([37 x i8], [37 x i8]* @.str.6, i64 0, i64 0), i32 86400)
%20 = load i32, i32* @stderr
%21 = call i32 (i32, i8*, ...) @fprintf(i32 %20, i8* getelementptr inbounds ([24 x i8], [24 x i8]* @.str.7, i64 0, i64 0))
%22 = load i32, i32* @stderr
%23 = call i32 (i32, i8*, ...) @fprintf(i32 %22, i8* getelementptr inbounds ([48 x i8], [48 x i8]* @.str.8, i64 0, i64 0), i32 1)
%24 = load i32, i32* @stderr
%25 = load i32, i32* @INT_MAX
%26 = call i32 (i32, i8*, ...) @fprintf(i32 %24, i8* getelementptr inbounds ([12 x i8], [12 x i8]* @.str.9, i64 0, i64 0), i32 %25)
%27 = load i32, i32* @stderr
%28 = call i32 (i32, i8*, ...) @fprintf(i32 %27, i8* getelementptr inbounds ([25 x i8], [25 x i8]* @.str.10, i64 0, i64 0))
%29 = load i32, i32* @stderr
%30 = call i32 (i32, i8*, ...) @fprintf(i32 %29, i8* getelementptr inbounds ([42 x i8], [42 x i8]* @.str.11, i64 0, i64 0))
%31 = load i32, i32* @stderr
%32 = call i32 (i32, i8*, ...) @fprintf(i32 %31, i8* getelementptr inbounds ([35 x i8], [35 x i8]* @.str.12, i64 0, i64 0), i32 2, i32 1, i32 255)
%33 = load i32, i32* @stderr
%34 = call i32 (i32, i8*, ...) @fprintf(i32 %33, i8* getelementptr inbounds ([28 x i8], [28 x i8]* @.str.13, i64 0, i64 0))
%35 = load i32, i32* @stderr
%36 = load i32, i32* @stderr
%37 = call i32 (i32, i8*, ...) @fprintf(i32 %35, i8* getelementptr inbounds ([45 x i8], [45 x i8]* @.str.14, i64 0, i64 0), i32 %36)
%38 = load i32, i32* @stderr
%39 = call i32 (i32, i8*, ...) @fprintf(i32 %38, i8* getelementptr inbounds ([48 x i8], [48 x i8]* @.str.15, i64 0, i64 0))
%40 = load i32, i32* @stderr
%41 = load i32, i32* @INT_MAX
%42 = call i32 (i32, i8*, ...) @fprintf(i32 %40, i8* getelementptr inbounds ([35 x i8], [35 x i8]* @.str.12, i64 0, i64 0), i32 3, i32 1, i32 %41)
%43 = load i32, i32* @stderr
%44 = call i32 (i32, i8*, ...) @fprintf(i32 %43, i8* getelementptr inbounds ([56 x i8], [56 x i8]* @.str.16, i64 0, i64 0))
%45 = load i32, i32* @stderr
%46 = call i32 (i32, i8*, ...) @fprintf(i32 %45, i8* getelementptr inbounds ([37 x i8], [37 x i8]* @.str.17, i64 0, i64 0))
%47 = load i32, i32* @stderr
%48 = call i32 (i32, i8*, ...) @fprintf(i32 %47, i8* getelementptr inbounds ([44 x i8], [44 x i8]* @.str.18, i64 0, i64 0))
ret void
}

LLVM IR (-O2):
@stderr = global i32 0
@.str = [47 x i8] c"Usage: %s --max_time TIME --max_memory MEMORY \00"
@.str.1 = [51 x i8] c"[--min_mhard\0A HARDNESS] [--iterations ITERATIONS] \00"
@.str.2 = [27 x i8] c"[--full_hash] [--verbose]\0A\00"
@.str.3 = [2 x i8] c"\0A\00"
@.str.4 = [20 x i8] c"-t, --max_time TIME\00"
@.str.5 = [53 x i8] c"\09Upper bound for expected password-hashing time in \0A\00"
@.str.6 = [37 x i8] c"\09\09\09seconds(floating point). Max: %d\0A\00"
@.str.7 = [24 x i8] c"-m, --max_memory MEMORY\00"
@.str.8 = [48 x i8] c"\09Upper bound for memory usage in KiB. Min: %d,\0A\00"
@.str.9 = [12 x i8] c"\09\09\09Max: %d\0A\00"
@INT_MAX = global i32 0
@.str.10 = [25 x i8] c"-h, --min_mhard HARDNESS\00"
@.str.11 = [42 x i8] c"\09Lower bound for memory-hardness factor.\0A\00"
@.str.12 = [35 x i8] c"\09\09\09\09Default: %d, Min: %d, Max: %d\0A\00"
@.str.13 = [28 x i8] c"-i, --iterations ITERATIONS\00"
@.str.14 = [45 x i8] c"\09Number of iterations used to determine the\0A\00"
@.str.15 = [48 x i8] c"\09\09\09\09runtime. Higher values increase stability.\0A\00"
@.str.16 = [56 x i8] c"-f, --full_hash\09Uses a full hash function instead of a \00"
@.str.17 = [37 x i8] c"reduced one for\0A\09\09consecutive calls\0A\00"
@.str.18 = [44 x i8] c"-v, --verbose\09Outputs progress information\0A\00"
define void @print_usage(i8** nocapture %0) {
%2 = load i32, i32* @stderr
%3 = load i8*, i8** %0
%4 = tail call i32 (i32, i8*, ...) @fprintf(i32 %2, i8* getelementptr inbounds ([47 x i8], [47 x i8]* @.str, i64 0, i64 0), i8* %3)
%5 = load i32, i32* @stderr
%6 = tail call i32 @fputs(i8* getelementptr inbounds ([51 x i8], [51 x i8]* @.str.1, i64 0, i64 0), i32 %5)
%7 = load i32, i32* @stderr
%8 = tail call i32 @fputs(i8* getelementptr inbounds ([27 x i8], [27 x i8]* @.str.2, i64 0, i64 0), i32 %7)
%9 = load i32, i32* @stderr
%10 = tail call i32 @fputs(i8* getelementptr inbounds ([2 x i8], [2 x i8]* @.str.3, i64 0, i64 0), i32 %9)
%11 = load i32, i32* @stderr
%12 = tail call i32 (i32, i8*, ...) @fprintf(i32 %11, i8* getelementptr inbounds ([20 x i8], [20 x i8]* @.str.4, i64 0, i64 0))
%13 = load i32, i32* @stderr
%14 = tail call i32 (i32, i8*, ...) @fprintf(i32 %13, i8* getelementptr inbounds ([53 x i8], [53 x i8]* @.str.5, i64 0, i64 0))
%15 = load i32, i32* @stderr
%16 = tail call i32 (i32, i8*, ...) @fprintf(i32 %15, i8* getelementptr inbounds ([37 x i8], [37 x i8]* @.str.6, i64 0, i64 0), i32 86400)
%17 = load i32, i32* @stderr
%18 = tail call i32 (i32, i8*, ...) @fprintf(i32 %17, i8* getelementptr inbounds ([24 x i8], [24 x i8]* @.str.7, i64 0, i64 0))
%19 = load i32, i32* @stderr
%20 = tail call i32 (i32, i8*, ...) @fprintf(i32 %19, i8* getelementptr inbounds ([48 x i8], [48 x i8]* @.str.8, i64 0, i64 0), i32 1)
%21 = load i32, i32* @stderr
%22 = load i32, i32* @INT_MAX
%23 = tail call i32 (i32, i8*, ...) @fprintf(i32 %21, i8* getelementptr inbounds ([12 x i8], [12 x i8]* @.str.9, i64 0, i64 0), i32 %22)
%24 = load i32, i32* @stderr
%25 = tail call i32 (i32, i8*, ...) @fprintf(i32 %24, i8* getelementptr inbounds ([25 x i8], [25 x i8]* @.str.10, i64 0, i64 0))
%26 = load i32, i32* @stderr
%27 = tail call i32 (i32, i8*, ...) @fprintf(i32 %26, i8* getelementptr inbounds ([42 x i8], [42 x i8]* @.str.11, i64 0, i64 0))
%28 = load i32, i32* @stderr
%29 = tail call i32 (i32, i8*, ...) @fprintf(i32 %28, i8* getelementptr inbounds ([35 x i8], [35 x i8]* @.str.12, i64 0, i64 0), i32 2, i32 1, i32 255)
%30 = load i32, i32* @stderr
%31 = tail call i32 (i32, i8*, ...) @fprintf(i32 %30, i8* getelementptr inbounds ([28 x i8], [28 x i8]* @.str.13, i64 0, i64 0))
%32 = load i32, i32* @stderr
%33 = tail call i32 (i32, i8*, ...) @fprintf(i32 %32, i8* getelementptr inbounds ([45 x i8], [45 x i8]* @.str.14, i64 0, i64 0), i32 %32)
%34 = load i32, i32* @stderr
%35 = tail call i32 (i32, i8*, ...) @fprintf(i32 %34, i8* getelementptr inbounds ([48 x i8], [48 x i8]* @.str.15, i64 0, i64 0))
%36 = load i32, i32* @stderr
%37 = load i32, i32* @INT_MAX
%38 = tail call i32 (i32, i8*, ...) @fprintf(i32 %36, i8* getelementptr inbounds ([35 x i8], [35 x i8]* @.str.12, i64 0, i64 0), i32 3, i32 1, i32 %37)
%39 = load i32, i32* @stderr
%40 = tail call i32 (i32, i8*, ...) @fprintf(i32 %39, i8* getelementptr inbounds ([56 x i8], [56 x i8]* @.str.16, i64 0, i64 0))
%41 = load i32, i32* @stderr
%42 = tail call i32 (i32, i8*, ...) @fprintf(i32 %41, i8* getelementptr inbounds ([37 x i8], [37 x i8]* @.str.17, i64 0, i64 0))
%43 = load i32, i32* @stderr
%44 = tail call i32 (i32, i8*, ...) @fprintf(i32 %43, i8* getelementptr inbounds ([44 x i8], [44 x i8]* @.str.18, i64 0, i64 0))
ret void
}