#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*/ fprintf(int /*<<< orphan*/, char *);
int /*<<< orphan*/ stderr;
int usage() {
  fprintf(
      stderr,
      "\n"
      "Really Stupid and Dump Terminal Program, Version "
      "1.02"
      "\n"
      "\n"
      "usage: stoopy [-h] [-s] [-d millisec-delay] [-b baud-rate]\n"
      "       [-7] [-o | -e] [-f] com-port-device-name\n"
      "\n"
      "  -h         Print this message.\n"
      "  -s         Enable slow write mode.\n"
      "  -d delay   Set the slow write inter character delay time. Default\n"
      "             is 50 milliseconds.\n"
      "  -b rate    Set baud rate to one of: 1200, 2400, 4800, 9600, 19200, \n"
      "             38400, 57600, 115200. Default is 115200 BPS.\n"
      "  -7         Select 7 bits per character (defqult is 8).\n"
      "  -e         Select even parity.\n"
      "  -o         Select odd parity.\n"
      "  -f         Enable hardware flow control (off by default).\n"
      "\n"
      "Default setting is 115200 baud, 8-N-1.\n\n");
  exit(1);
}


x86 assembly (clang, -O0):
<usage>:
push   %rbp
mov    %rsp,%rbp
mov    0x2eb5(%rip),%rax
mov    (%rax),%edi
lea    0xecc(%rip),%rsi
call   1030 <fprintf@plt>
mov    $0x1,%edi
call   1040 <exit@plt>

x86 assembly (clang, -O2):
<usage>:
push   %rax
mov    0x2eb8(%rip),%rax
mov    (%rax),%edi
lea    0xecf(%rip),%rsi
call   1030 <fprintf@plt>
mov    $0x1,%edi
call   1040 <exit@plt>

LLVM IR (-O0):
@stderr = global i32 0
@.str = [687 x i8] c"\0AReally Stupid and Dump Terminal Program, Version 1.02\0A\0Ausage: stoopy [-h] [-s] [-d millisec-delay] [-b baud-rate]\0A [-7] [-o | -e] [-f] com-port-device-name\0A\0A -h Print this message.\0A -s Enable slow write mode.\0A -d delay Set the slow write inter character delay time. Default\0A is 50 milliseconds.\0A -b rate Set baud rate to one of: 1200, 2400, 4800, 9600, 19200, \0A 38400, 57600, 115200. Default is 115200 BPS.\0A -7 Select 7 bits per character (defqult is 8).\0A -e Select even parity.\0A -o Select odd parity.\0A -f Enable hardware flow control (off by default).\0A\0ADefault setting is 115200 baud, 8-N-1.\0A\0A\00"
define i32 @usage() {
%1 = load i32, i32* @stderr
%2 = call i32 @fprintf(i32 %1, i8* getelementptr inbounds ([687 x i8], [687 x i8]* @.str, i64 0, i64 0))
%3 = call i32 @exit(i32 1)
unreachable
}

LLVM IR (-O2):
@stderr = global i32 0
@.str = [687 x i8] c"\0AReally Stupid and Dump Terminal Program, Version 1.02\0A\0Ausage: stoopy [-h] [-s] [-d millisec-delay] [-b baud-rate]\0A [-7] [-o | -e] [-f] com-port-device-name\0A\0A -h Print this message.\0A -s Enable slow write mode.\0A -d delay Set the slow write inter character delay time. Default\0A is 50 milliseconds.\0A -b rate Set baud rate to one of: 1200, 2400, 4800, 9600, 19200, \0A 38400, 57600, 115200. Default is 115200 BPS.\0A -7 Select 7 bits per character (defqult is 8).\0A -e Select even parity.\0A -o Select odd parity.\0A -f Enable hardware flow control (off by default).\0A\0ADefault setting is 115200 baud, 8-N-1.\0A\0A\00"
define i32 @usage() {
%1 = load i32, i32* @stderr
%2 = tail call i32 @fprintf(i32 %1, i8* getelementptr inbounds ([687 x i8], [687 x i8]* @.str, i64 0, i64 0))
%3 = tail call i32 @exit(i32 1)
unreachable
}