#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 *, ...);
int usage(const char *progname) {
  printf("\n");
  printf("usage: %s [options]\n", progname);
  printf("\n");
  printf("options:\n");
  printf("    --settings, -s <file>     load settings from a JSON file\n");
  printf("                              (default is "
         "'../config/arxiv-settings.json')\n");
  printf("    --start-afresh            start the graph layout afresh (default "
         "is to process\n");
  printf("                              only new papers); enabling this "
         "enables --write-json\n");
  printf("    --categories, -c <file>   load categories from a JSON file "
         "(default is no cats)\n");
  printf("    --layout, -l <file>       load layout from a JSON file (default "
         "is from DB)\n");
  printf("    --references, -r <file>   load reference data from JSON file "
         "(default is from DB)\n");
  printf(
      "    --other-links <file>      load additional links from JSON file\n");
  printf("    --write-db                write positions to DB (default is not "
         "to)\n");
  printf("    --write-json              write positions to json file (default "
         "is not to)\n");
  printf("    --no-fake-links, -nf      don't create fake links; "
         "--start-afresh must also be set\n");
  printf("    --link <num>              link strength\n");
  printf("    --rsq <num>               r-star squared distance for "
         "anti-gravity\n");
  printf("    --factor-ref-link <num>   factor to use for reference links "
         "(default 1)\n");
  printf("    --factor-other-link <num> factor to use for other links (default "
         "0)\n");
  printf("\n");
  return 1;
}


x86 assembly (clang, -O0):
<usage>:
push   %rbp
mov    %rsp,%rbp
sub    $0x10,%rsp
mov    %rdi,-0x8(%rbp)
lea    0xf84(%rip),%rdi
mov    $0x0,%al
call   1030 <printf@plt>
mov    -0x8(%rbp),%rsi
lea    0xecb(%rip),%rdi
mov    $0x0,%al
call   1030 <printf@plt>
lea    0xf64(%rip),%rdi
mov    $0x0,%al
call   1030 <printf@plt>
lea    0xec4(%rip),%rdi
mov    $0x0,%al
call   1030 <printf@plt>
lea    0xec0(%rip),%rdi
mov    $0x0,%al
call   1030 <printf@plt>
lea    0xef0(%rip),%rdi
mov    $0x0,%al
call   1030 <printf@plt>
lea    0xf2e(%rip),%rdi
mov    $0x0,%al
call   1030 <printf@plt>
lea    0xf74(%rip),%rdi
mov    $0x0,%al
call   1030 <printf@plt>
lea    0xfba(%rip),%rdi
mov    $0x0,%al
call   1030 <printf@plt>
lea    0x1001(%rip),%rdi
mov    $0x0,%al
call   1030 <printf@plt>
lea    0x1044(%rip),%rdi
mov    $0x0,%al
call   1030 <printf@plt>
lea    0x108d(%rip),%rdi
mov    $0x0,%al
call   1030 <printf@plt>
lea    0x10c3(%rip),%rdi
mov    $0x0,%al
call   1030 <printf@plt>
lea    0x10fe(%rip),%rdi
mov    $0x0,%al
call   1030 <printf@plt>
lea    0x1140(%rip),%rdi
mov    $0x0,%al
call   1030 <printf@plt>
lea    0x118a(%rip),%rdi
mov    $0x0,%al
call   1030 <printf@plt>
lea    0x11a9(%rip),%rdi
mov    $0x0,%al
call   1030 <printf@plt>
lea    0x11e3(%rip),%rdi
mov    $0x0,%al
call   1030 <printf@plt>
lea    0x1222(%rip),%rdi
mov    $0x0,%al
call   1030 <printf@plt>
lea    0xe76(%rip),%rdi
mov    $0x0,%al
call   1030 <printf@plt>
mov    $0x1,%eax
add    $0x10,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<usage>:
push   %rbx
mov    %rdi,%rbx
mov    $0xa,%edi
call   1030 <putchar@plt>
lea    0xebb(%rip),%rdi
mov    %rbx,%rsi
xor    %eax,%eax
call   1050 <printf@plt>
mov    $0xa,%edi
call   1030 <putchar@plt>
lea    0xeb5(%rip),%rdi
call   1040 <puts@plt>
lea    0xeb2(%rip),%rdi
call   1040 <puts@plt>
lea    0xee3(%rip),%rdi
call   1040 <puts@plt>
lea    0xf22(%rip),%rdi
call   1040 <puts@plt>
lea    0xf69(%rip),%rdi
call   1040 <puts@plt>
lea    0xfb0(%rip),%rdi
call   1040 <puts@plt>
lea    0xff8(%rip),%rdi
call   1040 <puts@plt>
lea    0x103c(%rip),%rdi
call   1040 <puts@plt>
lea    0x1086(%rip),%rdi
call   1040 <puts@plt>
lea    0x10bd(%rip),%rdi
call   1040 <puts@plt>
lea    0x10f9(%rip),%rdi
call   1040 <puts@plt>
lea    0x113c(%rip),%rdi
call   1040 <puts@plt>
lea    0x1187(%rip),%rdi
call   1040 <puts@plt>
lea    0x11a7(%rip),%rdi
call   1040 <puts@plt>
lea    0x11e2(%rip),%rdi
call   1040 <puts@plt>
lea    0x1222(%rip),%rdi
call   1040 <puts@plt>
mov    $0xa,%edi
call   1030 <putchar@plt>
mov    $0x1,%eax
pop    %rbx
ret

