#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*/ exit(int /*<<< orphan*/);
int /*<<< orphan*/ printf(char *, ...);
void print_usage(char *prog_name) {
  printf("Usage %s:\n", prog_name);
  printf("\t-n --no-loop2            : Don't use LOOP2 packet request (default "
         ": use LOOP2)\n");
  printf("\t-w --www=[WWW_ROOT]      : Folder where the web pages are written "
         "(default : /tmp) \n");
  printf("\t-s --station_id=[ID]     : Wunderground station id (default : "
         "none)\n");
  printf(
      "\t-p --password=[PASS]     : Wunderground password (default : none)\n");
  printf("\t-u --usb-serial          : Use a usb to serial device. In this "
         "case, dev can be set as\n"
         "device prefix (i.e : /dev/ttySER). If no prefix is given, the\n"
         "default prefix is /dev/ttyUSB\n");
  printf("\t-d --dev=[DEV_FILENAME]  : Device to open (e.g : /dev/ttyUSB0) or "
         "prefix is -u is used \n");
  printf("\n");
  printf("\t-l --loglevel=[LEVEL]    : Log level (default : 0)\n");
  printf("\t-h --help                : Display tool usage\n");
  exit(0);
}


x86 assembly (clang, -O0):
<print_usage>:
push   %rbp
mov    %rsp,%rbp
sub    $0x10,%rsp
mov    %rdi,-0x8(%rbp)
mov    -0x8(%rbp),%rsi
lea    0xec9(%rip),%rdi
mov    $0x0,%al
call   1030 <printf@plt>
lea    0xec6(%rip),%rdi
mov    $0x0,%al
call   1030 <printf@plt>
lea    0xf0a(%rip),%rdi
mov    $0x0,%al
call   1030 <printf@plt>
lea    0xf52(%rip),%rdi
mov    $0x0,%al
call   1030 <printf@plt>
lea    0xf8a(%rip),%rdi
mov    $0x0,%al
call   1030 <printf@plt>
lea    0xfc0(%rip),%rdi
mov    $0x0,%al
call   1030 <printf@plt>
lea    0x1067(%rip),%rdi
mov    $0x0,%al
call   1030 <printf@plt>
lea    0xf18(%rip),%rdi
mov    $0x0,%al
call   1030 <printf@plt>
lea    0x10a5(%rip),%rdi
mov    $0x0,%al
call   1030 <printf@plt>
lea    0x10cc(%rip),%rdi
mov    $0x0,%al
call   1030 <printf@plt>
xor    %edi,%edi
call   1040 <exit@plt>

x86 assembly (clang, -O2):
<print_usage>:
push   %rax
mov    %rdi,%rsi
lea    0xeb5(%rip),%rdi
xor    %eax,%eax
call   1050 <printf@plt>
lea    0xeb2(%rip),%rdi
call   1040 <puts@plt>
lea    0xef7(%rip),%rdi
call   1040 <puts@plt>
lea    0xf40(%rip),%rdi
call   1040 <puts@plt>
lea    0xf79(%rip),%rdi
call   1040 <puts@plt>
lea    0xfb0(%rip),%rdi
call   1040 <puts@plt>
lea    0x1058(%rip),%rdi
call   1040 <puts@plt>
mov    $0xa,%edi
call   1030 <putchar@plt>
lea    0x109b(%rip),%rdi
call   1040 <puts@plt>
lea    0x10c3(%rip),%rdi
call   1040 <puts@plt>
xor    %edi,%edi
call   1060 <exit@plt>

