#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*/ puts(char *);
void help(void) {
  puts("Usage: neclcd [OPTIONS]\n");
  puts("OPTIONS:");
  puts("  -t, --type=VAL         message type");
  puts("                         ('A' = command [not implemented properly]");
  puts("                          'C' = get current param");
  puts("                          'E' = set param)");
  puts("  -d, --dest=VAL         destination address (default is 'A')");
  puts("  -s, --src=VAL          source equipment ID (default is '0')");
  puts("  -p, --codepage=VAL     OP code page");
  puts("  -c, --code=VAL         OP code");
  puts("  -v, --value=VAL        value");
  puts("  -m, --command=VAL      command");
  puts("  -e, --debug            debug mode\n");
  puts("  -h, --help             display this help and exit\n");
  puts("Examples:");
  puts("neclcd --dest=A --type=A --command=0C");
  puts("neclcd --dest=A --type=C --codepage=00 --code=60");
  puts("neclcd --dest=A --type=E --codepage=00 --code=60 --value=12\n");
  puts("Report bugs to <jiri(dot)tyr(at)gmail(dot)com>.");
  exit(-1);
}


x86 assembly (clang, -O0):
<help>:
push   %rbp
mov    %rsp,%rbp
lea    0xed5(%rip),%rdi
call   1030 <puts@plt>
lea    0xee2(%rip),%rdi
call   1030 <puts@plt>
lea    0xedf(%rip),%rdi
call   1030 <puts@plt>
lea    0xef9(%rip),%rdi
call   1030 <puts@plt>
lea    0xf30(%rip),%rdi
call   1030 <puts@plt>
lea    0xf56(%rip),%rdi
call   1030 <puts@plt>
lea    0xf75(%rip),%rdi
call   1030 <puts@plt>
lea    0xfa7(%rip),%rdi
call   1030 <puts@plt>
lea    0xfd9(%rip),%rdi
call   1030 <puts@plt>
lea    0xff3(%rip),%rdi
call   1030 <puts@plt>
lea    0x1008(%rip),%rdi
call   1030 <puts@plt>
lea    0x101b(%rip),%rdi
call   1030 <puts@plt>
lea    0x1030(%rip),%rdi
call   1030 <puts@plt>
lea    0x1049(%rip),%rdi
call   1030 <puts@plt>
lea    0x1072(%rip),%rdi
call   1030 <puts@plt>
lea    0x1070(%rip),%rdi
call   1030 <puts@plt>
lea    0x108a(%rip),%rdi
call   1030 <puts@plt>
lea    0x10af(%rip),%rdi
call   1030 <puts@plt>
lea    0x10e0(%rip),%rdi
call   1030 <puts@plt>
mov    $0xffffffff,%edi
call   1040 <exit@plt>

x86 assembly (clang, -O2):
<help>:
push   %rax
lea    0xed8(%rip),%rdi
call   1030 <puts@plt>
lea    0xee5(%rip),%rdi
call   1030 <puts@plt>
lea    0xee2(%rip),%rdi
call   1030 <puts@plt>
lea    0xefc(%rip),%rdi
call   1030 <puts@plt>
lea    0xf33(%rip),%rdi
call   1030 <puts@plt>
lea    0xf59(%rip),%rdi
call   1030 <puts@plt>
lea    0xf78(%rip),%rdi
call   1030 <puts@plt>
lea    0xfaa(%rip),%rdi
call   1030 <puts@plt>
lea    0xfdc(%rip),%rdi
call   1030 <puts@plt>
lea    0xff6(%rip),%rdi
call   1030 <puts@plt>
lea    0x100b(%rip),%rdi
call   1030 <puts@plt>
lea    0x101e(%rip),%rdi
call   1030 <puts@plt>
lea    0x1033(%rip),%rdi
call   1030 <puts@plt>
lea    0x104c(%rip),%rdi
call   1030 <puts@plt>
lea    0x1075(%rip),%rdi
call   1030 <puts@plt>
lea    0x1073(%rip),%rdi
call   1030 <puts@plt>
lea    0x108d(%rip),%rdi
call   1030 <puts@plt>
lea    0x10b2(%rip),%rdi
call   1030 <puts@plt>
lea    0x10e3(%rip),%rdi
call   1030 <puts@plt>
mov    $0xffffffff,%edi
call   1040 <exit@plt>

