#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*/ EXIT_FAILURE;
int /*<<< orphan*/ EXIT_SUCCESS;
int /*<<< orphan*/ exit(int /*<<< orphan*/);
int /*<<< orphan*/ fprintf(int /*<<< orphan*/, char *, char *);
int /*<<< orphan*/ stderr;
int /*<<< orphan*/ stdout;
void usage(char **argv, bool err_f) {
  fprintf(err_f ? stderr : stdout,
          "Usage: %s [-i] [-o outfile] [-f date_format] log_file1 log_file2 "
          "... log_fileN "
          "\nOptions:"
          "\n-i: ignore parsing errors. Use when a subset of log records is "
          "somehow broken"
          "\n-o: resulting log file, stdout by default "
          "\n-f: \"apache\", \"nginx\", \"gunicorn\" "
          "or strptime-compatible string. \"nginx\" is the default\n",
          argv[0]);
  exit(err_f ? EXIT_FAILURE : EXIT_SUCCESS);
}


x86 assembly (clang, -O0):
<usage>:
push   %rbp
mov    %rsp,%rbp
sub    $0x20,%rsp
mov    %rdi,-0x8(%rbp)
mov    %esi,-0xc(%rbp)
cmpl   $0x0,-0xc(%rbp)
je     114a <usage+0x2a>
mov    0x2ea0(%rip),%rax
mov    (%rax),%eax
mov    %eax,-0x10(%rbp)
jmp    1156 <usage+0x36>
mov    0x2e7f(%rip),%rax
mov    (%rax),%eax
mov    %eax,-0x10(%rbp)
mov    -0x10(%rbp),%edi
mov    -0x8(%rbp),%rax
mov    (%rax),%rdx
lea    0xe99(%rip),%rsi
call   1030 <fprintf@plt>
cmpl   $0x0,-0xc(%rbp)
je     1187 <usage+0x67>
mov    0x2e5b(%rip),%rax
mov    (%rax),%eax
mov    %eax,-0x14(%rbp)
jmp    1193 <usage+0x73>
mov    0x2e3a(%rip),%rax
mov    (%rax),%eax
mov    %eax,-0x14(%rbp)
mov    -0x14(%rbp),%edi
call   1040 <exit@plt>

x86 assembly (clang, -O2):
<usage>:
push   %rbx
test   %esi,%esi
mov    0x2eb6(%rip),%rax
cmove  0x2e9e(%rip),%rax
mov    (%rax),%eax
mov    (%rdi),%rdx
lea    0xec2(%rip),%rsi
mov    0x2e93(%rip),%rbx
cmove  0x2e7b(%rip),%rbx
mov    %eax,%edi
call   1030 <fprintf@plt>
mov    (%rbx),%edi
call   1040 <exit@plt>

LLVM IR (-O0):
@stderr = global i32 0
@stdout = global i32 0
@.str = [299 x i8] c"Usage: %s [-i] [-o outfile] [-f date_format] log_file1 log_file2 ... log_fileN \0AOptions:\0A-i: ignore parsing errors. Use when a subset of log records is somehow broken\0A-o: resulting log file, stdout by default \0A-f: \22apache\22, \22nginx\22, \22gunicorn\22 or strptime-compatible string. \22nginx\22 is the default\0A\00"
@EXIT_FAILURE = global i32 0
@EXIT_SUCCESS = global i32 0
define void @usage(i8** %0, i32 %1) {
%3 = alloca i8**
%4 = alloca i32
store i8** %0, i8*** %3
store i32 %1, i32* %4
%5 = load i32, i32* %4
%6 = icmp ne i32 %5, 0
br i1 %6, label %7, label %9
7: ; preds = %2
%8 = load i32, i32* @stderr
br label %11
9: ; preds = %2
%10 = load i32, i32* @stdout
br label %11
11: ; preds = %9, %7
%12 = phi i32 [ %8, %7 ], [ %10, %9 ]
%13 = load i8**, i8*** %3
%14 = getelementptr inbounds i8*, i8** %13, i64 0
%15 = load i8*, i8** %14
%16 = call i32 @fprintf(i32 %12, i8* getelementptr inbounds ([299 x i8], [299 x i8]* @.str, i64 0, i64 0), i8* %15)
%17 = load i32, i32* %4
%18 = icmp ne i32 %17, 0
br i1 %18, label %19, label %21
19: ; preds = %11
%20 = load i32, i32* @EXIT_FAILURE
br label %23
21: ; preds = %11
%22 = load i32, i32* @EXIT_SUCCESS
br label %23
23: ; preds = %21, %19
%24 = phi i32 [ %20, %19 ], [ %22, %21 ]
%25 = call i32 @exit(i32 %24)
unreachable
}

LLVM IR (-O2):
@stderr = global i32 0
@stdout = global i32 0
@.str = [299 x i8] c"Usage: %s [-i] [-o outfile] [-f date_format] log_file1 log_file2 ... log_fileN \0AOptions:\0A-i: ignore parsing errors. Use when a subset of log records is somehow broken\0A-o: resulting log file, stdout by default \0A-f: \22apache\22, \22nginx\22, \22gunicorn\22 or strptime-compatible string. \22nginx\22 is the default\0A\00"
@EXIT_FAILURE = global i32 0
@EXIT_SUCCESS = global i32 0
define void @usage(i8** nocapture %0, i32 %1) {
%3 = icmp eq i32 %1, 0
%4 = load i32, i32* @stderr
%5 = load i32, i32* @stdout
%6 = select i1 %3, i32 %5, i32 %4
%7 = load i8*, i8** %0
%8 = tail call i32 @fprintf(i32 %6, i8* getelementptr inbounds ([299 x i8], [299 x i8]* @.str, i64 0, i64 0), i8* %7)
%9 = load i32, i32* @EXIT_FAILURE
%10 = load i32, i32* @EXIT_SUCCESS
%11 = select i1 %3, i32 %10, i32 %9
%12 = tail call i32 @exit(i32 %11)
unreachable
}