#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 usage(void) {
  printf("btproxy - Bluetooth controller proxy\n"
         "Usage:\n");
  printf("\tbtproxy [options]\n");
  printf("Options:\n"
         "\t-c, --connect <address>     Connect to server\n"
         "\t-l, --listen [address]      Use TCP server\n"
         "\t-u, --unix [path]           Use Unix server\n"
         "\t-p, --port <port>           Use specified TCP port\n"
         "\t-i, --index <num>           Use specified controller\n"
         "\t-a, --amp                   Create AMP controller\n"
         "\t-e, --ecc                   Emulate ECC support\n"
         "\t-d, --debug                 Enable debugging output\n"
         "\t-h, --help                  Show help options\n");
}


x86 assembly (clang, -O0):
<usage>:
push   %rbp
mov    %rsp,%rbp
lea    0xee5(%rip),%rdi
call   1030 <printf@plt>
lea    0xf06(%rip),%rdi
call   1030 <printf@plt>
lea    0xf0e(%rip),%rdi
call   1030 <printf@plt>
pop    %rbp
ret

x86 assembly (clang, -O2):
<usage>:
push   %rax
lea    0xee8(%rip),%rdi
call   1030 <puts@plt>
lea    0xf08(%rip),%rdi
call   1030 <puts@plt>
lea    0xf0f(%rip),%rdi
pop    %rax
jmp    1030 <puts@plt>

LLVM IR (-O0):
@.str = [45 x i8] c"btproxy - Bluetooth controller proxy\0AUsage:\0A\00"
@.str.1 = [20 x i8] c"\09btproxy [options]\0A\00"
@.str.2 = [452 x i8] c"Options:\0A\09-c, --connect <address> Connect to server\0A\09-l, --listen [address] Use TCP server\0A\09-u, --unix [path] Use Unix server\0A\09-p, --port <port> Use specified TCP port\0A\09-i, --index <num> Use specified controller\0A\09-a, --amp Create AMP controller\0A\09-e, --ecc Emulate ECC support\0A\09-d, --debug Enable debugging output\0A\09-h, --help Show help options\0A\00"
define void @usage() {
%1 = call i32 @printf(i8* getelementptr inbounds ([45 x i8], [45 x i8]* @.str, i64 0, i64 0))
%2 = call i32 @printf(i8* getelementptr inbounds ([20 x i8], [20 x i8]* @.str.1, i64 0, i64 0))
%3 = call i32 @printf(i8* getelementptr inbounds ([452 x i8], [452 x i8]* @.str.2, i64 0, i64 0))
ret void
}

LLVM IR (-O2):
@str = [44 x i8] c"btproxy - Bluetooth controller proxy\0AUsage:\00"
@str.3 = [19 x i8] c"\09btproxy [options]\00"
@str.4 = [451 x i8] c"Options:\0A\09-c, --connect <address> Connect to server\0A\09-l, --listen [address] Use TCP server\0A\09-u, --unix [path] Use Unix server\0A\09-p, --port <port> Use specified TCP port\0A\09-i, --index <num> Use specified controller\0A\09-a, --amp Create AMP controller\0A\09-e, --ecc Emulate ECC support\0A\09-d, --debug Enable debugging output\0A\09-h, --help Show help options\00"
define void @usage() {
%1 = tail call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([44 x i8], [44 x i8]* @str, i64 0, i64 0))
%2 = tail call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([19 x i8], [19 x i8]* @str.3, i64 0, i64 0))
%3 = tail call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([451 x i8], [451 x i8]* @str.4, i64 0, i64 0))
ret void
}