#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 show_usage(int argc, char **argv) {
  printf("Usage: %s [options]\n", argv[0]);
  printf("Options:\n");
  printf("  -h, --help\t Display this message and exit\n");
  printf("  -p, --port [port]\t Listen to [port]\n");
  printf("  -v, --verbose\t Be verbose about what is going on\n");
  printf("  -l, --log [file]\t Log to [file]\n");
  printf("  -d, --daemonize\t Start server as a daemon\n");
  printf("  -e, --events [file]\t Use [file] as event data source\n");
  printf("  -u, --users [file]\t Use [file] as user data source\n");
  printf("  -a, --assistances [file]\t Use [file] as assistance data "
         "source\n");
  printf("  -i, --invitations [file]\t Use [file] as invitation data "
         "source\n");
  printf("\n");
  printf("Author(s):\n");
  printf("  Emilio Cobos Álvarez (<emiliocobos@usal.es>)\n");
}


x86 assembly (clang, -O0):
<show_usage>:
push   %rbp
mov    %rsp,%rbp
sub    $0x10,%rsp
mov    %edi,-0x4(%rbp)
mov    %rsi,-0x10(%rbp)
mov    -0x10(%rbp),%rax
mov    (%rax),%rsi
lea    0xed3(%rip),%rdi
mov    $0x0,%al
call   1030 <printf@plt>
lea    0xeda(%rip),%rdi
mov    $0x0,%al
call   1030 <printf@plt>
lea    0xed6(%rip),%rdi
mov    $0x0,%al
call   1030 <printf@plt>
lea    0xef5(%rip),%rdi
mov    $0x0,%al
call   1030 <printf@plt>
lea    0xf0e(%rip),%rdi
mov    $0x0,%al
call   1030 <printf@plt>
lea    0xf34(%rip),%rdi
mov    $0x0,%al
call   1030 <printf@plt>
lea    0xf49(%rip),%rdi
mov    $0x0,%al
call   1030 <printf@plt>
lea    0xf68(%rip),%rdi
mov    $0x0,%al
call   1030 <printf@plt>
lea    0xf92(%rip),%rdi
mov    $0x0,%al
call   1030 <printf@plt>
lea    0xfba(%rip),%rdi
mov    $0x0,%al
call   1030 <printf@plt>
lea    0xfee(%rip),%rdi
mov    $0x0,%al
call   1030 <printf@plt>
lea    0x105d(%rip),%rdi
mov    $0x0,%al
call   1030 <printf@plt>
lea    0x1014(%rip),%rdi
mov    $0x0,%al
call   1030 <printf@plt>
lea    0x1012(%rip),%rdi
mov    $0x0,%al
call   1030 <printf@plt>
add    $0x10,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<show_usage>:
push   %rax
mov    (%rsi),%rsi
lea    0xec5(%rip),%rdi
xor    %eax,%eax
call   1050 <printf@plt>
lea    0xecc(%rip),%rdi
call   1040 <puts@plt>
lea    0xec9(%rip),%rdi
call   1040 <puts@plt>
lea    0xee9(%rip),%rdi
call   1040 <puts@plt>
lea    0xf03(%rip),%rdi
call   1040 <puts@plt>
lea    0xf2a(%rip),%rdi
call   1040 <puts@plt>
lea    0xf40(%rip),%rdi
call   1040 <puts@plt>
lea    0xf60(%rip),%rdi
call   1040 <puts@plt>
lea    0xf8b(%rip),%rdi
call   1040 <puts@plt>
lea    0xfb4(%rip),%rdi
call   1040 <puts@plt>
lea    0xfe9(%rip),%rdi
call   1040 <puts@plt>
mov    $0xa,%edi
call   1030 <putchar@plt>
lea    0x1014(%rip),%rdi
call   1040 <puts@plt>
lea    0x1013(%rip),%rdi
pop    %rax
jmp    1040 <puts@plt>

