#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);
int /*<<< orphan*/ printf(char *);
void usage(void) {
  printf("Usage: wscd [-i infName] [-a ipaddress] [-p port] [-f descDoc] [-w "
         "webRootDir] -m UPnPOpMode -D [-d debugLevel] -h\n");
  printf("\t-i:	   Interface name this daemon will run wsc protocol(if not "
         "set, will use the default interface name - ra0)\n");
  printf("\t\t\te.g.: ra0\n");
  printf("\t-a:       IP address of the device (if not set, will auto "
         "assigned)\n");
  printf("\t\t\t e.g.: 192.168.0.1\n");
  printf("\t-p:       Port number for receiving UPnP messages (if not set, "
         "will auto assigned)\n");
  printf("\t\t\t e.g.: 54312\n");
  printf("\t-f:       Name of device description document (If not set, will "
         "used default value)\n");
  printf("\t\t\t e.g.: WFADeviceDesc.xml\n");
  printf("\t-w:       Filesystem path where descDoc and web files related to "
         "the device are stored\n");
  printf("\t\t\t e.g.: /etc/xml/\n");
  printf("\t-m:       UPnP system operation mode\n");
  printf("\t\t\t 1: Enable UPnP Device service(Support Enrolle or Proxy "
         "functions)\n");
  printf("\t\t\t 2: Enable UPnP Control Point service(Support Registratr "
         "function)\n");
  printf("\t\t\t 3: Enable both UPnP device service and Control Point "
         "services.\n");
  printf("\t-D:       Run program in daemon mode.\n");
  printf("\t-d:       Debug level\n");
  printf("\t\t\t 0: debug printing off\n");
  printf("\t\t\t 1: DEBUG_ERROR\n");
  printf("\t\t\t 2: DEBUG_PKT\n");
  printf("\t\t\t 3: DEBUG_INFO\n");
  exit(1);
}


x86 assembly (clang, -O0):
<usage>:
push   %rbp
mov    %rsp,%rbp
lea    0xed5(%rip),%rdi
call   1030 <printf@plt>
lea    0xf3d(%rip),%rdi
call   1030 <printf@plt>
lea    0xfa2(%rip),%rdi
call   1030 <printf@plt>
lea    0xfa4(%rip),%rdi
call   1030 <printf@plt>
lea    0xfde(%rip),%rdi
call   1030 <printf@plt>
lea    0xfe9(%rip),%rdi
call   1030 <printf@plt>
lea    0x1032(%rip),%rdi
call   1030 <printf@plt>
lea    0x1037(%rip),%rdi
call   1030 <printf@plt>
lea    0x1081(%rip),%rdi
call   1030 <printf@plt>
lea    0x1092(%rip),%rdi
call   1030 <printf@plt>
lea    0x10df(%rip),%rdi
call   1030 <printf@plt>
lea    0x10e8(%rip),%rdi
call   1030 <printf@plt>
lea    0x1103(%rip),%rdi
call   1030 <printf@plt>
lea    0x113e(%rip),%rdi
call   1030 <printf@plt>
lea    0x1179(%rip),%rdi
call   1030 <printf@plt>
lea    0x11b1(%rip),%rdi
call   1030 <printf@plt>
lea    0x11cd(%rip),%rdi
call   1030 <printf@plt>
lea    0x11d9(%rip),%rdi
call   1030 <printf@plt>
lea    0x11e8(%rip),%rdi
call   1030 <printf@plt>
lea    0x11f0(%rip),%rdi
call   1030 <printf@plt>
lea    0x11f6(%rip),%rdi
call   1030 <printf@plt>
mov    $0x1,%edi
call   1040 <exit@plt>

x86 assembly (clang, -O2):
<usage>:
push   %rax
lea    0xed8(%rip),%rdi
call   1030 <puts@plt>
lea    0xf3f(%rip),%rdi
call   1030 <puts@plt>
lea    0xfa3(%rip),%rdi
call   1030 <puts@plt>
lea    0xfa4(%rip),%rdi
call   1030 <puts@plt>
lea    0xfdd(%rip),%rdi
call   1030 <puts@plt>
lea    0xfe7(%rip),%rdi
call   1030 <puts@plt>
lea    0x102f(%rip),%rdi
call   1030 <puts@plt>
lea    0x1033(%rip),%rdi
call   1030 <puts@plt>
lea    0x107c(%rip),%rdi
call   1030 <puts@plt>
lea    0x108c(%rip),%rdi
call   1030 <puts@plt>
lea    0x10d8(%rip),%rdi
call   1030 <puts@plt>
lea    0x10e0(%rip),%rdi
call   1030 <puts@plt>
lea    0x10fa(%rip),%rdi
call   1030 <puts@plt>
lea    0x1134(%rip),%rdi
call   1030 <puts@plt>
lea    0x116e(%rip),%rdi
call   1030 <puts@plt>
lea    0x11a5(%rip),%rdi
call   1030 <puts@plt>
lea    0x11c0(%rip),%rdi
call   1030 <puts@plt>
lea    0x11cb(%rip),%rdi
call   1030 <puts@plt>
lea    0x11d9(%rip),%rdi
call   1030 <puts@plt>
lea    0x11e0(%rip),%rdi
call   1030 <puts@plt>
lea    0x11e5(%rip),%rdi
call   1030 <puts@plt>
mov    $0x1,%edi
call   1040 <exit@plt>

