#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*/ printf(char *);
void print_usage(void) {
  printf("Usage: \n");
  printf("bufrnoaa -i input_file [-h][-f][-l][-F prefix][-T T2_selection][-O "
         "selo][-S sels][-U selu]\n");
  printf("   -h Print this help\n");
  printf("   -i Input file. Complete input path file for NOAA *.bin bufr "
         "archive file\n");
  printf("   -2 Input file is formatted in alternative form: Headers has '#' "
         "instead of '*' marks and no sep after '7777'\n");
  printf("   -l list the names of reports in input file\n");
  printf("   -f Extract selected reports and write them in files, one per bufr "
         "message, as \n");
  printf("      example '20110601213442_ISIE06_SBBR_012100_RRB.bufr'. First "
         "field in name is input file timestamp \n");
  printf("      Other fields are from header\n");
  printf("   -F prefix. Builds an archive file with the same format as NOAA "
         "one but just with selected messages\n");
  printf("      witgh option  -T. Resulting name is 'prefix_input_filename'\n");
  printf("      If no -F option no archive bin file is created.\n");
  printf("      If no message is selected, the a void file is created.\n");
  printf("      File timestamp is the same than input file\n");
  printf("   -T T2_selection. A string with selection. A character per type "
         "(T2 code)\n");
  printf("      'S' = Surface . 'O'= Oceanographic. 'U'= upper air\n");
  printf("      If no -T argument then nothing is selected\n");
  printf("   -S sels. String with selection for A1 when T2='S'\n");
  printf("      By default all A1 are selected\n");
  printf("   -O selo. String with selection for A1 when T2='O'\n");
  printf("      By default all A1 are selected\n");
  printf("   -U sels. String with selection for A1 when T2='U'\n");
  printf("      By default all A1 are selected\n");
}


x86 assembly (clang, -O0):
<print_usage>:
push   %rbp
mov    %rsp,%rbp
lea    0xee5(%rip),%rdi
call   1030 <printf@plt>
lea    0xee2(%rip),%rdi
call   1030 <printf@plt>
lea    0xf32(%rip),%rdi
call   1030 <printf@plt>
lea    0xf3d(%rip),%rdi
call   1030 <printf@plt>
lea    0xf7e(%rip),%rdi
call   1030 <printf@plt>
lea    0xfe3(%rip),%rdi
call   1030 <printf@plt>
lea    0x1006(%rip),%rdi
call   1030 <printf@plt>
lea    0x104d(%rip),%rdi
call   1030 <printf@plt>
lea    0x10ab(%rip),%rdi
call   1030 <printf@plt>
lea    0x10c3(%rip),%rdi
call   1030 <printf@plt>
lea    0x111e(%rip),%rdi
call   1030 <printf@plt>
lea    0x1155(%rip),%rdi
call   1030 <printf@plt>
lea    0x1180(%rip),%rdi
call   1030 <printf@plt>
lea    0x11b2(%rip),%rdi
call   1030 <printf@plt>
lea    0x11d8(%rip),%rdi
call   1030 <printf@plt>
lea    0x1219(%rip),%rdi
call   1030 <printf@plt>
lea    0x1247(%rip),%rdi
call   1030 <printf@plt>
lea    0x126d(%rip),%rdi
call   1030 <printf@plt>
lea    0x1297(%rip),%rdi
call   1030 <printf@plt>
lea    0x12b1(%rip),%rdi
call   1030 <printf@plt>
lea    0x127f(%rip),%rdi
call   1030 <printf@plt>
lea    0x12cf(%rip),%rdi
call   1030 <printf@plt>
lea    0x1267(%rip),%rdi
call   1030 <printf@plt>
pop    %rbp
ret

