#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 /*<<< orphan*/);
int /*<<< orphan*/ printf(char *);
void help(void) {
  printf("Usage:    bin2c 1.0 <options> [files]\n"
         "   -m     Use macro instead of const variable for size definition\n"
         "   -o     Name of the output file. Write in stdout by default\n"
         "   -d     Name of the header file (.h), not created by default\n"
         "   -h     show this help\n"
         "   -v     show version\n"
         "\n"
         "Description:\n"
         "   Convert 'files' to C arrays for easy inclusion within"
         " your existing code."
         "\n\n"
         "Examples:\n"
         "   bin2c -o foo.c bar.bin\n"
         "       Create 'foo.c' from the contents of 'bar.bin'"
         "\n\n"
         "   bin2c -o foo.c file1 file2\n"
         "       Create 'foo.c' from the contents of 'file' and 'file2'"
         "\n\n"
         "   bin2c -d foo.h -o foo.c bar.bin\n"
         "       Create 'foo.c' and 'foo.h' from the contents of 'bar.bin'"
         "\n");
  exit(0);
}


x86 assembly (clang, -O0):
<help>:
push   %rbp
mov    %rsp,%rbp
lea    0xed5(%rip),%rdi
call   1030 <printf@plt>
xor    %edi,%edi
call   1040 <exit@plt>

x86 assembly (clang, -O2):
<help>:
push   %rax
lea    0xed8(%rip),%rdi
call   1030 <puts@plt>
xor    %edi,%edi
call   1040 <exit@plt>

LLVM IR (-O0):
@.str = [653 x i8] c"Usage: bin2c 1.0 <options> [files]\0A -m Use macro instead of const variable for size definition\0A -o Name of the output file. Write in stdout by default\0A -d Name of the header file (.h), not created by default\0A -h show this help\0A -v show version\0A\0ADescription:\0A Convert 'files' to C arrays for easy inclusion within your existing code.\0A\0AExamples:\0A bin2c -o foo.c bar.bin\0A Create 'foo.c' from the contents of 'bar.bin'\0A\0A bin2c -o foo.c file1 file2\0A Create 'foo.c' from the contents of 'file' and 'file2'\0A\0A bin2c -d foo.h -o foo.c bar.bin\0A Create 'foo.c' and 'foo.h' from the contents of 'bar.bin'\0A\00"
define void @help() {
%1 = call i32 @printf(i8* getelementptr inbounds ([653 x i8], [653 x i8]* @.str, i64 0, i64 0))
%2 = call i32 @exit(i32 0)
unreachable
}

LLVM IR (-O2):
@str = [652 x i8] c"Usage: bin2c 1.0 <options> [files]\0A -m Use macro instead of const variable for size definition\0A -o Name of the output file. Write in stdout by default\0A -d Name of the header file (.h), not created by default\0A -h show this help\0A -v show version\0A\0ADescription:\0A Convert 'files' to C arrays for easy inclusion within your existing code.\0A\0AExamples:\0A bin2c -o foo.c bar.bin\0A Create 'foo.c' from the contents of 'bar.bin'\0A\0A bin2c -o foo.c file1 file2\0A Create 'foo.c' from the contents of 'file' and 'file2'\0A\0A bin2c -d foo.h -o foo.c bar.bin\0A Create 'foo.c' and 'foo.h' from the contents of 'bar.bin'\00"
define void @help() {
%1 = tail call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([652 x i8], [652 x i8]* @str, i64 0, i64 0))
%2 = tail call i32 @exit(i32 0)
unreachable
}