#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 *, char *, char *);
void dinfo_print_usage(char *cmd) {
  printf(""
         "Display specific information about a specified DASD device.\n"
         "\n"
         "Usage: %s [-a] [-u] [-x] [-l] [-e]\n"
         "                {-i <busid> | -b <blockdev> | -d <devnode>}\n"
         "       %s [-h] [-v]\n"
         "\n"
         "where:\n"
         "    -a|--all\n"
         "             same as -u -x -l\n"
         "    -u|--uid\n"
         "             print DASD uid (without z/VM minidisk token)\n"
         "    -x|--extended-uid\n"
         "             print DASD uid (including z/VM minidisk token)\n"
         "    -l|--label\n"
         "             print DASD volume label (volser)\n"
         "    -i|--busid <busid>\n"
         "             bus ID, e.g. 0.0.e910\n"
         "    -b|--block <blockdev>\n"
         "             block device name, e.g. dasdb\n"
         "    -d|--devnode <devnode>\n"
         "             device node, e.g. /dev/dasda\n"
         "    -e|--export\n"
         "             print all values (ID_BUS, ID_TYPE, ID_SERIAL)\n"
         "    -h|--help\n"
         "             prints this usage text\n"
         "    -v|--version\n"
         "             prints the version number\n"
         "\n"
         "Example: %s -u -b dasda\n",
         cmd, cmd, cmd);
}


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

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

LLVM IR (-O0):
@.str = [844 x i8] c"Display specific information about a specified DASD device.\0A\0AUsage: %s [-a] [-u] [-x] [-l] [-e]\0A {-i <busid> | -b <blockdev> | -d <devnode>}\0A %s [-h] [-v]\0A\0Awhere:\0A -a|--all\0A same as -u -x -l\0A -u|--uid\0A print DASD uid (without z/VM minidisk token)\0A -x|--extended-uid\0A print DASD uid (including z/VM minidisk token)\0A -l|--label\0A print DASD volume label (volser)\0A -i|--busid <busid>\0A bus ID, e.g. 0.0.e910\0A -b|--block <blockdev>\0A block device name, e.g. dasdb\0A -d|--devnode <devnode>\0A device node, e.g. /dev/dasda\0A -e|--export\0A print all values (ID_BUS, ID_TYPE, ID_SERIAL)\0A -h|--help\0A prints this usage text\0A -v|--version\0A prints the version number\0A\0AExample: %s -u -b dasda\0A\00"
define void @dinfo_print_usage(i8* %0) {
%2 = alloca i8*
store i8* %0, i8** %2
%3 = load i8*, i8** %2
%4 = load i8*, i8** %2
%5 = load i8*, i8** %2
%6 = call i32 @printf(i8* getelementptr inbounds ([844 x i8], [844 x i8]* @.str, i64 0, i64 0), i8* %3, i8* %4, i8* %5)
ret void
}

LLVM IR (-O2):
@.str = [844 x i8] c"Display specific information about a specified DASD device.\0A\0AUsage: %s [-a] [-u] [-x] [-l] [-e]\0A {-i <busid> | -b <blockdev> | -d <devnode>}\0A %s [-h] [-v]\0A\0Awhere:\0A -a|--all\0A same as -u -x -l\0A -u|--uid\0A print DASD uid (without z/VM minidisk token)\0A -x|--extended-uid\0A print DASD uid (including z/VM minidisk token)\0A -l|--label\0A print DASD volume label (volser)\0A -i|--busid <busid>\0A bus ID, e.g. 0.0.e910\0A -b|--block <blockdev>\0A block device name, e.g. dasdb\0A -d|--devnode <devnode>\0A device node, e.g. /dev/dasda\0A -e|--export\0A print all values (ID_BUS, ID_TYPE, ID_SERIAL)\0A -h|--help\0A prints this usage text\0A -v|--version\0A prints the version number\0A\0AExample: %s -u -b dasda\0A\00"
define void @dinfo_print_usage(i8* %0) {
%2 = tail call i32 @printf(i8* getelementptr inbounds ([844 x i8], [844 x i8]* @.str, i64 0, i64 0), i8* %0, i8* %0, i8* %0)
ret void
}