#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*/ Check_Close(int, char **);
int /*<<< orphan*/ Check_Compression(int, char **);
int /*<<< orphan*/ Check_Empty(int, char **);
int /*<<< orphan*/ Check_List(int, char **);
int /*<<< orphan*/ Check_Load(int, char **);
int /*<<< orphan*/ Check_Open(int, char **);
int /*<<< orphan*/ Check_TapeAlert(int, char **);
int /*<<< orphan*/ Check_Unload(int, char **);
int /*<<< orphan*/ Check_append_only(int, char **);
int /*<<< orphan*/ Check_delay(int, char **);
int /*<<< orphan*/ PrintErrorExit(char *, char *);
int /*<<< orphan*/ exit(int);
int /*<<< orphan*/ fprintf(int /*<<< orphan*/, char *, char *);
int /*<<< orphan*/ isnumeric(char *);
int /*<<< orphan*/ stderr;
int /*<<< orphan*/ strcmp(char *, char *);
int /*<<< orphan*/ strncasecmp(char *, char *, int);
void Check_Params(int argc, char **argv) {
  if (argc > 1) {
    if (!isnumeric(argv[1])) {
      fprintf(stderr, "DeviceNo not numeric: %s\n", argv[1]);
      exit(1);
    }
    if (argc > 2) {
      if (!strcmp(argv[2], "verbose")) {
        if (argc == 3)
          return;
        PrintErrorExit(argv[0], "verbose");
      }
      if (!strcmp(argv[2], "dump")) {
        if (argc == 3)
          return;
        PrintErrorExit(argv[0], "dump");
      }
      if (!strcmp(argv[2], "debug")) {
        if (argc == 3)
          return;
        PrintErrorExit(argv[0], "debug");
      }
      if (!strcmp(argv[2], "exit")) {
        if (argc == 3)
          return;
        PrintErrorExit(argv[0], "exit");
      }
      if (!strncasecmp(argv[2], "TapeAlert", 9)) {
        Check_TapeAlert(argc, argv);
        return;
      }
      if (!strncasecmp(argv[2], "load", 4)) {
        Check_Load(argc, argv);
        return;
      }
      if (!strncasecmp(argv[2], "unload", 6)) {
        Check_Unload(argc, argv);
        return;
      }
      if (!strncasecmp(argv[2], "delay", 5)) {
        Check_delay(argc, argv);
        return;
      }
      if (!strncasecmp(argv[2], "compression", 11)) {
        Check_Compression(argc, argv);
        return;
      }
      if (!strncasecmp(argv[2], "Append", 6)) {
        Check_append_only(argc, argv);
        return;
      }
      if (!strcmp(argv[2], "online")) {
        if (argc == 3)
          return;
        PrintErrorExit(argv[0], "online");
      }
      if (!strcmp(argv[2], "offline")) {
        if (argc == 3)
          return;
        PrintErrorExit(argv[0], "offline");
      }
      if (!strcmp(argv[2], "list")) {
        Check_List(argc, argv);
        return;
      }
      if (!strcmp(argv[2], "empty")) {
        Check_Empty(argc, argv);
        return;
      }
      if (!strcmp(argv[2], "open")) {
        Check_Open(argc, argv);
        return;
      }
      if (!strcmp(argv[2], "close")) {
        Check_Close(argc, argv);
        return;
      }
      PrintErrorExit(argv[0], "check param");
    }
    PrintErrorExit(argv[0], "");
  }
  PrintErrorExit(argv[0], "");
}


