#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 show_usage() {
  printf("To run this program please use:\n\t./SEVIRI_tool <filename>\n");
  printf("Where <filename> points to a driver file containing the following "
         "lines:\n");
  printf("\tLine 1,  Input data format: HRIT or NAT\n");
  printf("\tLine 2,  Input directory (if HRIT) or input file (if NAT)\n");
  printf("\tLine 3,  Timeslot (if HRIT, YYYYMMDDHHMM) or blank (if NAT)\n");
  printf("\tLine 4,  Satellite number (if HRIT, 1/2/3/4) or blank (if nat)\n");
  printf("\tLine 5,  Bands to read (HRIT and NAT) in format: 11010100100\n");
  printf("\t\t 1 = read this band, 0 = do not read this band\n");
  printf("\t\t max length: 11 chars. If shorter, defaults to 0 for missing "
         "bands\n");
  printf("\tLine 6,  Output data format: HDF, CDF or TIF\n");
  printf("\tLine 7,  Output data type: CNT, RAD or RBT (for count, radiance, "
         "refl/bt)\n");
  printf("\tLine 8,  Output directory\n");
  printf("\tLine 9,  Initial line\n");
  printf("\tLine 10, Final line\n");
  printf("\tLine 11, Initial column\n");
  printf("\tLine 12, Final column\n");
  printf("\t\t If final vals < initial vals: Program will quit\n");
  printf(
      "\t\t If initial vals are < 0:      Program assumes inital vals = 0\n");
  printf(
      "\t\t If final vals are > 3711:     Program assumes final vals = 3711\n");
  printf("Will now exit!\n");
}


x86 assembly (clang, -O0):
<show_usage>:
push   %rbp
mov    %rsp,%rbp
lea    0xee5(%rip),%rdi
call   1030 <printf@plt>
lea    0xf14(%rip),%rdi
call   1030 <printf@plt>
lea    0xf52(%rip),%rdi
call   1030 <printf@plt>
lea    0xf70(%rip),%rdi
call   1030 <printf@plt>
lea    0xfa0(%rip),%rdi
call   1030 <printf@plt>
lea    0xfd2(%rip),%rdi
call   1030 <printf@plt>
lea    0x1007(%rip),%rdi
call   1030 <printf@plt>
lea    0x103a(%rip),%rdi
call   1030 <printf@plt>
lea    0x1060(%rip),%rdi
call   1030 <printf@plt>
lea    0x109a(%rip),%rdi
call   1030 <printf@plt>
lea    0x10bd(%rip),%rdi
call   1030 <printf@plt>
lea    0x10fd(%rip),%rdi
call   1030 <printf@plt>
lea    0x110d(%rip),%rdi
call   1030 <printf@plt>
lea    0x1119(%rip),%rdi
call   1030 <printf@plt>
lea    0x1123(%rip),%rdi
call   1030 <printf@plt>
lea    0x1131(%rip),%rdi
call   1030 <printf@plt>
lea    0x113d(%rip),%rdi
call   1030 <printf@plt>
lea    0x1165(%rip),%rdi
call   1030 <printf@plt>
lea    0x119b(%rip),%rdi
call   1030 <printf@plt>
lea    0x11d3(%rip),%rdi
call   1030 <printf@plt>
pop    %rbp
ret

x86 assembly (clang, -O2):
<show_usage>:
push   %rax
lea    0xee8(%rip),%rdi
call   1030 <puts@plt>
lea    0xf16(%rip),%rdi
call   1030 <puts@plt>
lea    0xf53(%rip),%rdi
call   1030 <puts@plt>
lea    0xf70(%rip),%rdi
call   1030 <puts@plt>
lea    0xf9f(%rip),%rdi
call   1030 <puts@plt>
lea    0xfd0(%rip),%rdi
call   1030 <puts@plt>
lea    0x1004(%rip),%rdi
call   1030 <puts@plt>
lea    0x1036(%rip),%rdi
call   1030 <puts@plt>
lea    0x105b(%rip),%rdi
call   1030 <puts@plt>
lea    0x1094(%rip),%rdi
call   1030 <puts@plt>
lea    0x10b6(%rip),%rdi
call   1030 <puts@plt>
lea    0x10f5(%rip),%rdi
call   1030 <puts@plt>
lea    0x1104(%rip),%rdi
call   1030 <puts@plt>
lea    0x110f(%rip),%rdi
call   1030 <puts@plt>
lea    0x1118(%rip),%rdi
call   1030 <puts@plt>
lea    0x1125(%rip),%rdi
call   1030 <puts@plt>
lea    0x1130(%rip),%rdi
call   1030 <puts@plt>
lea    0x1157(%rip),%rdi
call   1030 <puts@plt>
lea    0x118c(%rip),%rdi
call   1030 <puts@plt>
lea    0x11c3(%rip),%rdi
pop    %rax
jmp    1030 <puts@plt>

