#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 */
typedef int uint8_t;
typedef int uint16_t;

/* Variables and functions */
int /*<<< orphan*/ fprintf(int /*<<< orphan*/, char *, ...);
int /*<<< orphan*/ stderr;
void bfdUsage(void) {
  fprintf(stderr, "Usage:\n");
  fprintf(stderr, "\tbfd -p <PeerAddress> [-d] [-m mult] [-r tout] [-t tout] \n"
                  "\t     [-v] [-x <extension>[=<value>]]\n");
  fprintf(stderr, "Where:\n");
  fprintf(stderr,
          "\t-p: create session with 'PeerAddress' (required option)\n");
  fprintf(stderr, "\t-d: toggle demand mode desired (default %s)\n",
          false ? "on" : "off");
  fprintf(stderr, "\t-m mult: detect multiplier (default %d)\n", ((uint8_t)2));
  fprintf(stderr, "\t-r tout: required min rx (default %d)\n", 50000);
  fprintf(stderr, "\t-t tout: desired min tx (default %d)\n", 100000);
  fprintf(stderr, "\t-v: increase level of debug output (can be repeated)\n");
  fprintf(stderr, "\t-x <extension>[=<value>]: configure a specific "
                  "extension\n\t   (no spaces allowed)\n");
  fprintf(stderr, "\t\tPeerPort=<peer UDP port #> (default %d)\n",
          ((uint16_t)3784));
  fprintf(stderr, "\t\tLocalPort=<local UDP port #>\n");
  fprintf(stderr, "\n");
  fprintf(stderr, "Signals:\n");
  fprintf(stderr, "\tUSR1: start poll sequence on all demand mode sessions\n");
  fprintf(stderr, "\tUSR2: toggle admin down on all sessions\n");
}


x86 assembly (clang, -O0):
<bfdUsage>:
push   %rbp
mov    %rsp,%rbp
mov    0x2ec5(%rip),%rax
mov    (%rax),%edi
lea    0xedc(%rip),%rsi
mov    $0x0,%al
call   1030 <fprintf@plt>
mov    0x2eae(%rip),%rax
mov    (%rax),%edi
lea    0xecd(%rip),%rsi
mov    $0x0,%al
call   1030 <fprintf@plt>
mov    0x2e97(%rip),%rax
mov    (%rax),%edi
lea    0xf17(%rip),%rsi
mov    $0x0,%al
call   1030 <fprintf@plt>
mov    0x2e80(%rip),%rax
mov    (%rax),%edi
lea    0xf08(%rip),%rsi
mov    $0x0,%al
call   1030 <fprintf@plt>
mov    0x2e69(%rip),%rax
mov    (%rax),%edi
lea    0xf2b(%rip),%rsi
lea    0xf52(%rip),%rdx
mov    $0x0,%al
call   1030 <fprintf@plt>
mov    0x2e4b(%rip),%rax
mov    (%rax),%edi
lea    0xf3f(%rip),%rsi
mov    $0x2,%edx
mov    $0x0,%al
call   1030 <fprintf@plt>
mov    0x2e2f(%rip),%rax
mov    (%rax),%edi
lea    0xf4d(%rip),%rsi
mov    $0xc350,%edx
mov    $0x0,%al
call   1030 <fprintf@plt>
mov    0x2e13(%rip),%rax
mov    (%rax),%edi
lea    0xf59(%rip),%rsi
mov    $0x186a0,%edx
mov    $0x0,%al
call   1030 <fprintf@plt>
mov    0x2df7(%rip),%rax
mov    (%rax),%edi
lea    0xf64(%rip),%rsi
mov    $0x0,%al
call   1030 <fprintf@plt>
mov    0x2de0(%rip),%rax
mov    (%rax),%edi
lea    0xf84(%rip),%rsi
mov    $0x0,%al
call   1030 <fprintf@plt>
mov    0x2dc9(%rip),%rax
mov    (%rax),%edi
lea    0xfc0(%rip),%rsi
mov    $0xec8,%edx
mov    $0x0,%al
call   1030 <fprintf@plt>
mov    0x2dad(%rip),%rax
mov    (%rax),%edi
lea    0xfcf(%rip),%rsi
mov    $0x0,%al
call   1030 <fprintf@plt>
mov    0x2d96(%rip),%rax
mov    (%rax),%edi
lea    0xfb6(%rip),%rsi
mov    $0x0,%al
call   1030 <fprintf@plt>
mov    0x2d7f(%rip),%rax
mov    (%rax),%edi
lea    0xfc1(%rip),%rsi
mov    $0x0,%al
call   1030 <fprintf@plt>
mov    0x2d68(%rip),%rax
mov    (%rax),%edi
lea    0xfb4(%rip),%rsi
mov    $0x0,%al
call   1030 <fprintf@plt>
mov    0x2d51(%rip),%rax
mov    (%rax),%edi
lea    0xfd5(%rip),%rsi
mov    $0x0,%al
call   1030 <fprintf@plt>
pop    %rbp
ret