LLVM IR (-O0):
@.str = [21 x i8] c"Usage: %s [options]\0A\00"
@.str.1 = [10 x i8] c"Options:\0A\00"
@.str.2 = [45 x i8] c" -h, --help\09 Display this message and exit\0A\00"
@.str.3 = [39 x i8] c" -p, --port [port]\09 Listen to [port]\0A\00"
@.str.4 = [52 x i8] c" -v, --verbose\09 Be verbose about what is going on\0A\00"
@.str.5 = [35 x i8] c" -l, --log [file]\09 Log to [file]\0A\00"
@.str.6 = [45 x i8] c" -d, --daemonize\09 Start server as a daemon\0A\00"
@.str.7 = [56 x i8] c" -e, --events [file]\09 Use [file] as event data source\0A\00"
@.str.8 = [54 x i8] c" -u, --users [file]\09 Use [file] as user data source\0A\00"
@.str.9 = [66 x i8] c" -a, --assistances [file]\09 Use [file] as assistance data source\0A\00"
@.str.10 = [66 x i8] c" -i, --invitations [file]\09 Use [file] as invitation data source\0A\00"
@.str.11 = [2 x i8] c"\0A\00"
@.str.12 = [12 x i8] c"Author(s):\0A\00"
@.str.13 = [49 x i8] c" Emilio Cobos \C3\81lvarez (<emiliocobos@usal.es>)\0A\00"
define void @show_usage(i32 %0, i8** %1) {
%3 = alloca i32
%4 = alloca i8**
store i32 %0, i32* %3
store i8** %1, i8*** %4
%5 = load i8**, i8*** %4
%6 = getelementptr inbounds i8*, i8** %5, i64 0
%7 = load i8*, i8** %6
%8 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([21 x i8], [21 x i8]* @.str, i64 0, i64 0), i8* %7)
%9 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([10 x i8], [10 x i8]* @.str.1, i64 0, i64 0))
%10 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([45 x i8], [45 x i8]* @.str.2, i64 0, i64 0))
%11 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([39 x i8], [39 x i8]* @.str.3, i64 0, i64 0))
%12 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([52 x i8], [52 x i8]* @.str.4, i64 0, i64 0))
%13 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([35 x i8], [35 x i8]* @.str.5, i64 0, i64 0))
%14 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([45 x i8], [45 x i8]* @.str.6, i64 0, i64 0))
%15 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([56 x i8], [56 x i8]* @.str.7, i64 0, i64 0))
%16 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([54 x i8], [54 x i8]* @.str.8, i64 0, i64 0))
%17 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([66 x i8], [66 x i8]* @.str.9, i64 0, i64 0))
%18 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([66 x i8], [66 x i8]* @.str.10, i64 0, i64 0))
%19 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([2 x i8], [2 x i8]* @.str.11, i64 0, i64 0))
%20 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([12 x i8], [12 x i8]* @.str.12, i64 0, i64 0))
%21 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([49 x i8], [49 x i8]* @.str.13, i64 0, i64 0))
ret void
}

LLVM IR (-O2):
@.str = [21 x i8] c"Usage: %s [options]\0A\00"
@str = [9 x i8] c"Options:\00"
@str.14 = [44 x i8] c" -h, --help\09 Display this message and exit\00"
@str.15 = [38 x i8] c" -p, --port [port]\09 Listen to [port]\00"
@str.16 = [51 x i8] c" -v, --verbose\09 Be verbose about what is going on\00"
@str.17 = [34 x i8] c" -l, --log [file]\09 Log to [file]\00"
@str.18 = [44 x i8] c" -d, --daemonize\09 Start server as a daemon\00"
@str.19 = [55 x i8] c" -e, --events [file]\09 Use [file] as event data source\00"
@str.20 = [53 x i8] c" -u, --users [file]\09 Use [file] as user data source\00"
@str.21 = [65 x i8] c" -a, --assistances [file]\09 Use [file] as assistance data source\00"
@str.22 = [65 x i8] c" -i, --invitations [file]\09 Use [file] as invitation data source\00"
@str.23 = [11 x i8] c"Author(s):\00"
@str.24 = [48 x i8] c" Emilio Cobos \C3\81lvarez (<emiliocobos@usal.es>)\00"
define void @show_usage(i32 %0, i8** nocapture %1) {
%3 = load i8*, i8** %1
%4 = tail call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([21 x i8], [21 x i8]* @.str, i64 0, i64 0), i8* %3)
%5 = tail call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([9 x i8], [9 x i8]* @str, i64 0, i64 0))
%6 = tail call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([44 x i8], [44 x i8]* @str.14, i64 0, i64 0))
%7 = tail call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([38 x i8], [38 x i8]* @str.15, i64 0, i64 0))
%8 = tail call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([51 x i8], [51 x i8]* @str.16, i64 0, i64 0))
%9 = tail call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([34 x i8], [34 x i8]* @str.17, i64 0, i64 0))
%10 = tail call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([44 x i8], [44 x i8]* @str.18, i64 0, i64 0))
%11 = tail call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([55 x i8], [55 x i8]* @str.19, i64 0, i64 0))
%12 = tail call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([53 x i8], [53 x i8]* @str.20, i64 0, i64 0))
%13 = tail call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([65 x i8], [65 x i8]* @str.21, i64 0, i64 0))
%14 = tail call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([65 x i8], [65 x i8]* @str.22, i64 0, i64 0))
%15 = tail call i32 @putchar(i32 10)
%16 = tail call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([11 x i8], [11 x i8]* @str.23, i64 0, i64 0))
%17 = tail call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([48 x i8], [48 x i8]* @str.24, i64 0, i64 0))
ret void
}