LLVM IR (-O0):
@.str = [59 x i8] c"To run this program please use:\0A\09./SEVIRI_tool <filename>\0A\00"
@.str.1 = [74 x i8] c"Where <filename> points to a driver file containing the following lines:\0A\00"
@.str.2 = [42 x i8] c"\09Line 1, Input data format: HRIT or NAT\0A\00"
@.str.3 = [60 x i8] c"\09Line 2, Input directory (if HRIT) or input file (if NAT)\0A\00"
@.str.4 = [62 x i8] c"\09Line 3, Timeslot (if HRIT, YYYYMMDDHHMM) or blank (if NAT)\0A\00"
@.str.5 = [65 x i8] c"\09Line 4, Satellite number (if HRIT, 1/2/3/4) or blank (if nat)\0A\00"
@.str.6 = [63 x i8] c"\09Line 5, Bands to read (HRIT and NAT) in format: 11010100100\0A\00"
@.str.7 = [50 x i8] c"\09\09 1 = read this band, 0 = do not read this band\0A\00"
@.str.8 = [70 x i8] c"\09\09 max length: 11 chars. If shorter, defaults to 0 for missing bands\0A\00"
@.str.9 = [47 x i8] c"\09Line 6, Output data format: HDF, CDF or TIF\0A\00"
@.str.10 = [76 x i8] c"\09Line 7, Output data type: CNT, RAD or RBT (for count, radiance, refl/bt)\0A\00"
@.str.11 = [28 x i8] c"\09Line 8, Output directory\0A\00"
@.str.12 = [24 x i8] c"\09Line 9, Initial line\0A\00"
@.str.13 = [22 x i8] c"\09Line 10, Final line\0A\00"
@.str.14 = [26 x i8] c"\09Line 11, Initial column\0A\00"
@.str.15 = [24 x i8] c"\09Line 12, Final column\0A\00"
@.str.16 = [52 x i8] c"\09\09 If final vals < initial vals: Program will quit\0A\00"
@.str.17 = [66 x i8] c"\09\09 If initial vals are < 0: Program assumes inital vals = 0\0A\00"
@.str.18 = [68 x i8] c"\09\09 If final vals are > 3711: Program assumes final vals = 3711\0A\00"
@.str.19 = [16 x i8] c"Will now exit!\0A\00"
define void @show_usage() {
%1 = call i32 @printf(i8* getelementptr inbounds ([59 x i8], [59 x i8]* @.str, i64 0, i64 0))
%2 = call i32 @printf(i8* getelementptr inbounds ([74 x i8], [74 x i8]* @.str.1, i64 0, i64 0))
%3 = call i32 @printf(i8* getelementptr inbounds ([42 x i8], [42 x i8]* @.str.2, i64 0, i64 0))
%4 = call i32 @printf(i8* getelementptr inbounds ([60 x i8], [60 x i8]* @.str.3, i64 0, i64 0))
%5 = call i32 @printf(i8* getelementptr inbounds ([62 x i8], [62 x i8]* @.str.4, i64 0, i64 0))
%6 = call i32 @printf(i8* getelementptr inbounds ([65 x i8], [65 x i8]* @.str.5, i64 0, i64 0))
%7 = call i32 @printf(i8* getelementptr inbounds ([63 x i8], [63 x i8]* @.str.6, i64 0, i64 0))
%8 = call i32 @printf(i8* getelementptr inbounds ([50 x i8], [50 x i8]* @.str.7, i64 0, i64 0))
%9 = call i32 @printf(i8* getelementptr inbounds ([70 x i8], [70 x i8]* @.str.8, i64 0, i64 0))
%10 = call i32 @printf(i8* getelementptr inbounds ([47 x i8], [47 x i8]* @.str.9, i64 0, i64 0))
%11 = call i32 @printf(i8* getelementptr inbounds ([76 x i8], [76 x i8]* @.str.10, i64 0, i64 0))
%12 = call i32 @printf(i8* getelementptr inbounds ([28 x i8], [28 x i8]* @.str.11, i64 0, i64 0))
%13 = call i32 @printf(i8* getelementptr inbounds ([24 x i8], [24 x i8]* @.str.12, i64 0, i64 0))
%14 = call i32 @printf(i8* getelementptr inbounds ([22 x i8], [22 x i8]* @.str.13, i64 0, i64 0))
%15 = call i32 @printf(i8* getelementptr inbounds ([26 x i8], [26 x i8]* @.str.14, i64 0, i64 0))
%16 = call i32 @printf(i8* getelementptr inbounds ([24 x i8], [24 x i8]* @.str.15, i64 0, i64 0))
%17 = call i32 @printf(i8* getelementptr inbounds ([52 x i8], [52 x i8]* @.str.16, i64 0, i64 0))
%18 = call i32 @printf(i8* getelementptr inbounds ([66 x i8], [66 x i8]* @.str.17, i64 0, i64 0))
%19 = call i32 @printf(i8* getelementptr inbounds ([68 x i8], [68 x i8]* @.str.18, i64 0, i64 0))
%20 = call i32 @printf(i8* getelementptr inbounds ([16 x i8], [16 x i8]* @.str.19, i64 0, i64 0))
ret void
}

