#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 help(void) {
  printf("\n%s  %s-%s                              %s\n", "bvhsend", "0.1.0",
         "runtime", "24-SEP-2015");
  printf("---------------------------------------------------------------\n");
  printf("Usage: %s port frametime format bvhfile\n", "bvhsend");
  printf("  Ex.: %s 7001 10000 0 example.bvh\n", "bvhsend");
  printf("port     : TCP port number.\n");
  printf("frametime: Delay between each motion line in microseconds.\n");
  printf("           Set to 0 if frame time from BVH file should be used.\n");
  printf("format   : 0 = Just send complete line as it is in BVH file\n");
  printf("           1 = Use Axis Neuron format\n");
  printf("bvhfile  : Name and path of BVH file to be sent.\n");
  printf("---------------------------------------------------------------\n");
  printf("Heiko Fink                                         hfink@web.de\n");
}


x86 assembly (clang, -O0):
<help>:
push   %rbp
mov    %rsp,%rbp
lea    0xee5(%rip),%rdi
lea    0xf0a(%rip),%rsi
lea    0xf0b(%rip),%rdx
lea    0xf0a(%rip),%rcx
lea    0xf0b(%rip),%r8
mov    $0x0,%al
call   1030 <printf@plt>
lea    0xf09(%rip),%rdi
mov    $0x0,%al
call   1030 <printf@plt>
lea    0xf3c(%rip),%rdi
lea    0xed2(%rip),%rsi
mov    $0x0,%al
call   1030 <printf@plt>
lea    0xf50(%rip),%rdi
lea    0xebd(%rip),%rsi
mov    $0x0,%al
call   1030 <printf@plt>
lea    0xf5f(%rip),%rdi
mov    $0x0,%al
call   1030 <printf@plt>
lea    0xf6e(%rip),%rdi
mov    $0x0,%al
call   1030 <printf@plt>
lea    0xf9c(%rip),%rdi
mov    $0x0,%al
call   1030 <printf@plt>
lea    0xfcf(%rip),%rdi
mov    $0x0,%al
call   1030 <printf@plt>
lea    0xffe(%rip),%rdi
mov    $0x0,%al
call   1030 <printf@plt>
lea    0x1017(%rip),%rdi
mov    $0x0,%al
call   1030 <printf@plt>
lea    0xe7d(%rip),%rdi
mov    $0x0,%al
call   1030 <printf@plt>
lea    0x102d(%rip),%rdi
mov    $0x0,%al
call   1030 <printf@plt>
pop    %rbp
ret

x86 assembly (clang, -O2):
<help>:
push   %r14
push   %rbx
push   %rax
lea    0xed5(%rip),%rdi
lea    0xefa(%rip),%rbx
lea    0xefb(%rip),%rdx
lea    0xefa(%rip),%rcx
lea    0xefb(%rip),%r8
mov    %rbx,%rsi
xor    %eax,%eax
call   1040 <printf@plt>
lea    0x106d(%rip),%r14
mov    %r14,%rdi
call   1030 <puts@plt>
lea    0xee7(%rip),%rdi
mov    %rbx,%rsi
xor    %eax,%eax
call   1040 <printf@plt>
lea    0xeff(%rip),%rdi
mov    %rbx,%rsi
xor    %eax,%eax
call   1040 <printf@plt>
lea    0xf12(%rip),%rdi
call   1030 <puts@plt>
lea    0xf22(%rip),%rdi
call   1030 <puts@plt>
lea    0xf51(%rip),%rdi
call   1030 <puts@plt>
lea    0xf85(%rip),%rdi
call   1030 <puts@plt>
lea    0xfb5(%rip),%rdi
call   1030 <puts@plt>
lea    0xfcf(%rip),%rdi
call   1030 <puts@plt>
mov    %r14,%rdi
call   1030 <puts@plt>
lea    0x102c(%rip),%rdi
add    $0x8,%rsp
pop    %rbx
pop    %r14
jmp    1030 <puts@plt>

