#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*/ printf(char *);
void usage(int option) {
  switch (option) {
  case 0:
    printf("===================== Welcome to use biodiff! "
           "=====================\n");
    printf("  1. Usage: biodiff -c -a ca1,ca2 -b cb1,cb2 file_A file_B 	"
           "	   \n");
    printf("  2. Usage: biodiff -n -a ca -b cb file_A file_B [sprt] [sprt]     "
           "\n");
    printf("-------------------------------------------------------------------"
           "\n");
    printf("  > * [-c] refers to coordinate-based comparation;                 "
           "\n");
    printf("  > * [-n] refers to name-based comparation;                       "
           "\n");
    printf("  > * ca1/ca2/cb1/cb2/ca/cb refer to columns you select;           "
           "\n");
    printf("  > * In [-n] mode you onlu need to select one column;             "
           "\n");
    printf("  > * In [-c] mode 2 columns separated by ',' are required;        "
           "\n");
    printf("  > * In [-n] mode two separators are optional (default: tab);     "
           "\n");
    printf("  > * In [-n] the first separator is linked to file_A;             "
           "\n");
    printf("  > * In [-n] the second separator is linked to file_B;            "
           "\n");
    printf("  > * Here 'overlap' is defined as 'totally equal';                "
           "\n");
    printf("==================================================================="
           "\n");
    break;
  case 1:
    printf(
        "Usage: biodiff [-c/-n] -a [numbers,] -b [numbers,] file_A file_B\n");
    break;
  case 2:
    printf("Error: only a single number following [-a] and [-b] is valid\n");
    break;
  case 3:
    printf("Error: cannot open file_A, please check the file name\n");
    break;
  case 4:
    printf("Error: cannot open file_B, please check the file name\n");
    break;
  case 5:
    printf("Error: cannot generate output files due to some reasons...\n");
    break;
  case 6:
    printf("Error: you should select 2 columns (ex. 3,4), and their order does "
           "counts\n");
    printf("Warning: only first 2 columns will be calculated if you select 3 "
           "or more (ex. 3,4,5)\n");
    break;
  default:;
  }
}


x86 assembly (clang, -O0):
<usage>:
push   %rbp
mov    %rsp,%rbp
sub    $0x10,%rsp
mov    %edi,-0x4(%rbp)
mov    -0x4(%rbp),%eax
mov    %rax,-0x10(%rbp)
sub    $0x6,%rax
ja     125f <usage+0x14f>
mov    -0x10(%rbp),%rax
lea    0xec9(%rip),%rcx
movslq (%rcx,%rax,4),%rax
add    %rcx,%rax
jmp    *%rax
lea    0xed5(%rip),%rdi
call   1030 <printf@plt>
lea    0xf0e(%rip),%rdi
call   1030 <printf@plt>
lea    0xf44(%rip),%rdi
call   1030 <printf@plt>
lea    0xf7d(%rip),%rdi
call   1030 <printf@plt>
lea    0xfb6(%rip),%rdi
call   1030 <printf@plt>
lea    0xfef(%rip),%rdi
call   1030 <printf@plt>
lea    0x1028(%rip),%rdi
call   1030 <printf@plt>
lea    0x1061(%rip),%rdi
call   1030 <printf@plt>
lea    0x109a(%rip),%rdi
call   1030 <printf@plt>
lea    0x10d3(%rip),%rdi
call   1030 <printf@plt>
lea    0x110c(%rip),%rdi
call   1030 <printf@plt>
lea    0x1145(%rip),%rdi
call   1030 <printf@plt>
lea    0x117e(%rip),%rdi
call   1030 <printf@plt>
lea    0x11b7(%rip),%rdi
call   1030 <printf@plt>
jmp    1264 <usage+0x154>
lea    0x11eb(%rip),%rdi
call   1030 <printf@plt>
jmp    1264 <usage+0x154>
lea    0x121c(%rip),%rdi
call   1030 <printf@plt>
jmp    1264 <usage+0x154>
lea    0x1249(%rip),%rdi
call   1030 <printf@plt>
jmp    1264 <usage+0x154>
lea    0x126f(%rip),%rdi
call   1030 <printf@plt>
jmp    1264 <usage+0x154>
lea    0x1295(%rip),%rdi
call   1030 <printf@plt>
jmp    1264 <usage+0x154>
lea    0x12c0(%rip),%rdi
call   1030 <printf@plt>
lea    0x12ff(%rip),%rdi
call   1030 <printf@plt>
jmp    1264 <usage+0x154>
jmp    1264 <usage+0x154>
add    $0x10,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<usage>:
cmp    $0x6,%edi
ja     11de <usage+0xce>
push   %rax
mov    %edi,%eax
lea    0x107c(%rip),%rdi
mov    %eax,%eax
lea    0xed4(%rip),%rcx
movslq (%rcx,%rax,4),%rax
add    %rcx,%rax
jmp    *%rax
lea    0x10a4(%rip),%rdi
call   1030 <puts@plt>
lea    0x10dc(%rip),%rdi
call   1030 <puts@plt>
lea    0x1111(%rip),%rdi
call   1030 <puts@plt>
lea    0x1149(%rip),%rdi
call   1030 <puts@plt>
lea    0x1181(%rip),%rdi
call   1030 <puts@plt>
lea    0x11b9(%rip),%rdi
call   1030 <puts@plt>
lea    0x11f1(%rip),%rdi
call   1030 <puts@plt>
lea    0x1229(%rip),%rdi
call   1030 <puts@plt>
lea    0x1261(%rip),%rdi
call   1030 <puts@plt>
lea    0x1299(%rip),%rdi
call   1030 <puts@plt>
lea    0x12d1(%rip),%rdi
call   1030 <puts@plt>
lea    0x1309(%rip),%rdi
call   1030 <puts@plt>
lea    0x1341(%rip),%rdi
call   1030 <puts@plt>
lea    0x1379(%rip),%rdi
pop    %rax
jmp    1030 <puts@plt>
ret
lea    0xf7c(%rip),%rdi
pop    %rax
jmp    1030 <puts@plt>
lea    0xf39(%rip),%rdi
pop    %rax
jmp    1030 <puts@plt>
lea    0xef6(%rip),%rdi
pop    %rax
jmp    1030 <puts@plt>
lea    0xeae(%rip),%rdi
pop    %rax
jmp    1030 <puts@plt>
lea    0xe02(%rip),%rdi
call   1030 <puts@plt>
lea    0xe40(%rip),%rdi
pop    %rax
jmp    1030 <puts@plt>

