#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 */
char *basename(char *);
int /*<<< orphan*/ printf(char *, ...);
void usage(char *progname) {
  printf("Usage: %s [OPTIONS]... CODE\n", basename(progname));
  printf("A CLI interface of libcangjie cangjie code query\n\n");
  printf("-f, --filter=FILTER1,FILTER2...  specify the filters used in the "
         "query\n");
  printf("                                 default: big5,hkscs\n");
  printf("                                 acceptable values:\n");
  printf("                                   big5, hkscs, punctuation, "
         "chinese,\n");
  printf("                                   zhuyin, kanji, katakana, "
         "hiragana,\n");
  printf("                                   symbols\n");
  printf("-m, --mode=MODE                  specify the mode of query\n");
  printf("                                 default: code\n");
  printf("                                 acceptable values:\n");
  printf("                                   code, shortcode, radical\n");
  printf(
      "-C, --cj-version=VERSION         specify the version of Cangjie used\n");
  printf("                                 default: 3\n");
  printf("                                 acceptable values: 3, 5\n");
  printf(
      "-h, --help                       print this help message and leave\n");
  printf("\nFor complete documentation, please go to our website: \n");
  printf("<http://cangjians.github.io/>\n");
}


x86 assembly (clang, -O0):
<usage>:
push   %rbp
mov    %rsp,%rbp
sub    $0x10,%rsp
mov    %rdi,-0x8(%rbp)
mov    -0x8(%rbp),%rdi
call   1040 <basename@plt>
mov    %rax,%rsi
lea    0xec1(%rip),%rdi
mov    $0x0,%al
call   1030 <printf@plt>
lea    0xed0(%rip),%rdi
mov    $0x0,%al
call   1030 <printf@plt>
lea    0xef5(%rip),%rdi
mov    $0x0,%al
call   1030 <printf@plt>
lea    0xf2f(%rip),%rdi
mov    $0x0,%al
call   1030 <printf@plt>
lea    0xf57(%rip),%rdi
mov    $0x0,%al
call   1030 <printf@plt>
lea    0xf7e(%rip),%rdi
mov    $0x0,%al
call   1030 <printf@plt>
lea    0xfb7(%rip),%rdi
mov    $0x0,%al
call   1030 <printf@plt>
lea    0xff0(%rip),%rdi
mov    $0x0,%al
call   1030 <printf@plt>
lea    0x100e(%rip),%rdi
mov    $0x0,%al
call   1030 <printf@plt>
lea    0x103c(%rip),%rdi
mov    $0x0,%al
call   1030 <printf@plt>
lea    0xf03(%rip),%rdi
mov    $0x0,%al
call   1030 <printf@plt>
lea    0x1050(%rip),%rdi
mov    $0x0,%al
call   1030 <printf@plt>
lea    0x107f(%rip),%rdi
mov    $0x0,%al
call   1030 <printf@plt>
lea    0x10b7(%rip),%rdi
mov    $0x0,%al
call   1030 <printf@plt>
lea    0x10d6(%rip),%rdi
mov    $0x0,%al
call   1030 <printf@plt>
lea    0x1102(%rip),%rdi
mov    $0x0,%al
call   1030 <printf@plt>
lea    0x1138(%rip),%rdi
mov    $0x0,%al
call   1030 <printf@plt>
lea    0x1163(%rip),%rdi
mov    $0x0,%al
call   1030 <printf@plt>
add    $0x10,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<usage>:
push   %rbx
call   1050 <basename@plt>
lea    0xec3(%rip),%rdi
mov    %rax,%rsi
xor    %eax,%eax
call   1040 <printf@plt>
lea    0xecf(%rip),%rdi
call   1030 <puts@plt>
lea    0xef5(%rip),%rdi
call   1030 <puts@plt>
lea    0xf30(%rip),%rdi
call   1030 <puts@plt>
lea    0x107a(%rip),%rbx
mov    %rbx,%rdi
call   1030 <puts@plt>
lea    0xf4a(%rip),%rdi
call   1030 <puts@plt>
lea    0xf84(%rip),%rdi
call   1030 <puts@plt>
lea    0xfbe(%rip),%rdi
call   1030 <puts@plt>
lea    0xfdd(%rip),%rdi
call   1030 <puts@plt>
lea    0x100c(%rip),%rdi
call   1030 <puts@plt>
mov    %rbx,%rdi
call   1030 <puts@plt>
lea    0x105b(%rip),%rdi
call   1030 <puts@plt>
lea    0x108b(%rip),%rdi
call   1030 <puts@plt>
lea    0x10c4(%rip),%rdi
call   1030 <puts@plt>
lea    0x10e4(%rip),%rdi
call   1030 <puts@plt>
lea    0x1111(%rip),%rdi
call   1030 <puts@plt>
lea    0x1148(%rip),%rdi
call   1030 <puts@plt>
lea    0x1174(%rip),%rdi
pop    %rbx
jmp    1030 <puts@plt>

