#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 *);
void options_print_usage() {
  printf("USAGE:\n");
  printf("door_daemon [-h|--help]                         prints this...\n");
  printf("            [-D|--nodaemonize]                  don't run in "
         "background\n");
  printf(
      "            [-u|--username] <username>          change to this user\n");
  printf(
      "            [-g|--groupname] <groupname>        change to this group\n");
  printf("            [-C|--chroot] <path>                chroot to this "
         "directory\n");
  printf("            [-P|--write-pid] <path>             write pid to this "
         "file\n");
  printf("            [-L|--log] <target>:<level>[,<param1>[,<param2>..]]\n");
  printf("                                                add a log target, "
         "can be invoked several times\n");
  printf("            [-d|--device] <tty device>          the device file e.g. "
         "/dev/door\n");
  printf("            [-s|--command-sock] <unix sock>     the command socket "
         "e.g. /var/run/door_daemon/cmd.sock\n");
}


x86 assembly (clang, -O0):
<options_print_usage>:
push   %rbp
mov    %rsp,%rbp
lea    0xee5(%rip),%rdi
call   1030 <printf@plt>
lea    0xee1(%rip),%rdi
call   1030 <printf@plt>
lea    0xf15(%rip),%rdi
call   1030 <printf@plt>
lea    0xf52(%rip),%rdi
call   1030 <printf@plt>
lea    0xf8b(%rip),%rdi
call   1030 <printf@plt>
lea    0xfc5(%rip),%rdi
call   1030 <printf@plt>
lea    0x1003(%rip),%rdi
call   1030 <printf@plt>
lea    0x103f(%rip),%rdi
call   1030 <printf@plt>
lea    0x1074(%rip),%rdi
call   1030 <printf@plt>
lea    0x10c8(%rip),%rdi
call   1030 <printf@plt>
lea    0x110c(%rip),%rdi
call   1030 <printf@plt>
pop    %rbp
ret

x86 assembly (clang, -O2):
<options_print_usage>:
push   %rax
lea    0xee8(%rip),%rdi
call   1030 <puts@plt>
lea    0xee3(%rip),%rdi
call   1030 <puts@plt>
lea    0xf16(%rip),%rdi
call   1030 <puts@plt>
lea    0xf52(%rip),%rdi
call   1030 <puts@plt>
lea    0xf8a(%rip),%rdi
call   1030 <puts@plt>
lea    0xfc3(%rip),%rdi
call   1030 <puts@plt>
lea    0x1000(%rip),%rdi
call   1030 <puts@plt>
lea    0x103b(%rip),%rdi
call   1030 <puts@plt>
lea    0x106f(%rip),%rdi
call   1030 <puts@plt>
lea    0x10c2(%rip),%rdi
call   1030 <puts@plt>
lea    0x1105(%rip),%rdi
pop    %rax
jmp    1030 <puts@plt>

