#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 show_command(char c) {
  switch (c) {
  case 'w':
    printf("TFAT is a simple interactive fat parser\n");
    printf("Copyright (C) 2014  Parham Alvani(parham.alvani@gmail.com)\n");
    printf("This program is free software: you can redistribute it and/or "
           "modify\n");
    printf("it under the terms of the GNU General Public License as published "
           "by\n");
    printf(
        "the Free Software Foundation, either version 3 of the License, or\n");
    printf("(at your option) any later version.\n");
    printf("This program is distributed in the hope that it will be useful,\n");
    printf("but WITHOUT ANY WARRANTY; without even the implied warranty of\n");
    printf("MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the\n");
    printf("GNU General Public License for more details.\n");
    printf(
        "You should have received a copy of the GNU General Public License\n");
    printf("along with this program.  If not, see "
           "<http://www.gnu.org/licenses/>.\n");
    break;
  case 'c':
    printf("TFAT is a simple interactive fat parser\n");
    printf("Copyright (C) 2014  Parham Alvani(parham.alvani@gmail.com)\n");
    printf("This program is free software: you can redistribute it and/or "
           "modify\n");
    printf("it under the terms of the GNU General Public License as published "
           "by\n");
    printf(
        "the Free Software Foundation, either version 3 of the License, or\n");
    printf("(at your option) any later version.\n");
    printf("This program is distributed in the hope that it will be useful,\n");
    printf("but WITHOUT ANY WARRANTY; without even the implied warranty of\n");
    printf("MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the\n");
    printf("GNU General Public License for more details.\n");
    printf(
        "You should have received a copy of the GNU General Public License\n");
    printf("along with this program.  If not, see "
           "<http://www.gnu.org/licenses/>.\n");
    break;
  }
}


x86 assembly (clang, -O0):
<show_command>:
push   %rbp
mov    %rsp,%rbp
sub    $0x10,%rsp
mov    %dil,%al
mov    %al,-0x1(%rbp)
movsbl -0x1(%rbp),%eax
mov    %eax,-0x8(%rbp)
sub    $0x63,%eax
je     11d9 <show_command+0xc9>
jmp    1133 <show_command+0x23>
mov    -0x8(%rbp),%eax
sub    $0x77,%eax
jne    1269 <show_command+0x159>
jmp    1144 <show_command+0x34>
lea    0xeb5(%rip),%rdi
call   1030 <printf@plt>
lea    0xed2(%rip),%rdi
call   1030 <printf@plt>
lea    0xf02(%rip),%rdi
call   1030 <printf@plt>
lea    0xf3c(%rip),%rdi
call   1030 <printf@plt>
lea    0xf76(%rip),%rdi
call   1030 <printf@plt>
lea    0xfad(%rip),%rdi
call   1030 <printf@plt>
lea    0xfc6(%rip),%rdi
call   1030 <printf@plt>
lea    0xffb(%rip),%rdi
call   1030 <printf@plt>
lea    0x102f(%rip),%rdi
call   1030 <printf@plt>
lea    0x1062(%rip),%rdi
call   1030 <printf@plt>
lea    0x1084(%rip),%rdi
call   1030 <printf@plt>
lea    0x10bb(%rip),%rdi
call   1030 <printf@plt>
jmp    1269 <show_command+0x159>
lea    0xe20(%rip),%rdi
call   1030 <printf@plt>
lea    0xe3d(%rip),%rdi
call   1030 <printf@plt>
lea    0xe6d(%rip),%rdi
call   1030 <printf@plt>
lea    0xea7(%rip),%rdi
call   1030 <printf@plt>
lea    0xee1(%rip),%rdi
call   1030 <printf@plt>
lea    0xf18(%rip),%rdi
call   1030 <printf@plt>
lea    0xf31(%rip),%rdi
call   1030 <printf@plt>
lea    0xf66(%rip),%rdi
call   1030 <printf@plt>
lea    0xf9a(%rip),%rdi
call   1030 <printf@plt>
lea    0xfcd(%rip),%rdi
call   1030 <printf@plt>
lea    0xfef(%rip),%rdi
call   1030 <printf@plt>
lea    0x1026(%rip),%rdi
call   1030 <printf@plt>
add    $0x10,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<show_command>:
cmp    $0x77,%edi
je     111e <show_command+0xe>
cmp    $0x63,%edi
jne    11b0 <show_command+0xa0>
push   %rax
lea    0xeda(%rip),%rdi
call   1030 <puts@plt>
lea    0xef6(%rip),%rdi
call   1030 <puts@plt>
lea    0xf25(%rip),%rdi
call   1030 <puts@plt>
lea    0xf5e(%rip),%rdi
call   1030 <puts@plt>
lea    0xf97(%rip),%rdi
call   1030 <puts@plt>
lea    0xfcd(%rip),%rdi
call   1030 <puts@plt>
lea    0xfe5(%rip),%rdi
call   1030 <puts@plt>
lea    0x1019(%rip),%rdi
call   1030 <puts@plt>
lea    0x104c(%rip),%rdi
call   1030 <puts@plt>
lea    0x107e(%rip),%rdi
call   1030 <puts@plt>
lea    0x109f(%rip),%rdi
call   1030 <puts@plt>
lea    0x10d5(%rip),%rdi
pop    %rax
jmp    1030 <puts@plt>
ret

