#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 *);
int /*<<< orphan*/ version();
void usage(void) {
  version();
  printf(
      "Usage: bin2tap [options] file.bin\n\nOptions:\n  -o output_file      "
      "output TAP file\n  -a address          start address of binary file "
      "[32768]\n  -b                  include BASIC loader\n  -c clear_address "
      "   CLEAR address in BASIC loader [24575]\n  -r run_address      address "
      "where to start bin. file for BASIC loader [32768]\n  -cb border_colour  "
      " border colour set by loader [0]\n  -cp paper_colour    paper colour "
      "set by loader [0]\n  -ci ink_colour      ink colour set by loader [7]\n "
      " -d80                create D80 syntax loader\n  -hp | --header-poke "
      "include POKE command for dissabling tape headers\n  -h  | --help        "
      "usage information\n  -w  | --wct         secret bonus\n  -v  | "
      "--version     version info\n\n");
}


x86 assembly (clang, -O0):
<usage>:
push   %rbp
mov    %rsp,%rbp
mov    $0x0,%al
call   1040 <version@plt>
lea    0xece(%rip),%rdi
call   1030 <printf@plt>
pop    %rbp
ret

x86 assembly (clang, -O2):
<usage>:
push   %rax
xor    %eax,%eax
call   1040 <version@plt>
lea    0xed1(%rip),%rdi
pop    %rax
jmp    1030 <puts@plt>

LLVM IR (-O0):
@.str = [712 x i8] c"Usage: bin2tap [options] file.bin\0A\0AOptions:\0A -o output_file output TAP file\0A -a address start address of binary file [32768]\0A -b include BASIC loader\0A -c clear_address CLEAR address in BASIC loader [24575]\0A -r run_address address where to start bin. file for BASIC loader [32768]\0A -cb border_colour border colour set by loader [0]\0A -cp paper_colour paper colour set by loader [0]\0A -ci ink_colour ink colour set by loader [7]\0A -d80 create D80 syntax loader\0A -hp | --header-poke include POKE command for dissabling tape headers\0A -h | --help usage information\0A -w | --wct secret bonus\0A -v | --version version info\0A\0A\00"
define void @usage() {
%1 = call i32 (...) @version()
%2 = call i32 @printf(i8* getelementptr inbounds ([712 x i8], [712 x i8]* @.str, i64 0, i64 0))
ret void
}

LLVM IR (-O2):
@str = [711 x i8] c"Usage: bin2tap [options] file.bin\0A\0AOptions:\0A -o output_file output TAP file\0A -a address start address of binary file [32768]\0A -b include BASIC loader\0A -c clear_address CLEAR address in BASIC loader [24575]\0A -r run_address address where to start bin. file for BASIC loader [32768]\0A -cb border_colour border colour set by loader [0]\0A -cp paper_colour paper colour set by loader [0]\0A -ci ink_colour ink colour set by loader [7]\0A -d80 create D80 syntax loader\0A -hp | --header-poke include POKE command for dissabling tape headers\0A -h | --help usage information\0A -w | --wct secret bonus\0A -v | --version version info\0A\00"
define void @usage() {
%1 = tail call i32 (...) @version()
%2 = tail call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([711 x i8], [711 x i8]* @str, i64 0, i64 0))
ret void
}