x86 assembly (clang, -O0):
<Check_Params>:
push   %rbp
mov    %rsp,%rbp
sub    $0x10,%rsp
mov    %edi,-0x4(%rbp)
mov    %rsi,-0x10(%rbp)
cmpl   $0x1,-0x4(%rbp)
jle    15ea <Check_Params+0x3ea>
mov    -0x10(%rbp),%rax
mov    0x8(%rax),%rdi
call   10f0 <isnumeric@plt>
cmp    $0x0,%eax
jne    1256 <Check_Params+0x56>
mov    0x2daa(%rip),%rax
mov    (%rax),%edi
mov    -0x10(%rbp),%rax
mov    0x8(%rax),%rdx
lea    0xdb9(%rip),%rsi
call   10b0 <fprintf@plt>
mov    $0x1,%edi
call   1120 <exit@plt>
cmpl   $0x2,-0x4(%rbp)
jle    15d7 <Check_Params+0x3d7>
mov    -0x10(%rbp),%rax
mov    0x10(%rax),%rdi
lea    0xdab(%rip),%rsi
call   1090 <strcmp@plt>
cmp    $0x0,%eax
jne    129f <Check_Params+0x9f>
cmpl   $0x3,-0x4(%rbp)
jne    128c <Check_Params+0x8c>
jmp    15fd <Check_Params+0x3fd>
mov    -0x10(%rbp),%rax
mov    (%rax),%rdi
lea    0xd80(%rip),%rsi
call   1100 <PrintErrorExit@plt>
mov    -0x10(%rbp),%rax
mov    0x10(%rax),%rdi
lea    0xd74(%rip),%rsi
call   1090 <strcmp@plt>
cmp    $0x0,%eax
jne    12de <Check_Params+0xde>
cmpl   $0x3,-0x4(%rbp)
jne    12cb <Check_Params+0xcb>
jmp    15fd <Check_Params+0x3fd>
mov    -0x10(%rbp),%rax
mov    (%rax),%rdi
lea    0xd49(%rip),%rsi
call   1100 <PrintErrorExit@plt>
mov    -0x10(%rbp),%rax
mov    0x10(%rax),%rdi
lea    0xd3a(%rip),%rsi
call   1090 <strcmp@plt>
cmp    $0x0,%eax
jne    131d <Check_Params+0x11d>
cmpl   $0x3,-0x4(%rbp)
jne    130a <Check_Params+0x10a>
jmp    15fd <Check_Params+0x3fd>
mov    -0x10(%rbp),%rax
mov    (%rax),%rdi
lea    0xd0f(%rip),%rsi
call   1100 <PrintErrorExit@plt>
mov    -0x10(%rbp),%rax
mov    0x10(%rax),%rdi
lea    0xd01(%rip),%rsi
call   1090 <strcmp@plt>
cmp    $0x0,%eax
jne    135c <Check_Params+0x15c>
cmpl   $0x3,-0x4(%rbp)
jne    1349 <Check_Params+0x149>
jmp    15fd <Check_Params+0x3fd>
mov    -0x10(%rbp),%rax
mov    (%rax),%rdi
lea    0xcd6(%rip),%rsi
call   1100 <PrintErrorExit@plt>
mov    -0x10(%rbp),%rax
mov    0x10(%rax),%rdi
lea    0xcc7(%rip),%rsi
mov    $0x9,%edx
call   10c0 <strncasecmp@plt>
cmp    $0x0,%eax
jne    138f <Check_Params+0x18f>
mov    -0x4(%rbp),%edi
mov    -0x10(%rbp),%rsi
call   1030 <Check_TapeAlert@plt>
jmp    15fd <Check_Params+0x3fd>
mov    -0x10(%rbp),%rax
mov    0x10(%rax),%rdi
lea    0xca0(%rip),%rsi
mov    $0x4,%edx
call   10c0 <strncasecmp@plt>
cmp    $0x0,%eax
jne    13c2 <Check_Params+0x1c2>
mov    -0x4(%rbp),%edi
mov    -0x10(%rbp),%rsi
call   1050 <Check_Load@plt>
jmp    15fd <Check_Params+0x3fd>
mov    -0x10(%rbp),%rax
mov    0x10(%rax),%rdi
lea    0xc6b(%rip),%rsi
mov    $0x6,%edx
call   10c0 <strncasecmp@plt>
cmp    $0x0,%eax
jne    13f5 <Check_Params+0x1f5>
mov    -0x4(%rbp),%edi
mov    -0x10(%rbp),%rsi
call   10a0 <Check_Unload@plt>
jmp    15fd <Check_Params+0x3fd>
mov    -0x10(%rbp),%rax
mov    0x10(%rax),%rdi
lea    0xc3f(%rip),%rsi
mov    $0x5,%edx
call   10c0 <strncasecmp@plt>
cmp    $0x0,%eax
jne    1428 <Check_Params+0x228>
mov    -0x4(%rbp),%edi
mov    -0x10(%rbp),%rsi
call   10d0 <Check_delay@plt>
jmp    15fd <Check_Params+0x3fd>
mov    -0x10(%rbp),%rax
mov    0x10(%rax),%rdi
lea    0xc12(%rip),%rsi
mov    $0xb,%edx
call   10c0 <strncasecmp@plt>
cmp    $0x0,%eax
jne    145b <Check_Params+0x25b>
mov    -0x4(%rbp),%edi
mov    -0x10(%rbp),%rsi
call   1040 <Check_Compression@plt>
jmp    15fd <Check_Params+0x3fd>
mov    -0x10(%rbp),%rax
mov    0x10(%rax),%rdi
lea    0xbeb(%rip),%rsi
mov    $0x6,%edx
call   10c0 <strncasecmp@plt>
cmp    $0x0,%eax
jne    148e <Check_Params+0x28e>
mov    -0x4(%rbp),%edi
mov    -0x10(%rbp),%rsi
call   1060 <Check_append_only@plt>
jmp    15fd <Check_Params+0x3fd>
mov    -0x10(%rbp),%rax
mov    0x10(%rax),%rdi
lea    0xbbf(%rip),%rsi
call   1090 <strcmp@plt>
cmp    $0x0,%eax
jne    14cd <Check_Params+0x2cd>
cmpl   $0x3,-0x4(%rbp)
jne    14ba <Check_Params+0x2ba>
jmp    15fd <Check_Params+0x3fd>
mov    -0x10(%rbp),%rax
mov    (%rax),%rdi
lea    0xb94(%rip),%rsi
call   1100 <PrintErrorExit@plt>
mov    -0x10(%rbp),%rax
mov    0x10(%rax),%rdi
lea    0xb87(%rip),%rsi
call   1090 <strcmp@plt>
cmp    $0x0,%eax
jne    150c <Check_Params+0x30c>
cmpl   $0x3,-0x4(%rbp)
jne    14f9 <Check_Params+0x2f9>
jmp    15fd <Check_Params+0x3fd>
mov    -0x10(%rbp),%rax
mov    (%rax),%rdi
lea    0xb5c(%rip),%rsi
call   1100 <PrintErrorExit@plt>
mov    -0x10(%rbp),%rax
mov    0x10(%rax),%rdi
lea    0xb50(%rip),%rsi
call   1090 <strcmp@plt>
cmp    $0x0,%eax
jne    153a <Check_Params+0x33a>
mov    -0x4(%rbp),%edi
mov    -0x10(%rbp),%rsi
call   1080 <Check_List@plt>
jmp    15fd <Check_Params+0x3fd>
mov    -0x10(%rbp),%rax
mov    0x10(%rax),%rdi
lea    0xb27(%rip),%rsi
call   1090 <strcmp@plt>
cmp    $0x0,%eax
jne    1568 <Check_Params+0x368>
mov    -0x4(%rbp),%edi
mov    -0x10(%rbp),%rsi
call   1110 <Check_Empty@plt>
jmp    15fd <Check_Params+0x3fd>
mov    -0x10(%rbp),%rax
mov    0x10(%rax),%rdi
lea    0xaff(%rip),%rsi
call   1090 <strcmp@plt>
cmp    $0x0,%eax
jne    1596 <Check_Params+0x396>
mov    -0x4(%rbp),%edi
mov    -0x10(%rbp),%rsi
call   10e0 <Check_Open@plt>
jmp    15fd <Check_Params+0x3fd>
mov    -0x10(%rbp),%rax
mov    0x10(%rax),%rdi
lea    0xad6(%rip),%rsi
call   1090 <strcmp@plt>
cmp    $0x0,%eax
jne    15c4 <Check_Params+0x3c4>
mov    -0x4(%rbp),%edi
mov    -0x10(%rbp),%rsi
call   1070 <Check_Close@plt>
jmp    15fd <Check_Params+0x3fd>
mov    -0x10(%rbp),%rax
mov    (%rax),%rdi
lea    0xaaf(%rip),%rsi
call   1100 <PrintErrorExit@plt>
mov    -0x10(%rbp),%rax
mov    (%rax),%rdi
lea    0xa34(%rip),%rsi
call   1100 <PrintErrorExit@plt>
mov    -0x10(%rbp),%rax
mov    (%rax),%rdi
lea    0xa21(%rip),%rsi
call   1100 <PrintErrorExit@plt>
add    $0x10,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<Check_Params>:
push   %rbp
push   %r14
push   %rbx
mov    %rsi,%rbx
cmp    $0x2,%edi
jl     1465 <Check_Params+0x265>
mov    %edi,%ebp
mov    0x8(%rbx),%rdi
call   10f0 <isnumeric@plt>
test   %eax,%eax
je     1504 <Check_Params+0x304>
cmp    $0x3,%ebp
jb     1456 <Check_Params+0x256>
mov    0x10(%rbx),%r14
lea    0xde3(%rip),%rsi
mov    %r14,%rdi
call   1090 <strcmp@plt>
test   %eax,%eax
jne    125f <Check_Params+0x5f>
cmp    $0x3,%ebp
je     12cd <Check_Params+0xcd>
mov    (%rbx),%rdi
lea    0xdc4(%rip),%rsi
call   1100 <PrintErrorExit@plt>
mov    0x10(%rbx),%r14
lea    0xdbc(%rip),%rsi
mov    %r14,%rdi
call   1090 <strcmp@plt>
test   %eax,%eax
jne    128a <Check_Params+0x8a>
cmp    $0x3,%ebp
je     12cd <Check_Params+0xcd>
mov    (%rbx),%rdi
lea    0xda1(%rip),%rsi
call   1100 <PrintErrorExit@plt>
mov    0x10(%rbx),%r14
lea    0xd96(%rip),%rsi
mov    %r14,%rdi
call   1090 <strcmp@plt>
test   %eax,%eax
jne    12b5 <Check_Params+0xb5>
cmp    $0x3,%ebp
je     12cd <Check_Params+0xcd>
mov    (%rbx),%rdi
lea    0xd7b(%rip),%rsi
call   1100 <PrintErrorExit@plt>
mov    0x10(%rbx),%r14
lea    0xd71(%rip),%rsi
mov    %r14,%rdi
call   1090 <strcmp@plt>
test   %eax,%eax
jne    12e5 <Check_Params+0xe5>
cmp    $0x3,%ebp
jne    12d2 <Check_Params+0xd2>
pop    %rbx
pop    %r14
pop    %rbp
ret
mov    (%rbx),%rdi
lea    0xd51(%rip),%rsi
call   1100 <PrintErrorExit@plt>
mov    0x10(%rbx),%r14
lea    0xd46(%rip),%rsi
mov    %r14,%rdi
mov    $0x9,%edx
call   10c0 <strncasecmp@plt>
test   %eax,%eax
je     1478 <Check_Params+0x278>
lea    0xd36(%rip),%rsi
mov    %r14,%rdi
mov    $0x4,%edx
call   10c0 <strncasecmp@plt>
test   %eax,%eax
je     1486 <Check_Params+0x286>
lea    0xd18(%rip),%rsi
mov    %r14,%rdi
mov    $0x6,%edx
call   10c0 <strncasecmp@plt>
test   %eax,%eax
je     1494 <Check_Params+0x294>
lea    0xd03(%rip),%rsi
mov    %r14,%rdi
mov    $0x5,%edx
call   10c0 <strncasecmp@plt>
test   %eax,%eax
je     14a2 <Check_Params+0x2a2>
lea    0xced(%rip),%rsi
mov    %r14,%rdi
mov    $0xb,%edx
call   10c0 <strncasecmp@plt>
test   %eax,%eax
je     14b0 <Check_Params+0x2b0>
lea    0xcdd(%rip),%rsi
mov    %r14,%rdi
mov    $0x6,%edx
call   10c0 <strncasecmp@plt>
test   %eax,%eax
je     14be <Check_Params+0x2be>
lea    0xcc8(%rip),%rsi
mov    %r14,%rdi
call   1090 <strcmp@plt>
test   %eax,%eax
jne    13bc <Check_Params+0x1bc>
cmp    $0x3,%ebp
je     12cd <Check_Params+0xcd>
mov    (%rbx),%rdi
lea    0xca9(%rip),%rsi
call   1100 <PrintErrorExit@plt>
mov    0x10(%rbx),%r14
lea    0xca0(%rip),%rsi
mov    %r14,%rdi
call   1090 <strcmp@plt>
test   %eax,%eax
jne    13eb <Check_Params+0x1eb>
cmp    $0x3,%ebp
je     12cd <Check_Params+0xcd>
mov    (%rbx),%rdi
lea    0xc81(%rip),%rsi
call   1100 <PrintErrorExit@plt>
mov    0x10(%rbx),%r14
lea    0xc79(%rip),%rsi
mov    %r14,%rdi
call   1090 <strcmp@plt>
test   %eax,%eax
je     14cc <Check_Params+0x2cc>
lea    0xc67(%rip),%rsi
mov    %r14,%rdi
call   1090 <strcmp@plt>
test   %eax,%eax
je     14da <Check_Params+0x2da>
lea    0xc56(%rip),%rsi
mov    %r14,%rdi
call   1090 <strcmp@plt>
test   %eax,%eax
je     14e8 <Check_Params+0x2e8>
lea    0xc44(%rip),%rsi
mov    %r14,%rdi
call   1090 <strcmp@plt>
test   %eax,%eax
je     14f6 <Check_Params+0x2f6>
mov    (%rbx),%rdi
lea    0xc30(%rip),%rsi
call   1100 <PrintErrorExit@plt>
mov    (%rbx),%rdi
lea    0xbb9(%rip),%rsi
call   1100 <PrintErrorExit@plt>
mov    (%rbx),%rdi
lea    0xbaa(%rip),%rsi
pop    %rbx
pop    %r14
pop    %rbp
jmp    1100 <PrintErrorExit@plt>
mov    %ebp,%edi
mov    %rbx,%rsi
pop    %rbx
pop    %r14
pop    %rbp
jmp    1030 <Check_TapeAlert@plt>
mov    %ebp,%edi
mov    %rbx,%rsi
pop    %rbx
pop    %r14
pop    %rbp
jmp    1050 <Check_Load@plt>
mov    %ebp,%edi
mov    %rbx,%rsi
pop    %rbx
pop    %r14
pop    %rbp
jmp    10a0 <Check_Unload@plt>
mov    %ebp,%edi
mov    %rbx,%rsi
pop    %rbx
pop    %r14
pop    %rbp
jmp    10d0 <Check_delay@plt>
mov    %ebp,%edi
mov    %rbx,%rsi
pop    %rbx
pop    %r14
pop    %rbp
jmp    1040 <Check_Compression@plt>
mov    %ebp,%edi
mov    %rbx,%rsi
pop    %rbx
pop    %r14
pop    %rbp
jmp    1060 <Check_append_only@plt>
mov    %ebp,%edi
mov    %rbx,%rsi
pop    %rbx
pop    %r14
pop    %rbp
jmp    1080 <Check_List@plt>
mov    %ebp,%edi
mov    %rbx,%rsi
pop    %rbx
pop    %r14
pop    %rbp
jmp    1110 <Check_Empty@plt>
mov    %ebp,%edi
mov    %rbx,%rsi
pop    %rbx
pop    %r14
pop    %rbp
jmp    10e0 <Check_Open@plt>
mov    %ebp,%edi
mov    %rbx,%rsi
pop    %rbx
pop    %r14
pop    %rbp
jmp    1070 <Check_Close@plt>
mov    0x2ad5(%rip),%rax
mov    (%rax),%edi
mov    0x8(%rbx),%rdx
lea    0xae8(%rip),%rsi
call   10b0 <fprintf@plt>
mov    $0x1,%edi
call   1120 <exit@plt>