LLVM IR (-O0):
@.str = [29 x i8] c"Usage: %s [OPTIONS]... CODE\0A\00"
@.str.1 = [51 x i8] c"A CLI interface of libcangjie cangjie code query\0A\0A\00"
@.str.2 = [72 x i8] c"-f, --filter=FILTER1,FILTER2... specify the filters used in the query\0A\00"
@.str.3 = [54 x i8] c" default: big5,hkscs\0A\00"
@.str.4 = [53 x i8] c" acceptable values:\0A\00"
@.str.5 = [71 x i8] c" big5, hkscs, punctuation, chinese,\0A\00"
@.str.6 = [71 x i8] c" zhuyin, kanji, katakana, hiragana,\0A\00"
@.str.7 = [44 x i8] c" symbols\0A\00"
@.str.8 = [60 x i8] c"-m, --mode=MODE specify the mode of query\0A\00"
@.str.9 = [48 x i8] c" default: code\0A\00"
@.str.10 = [61 x i8] c" code, shortcode, radical\0A\00"
@.str.11 = [70 x i8] c"-C, --cj-version=VERSION specify the version of Cangjie used\0A\00"
@.str.12 = [45 x i8] c" default: 3\0A\00"
@.str.13 = [58 x i8] c" acceptable values: 3, 5\0A\00"
@.str.14 = [68 x i8] c"-h, --help print this help message and leave\0A\00"
@.str.15 = [57 x i8] c"\0AFor complete documentation, please go to our website: \0A\00"
@.str.16 = [31 x i8] c"<http://cangjians.github.io/>\0A\00"
define void @usage(i8* %0) {
%2 = alloca i8*
store i8* %0, i8** %2
%3 = load i8*, i8** %2
%4 = call i8* @basename(i8* %3)
%5 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([29 x i8], [29 x i8]* @.str, i64 0, i64 0), i8* %4)
%6 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([51 x i8], [51 x i8]* @.str.1, i64 0, i64 0))
%7 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([72 x i8], [72 x i8]* @.str.2, i64 0, i64 0))
%8 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([54 x i8], [54 x i8]* @.str.3, i64 0, i64 0))
%9 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([53 x i8], [53 x i8]* @.str.4, i64 0, i64 0))
%10 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([71 x i8], [71 x i8]* @.str.5, i64 0, i64 0))
%11 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([71 x i8], [71 x i8]* @.str.6, i64 0, i64 0))
%12 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([44 x i8], [44 x i8]* @.str.7, i64 0, i64 0))
%13 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([60 x i8], [60 x i8]* @.str.8, i64 0, i64 0))
%14 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([48 x i8], [48 x i8]* @.str.9, i64 0, i64 0))
%15 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([53 x i8], [53 x i8]* @.str.4, i64 0, i64 0))
%16 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([61 x i8], [61 x i8]* @.str.10, i64 0, i64 0))
%17 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([70 x i8], [70 x i8]* @.str.11, i64 0, i64 0))
%18 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([45 x i8], [45 x i8]* @.str.12, i64 0, i64 0))
%19 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([58 x i8], [58 x i8]* @.str.13, i64 0, i64 0))
%20 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([68 x i8], [68 x i8]* @.str.14, i64 0, i64 0))
%21 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([57 x i8], [57 x i8]* @.str.15, i64 0, i64 0))
%22 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([31 x i8], [31 x i8]* @.str.16, i64 0, i64 0))
ret void
}

