#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 printUsage(void) {
  printf("\nUsage: wlmSampleTests [--socket <IP address> [server port] | "
         "--serial <serial port> | --wifi <MAC address> | "
         "--dongle <serial port>] [--linux | --linuxdut]]\n\n");
  printf("--socket - Ethernet between client and server (running "
         "'wl_server_socket')\n");
  printf("      IP address - IP address of server (e.g. 10.200.30.10)\n");
  printf("      server port - Server port number (default 8000)\n\n");
  printf("--serial - Serial between client and server (running "
         "'wl_server_serial')\n");
  printf("      serial port - Client serial port (e.g. 1 for COM1)\n\n");
  printf(
      "--wifi - 802.11 between client and server (running 'wl_server_wifi')\n");
  printf("         (external dongle only, NIC not supported)\n");
  printf("      MAC address - MAC address of wifi interface on dongle "
         "(e.g. 00:11:22:33:44:55)\n\n");
  printf("--dongle - Serial between client and dongle UART (running "
         "'wl_server_dongle')\n");
  printf(
      "      serial port - Client serial port (e.g. COM1 or /dev/ttyS0)\n\n");
  printf("--linux|linuxdut - Server DUT running Linux\n");
}


x86 assembly (clang, -O0):
<printUsage>:
push   %rbp
mov    %rsp,%rbp
lea    0xee5(%rip),%rdi
call   1030 <printf@plt>
lea    0xf79(%rip),%rdi
call   1030 <printf@plt>
lea    0xfb9(%rip),%rdi
call   1030 <printf@plt>
lea    0xfea(%rip),%rdi
call   1030 <printf@plt>
lea    0x1016(%rip),%rdi
call   1030 <printf@plt>
lea    0x1054(%rip),%rdi
call   1030 <printf@plt>
lea    0x1083(%rip),%rdi
call   1030 <printf@plt>
lea    0x10bd(%rip),%rdi
call   1030 <printf@plt>
lea    0x10e5(%rip),%rdi
call   1030 <printf@plt>
lea    0x1130(%rip),%rdi
call   1030 <printf@plt>
lea    0x1173(%rip),%rdi
call   1030 <printf@plt>
lea    0x11aa(%rip),%rdi
call   1030 <printf@plt>
pop    %rbp
ret

x86 assembly (clang, -O2):
<printUsage>:
push   %rax
lea    0xee8(%rip),%rdi
call   1030 <puts@plt>
lea    0xf7b(%rip),%rdi
call   1030 <puts@plt>
lea    0xfba(%rip),%rdi
call   1030 <puts@plt>
lea    0xfea(%rip),%rdi
call   1030 <puts@plt>
lea    0x1015(%rip),%rdi
call   1030 <puts@plt>
lea    0x1052(%rip),%rdi
call   1030 <puts@plt>
lea    0x1080(%rip),%rdi
call   1030 <puts@plt>
lea    0x10b9(%rip),%rdi
call   1030 <puts@plt>
lea    0x10e0(%rip),%rdi
call   1030 <puts@plt>
lea    0x112a(%rip),%rdi
call   1030 <puts@plt>
lea    0x116c(%rip),%rdi
call   1030 <puts@plt>
lea    0x11a2(%rip),%rdi
pop    %rax
jmp    1030 <puts@plt>