LLVM IR (-O0):
@.str = [69 x i8] c"===================== Welcome to use biodiff! =====================\0A\00"
@.str.1 = [66 x i8] c" 1. Usage: biodiff -c -a ca1,ca2 -b cb1,cb2 file_A file_B \09\09 \0A\00"
@.str.2 = [69 x i8] c" 2. Usage: biodiff -n -a ca -b cb file_A file_B [sprt] [sprt] \0A\00"
@.str.3 = [69 x i8] c"-------------------------------------------------------------------\0A\00"
@.str.4 = [69 x i8] c" > * [-c] refers to coordinate-based comparation; \0A\00"
@.str.5 = [69 x i8] c" > * [-n] refers to name-based comparation; \0A\00"
@.str.6 = [69 x i8] c" > * ca1/ca2/cb1/cb2/ca/cb refer to columns you select; \0A\00"
@.str.7 = [69 x i8] c" > * In [-n] mode you onlu need to select one column; \0A\00"
@.str.8 = [69 x i8] c" > * In [-c] mode 2 columns separated by ',' are required; \0A\00"
@.str.9 = [69 x i8] c" > * In [-n] mode two separators are optional (default: tab); \0A\00"
@.str.10 = [69 x i8] c" > * In [-n] the first separator is linked to file_A; \0A\00"
@.str.11 = [69 x i8] c" > * In [-n] the second separator is linked to file_B; \0A\00"
@.str.12 = [69 x i8] c" > * Here 'overlap' is defined as 'totally equal'; \0A\00"
@.str.13 = [69 x i8] c"===================================================================\0A\00"
@.str.14 = [66 x i8] c"Usage: biodiff [-c/-n] -a [numbers,] -b [numbers,] file_A file_B\0A\00"
@.str.15 = [62 x i8] c"Error: only a single number following [-a] and [-b] is valid\0A\00"
@.str.16 = [55 x i8] c"Error: cannot open file_A, please check the file name\0A\00"
@.str.17 = [55 x i8] c"Error: cannot open file_B, please check the file name\0A\00"
@.str.18 = [60 x i8] c"Error: cannot generate output files due to some reasons...\0A\00"
@.str.19 = [75 x i8] c"Error: you should select 2 columns (ex. 3,4), and their order does counts\0A\00"
@.str.20 = [86 x i8] c"Warning: only first 2 columns will be calculated if you select 3 or more (ex. 3,4,5)\0A\00"
define void @usage(i32 %0) {
%2 = alloca i32
store i32 %0, i32* %2
%3 = load i32, i32* %2
switch i32 %3, label %32 [
i32 0, label %4
i32 1, label %19
i32 2, label %21
i32 3, label %23
i32 4, label %25
i32 5, label %27
i32 6, label %29
]
4: ; preds = %1
%5 = call i32 @printf(i8* getelementptr inbounds ([69 x i8], [69 x i8]* @.str, i64 0, i64 0))
%6 = call i32 @printf(i8* getelementptr inbounds ([66 x i8], [66 x i8]* @.str.1, i64 0, i64 0))
%7 = call i32 @printf(i8* getelementptr inbounds ([69 x i8], [69 x i8]* @.str.2, i64 0, i64 0))
%8 = call i32 @printf(i8* getelementptr inbounds ([69 x i8], [69 x i8]* @.str.3, i64 0, i64 0))
%9 = call i32 @printf(i8* getelementptr inbounds ([69 x i8], [69 x i8]* @.str.4, i64 0, i64 0))
%10 = call i32 @printf(i8* getelementptr inbounds ([69 x i8], [69 x i8]* @.str.5, i64 0, i64 0))
%11 = call i32 @printf(i8* getelementptr inbounds ([69 x i8], [69 x i8]* @.str.6, i64 0, i64 0))
%12 = call i32 @printf(i8* getelementptr inbounds ([69 x i8], [69 x i8]* @.str.7, i64 0, i64 0))
%13 = call i32 @printf(i8* getelementptr inbounds ([69 x i8], [69 x i8]* @.str.8, i64 0, i64 0))
%14 = call i32 @printf(i8* getelementptr inbounds ([69 x i8], [69 x i8]* @.str.9, i64 0, i64 0))
%15 = call i32 @printf(i8* getelementptr inbounds ([69 x i8], [69 x i8]* @.str.10, i64 0, i64 0))
%16 = call i32 @printf(i8* getelementptr inbounds ([69 x i8], [69 x i8]* @.str.11, i64 0, i64 0))
%17 = call i32 @printf(i8* getelementptr inbounds ([69 x i8], [69 x i8]* @.str.12, i64 0, i64 0))
%18 = call i32 @printf(i8* getelementptr inbounds ([69 x i8], [69 x i8]* @.str.13, i64 0, i64 0))
br label %33
19: ; preds = %1
%20 = call i32 @printf(i8* getelementptr inbounds ([66 x i8], [66 x i8]* @.str.14, i64 0, i64 0))
br label %33
21: ; preds = %1
%22 = call i32 @printf(i8* getelementptr inbounds ([62 x i8], [62 x i8]* @.str.15, i64 0, i64 0))
br label %33
23: ; preds = %1
%24 = call i32 @printf(i8* getelementptr inbounds ([55 x i8], [55 x i8]* @.str.16, i64 0, i64 0))
br label %33
25: ; preds = %1
%26 = call i32 @printf(i8* getelementptr inbounds ([55 x i8], [55 x i8]* @.str.17, i64 0, i64 0))
br label %33
27: ; preds = %1
%28 = call i32 @printf(i8* getelementptr inbounds ([60 x i8], [60 x i8]* @.str.18, i64 0, i64 0))
br label %33
29: ; preds = %1
%30 = call i32 @printf(i8* getelementptr inbounds ([75 x i8], [75 x i8]* @.str.19, i64 0, i64 0))
%31 = call i32 @printf(i8* getelementptr inbounds ([86 x i8], [86 x i8]* @.str.20, i64 0, i64 0))
br label %33
32: ; preds = %1
br label %33
33: ; preds = %32, %29, %27, %25, %23, %21, %19, %4
ret void
}