LLVM IR (-O2):
@.str = [29 x i8] c"Usage: %s [OPTIONS]... CODE\0A\00"
@str = [50 x i8] c"A CLI interface of libcangjie cangjie code query\0A\00"
@str.17 = [71 x i8] c"-f, --filter=FILTER1,FILTER2... specify the filters used in the query\00"
@str.18 = [53 x i8] c" default: big5,hkscs\00"
@str.20 = [70 x i8] c" big5, hkscs, punctuation, chinese,\00"
@str.21 = [70 x i8] c" zhuyin, kanji, katakana, hiragana,\00"
@str.22 = [43 x i8] c" symbols\00"
@str.23 = [59 x i8] c"-m, --mode=MODE specify the mode of query\00"
@str.24 = [47 x i8] c" default: code\00"
@str.25 = [52 x i8] c" acceptable values:\00"
@str.26 = [60 x i8] c" code, shortcode, radical\00"
@str.27 = [69 x i8] c"-C, --cj-version=VERSION specify the version of Cangjie used\00"
@str.28 = [44 x i8] c" default: 3\00"
@str.29 = [57 x i8] c" acceptable values: 3, 5\00"
@str.30 = [67 x i8] c"-h, --help print this help message and leave\00"
@str.31 = [56 x i8] c"\0AFor complete documentation, please go to our website: \00"
@str.32 = [30 x i8] c"<http://cangjians.github.io/>\00"
define void @usage(i8* %0) {
%2 = tail call i8* @basename(i8* %0)
%3 = tail call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([29 x i8], [29 x i8]* @.str, i64 0, i64 0), i8* %2)
%4 = tail call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([50 x i8], [50 x i8]* @str, i64 0, i64 0))
%5 = tail call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([71 x i8], [71 x i8]* @str.17, i64 0, i64 0))
%6 = tail call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([53 x i8], [53 x i8]* @str.18, i64 0, i64 0))
%7 = tail call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([52 x i8], [52 x i8]* @str.25, i64 0, i64 0))
%8 = tail call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([70 x i8], [70 x i8]* @str.20, i64 0, i64 0))
%9 = tail call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([70 x i8], [70 x i8]* @str.21, i64 0, i64 0))
%10 = tail call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([43 x i8], [43 x i8]* @str.22, i64 0, i64 0))
%11 = tail call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([59 x i8], [59 x i8]* @str.23, i64 0, i64 0))
%12 = tail call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([47 x i8], [47 x i8]* @str.24, i64 0, i64 0))
%13 = tail call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([52 x i8], [52 x i8]* @str.25, i64 0, i64 0))
%14 = tail call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([60 x i8], [60 x i8]* @str.26, i64 0, i64 0))
%15 = tail call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([69 x i8], [69 x i8]* @str.27, i64 0, i64 0))
%16 = tail call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([44 x i8], [44 x i8]* @str.28, i64 0, i64 0))
%17 = tail call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([57 x i8], [57 x i8]* @str.29, i64 0, i64 0))
%18 = tail call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([67 x i8], [67 x i8]* @str.30, i64 0, i64 0))
%19 = tail call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([56 x i8], [56 x i8]* @str.31, i64 0, i64 0))
%20 = tail call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([30 x i8], [30 x i8]* @str.32, i64 0, i64 0))
ret void
}