LLVM IR (-O0):
@.str = [25 x i8] c"Usage: neclcd [OPTIONS]\0A\00"
@.str.1 = [9 x i8] c"OPTIONS:\00"
@.str.2 = [38 x i8] c" -t, --type=VAL message type\00"
@.str.3 = [67 x i8] c" ('A' = command [not implemented properly]\00"
@.str.4 = [50 x i8] c" 'C' = get current param\00"
@.str.5 = [43 x i8] c" 'E' = set param)\00"
@.str.6 = [62 x i8] c" -d, --dest=VAL destination address (default is 'A')\00"
@.str.7 = [62 x i8] c" -s, --src=VAL source equipment ID (default is '0')\00"
@.str.8 = [38 x i8] c" -p, --codepage=VAL OP code page\00"
@.str.9 = [33 x i8] c" -c, --code=VAL OP code\00"
@.str.10 = [31 x i8] c" -v, --value=VAL value\00"
@.str.11 = [33 x i8] c" -m, --command=VAL command\00"
@.str.12 = [37 x i8] c" -e, --debug debug mode\0A\00"
@.str.13 = [53 x i8] c" -h, --help display this help and exit\0A\00"
@.str.14 = [10 x i8] c"Examples:\00"
@.str.15 = [38 x i8] c"neclcd --dest=A --type=A --command=0C\00"
@.str.16 = [49 x i8] c"neclcd --dest=A --type=C --codepage=00 --code=60\00"
@.str.17 = [61 x i8] c"neclcd --dest=A --type=E --codepage=00 --code=60 --value=12\0A\00"
@.str.18 = [48 x i8] c"Report bugs to <jiri(dot)tyr(at)gmail(dot)com>.\00"
define void @help() {
%1 = call i32 @puts(i8* getelementptr inbounds ([25 x i8], [25 x i8]* @.str, i64 0, i64 0))
%2 = call i32 @puts(i8* getelementptr inbounds ([9 x i8], [9 x i8]* @.str.1, i64 0, i64 0))
%3 = call i32 @puts(i8* getelementptr inbounds ([38 x i8], [38 x i8]* @.str.2, i64 0, i64 0))
%4 = call i32 @puts(i8* getelementptr inbounds ([67 x i8], [67 x i8]* @.str.3, i64 0, i64 0))
%5 = call i32 @puts(i8* getelementptr inbounds ([50 x i8], [50 x i8]* @.str.4, i64 0, i64 0))
%6 = call i32 @puts(i8* getelementptr inbounds ([43 x i8], [43 x i8]* @.str.5, i64 0, i64 0))
%7 = call i32 @puts(i8* getelementptr inbounds ([62 x i8], [62 x i8]* @.str.6, i64 0, i64 0))
%8 = call i32 @puts(i8* getelementptr inbounds ([62 x i8], [62 x i8]* @.str.7, i64 0, i64 0))
%9 = call i32 @puts(i8* getelementptr inbounds ([38 x i8], [38 x i8]* @.str.8, i64 0, i64 0))
%10 = call i32 @puts(i8* getelementptr inbounds ([33 x i8], [33 x i8]* @.str.9, i64 0, i64 0))
%11 = call i32 @puts(i8* getelementptr inbounds ([31 x i8], [31 x i8]* @.str.10, i64 0, i64 0))
%12 = call i32 @puts(i8* getelementptr inbounds ([33 x i8], [33 x i8]* @.str.11, i64 0, i64 0))
%13 = call i32 @puts(i8* getelementptr inbounds ([37 x i8], [37 x i8]* @.str.12, i64 0, i64 0))
%14 = call i32 @puts(i8* getelementptr inbounds ([53 x i8], [53 x i8]* @.str.13, i64 0, i64 0))
%15 = call i32 @puts(i8* getelementptr inbounds ([10 x i8], [10 x i8]* @.str.14, i64 0, i64 0))
%16 = call i32 @puts(i8* getelementptr inbounds ([38 x i8], [38 x i8]* @.str.15, i64 0, i64 0))
%17 = call i32 @puts(i8* getelementptr inbounds ([49 x i8], [49 x i8]* @.str.16, i64 0, i64 0))
%18 = call i32 @puts(i8* getelementptr inbounds ([61 x i8], [61 x i8]* @.str.17, i64 0, i64 0))
%19 = call i32 @puts(i8* getelementptr inbounds ([48 x i8], [48 x i8]* @.str.18, i64 0, i64 0))
%20 = call i32 @exit(i32 -1)
unreachable
}