x86 assembly (clang, -O2):
<bfdUsage>:
push   %rbx
mov    0x2ec8(%rip),%rbx
mov    (%rbx),%edi
lea    0xedf(%rip),%rsi
xor    %eax,%eax
call   1030 <fprintf@plt>
mov    (%rbx),%edi
lea    0xed7(%rip),%rsi
xor    %eax,%eax
call   1030 <fprintf@plt>
mov    (%rbx),%edi
lea    0xf28(%rip),%rsi
xor    %eax,%eax
call   1030 <fprintf@plt>
mov    (%rbx),%edi
lea    0xf20(%rip),%rsi
xor    %eax,%eax
call   1030 <fprintf@plt>
mov    (%rbx),%edi
lea    0xf4a(%rip),%rsi
lea    0xf71(%rip),%rdx
xor    %eax,%eax
call   1030 <fprintf@plt>
mov    (%rbx),%edi
lea    0xf65(%rip),%rsi
mov    $0x2,%edx
xor    %eax,%eax
call   1030 <fprintf@plt>
mov    (%rbx),%edi
lea    0xf7a(%rip),%rsi
mov    $0xc350,%edx
xor    %eax,%eax
call   1030 <fprintf@plt>
mov    (%rbx),%edi
lea    0xf8d(%rip),%rsi
mov    $0x186a0,%edx
xor    %eax,%eax
call   1030 <fprintf@plt>
mov    (%rbx),%edi
lea    0xf9f(%rip),%rsi
xor    %eax,%eax
call   1030 <fprintf@plt>
mov    (%rbx),%edi
lea    0xfc6(%rip),%rsi
xor    %eax,%eax
call   1030 <fprintf@plt>
mov    (%rbx),%edi
lea    0x1009(%rip),%rsi
mov    $0xec8,%edx
xor    %eax,%eax
call   1030 <fprintf@plt>
mov    (%rbx),%edi
lea    0x101f(%rip),%rsi
xor    %eax,%eax
call   1030 <fprintf@plt>
mov    (%rbx),%edi
lea    0x100d(%rip),%rsi
xor    %eax,%eax
call   1030 <fprintf@plt>
mov    (%rbx),%edi
lea    0x101f(%rip),%rsi
xor    %eax,%eax
call   1030 <fprintf@plt>
mov    (%rbx),%edi
lea    0x1019(%rip),%rsi
xor    %eax,%eax
call   1030 <fprintf@plt>
mov    (%rbx),%edi
lea    0x1041(%rip),%rsi
xor    %eax,%eax
pop    %rbx
jmp    1030 <fprintf@plt>