LLVM IR (-O0):
@stderr = global i32 0
@.str = [26 x i8] c"DeviceNo not numeric: %s\0A\00"
@.str.1 = [8 x i8] c"verbose\00"
@.str.2 = [5 x i8] c"dump\00"
@.str.3 = [6 x i8] c"debug\00"
@.str.4 = [5 x i8] c"exit\00"
@.str.5 = [10 x i8] c"TapeAlert\00"
@.str.6 = [5 x i8] c"load\00"
@.str.7 = [7 x i8] c"unload\00"
@.str.8 = [6 x i8] c"delay\00"
@.str.9 = [12 x i8] c"compression\00"
@.str.10 = [7 x i8] c"Append\00"
@.str.11 = [7 x i8] c"online\00"
@.str.12 = [8 x i8] c"offline\00"
@.str.13 = [5 x i8] c"list\00"
@.str.14 = [6 x i8] c"empty\00"
@.str.15 = [5 x i8] c"open\00"
@.str.16 = [6 x i8] c"close\00"
@.str.17 = [12 x i8] c"check param\00"
@.str.18 = [1 x i8] zeroinitializer
define void @Check_Params(i32 %0, i8** %1) {
%3 = alloca i32
%4 = alloca i8**
store i32 %0, i32* %3
store i8** %1, i8*** %4
%5 = load i32, i32* %3
%6 = icmp sgt i32 %5, 1
br i1 %6, label %7, label %223
7: ; preds = %2
%8 = load i8**, i8*** %4
%9 = getelementptr inbounds i8*, i8** %8, i64 1
%10 = load i8*, i8** %9
%11 = call i32 @isnumeric(i8* %10)
%12 = icmp ne i32 %11, 0
br i1 %12, label %20, label %13
13: ; preds = %7
%14 = load i32, i32* @stderr
%15 = load i8**, i8*** %4
%16 = getelementptr inbounds i8*, i8** %15, i64 1
%17 = load i8*, i8** %16
%18 = call i32 @fprintf(i32 %14, i8* getelementptr inbounds ([26 x i8], [26 x i8]* @.str, i64 0, i64 0), i8* %17)
%19 = call i32 @exit(i32 1)
unreachable
20: ; preds = %7
%21 = load i32, i32* %3
%22 = icmp sgt i32 %21, 2
br i1 %22, label %23, label %218
23: ; preds = %20
%24 = load i8**, i8*** %4
%25 = getelementptr inbounds i8*, i8** %24, i64 2
%26 = load i8*, i8** %25
%27 = call i32 @strcmp(i8* %26, i8* getelementptr inbounds ([8 x i8], [8 x i8]* @.str.1, i64 0, i64 0))
%28 = icmp ne i32 %27, 0
br i1 %28, label %38, label %29
29: ; preds = %23
%30 = load i32, i32* %3
%31 = icmp eq i32 %30, 3
br i1 %31, label %32, label %33
32: ; preds = %29
br label %228
33: ; preds = %29
%34 = load i8**, i8*** %4
%35 = getelementptr inbounds i8*, i8** %34, i64 0
%36 = load i8*, i8** %35
%37 = call i32 @PrintErrorExit(i8* %36, i8* getelementptr inbounds ([8 x i8], [8 x i8]* @.str.1, i64 0, i64 0))
br label %38
38: ; preds = %33, %23
%39 = load i8**, i8*** %4
%40 = getelementptr inbounds i8*, i8** %39, i64 2
%41 = load i8*, i8** %40
%42 = call i32 @strcmp(i8* %41, i8* getelementptr inbounds ([5 x i8], [5 x i8]* @.str.2, i64 0, i64 0))
%43 = icmp ne i32 %42, 0
br i1 %43, label %53, label %44
44: ; preds = %38
%45 = load i32, i32* %3
%46 = icmp eq i32 %45, 3
br i1 %46, label %47, label %48
47: ; preds = %44
br label %228
48: ; preds = %44
%49 = load i8**, i8*** %4
%50 = getelementptr inbounds i8*, i8** %49, i64 0
%51 = load i8*, i8** %50
%52 = call i32 @PrintErrorExit(i8* %51, i8* getelementptr inbounds ([5 x i8], [5 x i8]* @.str.2, i64 0, i64 0))
br label %53
53: ; preds = %48, %38
%54 = load i8**, i8*** %4
%55 = getelementptr inbounds i8*, i8** %54, i64 2
%56 = load i8*, i8** %55
%57 = call i32 @strcmp(i8* %56, i8* getelementptr inbounds ([6 x i8], [6 x i8]* @.str.3, i64 0, i64 0))
%58 = icmp ne i32 %57, 0
br i1 %58, label %68, label %59
59: ; preds = %53
%60 = load i32, i32* %3
%61 = icmp eq i32 %60, 3
br i1 %61, label %62, label %63
62: ; preds = %59
br label %228
63: ; preds = %59
%64 = load i8**, i8*** %4
%65 = getelementptr inbounds i8*, i8** %64, i64 0
%66 = load i8*, i8** %65
%67 = call i32 @PrintErrorExit(i8* %66, i8* getelementptr inbounds ([6 x i8], [6 x i8]* @.str.3, i64 0, i64 0))
br label %68
68: ; preds = %63, %53
%69 = load i8**, i8*** %4
%70 = getelementptr inbounds i8*, i8** %69, i64 2
%71 = load i8*, i8** %70
%72 = call i32 @strcmp(i8* %71, i8* getelementptr inbounds ([5 x i8], [5 x i8]* @.str.4, i64 0, i64 0))
%73 = icmp ne i32 %72, 0
br i1 %73, label %83, label %74
74: ; preds = %68
%75 = load i32, i32* %3
%76 = icmp eq i32 %75, 3
br i1 %76, label %77, label %78
77: ; preds = %74
br label %228
78: ; preds = %74
%79 = load i8**, i8*** %4
%80 = getelementptr inbounds i8*, i8** %79, i64 0
%81 = load i8*, i8** %80
%82 = call i32 @PrintErrorExit(i8* %81, i8* getelementptr inbounds ([5 x i8], [5 x i8]* @.str.4, i64 0, i64 0))
br label %83
83: ; preds = %78, %68
%84 = load i8**, i8*** %4
%85 = getelementptr inbounds i8*, i8** %84, i64 2
%86 = load i8*, i8** %85
%87 = call i32 @strncasecmp(i8* %86, i8* getelementptr inbounds ([10 x i8], [10 x i8]* @.str.5, i64 0, i64 0), i32 9)
%88 = icmp ne i32 %87, 0
br i1 %88, label %93, label %89
89: ; preds = %83
%90 = load i32, i32* %3
%91 = load i8**, i8*** %4
%92 = call i32 @Check_TapeAlert(i32 %90, i8** %91)
br label %228
93: ; preds = %83
%94 = load i8**, i8*** %4
%95 = getelementptr inbounds i8*, i8** %94, i64 2
%96 = load i8*, i8** %95
%97 = call i32 @strncasecmp(i8* %96, i8* getelementptr inbounds ([5 x i8], [5 x i8]* @.str.6, i64 0, i64 0), i32 4)
%98 = icmp ne i32 %97, 0
br i1 %98, label %103, label %99
99: ; preds = %93
%100 = load i32, i32* %3
%101 = load i8**, i8*** %4
%102 = call i32 @Check_Load(i32 %100, i8** %101)
br label %228
103: ; preds = %93
%104 = load i8**, i8*** %4
%105 = getelementptr inbounds i8*, i8** %104, i64 2
%106 = load i8*, i8** %105
%107 = call i32 @strncasecmp(i8* %106, i8* getelementptr inbounds ([7 x i8], [7 x i8]* @.str.7, i64 0, i64 0), i32 6)
%108 = icmp ne i32 %107, 0
br i1 %108, label %113, label %109
109: ; preds = %103
%110 = load i32, i32* %3
%111 = load i8**, i8*** %4
%112 = call i32 @Check_Unload(i32 %110, i8** %111)
br label %228
113: ; preds = %103
%114 = load i8**, i8*** %4
%115 = getelementptr inbounds i8*, i8** %114, i64 2
%116 = load i8*, i8** %115
%117 = call i32 @strncasecmp(i8* %116, i8* getelementptr inbounds ([6 x i8], [6 x i8]* @.str.8, i64 0, i64 0), i32 5)
%118 = icmp ne i32 %117, 0
br i1 %118, label %123, label %119
119: ; preds = %113
%120 = load i32, i32* %3
%121 = load i8**, i8*** %4
%122 = call i32 @Check_delay(i32 %120, i8** %121)
br label %228
123: ; preds = %113
%124 = load i8**, i8*** %4
%125 = getelementptr inbounds i8*, i8** %124, i64 2
%126 = load i8*, i8** %125
%127 = call i32 @strncasecmp(i8* %126, i8* getelementptr inbounds ([12 x i8], [12 x i8]* @.str.9, i64 0, i64 0), i32 11)
%128 = icmp ne i32 %127, 0
br i1 %128, label %133, label %129
129: ; preds = %123
%130 = load i32, i32* %3
%131 = load i8**, i8*** %4
%132 = call i32 @Check_Compression(i32 %130, i8** %131)
br label %228
133: ; preds = %123
%134 = load i8**, i8*** %4
%135 = getelementptr inbounds i8*, i8** %134, i64 2
%136 = load i8*, i8** %135
%137 = call i32 @strncasecmp(i8* %136, i8* getelementptr inbounds ([7 x i8], [7 x i8]* @.str.10, i64 0, i64 0), i32 6)
%138 = icmp ne i32 %137, 0
br i1 %138, label %143, label %139
139: ; preds = %133
%140 = load i32, i32* %3
%141 = load i8**, i8*** %4
%142 = call i32 @Check_append_only(i32 %140, i8** %141)
br label %228
143: ; preds = %133
%144 = load i8**, i8*** %4
%145 = getelementptr inbounds i8*, i8** %144, i64 2
%146 = load i8*, i8** %145
%147 = call i32 @strcmp(i8* %146, i8* getelementptr inbounds ([7 x i8], [7 x i8]* @.str.11, i64 0, i64 0))
%148 = icmp ne i32 %147, 0
br i1 %148, label %158, label %149
149: ; preds = %143
%150 = load i32, i32* %3
%151 = icmp eq i32 %150, 3
br i1 %151, label %152, label %153
152: ; preds = %149
br label %228
153: ; preds = %149
%154 = load i8**, i8*** %4
%155 = getelementptr inbounds i8*, i8** %154, i64 0
%156 = load i8*, i8** %155
%157 = call i32 @PrintErrorExit(i8* %156, i8* getelementptr inbounds ([7 x i8], [7 x i8]* @.str.11, i64 0, i64 0))
br label %158
158: ; preds = %153, %143
%159 = load i8**, i8*** %4
%160 = getelementptr inbounds i8*, i8** %159, i64 2
%161 = load i8*, i8** %160
%162 = call i32 @strcmp(i8* %161, i8* getelementptr inbounds ([8 x i8], [8 x i8]* @.str.12, i64 0, i64 0))
%163 = icmp ne i32 %162, 0
br i1 %163, label %173, label %164
164: ; preds = %158
%165 = load i32, i32* %3
%166 = icmp eq i32 %165, 3
br i1 %166, label %167, label %168
167: ; preds = %164
br label %228
168: ; preds = %164
%169 = load i8**, i8*** %4
%170 = getelementptr inbounds i8*, i8** %169, i64 0
%171 = load i8*, i8** %170
%172 = call i32 @PrintErrorExit(i8* %171, i8* getelementptr inbounds ([8 x i8], [8 x i8]* @.str.12, i64 0, i64 0))
br label %173
173: ; preds = %168, %158
%174 = load i8**, i8*** %4
%175 = getelementptr inbounds i8*, i8** %174, i64 2
%176 = load i8*, i8** %175
%177 = call i32 @strcmp(i8* %176, i8* getelementptr inbounds ([5 x i8], [5 x i8]* @.str.13, i64 0, i64 0))
%178 = icmp ne i32 %177, 0
br i1 %178, label %183, label %179
179: ; preds = %173
%180 = load i32, i32* %3
%181 = load i8**, i8*** %4
%182 = call i32 @Check_List(i32 %180, i8** %181)
br label %228
183: ; preds = %173
%184 = load i8**, i8*** %4
%185 = getelementptr inbounds i8*, i8** %184, i64 2
%186 = load i8*, i8** %185
%187 = call i32 @strcmp(i8* %186, i8* getelementptr inbounds ([6 x i8], [6 x i8]* @.str.14, i64 0, i64 0))
%188 = icmp ne i32 %187, 0
br i1 %188, label %193, label %189
189: ; preds = %183
%190 = load i32, i32* %3
%191 = load i8**, i8*** %4
%192 = call i32 @Check_Empty(i32 %190, i8** %191)
br label %228
193: ; preds = %183
%194 = load i8**, i8*** %4
%195 = getelementptr inbounds i8*, i8** %194, i64 2
%196 = load i8*, i8** %195
%197 = call i32 @strcmp(i8* %196, i8* getelementptr inbounds ([5 x i8], [5 x i8]* @.str.15, i64 0, i64 0))
%198 = icmp ne i32 %197, 0
br i1 %198, label %203, label %199
199: ; preds = %193
%200 = load i32, i32* %3
%201 = load i8**, i8*** %4
%202 = call i32 @Check_Open(i32 %200, i8** %201)
br label %228
203: ; preds = %193
%204 = load i8**, i8*** %4
%205 = getelementptr inbounds i8*, i8** %204, i64 2
%206 = load i8*, i8** %205
%207 = call i32 @strcmp(i8* %206, i8* getelementptr inbounds ([6 x i8], [6 x i8]* @.str.16, i64 0, i64 0))
%208 = icmp ne i32 %207, 0
br i1 %208, label %213, label %209
209: ; preds = %203
%210 = load i32, i32* %3
%211 = load i8**, i8*** %4
%212 = call i32 @Check_Close(i32 %210, i8** %211)
br label %228
213: ; preds = %203
%214 = load i8**, i8*** %4
%215 = getelementptr inbounds i8*, i8** %214, i64 0
%216 = load i8*, i8** %215
%217 = call i32 @PrintErrorExit(i8* %216, i8* getelementptr inbounds ([12 x i8], [12 x i8]* @.str.17, i64 0, i64 0))
br label %218
218: ; preds = %213, %20
%219 = load i8**, i8*** %4
%220 = getelementptr inbounds i8*, i8** %219, i64 0
%221 = load i8*, i8** %220
%222 = call i32 @PrintErrorExit(i8* %221, i8* getelementptr inbounds ([1 x i8], [1 x i8]* @.str.18, i64 0, i64 0))
br label %223
223: ; preds = %218, %2
%224 = load i8**, i8*** %4
%225 = getelementptr inbounds i8*, i8** %224, i64 0
%226 = load i8*, i8** %225
%227 = call i32 @PrintErrorExit(i8* %226, i8* getelementptr inbounds ([1 x i8], [1 x i8]* @.str.18, i64 0, i64 0))
br label %228
228: ; preds = %223, %209, %199, %189, %179, %167, %152, %139, %129, %119, %109, %99, %89, %77, %62, %47, %32
ret void
}

