#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(int mode) {
  printf("\n    Percon PocketReader Unix transfer utility v1.3  (09/30/97)\n");
  printf("    Copyright (c) 1992 Percon, Inc.\n\n");
  printf("    USAGE:    updtfer device filename -options \n");
  printf("    WHERE:\n    device = serial port name, such as /dev/tty1a\n");
  printf("            filename = filename for input (output) data source "
         "(destination) \n");
  printf("            options = letters, preceded by \"-\" character.\n");
  printf("            r   Receive, replace.     t   Transmit\n");
  printf("            a   Append receive.       d   Debug info\n");
  printf("            h   This help             s   Silent\n\n");
  printf("    EXAMPLES:\n");
  printf("        updtfer /dev/tty1a filename /r\n     (Receive file filename "
         "on serial port /dev/tty1a)\n");
  printf("        updtfer /dev/tty1a filename /t\n     (Transmit file filename "
         "on serial port /dev/tty1a)\n");
  printf("    Written by Darren Goddard.\n");
  printf("    Unix adaptation by Robert Meyers\n\n");
  exit(1);
}


x86 assembly (clang, -O0):
<usage>:
push   %rbp
mov    %rsp,%rbp
sub    $0x10,%rsp
mov    %edi,-0x4(%rbp)
lea    0xece(%rip),%rdi
call   1030 <printf@plt>
lea    0xf03(%rip),%rdi
call   1030 <printf@plt>
lea    0xf1d(%rip),%rdi
call   1030 <printf@plt>
lea    0xf42(%rip),%rdi
call   1030 <printf@plt>
lea    0xf74(%rip),%rdi
call   1030 <printf@plt>
lea    0xfb7(%rip),%rdi
call   1030 <printf@plt>
lea    0xfe6(%rip),%rdi
call   1030 <printf@plt>
lea    0x100e(%rip),%rdi
call   1030 <printf@plt>
lea    0x1038(%rip),%rdi
call   1030 <printf@plt>
lea    0x105f(%rip),%rdi
call   1030 <printf@plt>
lea    0x1062(%rip),%rdi
call   1030 <printf@plt>
lea    0x10b5(%rip),%rdi
call   1030 <printf@plt>
lea    0x1109(%rip),%rdi
call   1030 <printf@plt>
lea    0x111d(%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    0xf0c(%rip),%rdi
call   1030 <puts@plt>
lea    0xf25(%rip),%rdi
call   1030 <puts@plt>
lea    0xf49(%rip),%rdi
call   1030 <puts@plt>
lea    0xf7a(%rip),%rdi
call   1030 <puts@plt>
lea    0xfbc(%rip),%rdi
call   1030 <puts@plt>
lea    0xfea(%rip),%rdi
call   1030 <puts@plt>
lea    0x1011(%rip),%rdi
call   1030 <puts@plt>
lea    0x103a(%rip),%rdi
call   1030 <puts@plt>
lea    0x1060(%rip),%rdi
call   1030 <puts@plt>
lea    0x1062(%rip),%rdi
call   1030 <puts@plt>
lea    0x10b4(%rip),%rdi
call   1030 <puts@plt>
lea    0x1107(%rip),%rdi
call   1030 <puts@plt>
lea    0x111a(%rip),%rdi
call   1030 <puts@plt>
mov    $0x1,%edi
call   1040 <exit@plt>

LLVM IR (-O0):
@.str = [65 x i8] c"\0A Percon PocketReader Unix transfer utility v1.3 (09/30/97)\0A\00"
@.str.1 = [38 x i8] c" Copyright (c) 1992 Percon, Inc.\0A\0A\00"
@.str.2 = [49 x i8] c" USAGE: updtfer device filename -options \0A\00"
@.str.3 = [62 x i8] c" WHERE:\0A device = serial port name, such as /dev/tty1a\0A\00"
@.str.4 = [79 x i8] c" filename = filename for input (output) data source (destination) \0A\00"
@.str.5 = [59 x i8] c" options = letters, preceded by \22-\22 character.\0A\00"
@.str.6 = [52 x i8] c" r Receive, replace. t Transmit\0A\00"
@.str.7 = [54 x i8] c" a Append receive. d Debug info\0A\00"
@.str.8 = [51 x i8] c" h This help s Silent\0A\0A\00"
@.str.9 = [15 x i8] c" EXAMPLES:\0A\00"
@.str.10 = [95 x i8] c" updtfer /dev/tty1a filename /r\0A (Receive file filename on serial port /dev/tty1a)\0A\00"
@.str.11 = [96 x i8] c" updtfer /dev/tty1a filename /t\0A (Transmit file filename on serial port /dev/tty1a)\0A\00"
@.str.12 = [32 x i8] c" Written by Darren Goddard.\0A\00"
@.str.13 = [39 x i8] c" Unix adaptation by Robert Meyers\0A\0A\00"
define void @usage(i32 %0) {
%2 = alloca i32
store i32 %0, i32* %2
%3 = call i32 @printf(i8* getelementptr inbounds ([65 x i8], [65 x i8]* @.str, i64 0, i64 0))
%4 = call i32 @printf(i8* getelementptr inbounds ([38 x i8], [38 x i8]* @.str.1, i64 0, i64 0))
%5 = call i32 @printf(i8* getelementptr inbounds ([49 x i8], [49 x i8]* @.str.2, i64 0, i64 0))
%6 = call i32 @printf(i8* getelementptr inbounds ([62 x i8], [62 x i8]* @.str.3, i64 0, i64 0))
%7 = call i32 @printf(i8* getelementptr inbounds ([79 x i8], [79 x i8]* @.str.4, i64 0, i64 0))
%8 = call i32 @printf(i8* getelementptr inbounds ([59 x i8], [59 x i8]* @.str.5, i64 0, i64 0))
%9 = call i32 @printf(i8* getelementptr inbounds ([52 x i8], [52 x i8]* @.str.6, i64 0, i64 0))
%10 = call i32 @printf(i8* getelementptr inbounds ([54 x i8], [54 x i8]* @.str.7, i64 0, i64 0))
%11 = call i32 @printf(i8* getelementptr inbounds ([51 x i8], [51 x i8]* @.str.8, i64 0, i64 0))
%12 = call i32 @printf(i8* getelementptr inbounds ([15 x i8], [15 x i8]* @.str.9, i64 0, i64 0))
%13 = call i32 @printf(i8* getelementptr inbounds ([95 x i8], [95 x i8]* @.str.10, i64 0, i64 0))
%14 = call i32 @printf(i8* getelementptr inbounds ([96 x i8], [96 x i8]* @.str.11, i64 0, i64 0))
%15 = call i32 @printf(i8* getelementptr inbounds ([32 x i8], [32 x i8]* @.str.12, i64 0, i64 0))
%16 = call i32 @printf(i8* getelementptr inbounds ([39 x i8], [39 x i8]* @.str.13, i64 0, i64 0))
%17 = call i32 @exit(i32 1)
unreachable
}

LLVM IR (-O2):
@str = [64 x i8] c"\0A Percon PocketReader Unix transfer utility v1.3 (09/30/97)\00"
@str.14 = [37 x i8] c" Copyright (c) 1992 Percon, Inc.\0A\00"
@str.15 = [48 x i8] c" USAGE: updtfer device filename -options \00"
@str.16 = [61 x i8] c" WHERE:\0A device = serial port name, such as /dev/tty1a\00"
@str.17 = [78 x i8] c" filename = filename for input (output) data source (destination) \00"
@str.18 = [58 x i8] c" options = letters, preceded by \22-\22 character.\00"
@str.19 = [51 x i8] c" r Receive, replace. t Transmit\00"
@str.20 = [53 x i8] c" a Append receive. d Debug info\00"
@str.21 = [50 x i8] c" h This help s Silent\0A\00"
@str.22 = [14 x i8] c" EXAMPLES:\00"
@str.23 = [94 x i8] c" updtfer /dev/tty1a filename /r\0A (Receive file filename on serial port /dev/tty1a)\00"
@str.24 = [95 x i8] c" updtfer /dev/tty1a filename /t\0A (Transmit file filename on serial port /dev/tty1a)\00"
@str.25 = [31 x i8] c" Written by Darren Goddard.\00"
@str.26 = [38 x i8] c" Unix adaptation by Robert Meyers\0A\00"
define void @usage(i32 %0) {
%2 = tail call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([64 x i8], [64 x i8]* @str, i64 0, i64 0))
%3 = tail call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([37 x i8], [37 x i8]* @str.14, i64 0, i64 0))
%4 = tail call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([48 x i8], [48 x i8]* @str.15, i64 0, i64 0))
%5 = tail call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([61 x i8], [61 x i8]* @str.16, i64 0, i64 0))
%6 = tail call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([78 x i8], [78 x i8]* @str.17, i64 0, i64 0))
%7 = tail call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([58 x i8], [58 x i8]* @str.18, i64 0, i64 0))
%8 = tail call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([51 x i8], [51 x i8]* @str.19, i64 0, i64 0))
%9 = tail call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([53 x i8], [53 x i8]* @str.20, i64 0, i64 0))
%10 = tail call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([50 x i8], [50 x i8]* @str.21, i64 0, i64 0))
%11 = tail call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([14 x i8], [14 x i8]* @str.22, i64 0, i64 0))
%12 = tail call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([94 x i8], [94 x i8]* @str.23, i64 0, i64 0))
%13 = tail call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([95 x i8], [95 x i8]* @str.24, i64 0, i64 0))
%14 = tail call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([31 x i8], [31 x i8]* @str.25, i64 0, i64 0))
%15 = tail call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([38 x i8], [38 x i8]* @str.26, i64 0, i64 0))
%16 = tail call i32 @exit(i32 1)
unreachable
}