#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*/ Fail(char *);
int /*<<< orphan*/ Wl();
int /*<<< orphan*/ Wsl(char *);
void DeviceFail(char *msg) {
  Wsl(msg);
  Wl();
  Wsl("device command format:");
  Wl();
  Wsl("  device deviceid [baud]");
  Wl();
  Wsl("where deviceid is a device name and number such as:");
  Wl();
  Wsl("  com5");
  Wsl("  usbtiny1");
  Wsl("  ttyUSB3");
  Wsl("  tty.usbserial-A700ONFG");
  Wl();
  Wsl("The device name may be abbreviated to as little as its first letter, "
      "thus");
  Wsl("the examples above could be specified instead as c5, u1 and t3.");
  Wl();
  Wsl("The optional baud is ignored on usbtiny ports.");
  Wl();
  Wsl("Use the ls command to list available devices.");
  Wl();
  Fail("");
}


x86 assembly (clang, -O0):
<DeviceFail>:
push   %rbp
mov    %rsp,%rbp
sub    $0x10,%rsp
mov    %rdi,-0x8(%rbp)
mov    -0x8(%rbp),%rdi
call   1030 <Wsl@plt>
mov    $0x0,%al
call   1040 <Wl@plt>
lea    0xead(%rip),%rdi
call   1030 <Wsl@plt>
mov    $0x0,%al
call   1040 <Wl@plt>
lea    0xeb1(%rip),%rdi
call   1030 <Wsl@plt>
mov    $0x0,%al
call   1040 <Wl@plt>
lea    0xeb7(%rip),%rdi
call   1030 <Wsl@plt>
mov    $0x0,%al
call   1040 <Wl@plt>
lea    0xed8(%rip),%rdi
call   1030 <Wsl@plt>
lea    0xed3(%rip),%rdi
call   1030 <Wsl@plt>
lea    0xed2(%rip),%rdi
call   1030 <Wsl@plt>
lea    0xed0(%rip),%rdi
call   1030 <Wsl@plt>
mov    $0x0,%al
call   1040 <Wl@plt>
lea    0xed6(%rip),%rdi
call   1030 <Wsl@plt>
lea    0xf14(%rip),%rdi
call   1030 <Wsl@plt>
mov    $0x0,%al
call   1040 <Wl@plt>
lea    0xf41(%rip),%rdi
call   1030 <Wsl@plt>
mov    $0x0,%al
call   1040 <Wl@plt>
lea    0xf5d(%rip),%rdi
call   1030 <Wsl@plt>
mov    $0x0,%al
call   1040 <Wl@plt>
lea    0xf1a(%rip),%rdi
call   1050 <Fail@plt>
add    $0x10,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<DeviceFail>:
push   %rax
call   1030 <Wsl@plt>
xor    %eax,%eax
call   1040 <Wl@plt>
lea    0xebc(%rip),%rdi
call   1030 <Wsl@plt>
xor    %eax,%eax
call   1040 <Wl@plt>
lea    0xec0(%rip),%rdi
call   1030 <Wsl@plt>
xor    %eax,%eax
call   1040 <Wl@plt>
lea    0xec6(%rip),%rdi
call   1030 <Wsl@plt>
xor    %eax,%eax
call   1040 <Wl@plt>
lea    0xee7(%rip),%rdi
call   1030 <Wsl@plt>
lea    0xee2(%rip),%rdi
call   1030 <Wsl@plt>
lea    0xee1(%rip),%rdi
call   1030 <Wsl@plt>
lea    0xedf(%rip),%rdi
call   1030 <Wsl@plt>
xor    %eax,%eax
call   1040 <Wl@plt>
lea    0xee5(%rip),%rdi
call   1030 <Wsl@plt>
lea    0xf23(%rip),%rdi
call   1030 <Wsl@plt>
xor    %eax,%eax
call   1040 <Wl@plt>
lea    0xf50(%rip),%rdi
call   1030 <Wsl@plt>
xor    %eax,%eax
call   1040 <Wl@plt>
lea    0xf6c(%rip),%rdi
call   1030 <Wsl@plt>
xor    %eax,%eax
call   1040 <Wl@plt>
lea    0xf29(%rip),%rdi
pop    %rax
jmp    1050 <Fail@plt>

