#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 *, char *);
int /*<<< orphan*/ stderr;
void command_help(char *command, char *errmsg) {
  fprintf(
      stderr,
      "%s\nUsage:\t%s [OPTIONS...] [<file>]\n"
      "  -d <delay>\ttime in msec after which the sending shall be repeated\n"
      "  -t <time>\ttime in msec until the file shall be sent completely\n"
      "  -i\t\taccept from stdin tripels: <delay> <time> <file>\n\n"
      "Send <file> repeated every <delay> msec evenly distributed within "
      "<time> msec.\n"
      "When omitted, <time> defaults to <delay>. When <delay> is omitted, the "
      "file is\n"
      "sent only once, and <time> must be given. When <file> is ommitted, only "
      "-i must\n"
      "be given, to allow commands be enter through stdin.\n",
      errmsg, command);
}


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

x86 assembly (clang, -O2):
<command_help>:
mov    %rsi,%rdx
mov    %rdi,%rcx
mov    0x2ec3(%rip),%rax
mov    (%rax),%edi
lea    0xeda(%rip),%rsi
jmp    1030 <fprintf@plt>

LLVM IR (-O0):
@stderr = global i32 0
@.str = [515 x i8] c"%s\0AUsage:\09%s [OPTIONS...] [<file>]\0A -d <delay>\09time in msec after which the sending shall be repeated\0A -t <time>\09time in msec until the file shall be sent completely\0A -i\09\09accept from stdin tripels: <delay> <time> <file>\0A\0ASend <file> repeated every <delay> msec evenly distributed within <time> msec.\0AWhen omitted, <time> defaults to <delay>. When <delay> is omitted, the file is\0Asent only once, and <time> must be given. When <file> is ommitted, only -i must\0Abe given, to allow commands be enter through stdin.\0A\00"
define void @command_help(i8* %0, i8* %1) {
%3 = alloca i8*
%4 = alloca i8*
store i8* %0, i8** %3
store i8* %1, i8** %4
%5 = load i32, i32* @stderr
%6 = load i8*, i8** %4
%7 = load i8*, i8** %3
%8 = call i32 @fprintf(i32 %5, i8* getelementptr inbounds ([515 x i8], [515 x i8]* @.str, i64 0, i64 0), i8* %6, i8* %7)
ret void
}

LLVM IR (-O2):
@stderr = global i32 0
@.str = [515 x i8] c"%s\0AUsage:\09%s [OPTIONS...] [<file>]\0A -d <delay>\09time in msec after which the sending shall be repeated\0A -t <time>\09time in msec until the file shall be sent completely\0A -i\09\09accept from stdin tripels: <delay> <time> <file>\0A\0ASend <file> repeated every <delay> msec evenly distributed within <time> msec.\0AWhen omitted, <time> defaults to <delay>. When <delay> is omitted, the file is\0Asent only once, and <time> must be given. When <file> is ommitted, only -i must\0Abe given, to allow commands be enter through stdin.\0A\00"
define void @command_help(i8* %0, i8* %1) {
%3 = load i32, i32* @stderr
%4 = tail call i32 @fprintf(i32 %3, i8* getelementptr inbounds ([515 x i8], [515 x i8]* @.str, i64 0, i64 0), i8* %1, i8* %0)
ret void
}