#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*/ log_write_raw(int, char *, ...);
void usage(char *prog) {
  log_write_raw(1, "Usage: %s [options] gdbm-file [< in-file] [> out-file]\n",
                prog);
  log_write_raw(1, "   Available flags are:\n");
  log_write_raw(
      1,
      "      -c <filename> - Config file     -C - Perform consistency check\n");
  log_write_raw(
      1,
      "      -d <path> - Data directory      -D <filename> - gdbm database\n");
  log_write_raw(1, "      -r <filename> - gdbm crash db\n");
  log_write_raw(
      1,
      "      -G - Write in gdbm format       -g - Write in flat file format\n");
  log_write_raw(
      1,
      "      -K - Store key as an attribute  -k - Store key in the header\n");
  log_write_raw(1, "      -L - Include link information   -l - Don't include "
                   "link information\n");
  log_write_raw(1, "      -M - Store attr map if GDBM     -m - Don't store "
                   "attr map if GDBM\n");
  log_write_raw(
      1,
      "      -N - Store name as an attribute -n - Store name in the header\n");
  log_write_raw(1, "      -P - Include parent information -p - Don't include "
                   "parent information\n");
  log_write_raw(1, "      -W - Write the output file  b   -w - Don't write the "
                   "output file.\n");
  log_write_raw(1, "      -X - Create a default GDBM db   -x - Create a "
                   "default flat file db\n");
  log_write_raw(1, "      -Z - Include zone information   -z - Don't include "
                   "zone information\n");
  log_write_raw(1, "      -<number> - Set output version number\n");
}