LLVM IR (-O0):
@.str = [23 x i8] c"device command format:\00"
@.str.1 = [25 x i8] c" device deviceid [baud]\00"
@.str.2 = [52 x i8] c"where deviceid is a device name and number such as:\00"
@.str.3 = [7 x i8] c" com5\00"
@.str.4 = [11 x i8] c" usbtiny1\00"
@.str.5 = [10 x i8] c" ttyUSB3\00"
@.str.6 = [25 x i8] c" tty.usbserial-A700ONFG\00"
@.str.7 = [74 x i8] c"The device name may be abbreviated to as little as its first letter, thus\00"
@.str.8 = [64 x i8] c"the examples above could be specified instead as c5, u1 and t3.\00"
@.str.9 = [47 x i8] c"The optional baud is ignored on usbtiny ports.\00"
@.str.10 = [46 x i8] c"Use the ls command to list available devices.\00"
@.str.11 = [1 x i8] zeroinitializer
define void @DeviceFail(i8* %0) {
%2 = alloca i8*
store i8* %0, i8** %2
%3 = load i8*, i8** %2
%4 = call i32 @Wsl(i8* %3)
%5 = call i32 (...) @Wl()
%6 = call i32 @Wsl(i8* getelementptr inbounds ([23 x i8], [23 x i8]* @.str, i64 0, i64 0))
%7 = call i32 (...) @Wl()
%8 = call i32 @Wsl(i8* getelementptr inbounds ([25 x i8], [25 x i8]* @.str.1, i64 0, i64 0))
%9 = call i32 (...) @Wl()
%10 = call i32 @Wsl(i8* getelementptr inbounds ([52 x i8], [52 x i8]* @.str.2, i64 0, i64 0))
%11 = call i32 (...) @Wl()
%12 = call i32 @Wsl(i8* getelementptr inbounds ([7 x i8], [7 x i8]* @.str.3, i64 0, i64 0))
%13 = call i32 @Wsl(i8* getelementptr inbounds ([11 x i8], [11 x i8]* @.str.4, i64 0, i64 0))
%14 = call i32 @Wsl(i8* getelementptr inbounds ([10 x i8], [10 x i8]* @.str.5, i64 0, i64 0))
%15 = call i32 @Wsl(i8* getelementptr inbounds ([25 x i8], [25 x i8]* @.str.6, i64 0, i64 0))
%16 = call i32 (...) @Wl()
%17 = call i32 @Wsl(i8* getelementptr inbounds ([74 x i8], [74 x i8]* @.str.7, i64 0, i64 0))
%18 = call i32 @Wsl(i8* getelementptr inbounds ([64 x i8], [64 x i8]* @.str.8, i64 0, i64 0))
%19 = call i32 (...) @Wl()
%20 = call i32 @Wsl(i8* getelementptr inbounds ([47 x i8], [47 x i8]* @.str.9, i64 0, i64 0))
%21 = call i32 (...) @Wl()
%22 = call i32 @Wsl(i8* getelementptr inbounds ([46 x i8], [46 x i8]* @.str.10, i64 0, i64 0))
%23 = call i32 (...) @Wl()
%24 = call i32 @Fail(i8* getelementptr inbounds ([1 x i8], [1 x i8]* @.str.11, i64 0, i64 0))
ret void
}

LLVM IR (-O2):
@.str = [23 x i8] c"device command format:\00"
@.str.1 = [25 x i8] c" device deviceid [baud]\00"
@.str.2 = [52 x i8] c"where deviceid is a device name and number such as:\00"
@.str.3 = [7 x i8] c" com5\00"
@.str.4 = [11 x i8] c" usbtiny1\00"
@.str.5 = [10 x i8] c" ttyUSB3\00"
@.str.6 = [25 x i8] c" tty.usbserial-A700ONFG\00"
@.str.7 = [74 x i8] c"The device name may be abbreviated to as little as its first letter, thus\00"
@.str.8 = [64 x i8] c"the examples above could be specified instead as c5, u1 and t3.\00"
@.str.9 = [47 x i8] c"The optional baud is ignored on usbtiny ports.\00"
@.str.10 = [46 x i8] c"Use the ls command to list available devices.\00"
@.str.11 = [1 x i8] zeroinitializer
define void @DeviceFail(i8* %0) {
%2 = tail call i32 @Wsl(i8* %0)
%3 = tail call i32 (...) @Wl()
%4 = tail call i32 @Wsl(i8* getelementptr inbounds ([23 x i8], [23 x i8]* @.str, i64 0, i64 0))
%5 = tail call i32 (...) @Wl()
%6 = tail call i32 @Wsl(i8* getelementptr inbounds ([25 x i8], [25 x i8]* @.str.1, i64 0, i64 0))
%7 = tail call i32 (...) @Wl()
%8 = tail call i32 @Wsl(i8* getelementptr inbounds ([52 x i8], [52 x i8]* @.str.2, i64 0, i64 0))
%9 = tail call i32 (...) @Wl()
%10 = tail call i32 @Wsl(i8* getelementptr inbounds ([7 x i8], [7 x i8]* @.str.3, i64 0, i64 0))
%11 = tail call i32 @Wsl(i8* getelementptr inbounds ([11 x i8], [11 x i8]* @.str.4, i64 0, i64 0))
%12 = tail call i32 @Wsl(i8* getelementptr inbounds ([10 x i8], [10 x i8]* @.str.5, i64 0, i64 0))
%13 = tail call i32 @Wsl(i8* getelementptr inbounds ([25 x i8], [25 x i8]* @.str.6, i64 0, i64 0))
%14 = tail call i32 (...) @Wl()
%15 = tail call i32 @Wsl(i8* getelementptr inbounds ([74 x i8], [74 x i8]* @.str.7, i64 0, i64 0))
%16 = tail call i32 @Wsl(i8* getelementptr inbounds ([64 x i8], [64 x i8]* @.str.8, i64 0, i64 0))
%17 = tail call i32 (...) @Wl()
%18 = tail call i32 @Wsl(i8* getelementptr inbounds ([47 x i8], [47 x i8]* @.str.9, i64 0, i64 0))
%19 = tail call i32 (...) @Wl()
%20 = tail call i32 @Wsl(i8* getelementptr inbounds ([46 x i8], [46 x i8]* @.str.10, i64 0, i64 0))
%21 = tail call i32 (...) @Wl()
%22 = tail call i32 @Fail(i8* getelementptr inbounds ([1 x i8], [1 x i8]* @.str.11, i64 0, i64 0))
ret void
}