void usage(void) {
  eprintf(0,
          "%s: "
          "usage: charade [options] [command [arg ...]]\n",
          __func__);
  eprintf(0,
          "%s: "
          "Options:\n",
          __func__);
  eprintf(0,
          "%s: "
          "  -c          Generate C-shell commands on stdout.\n",
          __func__);
  eprintf(0,
          "%s: "
          "  -s          Generate Bourne shell commands on stdout.\n",
          __func__);
  eprintf(0,
          "%s: "
          "  -k          Kill the current agent.\n",
          __func__);
  eprintf(0,
          "%s: "
          "  -d          Don't fork.\n",
          __func__);
  eprintf(0,
          "%s: "
          "  -v [-v ...] More trace output.\n",
          __func__);
  eprintf(0,
          "%s: "
          "  -a socket   Bind agent socket to given name.\n",
          __func__);
  eprintf(0,
          "%s: "
          "  --copyright Print out copyright message & licence.\n",
          __func__);
  exit(1);
}


x86 assembly (clang, -O0):
<usage>:
push   %rbp
mov    %rsp,%rbp
xor    %edi,%edi
lea    0xed3(%rip),%rsi
lea    0xefe(%rip),%rdx
mov    $0x0,%al
call   1030 <eprintf@plt>
xor    %edi,%edi
lea    0xef4(%rip),%rsi
lea    0xee7(%rip),%rdx
mov    $0x0,%al
call   1030 <eprintf@plt>
xor    %edi,%edi
lea    0xeeb(%rip),%rsi
lea    0xed0(%rip),%rdx
mov    $0x0,%al
call   1030 <eprintf@plt>
xor    %edi,%edi
lea    0xf0c(%rip),%rsi
lea    0xeb9(%rip),%rdx
mov    $0x0,%al
call   1030 <eprintf@plt>
xor    %edi,%edi
lea    0xf32(%rip),%rsi
lea    0xea2(%rip),%rdx
mov    $0x0,%al
call   1030 <eprintf@plt>
xor    %edi,%edi
lea    0xf46(%rip),%rsi
lea    0xe8b(%rip),%rdx
mov    $0x0,%al
call   1030 <eprintf@plt>
xor    %edi,%edi
lea    0xf4e(%rip),%rsi
lea    0xe74(%rip),%rdx
mov    $0x0,%al
call   1030 <eprintf@plt>
xor    %edi,%edi
lea    0xf5d(%rip),%rsi
lea    0xe5d(%rip),%rdx
mov    $0x0,%al
call   1030 <eprintf@plt>
xor    %edi,%edi
lea    0xf7a(%rip),%rsi
lea    0xe46(%rip),%rdx
mov    $0x0,%al
call   1030 <eprintf@plt>
mov    $0x1,%edi
call   1040 <exit@plt>

x86 assembly (clang, -O2):
<usage>:
push   %rbx
lea    0xed8(%rip),%rsi
lea    0xf03(%rip),%rbx
xor    %edi,%edi
mov    %rbx,%rdx
xor    %eax,%eax
call   1030 <eprintf@plt>
lea    0xef6(%rip),%rsi
xor    %edi,%edi
mov    %rbx,%rdx
xor    %eax,%eax
call   1030 <eprintf@plt>
lea    0xef1(%rip),%rsi
xor    %edi,%edi
mov    %rbx,%rdx
xor    %eax,%eax
call   1030 <eprintf@plt>
lea    0xf16(%rip),%rsi
xor    %edi,%edi
mov    %rbx,%rdx
xor    %eax,%eax
call   1030 <eprintf@plt>
lea    0xf40(%rip),%rsi
xor    %edi,%edi
mov    %rbx,%rdx
xor    %eax,%eax
call   1030 <eprintf@plt>
lea    0xf58(%rip),%rsi
xor    %edi,%edi
mov    %rbx,%rdx
xor    %eax,%eax
call   1030 <eprintf@plt>
lea    0xf64(%rip),%rsi
xor    %edi,%edi
mov    %rbx,%rdx
xor    %eax,%eax
call   1030 <eprintf@plt>
lea    0xf77(%rip),%rsi
xor    %edi,%edi
mov    %rbx,%rdx
xor    %eax,%eax
call   1030 <eprintf@plt>
lea    0xf98(%rip),%rsi
xor    %edi,%edi
mov    %rbx,%rdx
xor    %eax,%eax
call   1030 <eprintf@plt>
mov    $0x1,%edi
call   1040 <exit@plt>