LLVM IR (-O0):
@.str = [2 x i8] c"\0A\00"
@.str.1 = [21 x i8] c"usage: %s [options]\0A\00"
@.str.2 = [10 x i8] c"options:\0A\00"
@.str.3 = [62 x i8] c" --settings, -s <file> load settings from a JSON file\0A\00"
@.str.4 = [76 x i8] c" (default is '../config/arxiv-settings.json')\0A\00"
@.str.5 = [84 x i8] c" --start-afresh start the graph layout afresh (default is to process\0A\00"
@.str.6 = [84 x i8] c" only new papers); enabling this enables --write-json\0A\00"
@.str.7 = [85 x i8] c" --categories, -c <file> load categories from a JSON file (default is no cats)\0A\00"
@.str.8 = [81 x i8] c" --layout, -l <file> load layout from a JSON file (default is from DB)\0A\00"
@.str.9 = [87 x i8] c" --references, -r <file> load reference data from JSON file (default is from DB)\0A\00"
@.str.10 = [68 x i8] c" --other-links <file> load additional links from JSON file\0A\00"
@.str.11 = [73 x i8] c" --write-db write positions to DB (default is not to)\0A\00"
@.str.12 = [80 x i8] c" --write-json write positions to json file (default is not to)\0A\00"
@.str.13 = [88 x i8] c" --no-fake-links, -nf don't create fake links; --start-afresh must also be set\0A\00"
@.str.14 = [45 x i8] c" --link <num> link strength\0A\00"
@.str.15 = [72 x i8] c" --rsq <num> r-star squared distance for anti-gravity\0A\00"
@.str.16 = [77 x i8] c" --factor-ref-link <num> factor to use for reference links (default 1)\0A\00"
@.str.17 = [73 x i8] c" --factor-other-link <num> factor to use for other links (default 0)\0A\00"
define i32 @usage(i8* %0) {
%2 = alloca i8*
store i8* %0, i8** %2
%3 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([2 x i8], [2 x i8]* @.str, i64 0, i64 0))
%4 = load i8*, i8** %2
%5 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([21 x i8], [21 x i8]* @.str.1, i64 0, i64 0), i8* %4)
%6 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([2 x i8], [2 x i8]* @.str, i64 0, i64 0))
%7 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([10 x i8], [10 x i8]* @.str.2, i64 0, i64 0))
%8 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([62 x i8], [62 x i8]* @.str.3, i64 0, i64 0))
%9 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([76 x i8], [76 x i8]* @.str.4, i64 0, i64 0))
%10 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([84 x i8], [84 x i8]* @.str.5, i64 0, i64 0))
%11 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([84 x i8], [84 x i8]* @.str.6, i64 0, i64 0))
%12 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([85 x i8], [85 x i8]* @.str.7, i64 0, i64 0))
%13 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([81 x i8], [81 x i8]* @.str.8, i64 0, i64 0))
%14 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([87 x i8], [87 x i8]* @.str.9, i64 0, i64 0))
%15 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([68 x i8], [68 x i8]* @.str.10, i64 0, i64 0))
%16 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([73 x i8], [73 x i8]* @.str.11, i64 0, i64 0))
%17 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([80 x i8], [80 x i8]* @.str.12, i64 0, i64 0))
%18 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([88 x i8], [88 x i8]* @.str.13, i64 0, i64 0))
%19 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([45 x i8], [45 x i8]* @.str.14, i64 0, i64 0))
%20 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([72 x i8], [72 x i8]* @.str.15, i64 0, i64 0))
%21 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([77 x i8], [77 x i8]* @.str.16, i64 0, i64 0))
%22 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([73 x i8], [73 x i8]* @.str.17, i64 0, i64 0))
%23 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([2 x i8], [2 x i8]* @.str, i64 0, i64 0))
ret i32 1
}

