#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 printHelp() {
  printf("\nWeather Station Reader v0.11\n");
  printf("Reads and reports data from the WH1081 Fine Offset usb weather "
         "station\n");
  printf("(C) 2010 Jim Whurr\n\n");
  printf("[Based on the original wwsr utility V0.1, (C) Michael Pendec 2007, "
         "and \n");
  printf("ideas from V0.3 (C) Svend Skafte - 2008, (C) Quentin Decembry - "
         "2008]\n\n");
  printf("options:\n");
  printf(" -h             help information\n");
  printf(" -H             list header fields\n");
  printf(" -F filename    read data from the specified file as if it were the "
         "device\n");
  printf(" -w filename    write device memory to the specified file\n");
  printf(" -v             verbose, causes headings to be listed\n");
  printf(" -m start:end   dump device memory from start to end (specified in "
         "hex)\n");
  printf(" -r start:end   hex dump of records (0 = current, 1 = last saved, "
         "etc)\n");
  printf("\nsub-options of -r\n");
  printf("\t-s \"date\"  list records (r > 0) saved since the specified utc "
         "formatted date\n");
  printf("\t-S \"string\" use the specified string as a separator between "
         "fields\n");
  printf("\t-p \"spec\"  Print using the specification string, see below\n");
  printf("\t\ta.... the device memory address (in hex)\n");
  printf("\t\th.... humidity outside\n");
  printf("\t\tH.... humidity inside\n");
  printf("\t\tt.... temperature outside\n");
  printf("\t\tT.... temperature inside\n");
  printf("\t\tr.... rain meter reading\n");
  printf("\t\tR.... rain meter difference from previous\n");
  printf("\t\tp.... pressure\n");
  printf("\t\tw.... wind speed\n");
  printf("\t\tg.... gust speed\n");
  printf("\t\td.... wind direction\n");
  printf("\t\ti.... record interval (time since previous save in mins)\n");
  printf("\t\tu.... date/time of the data as utc\n");
  printf("\t\tU.... as u but with the value enclosed in ''s\n");
  printf("\n\nfor example:\n");
  printf("\t$ ./wsrdr -r 1:20 -p \"uhtpwd\"\n\n");
}


x86 assembly (clang, -O0):
<printHelp>:
push   %rbp
mov    %rsp,%rbp
lea    0xee5(%rip),%rdi
call   1030 <printf@plt>
lea    0xef8(%rip),%rdi
call   1030 <printf@plt>
lea    0xf34(%rip),%rdi
call   1030 <printf@plt>
lea    0xf3d(%rip),%rdi
call   1030 <printf@plt>
lea    0xf7a(%rip),%rdi
call   1030 <printf@plt>
lea    0xfb6(%rip),%rdi
call   1030 <printf@plt>
lea    0xfb4(%rip),%rdi
call   1030 <printf@plt>
lea    0xfca(%rip),%rdi
call   1030 <printf@plt>
lea    0xfe2(%rip),%rdi
call   1030 <printf@plt>
lea    0x1022(%rip),%rdi
call   1030 <printf@plt>
lea    0x1051(%rip),%rdi
call   1030 <printf@plt>
lea    0x107c(%rip),%rdi
call   1030 <printf@plt>
lea    0x10b9(%rip),%rdi
call   1030 <printf@plt>
lea    0x10f5(%rip),%rdi
call   1030 <printf@plt>
lea    0x10fd(%rip),%rdi
call   1030 <printf@plt>
lea    0x1140(%rip),%rdi
call   1030 <printf@plt>
lea    0x1179(%rip),%rdi
call   1030 <printf@plt>
lea    0x11aa(%rip),%rdi
call   1030 <printf@plt>
lea    0x11ca(%rip),%rdi
call   1030 <printf@plt>
lea    0x11d8(%rip),%rdi
call   1030 <printf@plt>
lea    0x11e5(%rip),%rdi
call   1030 <printf@plt>
lea    0x11f6(%rip),%rdi
call   1030 <printf@plt>
lea    0x1206(%rip),%rdi
call   1030 <printf@plt>
lea    0x1216(%rip),%rdi
call   1030 <printf@plt>
lea    0x1237(%rip),%rdi
call   1030 <printf@plt>
lea    0x123d(%rip),%rdi
call   1030 <printf@plt>
lea    0x1245(%rip),%rdi
call   1030 <printf@plt>
lea    0x124d(%rip),%rdi
call   1030 <printf@plt>
lea    0x1259(%rip),%rdi
call   1030 <printf@plt>
lea    0x1289(%rip),%rdi
call   1030 <printf@plt>
lea    0x12a3(%rip),%rdi
call   1030 <printf@plt>
lea    0x12c8(%rip),%rdi
call   1030 <printf@plt>
lea    0x12cc(%rip),%rdi
call   1030 <printf@plt>
pop    %rbp
ret