x86 assembly (clang, -O2):
<print_usage>:
push   %rbx
lea    0xee8(%rip),%rdi
call   1030 <puts@plt>
lea    0xee4(%rip),%rdi
call   1030 <puts@plt>
lea    0xf33(%rip),%rdi
call   1030 <puts@plt>
lea    0xf3d(%rip),%rdi
call   1030 <puts@plt>
lea    0xf7d(%rip),%rdi
call   1030 <puts@plt>
lea    0xfe1(%rip),%rdi
call   1030 <puts@plt>
lea    0x1003(%rip),%rdi
call   1030 <puts@plt>
lea    0x1049(%rip),%rdi
call   1030 <puts@plt>
lea    0x10a6(%rip),%rdi
call   1030 <puts@plt>
lea    0x10bd(%rip),%rdi
call   1030 <puts@plt>
lea    0x1117(%rip),%rdi
call   1030 <puts@plt>
lea    0x114d(%rip),%rdi
call   1030 <puts@plt>
lea    0x1177(%rip),%rdi
call   1030 <puts@plt>
lea    0x11a8(%rip),%rdi
call   1030 <puts@plt>
lea    0x11cd(%rip),%rdi
call   1030 <puts@plt>
lea    0x120d(%rip),%rdi
call   1030 <puts@plt>
lea    0x123a(%rip),%rdi
call   1030 <puts@plt>
lea    0x125f(%rip),%rdi
call   1030 <puts@plt>
lea    0x12f2(%rip),%rbx
mov    %rbx,%rdi
call   1030 <puts@plt>
lea    0x1279(%rip),%rdi
call   1030 <puts@plt>
mov    %rbx,%rdi
call   1030 <puts@plt>
lea    0x129a(%rip),%rdi
call   1030 <puts@plt>
mov    %rbx,%rdi
pop    %rbx
jmp    1030 <puts@plt>