LLVM IR (-O2):
@.str.1 = [21 x i8] c"usage: %s [options]\0A\00"
@str = [9 x i8] c"options:\00"
@str.18 = [61 x i8] c" --settings, -s <file> load settings from a JSON file\00"
@str.19 = [75 x i8] c" (default is '../config/arxiv-settings.json')\00"
@str.20 = [83 x i8] c" --start-afresh start the graph layout afresh (default is to process\00"
@str.21 = [83 x i8] c" only new papers); enabling this enables --write-json\00"
@str.22 = [84 x i8] c" --categories, -c <file> load categories from a JSON file (default is no cats)\00"
@str.23 = [80 x i8] c" --layout, -l <file> load layout from a JSON file (default is from DB)\00"
@str.24 = [86 x i8] c" --references, -r <file> load reference data from JSON file (default is from DB)\00"
@str.25 = [67 x i8] c" --other-links <file> load additional links from JSON file\00"
@str.26 = [72 x i8] c" --write-db write positions to DB (default is not to)\00"
@str.27 = [79 x i8] c" --write-json write positions to json file (default is not to)\00"
@str.28 = [87 x i8] c" --no-fake-links, -nf don't create fake links; --start-afresh must also be set\00"
@str.29 = [44 x i8] c" --link <num> link strength\00"
@str.30 = [71 x i8] c" --rsq <num> r-star squared distance for anti-gravity\00"
@str.31 = [76 x i8] c" --factor-ref-link <num> factor to use for reference links (default 1)\00"
@str.32 = [72 x i8] c" --factor-other-link <num> factor to use for other links (default 0)\00"
define i32 @usage(i8* %0) {
%2 = tail call i32 @putchar(i32 10)
%3 = tail call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([21 x i8], [21 x i8]* @.str.1, i64 0, i64 0), i8* %0)
%4 = tail call i32 @putchar(i32 10)
%5 = tail call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([9 x i8], [9 x i8]* @str, i64 0, i64 0))
%6 = tail call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([61 x i8], [61 x i8]* @str.18, i64 0, i64 0))
%7 = tail call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([75 x i8], [75 x i8]* @str.19, i64 0, i64 0))
%8 = tail call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([83 x i8], [83 x i8]* @str.20, i64 0, i64 0))
%9 = tail call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([83 x i8], [83 x i8]* @str.21, i64 0, i64 0))
%10 = tail call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([84 x i8], [84 x i8]* @str.22, i64 0, i64 0))
%11 = tail call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([80 x i8], [80 x i8]* @str.23, i64 0, i64 0))
%12 = tail call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([86 x i8], [86 x i8]* @str.24, i64 0, i64 0))
%13 = tail call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([67 x i8], [67 x i8]* @str.25, i64 0, i64 0))
%14 = tail call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([72 x i8], [72 x i8]* @str.26, i64 0, i64 0))
%15 = tail call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([79 x i8], [79 x i8]* @str.27, i64 0, i64 0))
%16 = tail call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([87 x i8], [87 x i8]* @str.28, i64 0, i64 0))
%17 = tail call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([44 x i8], [44 x i8]* @str.29, i64 0, i64 0))
%18 = tail call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([71 x i8], [71 x i8]* @str.30, i64 0, i64 0))
%19 = tail call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([76 x i8], [76 x i8]* @str.31, i64 0, i64 0))
%20 = tail call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([72 x i8], [72 x i8]* @str.32, i64 0, i64 0))
%21 = tail call i32 @putchar(i32 10)
ret i32 1
}