x86 assembly (clang, -O2):
<printHelp>:
push   %rax
lea    0xee8(%rip),%rdi
call   1030 <puts@plt>
lea    0xefa(%rip),%rdi
call   1030 <puts@plt>
lea    0xf35(%rip),%rdi
call   1030 <puts@plt>
lea    0xf3d(%rip),%rdi
call   1030 <puts@plt>
lea    0xf79(%rip),%rdi
call   1030 <puts@plt>
lea    0xfb4(%rip),%rdi
call   1030 <puts@plt>
lea    0xfb1(%rip),%rdi
call   1030 <puts@plt>
lea    0xfc6(%rip),%rdi
call   1030 <puts@plt>
lea    0xfdd(%rip),%rdi
call   1030 <puts@plt>
lea    0x101c(%rip),%rdi
call   1030 <puts@plt>
lea    0x104a(%rip),%rdi
call   1030 <puts@plt>
lea    0x1074(%rip),%rdi
call   1030 <puts@plt>
lea    0x10b0(%rip),%rdi
call   1030 <puts@plt>
lea    0x10eb(%rip),%rdi
call   1030 <puts@plt>
lea    0x10f2(%rip),%rdi
call   1030 <puts@plt>
lea    0x1134(%rip),%rdi
call   1030 <puts@plt>
lea    0x116c(%rip),%rdi
call   1030 <puts@plt>
lea    0x119c(%rip),%rdi
call   1030 <puts@plt>
lea    0x11bb(%rip),%rdi
call   1030 <puts@plt>
lea    0x11c8(%rip),%rdi
call   1030 <puts@plt>
lea    0x11d4(%rip),%rdi
call   1030 <puts@plt>
lea    0x11e4(%rip),%rdi
call   1030 <puts@plt>
lea    0x11f3(%rip),%rdi
call   1030 <puts@plt>
lea    0x1202(%rip),%rdi
call   1030 <puts@plt>
lea    0x1222(%rip),%rdi
call   1030 <puts@plt>
lea    0x1227(%rip),%rdi
call   1030 <puts@plt>
lea    0x122e(%rip),%rdi
call   1030 <puts@plt>
lea    0x1235(%rip),%rdi
call   1030 <puts@plt>
lea    0x1240(%rip),%rdi
call   1030 <puts@plt>
lea    0x126f(%rip),%rdi
call   1030 <puts@plt>
lea    0x1288(%rip),%rdi
call   1030 <puts@plt>
lea    0x12ac(%rip),%rdi
call   1030 <puts@plt>
lea    0x12af(%rip),%rdi
pop    %rax
jmp    1030 <puts@plt>