LLVM IR (-O2):
@str = [58 x i8] c"To run this program please use:\0A\09./SEVIRI_tool <filename>\00"
@str.20 = [73 x i8] c"Where <filename> points to a driver file containing the following lines:\00"
@str.21 = [41 x i8] c"\09Line 1, Input data format: HRIT or NAT\00"
@str.22 = [59 x i8] c"\09Line 2, Input directory (if HRIT) or input file (if NAT)\00"
@str.23 = [61 x i8] c"\09Line 3, Timeslot (if HRIT, YYYYMMDDHHMM) or blank (if NAT)\00"
@str.24 = [64 x i8] c"\09Line 4, Satellite number (if HRIT, 1/2/3/4) or blank (if nat)\00"
@str.25 = [62 x i8] c"\09Line 5, Bands to read (HRIT and NAT) in format: 11010100100\00"
@str.26 = [49 x i8] c"\09\09 1 = read this band, 0 = do not read this band\00"
@str.27 = [69 x i8] c"\09\09 max length: 11 chars. If shorter, defaults to 0 for missing bands\00"
@str.28 = [46 x i8] c"\09Line 6, Output data format: HDF, CDF or TIF\00"
@str.29 = [75 x i8] c"\09Line 7, Output data type: CNT, RAD or RBT (for count, radiance, refl/bt)\00"
@str.30 = [27 x i8] c"\09Line 8, Output directory\00"
@str.31 = [23 x i8] c"\09Line 9, Initial line\00"
@str.32 = [21 x i8] c"\09Line 10, Final line\00"
@str.33 = [25 x i8] c"\09Line 11, Initial column\00"
@str.34 = [23 x i8] c"\09Line 12, Final column\00"
@str.35 = [51 x i8] c"\09\09 If final vals < initial vals: Program will quit\00"
@str.36 = [65 x i8] c"\09\09 If initial vals are < 0: Program assumes inital vals = 0\00"
@str.37 = [67 x i8] c"\09\09 If final vals are > 3711: Program assumes final vals = 3711\00"
@str.38 = [15 x i8] c"Will now exit!\00"
define void @show_usage() {
%1 = tail call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([58 x i8], [58 x i8]* @str, i64 0, i64 0))
%2 = tail call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([73 x i8], [73 x i8]* @str.20, i64 0, i64 0))
%3 = tail call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([41 x i8], [41 x i8]* @str.21, i64 0, i64 0))
%4 = tail call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([59 x i8], [59 x i8]* @str.22, i64 0, i64 0))
%5 = tail call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([61 x i8], [61 x i8]* @str.23, i64 0, i64 0))
%6 = tail call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([64 x i8], [64 x i8]* @str.24, i64 0, i64 0))
%7 = tail call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([62 x i8], [62 x i8]* @str.25, i64 0, i64 0))
%8 = tail call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([49 x i8], [49 x i8]* @str.26, i64 0, i64 0))
%9 = tail call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([69 x i8], [69 x i8]* @str.27, i64 0, i64 0))
%10 = tail call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([46 x i8], [46 x i8]* @str.28, i64 0, i64 0))
%11 = tail call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([75 x i8], [75 x i8]* @str.29, i64 0, i64 0))
%12 = tail call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([27 x i8], [27 x i8]* @str.30, i64 0, i64 0))
%13 = tail call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([23 x i8], [23 x i8]* @str.31, i64 0, i64 0))
%14 = tail call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([21 x i8], [21 x i8]* @str.32, i64 0, i64 0))
%15 = tail call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([25 x i8], [25 x i8]* @str.33, i64 0, i64 0))
%16 = tail call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([23 x i8], [23 x i8]* @str.34, i64 0, i64 0))
%17 = tail call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([51 x i8], [51 x i8]* @str.35, i64 0, i64 0))
%18 = tail call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([65 x i8], [65 x i8]* @str.36, i64 0, i64 0))
%19 = tail call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([67 x i8], [67 x i8]* @str.37, i64 0, i64 0))
%20 = tail call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([15 x i8], [15 x i8]* @str.38, i64 0, i64 0))
ret void
}