LLVM IR (-O0):
@.str = [9 x i8] c"Usage: \0A\00"
@.str.1 = [92 x i8] c"bufrnoaa -i input_file [-h][-f][-l][-F prefix][-T T2_selection][-O selo][-S sels][-U selu]\0A\00"
@.str.2 = [23 x i8] c" -h Print this help\0A\00"
@.str.3 = [77 x i8] c" -i Input file. Complete input path file for NOAA *.bin bufr archive file\0A\00"
@.str.4 = [113 x i8] c" -2 Input file is formatted in alternative form: Headers has '#' instead of '*' marks and no sep after '7777'\0A\00"
@.str.5 = [47 x i8] c" -l list the names of reports in input file\0A\00"
@.str.6 = [83 x i8] c" -f Extract selected reports and write them in files, one per bufr message, as \0A\00"
@.str.7 = [106 x i8] c" example '20110601213442_ISIE06_SBBR_012100_RRB.bufr'. First field in name is input file timestamp \0A\00"
@.str.8 = [36 x i8] c" Other fields are from header\0A\00"
@.str.9 = [103 x i8] c" -F prefix. Builds an archive file with the same format as NOAA one but just with selected messages\0A\00"
@.str.10 = [67 x i8] c" witgh option -T. Resulting name is 'prefix_input_filename'\0A\00"
@.str.11 = [55 x i8] c" If no -F option no archive bin file is created.\0A\00"
@.str.12 = [62 x i8] c" If no message is selected, the a void file is created.\0A\00"
@.str.13 = [50 x i8] c" File timestamp is the same than input file\0A\00"
@.str.14 = [77 x i8] c" -T T2_selection. A string with selection. A character per type (T2 code)\0A\00"
@.str.15 = [58 x i8] c" 'S' = Surface . 'O'= Oceanographic. 'U'= upper air\0A\00"
@.str.16 = [50 x i8] c" If no -T argument then nothing is selected\0A\00"
@.str.17 = [54 x i8] c" -S sels. String with selection for A1 when T2='S'\0A\00"
@.str.18 = [38 x i8] c" By default all A1 are selected\0A\00"
@.str.19 = [54 x i8] c" -O selo. String with selection for A1 when T2='O'\0A\00"
@.str.20 = [54 x i8] c" -U sels. String with selection for A1 when T2='U'\0A\00"
define void @print_usage() {
%1 = call i32 @printf(i8* getelementptr inbounds ([9 x i8], [9 x i8]* @.str, i64 0, i64 0))
%2 = call i32 @printf(i8* getelementptr inbounds ([92 x i8], [92 x i8]* @.str.1, i64 0, i64 0))
%3 = call i32 @printf(i8* getelementptr inbounds ([23 x i8], [23 x i8]* @.str.2, i64 0, i64 0))
%4 = call i32 @printf(i8* getelementptr inbounds ([77 x i8], [77 x i8]* @.str.3, i64 0, i64 0))
%5 = call i32 @printf(i8* getelementptr inbounds ([113 x i8], [113 x i8]* @.str.4, i64 0, i64 0))
%6 = call i32 @printf(i8* getelementptr inbounds ([47 x i8], [47 x i8]* @.str.5, i64 0, i64 0))
%7 = call i32 @printf(i8* getelementptr inbounds ([83 x i8], [83 x i8]* @.str.6, i64 0, i64 0))
%8 = call i32 @printf(i8* getelementptr inbounds ([106 x i8], [106 x i8]* @.str.7, i64 0, i64 0))
%9 = call i32 @printf(i8* getelementptr inbounds ([36 x i8], [36 x i8]* @.str.8, i64 0, i64 0))
%10 = call i32 @printf(i8* getelementptr inbounds ([103 x i8], [103 x i8]* @.str.9, i64 0, i64 0))
%11 = call i32 @printf(i8* getelementptr inbounds ([67 x i8], [67 x i8]* @.str.10, i64 0, i64 0))
%12 = call i32 @printf(i8* getelementptr inbounds ([55 x i8], [55 x i8]* @.str.11, i64 0, i64 0))
%13 = call i32 @printf(i8* getelementptr inbounds ([62 x i8], [62 x i8]* @.str.12, i64 0, i64 0))
%14 = call i32 @printf(i8* getelementptr inbounds ([50 x i8], [50 x i8]* @.str.13, i64 0, i64 0))
%15 = call i32 @printf(i8* getelementptr inbounds ([77 x i8], [77 x i8]* @.str.14, i64 0, i64 0))
%16 = call i32 @printf(i8* getelementptr inbounds ([58 x i8], [58 x i8]* @.str.15, i64 0, i64 0))
%17 = call i32 @printf(i8* getelementptr inbounds ([50 x i8], [50 x i8]* @.str.16, i64 0, i64 0))
%18 = call i32 @printf(i8* getelementptr inbounds ([54 x i8], [54 x i8]* @.str.17, i64 0, i64 0))
%19 = call i32 @printf(i8* getelementptr inbounds ([38 x i8], [38 x i8]* @.str.18, i64 0, i64 0))
%20 = call i32 @printf(i8* getelementptr inbounds ([54 x i8], [54 x i8]* @.str.19, i64 0, i64 0))
%21 = call i32 @printf(i8* getelementptr inbounds ([38 x i8], [38 x i8]* @.str.18, i64 0, i64 0))
%22 = call i32 @printf(i8* getelementptr inbounds ([54 x i8], [54 x i8]* @.str.20, i64 0, i64 0))
%23 = call i32 @printf(i8* getelementptr inbounds ([38 x i8], [38 x i8]* @.str.18, i64 0, i64 0))
ret void
}