LLVM IR (-O0):
@.str = [116 x i8] c"Usage: wscd [-i infName] [-a ipaddress] [-p port] [-f descDoc] [-w webRootDir] -m UPnPOpMode -D [-d debugLevel] -h\0A\00"
@.str.1 = [113 x i8] c"\09-i:\09 Interface name this daemon will run wsc protocol(if not set, will use the default interface name - ra0)\0A\00"
@.str.2 = [14 x i8] c"\09\09\09e.g.: ra0\0A\00"
@.str.3 = [70 x i8] c"\09-a: IP address of the device (if not set, will auto assigned)\0A\00"
@.str.4 = [23 x i8] c"\09\09\09 e.g.: 192.168.0.1\0A\00"
@.str.5 = [85 x i8] c"\09-p: Port number for receiving UPnP messages (if not set, will auto assigned)\0A\00"
@.str.6 = [17 x i8] c"\09\09\09 e.g.: 54312\0A\00"
@.str.7 = [86 x i8] c"\09-f: Name of device description document (If not set, will used default value)\0A\00"
@.str.8 = [29 x i8] c"\09\09\09 e.g.: WFADeviceDesc.xml\0A\00"
@.str.9 = [89 x i8] c"\09-w: Filesystem path where descDoc and web files related to the device are stored\0A\00"
@.str.10 = [21 x i8] c"\09\09\09 e.g.: /etc/xml/\0A\00"
@.str.11 = [39 x i8] c"\09-m: UPnP system operation mode\0A\00"
@.str.12 = [71 x i8] c"\09\09\09 1: Enable UPnP Device service(Support Enrolle or Proxy functions)\0A\00"
@.str.13 = [71 x i8] c"\09\09\09 2: Enable UPnP Control Point service(Support Registratr function)\0A\00"
@.str.14 = [68 x i8] c"\09\09\09 3: Enable both UPnP device service and Control Point services.\0A\00"
@.str.15 = [40 x i8] c"\09-D: Run program in daemon mode.\0A\00"
@.str.16 = [24 x i8] c"\09-d: Debug level\0A\00"
@.str.17 = [27 x i8] c"\09\09\09 0: debug printing off\0A\00"
@.str.18 = [20 x i8] c"\09\09\09 1: DEBUG_ERROR\0A\00"
@.str.19 = [18 x i8] c"\09\09\09 2: DEBUG_PKT\0A\00"
@.str.20 = [19 x i8] c"\09\09\09 3: DEBUG_INFO\0A\00"
define void @usage() {
%1 = call i32 @printf(i8* getelementptr inbounds ([116 x i8], [116 x i8]* @.str, i64 0, i64 0))
%2 = call i32 @printf(i8* getelementptr inbounds ([113 x i8], [113 x i8]* @.str.1, i64 0, i64 0))
%3 = call i32 @printf(i8* getelementptr inbounds ([14 x i8], [14 x i8]* @.str.2, i64 0, i64 0))
%4 = call i32 @printf(i8* getelementptr inbounds ([70 x i8], [70 x i8]* @.str.3, i64 0, i64 0))
%5 = call i32 @printf(i8* getelementptr inbounds ([23 x i8], [23 x i8]* @.str.4, i64 0, i64 0))
%6 = call i32 @printf(i8* getelementptr inbounds ([85 x i8], [85 x i8]* @.str.5, i64 0, i64 0))
%7 = call i32 @printf(i8* getelementptr inbounds ([17 x i8], [17 x i8]* @.str.6, i64 0, i64 0))
%8 = call i32 @printf(i8* getelementptr inbounds ([86 x i8], [86 x i8]* @.str.7, i64 0, i64 0))
%9 = call i32 @printf(i8* getelementptr inbounds ([29 x i8], [29 x i8]* @.str.8, i64 0, i64 0))
%10 = call i32 @printf(i8* getelementptr inbounds ([89 x i8], [89 x i8]* @.str.9, i64 0, i64 0))
%11 = call i32 @printf(i8* getelementptr inbounds ([21 x i8], [21 x i8]* @.str.10, i64 0, i64 0))
%12 = call i32 @printf(i8* getelementptr inbounds ([39 x i8], [39 x i8]* @.str.11, i64 0, i64 0))
%13 = call i32 @printf(i8* getelementptr inbounds ([71 x i8], [71 x i8]* @.str.12, i64 0, i64 0))
%14 = call i32 @printf(i8* getelementptr inbounds ([71 x i8], [71 x i8]* @.str.13, i64 0, i64 0))
%15 = call i32 @printf(i8* getelementptr inbounds ([68 x i8], [68 x i8]* @.str.14, i64 0, i64 0))
%16 = call i32 @printf(i8* getelementptr inbounds ([40 x i8], [40 x i8]* @.str.15, i64 0, i64 0))
%17 = call i32 @printf(i8* getelementptr inbounds ([24 x i8], [24 x i8]* @.str.16, i64 0, i64 0))
%18 = call i32 @printf(i8* getelementptr inbounds ([27 x i8], [27 x i8]* @.str.17, i64 0, i64 0))
%19 = call i32 @printf(i8* getelementptr inbounds ([20 x i8], [20 x i8]* @.str.18, i64 0, i64 0))
%20 = call i32 @printf(i8* getelementptr inbounds ([18 x i8], [18 x i8]* @.str.19, i64 0, i64 0))
%21 = call i32 @printf(i8* getelementptr inbounds ([19 x i8], [19 x i8]* @.str.20, i64 0, i64 0))
%22 = call i32 @exit(i32 1)
unreachable
}