LLVM IR (-O0):
@.str = [50 x i8] c"%s: usage: charade [options] [command [arg ...]]\0A\00"
@__func__.usage = [6 x i8] c"usage\00"
@.str.1 = [14 x i8] c"%s: Options:\0A\00"
@.str.2 = [56 x i8] c"%s: -c Generate C-shell commands on stdout.\0A\00"
@.str.3 = [61 x i8] c"%s: -s Generate Bourne shell commands on stdout.\0A\00"
@.str.4 = [43 x i8] c"%s: -k Kill the current agent.\0A\00"
@.str.5 = [31 x i8] c"%s: -d Don't fork.\0A\00"
@.str.6 = [38 x i8] c"%s: -v [-v ...] More trace output.\0A\00"
@.str.7 = [52 x i8] c"%s: -a socket Bind agent socket to given name.\0A\00"
@.str.8 = [58 x i8] c"%s: --copyright Print out copyright message & licence.\0A\00"
define void @usage() {
%1 = call i32 (i32, i8*, i8*, ...) bitcast (i32 (...)* @eprintf to i32 (i32, i8*, i8*, ...)*)(i32 0, i8* getelementptr inbounds ([50 x i8], [50 x i8]* @.str, i64 0, i64 0), i8* getelementptr inbounds ([6 x i8], [6 x i8]* @__func__.usage, i64 0, i64 0))
%2 = call i32 (i32, i8*, i8*, ...) bitcast (i32 (...)* @eprintf to i32 (i32, i8*, i8*, ...)*)(i32 0, i8* getelementptr inbounds ([14 x i8], [14 x i8]* @.str.1, i64 0, i64 0), i8* getelementptr inbounds ([6 x i8], [6 x i8]* @__func__.usage, i64 0, i64 0))
%3 = call i32 (i32, i8*, i8*, ...) bitcast (i32 (...)* @eprintf to i32 (i32, i8*, i8*, ...)*)(i32 0, i8* getelementptr inbounds ([56 x i8], [56 x i8]* @.str.2, i64 0, i64 0), i8* getelementptr inbounds ([6 x i8], [6 x i8]* @__func__.usage, i64 0, i64 0))
%4 = call i32 (i32, i8*, i8*, ...) bitcast (i32 (...)* @eprintf to i32 (i32, i8*, i8*, ...)*)(i32 0, i8* getelementptr inbounds ([61 x i8], [61 x i8]* @.str.3, i64 0, i64 0), i8* getelementptr inbounds ([6 x i8], [6 x i8]* @__func__.usage, i64 0, i64 0))
%5 = call i32 (i32, i8*, i8*, ...) bitcast (i32 (...)* @eprintf to i32 (i32, i8*, i8*, ...)*)(i32 0, i8* getelementptr inbounds ([43 x i8], [43 x i8]* @.str.4, i64 0, i64 0), i8* getelementptr inbounds ([6 x i8], [6 x i8]* @__func__.usage, i64 0, i64 0))
%6 = call i32 (i32, i8*, i8*, ...) bitcast (i32 (...)* @eprintf to i32 (i32, i8*, i8*, ...)*)(i32 0, i8* getelementptr inbounds ([31 x i8], [31 x i8]* @.str.5, i64 0, i64 0), i8* getelementptr inbounds ([6 x i8], [6 x i8]* @__func__.usage, i64 0, i64 0))
%7 = call i32 (i32, i8*, i8*, ...) bitcast (i32 (...)* @eprintf to i32 (i32, i8*, i8*, ...)*)(i32 0, i8* getelementptr inbounds ([38 x i8], [38 x i8]* @.str.6, i64 0, i64 0), i8* getelementptr inbounds ([6 x i8], [6 x i8]* @__func__.usage, i64 0, i64 0))
%8 = call i32 (i32, i8*, i8*, ...) bitcast (i32 (...)* @eprintf to i32 (i32, i8*, i8*, ...)*)(i32 0, i8* getelementptr inbounds ([52 x i8], [52 x i8]* @.str.7, i64 0, i64 0), i8* getelementptr inbounds ([6 x i8], [6 x i8]* @__func__.usage, i64 0, i64 0))
%9 = call i32 (i32, i8*, i8*, ...) bitcast (i32 (...)* @eprintf to i32 (i32, i8*, i8*, ...)*)(i32 0, i8* getelementptr inbounds ([58 x i8], [58 x i8]* @.str.8, i64 0, i64 0), i8* getelementptr inbounds ([6 x i8], [6 x i8]* @__func__.usage, i64 0, i64 0))
unreachable
}