LLVM IR (-O0):
@stderr = global i32 0
@.str = [8 x i8] c"Usage:\0A\00"
@.str.1 = [97 x i8] c"\09bfd -p <PeerAddress> [-d] [-m mult] [-r tout] [-t tout] \0A\09 [-v] [-x <extension>[=<value>]]\0A\00"
@.str.2 = [8 x i8] c"Where:\0A\00"
@.str.3 = [58 x i8] c"\09-p: create session with 'PeerAddress' (required option)\0A\00"
@.str.4 = [46 x i8] c"\09-d: toggle demand mode desired (default %s)\0A\00"
@.str.5 = [4 x i8] c"off\00"
@.str.6 = [42 x i8] c"\09-m mult: detect multiplier (default %d)\0A\00"
@.str.7 = [40 x i8] c"\09-r tout: required min rx (default %d)\0A\00"
@.str.8 = [39 x i8] c"\09-t tout: desired min tx (default %d)\0A\00"
@.str.9 = [55 x i8] c"\09-v: increase level of debug output (can be repeated)\0A\00"
@.str.10 = [83 x i8] c"\09-x <extension>[=<value>]: configure a specific extension\0A\09 (no spaces allowed)\0A\00"
@.str.11 = [43 x i8] c"\09\09PeerPort=<peer UDP port #> (default %d)\0A\00"
@.str.12 = [32 x i8] c"\09\09LocalPort=<local UDP port #>\0A\00"
@.str.13 = [2 x i8] c"\0A\00"
@.str.14 = [10 x i8] c"Signals:\0A\00"
@.str.15 = [56 x i8] c"\09USR1: start poll sequence on all demand mode sessions\0A\00"
@.str.16 = [42 x i8] c"\09USR2: toggle admin down on all sessions\0A\00"
define void @bfdUsage() {
%1 = load i32, i32* @stderr
%2 = call i32 (i32, i8*, ...) @fprintf(i32 %1, i8* getelementptr inbounds ([8 x i8], [8 x i8]* @.str, i64 0, i64 0))
%3 = load i32, i32* @stderr
%4 = call i32 (i32, i8*, ...) @fprintf(i32 %3, i8* getelementptr inbounds ([97 x i8], [97 x i8]* @.str.1, i64 0, i64 0))
%5 = load i32, i32* @stderr
%6 = call i32 (i32, i8*, ...) @fprintf(i32 %5, i8* getelementptr inbounds ([8 x i8], [8 x i8]* @.str.2, i64 0, i64 0))
%7 = load i32, i32* @stderr
%8 = call i32 (i32, i8*, ...) @fprintf(i32 %7, i8* getelementptr inbounds ([58 x i8], [58 x i8]* @.str.3, i64 0, i64 0))
%9 = load i32, i32* @stderr
%10 = call i32 (i32, i8*, ...) @fprintf(i32 %9, i8* getelementptr inbounds ([46 x i8], [46 x i8]* @.str.4, i64 0, i64 0), i8* getelementptr inbounds ([4 x i8], [4 x i8]* @.str.5, i64 0, i64 0))
%11 = load i32, i32* @stderr
%12 = call i32 (i32, i8*, ...) @fprintf(i32 %11, i8* getelementptr inbounds ([42 x i8], [42 x i8]* @.str.6, i64 0, i64 0), i32 2)
%13 = load i32, i32* @stderr
%14 = call i32 (i32, i8*, ...) @fprintf(i32 %13, i8* getelementptr inbounds ([40 x i8], [40 x i8]* @.str.7, i64 0, i64 0), i32 50000)
%15 = load i32, i32* @stderr
%16 = call i32 (i32, i8*, ...) @fprintf(i32 %15, i8* getelementptr inbounds ([39 x i8], [39 x i8]* @.str.8, i64 0, i64 0), i32 100000)
%17 = load i32, i32* @stderr
%18 = call i32 (i32, i8*, ...) @fprintf(i32 %17, i8* getelementptr inbounds ([55 x i8], [55 x i8]* @.str.9, i64 0, i64 0))
%19 = load i32, i32* @stderr
%20 = call i32 (i32, i8*, ...) @fprintf(i32 %19, i8* getelementptr inbounds ([83 x i8], [83 x i8]* @.str.10, i64 0, i64 0))
%21 = load i32, i32* @stderr
%22 = call i32 (i32, i8*, ...) @fprintf(i32 %21, i8* getelementptr inbounds ([43 x i8], [43 x i8]* @.str.11, i64 0, i64 0), i32 3784)
%23 = load i32, i32* @stderr
%24 = call i32 (i32, i8*, ...) @fprintf(i32 %23, i8* getelementptr inbounds ([32 x i8], [32 x i8]* @.str.12, i64 0, i64 0))
%25 = load i32, i32* @stderr
%26 = call i32 (i32, i8*, ...) @fprintf(i32 %25, i8* getelementptr inbounds ([2 x i8], [2 x i8]* @.str.13, i64 0, i64 0))
%27 = load i32, i32* @stderr
%28 = call i32 (i32, i8*, ...) @fprintf(i32 %27, i8* getelementptr inbounds ([10 x i8], [10 x i8]* @.str.14, i64 0, i64 0))
%29 = load i32, i32* @stderr
%30 = call i32 (i32, i8*, ...) @fprintf(i32 %29, i8* getelementptr inbounds ([56 x i8], [56 x i8]* @.str.15, i64 0, i64 0))
%31 = load i32, i32* @stderr
%32 = call i32 (i32, i8*, ...) @fprintf(i32 %31, i8* getelementptr inbounds ([42 x i8], [42 x i8]* @.str.16, i64 0, i64 0))
ret void
}

