#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("Usage: asrank [-p] [-d level] [-t asn] [-x <asn|@fname>] [-g fname] "
         "[-w fname] [-u fname[,fname...]] [file ...]\n");
  printf("  Options:\n");
  printf("-t asn       - hint that asn is tier1\n");
  printf("-x asn       - asn is internet exchange point\n");
  printf("-x @fname    - file with IX list (one IX per line, comma separated "
         "for sibling)\n");
  printf("-d level     - set debug level (5 and more cause huge output)\n");
  printf("-p           - show progress bar\n");
  printf("-g fname     - file defined sibling groups, one group per line, "
         "comma separated\n");
  printf("-w fname     - write result table to fname for future processing\n");
  printf("-u fname     - process file(s) with updates and generate separate "
         "statistics after it\n");
  printf("-T as1[:as2] - trace (debug level 4) relations for as1 or between "
         "as1 and as2\n");
  printf("file - input dumb RIB table\n");
}


x86 assembly (clang, -O0):
<usage>:
push   %rbp
mov    %rsp,%rbp
lea    0xee5(%rip),%rdi
call   1030 <printf@plt>
lea    0xf4a(%rip),%rdi
call   1030 <printf@plt>
lea    0xf4a(%rip),%rdi
call   1030 <printf@plt>
lea    0xf65(%rip),%rdi
call   1030 <printf@plt>
lea    0xf88(%rip),%rdi
call   1030 <printf@plt>
lea    0xfcd(%rip),%rdi
call   1030 <printf@plt>
lea    0x1000(%rip),%rdi
call   1030 <printf@plt>
lea    0x1016(%rip),%rdi
call   1030 <printf@plt>
lea    0x105b(%rip),%rdi
call   1030 <printf@plt>
lea    0x1091(%rip),%rdi
call   1030 <printf@plt>
lea    0x10dc(%rip),%rdi
call   1030 <printf@plt>
lea    0x111f(%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    0xf4c(%rip),%rdi
call   1030 <puts@plt>
lea    0xf4b(%rip),%rdi
call   1030 <puts@plt>
lea    0xf65(%rip),%rdi
call   1030 <puts@plt>
lea    0xf87(%rip),%rdi
call   1030 <puts@plt>
lea    0xfcb(%rip),%rdi
call   1030 <puts@plt>
lea    0xffd(%rip),%rdi
call   1030 <puts@plt>
lea    0x1012(%rip),%rdi
call   1030 <puts@plt>
lea    0x1056(%rip),%rdi
call   1030 <puts@plt>
lea    0x108b(%rip),%rdi
call   1030 <puts@plt>
lea    0x10d5(%rip),%rdi
call   1030 <puts@plt>
lea    0x1117(%rip),%rdi
pop    %rax
jmp    1030 <puts@plt>

LLVM IR (-O0):
@.str = [113 x i8] c"Usage: asrank [-p] [-d level] [-t asn] [-x <asn|@fname>] [-g fname] [-w fname] [-u fname[,fname...]] [file ...]\0A\00"
@.str.1 = [12 x i8] c" Options:\0A\00"
@.str.2 = [39 x i8] c"-t asn - hint that asn is tier1\0A\00"
@.str.3 = [47 x i8] c"-x asn - asn is internet exchange point\0A\00"
@.str.4 = [81 x i8] c"-x @fname - file with IX list (one IX per line, comma separated for sibling)\0A\00"
@.str.5 = [63 x i8] c"-d level - set debug level (5 and more cause huge output)\0A\00"
@.str.6 = [34 x i8] c"-p - show progress bar\0A\00"
@.str.7 = [81 x i8] c"-g fname - file defined sibling groups, one group per line, comma separated\0A\00"
@.str.8 = [66 x i8] c"-w fname - write result table to fname for future processing\0A\00"
@.str.9 = [87 x i8] c"-u fname - process file(s) with updates and generate separate statistics after it\0A\00"
@.str.10 = [79 x i8] c"-T as1[:as2] - trace (debug level 4) relations for as1 or between as1 and as2\0A\00"
@.str.11 = [29 x i8] c"file - input dumb RIB table\0A\00"
define void @usage() {
%1 = call i32 @printf(i8* getelementptr inbounds ([113 x i8], [113 x i8]* @.str, i64 0, i64 0))
%2 = call i32 @printf(i8* getelementptr inbounds ([12 x i8], [12 x i8]* @.str.1, i64 0, i64 0))
%3 = call i32 @printf(i8* getelementptr inbounds ([39 x i8], [39 x i8]* @.str.2, i64 0, i64 0))
%4 = call i32 @printf(i8* getelementptr inbounds ([47 x i8], [47 x i8]* @.str.3, i64 0, i64 0))
%5 = call i32 @printf(i8* getelementptr inbounds ([81 x i8], [81 x i8]* @.str.4, i64 0, i64 0))
%6 = call i32 @printf(i8* getelementptr inbounds ([63 x i8], [63 x i8]* @.str.5, i64 0, i64 0))
%7 = call i32 @printf(i8* getelementptr inbounds ([34 x i8], [34 x i8]* @.str.6, i64 0, i64 0))
%8 = call i32 @printf(i8* getelementptr inbounds ([81 x i8], [81 x i8]* @.str.7, i64 0, i64 0))
%9 = call i32 @printf(i8* getelementptr inbounds ([66 x i8], [66 x i8]* @.str.8, i64 0, i64 0))
%10 = call i32 @printf(i8* getelementptr inbounds ([87 x i8], [87 x i8]* @.str.9, i64 0, i64 0))
%11 = call i32 @printf(i8* getelementptr inbounds ([79 x i8], [79 x i8]* @.str.10, i64 0, i64 0))
%12 = call i32 @printf(i8* getelementptr inbounds ([29 x i8], [29 x i8]* @.str.11, i64 0, i64 0))
ret void
}

LLVM IR (-O2):
@str = [112 x i8] c"Usage: asrank [-p] [-d level] [-t asn] [-x <asn|@fname>] [-g fname] [-w fname] [-u fname[,fname...]] [file ...]\00"
@str.12 = [11 x i8] c" Options:\00"
@str.13 = [38 x i8] c"-t asn - hint that asn is tier1\00"
@str.14 = [46 x i8] c"-x asn - asn is internet exchange point\00"
@str.15 = [80 x i8] c"-x @fname - file with IX list (one IX per line, comma separated for sibling)\00"
@str.16 = [62 x i8] c"-d level - set debug level (5 and more cause huge output)\00"
@str.17 = [33 x i8] c"-p - show progress bar\00"
@str.18 = [80 x i8] c"-g fname - file defined sibling groups, one group per line, comma separated\00"
@str.19 = [65 x i8] c"-w fname - write result table to fname for future processing\00"
@str.20 = [86 x i8] c"-u fname - process file(s) with updates and generate separate statistics after it\00"
@str.21 = [78 x i8] c"-T as1[:as2] - trace (debug level 4) relations for as1 or between as1 and as2\00"
@str.22 = [28 x i8] c"file - input dumb RIB table\00"
define void @usage() {
%1 = tail call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([112 x i8], [112 x i8]* @str, i64 0, i64 0))
%2 = tail call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([11 x i8], [11 x i8]* @str.12, i64 0, i64 0))
%3 = tail call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([38 x i8], [38 x i8]* @str.13, i64 0, i64 0))
%4 = tail call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([46 x i8], [46 x i8]* @str.14, i64 0, i64 0))
%5 = tail call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([80 x i8], [80 x i8]* @str.15, i64 0, i64 0))
%6 = tail call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([62 x i8], [62 x i8]* @str.16, i64 0, i64 0))
%7 = tail call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([33 x i8], [33 x i8]* @str.17, i64 0, i64 0))
%8 = tail call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([80 x i8], [80 x i8]* @str.18, i64 0, i64 0))
%9 = tail call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([65 x i8], [65 x i8]* @str.19, i64 0, i64 0))
%10 = tail call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([86 x i8], [86 x i8]* @str.20, i64 0, i64 0))
%11 = tail call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([78 x i8], [78 x i8]* @str.21, i64 0, i64 0))
%12 = tail call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([28 x i8], [28 x i8]* @str.22, i64 0, i64 0))
ret void
}