LLVM IR (-O0):
@.str = [8 x i8] c"USAGE:\0A\00"
@.str.1 = [64 x i8] c"door_daemon [-h|--help] prints this...\0A\00"
@.str.2 = [73 x i8] c" [-D|--nodaemonize] don't run in background\0A\00"
@.str.3 = [69 x i8] c" [-u|--username] <username> change to this user\0A\00"
@.str.4 = [70 x i8] c" [-g|--groupname] <groupname> change to this group\0A\00"
@.str.5 = [74 x i8] c" [-C|--chroot] <path> chroot to this directory\0A\00"
@.str.6 = [72 x i8] c" [-P|--write-pid] <path> write pid to this file\0A\00"
@.str.7 = [65 x i8] c" [-L|--log] <target>:<level>[,<param1>[,<param2>..]]\0A\00"
@.str.8 = [96 x i8] c" add a log target, can be invoked several times\0A\00"
@.str.9 = [80 x i8] c" [-d|--device] <tty device> the device file e.g. /dev/door\0A\00"
@.str.10 = [103 x i8] c" [-s|--command-sock] <unix sock> the command socket e.g. /var/run/door_daemon/cmd.sock\0A\00"
define void @options_print_usage() {
%1 = call i32 @printf(i8* getelementptr inbounds ([8 x i8], [8 x i8]* @.str, i64 0, i64 0))
%2 = call i32 @printf(i8* getelementptr inbounds ([64 x i8], [64 x i8]* @.str.1, i64 0, i64 0))
%3 = call i32 @printf(i8* getelementptr inbounds ([73 x i8], [73 x i8]* @.str.2, i64 0, i64 0))
%4 = call i32 @printf(i8* getelementptr inbounds ([69 x i8], [69 x i8]* @.str.3, i64 0, i64 0))
%5 = call i32 @printf(i8* getelementptr inbounds ([70 x i8], [70 x i8]* @.str.4, i64 0, i64 0))
%6 = call i32 @printf(i8* getelementptr inbounds ([74 x i8], [74 x i8]* @.str.5, i64 0, i64 0))
%7 = call i32 @printf(i8* getelementptr inbounds ([72 x i8], [72 x i8]* @.str.6, i64 0, i64 0))
%8 = call i32 @printf(i8* getelementptr inbounds ([65 x i8], [65 x i8]* @.str.7, i64 0, i64 0))
%9 = call i32 @printf(i8* getelementptr inbounds ([96 x i8], [96 x i8]* @.str.8, i64 0, i64 0))
%10 = call i32 @printf(i8* getelementptr inbounds ([80 x i8], [80 x i8]* @.str.9, i64 0, i64 0))
%11 = call i32 @printf(i8* getelementptr inbounds ([103 x i8], [103 x i8]* @.str.10, i64 0, i64 0))
ret void
}

LLVM IR (-O2):
@str = [7 x i8] c"USAGE:\00"
@str.11 = [63 x i8] c"door_daemon [-h|--help] prints this...\00"
@str.12 = [72 x i8] c" [-D|--nodaemonize] don't run in background\00"
@str.13 = [68 x i8] c" [-u|--username] <username> change to this user\00"
@str.14 = [69 x i8] c" [-g|--groupname] <groupname> change to this group\00"
@str.15 = [73 x i8] c" [-C|--chroot] <path> chroot to this directory\00"
@str.16 = [71 x i8] c" [-P|--write-pid] <path> write pid to this file\00"
@str.17 = [64 x i8] c" [-L|--log] <target>:<level>[,<param1>[,<param2>..]]\00"
@str.18 = [95 x i8] c" add a log target, can be invoked several times\00"
@str.19 = [79 x i8] c" [-d|--device] <tty device> the device file e.g. /dev/door\00"
@str.20 = [102 x i8] c" [-s|--command-sock] <unix sock> the command socket e.g. /var/run/door_daemon/cmd.sock\00"
define void @options_print_usage() {
%1 = tail call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([7 x i8], [7 x i8]* @str, i64 0, i64 0))
%2 = tail call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([63 x i8], [63 x i8]* @str.11, i64 0, i64 0))
%3 = tail call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([72 x i8], [72 x i8]* @str.12, i64 0, i64 0))
%4 = tail call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([68 x i8], [68 x i8]* @str.13, i64 0, i64 0))
%5 = tail call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([69 x i8], [69 x i8]* @str.14, i64 0, i64 0))
%6 = tail call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([73 x i8], [73 x i8]* @str.15, i64 0, i64 0))
%7 = tail call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([71 x i8], [71 x i8]* @str.16, i64 0, i64 0))
%8 = tail call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([64 x i8], [64 x i8]* @str.17, i64 0, i64 0))
%9 = tail call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([95 x i8], [95 x i8]* @str.18, i64 0, i64 0))
%10 = tail call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([79 x i8], [79 x i8]* @str.19, i64 0, i64 0))
%11 = tail call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([102 x i8], [102 x i8]* @str.20, i64 0, i64 0))
ret void
}