LLVM IR (-O2):
@.str = [50 x i8] c"%s: usage: charade [options] [command [arg ...]]\0A\00"
@__func__.usage = [6 x i8] c"usage\00"
@.str.1 = [14 x i8] c"%s: Options:\0A\00"
@.str.2 = [56 x i8] c"%s: -c Generate C-shell commands on stdout.\0A\00"
@.str.3 = [61 x i8] c"%s: -s Generate Bourne shell commands on stdout.\0A\00"
@.str.4 = [43 x i8] c"%s: -k Kill the current agent.\0A\00"
@.str.5 = [31 x i8] c"%s: -d Don't fork.\0A\00"
@.str.6 = [38 x i8] c"%s: -v [-v ...] More trace output.\0A\00"
@.str.7 = [52 x i8] c"%s: -a socket Bind agent socket to given name.\0A\00"
@.str.8 = [58 x i8] c"%s: --copyright Print out copyright message & licence.\0A\00"
define void @usage() {
%1 = tail call i32 (i32, i8*, i8*, ...) bitcast (i32 (...)* @eprintf to i32 (i32, i8*, i8*, ...)*)(i32 0, i8* getelementptr inbounds ([50 x i8], [50 x i8]* @.str, i64 0, i64 0), i8* getelementptr inbounds ([6 x i8], [6 x i8]* @__func__.usage, i64 0, i64 0))
%2 = tail call i32 (i32, i8*, i8*, ...) bitcast (i32 (...)* @eprintf to i32 (i32, i8*, i8*, ...)*)(i32 0, i8* getelementptr inbounds ([14 x i8], [14 x i8]* @.str.1, i64 0, i64 0), i8* getelementptr inbounds ([6 x i8], [6 x i8]* @__func__.usage, i64 0, i64 0))
%3 = tail call i32 (i32, i8*, i8*, ...) bitcast (i32 (...)* @eprintf to i32 (i32, i8*, i8*, ...)*)(i32 0, i8* getelementptr inbounds ([56 x i8], [56 x i8]* @.str.2, i64 0, i64 0), i8* getelementptr inbounds ([6 x i8], [6 x i8]* @__func__.usage, i64 0, i64 0))
%4 = tail call i32 (i32, i8*, i8*, ...) bitcast (i32 (...)* @eprintf to i32 (i32, i8*, i8*, ...)*)(i32 0, i8* getelementptr inbounds ([61 x i8], [61 x i8]* @.str.3, i64 0, i64 0), i8* getelementptr inbounds ([6 x i8], [6 x i8]* @__func__.usage, i64 0, i64 0))
%5 = tail call i32 (i32, i8*, i8*, ...) bitcast (i32 (...)* @eprintf to i32 (i32, i8*, i8*, ...)*)(i32 0, i8* getelementptr inbounds ([43 x i8], [43 x i8]* @.str.4, i64 0, i64 0), i8* getelementptr inbounds ([6 x i8], [6 x i8]* @__func__.usage, i64 0, i64 0))
%6 = tail call i32 (i32, i8*, i8*, ...) bitcast (i32 (...)* @eprintf to i32 (i32, i8*, i8*, ...)*)(i32 0, i8* getelementptr inbounds ([31 x i8], [31 x i8]* @.str.5, i64 0, i64 0), i8* getelementptr inbounds ([6 x i8], [6 x i8]* @__func__.usage, i64 0, i64 0))
%7 = tail call i32 (i32, i8*, i8*, ...) bitcast (i32 (...)* @eprintf to i32 (i32, i8*, i8*, ...)*)(i32 0, i8* getelementptr inbounds ([38 x i8], [38 x i8]* @.str.6, i64 0, i64 0), i8* getelementptr inbounds ([6 x i8], [6 x i8]* @__func__.usage, i64 0, i64 0))
%8 = tail call i32 (i32, i8*, i8*, ...) bitcast (i32 (...)* @eprintf to i32 (i32, i8*, i8*, ...)*)(i32 0, i8* getelementptr inbounds ([52 x i8], [52 x i8]* @.str.7, i64 0, i64 0), i8* getelementptr inbounds ([6 x i8], [6 x i8]* @__func__.usage, i64 0, i64 0))
%9 = tail call i32 (i32, i8*, i8*, ...) bitcast (i32 (...)* @eprintf to i32 (i32, i8*, i8*, ...)*)(i32 0, i8* getelementptr inbounds ([58 x i8], [58 x i8]* @.str.8, i64 0, i64 0), i8* getelementptr inbounds ([6 x i8], [6 x i8]* @__func__.usage, i64 0, i64 0))
tail call void @exit(i32 1)
unreachable
}