LLVM IR (-O0):
@.str = [41 x i8] c"TFAT is a simple interactive fat parser\0A\00"
@.str.1 = [60 x i8] c"Copyright (C) 2014 Parham Alvani(parham.alvani@gmail.com)\0A\00"
@.str.2 = [70 x i8] c"This program is free software: you can redistribute it and/or modify\0A\00"
@.str.3 = [70 x i8] c"it under the terms of the GNU General Public License as published by\0A\00"
@.str.4 = [67 x i8] c"the Free Software Foundation, either version 3 of the License, or\0A\00"
@.str.5 = [37 x i8] c"(at your option) any later version.\0A\00"
@.str.6 = [65 x i8] c"This program is distributed in the hope that it will be useful,\0A\00"
@.str.7 = [64 x i8] c"but WITHOUT ANY WARRANTY; without even the implied warranty of\0A\00"
@.str.8 = [63 x i8] c"MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the\0A\00"
@.str.9 = [46 x i8] c"GNU General Public License for more details.\0A\00"
@.str.10 = [67 x i8] c"You should have received a copy of the GNU General Public License\0A\00"
@.str.11 = [71 x i8] c"along with this program. If not, see <http://www.gnu.org/licenses/>.\0A\00"
define void @show_command(i8 signext %0) {
%2 = alloca i8
store i8 %0, i8* %2
%3 = load i8, i8* %2
%4 = sext i8 %3 to i32
switch i32 %4, label %31 [
i32 119, label %5
i32 99, label %18
]
5: ; preds = %1
%6 = call i32 @printf(i8* getelementptr inbounds ([41 x i8], [41 x i8]* @.str, i64 0, i64 0))
%7 = call i32 @printf(i8* getelementptr inbounds ([60 x i8], [60 x i8]* @.str.1, i64 0, i64 0))
%8 = call i32 @printf(i8* getelementptr inbounds ([70 x i8], [70 x i8]* @.str.2, i64 0, i64 0))
%9 = call i32 @printf(i8* getelementptr inbounds ([70 x i8], [70 x i8]* @.str.3, i64 0, i64 0))
%10 = call i32 @printf(i8* getelementptr inbounds ([67 x i8], [67 x i8]* @.str.4, i64 0, i64 0))
%11 = call i32 @printf(i8* getelementptr inbounds ([37 x i8], [37 x i8]* @.str.5, i64 0, i64 0))
%12 = call i32 @printf(i8* getelementptr inbounds ([65 x i8], [65 x i8]* @.str.6, i64 0, i64 0))
%13 = call i32 @printf(i8* getelementptr inbounds ([64 x i8], [64 x i8]* @.str.7, i64 0, i64 0))
%14 = call i32 @printf(i8* getelementptr inbounds ([63 x i8], [63 x i8]* @.str.8, i64 0, i64 0))
%15 = call i32 @printf(i8* getelementptr inbounds ([46 x i8], [46 x i8]* @.str.9, i64 0, i64 0))
%16 = call i32 @printf(i8* getelementptr inbounds ([67 x i8], [67 x i8]* @.str.10, i64 0, i64 0))
%17 = call i32 @printf(i8* getelementptr inbounds ([71 x i8], [71 x i8]* @.str.11, i64 0, i64 0))
br label %31
18: ; preds = %1
%19 = call i32 @printf(i8* getelementptr inbounds ([41 x i8], [41 x i8]* @.str, i64 0, i64 0))
%20 = call i32 @printf(i8* getelementptr inbounds ([60 x i8], [60 x i8]* @.str.1, i64 0, i64 0))
%21 = call i32 @printf(i8* getelementptr inbounds ([70 x i8], [70 x i8]* @.str.2, i64 0, i64 0))
%22 = call i32 @printf(i8* getelementptr inbounds ([70 x i8], [70 x i8]* @.str.3, i64 0, i64 0))
%23 = call i32 @printf(i8* getelementptr inbounds ([67 x i8], [67 x i8]* @.str.4, i64 0, i64 0))
%24 = call i32 @printf(i8* getelementptr inbounds ([37 x i8], [37 x i8]* @.str.5, i64 0, i64 0))
%25 = call i32 @printf(i8* getelementptr inbounds ([65 x i8], [65 x i8]* @.str.6, i64 0, i64 0))
%26 = call i32 @printf(i8* getelementptr inbounds ([64 x i8], [64 x i8]* @.str.7, i64 0, i64 0))
%27 = call i32 @printf(i8* getelementptr inbounds ([63 x i8], [63 x i8]* @.str.8, i64 0, i64 0))
%28 = call i32 @printf(i8* getelementptr inbounds ([46 x i8], [46 x i8]* @.str.9, i64 0, i64 0))
%29 = call i32 @printf(i8* getelementptr inbounds ([67 x i8], [67 x i8]* @.str.10, i64 0, i64 0))
%30 = call i32 @printf(i8* getelementptr inbounds ([71 x i8], [71 x i8]* @.str.11, i64 0, i64 0))
br label %31
31: ; preds = %1, %18, %5
ret void
}