x86 assembly (clang, -O0):
<usage>:
push   %rbp
mov    %rsp,%rbp
sub    $0x10,%rsp
mov    %rdi,-0x8(%rbp)
mov    -0x8(%rbp),%rdx
mov    $0x1,%edi
lea    0xed4(%rip),%rsi
mov    $0x0,%al
call   1030 <log_write_raw@plt>
mov    $0x1,%edi
lea    0xef9(%rip),%rsi
mov    $0x0,%al
call   1030 <log_write_raw@plt>
mov    $0x1,%edi
lea    0xeff(%rip),%rsi
mov    $0x0,%al
call   1030 <log_write_raw@plt>
mov    $0x1,%edi
lea    0xf32(%rip),%rsi
mov    $0x0,%al
call   1030 <log_write_raw@plt>
mov    $0x1,%edi
lea    0xf64(%rip),%rsi
mov    $0x0,%al
call   1030 <log_write_raw@plt>
mov    $0x1,%edi
lea    0xf76(%rip),%rsi
mov    $0x0,%al
call   1030 <log_write_raw@plt>
mov    $0x1,%edi
lea    0xfa9(%rip),%rsi
mov    $0x0,%al
call   1030 <log_write_raw@plt>
mov    $0x1,%edi
lea    0xfda(%rip),%rsi
mov    $0x0,%al
call   1030 <log_write_raw@plt>
mov    $0x1,%edi
lea    0x1012(%rip),%rsi
mov    $0x0,%al
call   1030 <log_write_raw@plt>
mov    $0x1,%edi
lea    0x1048(%rip),%rsi
mov    $0x0,%al
call   1030 <log_write_raw@plt>
mov    $0x1,%edi
lea    0x107a(%rip),%rsi
mov    $0x0,%al
call   1030 <log_write_raw@plt>
mov    $0x1,%edi
lea    0x10b4(%rip),%rsi
mov    $0x0,%al
call   1030 <log_write_raw@plt>
mov    $0x1,%edi
lea    0x10ea(%rip),%rsi
mov    $0x0,%al
call   1030 <log_write_raw@plt>
mov    $0x1,%edi
lea    0x1121(%rip),%rsi
mov    $0x0,%al
call   1030 <log_write_raw@plt>
mov    $0x1,%edi
lea    0x1159(%rip),%rsi
mov    $0x0,%al
call   1030 <log_write_raw@plt>
add    $0x10,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<usage>:
push   %rax
mov    %rdi,%rdx
lea    0xee5(%rip),%rsi
mov    $0x1,%edi
xor    %eax,%eax
call   1030 <log_write_raw@plt>
lea    0xf0a(%rip),%rsi
mov    $0x1,%edi
xor    %eax,%eax
call   1030 <log_write_raw@plt>
lea    0xf10(%rip),%rsi
mov    $0x1,%edi
xor    %eax,%eax
call   1030 <log_write_raw@plt>
lea    0xf43(%rip),%rsi
mov    $0x1,%edi
xor    %eax,%eax
call   1030 <log_write_raw@plt>
lea    0xf75(%rip),%rsi
mov    $0x1,%edi
xor    %eax,%eax
call   1030 <log_write_raw@plt>
lea    0xf87(%rip),%rsi
mov    $0x1,%edi
xor    %eax,%eax
call   1030 <log_write_raw@plt>
lea    0xfba(%rip),%rsi
mov    $0x1,%edi
xor    %eax,%eax
call   1030 <log_write_raw@plt>
lea    0xfeb(%rip),%rsi
mov    $0x1,%edi
xor    %eax,%eax
call   1030 <log_write_raw@plt>
lea    0x1023(%rip),%rsi
mov    $0x1,%edi
xor    %eax,%eax
call   1030 <log_write_raw@plt>
lea    0x1059(%rip),%rsi
mov    $0x1,%edi
xor    %eax,%eax
call   1030 <log_write_raw@plt>
lea    0x108b(%rip),%rsi
mov    $0x1,%edi
xor    %eax,%eax
call   1030 <log_write_raw@plt>
lea    0x10c5(%rip),%rsi
mov    $0x1,%edi
xor    %eax,%eax
call   1030 <log_write_raw@plt>
lea    0x10fb(%rip),%rsi
mov    $0x1,%edi
xor    %eax,%eax
call   1030 <log_write_raw@plt>
lea    0x1132(%rip),%rsi
mov    $0x1,%edi
xor    %eax,%eax
call   1030 <log_write_raw@plt>
lea    0x116a(%rip),%rsi
mov    $0x1,%edi
xor    %eax,%eax
pop    %rcx
jmp    1030 <log_write_raw@plt>