LLVM IR (-O2):
@str = [115 x i8] c"Usage: wscd [-i infName] [-a ipaddress] [-p port] [-f descDoc] [-w webRootDir] -m UPnPOpMode -D [-d debugLevel] -h\00"
@str.21 = [112 x i8] c"\09-i:\09 Interface name this daemon will run wsc protocol(if not set, will use the default interface name - ra0)\00"
@str.22 = [13 x i8] c"\09\09\09e.g.: ra0\00"
@str.23 = [69 x i8] c"\09-a: IP address of the device (if not set, will auto assigned)\00"
@str.24 = [22 x i8] c"\09\09\09 e.g.: 192.168.0.1\00"
@str.25 = [84 x i8] c"\09-p: Port number for receiving UPnP messages (if not set, will auto assigned)\00"
@str.26 = [16 x i8] c"\09\09\09 e.g.: 54312\00"
@str.27 = [85 x i8] c"\09-f: Name of device description document (If not set, will used default value)\00"
@str.28 = [28 x i8] c"\09\09\09 e.g.: WFADeviceDesc.xml\00"
@str.29 = [88 x i8] c"\09-w: Filesystem path where descDoc and web files related to the device are stored\00"
@str.30 = [20 x i8] c"\09\09\09 e.g.: /etc/xml/\00"
@str.31 = [38 x i8] c"\09-m: UPnP system operation mode\00"
@str.32 = [70 x i8] c"\09\09\09 1: Enable UPnP Device service(Support Enrolle or Proxy functions)\00"
@str.33 = [70 x i8] c"\09\09\09 2: Enable UPnP Control Point service(Support Registratr function)\00"
@str.34 = [67 x i8] c"\09\09\09 3: Enable both UPnP device service and Control Point services.\00"
@str.35 = [39 x i8] c"\09-D: Run program in daemon mode.\00"
@str.36 = [23 x i8] c"\09-d: Debug level\00"
@str.37 = [26 x i8] c"\09\09\09 0: debug printing off\00"
@str.38 = [19 x i8] c"\09\09\09 1: DEBUG_ERROR\00"
@str.39 = [17 x i8] c"\09\09\09 2: DEBUG_PKT\00"
@str.40 = [18 x i8] c"\09\09\09 3: DEBUG_INFO\00"
define void @usage() {
%1 = tail call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([115 x i8], [115 x i8]* @str, i64 0, i64 0))
%2 = tail call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([112 x i8], [112 x i8]* @str.21, i64 0, i64 0))
%3 = tail call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([13 x i8], [13 x i8]* @str.22, i64 0, i64 0))
%4 = tail call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([69 x i8], [69 x i8]* @str.23, i64 0, i64 0))
%5 = tail call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([22 x i8], [22 x i8]* @str.24, i64 0, i64 0))
%6 = tail call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([84 x i8], [84 x i8]* @str.25, i64 0, i64 0))
%7 = tail call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([16 x i8], [16 x i8]* @str.26, i64 0, i64 0))
%8 = tail call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([85 x i8], [85 x i8]* @str.27, i64 0, i64 0))
%9 = tail call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([28 x i8], [28 x i8]* @str.28, i64 0, i64 0))
%10 = tail call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([88 x i8], [88 x i8]* @str.29, i64 0, i64 0))
%11 = tail call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([20 x i8], [20 x i8]* @str.30, i64 0, i64 0))
%12 = tail call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([38 x i8], [38 x i8]* @str.31, i64 0, i64 0))
%13 = tail call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([70 x i8], [70 x i8]* @str.32, i64 0, i64 0))
%14 = tail call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([70 x i8], [70 x i8]* @str.33, i64 0, i64 0))
%15 = tail call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([67 x i8], [67 x i8]* @str.34, i64 0, i64 0))
%16 = tail call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([39 x i8], [39 x i8]* @str.35, i64 0, i64 0))
%17 = tail call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([23 x i8], [23 x i8]* @str.36, i64 0, i64 0))
%18 = tail call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([26 x i8], [26 x i8]* @str.37, i64 0, i64 0))
%19 = tail call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([19 x i8], [19 x i8]* @str.38, i64 0, i64 0))
%20 = tail call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([17 x i8], [17 x i8]* @str.39, i64 0, i64 0))
%21 = tail call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([18 x i8], [18 x i8]* @str.40, i64 0, i64 0))
%22 = tail call i32 @exit(i32 1)
unreachable
}