LLVM IR (-O2):
@str.23 = [40 x i8] c"TFAT is a simple interactive fat parser\00"
@str.24 = [59 x i8] c"Copyright (C) 2014 Parham Alvani(parham.alvani@gmail.com)\00"
@str.25 = [69 x i8] c"This program is free software: you can redistribute it and/or modify\00"
@str.26 = [69 x i8] c"it under the terms of the GNU General Public License as published by\00"
@str.27 = [66 x i8] c"the Free Software Foundation, either version 3 of the License, or\00"
@str.28 = [36 x i8] c"(at your option) any later version.\00"
@str.29 = [64 x i8] c"This program is distributed in the hope that it will be useful,\00"
@str.30 = [63 x i8] c"but WITHOUT ANY WARRANTY; without even the implied warranty of\00"
@str.31 = [62 x i8] c"MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the\00"
@str.32 = [45 x i8] c"GNU General Public License for more details.\00"
@str.33 = [66 x i8] c"You should have received a copy of the GNU General Public License\00"
@str.34 = [70 x i8] c"along with this program. If not, see <http://www.gnu.org/licenses/>.\00"
define void @show_command(i8 signext %0) {
%2 = sext i8 %0 to i32
switch i32 %2, label %29 [
i32 119, label %4
i32 99, label %3
]
3: ; preds = %1
br label %4
4: ; preds = %1, %3
%5 = phi i8* [ getelementptr inbounds ([40 x i8], [40 x i8]* @str.23, i64 0, i64 0), %3 ], [ getelementptr inbounds ([40 x i8], [40 x i8]* @str.23, i64 0, i64 0), %1 ]
%6 = phi i8* [ getelementptr inbounds ([59 x i8], [59 x i8]* @str.24, i64 0, i64 0), %3 ], [ getelementptr inbounds ([59 x i8], [59 x i8]* @str.24, i64 0, i64 0), %1 ]
%7 = phi i8* [ getelementptr inbounds ([69 x i8], [69 x i8]* @str.25, i64 0, i64 0), %3 ], [ getelementptr inbounds ([69 x i8], [69 x i8]* @str.25, i64 0, i64 0), %1 ]
%8 = phi i8* [ getelementptr inbounds ([69 x i8], [69 x i8]* @str.26, i64 0, i64 0), %3 ], [ getelementptr inbounds ([69 x i8], [69 x i8]* @str.26, i64 0, i64 0), %1 ]
%9 = phi i8* [ getelementptr inbounds ([66 x i8], [66 x i8]* @str.27, i64 0, i64 0), %3 ], [ getelementptr inbounds ([66 x i8], [66 x i8]* @str.27, i64 0, i64 0), %1 ]
%10 = phi i8* [ getelementptr inbounds ([36 x i8], [36 x i8]* @str.28, i64 0, i64 0), %3 ], [ getelementptr inbounds ([36 x i8], [36 x i8]* @str.28, i64 0, i64 0), %1 ]
%11 = phi i8* [ getelementptr inbounds ([64 x i8], [64 x i8]* @str.29, i64 0, i64 0), %3 ], [ getelementptr inbounds ([64 x i8], [64 x i8]* @str.29, i64 0, i64 0), %1 ]
%12 = phi i8* [ getelementptr inbounds ([63 x i8], [63 x i8]* @str.30, i64 0, i64 0), %3 ], [ getelementptr inbounds ([63 x i8], [63 x i8]* @str.30, i64 0, i64 0), %1 ]
%13 = phi i8* [ getelementptr inbounds ([62 x i8], [62 x i8]* @str.31, i64 0, i64 0), %3 ], [ getelementptr inbounds ([62 x i8], [62 x i8]* @str.31, i64 0, i64 0), %1 ]
%14 = phi i8* [ getelementptr inbounds ([45 x i8], [45 x i8]* @str.32, i64 0, i64 0), %3 ], [ getelementptr inbounds ([45 x i8], [45 x i8]* @str.32, i64 0, i64 0), %1 ]
%15 = phi i8* [ getelementptr inbounds ([66 x i8], [66 x i8]* @str.33, i64 0, i64 0), %3 ], [ getelementptr inbounds ([66 x i8], [66 x i8]* @str.33, i64 0, i64 0), %1 ]
%16 = phi i8* [ getelementptr inbounds ([70 x i8], [70 x i8]* @str.34, i64 0, i64 0), %3 ], [ getelementptr inbounds ([70 x i8], [70 x i8]* @str.34, i64 0, i64 0), %1 ]
%17 = tail call i32 @puts(i8* dereferenceable(1) %5)
%18 = tail call i32 @puts(i8* dereferenceable(1) %6)
%19 = tail call i32 @puts(i8* dereferenceable(1) %7)
%20 = tail call i32 @puts(i8* dereferenceable(1) %8)
%21 = tail call i32 @puts(i8* dereferenceable(1) %9)
%22 = tail call i32 @puts(i8* dereferenceable(1) %10)
%23 = tail call i32 @puts(i8* dereferenceable(1) %11)
%24 = tail call i32 @puts(i8* dereferenceable(1) %12)
%25 = tail call i32 @puts(i8* dereferenceable(1) %13)
%26 = tail call i32 @puts(i8* dereferenceable(1) %14)
%27 = tail call i32 @puts(i8* dereferenceable(1) %15)
%28 = tail call i32 @puts(i8* dereferenceable(1) %16)
br label %29
29: ; preds = %4, %1
ret void
}