LLVM IR (-O0):
@.str = [56 x i8] c"Usage: %s [options] gdbm-file [< in-file] [> out-file]\0A\00"
@.str.1 = [25 x i8] c" Available flags are:\0A\00"
@.str.2 = [70 x i8] c" -c <filename> - Config file -C - Perform consistency check\0A\00"
@.str.3 = [69 x i8] c" -d <path> - Data directory -D <filename> - gdbm database\0A\00"
@.str.4 = [37 x i8] c" -r <filename> - gdbm crash db\0A\00"
@.str.5 = [70 x i8] c" -G - Write in gdbm format -g - Write in flat file format\0A\00"
@.str.6 = [68 x i8] c" -K - Store key as an attribute -k - Store key in the header\0A\00"
@.str.7 = [75 x i8] c" -L - Include link information -l - Don't include link information\0A\00"
@.str.8 = [73 x i8] c" -M - Store attr map if GDBM -m - Don't store attr map if GDBM\0A\00"
@.str.9 = [69 x i8] c" -N - Store name as an attribute -n - Store name in the header\0A\00"
@.str.10 = [77 x i8] c" -P - Include parent information -p - Don't include parent information\0A\00"
@.str.11 = [73 x i8] c" -W - Write the output file b -w - Don't write the output file.\0A\00"
@.str.12 = [74 x i8] c" -X - Create a default GDBM db -x - Create a default flat file db\0A\00"
@.str.13 = [75 x i8] c" -Z - Include zone information -z - Don't include zone information\0A\00"
@.str.14 = [45 x i8] c" -<number> - Set output version number\0A\00"
define void @usage(i8* %0) {
%2 = alloca i8*
store i8* %0, i8** %2
%3 = load i8*, i8** %2
%4 = call i32 (i32, i8*, ...) @log_write_raw(i32 1, i8* getelementptr inbounds ([56 x i8], [56 x i8]* @.str, i64 0, i64 0), i8* %3)
%5 = call i32 (i32, i8*, ...) @log_write_raw(i32 1, i8* getelementptr inbounds ([25 x i8], [25 x i8]* @.str.1, i64 0, i64 0))
%6 = call i32 (i32, i8*, ...) @log_write_raw(i32 1, i8* getelementptr inbounds ([70 x i8], [70 x i8]* @.str.2, i64 0, i64 0))
%7 = call i32 (i32, i8*, ...) @log_write_raw(i32 1, i8* getelementptr inbounds ([69 x i8], [69 x i8]* @.str.3, i64 0, i64 0))
%8 = call i32 (i32, i8*, ...) @log_write_raw(i32 1, i8* getelementptr inbounds ([37 x i8], [37 x i8]* @.str.4, i64 0, i64 0))
%9 = call i32 (i32, i8*, ...) @log_write_raw(i32 1, i8* getelementptr inbounds ([70 x i8], [70 x i8]* @.str.5, i64 0, i64 0))
%10 = call i32 (i32, i8*, ...) @log_write_raw(i32 1, i8* getelementptr inbounds ([68 x i8], [68 x i8]* @.str.6, i64 0, i64 0))
%11 = call i32 (i32, i8*, ...) @log_write_raw(i32 1, i8* getelementptr inbounds ([75 x i8], [75 x i8]* @.str.7, i64 0, i64 0))
%12 = call i32 (i32, i8*, ...) @log_write_raw(i32 1, i8* getelementptr inbounds ([73 x i8], [73 x i8]* @.str.8, i64 0, i64 0))
%13 = call i32 (i32, i8*, ...) @log_write_raw(i32 1, i8* getelementptr inbounds ([69 x i8], [69 x i8]* @.str.9, i64 0, i64 0))
%14 = call i32 (i32, i8*, ...) @log_write_raw(i32 1, i8* getelementptr inbounds ([77 x i8], [77 x i8]* @.str.10, i64 0, i64 0))
%15 = call i32 (i32, i8*, ...) @log_write_raw(i32 1, i8* getelementptr inbounds ([73 x i8], [73 x i8]* @.str.11, i64 0, i64 0))
%16 = call i32 (i32, i8*, ...) @log_write_raw(i32 1, i8* getelementptr inbounds ([74 x i8], [74 x i8]* @.str.12, i64 0, i64 0))
%17 = call i32 (i32, i8*, ...) @log_write_raw(i32 1, i8* getelementptr inbounds ([75 x i8], [75 x i8]* @.str.13, i64 0, i64 0))
%18 = call i32 (i32, i8*, ...) @log_write_raw(i32 1, i8* getelementptr inbounds ([45 x i8], [45 x i8]* @.str.14, i64 0, i64 0))
ret void
}

