#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_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*/ 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 *);
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 (!strcmp(argv[2], "TapeAlert")) {
        Check_TapeAlert(argc, argv);
        return;
      }
      if (!strcmp(argv[2], "load")) {
        Check_Load(argc, argv);
        return;
      }
      if (!strcmp(argv[2], "unload")) {
        Check_Unload(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    1502 <Check_Params+0x342>
mov    -0x10(%rbp),%rax
mov    0x8(%rax),%rdi
call   10b0 <isnumeric@plt>
cmp    $0x0,%eax
jne    1216 <Check_Params+0x56>
mov    0x2dea(%rip),%rax
mov    (%rax),%edi
mov    -0x10(%rbp),%rax
mov    0x8(%rax),%rdx
lea    0xdf9(%rip),%rsi
call   1090 <fprintf@plt>
mov    $0x1,%edi
call   10e0 <exit@plt>
cmpl   $0x2,-0x4(%rbp)
jle    14ef <Check_Params+0x32f>
mov    -0x10(%rbp),%rax
mov    0x10(%rax),%rdi
lea    0xdeb(%rip),%rsi
call   1070 <strcmp@plt>
cmp    $0x0,%eax
jne    125f <Check_Params+0x9f>
cmpl   $0x3,-0x4(%rbp)
jne    124c <Check_Params+0x8c>
jmp    1515 <Check_Params+0x355>
mov    -0x10(%rbp),%rax
mov    (%rax),%rdi
lea    0xdc0(%rip),%rsi
call   10c0 <PrintErrorExit@plt>
mov    -0x10(%rbp),%rax
mov    0x10(%rax),%rdi
lea    0xdb4(%rip),%rsi
call   1070 <strcmp@plt>
cmp    $0x0,%eax
jne    129e <Check_Params+0xde>
cmpl   $0x3,-0x4(%rbp)
jne    128b <Check_Params+0xcb>
jmp    1515 <Check_Params+0x355>
mov    -0x10(%rbp),%rax
mov    (%rax),%rdi
lea    0xd89(%rip),%rsi
call   10c0 <PrintErrorExit@plt>
mov    -0x10(%rbp),%rax
mov    0x10(%rax),%rdi
lea    0xd7a(%rip),%rsi
call   1070 <strcmp@plt>
cmp    $0x0,%eax
jne    12dd <Check_Params+0x11d>
cmpl   $0x3,-0x4(%rbp)
jne    12ca <Check_Params+0x10a>
jmp    1515 <Check_Params+0x355>
mov    -0x10(%rbp),%rax
mov    (%rax),%rdi
lea    0xd4f(%rip),%rsi
call   10c0 <PrintErrorExit@plt>
mov    -0x10(%rbp),%rax
mov    0x10(%rax),%rdi
lea    0xd41(%rip),%rsi
call   1070 <strcmp@plt>
cmp    $0x0,%eax
jne    131c <Check_Params+0x15c>
cmpl   $0x3,-0x4(%rbp)
jne    1309 <Check_Params+0x149>
jmp    1515 <Check_Params+0x355>
mov    -0x10(%rbp),%rax
mov    (%rax),%rdi
lea    0xd16(%rip),%rsi
call   10c0 <PrintErrorExit@plt>
mov    -0x10(%rbp),%rax
mov    0x10(%rax),%rdi
lea    0xd07(%rip),%rsi
call   1070 <strcmp@plt>
cmp    $0x0,%eax
jne    134a <Check_Params+0x18a>
mov    -0x4(%rbp),%edi
mov    -0x10(%rbp),%rsi
call   1030 <Check_TapeAlert@plt>
jmp    1515 <Check_Params+0x355>
mov    -0x10(%rbp),%rax
mov    0x10(%rax),%rdi
lea    0xce5(%rip),%rsi
call   1070 <strcmp@plt>
cmp    $0x0,%eax
jne    1378 <Check_Params+0x1b8>
mov    -0x4(%rbp),%edi
mov    -0x10(%rbp),%rsi
call   1040 <Check_Load@plt>
jmp    1515 <Check_Params+0x355>
mov    -0x10(%rbp),%rax
mov    0x10(%rax),%rdi
lea    0xcb5(%rip),%rsi
call   1070 <strcmp@plt>
cmp    $0x0,%eax
jne    13a6 <Check_Params+0x1e6>
mov    -0x4(%rbp),%edi
mov    -0x10(%rbp),%rsi
call   1080 <Check_Unload@plt>
jmp    1515 <Check_Params+0x355>
mov    -0x10(%rbp),%rax
mov    0x10(%rax),%rdi
lea    0xc8e(%rip),%rsi
call   1070 <strcmp@plt>
cmp    $0x0,%eax
jne    13e5 <Check_Params+0x225>
cmpl   $0x3,-0x4(%rbp)
jne    13d2 <Check_Params+0x212>
jmp    1515 <Check_Params+0x355>
mov    -0x10(%rbp),%rax
mov    (%rax),%rdi
lea    0xc63(%rip),%rsi
call   10c0 <PrintErrorExit@plt>
mov    -0x10(%rbp),%rax
mov    0x10(%rax),%rdi
lea    0xc56(%rip),%rsi
call   1070 <strcmp@plt>
cmp    $0x0,%eax
jne    1424 <Check_Params+0x264>
cmpl   $0x3,-0x4(%rbp)
jne    1411 <Check_Params+0x251>
jmp    1515 <Check_Params+0x355>
mov    -0x10(%rbp),%rax
mov    (%rax),%rdi
lea    0xc2b(%rip),%rsi
call   10c0 <PrintErrorExit@plt>
mov    -0x10(%rbp),%rax
mov    0x10(%rax),%rdi
lea    0xc1f(%rip),%rsi
call   1070 <strcmp@plt>
cmp    $0x0,%eax
jne    1452 <Check_Params+0x292>
mov    -0x4(%rbp),%edi
mov    -0x10(%rbp),%rsi
call   1060 <Check_List@plt>
jmp    1515 <Check_Params+0x355>
mov    -0x10(%rbp),%rax
mov    0x10(%rax),%rdi
lea    0xbf6(%rip),%rsi
call   1070 <strcmp@plt>
cmp    $0x0,%eax
jne    1480 <Check_Params+0x2c0>
mov    -0x4(%rbp),%edi
mov    -0x10(%rbp),%rsi
call   10d0 <Check_Empty@plt>
jmp    1515 <Check_Params+0x355>
mov    -0x10(%rbp),%rax
mov    0x10(%rax),%rdi
lea    0xbce(%rip),%rsi
call   1070 <strcmp@plt>
cmp    $0x0,%eax
jne    14ae <Check_Params+0x2ee>
mov    -0x4(%rbp),%edi
mov    -0x10(%rbp),%rsi
call   10a0 <Check_Open@plt>
jmp    1515 <Check_Params+0x355>
mov    -0x10(%rbp),%rax
mov    0x10(%rax),%rdi
lea    0xba5(%rip),%rsi
call   1070 <strcmp@plt>
cmp    $0x0,%eax
jne    14dc <Check_Params+0x31c>
mov    -0x4(%rbp),%edi
mov    -0x10(%rbp),%rsi
call   1050 <Check_Close@plt>
jmp    1515 <Check_Params+0x355>
mov    -0x10(%rbp),%rax
mov    (%rax),%rdi
lea    0xb7e(%rip),%rsi
call   10c0 <PrintErrorExit@plt>
mov    -0x10(%rbp),%rax
mov    (%rax),%rdi
lea    0xb1c(%rip),%rsi
call   10c0 <PrintErrorExit@plt>
mov    -0x10(%rbp),%rax
mov    (%rax),%rdi
lea    0xb09(%rip),%rsi
call   10c0 <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     13be <Check_Params+0x1fe>
mov    %edi,%ebp
mov    0x8(%rbx),%rdi
call   10b0 <isnumeric@plt>
test   %eax,%eax
je     1433 <Check_Params+0x273>
cmp    $0x3,%ebp
jb     13af <Check_Params+0x1ef>
mov    0x10(%rbx),%r14
lea    0xe23(%rip),%rsi
mov    %r14,%rdi
call   1070 <strcmp@plt>
test   %eax,%eax
jne    121f <Check_Params+0x5f>
cmp    $0x3,%ebp
je     128d <Check_Params+0xcd>
mov    (%rbx),%rdi
lea    0xe04(%rip),%rsi
call   10c0 <PrintErrorExit@plt>
mov    0x10(%rbx),%r14
lea    0xdfc(%rip),%rsi
mov    %r14,%rdi
call   1070 <strcmp@plt>
test   %eax,%eax
jne    124a <Check_Params+0x8a>
cmp    $0x3,%ebp
je     128d <Check_Params+0xcd>
mov    (%rbx),%rdi
lea    0xde1(%rip),%rsi
call   10c0 <PrintErrorExit@plt>
mov    0x10(%rbx),%r14
lea    0xdd6(%rip),%rsi
mov    %r14,%rdi
call   1070 <strcmp@plt>
test   %eax,%eax
jne    1275 <Check_Params+0xb5>
cmp    $0x3,%ebp
je     128d <Check_Params+0xcd>
mov    (%rbx),%rdi
lea    0xdbb(%rip),%rsi
call   10c0 <PrintErrorExit@plt>
mov    0x10(%rbx),%r14
lea    0xdb1(%rip),%rsi
mov    %r14,%rdi
call   1070 <strcmp@plt>
test   %eax,%eax
jne    12a5 <Check_Params+0xe5>
cmp    $0x3,%ebp
jne    1292 <Check_Params+0xd2>
pop    %rbx
pop    %r14
pop    %rbp
ret
mov    (%rbx),%rdi
lea    0xd91(%rip),%rsi
call   10c0 <PrintErrorExit@plt>
mov    0x10(%rbx),%r14
lea    0xd86(%rip),%rsi
mov    %r14,%rdi
call   1070 <strcmp@plt>
test   %eax,%eax
je     13d1 <Check_Params+0x211>
lea    0xd7b(%rip),%rsi
mov    %r14,%rdi
call   1070 <strcmp@plt>
test   %eax,%eax
je     13df <Check_Params+0x21f>
lea    0xd62(%rip),%rsi
mov    %r14,%rdi
call   1070 <strcmp@plt>
test   %eax,%eax
je     13ed <Check_Params+0x22d>
lea    0xd52(%rip),%rsi
mov    %r14,%rdi
call   1070 <strcmp@plt>
test   %eax,%eax
jne    1315 <Check_Params+0x155>
cmp    $0x3,%ebp
je     128d <Check_Params+0xcd>
mov    (%rbx),%rdi
lea    0xd37(%rip),%rsi
call   10c0 <PrintErrorExit@plt>
mov    0x10(%rbx),%r14
lea    0xd2e(%rip),%rsi
mov    %r14,%rdi
call   1070 <strcmp@plt>
test   %eax,%eax
jne    1344 <Check_Params+0x184>
cmp    $0x3,%ebp
je     128d <Check_Params+0xcd>
mov    (%rbx),%rdi
lea    0xd0f(%rip),%rsi
call   10c0 <PrintErrorExit@plt>
mov    0x10(%rbx),%r14
lea    0xd07(%rip),%rsi
mov    %r14,%rdi
call   1070 <strcmp@plt>
test   %eax,%eax
je     13fb <Check_Params+0x23b>
lea    0xcf5(%rip),%rsi
mov    %r14,%rdi
call   1070 <strcmp@plt>
test   %eax,%eax
je     1409 <Check_Params+0x249>
lea    0xce4(%rip),%rsi
mov    %r14,%rdi
call   1070 <strcmp@plt>
test   %eax,%eax
je     1417 <Check_Params+0x257>
lea    0xcd2(%rip),%rsi
mov    %r14,%rdi
call   1070 <strcmp@plt>
test   %eax,%eax
je     1425 <Check_Params+0x265>
mov    (%rbx),%rdi
lea    0xcbe(%rip),%rsi
call   10c0 <PrintErrorExit@plt>
mov    (%rbx),%rdi
lea    0xc60(%rip),%rsi
call   10c0 <PrintErrorExit@plt>
mov    (%rbx),%rdi
lea    0xc51(%rip),%rsi
pop    %rbx
pop    %r14
pop    %rbp
jmp    10c0 <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    1040 <Check_Load@plt>
mov    %ebp,%edi
mov    %rbx,%rsi
pop    %rbx
pop    %r14
pop    %rbp
jmp    1080 <Check_Unload@plt>
mov    %ebp,%edi
mov    %rbx,%rsi
pop    %rbx
pop    %r14
pop    %rbp
jmp    1060 <Check_List@plt>
mov    %ebp,%edi
mov    %rbx,%rsi
pop    %rbx
pop    %r14
pop    %rbp
jmp    10d0 <Check_Empty@plt>
mov    %ebp,%edi
mov    %rbx,%rsi
pop    %rbx
pop    %r14
pop    %rbp
jmp    10a0 <Check_Open@plt>
mov    %ebp,%edi
mov    %rbx,%rsi
pop    %rbx
pop    %r14
pop    %rbp
jmp    1050 <Check_Close@plt>
mov    0x2ba6(%rip),%rax
mov    (%rax),%edi
mov    0x8(%rbx),%rdx
lea    0xbb9(%rip),%rsi
call   1090 <fprintf@plt>
mov    $0x1,%edi
call   10e0 <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 = [7 x i8] c"online\00"
@.str.9 = [8 x i8] c"offline\00"
@.str.10 = [5 x i8] c"list\00"
@.str.11 = [6 x i8] c"empty\00"
@.str.12 = [5 x i8] c"open\00"
@.str.13 = [6 x i8] c"close\00"
@.str.14 = [12 x i8] c"check param\00"
@.str.15 = [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 %193
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 %188
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 %198
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 %198
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 %198
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 %198
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 @strcmp(i8* %86, i8* getelementptr inbounds ([10 x i8], [10 x i8]* @.str.5, i64 0, i64 0))
%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 %198
93: ; preds = %83
%94 = load i8**, i8*** %4
%95 = getelementptr inbounds i8*, i8** %94, i64 2
%96 = load i8*, i8** %95
%97 = call i32 @strcmp(i8* %96, i8* getelementptr inbounds ([5 x i8], [5 x i8]* @.str.6, i64 0, i64 0))
%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 %198
103: ; preds = %93
%104 = load i8**, i8*** %4
%105 = getelementptr inbounds i8*, i8** %104, i64 2
%106 = load i8*, i8** %105
%107 = call i32 @strcmp(i8* %106, i8* getelementptr inbounds ([7 x i8], [7 x i8]* @.str.7, i64 0, i64 0))
%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 %198
113: ; preds = %103
%114 = load i8**, i8*** %4
%115 = getelementptr inbounds i8*, i8** %114, i64 2
%116 = load i8*, i8** %115
%117 = call i32 @strcmp(i8* %116, i8* getelementptr inbounds ([7 x i8], [7 x i8]* @.str.8, i64 0, i64 0))
%118 = icmp ne i32 %117, 0
br i1 %118, label %128, label %119
119: ; preds = %113
%120 = load i32, i32* %3
%121 = icmp eq i32 %120, 3
br i1 %121, label %122, label %123
122: ; preds = %119
br label %198
123: ; preds = %119
%124 = load i8**, i8*** %4
%125 = getelementptr inbounds i8*, i8** %124, i64 0
%126 = load i8*, i8** %125
%127 = call i32 @PrintErrorExit(i8* %126, i8* getelementptr inbounds ([7 x i8], [7 x i8]* @.str.8, i64 0, i64 0))
br label %128
128: ; preds = %123, %113
%129 = load i8**, i8*** %4
%130 = getelementptr inbounds i8*, i8** %129, i64 2
%131 = load i8*, i8** %130
%132 = call i32 @strcmp(i8* %131, i8* getelementptr inbounds ([8 x i8], [8 x i8]* @.str.9, i64 0, i64 0))
%133 = icmp ne i32 %132, 0
br i1 %133, label %143, label %134
134: ; preds = %128
%135 = load i32, i32* %3
%136 = icmp eq i32 %135, 3
br i1 %136, label %137, label %138
137: ; preds = %134
br label %198
138: ; preds = %134
%139 = load i8**, i8*** %4
%140 = getelementptr inbounds i8*, i8** %139, i64 0
%141 = load i8*, i8** %140
%142 = call i32 @PrintErrorExit(i8* %141, i8* getelementptr inbounds ([8 x i8], [8 x i8]* @.str.9, i64 0, i64 0))
br label %143
143: ; preds = %138, %128
%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 ([5 x i8], [5 x i8]* @.str.10, i64 0, i64 0))
%148 = icmp ne i32 %147, 0
br i1 %148, label %153, label %149
149: ; preds = %143
%150 = load i32, i32* %3
%151 = load i8**, i8*** %4
%152 = call i32 @Check_List(i32 %150, i8** %151)
br label %198
153: ; preds = %143
%154 = load i8**, i8*** %4
%155 = getelementptr inbounds i8*, i8** %154, i64 2
%156 = load i8*, i8** %155
%157 = call i32 @strcmp(i8* %156, i8* getelementptr inbounds ([6 x i8], [6 x i8]* @.str.11, i64 0, i64 0))
%158 = icmp ne i32 %157, 0
br i1 %158, label %163, label %159
159: ; preds = %153
%160 = load i32, i32* %3
%161 = load i8**, i8*** %4
%162 = call i32 @Check_Empty(i32 %160, i8** %161)
br label %198
163: ; preds = %153
%164 = load i8**, i8*** %4
%165 = getelementptr inbounds i8*, i8** %164, i64 2
%166 = load i8*, i8** %165
%167 = call i32 @strcmp(i8* %166, i8* getelementptr inbounds ([5 x i8], [5 x i8]* @.str.12, i64 0, i64 0))
%168 = icmp ne i32 %167, 0
br i1 %168, label %173, label %169
169: ; preds = %163
%170 = load i32, i32* %3
%171 = load i8**, i8*** %4
%172 = call i32 @Check_Open(i32 %170, i8** %171)
br label %198
173: ; preds = %163
%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 ([6 x i8], [6 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_Close(i32 %180, i8** %181)
br label %198
183: ; preds = %173
%184 = load i8**, i8*** %4
%185 = getelementptr inbounds i8*, i8** %184, i64 0
%186 = load i8*, i8** %185
%187 = call i32 @PrintErrorExit(i8* %186, i8* getelementptr inbounds ([12 x i8], [12 x i8]* @.str.14, i64 0, i64 0))
br label %188
188: ; preds = %183, %20
%189 = load i8**, i8*** %4
%190 = getelementptr inbounds i8*, i8** %189, i64 0
%191 = load i8*, i8** %190
%192 = call i32 @PrintErrorExit(i8* %191, i8* getelementptr inbounds ([1 x i8], [1 x i8]* @.str.15, i64 0, i64 0))
br label %193
193: ; preds = %188, %2
%194 = load i8**, i8*** %4
%195 = getelementptr inbounds i8*, i8** %194, i64 0
%196 = load i8*, i8** %195
%197 = call i32 @PrintErrorExit(i8* %196, i8* getelementptr inbounds ([1 x i8], [1 x i8]* @.str.15, i64 0, i64 0))
br label %198
198: ; preds = %193, %179, %169, %159, %149, %137, %122, %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 = [7 x i8] c"online\00"
@.str.9 = [8 x i8] c"offline\00"
@.str.10 = [5 x i8] c"list\00"
@.str.11 = [6 x i8] c"empty\00"
@.str.12 = [5 x i8] c"open\00"
@.str.13 = [6 x i8] c"close\00"
@.str.14 = [12 x i8] c"check param\00"
@.str.15 = [1 x i8] zeroinitializer
define void @Check_Params(i32 %0, i8** %1) {
%3 = icmp sgt i32 %0, 1
br i1 %3, label %4, label %119
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 %116
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 %122, 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 %122, 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 %122, 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 %122, 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 @strcmp(i8* dereferenceable(1) %58, i8* dereferenceable(10) getelementptr inbounds ([10 x i8], [10 x i8]* @.str.5, i64 0, i64 0))
%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 %122
63: ; preds = %57
%64 = tail call i32 @strcmp(i8* dereferenceable(1) %58, i8* dereferenceable(5) getelementptr inbounds ([5 x i8], [5 x i8]* @.str.6, i64 0, i64 0))
%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 %122
68: ; preds = %63
%69 = tail call i32 @strcmp(i8* dereferenceable(1) %58, i8* dereferenceable(7) getelementptr inbounds ([7 x i8], [7 x i8]* @.str.7, i64 0, i64 0))
%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 %122
73: ; preds = %68
%74 = tail call i32 @strcmp(i8* dereferenceable(1) %58, i8* dereferenceable(7) getelementptr inbounds ([7 x i8], [7 x i8]* @.str.8, i64 0, i64 0))
%75 = icmp eq i32 %74, 0
br i1 %75, label %76, label %82
76: ; preds = %73
%77 = icmp eq i32 %0, 3
br i1 %77, label %122, label %78
78: ; preds = %76
%79 = load i8*, i8** %1
%80 = tail call i32 @PrintErrorExit(i8* %79, i8* getelementptr inbounds ([7 x i8], [7 x i8]* @.str.8, i64 0, i64 0))
%81 = load i8*, i8** %17
br label %82
82: ; preds = %78, %73
%83 = phi i8* [ %81, %78 ], [ %58, %73 ]
%84 = tail call i32 @strcmp(i8* dereferenceable(1) %83, i8* dereferenceable(8) getelementptr inbounds ([8 x i8], [8 x i8]* @.str.9, i64 0, i64 0))
%85 = icmp eq i32 %84, 0
br i1 %85, label %86, label %92
86: ; preds = %82
%87 = icmp eq i32 %0, 3
br i1 %87, label %122, label %88
88: ; preds = %86
%89 = load i8*, i8** %1
%90 = tail call i32 @PrintErrorExit(i8* %89, i8* getelementptr inbounds ([8 x i8], [8 x i8]* @.str.9, i64 0, i64 0))
%91 = load i8*, i8** %17
br label %92
92: ; preds = %88, %82
%93 = phi i8* [ %91, %88 ], [ %83, %82 ]
%94 = tail call i32 @strcmp(i8* dereferenceable(1) %93, i8* dereferenceable(5) getelementptr inbounds ([5 x i8], [5 x i8]* @.str.10, i64 0, i64 0))
%95 = icmp eq i32 %94, 0
br i1 %95, label %96, label %98
96: ; preds = %92
%97 = tail call i32 @Check_List(i32 %0, i8** %1)
br label %122
98: ; preds = %92
%99 = tail call i32 @strcmp(i8* dereferenceable(1) %93, i8* dereferenceable(6) getelementptr inbounds ([6 x i8], [6 x i8]* @.str.11, i64 0, i64 0))
%100 = icmp eq i32 %99, 0
br i1 %100, label %101, label %103
101: ; preds = %98
%102 = tail call i32 @Check_Empty(i32 %0, i8** %1)
br label %122
103: ; preds = %98
%104 = tail call i32 @strcmp(i8* dereferenceable(1) %93, i8* dereferenceable(5) getelementptr inbounds ([5 x i8], [5 x i8]* @.str.12, i64 0, i64 0))
%105 = icmp eq i32 %104, 0
br i1 %105, label %106, label %108
106: ; preds = %103
%107 = tail call i32 @Check_Open(i32 %0, i8** %1)
br label %122
108: ; preds = %103
%109 = tail call i32 @strcmp(i8* dereferenceable(1) %93, i8* dereferenceable(6) getelementptr inbounds ([6 x i8], [6 x i8]* @.str.13, i64 0, i64 0))
%110 = icmp eq i32 %109, 0
br i1 %110, label %111, label %113
111: ; preds = %108
%112 = tail call i32 @Check_Close(i32 %0, i8** %1)
br label %122
113: ; preds = %108
%114 = load i8*, i8** %1
%115 = tail call i32 @PrintErrorExit(i8* %114, i8* getelementptr inbounds ([12 x i8], [12 x i8]* @.str.14, i64 0, i64 0))
br label %116
116: ; preds = %113, %14
%117 = load i8*, i8** %1
%118 = tail call i32 @PrintErrorExit(i8* %117, i8* getelementptr inbounds ([1 x i8], [1 x i8]* @.str.15, i64 0, i64 0))
br label %119
119: ; preds = %116, %2
%120 = load i8*, i8** %1
%121 = tail call i32 @PrintErrorExit(i8* %120, i8* getelementptr inbounds ([1 x i8], [1 x i8]* @.str.15, i64 0, i64 0))
br label %122
122: ; preds = %86, %76, %51, %41, %31, %21, %119, %111, %106, %101, %96, %71, %66, %61
ret void
}