#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*/ print_commands();
int /*<<< orphan*/ printf(char *, ...);
void syntax(int argc, char **argv) {
  printf("LGeneral reinforcement editor and query tool.\n"
         "\n"
         "Syntax: %s [options] command [arguments]\n",
         "lged");
  printf("\n"
         "<command> is the command to execute. Command is one of:\n");
  print_commands();
  printf("\nCall  %s <command> --help  for help on a specific command\n",
         "lged");
  printf(
      "\nOptions:\n"
      "-a, --add, --append\n"
      "\t\tSee --insert\n"
      "-b, --build\tRebuild the converter's reinforcements table.\n"
      "\t\tAlias for the command 'build'.\n"
      "-d, --delete\n"
      "\t\tSee --remove\n"
      "-f, --reinf-file=<file>\n"
      "\t\tRead reinforcement tables from <file> instead of the\n"
      "\t\tbuilt-in default.\n"
      "    --dry-run\tPerform all operations, but don't write changes.\n"
      "    --help\tThis help. Use in conjunction with command to show\n"
      "\t\ta command-specific help.\n"
      "-i, --insert\n"
      "\t\tInsert an entry into the reinforcements table.\n"
      "\t\tAlias for the command 'insert'.\n"
      "-l, --list\tList reinforcements for scenarios.\n"
      "\t\tAlias for the command 'list'.\n"
      "-m, --modify\tModify reinforcements. Alias for the command 'modify'.\n"
      "-o, --output=<file>\n"
      "\t\tWrite changes to <file> instead of the built-in default.\n"
      "\t\tThe meaning of the output file depends on the command.\n"
      "-r, --remove\tRemove reinforcements. Alias for the command 'remove'.\n"
      "-s, --scenarios\tPrint a list of all scenarios.\n"
      "\t\tAlias for the command 'list-scenarios'.\n"
      "    --unitdb-file=<file>\n"
      "\t\tRead unit database from <file> instead of the built-in\n"
      "\t\tdefault.\n"
      "-u, --units\tQuery units from the units database.\n"
      "\t\tAlias for the command 'list-units'.\n"
      "-v, --verbose\tIncrease verbosity.\n"
      "    --version\tDisplay version information and exit.\n");
}


x86 assembly (clang, -O0):
<syntax>:
push   %rbp
mov    %rsp,%rbp
sub    $0x10,%rsp
mov    %edi,-0x4(%rbp)
mov    %rsi,-0x10(%rbp)
lea    0xeca(%rip),%rdi
lea    0xf1c(%rip),%rsi
mov    $0x0,%al
call   1030 <printf@plt>
lea    0xf13(%rip),%rdi
mov    $0x0,%al
call   1030 <printf@plt>
mov    $0x0,%al
call   1040 <print_commands@plt>
lea    0xf38(%rip),%rdi
lea    0xef2(%rip),%rsi
mov    $0x0,%al
call   1030 <printf@plt>
lea    0xf5f(%rip),%rdi
mov    $0x0,%al
call   1030 <printf@plt>
add    $0x10,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<syntax>:
push   %rbx
lea    0xec8(%rip),%rdi
lea    0xf1a(%rip),%rbx
mov    %rbx,%rsi
xor    %eax,%eax
call   1040 <printf@plt>
lea    0xf4a(%rip),%rdi
call   1030 <puts@plt>
xor    %eax,%eax
call   1050 <print_commands@plt>
lea    0xefb(%rip),%rdi
mov    %rbx,%rsi
xor    %eax,%eax
call   1040 <printf@plt>
lea    0xf5f(%rip),%rdi
pop    %rbx
jmp    1030 <puts@plt>

