#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 my_usage(void) {
  printf("Usage: %s [OPTIONS] [ address [ port ] ]\n", "udp-server");
  printf("Options:\n");
  printf("  -4                        listen on IPv4 addresses only\n");
  printf("  -6                        listen on IPv6 addresses only\n");
  printf("  -h, --help                print this help and exit\n");
  printf("  -V, --version             print version number and exit\n");
  printf("\n");
  return;
}


x86 assembly (clang, -O0):
<my_usage>:
push   %rbp
mov    %rsp,%rbp
lea    0xee5(%rip),%rdi
lea    0xf08(%rip),%rsi
mov    $0x0,%al
call   1030 <printf@plt>
lea    0xf05(%rip),%rdi
mov    $0x0,%al
call   1030 <printf@plt>
lea    0xf01(%rip),%rdi
mov    $0x0,%al
call   1030 <printf@plt>
lea    0xf2e(%rip),%rdi
mov    $0x0,%al
call   1030 <printf@plt>
lea    0xf5b(%rip),%rdi
mov    $0x0,%al
call   1030 <printf@plt>
lea    0xf83(%rip),%rdi
mov    $0x0,%al
call   1030 <printf@plt>
lea    0xec7(%rip),%rdi
mov    $0x0,%al
call   1030 <printf@plt>
pop    %rbp
ret

x86 assembly (clang, -O2):
<my_usage>:
push   %rax
lea    0xec8(%rip),%rdi
lea    0xeeb(%rip),%rsi
xor    %eax,%eax
call   1050 <printf@plt>
lea    0xee8(%rip),%rdi
call   1040 <puts@plt>
lea    0xee5(%rip),%rdi
call   1040 <puts@plt>
lea    0xf13(%rip),%rdi
call   1040 <puts@plt>
lea    0xf41(%rip),%rdi
call   1040 <puts@plt>
lea    0xf6a(%rip),%rdi
call   1040 <puts@plt>
mov    $0xa,%edi
pop    %rax
jmp    1030 <putchar@plt>

LLVM IR (-O0):
@.str = [42 x i8] c"Usage: %s [OPTIONS] [ address [ port ] ]\0A\00"
@.str.1 = [11 x i8] c"udp-server\00"
@.str.2 = [10 x i8] c"Options:\0A\00"
@.str.3 = [59 x i8] c" -4 listen on IPv4 addresses only\0A\00"
@.str.4 = [59 x i8] c" -6 listen on IPv6 addresses only\0A\00"
@.str.5 = [54 x i8] c" -h, --help print this help and exit\0A\00"
@.str.6 = [59 x i8] c" -V, --version print version number and exit\0A\00"
@.str.7 = [2 x i8] c"\0A\00"
define void @my_usage() {
%1 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([42 x i8], [42 x i8]* @.str, i64 0, i64 0), i8* getelementptr inbounds ([11 x i8], [11 x i8]* @.str.1, i64 0, i64 0))
%2 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([10 x i8], [10 x i8]* @.str.2, i64 0, i64 0))
%3 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([59 x i8], [59 x i8]* @.str.3, i64 0, i64 0))
%4 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([59 x i8], [59 x i8]* @.str.4, i64 0, i64 0))
%5 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([54 x i8], [54 x i8]* @.str.5, i64 0, i64 0))
%6 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([59 x i8], [59 x i8]* @.str.6, i64 0, i64 0))
%7 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([2 x i8], [2 x i8]* @.str.7, i64 0, i64 0))
ret void
}

LLVM IR (-O2):
@.str = [42 x i8] c"Usage: %s [OPTIONS] [ address [ port ] ]\0A\00"
@.str.1 = [11 x i8] c"udp-server\00"
@str = [9 x i8] c"Options:\00"
@str.8 = [58 x i8] c" -4 listen on IPv4 addresses only\00"
@str.9 = [58 x i8] c" -6 listen on IPv6 addresses only\00"
@str.10 = [53 x i8] c" -h, --help print this help and exit\00"
@str.11 = [58 x i8] c" -V, --version print version number and exit\00"
define void @my_usage() {
%1 = tail call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([42 x i8], [42 x i8]* @.str, i64 0, i64 0), i8* getelementptr inbounds ([11 x i8], [11 x i8]* @.str.1, i64 0, i64 0))
%2 = tail call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([9 x i8], [9 x i8]* @str, i64 0, i64 0))
%3 = tail call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([58 x i8], [58 x i8]* @str.8, i64 0, i64 0))
%4 = tail call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([58 x i8], [58 x i8]* @str.9, i64 0, i64 0))
%5 = tail call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([53 x i8], [53 x i8]* @str.10, i64 0, i64 0))
%6 = tail call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([58 x i8], [58 x i8]* @str.11, i64 0, i64 0))
%7 = tail call i32 @putchar(i32 10)
ret void
}