LLVM IR (-O2):
@str = [74 x i8] c"Error: you should select 2 columns (ex. 3,4), and their order does counts\00"
@str.21 = [85 x i8] c"Warning: only first 2 columns will be calculated if you select 3 or more (ex. 3,4,5)\00"
@str.22 = [59 x i8] c"Error: cannot generate output files due to some reasons...\00"
@str.23 = [54 x i8] c"Error: cannot open file_B, please check the file name\00"
@str.24 = [54 x i8] c"Error: cannot open file_A, please check the file name\00"
@str.25 = [61 x i8] c"Error: only a single number following [-a] and [-b] is valid\00"
@str.26 = [65 x i8] c"Usage: biodiff [-c/-n] -a [numbers,] -b [numbers,] file_A file_B\00"
@str.27 = [68 x i8] c"===================== Welcome to use biodiff! =====================\00"
@str.28 = [65 x i8] c" 1. Usage: biodiff -c -a ca1,ca2 -b cb1,cb2 file_A file_B \09\09 \00"
@str.29 = [68 x i8] c" 2. Usage: biodiff -n -a ca -b cb file_A file_B [sprt] [sprt] \00"
@str.30 = [68 x i8] c"-------------------------------------------------------------------\00"
@str.31 = [68 x i8] c" > * [-c] refers to coordinate-based comparation; \00"
@str.32 = [68 x i8] c" > * [-n] refers to name-based comparation; \00"
@str.33 = [68 x i8] c" > * ca1/ca2/cb1/cb2/ca/cb refer to columns you select; \00"
@str.34 = [68 x i8] c" > * In [-n] mode you onlu need to select one column; \00"
@str.35 = [68 x i8] c" > * In [-c] mode 2 columns separated by ',' are required; \00"
@str.36 = [68 x i8] c" > * In [-n] mode two separators are optional (default: tab); \00"
@str.37 = [68 x i8] c" > * In [-n] the first separator is linked to file_A; \00"
@str.38 = [68 x i8] c" > * In [-n] the second separator is linked to file_B; \00"
@str.39 = [68 x i8] c" > * Here 'overlap' is defined as 'totally equal'; \00"
@str.40 = [68 x i8] c"===================================================================\00"
define void @usage(i32 %0) {
switch i32 %0, label %25 [
i32 0, label %2
i32 1, label %22
i32 2, label %16
i32 3, label %17
i32 4, label %18
i32 5, label %19
i32 6, label %20
]
2: ; preds = %1
%3 = tail call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([68 x i8], [68 x i8]* @str.27, i64 0, i64 0))
%4 = tail call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([65 x i8], [65 x i8]* @str.28, i64 0, i64 0))
%5 = tail call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([68 x i8], [68 x i8]* @str.29, i64 0, i64 0))
%6 = tail call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([68 x i8], [68 x i8]* @str.30, i64 0, i64 0))
%7 = tail call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([68 x i8], [68 x i8]* @str.31, i64 0, i64 0))
%8 = tail call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([68 x i8], [68 x i8]* @str.32, i64 0, i64 0))
%9 = tail call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([68 x i8], [68 x i8]* @str.33, i64 0, i64 0))
%10 = tail call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([68 x i8], [68 x i8]* @str.34, i64 0, i64 0))
%11 = tail call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([68 x i8], [68 x i8]* @str.35, i64 0, i64 0))
%12 = tail call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([68 x i8], [68 x i8]* @str.36, i64 0, i64 0))
%13 = tail call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([68 x i8], [68 x i8]* @str.37, i64 0, i64 0))
%14 = tail call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([68 x i8], [68 x i8]* @str.38, i64 0, i64 0))
%15 = tail call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([68 x i8], [68 x i8]* @str.39, i64 0, i64 0))
br label %22
16: ; preds = %1
br label %22
17: ; preds = %1
br label %22
18: ; preds = %1
br label %22
19: ; preds = %1
br label %22
20: ; preds = %1
%21 = tail call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([74 x i8], [74 x i8]* @str, i64 0, i64 0))
br label %22
22: ; preds = %1, %2, %16, %17, %18, %19, %20
%23 = phi i8* [ getelementptr inbounds ([85 x i8], [85 x i8]* @str.21, i64 0, i64 0), %20 ], [ getelementptr inbounds ([59 x i8], [59 x i8]* @str.22, i64 0, i64 0), %19 ], [ getelementptr inbounds ([54 x i8], [54 x i8]* @str.23, i64 0, i64 0), %18 ], [ getelementptr inbounds ([54 x i8], [54 x i8]* @str.24, i64 0, i64 0), %17 ], [ getelementptr inbounds ([61 x i8], [61 x i8]* @str.25, i64 0, i64 0), %16 ], [ getelementptr inbounds ([68 x i8], [68 x i8]* @str.40, i64 0, i64 0), %2 ], [ getelementptr inbounds ([65 x i8], [65 x i8]* @str.26, i64 0, i64 0), %1 ]
%24 = tail call i32 @puts(i8* dereferenceable(1) %23)
br label %25
25: ; preds = %22, %1
ret void
}