LLVM IR (-O0):
@.str = [89 x i8] c"LGeneral reinforcement editor and query tool.\0A\0ASyntax: %s [options] command [arguments]\0A\00"
@.str.1 = [5 x i8] c"lged\00"
@.str.2 = [58 x i8] c"\0A<command> is the command to execute. Command is one of:\0A\00"
@.str.3 = [60 x i8] c"\0ACall %s <command> --help for help on a specific command\0A\00"
@.str.4 = [1217 x i8] c"\0AOptions:\0A-a, --add, --append\0A\09\09See --insert\0A-b, --build\09Rebuild the converter's reinforcements table.\0A\09\09Alias for the command 'build'.\0A-d, --delete\0A\09\09See --remove\0A-f, --reinf-file=<file>\0A\09\09Read reinforcement tables from <file> instead of the\0A\09\09built-in default.\0A --dry-run\09Perform all operations, but don't write changes.\0A --help\09This help. Use in conjunction with command to show\0A\09\09a command-specific help.\0A-i, --insert\0A\09\09Insert an entry into the reinforcements table.\0A\09\09Alias for the command 'insert'.\0A-l, --list\09List reinforcements for scenarios.\0A\09\09Alias for the command 'list'.\0A-m, --modify\09Modify reinforcements. Alias for the command 'modify'.\0A-o, --output=<file>\0A\09\09Write changes to <file> instead of the built-in default.\0A\09\09The meaning of the output file depends on the command.\0A-r, --remove\09Remove reinforcements. Alias for the command 'remove'.\0A-s, --scenarios\09Print a list of all scenarios.\0A\09\09Alias for the command 'list-scenarios'.\0A --unitdb-file=<file>\0A\09\09Read unit database from <file> instead of the built-in\0A\09\09default.\0A-u, --units\09Query units from the units database.\0A\09\09Alias for the command 'list-units'.\0A-v, --verbose\09Increase verbosity.\0A --version\09Display version information and exit.\0A\00"
define void @syntax(i32 %0, i8** %1) {
%3 = alloca i32
%4 = alloca i8**
store i32 %0, i32* %3
store i8** %1, i8*** %4
%5 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([89 x i8], [89 x i8]* @.str, i64 0, i64 0), i8* getelementptr inbounds ([5 x i8], [5 x i8]* @.str.1, i64 0, i64 0))
%6 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([58 x i8], [58 x i8]* @.str.2, i64 0, i64 0))
%7 = call i32 (...) @print_commands()
%8 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([60 x i8], [60 x i8]* @.str.3, i64 0, i64 0), i8* getelementptr inbounds ([5 x i8], [5 x i8]* @.str.1, i64 0, i64 0))
%9 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([1217 x i8], [1217 x i8]* @.str.4, i64 0, i64 0))
ret void
}

LLVM IR (-O2):
@.str = [89 x i8] c"LGeneral reinforcement editor and query tool.\0A\0ASyntax: %s [options] command [arguments]\0A\00"
@.str.1 = [5 x i8] c"lged\00"
@.str.3 = [60 x i8] c"\0ACall %s <command> --help for help on a specific command\0A\00"
@str = [57 x i8] c"\0A<command> is the command to execute. Command is one of:\00"
@str.5 = [1216 x i8] c"\0AOptions:\0A-a, --add, --append\0A\09\09See --insert\0A-b, --build\09Rebuild the converter's reinforcements table.\0A\09\09Alias for the command 'build'.\0A-d, --delete\0A\09\09See --remove\0A-f, --reinf-file=<file>\0A\09\09Read reinforcement tables from <file> instead of the\0A\09\09built-in default.\0A --dry-run\09Perform all operations, but don't write changes.\0A --help\09This help. Use in conjunction with command to show\0A\09\09a command-specific help.\0A-i, --insert\0A\09\09Insert an entry into the reinforcements table.\0A\09\09Alias for the command 'insert'.\0A-l, --list\09List reinforcements for scenarios.\0A\09\09Alias for the command 'list'.\0A-m, --modify\09Modify reinforcements. Alias for the command 'modify'.\0A-o, --output=<file>\0A\09\09Write changes to <file> instead of the built-in default.\0A\09\09The meaning of the output file depends on the command.\0A-r, --remove\09Remove reinforcements. Alias for the command 'remove'.\0A-s, --scenarios\09Print a list of all scenarios.\0A\09\09Alias for the command 'list-scenarios'.\0A --unitdb-file=<file>\0A\09\09Read unit database from <file> instead of the built-in\0A\09\09default.\0A-u, --units\09Query units from the units database.\0A\09\09Alias for the command 'list-units'.\0A-v, --verbose\09Increase verbosity.\0A --version\09Display version information and exit.\00"
define void @syntax(i32 %0, i8** nocapture readnone %1) {
%3 = tail call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([89 x i8], [89 x i8]* @.str, i64 0, i64 0), i8* getelementptr inbounds ([5 x i8], [5 x i8]* @.str.1, i64 0, i64 0))
%4 = tail call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([57 x i8], [57 x i8]* @str, i64 0, i64 0))
%5 = tail call i32 (...) @print_commands()
%6 = tail call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([60 x i8], [60 x i8]* @.str.3, i64 0, i64 0), i8* getelementptr inbounds ([5 x i8], [5 x i8]* @.str.1, i64 0, i64 0))
%7 = tail call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([1216 x i8], [1216 x i8]* @str.5, i64 0, i64 0))
ret void
}