#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 [\"] [\"]     \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 one or two \" 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("============================================================\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 [\"] [\"]  \n");
    printf("============================================================\n");
    break;
  case 2:
    printf("===========================================================\n");
    printf("  Error: only one number following [-a] and [-b] is valid  \n");
    printf("===========================================================\n");
    break;
  case 3:
    printf("=========================================================\n");
    printf("  Error: cannot open file_A, please check the file name  \n");
    printf("=========================================================\n");
    break;
  case 4:
    printf("=========================================================\n");
    printf("  Error: cannot open file_B, please check the file name  \n");
    printf("=========================================================\n");
    break;
  case 5:
    printf("==============================================================\n");
    printf("  Error: cannot generate output files due to some reasons...  \n");
    printf("==============================================================\n");
    break;
  case 6:
    printf("==================================================================="
           "=========\n");
    printf("  Error: you should select 2 columns (ex. 3,4), and their order "
           "does count  \n");
    printf("  Warning: only first 2 columns will be calculated if you select 3 "
           "or more  \n");
    printf("==================================================================="
           "=========\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     12fb <usage+0x1eb>
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    0xf0a(%rip),%rdi
call   1030 <printf@plt>
lea    0xf3f(%rip),%rdi
call   1030 <printf@plt>
lea    0xf72(%rip),%rdi
call   1030 <printf@plt>
lea    0xfa7(%rip),%rdi
call   1030 <printf@plt>
lea    0xfdc(%rip),%rdi
call   1030 <printf@plt>
lea    0x1011(%rip),%rdi
call   1030 <printf@plt>
lea    0x1046(%rip),%rdi
call   1030 <printf@plt>
lea    0x107b(%rip),%rdi
call   1030 <printf@plt>
lea    0x10b0(%rip),%rdi
call   1030 <printf@plt>
lea    0x10e4(%rip),%rdi
call   1030 <printf@plt>
lea    0x1119(%rip),%rdi
call   1030 <printf@plt>
lea    0x114e(%rip),%rdi
call   1030 <printf@plt>
lea    0x12fd(%rip),%rdi
call   1030 <printf@plt>
jmp    1300 <usage+0x1f0>
lea    0x12ef(%rip),%rdi
call   1030 <printf@plt>
lea    0x1166(%rip),%rdi
call   1030 <printf@plt>
lea    0x1198(%rip),%rdi
call   1030 <printf@plt>
lea    0x12cb(%rip),%rdi
call   1030 <printf@plt>
jmp    1300 <usage+0x1f0>
lea    0x12bb(%rip),%rdi
call   1030 <printf@plt>
lea    0x11ab(%rip),%rdi
call   1030 <printf@plt>
lea    0x12a3(%rip),%rdi
call   1030 <printf@plt>
jmp    1300 <usage+0x1f0>
lea    0x1294(%rip),%rdi
call   1030 <printf@plt>
lea    0x11bf(%rip),%rdi
call   1030 <printf@plt>
lea    0x127c(%rip),%rdi
call   1030 <printf@plt>
jmp    1300 <usage+0x1f0>
lea    0x126b(%rip),%rdi
call   1030 <printf@plt>
lea    0x11d1(%rip),%rdi
call   1030 <printf@plt>
lea    0x1253(%rip),%rdi
call   1030 <printf@plt>
jmp    1300 <usage+0x1f0>
lea    0x123d(%rip),%rdi
call   1030 <printf@plt>
lea    0x11e3(%rip),%rdi
call   1030 <printf@plt>
lea    0x1225(%rip),%rdi
call   1030 <printf@plt>
jmp    1300 <usage+0x1f0>
lea    0x1206(%rip),%rdi
call   1030 <printf@plt>
lea    0x1248(%rip),%rdi
call   1030 <printf@plt>
lea    0x128a(%rip),%rdi
call   1030 <printf@plt>
lea    0x11e2(%rip),%rdi
call   1030 <printf@plt>
jmp    1300 <usage+0x1f0>
jmp    1300 <usage+0x1f0>
add    $0x10,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<usage>:
cmp    $0x6,%edi
ja     11dd <usage+0xcd>
push   %r14
push   %rbx
push   %rax
mov    %edi,%eax
lea    0x1090(%rip),%r14
lea    0xf9a(%rip),%rdi
mov    %eax,%eax
lea    0xeca(%rip),%rcx
movslq (%rcx,%rax,4),%rax
add    %rcx,%rax
mov    %rdi,%rbx
jmp    *%rax
lea    0x1121(%rip),%rdi
call   1030 <puts@plt>
lea    0x1155(%rip),%rdi
call   1030 <puts@plt>
lea    0x1189(%rip),%rdi
call   1030 <puts@plt>
lea    0x11bb(%rip),%rdi
call   1030 <puts@plt>
lea    0x11ef(%rip),%rdi
call   1030 <puts@plt>
lea    0x1223(%rip),%rdi
call   1030 <puts@plt>
lea    0x1257(%rip),%rdi
call   1030 <puts@plt>
lea    0x128b(%rip),%rdi
call   1030 <puts@plt>
lea    0x12bf(%rip),%rdi
call   1030 <puts@plt>
lea    0x12f3(%rip),%rdi
call   1030 <puts@plt>
lea    0x1326(%rip),%rdi
call   1030 <puts@plt>
lea    0xef6(%rip),%rbx
lea    0x1393(%rip),%r14
lea    0x134c(%rip),%rdi
jmp    1249 <usage+0x139>
ret
lea    0xee1(%rip),%rbx
mov    %rbx,%rdi
call   1030 <puts@plt>
lea    0x103b(%rip),%r14
lea    0xff7(%rip),%rdi
jmp    1249 <usage+0x139>
lea    0xf78(%rip),%r14
jmp    120d <usage+0xfd>
lea    0xf35(%rip),%r14
lea    0xeb5(%rip),%rdi
mov    %rdi,%rbx
jmp    1249 <usage+0x139>
lea    0xee3(%rip),%r14
lea    0xe9d(%rip),%rdi
mov    %rdi,%rbx
jmp    1249 <usage+0x139>
lea    0xe83(%rip),%rbx
mov    %rbx,%rdi
call   1030 <puts@plt>
lea    0xe27(%rip),%r14
lea    0xdd3(%rip),%rdi
call   1030 <puts@plt>
mov    %r14,%rdi
call   1030 <puts@plt>
mov    %rbx,%rdi
add    $0x8,%rsp
pop    %rbx
pop    %r14
jmp    1030 <puts@plt>

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

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