LLVM IR (-O0):
@.str = [31 x i8] c"\0AWeather Station Reader v0.11\0A\00"
@.str.1 = [72 x i8] c"Reads and reports data from the WH1081 Fine Offset usb weather station\0A\00"
@.str.2 = [21 x i8] c"(C) 2010 Jim Whurr\0A\0A\00"
@.str.3 = [73 x i8] c"[Based on the original wwsr utility V0.1, (C) Michael Pendec 2007, and \0A\00"
@.str.4 = [72 x i8] c"ideas from V0.3 (C) Svend Skafte - 2008, (C) Quentin Decembry - 2008]\0A\0A\00"
@.str.5 = [10 x i8] c"options:\0A\00"
@.str.6 = [34 x i8] c" -h help information\0A\00"
@.str.7 = [36 x i8] c" -H list header fields\0A\00"
@.str.8 = [76 x i8] c" -F filename read data from the specified file as if it were the device\0A\00"
@.str.9 = [59 x i8] c" -w filename write device memory to the specified file\0A\00"
@.str.10 = [55 x i8] c" -v verbose, causes headings to be listed\0A\00"
@.str.11 = [73 x i8] c" -m start:end dump device memory from start to end (specified in hex)\0A\00"
@.str.12 = [72 x i8] c" -r start:end hex dump of records (0 = current, 1 = last saved, etc)\0A\00"
@.str.13 = [20 x i8] c"\0Asub-options of -r\0A\00"
@.str.14 = [79 x i8] c"\09-s \22date\22 list records (r > 0) saved since the specified utc formatted date\0A\00"
@.str.15 = [69 x i8] c"\09-S \22string\22 use the specified string as a separator between fields\0A\00"
@.str.16 = [61 x i8] c"\09-p \22spec\22 Print using the specification string, see below\0A\00"
@.str.17 = [44 x i8] c"\09\09a.... the device memory address (in hex)\0A\00"
@.str.18 = [26 x i8] c"\09\09h.... humidity outside\0A\00"
@.str.19 = [25 x i8] c"\09\09H.... humidity inside\0A\00"
@.str.20 = [29 x i8] c"\09\09t.... temperature outside\0A\00"
@.str.21 = [28 x i8] c"\09\09T.... temperature inside\0A\00"
@.str.22 = [28 x i8] c"\09\09r.... rain meter reading\0A\00"
@.str.23 = [45 x i8] c"\09\09R.... rain meter difference from previous\0A\00"
@.str.24 = [18 x i8] c"\09\09p.... pressure\0A\00"
@.str.25 = [20 x i8] c"\09\09w.... wind speed\0A\00"
@.str.26 = [20 x i8] c"\09\09g.... gust speed\0A\00"
@.str.27 = [24 x i8] c"\09\09d.... wind direction\0A\00"
@.str.28 = [60 x i8] c"\09\09i.... record interval (time since previous save in mins)\0A\00"
@.str.29 = [38 x i8] c"\09\09u.... date/time of the data as utc\0A\00"
@.str.30 = [49 x i8] c"\09\09U.... as u but with the value enclosed in ''s\0A\00"
@.str.31 = [16 x i8] c"\0A\0Afor example:\0A\00"
@.str.32 = [33 x i8] c"\09$ ./wsrdr -r 1:20 -p \22uhtpwd\22\0A\0A\00"
define void @printHelp() {
%1 = call i32 @printf(i8* getelementptr inbounds ([31 x i8], [31 x i8]* @.str, i64 0, i64 0))
%2 = call i32 @printf(i8* getelementptr inbounds ([72 x i8], [72 x i8]* @.str.1, i64 0, i64 0))
%3 = call i32 @printf(i8* getelementptr inbounds ([21 x i8], [21 x i8]* @.str.2, i64 0, i64 0))
%4 = call i32 @printf(i8* getelementptr inbounds ([73 x i8], [73 x i8]* @.str.3, i64 0, i64 0))
%5 = call i32 @printf(i8* getelementptr inbounds ([72 x i8], [72 x i8]* @.str.4, i64 0, i64 0))
%6 = call i32 @printf(i8* getelementptr inbounds ([10 x i8], [10 x i8]* @.str.5, i64 0, i64 0))
%7 = call i32 @printf(i8* getelementptr inbounds ([34 x i8], [34 x i8]* @.str.6, i64 0, i64 0))
%8 = call i32 @printf(i8* getelementptr inbounds ([36 x i8], [36 x i8]* @.str.7, i64 0, i64 0))
%9 = call i32 @printf(i8* getelementptr inbounds ([76 x i8], [76 x i8]* @.str.8, i64 0, i64 0))
%10 = call i32 @printf(i8* getelementptr inbounds ([59 x i8], [59 x i8]* @.str.9, i64 0, i64 0))
%11 = call i32 @printf(i8* getelementptr inbounds ([55 x i8], [55 x i8]* @.str.10, i64 0, i64 0))
%12 = call i32 @printf(i8* getelementptr inbounds ([73 x i8], [73 x i8]* @.str.11, i64 0, i64 0))
%13 = call i32 @printf(i8* getelementptr inbounds ([72 x i8], [72 x i8]* @.str.12, i64 0, i64 0))
%14 = call i32 @printf(i8* getelementptr inbounds ([20 x i8], [20 x i8]* @.str.13, i64 0, i64 0))
%15 = call i32 @printf(i8* getelementptr inbounds ([79 x i8], [79 x i8]* @.str.14, i64 0, i64 0))
%16 = call i32 @printf(i8* getelementptr inbounds ([69 x i8], [69 x i8]* @.str.15, i64 0, i64 0))
%17 = call i32 @printf(i8* getelementptr inbounds ([61 x i8], [61 x i8]* @.str.16, i64 0, i64 0))
%18 = call i32 @printf(i8* getelementptr inbounds ([44 x i8], [44 x i8]* @.str.17, i64 0, i64 0))
%19 = call i32 @printf(i8* getelementptr inbounds ([26 x i8], [26 x i8]* @.str.18, i64 0, i64 0))
%20 = call i32 @printf(i8* getelementptr inbounds ([25 x i8], [25 x i8]* @.str.19, i64 0, i64 0))
%21 = call i32 @printf(i8* getelementptr inbounds ([29 x i8], [29 x i8]* @.str.20, i64 0, i64 0))
%22 = call i32 @printf(i8* getelementptr inbounds ([28 x i8], [28 x i8]* @.str.21, i64 0, i64 0))
%23 = call i32 @printf(i8* getelementptr inbounds ([28 x i8], [28 x i8]* @.str.22, i64 0, i64 0))
%24 = call i32 @printf(i8* getelementptr inbounds ([45 x i8], [45 x i8]* @.str.23, i64 0, i64 0))
%25 = call i32 @printf(i8* getelementptr inbounds ([18 x i8], [18 x i8]* @.str.24, i64 0, i64 0))
%26 = call i32 @printf(i8* getelementptr inbounds ([20 x i8], [20 x i8]* @.str.25, i64 0, i64 0))
%27 = call i32 @printf(i8* getelementptr inbounds ([20 x i8], [20 x i8]* @.str.26, i64 0, i64 0))
%28 = call i32 @printf(i8* getelementptr inbounds ([24 x i8], [24 x i8]* @.str.27, i64 0, i64 0))
%29 = call i32 @printf(i8* getelementptr inbounds ([60 x i8], [60 x i8]* @.str.28, i64 0, i64 0))
%30 = call i32 @printf(i8* getelementptr inbounds ([38 x i8], [38 x i8]* @.str.29, i64 0, i64 0))
%31 = call i32 @printf(i8* getelementptr inbounds ([49 x i8], [49 x i8]* @.str.30, i64 0, i64 0))
%32 = call i32 @printf(i8* getelementptr inbounds ([16 x i8], [16 x i8]* @.str.31, i64 0, i64 0))
%33 = call i32 @printf(i8* getelementptr inbounds ([33 x i8], [33 x i8]* @.str.32, i64 0, i64 0))
ret void
}

