#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*/ fprintf(int /*<<< orphan*/, char *, char *);
int /*<<< orphan*/ stderr;
void usage(char *appname, int type) {
  switch (type) {
  case 'g':
    fprintf(stderr,
            "USAGE: %s ( <-g grib file> [-m grib msg] )... <-i interval> [-I]\n"
            "<-s color scale> \[-S scale multiplyer] ( ( <-k kml file> AND \n"
            "<-z kmz file> ) OR <-t <tiff file> )\n\n",
            appname);
    break;
  case 'w':
    fprintf(stderr,
            "USAGE: %s -w ( <-u u wind grib file> <-v v wind grib file>\n"
            "[-U u grib msg] [-V v grib msg] )... <-i interval> [-I]\n"
            "<-s color scale> [-S scale multiplyer] ( ( <-k kml file> AND \n"
            "<-z kmz file> ) OR <-t <tiff file> )\n\n",
            appname);
    break;
  case 'a':
    fprintf(stderr,
            "USAGE: %s -a ( <-u data grib file> <-v 0/1 grib file>\n"
            "[-U data grib msg] [-V 0/1 grib msg] )... <-i interval> [-I]\n"
            "<-s color scale> [-S scale multiplyer] ( ( <-k kml file> AND \n"
            "<-z kmz file> ) OR <-t <tiff file> )\n\n",
            appname);
    break;
  case 'd':
    fprintf(stderr,
            "USAGE: %s -d ( <-u upper grib file> <-v lower grib file>\n"
            "[-U upper grib msg] [-V lower grib msg] )... <-i interval> [-I]\n"
            "<-s color scale> [-S scale multiplyer] ( ( <-k kml file> AND \n"
            "<-z kmz file> ) OR <-t <tiff file> )\n\n",
            appname);
    break;
  default:
    fprintf(stderr,
            "USAGE: %s ( <-g grib file> [-m grib msg] )... <-i interval> [-I]\n"
            "<-s color scale> \[-S scale multiplyer] ( ( <-k kml file> AND \n"
            "<-z kmz file> ) OR <-t <tiff file> )\n\n",
            appname);
    fprintf(stderr,
            "USAGE: %s -w ( <-u u wind grib file> <-v v wind grib file>\n"
            "[-U u grib msg] [-V v grib msg] )... <-i interval> [-I]\n"
            "<-s color scale> [-S scale multiplyer] ( ( <-k kml file> AND \n"
            "<-z kmz file> ) OR <-t <tiff file> )\n\n",
            appname);
    fprintf(stderr,
            "USAGE: %s -a ( <-u data grib file> <-v 0/1 grib file>\n"
            "[-U data grib msg] [-V 0/1 grib msg] )... <-i interval> [-I]\n"
            "<-s color scale> [-S scale multiplyer] ( ( <-k kml file> AND \n"
            "<-z kmz file> ) OR <-t <tiff file> )\n\n",
            appname);
    fprintf(stderr,
            "USAGE: %s -d ( <-u upper grib file> <-v lower grib file>\n"
            "[-U upper grib msg] [-V lower grib msg] )... <-i interval> [-I]\n"
            "<-s color scale> [-S scale multiplyer] ( ( <-k kml file> AND \n"
            "<-z kmz file> ) OR <-t <tiff file> )\n\n",
            appname);
    break;
  }
  return;
}


