#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*/ fprintf(int /*<<< orphan*/, char *, char *);
int /*<<< orphan*/ stdout;
void print_usage(char *progname) {
  fprintf(stdout,
          "Usage: %s -d PARALLEL_DEVICE [-F/-f filename] [-D level] [-w delay] "
          "[-R] [-v] [-h]\n"
          "\t-d PARALLEL_DEVICE\tDefine the parallel port to use.\n"
          "\t-D level\t\tLogging verbosity, ranging from 0 to 3\n"
          "\t-w delay\t\tDelay time between parport commands, in uSeconds.\n"
          "\t-f filename\t\tSource filename.\n"
          "\t-F filename\t\tDestination filename.\n"
          "\t-a address\t\tStart address.\n"
          "\t-l length\t\tData length.\n"
          "\t-R\t\t\tPut the card in RUN mode.\n"
          "\t-h\t\t\tPrint this help\n"
          "\t-v\t\t\tPrint version\n",
          progname);
}


x86 assembly (clang, -O0):
<print_usage>:
push   %rbp
mov    %rsp,%rbp
sub    $0x10,%rsp
mov    %rdi,-0x8(%rbp)
mov    0x2ebd(%rip),%rax
mov    (%rax),%edi
mov    -0x8(%rbp),%rdx
lea    0xed0(%rip),%rsi
call   1030 <fprintf@plt>
add    $0x10,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<print_usage>:
mov    %rdi,%rdx
mov    0x2ec6(%rip),%rax
mov    (%rax),%edi
lea    0xedd(%rip),%rsi
jmp    1030 <fprintf@plt>

LLVM IR (-O0):
@stdout = global i32 0
@.str = [442 x i8] c"Usage: %s -d PARALLEL_DEVICE [-F/-f filename] [-D level] [-w delay] [-R] [-v] [-h]\0A\09-d PARALLEL_DEVICE\09Define the parallel port to use.\0A\09-D level\09\09Logging verbosity, ranging from 0 to 3\0A\09-w delay\09\09Delay time between parport commands, in uSeconds.\0A\09-f filename\09\09Source filename.\0A\09-F filename\09\09Destination filename.\0A\09-a address\09\09Start address.\0A\09-l length\09\09Data length.\0A\09-R\09\09\09Put the card in RUN mode.\0A\09-h\09\09\09Print this help\0A\09-v\09\09\09Print version\0A\00"
define void @print_usage(i8* %0) {
%2 = alloca i8*
store i8* %0, i8** %2
%3 = load i32, i32* @stdout
%4 = load i8*, i8** %2
%5 = call i32 @fprintf(i32 %3, i8* getelementptr inbounds ([442 x i8], [442 x i8]* @.str, i64 0, i64 0), i8* %4)
ret void
}

LLVM IR (-O2):
@stdout = global i32 0
@.str = [442 x i8] c"Usage: %s -d PARALLEL_DEVICE [-F/-f filename] [-D level] [-w delay] [-R] [-v] [-h]\0A\09-d PARALLEL_DEVICE\09Define the parallel port to use.\0A\09-D level\09\09Logging verbosity, ranging from 0 to 3\0A\09-w delay\09\09Delay time between parport commands, in uSeconds.\0A\09-f filename\09\09Source filename.\0A\09-F filename\09\09Destination filename.\0A\09-a address\09\09Start address.\0A\09-l length\09\09Data length.\0A\09-R\09\09\09Put the card in RUN mode.\0A\09-h\09\09\09Print this help\0A\09-v\09\09\09Print version\0A\00"
define void @print_usage(i8* %0) {
%2 = load i32, i32* @stdout
%3 = tail call i32 @fprintf(i32 %2, i8* getelementptr inbounds ([442 x i8], [442 x i8]* @.str, i64 0, i64 0), i8* %0)
ret void
}