LLVM IR (-O2):
@stderr = global i32 0
@.str = [26 x i8] c"DeviceNo not numeric: %s\0A\00"
@.str.1 = [8 x i8] c"verbose\00"
@.str.2 = [5 x i8] c"dump\00"
@.str.3 = [6 x i8] c"debug\00"
@.str.4 = [5 x i8] c"exit\00"
@.str.5 = [10 x i8] c"TapeAlert\00"
@.str.6 = [5 x i8] c"load\00"
@.str.7 = [7 x i8] c"unload\00"
@.str.8 = [6 x i8] c"delay\00"
@.str.9 = [12 x i8] c"compression\00"
@.str.10 = [7 x i8] c"Append\00"
@.str.11 = [7 x i8] c"online\00"
@.str.12 = [8 x i8] c"offline\00"
@.str.13 = [5 x i8] c"list\00"
@.str.14 = [6 x i8] c"empty\00"
@.str.15 = [5 x i8] c"open\00"
@.str.16 = [6 x i8] c"close\00"
@.str.17 = [12 x i8] c"check param\00"
@.str.18 = [1 x i8] zeroinitializer
define void @Check_Params(i32 %0, i8** %1) {
%3 = icmp sgt i32 %0, 1
br i1 %3, label %4, label %134
4: ; preds = %2
%5 = getelementptr inbounds i8*, i8** %1, i64 1
%6 = load i8*, i8** %5
%7 = tail call i32 @isnumeric(i8* %6)
%8 = icmp eq i32 %7, 0
br i1 %8, label %9, label %14
9: ; preds = %4
%10 = load i32, i32* @stderr
%11 = load i8*, i8** %5
%12 = tail call i32 @fprintf(i32 %10, i8* getelementptr inbounds ([26 x i8], [26 x i8]* @.str, i64 0, i64 0), i8* %11)
%13 = tail call i32 @exit(i32 1)
unreachable
14: ; preds = %4
%15 = icmp ugt i32 %0, 2
br i1 %15, label %16, label %131
16: ; preds = %14
%17 = getelementptr inbounds i8*, i8** %1, i64 2
%18 = load i8*, i8** %17
%19 = tail call i32 @strcmp(i8* dereferenceable(1) %18, i8* dereferenceable(8) getelementptr inbounds ([8 x i8], [8 x i8]* @.str.1, i64 0, i64 0))
%20 = icmp eq i32 %19, 0
br i1 %20, label %21, label %27
21: ; preds = %16
%22 = icmp eq i32 %0, 3
br i1 %22, label %137, label %23
23: ; preds = %21
%24 = load i8*, i8** %1
%25 = tail call i32 @PrintErrorExit(i8* %24, i8* getelementptr inbounds ([8 x i8], [8 x i8]* @.str.1, i64 0, i64 0))
%26 = load i8*, i8** %17
br label %27
27: ; preds = %23, %16
%28 = phi i8* [ %26, %23 ], [ %18, %16 ]
%29 = tail call i32 @strcmp(i8* dereferenceable(1) %28, i8* dereferenceable(5) getelementptr inbounds ([5 x i8], [5 x i8]* @.str.2, i64 0, i64 0))
%30 = icmp eq i32 %29, 0
br i1 %30, label %31, label %37
31: ; preds = %27
%32 = icmp eq i32 %0, 3
br i1 %32, label %137, label %33
33: ; preds = %31
%34 = load i8*, i8** %1
%35 = tail call i32 @PrintErrorExit(i8* %34, i8* getelementptr inbounds ([5 x i8], [5 x i8]* @.str.2, i64 0, i64 0))
%36 = load i8*, i8** %17
br label %37
37: ; preds = %33, %27
%38 = phi i8* [ %36, %33 ], [ %28, %27 ]
%39 = tail call i32 @strcmp(i8* dereferenceable(1) %38, i8* dereferenceable(6) getelementptr inbounds ([6 x i8], [6 x i8]* @.str.3, i64 0, i64 0))
%40 = icmp eq i32 %39, 0
br i1 %40, label %41, label %47
41: ; preds = %37
%42 = icmp eq i32 %0, 3
br i1 %42, label %137, label %43
43: ; preds = %41
%44 = load i8*, i8** %1
%45 = tail call i32 @PrintErrorExit(i8* %44, i8* getelementptr inbounds ([6 x i8], [6 x i8]* @.str.3, i64 0, i64 0))
%46 = load i8*, i8** %17
br label %47
47: ; preds = %43, %37
%48 = phi i8* [ %46, %43 ], [ %38, %37 ]
%49 = tail call i32 @strcmp(i8* dereferenceable(1) %48, i8* dereferenceable(5) getelementptr inbounds ([5 x i8], [5 x i8]* @.str.4, i64 0, i64 0))
%50 = icmp eq i32 %49, 0
br i1 %50, label %51, label %57
51: ; preds = %47
%52 = icmp eq i32 %0, 3
br i1 %52, label %137, label %53
53: ; preds = %51
%54 = load i8*, i8** %1
%55 = tail call i32 @PrintErrorExit(i8* %54, i8* getelementptr inbounds ([5 x i8], [5 x i8]* @.str.4, i64 0, i64 0))
%56 = load i8*, i8** %17
br label %57
57: ; preds = %53, %47
%58 = phi i8* [ %56, %53 ], [ %48, %47 ]
%59 = tail call i32 @strncasecmp(i8* %58, i8* getelementptr inbounds ([10 x i8], [10 x i8]* @.str.5, i64 0, i64 0), i32 9)
%60 = icmp eq i32 %59, 0
br i1 %60, label %61, label %63
61: ; preds = %57
%62 = tail call i32 @Check_TapeAlert(i32 %0, i8** %1)
br label %137
63: ; preds = %57
%64 = tail call i32 @strncasecmp(i8* %58, i8* getelementptr inbounds ([5 x i8], [5 x i8]* @.str.6, i64 0, i64 0), i32 4)
%65 = icmp eq i32 %64, 0
br i1 %65, label %66, label %68
66: ; preds = %63
%67 = tail call i32 @Check_Load(i32 %0, i8** %1)
br label %137
68: ; preds = %63
%69 = tail call i32 @strncasecmp(i8* %58, i8* getelementptr inbounds ([7 x i8], [7 x i8]* @.str.7, i64 0, i64 0), i32 6)
%70 = icmp eq i32 %69, 0
br i1 %70, label %71, label %73
71: ; preds = %68
%72 = tail call i32 @Check_Unload(i32 %0, i8** %1)
br label %137
73: ; preds = %68
%74 = tail call i32 @strncasecmp(i8* %58, i8* getelementptr inbounds ([6 x i8], [6 x i8]* @.str.8, i64 0, i64 0), i32 5)
%75 = icmp eq i32 %74, 0
br i1 %75, label %76, label %78
76: ; preds = %73
%77 = tail call i32 @Check_delay(i32 %0, i8** %1)
br label %137
78: ; preds = %73
%79 = tail call i32 @strncasecmp(i8* %58, i8* getelementptr inbounds ([12 x i8], [12 x i8]* @.str.9, i64 0, i64 0), i32 11)
%80 = icmp eq i32 %79, 0
br i1 %80, label %81, label %83
81: ; preds = %78
%82 = tail call i32 @Check_Compression(i32 %0, i8** %1)
br label %137
83: ; preds = %78
%84 = tail call i32 @strncasecmp(i8* %58, i8* getelementptr inbounds ([7 x i8], [7 x i8]* @.str.10, i64 0, i64 0), i32 6)
%85 = icmp eq i32 %84, 0
br i1 %85, label %86, label %88
86: ; preds = %83
%87 = tail call i32 @Check_append_only(i32 %0, i8** %1)
br label %137
88: ; preds = %83
%89 = tail call i32 @strcmp(i8* dereferenceable(1) %58, i8* dereferenceable(7) getelementptr inbounds ([7 x i8], [7 x i8]* @.str.11, i64 0, i64 0))
%90 = icmp eq i32 %89, 0
br i1 %90, label %91, label %97
91: ; preds = %88
%92 = icmp eq i32 %0, 3
br i1 %92, label %137, label %93
93: ; preds = %91
%94 = load i8*, i8** %1
%95 = tail call i32 @PrintErrorExit(i8* %94, i8* getelementptr inbounds ([7 x i8], [7 x i8]* @.str.11, i64 0, i64 0))
%96 = load i8*, i8** %17
br label %97
97: ; preds = %93, %88
%98 = phi i8* [ %96, %93 ], [ %58, %88 ]
%99 = tail call i32 @strcmp(i8* dereferenceable(1) %98, i8* dereferenceable(8) getelementptr inbounds ([8 x i8], [8 x i8]* @.str.12, i64 0, i64 0))
%100 = icmp eq i32 %99, 0
br i1 %100, label %101, label %107
101: ; preds = %97
%102 = icmp eq i32 %0, 3
br i1 %102, label %137, label %103
103: ; preds = %101
%104 = load i8*, i8** %1
%105 = tail call i32 @PrintErrorExit(i8* %104, i8* getelementptr inbounds ([8 x i8], [8 x i8]* @.str.12, i64 0, i64 0))
%106 = load i8*, i8** %17
br label %107
107: ; preds = %103, %97
%108 = phi i8* [ %106, %103 ], [ %98, %97 ]
%109 = tail call i32 @strcmp(i8* dereferenceable(1) %108, i8* dereferenceable(5) getelementptr inbounds ([5 x i8], [5 x i8]* @.str.13, i64 0, i64 0))
%110 = icmp eq i32 %109, 0
br i1 %110, label %111, label %113
111: ; preds = %107
%112 = tail call i32 @Check_List(i32 %0, i8** %1)
br label %137
113: ; preds = %107
%114 = tail call i32 @strcmp(i8* dereferenceable(1) %108, i8* dereferenceable(6) getelementptr inbounds ([6 x i8], [6 x i8]* @.str.14, i64 0, i64 0))
%115 = icmp eq i32 %114, 0
br i1 %115, label %116, label %118
116: ; preds = %113
%117 = tail call i32 @Check_Empty(i32 %0, i8** %1)
br label %137
118: ; preds = %113
%119 = tail call i32 @strcmp(i8* dereferenceable(1) %108, i8* dereferenceable(5) getelementptr inbounds ([5 x i8], [5 x i8]* @.str.15, i64 0, i64 0))
%120 = icmp eq i32 %119, 0
br i1 %120, label %121, label %123
121: ; preds = %118
%122 = tail call i32 @Check_Open(i32 %0, i8** %1)
br label %137
123: ; preds = %118
%124 = tail call i32 @strcmp(i8* dereferenceable(1) %108, i8* dereferenceable(6) getelementptr inbounds ([6 x i8], [6 x i8]* @.str.16, i64 0, i64 0))
%125 = icmp eq i32 %124, 0
br i1 %125, label %126, label %128
126: ; preds = %123
%127 = tail call i32 @Check_Close(i32 %0, i8** %1)
br label %137
128: ; preds = %123
%129 = load i8*, i8** %1
%130 = tail call i32 @PrintErrorExit(i8* %129, i8* getelementptr inbounds ([12 x i8], [12 x i8]* @.str.17, i64 0, i64 0))
br label %131
131: ; preds = %128, %14
%132 = load i8*, i8** %1
%133 = tail call i32 @PrintErrorExit(i8* %132, i8* getelementptr inbounds ([1 x i8], [1 x i8]* @.str.18, i64 0, i64 0))
br label %134
134: ; preds = %131, %2
%135 = load i8*, i8** %1
%136 = tail call i32 @PrintErrorExit(i8* %135, i8* getelementptr inbounds ([1 x i8], [1 x i8]* @.str.18, i64 0, i64 0))
br label %137
137: ; preds = %101, %91, %51, %41, %31, %21, %134, %126, %121, %116, %111, %86, %81, %76, %71, %66, %61
ret void
}