#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*/ exit(int);
int /*<<< orphan*/ printf(char *, ...);
void usage(char *argv0) {
  printf("Usage: %s [options] file\n", argv0);
  printf(" options can include:\n"
         " --min-match-bytes <num> (also known as K)\n"
         "      the minimum number of bytes that must match\n"
         " --guarantee-match-bytes <num> (also known as T)\n"
         "      the number of bytes for which we must find a hash collision\n"
         " --show-hashes or --no-show-hashes\n"
         "      output (or don't output) the hash value (default is to output "
         "hashes)\n"
         " --show-offsets or --no-show-offsets\n"
         "      output (or don't output) the offsets value (default is to "
         "output offsets)\n"
         " --hex-offsets or --decimal-offsets\n"
         "      when outputting offsets, output them in hex or decimal\n"
         "      (implies --output-offsets)\n"
         " --show-bytes or --no-show-bytes\n"
         "      output the hashed bytes\n"
         " --output-binary or --no-output-binary\n"
         "      output binary hash records (struct hash)\n");
  exit(1);
}


x86 assembly (clang, -O0):
<usage>:
push   %rbp
mov    %rsp,%rbp
sub    $0x10,%rsp
mov    %rdi,-0x8(%rbp)
mov    -0x8(%rbp),%rsi
lea    0xec9(%rip),%rdi
mov    $0x0,%al
call   1030 <printf@plt>
lea    0xed5(%rip),%rdi
mov    $0x0,%al
call   1030 <printf@plt>
mov    $0x1,%edi
call   1040 <exit@plt>

x86 assembly (clang, -O2):
<usage>:
push   %rax
mov    %rdi,%rsi
lea    0xec5(%rip),%rdi
xor    %eax,%eax
call   1040 <printf@plt>
lea    0xed1(%rip),%rdi
call   1030 <puts@plt>
mov    $0x1,%edi
call   1050 <exit@plt>

LLVM IR (-O0):
@.str = [26 x i8] c"Usage: %s [options] file\0A\00"
@.str.1 = [738 x i8] c" options can include:\0A --min-match-bytes <num> (also known as K)\0A the minimum number of bytes that must match\0A --guarantee-match-bytes <num> (also known as T)\0A the number of bytes for which we must find a hash collision\0A --show-hashes or --no-show-hashes\0A output (or don't output) the hash value (default is to output hashes)\0A --show-offsets or --no-show-offsets\0A output (or don't output) the offsets value (default is to output offsets)\0A --hex-offsets or --decimal-offsets\0A when outputting offsets, output them in hex or decimal\0A (implies --output-offsets)\0A --show-bytes or --no-show-bytes\0A output the hashed bytes\0A --output-binary or --no-output-binary\0A output binary hash records (struct hash)\0A\00"
define void @usage(i8* %0) {
%2 = alloca i8*
store i8* %0, i8** %2
%3 = load i8*, i8** %2
%4 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([26 x i8], [26 x i8]* @.str, i64 0, i64 0), i8* %3)
%5 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([738 x i8], [738 x i8]* @.str.1, i64 0, i64 0))
%6 = call i32 @exit(i32 1)
unreachable
}

LLVM IR (-O2):
@.str = [26 x i8] c"Usage: %s [options] file\0A\00"
@str = [737 x i8] c" options can include:\0A --min-match-bytes <num> (also known as K)\0A the minimum number of bytes that must match\0A --guarantee-match-bytes <num> (also known as T)\0A the number of bytes for which we must find a hash collision\0A --show-hashes or --no-show-hashes\0A output (or don't output) the hash value (default is to output hashes)\0A --show-offsets or --no-show-offsets\0A output (or don't output) the offsets value (default is to output offsets)\0A --hex-offsets or --decimal-offsets\0A when outputting offsets, output them in hex or decimal\0A (implies --output-offsets)\0A --show-bytes or --no-show-bytes\0A output the hashed bytes\0A --output-binary or --no-output-binary\0A output binary hash records (struct hash)\00"
define void @usage(i8* %0) {
%2 = tail call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([26 x i8], [26 x i8]* @.str, i64 0, i64 0), i8* %0)
%3 = tail call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([737 x i8], [737 x i8]* @str, i64 0, i64 0))
%4 = tail call i32 @exit(i32 1)
unreachable
}