#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 *, char const *);
void usage(const char *prog) {
  printf("Usage: %s [-h] [-v, --verbose] [-C, --card <cardno>|RED]\n"
         "\t[-V, --version]\n"
         "\t[-X, --cpu <only run on this CPU number>]\n"
         "\t[-D, --debug <create extended debug data on failure>]\n"
         "\t[-G, --use-sglist use the scatter gather list support]\n"
         "\t[-c, --check-result] check result against the software\n"
         "\t[-s, --bufsize <bufsize/default is 4KiB>]\n"
         "\t[-a, --adler32] use adler32 instead of crc32\n"
         "\t[-i, --pgoffs_i <offs>] byte offset for input buffer\n"
         "\t[FILE]...\n"
         "\n"
         "This utility sends memcopy/checksum DDCBs to the application\n"
         "chip unit. The CRC32 is compatible to zlib. The UNIX program\n"
         "cksum is using a different variation of the algorithm.\n\n",
         prog);
}


x86 assembly (clang, -O0):
<usage>:
push   %rbp
mov    %rsp,%rbp
sub    $0x10,%rsp
mov    %rdi,-0x8(%rbp)
mov    -0x8(%rbp),%rsi
lea    0xed9(%rip),%rdi
call   1030 <printf@plt>
add    $0x10,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<usage>:
mov    %rdi,%rsi
lea    0xee6(%rip),%rdi
jmp    1030 <printf@plt>

LLVM IR (-O0):
@.str = [618 x i8] c"Usage: %s [-h] [-v, --verbose] [-C, --card <cardno>|RED]\0A\09[-V, --version]\0A\09[-X, --cpu <only run on this CPU number>]\0A\09[-D, --debug <create extended debug data on failure>]\0A\09[-G, --use-sglist use the scatter gather list support]\0A\09[-c, --check-result] check result against the software\0A\09[-s, --bufsize <bufsize/default is 4KiB>]\0A\09[-a, --adler32] use adler32 instead of crc32\0A\09[-i, --pgoffs_i <offs>] byte offset for input buffer\0A\09[FILE]...\0A\0AThis utility sends memcopy/checksum DDCBs to the application\0Achip unit. The CRC32 is compatible to zlib. The UNIX program\0Acksum is using a different variation of the algorithm.\0A\0A\00"
define void @usage(i8* %0) {
%2 = alloca i8*
store i8* %0, i8** %2
%3 = load i8*, i8** %2
%4 = call i32 @printf(i8* getelementptr inbounds ([618 x i8], [618 x i8]* @.str, i64 0, i64 0), i8* %3)
ret void
}

LLVM IR (-O2):
@.str = [618 x i8] c"Usage: %s [-h] [-v, --verbose] [-C, --card <cardno>|RED]\0A\09[-V, --version]\0A\09[-X, --cpu <only run on this CPU number>]\0A\09[-D, --debug <create extended debug data on failure>]\0A\09[-G, --use-sglist use the scatter gather list support]\0A\09[-c, --check-result] check result against the software\0A\09[-s, --bufsize <bufsize/default is 4KiB>]\0A\09[-a, --adler32] use adler32 instead of crc32\0A\09[-i, --pgoffs_i <offs>] byte offset for input buffer\0A\09[FILE]...\0A\0AThis utility sends memcopy/checksum DDCBs to the application\0Achip unit. The CRC32 is compatible to zlib. The UNIX program\0Acksum is using a different variation of the algorithm.\0A\0A\00"
define void @usage(i8* %0) {
%2 = tail call i32 @printf(i8* getelementptr inbounds ([618 x i8], [618 x i8]* @.str, i64 0, i64 0), i8* %0)
ret void
}