x86 assembly (clang, -O0):
<usage>:
push   %rbp
mov    %rsp,%rbp
sub    $0x20,%rsp
mov    %rdi,-0x8(%rbp)
mov    %esi,-0xc(%rbp)
mov    -0xc(%rbp),%eax
add    $0xffffff9f,%eax
mov    %eax,%ecx
mov    %rcx,-0x18(%rbp)
sub    $0x16,%eax
ja     11c0 <usage+0xb0>
mov    -0x18(%rbp),%rax
lea    0xec1(%rip),%rcx
movslq (%rcx,%rax,4),%rax
add    %rcx,%rax
jmp    *%rax
mov    0x2e91(%rip),%rax
mov    (%rax),%edi
mov    -0x8(%rbp),%rdx
lea    0xf00(%rip),%rsi
call   1030 <fprintf@plt>
jmp    1224 <usage+0x114>
mov    0x2e73(%rip),%rax
mov    (%rax),%edi
mov    -0x8(%rbp),%rdx
lea    0xf88(%rip),%rsi
call   1030 <fprintf@plt>
jmp    1224 <usage+0x114>
mov    0x2e55(%rip),%rax
mov    (%rax),%edi
mov    -0x8(%rbp),%rdx
lea    0x1042(%rip),%rsi
call   1030 <fprintf@plt>
jmp    1224 <usage+0x114>
mov    0x2e37(%rip),%rax
mov    (%rax),%edi
mov    -0x8(%rbp),%rdx
lea    0x10fc(%rip),%rsi
call   1030 <fprintf@plt>
jmp    1224 <usage+0x114>
mov    0x2e19(%rip),%rax
mov    (%rax),%edi
mov    -0x8(%rbp),%rdx
lea    0xe88(%rip),%rsi
call   1030 <fprintf@plt>
mov    0x2e00(%rip),%rax
mov    (%rax),%edi
mov    -0x8(%rbp),%rdx
lea    0xf15(%rip),%rsi
call   1030 <fprintf@plt>
mov    0x2de7(%rip),%rax
mov    (%rax),%edi
mov    -0x8(%rbp),%rdx
lea    0xfd4(%rip),%rsi
call   1030 <fprintf@plt>
mov    0x2dce(%rip),%rax
mov    (%rax),%edi
mov    -0x8(%rbp),%rdx
lea    0x1093(%rip),%rsi
call   1030 <fprintf@plt>
add    $0x20,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<usage>:
push   %r14
push   %rbx
push   %rax
mov    %esi,%eax
mov    %rdi,%rbx
add    $0xffffff9f,%eax
cmp    $0x16,%eax
ja     1141 <usage+0x31>
lea    0xf34(%rip),%rsi
lea    0xed1(%rip),%rcx
movslq (%rcx,%rax,4),%rax
add    %rcx,%rax
jmp    *%rax
lea    0x109b(%rip),%rsi
jmp    118e <usage+0x7e>
mov    0x2e98(%rip),%r14
mov    (%r14),%edi
lea    0xf0a(%rip),%rsi
mov    %rbx,%rdx
call   1030 <fprintf@plt>
mov    (%r14),%edi
lea    0xf9e(%rip),%rsi
mov    %rbx,%rdx
call   1030 <fprintf@plt>
mov    (%r14),%edi
lea    0x1064(%rip),%rsi
mov    %rbx,%rdx
call   1030 <fprintf@plt>
lea    0x112d(%rip),%rsi
jmp    118e <usage+0x7e>
lea    0xf74(%rip),%rsi
mov    0x2e4b(%rip),%rax
mov    (%rax),%edi
mov    %rbx,%rdx
add    $0x8,%rsp
pop    %rbx
pop    %r14
jmp    1030 <fprintf@plt>

LLVM IR (-O0):
@stderr = global i32 0
@.str = [166 x i8] c"USAGE: %s ( <-g grib file> [-m grib msg] )... <-i interval> [-I]\0A<-s color scale> [-S scale multiplyer] ( ( <-k kml file> AND \0A<-z kmz file> ) OR <-t <tiff file> )\0A\0A\00"
@.str.1 = [216 x i8] c"USAGE: %s -w ( <-u u wind grib file> <-v v wind grib file>\0A[-U u grib msg] [-V v grib msg] )... <-i interval> [-I]\0A<-s color scale> [-S scale multiplyer] ( ( <-k kml file> AND \0A<-z kmz file> ) OR <-t <tiff file> )\0A\0A\00"
@.str.2 = [216 x i8] c"USAGE: %s -a ( <-u data grib file> <-v 0/1 grib file>\0A[-U data grib msg] [-V 0/1 grib msg] )... <-i interval> [-I]\0A<-s color scale> [-S scale multiplyer] ( ( <-k kml file> AND \0A<-z kmz file> ) OR <-t <tiff file> )\0A\0A\00"
@.str.3 = [222 x i8] c"USAGE: %s -d ( <-u upper grib file> <-v lower grib file>\0A[-U upper grib msg] [-V lower grib msg] )... <-i interval> [-I]\0A<-s color scale> [-S scale multiplyer] ( ( <-k kml file> AND \0A<-z kmz file> ) OR <-t <tiff file> )\0A\0A\00"
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
switch i32 %5, label %22 [
i32 103, label %6
i32 119, label %10
i32 97, label %14
i32 100, label %18
]
6: ; preds = %2
%7 = load i32, i32* @stderr
%8 = load i8*, i8** %3
%9 = call i32 @fprintf(i32 %7, i8* getelementptr inbounds ([166 x i8], [166 x i8]* @.str, i64 0, i64 0), i8* %8)
br label %35
10: ; preds = %2
%11 = load i32, i32* @stderr
%12 = load i8*, i8** %3
%13 = call i32 @fprintf(i32 %11, i8* getelementptr inbounds ([216 x i8], [216 x i8]* @.str.1, i64 0, i64 0), i8* %12)
br label %35
14: ; preds = %2
%15 = load i32, i32* @stderr
%16 = load i8*, i8** %3
%17 = call i32 @fprintf(i32 %15, i8* getelementptr inbounds ([216 x i8], [216 x i8]* @.str.2, i64 0, i64 0), i8* %16)
br label %35
18: ; preds = %2
%19 = load i32, i32* @stderr
%20 = load i8*, i8** %3
%21 = call i32 @fprintf(i32 %19, i8* getelementptr inbounds ([222 x i8], [222 x i8]* @.str.3, i64 0, i64 0), i8* %20)
br label %35
22: ; preds = %2
%23 = load i32, i32* @stderr
%24 = load i8*, i8** %3
%25 = call i32 @fprintf(i32 %23, i8* getelementptr inbounds ([166 x i8], [166 x i8]* @.str, i64 0, i64 0), i8* %24)
%26 = load i32, i32* @stderr
%27 = load i8*, i8** %3
%28 = call i32 @fprintf(i32 %26, i8* getelementptr inbounds ([216 x i8], [216 x i8]* @.str.1, i64 0, i64 0), i8* %27)
%29 = load i32, i32* @stderr
%30 = load i8*, i8** %3
%31 = call i32 @fprintf(i32 %29, i8* getelementptr inbounds ([216 x i8], [216 x i8]* @.str.2, i64 0, i64 0), i8* %30)
%32 = load i32, i32* @stderr
%33 = load i8*, i8** %3
%34 = call i32 @fprintf(i32 %32, i8* getelementptr inbounds ([222 x i8], [222 x i8]* @.str.3, i64 0, i64 0), i8* %33)
br label %35
35: ; preds = %22, %18, %14, %10, %6
ret void
}