LLVM IR (-O2):
@str = [8 x i8] c"Usage: \00"
@str.21 = [91 x i8] c"bufrnoaa -i input_file [-h][-f][-l][-F prefix][-T T2_selection][-O selo][-S sels][-U selu]\00"
@str.22 = [22 x i8] c" -h Print this help\00"
@str.23 = [76 x i8] c" -i Input file. Complete input path file for NOAA *.bin bufr archive file\00"
@str.24 = [112 x i8] c" -2 Input file is formatted in alternative form: Headers has '#' instead of '*' marks and no sep after '7777'\00"
@str.25 = [46 x i8] c" -l list the names of reports in input file\00"
@str.26 = [82 x i8] c" -f Extract selected reports and write them in files, one per bufr message, as \00"
@str.27 = [105 x i8] c" example '20110601213442_ISIE06_SBBR_012100_RRB.bufr'. First field in name is input file timestamp \00"
@str.28 = [35 x i8] c" Other fields are from header\00"
@str.29 = [102 x i8] c" -F prefix. Builds an archive file with the same format as NOAA one but just with selected messages\00"
@str.30 = [66 x i8] c" witgh option -T. Resulting name is 'prefix_input_filename'\00"
@str.31 = [54 x i8] c" If no -F option no archive bin file is created.\00"
@str.32 = [61 x i8] c" If no message is selected, the a void file is created.\00"
@str.33 = [49 x i8] c" File timestamp is the same than input file\00"
@str.34 = [76 x i8] c" -T T2_selection. A string with selection. A character per type (T2 code)\00"
@str.35 = [57 x i8] c" 'S' = Surface . 'O'= Oceanographic. 'U'= upper air\00"
@str.36 = [49 x i8] c" If no -T argument then nothing is selected\00"
@str.37 = [53 x i8] c" -S sels. String with selection for A1 when T2='S'\00"
@str.39 = [53 x i8] c" -O selo. String with selection for A1 when T2='O'\00"
@str.41 = [53 x i8] c" -U sels. String with selection for A1 when T2='U'\00"
@str.42 = [37 x i8] c" By default all A1 are selected\00"
define void @print_usage() {
%1 = tail call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([8 x i8], [8 x i8]* @str, i64 0, i64 0))
%2 = tail call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([91 x i8], [91 x i8]* @str.21, i64 0, i64 0))
%3 = tail call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([22 x i8], [22 x i8]* @str.22, i64 0, i64 0))
%4 = tail call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([76 x i8], [76 x i8]* @str.23, i64 0, i64 0))
%5 = tail call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([112 x i8], [112 x i8]* @str.24, i64 0, i64 0))
%6 = tail call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([46 x i8], [46 x i8]* @str.25, i64 0, i64 0))
%7 = tail call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([82 x i8], [82 x i8]* @str.26, i64 0, i64 0))
%8 = tail call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([105 x i8], [105 x i8]* @str.27, i64 0, i64 0))
%9 = tail call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([35 x i8], [35 x i8]* @str.28, i64 0, i64 0))
%10 = tail call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([102 x i8], [102 x i8]* @str.29, i64 0, i64 0))
%11 = tail call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([66 x i8], [66 x i8]* @str.30, i64 0, i64 0))
%12 = tail call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([54 x i8], [54 x i8]* @str.31, i64 0, i64 0))
%13 = tail call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([61 x i8], [61 x i8]* @str.32, i64 0, i64 0))
%14 = tail call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([49 x i8], [49 x i8]* @str.33, i64 0, i64 0))
%15 = tail call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([76 x i8], [76 x i8]* @str.34, i64 0, i64 0))
%16 = tail call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([57 x i8], [57 x i8]* @str.35, i64 0, i64 0))
%17 = tail call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([49 x i8], [49 x i8]* @str.36, i64 0, i64 0))
%18 = tail call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([53 x i8], [53 x i8]* @str.37, i64 0, i64 0))
%19 = tail call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([37 x i8], [37 x i8]* @str.42, i64 0, i64 0))
%20 = tail call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([53 x i8], [53 x i8]* @str.39, i64 0, i64 0))
%21 = tail call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([37 x i8], [37 x i8]* @str.42, i64 0, i64 0))
%22 = tail call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([53 x i8], [53 x i8]* @str.41, i64 0, i64 0))
%23 = tail call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([37 x i8], [37 x i8]* @str.42, i64 0, i64 0))
ret void
}