#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 print_usage(int i) {
  printf("usage: static_hash /i infile /o outfile [/c classname] [/d datatype] "
         "[/l lookupfunction] [/w] [/v]\r\n\r\n"
         "/i infile         - the input file (required)\r\n"
         "/o outfile        - the output file (required)\r\n"
         "/c classname      - the static hash class (optional - defaults to "
         "CStaticHash)\r\n"
         "/d datatype       - the datatype stored in the has (optional - "
         "defaults to char*)\r\n"
         "/l lookupfunction - the name of the generated lookup function "
         "(optional - defaults to Lookup)\r\n"
         "/v                - assume no lookups with invalid keys (optional - "
         "defaults to false)\r\n"
         "/w                - use UNICODE keys\r\n");
  exit(i);
}


x86 assembly (clang, -O0):
<print_usage>:
push   %rbp
mov    %rsp,%rbp
sub    $0x10,%rsp
mov    %edi,-0x4(%rbp)
lea    0xece(%rip),%rdi
call   1030 <printf@plt>
mov    -0x4(%rbp),%edi
call   1040 <exit@plt>

x86 assembly (clang, -O2):
<print_usage>:
push   %rbx
mov    %edi,%ebx
lea    0xed6(%rip),%rdi
call   1030 <puts@plt>
mov    %ebx,%edi
call   1040 <exit@plt>

LLVM IR (-O0):
@.str = [582 x i8] c"usage: static_hash /i infile /o outfile [/c classname] [/d datatype] [/l lookupfunction] [/w] [/v]\0D\0A\0D\0A/i infile - the input file (required)\0D\0A/o outfile - the output file (required)\0D\0A/c classname - the static hash class (optional - defaults to CStaticHash)\0D\0A/d datatype - the datatype stored in the has (optional - defaults to char*)\0D\0A/l lookupfunction - the name of the generated lookup function (optional - defaults to Lookup)\0D\0A/v - assume no lookups with invalid keys (optional - defaults to false)\0D\0A/w - use UNICODE keys\0D\0A\00"
define void @print_usage(i32 %0) {
%2 = alloca i32
store i32 %0, i32* %2
%3 = call i32 @printf(i8* getelementptr inbounds ([582 x i8], [582 x i8]* @.str, i64 0, i64 0))
%4 = load i32, i32* %2
%5 = call i32 @exit(i32 %4)
unreachable
}

LLVM IR (-O2):
@str = [581 x i8] c"usage: static_hash /i infile /o outfile [/c classname] [/d datatype] [/l lookupfunction] [/w] [/v]\0D\0A\0D\0A/i infile - the input file (required)\0D\0A/o outfile - the output file (required)\0D\0A/c classname - the static hash class (optional - defaults to CStaticHash)\0D\0A/d datatype - the datatype stored in the has (optional - defaults to char*)\0D\0A/l lookupfunction - the name of the generated lookup function (optional - defaults to Lookup)\0D\0A/v - assume no lookups with invalid keys (optional - defaults to false)\0D\0A/w - use UNICODE keys\0D\00"
define void @print_usage(i32 %0) {
%2 = tail call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([581 x i8], [581 x i8]* @str, i64 0, i64 0))
%3 = tail call i32 @exit(i32 %0)
unreachable
}