LLVM IR (-O2):
@.str = [25 x i8] c"Usage: neclcd [OPTIONS]\0A\00"
@.str.1 = [9 x i8] c"OPTIONS:\00"
@.str.2 = [38 x i8] c" -t, --type=VAL message type\00"
@.str.3 = [67 x i8] c" ('A' = command [not implemented properly]\00"
@.str.4 = [50 x i8] c" 'C' = get current param\00"
@.str.5 = [43 x i8] c" 'E' = set param)\00"
@.str.6 = [62 x i8] c" -d, --dest=VAL destination address (default is 'A')\00"
@.str.7 = [62 x i8] c" -s, --src=VAL source equipment ID (default is '0')\00"
@.str.8 = [38 x i8] c" -p, --codepage=VAL OP code page\00"
@.str.9 = [33 x i8] c" -c, --code=VAL OP code\00"
@.str.10 = [31 x i8] c" -v, --value=VAL value\00"
@.str.11 = [33 x i8] c" -m, --command=VAL command\00"
@.str.12 = [37 x i8] c" -e, --debug debug mode\0A\00"
@.str.13 = [53 x i8] c" -h, --help display this help and exit\0A\00"
@.str.14 = [10 x i8] c"Examples:\00"
@.str.15 = [38 x i8] c"neclcd --dest=A --type=A --command=0C\00"
@.str.16 = [49 x i8] c"neclcd --dest=A --type=C --codepage=00 --code=60\00"
@.str.17 = [61 x i8] c"neclcd --dest=A --type=E --codepage=00 --code=60 --value=12\0A\00"
@.str.18 = [48 x i8] c"Report bugs to <jiri(dot)tyr(at)gmail(dot)com>.\00"
define void @help() {
%1 = tail call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([25 x i8], [25 x i8]* @.str, i64 0, i64 0))
%2 = tail call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([9 x i8], [9 x i8]* @.str.1, i64 0, i64 0))
%3 = tail call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([38 x i8], [38 x i8]* @.str.2, i64 0, i64 0))
%4 = tail call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([67 x i8], [67 x i8]* @.str.3, i64 0, i64 0))
%5 = tail call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([50 x i8], [50 x i8]* @.str.4, i64 0, i64 0))
%6 = tail call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([43 x i8], [43 x i8]* @.str.5, i64 0, i64 0))
%7 = tail call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([62 x i8], [62 x i8]* @.str.6, i64 0, i64 0))
%8 = tail call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([62 x i8], [62 x i8]* @.str.7, i64 0, i64 0))
%9 = tail call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([38 x i8], [38 x i8]* @.str.8, i64 0, i64 0))
%10 = tail call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([33 x i8], [33 x i8]* @.str.9, i64 0, i64 0))
%11 = tail call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([31 x i8], [31 x i8]* @.str.10, i64 0, i64 0))
%12 = tail call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([33 x i8], [33 x i8]* @.str.11, i64 0, i64 0))
%13 = tail call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([37 x i8], [37 x i8]* @.str.12, i64 0, i64 0))
%14 = tail call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([53 x i8], [53 x i8]* @.str.13, i64 0, i64 0))
%15 = tail call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([10 x i8], [10 x i8]* @.str.14, i64 0, i64 0))
%16 = tail call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([38 x i8], [38 x i8]* @.str.15, i64 0, i64 0))
%17 = tail call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([49 x i8], [49 x i8]* @.str.16, i64 0, i64 0))
%18 = tail call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([61 x i8], [61 x i8]* @.str.17, i64 0, i64 0))
%19 = tail call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([48 x i8], [48 x i8]* @.str.18, i64 0, i64 0))
%20 = tail call i32 @exit(i32 -1)
unreachable
}