LLVM IR (-O0):
@.str = [11 x i8] c"Usage %s:\0A\00"
@.str.1 = [82 x i8] c"\09-n --no-loop2 : Don't use LOOP2 packet request (default : use LOOP2)\0A\00"
@.str.2 = [86 x i8] c"\09-w --www=[WWW_ROOT] : Folder where the web pages are written (default : /tmp) \0A\00"
@.str.3 = [70 x i8] c"\09-s --station_id=[ID] : Wunderground station id (default : none)\0A\00"
@.str.4 = [68 x i8] c"\09-p --password=[PASS] : Wunderground password (default : none)\0A\00"
@.str.5 = [181 x i8] c"\09-u --usb-serial : Use a usb to serial device. In this case, dev can be set as\0Adevice prefix (i.e : /dev/ttySER). If no prefix is given, the\0Adefault prefix is /dev/ttyUSB\0A\00"
@.str.6 = [90 x i8] c"\09-d --dev=[DEV_FILENAME] : Device to open (e.g : /dev/ttyUSB0) or prefix is -u is used \0A\00"
@.str.7 = [2 x i8] c"\0A\00"
@.str.8 = [53 x i8] c"\09-l --loglevel=[LEVEL] : Log level (default : 0)\0A\00"
@.str.9 = [48 x i8] c"\09-h --help : Display tool usage\0A\00"
define void @print_usage(i8* %0) {
%2 = alloca i8*
store i8* %0, i8** %2
%3 = load i8*, i8** %2
%4 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([11 x i8], [11 x i8]* @.str, i64 0, i64 0), i8* %3)
%5 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([82 x i8], [82 x i8]* @.str.1, i64 0, i64 0))
%6 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([86 x i8], [86 x i8]* @.str.2, i64 0, i64 0))
%7 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([70 x i8], [70 x i8]* @.str.3, i64 0, i64 0))
%8 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([68 x i8], [68 x i8]* @.str.4, i64 0, i64 0))
%9 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([181 x i8], [181 x i8]* @.str.5, i64 0, i64 0))
%10 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([90 x i8], [90 x i8]* @.str.6, i64 0, i64 0))
%11 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([2 x i8], [2 x i8]* @.str.7, i64 0, i64 0))
%12 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([53 x i8], [53 x i8]* @.str.8, i64 0, i64 0))
%13 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([48 x i8], [48 x i8]* @.str.9, i64 0, i64 0))
%14 = call i32 @exit(i32 0)
unreachable
}

LLVM IR (-O2):
@.str = [11 x i8] c"Usage %s:\0A\00"
@str = [81 x i8] c"\09-n --no-loop2 : Don't use LOOP2 packet request (default : use LOOP2)\00"
@str.10 = [85 x i8] c"\09-w --www=[WWW_ROOT] : Folder where the web pages are written (default : /tmp) \00"
@str.11 = [69 x i8] c"\09-s --station_id=[ID] : Wunderground station id (default : none)\00"
@str.12 = [67 x i8] c"\09-p --password=[PASS] : Wunderground password (default : none)\00"
@str.13 = [180 x i8] c"\09-u --usb-serial : Use a usb to serial device. In this case, dev can be set as\0Adevice prefix (i.e : /dev/ttySER). If no prefix is given, the\0Adefault prefix is /dev/ttyUSB\00"
@str.14 = [89 x i8] c"\09-d --dev=[DEV_FILENAME] : Device to open (e.g : /dev/ttyUSB0) or prefix is -u is used \00"
@str.15 = [52 x i8] c"\09-l --loglevel=[LEVEL] : Log level (default : 0)\00"
@str.16 = [47 x i8] c"\09-h --help : Display tool usage\00"
define void @print_usage(i8* %0) {
%2 = tail call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([11 x i8], [11 x i8]* @.str, i64 0, i64 0), i8* %0)
%3 = tail call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([81 x i8], [81 x i8]* @str, i64 0, i64 0))
%4 = tail call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([85 x i8], [85 x i8]* @str.10, i64 0, i64 0))
%5 = tail call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([69 x i8], [69 x i8]* @str.11, i64 0, i64 0))
%6 = tail call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([67 x i8], [67 x i8]* @str.12, i64 0, i64 0))
%7 = tail call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([180 x i8], [180 x i8]* @str.13, i64 0, i64 0))
%8 = tail call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([89 x i8], [89 x i8]* @str.14, i64 0, i64 0))
%9 = tail call i32 @putchar(i32 10)
%10 = tail call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([52 x i8], [52 x i8]* @str.15, i64 0, i64 0))
%11 = tail call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([47 x i8], [47 x i8]* @str.16, i64 0, i64 0))
%12 = tail call i32 @exit(i32 0)
unreachable
}