#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(int);
int /*<<< orphan*/ fprintf(int /*<<< orphan*/, char *, char *);
int /*<<< orphan*/ printf(char *);
int /*<<< orphan*/ stderr;
int usage(char *err) {
  if (err)
    fprintf(stderr, "%s\n", err);
  printf("gnugol [options] keywords to search for\n");
  printf("-e --engine        [bing|duck|dummy]\n"
         "-o --output        "
         "[html|json|org|mdwn|wiki|text|term|ssml|textile|raw]\n"
         "-C --charset cs    character set used locally\n"
         "-n --nresults      number of results to fetch\n"
         "-p --position      start of results to fetch\n"
         "-s --snippets  0|1 disable/enable snippets\n"
         "-t --titles    0|1 disable/enable titles\n"
         "-u --urls      0|1 disable/enable urls\n"
         "-H --header    0|1 disable/enable output header\n"
         "-F --footer    0|1 disable/enable output footer\n"
         "-i --indent    X   result indentation level\n"
         "-S --safe    0|1|2 [off|moderate|active] result filtering\n"
         "-D --debug     X   debug output level\n"
         "-U --escaped       input is already url escaped\n"
         "-l --language-in   [en|es|fr|nl or other 2 char locale]\n"
         "-L --language-out  [en|es|fr|nl or other 2 char locale]\n"
         "-v --verbose       provide more verbose insight\n"
         "-h --help          this message\n"
         "-a --about         "
         "[credits|copyright|license|source|config|manual|stats]\n");
  exit(-1);
}


x86 assembly (clang, -O0):
<usage>:
push   %rbp
mov    %rsp,%rbp
sub    $0x10,%rsp
mov    %rdi,-0x8(%rbp)
cmpq   $0x0,-0x8(%rbp)
je     1160 <usage+0x30>
mov    0x2e92(%rip),%rax
mov    (%rax),%edi
mov    -0x8(%rbp),%rdx
lea    0xea5(%rip),%rsi
call   1040 <fprintf@plt>
lea    0xe9d(%rip),%rdi
call   1030 <printf@plt>
lea    0xeba(%rip),%rdi
call   1030 <printf@plt>
mov    $0xffffffff,%edi
call   1050 <exit@plt>

x86 assembly (clang, -O2):
<usage>:
push   %rax
test   %rdi,%rdi
je     114e <usage+0x1e>
mov    %rdi,%rdx
mov    0x2ea0(%rip),%rax
mov    (%rax),%edi
lea    0xeb7(%rip),%rsi
call   1040 <fprintf@plt>
lea    0xeaf(%rip),%rdi
call   1030 <puts@plt>
lea    0xecb(%rip),%rdi
call   1030 <puts@plt>
mov    $0xffffffff,%edi
call   1050 <exit@plt>

LLVM IR (-O0):
@stderr = global i32 0
@.str = [4 x i8] c"%s\0A\00"
@.str.1 = [41 x i8] c"gnugol [options] keywords to search for\0A\00"
@.str.2 = [920 x i8] c"-e --engine [bing|duck|dummy]\0A-o --output [html|json|org|mdwn|wiki|text|term|ssml|textile|raw]\0A-C --charset cs character set used locally\0A-n --nresults number of results to fetch\0A-p --position start of results to fetch\0A-s --snippets 0|1 disable/enable snippets\0A-t --titles 0|1 disable/enable titles\0A-u --urls 0|1 disable/enable urls\0A-H --header 0|1 disable/enable output header\0A-F --footer 0|1 disable/enable output footer\0A-i --indent X result indentation level\0A-S --safe 0|1|2 [off|moderate|active] result filtering\0A-D --debug X debug output level\0A-U --escaped input is already url escaped\0A-l --language-in [en|es|fr|nl or other 2 char locale]\0A-L --language-out [en|es|fr|nl or other 2 char locale]\0A-v --verbose provide more verbose insight\0A-h --help this message\0A-a --about [credits|copyright|license|source|config|manual|stats]\0A\00"
define i32 @usage(i8* %0) {
%2 = alloca i8*
store i8* %0, i8** %2
%3 = load i8*, i8** %2
%4 = icmp ne i8* %3, null
br i1 %4, label %5, label %9
5: ; preds = %1
%6 = load i32, i32* @stderr
%7 = load i8*, i8** %2
%8 = call i32 @fprintf(i32 %6, i8* getelementptr inbounds ([4 x i8], [4 x i8]* @.str, i64 0, i64 0), i8* %7)
br label %9
9: ; preds = %5, %1
%10 = call i32 @printf(i8* getelementptr inbounds ([41 x i8], [41 x i8]* @.str.1, i64 0, i64 0))
%11 = call i32 @printf(i8* getelementptr inbounds ([920 x i8], [920 x i8]* @.str.2, i64 0, i64 0))
%12 = call i32 @exit(i32 -1)
unreachable
}

LLVM IR (-O2):
@stderr = global i32 0
@.str = [4 x i8] c"%s\0A\00"
@str = [40 x i8] c"gnugol [options] keywords to search for\00"
@str.3 = [919 x i8] c"-e --engine [bing|duck|dummy]\0A-o --output [html|json|org|mdwn|wiki|text|term|ssml|textile|raw]\0A-C --charset cs character set used locally\0A-n --nresults number of results to fetch\0A-p --position start of results to fetch\0A-s --snippets 0|1 disable/enable snippets\0A-t --titles 0|1 disable/enable titles\0A-u --urls 0|1 disable/enable urls\0A-H --header 0|1 disable/enable output header\0A-F --footer 0|1 disable/enable output footer\0A-i --indent X result indentation level\0A-S --safe 0|1|2 [off|moderate|active] result filtering\0A-D --debug X debug output level\0A-U --escaped input is already url escaped\0A-l --language-in [en|es|fr|nl or other 2 char locale]\0A-L --language-out [en|es|fr|nl or other 2 char locale]\0A-v --verbose provide more verbose insight\0A-h --help this message\0A-a --about [credits|copyright|license|source|config|manual|stats]\00"
define i32 @usage(i8* %0) {
%2 = icmp eq i8* %0, null
br i1 %2, label %6, label %3
3: ; preds = %1
%4 = load i32, i32* @stderr
%5 = tail call i32 @fprintf(i32 %4, i8* getelementptr inbounds ([4 x i8], [4 x i8]* @.str, i64 0, i64 0), i8* %0)
br label %6
6: ; preds = %3, %1
%7 = tail call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([40 x i8], [40 x i8]* @str, i64 0, i64 0))
%8 = tail call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([919 x i8], [919 x i8]* @str.3, i64 0, i64 0))
%9 = tail call i32 @exit(i32 -1)
unreachable
}