LLVM IR (-O2):
@.str = [56 x i8] c"Usage: %s [options] gdbm-file [< in-file] [> out-file]\0A\00"
@.str.1 = [25 x i8] c" Available flags are:\0A\00"
@.str.2 = [70 x i8] c" -c <filename> - Config file -C - Perform consistency check\0A\00"
@.str.3 = [69 x i8] c" -d <path> - Data directory -D <filename> - gdbm database\0A\00"
@.str.4 = [37 x i8] c" -r <filename> - gdbm crash db\0A\00"
@.str.5 = [70 x i8] c" -G - Write in gdbm format -g - Write in flat file format\0A\00"
@.str.6 = [68 x i8] c" -K - Store key as an attribute -k - Store key in the header\0A\00"
@.str.7 = [75 x i8] c" -L - Include link information -l - Don't include link information\0A\00"
@.str.8 = [73 x i8] c" -M - Store attr map if GDBM -m - Don't store attr map if GDBM\0A\00"
@.str.9 = [69 x i8] c" -N - Store name as an attribute -n - Store name in the header\0A\00"
@.str.10 = [77 x i8] c" -P - Include parent information -p - Don't include parent information\0A\00"
@.str.11 = [73 x i8] c" -W - Write the output file b -w - Don't write the output file.\0A\00"
@.str.12 = [74 x i8] c" -X - Create a default GDBM db -x - Create a default flat file db\0A\00"
@.str.13 = [75 x i8] c" -Z - Include zone information -z - Don't include zone information\0A\00"
@.str.14 = [45 x i8] c" -<number> - Set output version number\0A\00"
define void @usage(i8* %0) {
%2 = tail call i32 (i32, i8*, ...) @log_write_raw(i32 1, i8* getelementptr inbounds ([56 x i8], [56 x i8]* @.str, i64 0, i64 0), i8* %0)
%3 = tail call i32 (i32, i8*, ...) @log_write_raw(i32 1, i8* getelementptr inbounds ([25 x i8], [25 x i8]* @.str.1, i64 0, i64 0))
%4 = tail call i32 (i32, i8*, ...) @log_write_raw(i32 1, i8* getelementptr inbounds ([70 x i8], [70 x i8]* @.str.2, i64 0, i64 0))
%5 = tail call i32 (i32, i8*, ...) @log_write_raw(i32 1, i8* getelementptr inbounds ([69 x i8], [69 x i8]* @.str.3, i64 0, i64 0))
%6 = tail call i32 (i32, i8*, ...) @log_write_raw(i32 1, i8* getelementptr inbounds ([37 x i8], [37 x i8]* @.str.4, i64 0, i64 0))
%7 = tail call i32 (i32, i8*, ...) @log_write_raw(i32 1, i8* getelementptr inbounds ([70 x i8], [70 x i8]* @.str.5, i64 0, i64 0))
%8 = tail call i32 (i32, i8*, ...) @log_write_raw(i32 1, i8* getelementptr inbounds ([68 x i8], [68 x i8]* @.str.6, i64 0, i64 0))
%9 = tail call i32 (i32, i8*, ...) @log_write_raw(i32 1, i8* getelementptr inbounds ([75 x i8], [75 x i8]* @.str.7, i64 0, i64 0))
%10 = tail call i32 (i32, i8*, ...) @log_write_raw(i32 1, i8* getelementptr inbounds ([73 x i8], [73 x i8]* @.str.8, i64 0, i64 0))
%11 = tail call i32 (i32, i8*, ...) @log_write_raw(i32 1, i8* getelementptr inbounds ([69 x i8], [69 x i8]* @.str.9, i64 0, i64 0))
%12 = tail call i32 (i32, i8*, ...) @log_write_raw(i32 1, i8* getelementptr inbounds ([77 x i8], [77 x i8]* @.str.10, i64 0, i64 0))
%13 = tail call i32 (i32, i8*, ...) @log_write_raw(i32 1, i8* getelementptr inbounds ([73 x i8], [73 x i8]* @.str.11, i64 0, i64 0))
%14 = tail call i32 (i32, i8*, ...) @log_write_raw(i32 1, i8* getelementptr inbounds ([74 x i8], [74 x i8]* @.str.12, i64 0, i64 0))
%15 = tail call i32 (i32, i8*, ...) @log_write_raw(i32 1, i8* getelementptr inbounds ([75 x i8], [75 x i8]* @.str.13, i64 0, i64 0))
%16 = tail call i32 (i32, i8*, ...) @log_write_raw(i32 1, i8* getelementptr inbounds ([45 x i8], [45 x i8]* @.str.14, i64 0, i64 0))
ret void
}