LLVM IR (-O0):
@.str = [44 x i8] c"\0A%s %s-%s %s\0A\00"
@.str.1 = [8 x i8] c"bvhsend\00"
@.str.2 = [6 x i8] c"0.1.0\00"
@.str.3 = [8 x i8] c"runtime\00"
@.str.4 = [12 x i8] c"24-SEP-2015\00"
@.str.5 = [65 x i8] c"---------------------------------------------------------------\0A\00"
@.str.6 = [41 x i8] c"Usage: %s port frametime format bvhfile\0A\00"
@.str.7 = [36 x i8] c" Ex.: %s 7001 10000 0 example.bvh\0A\00"
@.str.8 = [29 x i8] c"port : TCP port number.\0A\00"
@.str.9 = [60 x i8] c"frametime: Delay between each motion line in microseconds.\0A\00"
@.str.10 = [65 x i8] c" Set to 0 if frame time from BVH file should be used.\0A\00"
@.str.11 = [61 x i8] c"format : 0 = Just send complete line as it is in BVH file\0A\00"
@.str.12 = [39 x i8] c" 1 = Use Axis Neuron format\0A\00"
@.str.13 = [50 x i8] c"bvhfile : Name and path of BVH file to be sent.\0A\00"
@.str.14 = [65 x i8] c"Heiko Fink hfink@web.de\0A\00"
define void @help() {
%1 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([44 x i8], [44 x i8]* @.str, i64 0, i64 0), i8* getelementptr inbounds ([8 x i8], [8 x i8]* @.str.1, i64 0, i64 0), i8* getelementptr inbounds ([6 x i8], [6 x i8]* @.str.2, i64 0, i64 0), i8* getelementptr inbounds ([8 x i8], [8 x i8]* @.str.3, i64 0, i64 0), i8* getelementptr inbounds ([12 x i8], [12 x i8]* @.str.4, i64 0, i64 0))
%2 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([65 x i8], [65 x i8]* @.str.5, i64 0, i64 0))
%3 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([41 x i8], [41 x i8]* @.str.6, i64 0, i64 0), i8* getelementptr inbounds ([8 x i8], [8 x i8]* @.str.1, i64 0, i64 0))
%4 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([36 x i8], [36 x i8]* @.str.7, i64 0, i64 0), i8* getelementptr inbounds ([8 x i8], [8 x i8]* @.str.1, i64 0, i64 0))
%5 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([29 x i8], [29 x i8]* @.str.8, i64 0, i64 0))
%6 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([60 x i8], [60 x i8]* @.str.9, i64 0, i64 0))
%7 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([65 x i8], [65 x i8]* @.str.10, i64 0, i64 0))
%8 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([61 x i8], [61 x i8]* @.str.11, i64 0, i64 0))
%9 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([39 x i8], [39 x i8]* @.str.12, i64 0, i64 0))
%10 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([50 x i8], [50 x i8]* @.str.13, i64 0, i64 0))
%11 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([65 x i8], [65 x i8]* @.str.5, i64 0, i64 0))
%12 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([65 x i8], [65 x i8]* @.str.14, i64 0, i64 0))
ret void
}

LLVM IR (-O2):
@.str = [44 x i8] c"\0A%s %s-%s %s\0A\00"
@.str.1 = [8 x i8] c"bvhsend\00"
@.str.2 = [6 x i8] c"0.1.0\00"
@.str.3 = [8 x i8] c"runtime\00"
@.str.4 = [12 x i8] c"24-SEP-2015\00"
@.str.6 = [41 x i8] c"Usage: %s port frametime format bvhfile\0A\00"
@.str.7 = [36 x i8] c" Ex.: %s 7001 10000 0 example.bvh\0A\00"
@str.15 = [28 x i8] c"port : TCP port number.\00"
@str.16 = [59 x i8] c"frametime: Delay between each motion line in microseconds.\00"
@str.17 = [64 x i8] c" Set to 0 if frame time from BVH file should be used.\00"
@str.18 = [60 x i8] c"format : 0 = Just send complete line as it is in BVH file\00"
@str.19 = [38 x i8] c" 1 = Use Axis Neuron format\00"
@str.20 = [49 x i8] c"bvhfile : Name and path of BVH file to be sent.\00"
@str.21 = [64 x i8] c"---------------------------------------------------------------\00"
@str.22 = [64 x i8] c"Heiko Fink hfink@web.de\00"
define void @help() {
%1 = tail call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([44 x i8], [44 x i8]* @.str, i64 0, i64 0), i8* getelementptr inbounds ([8 x i8], [8 x i8]* @.str.1, i64 0, i64 0), i8* getelementptr inbounds ([6 x i8], [6 x i8]* @.str.2, i64 0, i64 0), i8* getelementptr inbounds ([8 x i8], [8 x i8]* @.str.3, i64 0, i64 0), i8* getelementptr inbounds ([12 x i8], [12 x i8]* @.str.4, i64 0, i64 0))
%2 = tail call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([64 x i8], [64 x i8]* @str.21, i64 0, i64 0))
%3 = tail call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([41 x i8], [41 x i8]* @.str.6, i64 0, i64 0), i8* getelementptr inbounds ([8 x i8], [8 x i8]* @.str.1, i64 0, i64 0))
%4 = tail call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([36 x i8], [36 x i8]* @.str.7, i64 0, i64 0), i8* getelementptr inbounds ([8 x i8], [8 x i8]* @.str.1, i64 0, i64 0))
%5 = tail call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([28 x i8], [28 x i8]* @str.15, i64 0, i64 0))
%6 = tail call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([59 x i8], [59 x i8]* @str.16, i64 0, i64 0))
%7 = tail call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([64 x i8], [64 x i8]* @str.17, i64 0, i64 0))
%8 = tail call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([60 x i8], [60 x i8]* @str.18, i64 0, i64 0))
%9 = tail call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([38 x i8], [38 x i8]* @str.19, i64 0, i64 0))
%10 = tail call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([49 x i8], [49 x i8]* @str.20, i64 0, i64 0))
%11 = tail call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([64 x i8], [64 x i8]* @str.21, i64 0, i64 0))
%12 = tail call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([64 x i8], [64 x i8]* @str.22, i64 0, i64 0))
ret void
}