LLVM IR (-O2):
@str = [30 x i8] c"\0AWeather Station Reader v0.11\00"
@str.33 = [71 x i8] c"Reads and reports data from the WH1081 Fine Offset usb weather station\00"
@str.34 = [20 x i8] c"(C) 2010 Jim Whurr\0A\00"
@str.35 = [72 x i8] c"[Based on the original wwsr utility V0.1, (C) Michael Pendec 2007, and \00"
@str.36 = [71 x i8] c"ideas from V0.3 (C) Svend Skafte - 2008, (C) Quentin Decembry - 2008]\0A\00"
@str.37 = [9 x i8] c"options:\00"
@str.38 = [33 x i8] c" -h help information\00"
@str.39 = [35 x i8] c" -H list header fields\00"
@str.40 = [75 x i8] c" -F filename read data from the specified file as if it were the device\00"
@str.41 = [58 x i8] c" -w filename write device memory to the specified file\00"
@str.42 = [54 x i8] c" -v verbose, causes headings to be listed\00"
@str.43 = [72 x i8] c" -m start:end dump device memory from start to end (specified in hex)\00"
@str.44 = [71 x i8] c" -r start:end hex dump of records (0 = current, 1 = last saved, etc)\00"
@str.45 = [19 x i8] c"\0Asub-options of -r\00"
@str.46 = [78 x i8] c"\09-s \22date\22 list records (r > 0) saved since the specified utc formatted date\00"
@str.47 = [68 x i8] c"\09-S \22string\22 use the specified string as a separator between fields\00"
@str.48 = [60 x i8] c"\09-p \22spec\22 Print using the specification string, see below\00"
@str.49 = [43 x i8] c"\09\09a.... the device memory address (in hex)\00"
@str.50 = [25 x i8] c"\09\09h.... humidity outside\00"
@str.51 = [24 x i8] c"\09\09H.... humidity inside\00"
@str.52 = [28 x i8] c"\09\09t.... temperature outside\00"
@str.53 = [27 x i8] c"\09\09T.... temperature inside\00"
@str.54 = [27 x i8] c"\09\09r.... rain meter reading\00"
@str.55 = [44 x i8] c"\09\09R.... rain meter difference from previous\00"
@str.56 = [17 x i8] c"\09\09p.... pressure\00"
@str.57 = [19 x i8] c"\09\09w.... wind speed\00"
@str.58 = [19 x i8] c"\09\09g.... gust speed\00"
@str.59 = [23 x i8] c"\09\09d.... wind direction\00"
@str.60 = [59 x i8] c"\09\09i.... record interval (time since previous save in mins)\00"
@str.61 = [37 x i8] c"\09\09u.... date/time of the data as utc\00"
@str.62 = [48 x i8] c"\09\09U.... as u but with the value enclosed in ''s\00"
@str.63 = [15 x i8] c"\0A\0Afor example:\00"
@str.64 = [32 x i8] c"\09$ ./wsrdr -r 1:20 -p \22uhtpwd\22\0A\00"
define void @printHelp() {
%1 = tail call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([30 x i8], [30 x i8]* @str, i64 0, i64 0))
%2 = tail call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([71 x i8], [71 x i8]* @str.33, i64 0, i64 0))
%3 = tail call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([20 x i8], [20 x i8]* @str.34, i64 0, i64 0))
%4 = tail call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([72 x i8], [72 x i8]* @str.35, i64 0, i64 0))
%5 = tail call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([71 x i8], [71 x i8]* @str.36, i64 0, i64 0))
%6 = tail call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([9 x i8], [9 x i8]* @str.37, i64 0, i64 0))
%7 = tail call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([33 x i8], [33 x i8]* @str.38, i64 0, i64 0))
%8 = tail call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([35 x i8], [35 x i8]* @str.39, i64 0, i64 0))
%9 = tail call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([75 x i8], [75 x i8]* @str.40, i64 0, i64 0))
%10 = tail call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([58 x i8], [58 x i8]* @str.41, i64 0, i64 0))
%11 = tail call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([54 x i8], [54 x i8]* @str.42, i64 0, i64 0))
%12 = tail call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([72 x i8], [72 x i8]* @str.43, i64 0, i64 0))
%13 = tail call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([71 x i8], [71 x i8]* @str.44, i64 0, i64 0))
%14 = tail call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([19 x i8], [19 x i8]* @str.45, i64 0, i64 0))
%15 = tail call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([78 x i8], [78 x i8]* @str.46, i64 0, i64 0))
%16 = tail call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([68 x i8], [68 x i8]* @str.47, i64 0, i64 0))
%17 = tail call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([60 x i8], [60 x i8]* @str.48, i64 0, i64 0))
%18 = tail call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([43 x i8], [43 x i8]* @str.49, i64 0, i64 0))
%19 = tail call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([25 x i8], [25 x i8]* @str.50, i64 0, i64 0))
%20 = tail call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([24 x i8], [24 x i8]* @str.51, i64 0, i64 0))
%21 = tail call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([28 x i8], [28 x i8]* @str.52, i64 0, i64 0))
%22 = tail call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([27 x i8], [27 x i8]* @str.53, i64 0, i64 0))
%23 = tail call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([27 x i8], [27 x i8]* @str.54, i64 0, i64 0))
%24 = tail call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([44 x i8], [44 x i8]* @str.55, i64 0, i64 0))
%25 = tail call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([17 x i8], [17 x i8]* @str.56, i64 0, i64 0))
%26 = tail call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([19 x i8], [19 x i8]* @str.57, i64 0, i64 0))
%27 = tail call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([19 x i8], [19 x i8]* @str.58, i64 0, i64 0))
%28 = tail call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([23 x i8], [23 x i8]* @str.59, i64 0, i64 0))
%29 = tail call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([59 x i8], [59 x i8]* @str.60, i64 0, i64 0))
%30 = tail call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([37 x i8], [37 x i8]* @str.61, i64 0, i64 0))
%31 = tail call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([48 x i8], [48 x i8]* @str.62, i64 0, i64 0))
%32 = tail call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([15 x i8], [15 x i8]* @str.63, i64 0, i64 0))
%33 = tail call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([32 x i8], [32 x i8]* @str.64, i64 0, i64 0))
ret void
}