LLVM IR (-O2):
@stderr = global i32 0
@.str = [166 x i8] c"USAGE: %s ( <-g grib file> [-m grib msg] )... <-i interval> [-I]\0A<-s color scale> [-S scale multiplyer] ( ( <-k kml file> AND \0A<-z kmz file> ) OR <-t <tiff file> )\0A\0A\00"
@.str.1 = [216 x i8] c"USAGE: %s -w ( <-u u wind grib file> <-v v wind grib file>\0A[-U u grib msg] [-V v grib msg] )... <-i interval> [-I]\0A<-s color scale> [-S scale multiplyer] ( ( <-k kml file> AND \0A<-z kmz file> ) OR <-t <tiff file> )\0A\0A\00"
@.str.2 = [216 x i8] c"USAGE: %s -a ( <-u data grib file> <-v 0/1 grib file>\0A[-U data grib msg] [-V 0/1 grib msg] )... <-i interval> [-I]\0A<-s color scale> [-S scale multiplyer] ( ( <-k kml file> AND \0A<-z kmz file> ) OR <-t <tiff file> )\0A\0A\00"
@.str.3 = [222 x i8] c"USAGE: %s -d ( <-u upper grib file> <-v lower grib file>\0A[-U upper grib msg] [-V lower grib msg] )... <-i interval> [-I]\0A<-s color scale> [-S scale multiplyer] ( ( <-k kml file> AND \0A<-z kmz file> ) OR <-t <tiff file> )\0A\0A\00"
define void @usage(i8* %0, i32 %1) {
switch i32 %1, label %6 [
i32 103, label %13
i32 119, label %3
i32 97, label %4
i32 100, label %5
]
3: ; preds = %2
br label %13
4: ; preds = %2
br label %13
5: ; preds = %2
br label %13
6: ; preds = %2
%7 = load i32, i32* @stderr
%8 = tail call i32 @fprintf(i32 %7, i8* getelementptr inbounds ([166 x i8], [166 x i8]* @.str, i64 0, i64 0), i8* %0)
%9 = load i32, i32* @stderr
%10 = tail call i32 @fprintf(i32 %9, i8* getelementptr inbounds ([216 x i8], [216 x i8]* @.str.1, i64 0, i64 0), i8* %0)
%11 = load i32, i32* @stderr
%12 = tail call i32 @fprintf(i32 %11, i8* getelementptr inbounds ([216 x i8], [216 x i8]* @.str.2, i64 0, i64 0), i8* %0)
br label %13
13: ; preds = %2, %6, %5, %4, %3
%14 = phi i8* [ getelementptr inbounds ([222 x i8], [222 x i8]* @.str.3, i64 0, i64 0), %6 ], [ getelementptr inbounds ([222 x i8], [222 x i8]* @.str.3, i64 0, i64 0), %5 ], [ getelementptr inbounds ([216 x i8], [216 x i8]* @.str.2, i64 0, i64 0), %4 ], [ getelementptr inbounds ([216 x i8], [216 x i8]* @.str.1, i64 0, i64 0), %3 ], [ getelementptr inbounds ([166 x i8], [166 x i8]* @.str, i64 0, i64 0), %2 ]
%15 = load i32, i32* @stderr
%16 = tail call i32 @fprintf(i32 %15, i8* %14, i8* %0)
ret void
}