LLVM IR (-O2):
@stderr = global i32 0
@.str = [8 x i8] c"Usage:\0A\00"
@.str.1 = [97 x i8] c"\09bfd -p <PeerAddress> [-d] [-m mult] [-r tout] [-t tout] \0A\09 [-v] [-x <extension>[=<value>]]\0A\00"
@.str.2 = [8 x i8] c"Where:\0A\00"
@.str.3 = [58 x i8] c"\09-p: create session with 'PeerAddress' (required option)\0A\00"
@.str.4 = [46 x i8] c"\09-d: toggle demand mode desired (default %s)\0A\00"
@.str.5 = [4 x i8] c"off\00"
@.str.6 = [42 x i8] c"\09-m mult: detect multiplier (default %d)\0A\00"
@.str.7 = [40 x i8] c"\09-r tout: required min rx (default %d)\0A\00"
@.str.8 = [39 x i8] c"\09-t tout: desired min tx (default %d)\0A\00"
@.str.9 = [55 x i8] c"\09-v: increase level of debug output (can be repeated)\0A\00"
@.str.10 = [83 x i8] c"\09-x <extension>[=<value>]: configure a specific extension\0A\09 (no spaces allowed)\0A\00"
@.str.11 = [43 x i8] c"\09\09PeerPort=<peer UDP port #> (default %d)\0A\00"
@.str.12 = [32 x i8] c"\09\09LocalPort=<local UDP port #>\0A\00"
@.str.13 = [2 x i8] c"\0A\00"
@.str.14 = [10 x i8] c"Signals:\0A\00"
@.str.15 = [56 x i8] c"\09USR1: start poll sequence on all demand mode sessions\0A\00"
@.str.16 = [42 x i8] c"\09USR2: toggle admin down on all sessions\0A\00"
define void @bfdUsage() {
%1 = load i32, i32* @stderr
%2 = tail call i32 (i32, i8*, ...) @fprintf(i32 %1, i8* getelementptr inbounds ([8 x i8], [8 x i8]* @.str, i64 0, i64 0))
%3 = load i32, i32* @stderr
%4 = tail call i32 (i32, i8*, ...) @fprintf(i32 %3, i8* getelementptr inbounds ([97 x i8], [97 x i8]* @.str.1, i64 0, i64 0))
%5 = load i32, i32* @stderr
%6 = tail call i32 (i32, i8*, ...) @fprintf(i32 %5, i8* getelementptr inbounds ([8 x i8], [8 x i8]* @.str.2, i64 0, i64 0))
%7 = load i32, i32* @stderr
%8 = tail call i32 (i32, i8*, ...) @fprintf(i32 %7, i8* getelementptr inbounds ([58 x i8], [58 x i8]* @.str.3, i64 0, i64 0))
%9 = load i32, i32* @stderr
%10 = tail call i32 (i32, i8*, ...) @fprintf(i32 %9, i8* getelementptr inbounds ([46 x i8], [46 x i8]* @.str.4, i64 0, i64 0), i8* getelementptr inbounds ([4 x i8], [4 x i8]* @.str.5, i64 0, i64 0))
%11 = load i32, i32* @stderr
%12 = tail call i32 (i32, i8*, ...) @fprintf(i32 %11, i8* getelementptr inbounds ([42 x i8], [42 x i8]* @.str.6, i64 0, i64 0), i32 2)
%13 = load i32, i32* @stderr
%14 = tail call i32 (i32, i8*, ...) @fprintf(i32 %13, i8* getelementptr inbounds ([40 x i8], [40 x i8]* @.str.7, i64 0, i64 0), i32 50000)
%15 = load i32, i32* @stderr
%16 = tail call i32 (i32, i8*, ...) @fprintf(i32 %15, i8* getelementptr inbounds ([39 x i8], [39 x i8]* @.str.8, i64 0, i64 0), i32 100000)
%17 = load i32, i32* @stderr
%18 = tail call i32 (i32, i8*, ...) @fprintf(i32 %17, i8* getelementptr inbounds ([55 x i8], [55 x i8]* @.str.9, i64 0, i64 0))
%19 = load i32, i32* @stderr
%20 = tail call i32 (i32, i8*, ...) @fprintf(i32 %19, i8* getelementptr inbounds ([83 x i8], [83 x i8]* @.str.10, i64 0, i64 0))
%21 = load i32, i32* @stderr
%22 = tail call i32 (i32, i8*, ...) @fprintf(i32 %21, i8* getelementptr inbounds ([43 x i8], [43 x i8]* @.str.11, i64 0, i64 0), i32 3784)
%23 = load i32, i32* @stderr
%24 = tail call i32 (i32, i8*, ...) @fprintf(i32 %23, i8* getelementptr inbounds ([32 x i8], [32 x i8]* @.str.12, i64 0, i64 0))
%25 = load i32, i32* @stderr
%26 = tail call i32 (i32, i8*, ...) @fprintf(i32 %25, i8* getelementptr inbounds ([2 x i8], [2 x i8]* @.str.13, i64 0, i64 0))
%27 = load i32, i32* @stderr
%28 = tail call i32 (i32, i8*, ...) @fprintf(i32 %27, i8* getelementptr inbounds ([10 x i8], [10 x i8]* @.str.14, i64 0, i64 0))
%29 = load i32, i32* @stderr
%30 = tail call i32 (i32, i8*, ...) @fprintf(i32 %29, i8* getelementptr inbounds ([56 x i8], [56 x i8]* @.str.15, i64 0, i64 0))
%31 = load i32, i32* @stderr
%32 = tail call i32 (i32, i8*, ...) @fprintf(i32 %31, i8* getelementptr inbounds ([42 x i8], [42 x i8]* @.str.16, i64 0, i64 0))
ret void
}