LLVM IR (-O0):
@.str = [160 x i8] c"\0AUsage: wlmSampleTests [--socket <IP address> [server port] | --serial <serial port> | --wifi <MAC address> | --dongle <serial port>] [--linux | --linuxdut]]\0A\0A\00"
@.str.1 = [76 x i8] c"--socket - Ethernet between client and server (running 'wl_server_socket')\0A\00"
@.str.2 = [61 x i8] c" IP address - IP address of server (e.g. 10.200.30.10)\0A\00"
@.str.3 = [56 x i8] c" server port - Server port number (default 8000)\0A\0A\00"
@.str.4 = [74 x i8] c"--serial - Serial between client and server (running 'wl_server_serial')\0A\00"
@.str.5 = [59 x i8] c" serial port - Client serial port (e.g. 1 for COM1)\0A\0A\00"
@.str.6 = [70 x i8] c"--wifi - 802.11 between client and server (running 'wl_server_wifi')\0A\00"
@.str.7 = [52 x i8] c" (external dongle only, NIC not supported)\0A\00"
@.str.8 = [87 x i8] c" MAC address - MAC address of wifi interface on dongle (e.g. 00:11:22:33:44:55)\0A\0A\00"
@.str.9 = [79 x i8] c"--dongle - Serial between client and dongle UART (running 'wl_server_dongle')\0A\00"
@.str.10 = [67 x i8] c" serial port - Client serial port (e.g. COM1 or /dev/ttyS0)\0A\0A\00"
@.str.11 = [45 x i8] c"--linux|linuxdut - Server DUT running Linux\0A\00"
define void @printUsage() {
%1 = call i32 @printf(i8* getelementptr inbounds ([160 x i8], [160 x i8]* @.str, i64 0, i64 0))
%2 = call i32 @printf(i8* getelementptr inbounds ([76 x i8], [76 x i8]* @.str.1, i64 0, i64 0))
%3 = call i32 @printf(i8* getelementptr inbounds ([61 x i8], [61 x i8]* @.str.2, i64 0, i64 0))
%4 = call i32 @printf(i8* getelementptr inbounds ([56 x i8], [56 x i8]* @.str.3, i64 0, i64 0))
%5 = call i32 @printf(i8* getelementptr inbounds ([74 x i8], [74 x i8]* @.str.4, i64 0, i64 0))
%6 = call i32 @printf(i8* getelementptr inbounds ([59 x i8], [59 x i8]* @.str.5, i64 0, i64 0))
%7 = call i32 @printf(i8* getelementptr inbounds ([70 x i8], [70 x i8]* @.str.6, i64 0, i64 0))
%8 = call i32 @printf(i8* getelementptr inbounds ([52 x i8], [52 x i8]* @.str.7, i64 0, i64 0))
%9 = call i32 @printf(i8* getelementptr inbounds ([87 x i8], [87 x i8]* @.str.8, i64 0, i64 0))
%10 = call i32 @printf(i8* getelementptr inbounds ([79 x i8], [79 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 ([45 x i8], [45 x i8]* @.str.11, i64 0, i64 0))
ret void
}

LLVM IR (-O2):
@str = [159 x i8] c"\0AUsage: wlmSampleTests [--socket <IP address> [server port] | --serial <serial port> | --wifi <MAC address> | --dongle <serial port>] [--linux | --linuxdut]]\0A\00"
@str.12 = [75 x i8] c"--socket - Ethernet between client and server (running 'wl_server_socket')\00"
@str.13 = [60 x i8] c" IP address - IP address of server (e.g. 10.200.30.10)\00"
@str.14 = [55 x i8] c" server port - Server port number (default 8000)\0A\00"
@str.15 = [73 x i8] c"--serial - Serial between client and server (running 'wl_server_serial')\00"
@str.16 = [58 x i8] c" serial port - Client serial port (e.g. 1 for COM1)\0A\00"
@str.17 = [69 x i8] c"--wifi - 802.11 between client and server (running 'wl_server_wifi')\00"
@str.18 = [51 x i8] c" (external dongle only, NIC not supported)\00"
@str.19 = [86 x i8] c" MAC address - MAC address of wifi interface on dongle (e.g. 00:11:22:33:44:55)\0A\00"
@str.20 = [78 x i8] c"--dongle - Serial between client and dongle UART (running 'wl_server_dongle')\00"
@str.21 = [66 x i8] c" serial port - Client serial port (e.g. COM1 or /dev/ttyS0)\0A\00"
@str.22 = [44 x i8] c"--linux|linuxdut - Server DUT running Linux\00"
define void @printUsage() {
%1 = tail call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([159 x i8], [159 x i8]* @str, i64 0, i64 0))
%2 = tail call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([75 x i8], [75 x i8]* @str.12, i64 0, i64 0))
%3 = tail call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([60 x i8], [60 x i8]* @str.13, i64 0, i64 0))
%4 = tail call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([55 x i8], [55 x i8]* @str.14, i64 0, i64 0))
%5 = tail call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([73 x i8], [73 x i8]* @str.15, i64 0, i64 0))
%6 = tail call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([58 x i8], [58 x i8]* @str.16, i64 0, i64 0))
%7 = tail call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([69 x i8], [69 x i8]* @str.17, i64 0, i64 0))
%8 = tail call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([51 x i8], [51 x i8]* @str.18, i64 0, i64 0))
%9 = tail call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([86 x i8], [86 x i8]* @str.19, i64 0, i64 0))
%10 = tail call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([78 x i8], [78 x i8]* @str.20, i64 0, i64 0))
%11 = tail call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([66 x i8], [66 x i8]* @str.21, i64 0, i64 0))
%12 = tail call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([44 x i8], [44 x i8]* @str.22, i64 0, i64 0))
ret void
}