#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 ");
    printf("Parham Alvani(parham.alvani@gmail.com)\n");
    printf("This program is free software: ");
    printf("you can redistribute it and/or modify\n");
    printf("it under the terms of the ");
    printf("GNU General Public License as published by\n");
    printf("the Free Software Foundation, ");
    printf("either version 3 of the License, or\n");
    printf("(at your option) any later version.\n");
    printf("This program is distributed in the hope");
    printf(" that it will be useful,\n");
    printf("but WITHOUT ANY WARRANTY; ");
    printf("without even the implied warranty of\n");
    printf("MERCHANTABILITY or FITNESS FOR A ");
    printf("PARTICULAR PURPOSE.  See the\n");
    printf("GNU General Public License for more details.\n");
    printf("You should have received a copy of the ");
    printf("GNU General Public License\n");
    printf("along with this program.  ");
    printf("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 ");
    printf("Parham Alvani(parham.alvani@gmail.com)\n");
    printf("This program is free software: ");
    printf("you can redistribute it and/or modify\n");
    printf("it under the terms of the ");
    printf("GNU General Public License as published by\n");
    printf("the Free Software Foundation, ");
    printf("either version 3 of the License, or\n");
    printf("(at your option) any later version.\n");
    printf("This program is distributed in the hope");
    printf(" that it will be useful,\n");
    printf("but WITHOUT ANY WARRANTY; ");
    printf("without even the implied warranty of\n");
    printf("MERCHANTABILITY or FITNESS FOR A ");
    printf("PARTICULAR PURPOSE.  See the\n");
    printf("GNU General Public License for more details.\n");
    printf("You should have received a copy of the ");
    printf("GNU General Public License\n");
    printf("along with this program.  ");
    printf("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     1245 <show_command+0x135>
jmp    1133 <show_command+0x23>
mov    -0x8(%rbp),%eax
sub    $0x77,%eax
jne    1341 <show_command+0x231>
jmp    1144 <show_command+0x34>
lea    0xeb5(%rip),%rdi
call   1030 <printf@plt>
lea    0xed2(%rip),%rdi
call   1030 <printf@plt>
lea    0xeda(%rip),%rdi
call   1030 <printf@plt>
lea    0xef6(%rip),%rdi
call   1030 <printf@plt>
lea    0xf0a(%rip),%rdi
call   1030 <printf@plt>
lea    0xf25(%rip),%rdi
call   1030 <printf@plt>
lea    0xf34(%rip),%rdi
call   1030 <printf@plt>
lea    0xf54(%rip),%rdi
call   1030 <printf@plt>
lea    0xf67(%rip),%rdi
call   1030 <printf@plt>
lea    0xf80(%rip),%rdi
call   1030 <printf@plt>
lea    0xf99(%rip),%rdi
call   1030 <printf@plt>
lea    0xfb5(%rip),%rdi
call   1030 <printf@plt>
lea    0xfc3(%rip),%rdi
call   1030 <printf@plt>
lea    0xfd2(%rip),%rdi
call   1030 <printf@plt>
lea    0xfec(%rip),%rdi
call   1030 <printf@plt>
lea    0x1002(%rip),%rdi
call   1030 <printf@plt>
lea    0x1014(%rip),%rdi
call   1030 <printf@plt>
lea    0x1036(%rip),%rdi
call   1030 <printf@plt>
lea    0x1052(%rip),%rdi
call   1030 <printf@plt>
lea    0x1062(%rip),%rdi
call   1030 <printf@plt>
lea    0x1071(%rip),%rdi
call   1030 <printf@plt>
jmp    1341 <show_command+0x231>
lea    0xdb4(%rip),%rdi
call   1030 <printf@plt>
lea    0xdd1(%rip),%rdi
call   1030 <printf@plt>
lea    0xdd9(%rip),%rdi
call   1030 <printf@plt>
lea    0xdf5(%rip),%rdi
call   1030 <printf@plt>
lea    0xe09(%rip),%rdi
call   1030 <printf@plt>
lea    0xe24(%rip),%rdi
call   1030 <printf@plt>
lea    0xe33(%rip),%rdi
call   1030 <printf@plt>
lea    0xe53(%rip),%rdi
call   1030 <printf@plt>
lea    0xe66(%rip),%rdi
call   1030 <printf@plt>
lea    0xe7f(%rip),%rdi
call   1030 <printf@plt>
lea    0xe98(%rip),%rdi
call   1030 <printf@plt>
lea    0xeb4(%rip),%rdi
call   1030 <printf@plt>
lea    0xec2(%rip),%rdi
call   1030 <printf@plt>
lea    0xed1(%rip),%rdi
call   1030 <printf@plt>
lea    0xeeb(%rip),%rdi
call   1030 <printf@plt>
lea    0xf01(%rip),%rdi
call   1030 <printf@plt>
lea    0xf13(%rip),%rdi
call   1030 <printf@plt>
lea    0xf35(%rip),%rdi
call   1030 <printf@plt>
lea    0xf51(%rip),%rdi
call   1030 <printf@plt>
lea    0xf61(%rip),%rdi
call   1030 <printf@plt>
lea    0xf70(%rip),%rdi
call   1030 <printf@plt>
add    $0x10,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<show_command>:
cmp    $0x77,%edi
je     112e <show_command+0xe>
cmp    $0x63,%edi
jne    122c <show_command+0x10c>
push   %rax
lea    0xfe0(%rip),%rdi
call   1030 <puts@plt>
lea    0xebe(%rip),%rdi
call   1040 <printf@plt>
lea    0xff0(%rip),%rdi
call   1030 <puts@plt>
lea    0xeba(%rip),%rdi
call   1040 <printf@plt>
lea    0xfff(%rip),%rdi
call   1030 <puts@plt>
lea    0xec2(%rip),%rdi
call   1040 <printf@plt>
lea    0x100d(%rip),%rdi
call   1030 <puts@plt>
lea    0xec5(%rip),%rdi
call   1040 <printf@plt>
lea    0x1020(%rip),%rdi
call   1030 <puts@plt>
lea    0x1038(%rip),%rdi
call   1030 <puts@plt>
lea    0xec0(%rip),%rdi
call   1040 <printf@plt>
lea    0x1044(%rip),%rdi
call   1030 <puts@plt>
lea    0xed0(%rip),%rdi
call   1040 <printf@plt>
lea    0x1045(%rip),%rdi
call   1030 <puts@plt>
lea    0xed3(%rip),%rdi
call   1040 <printf@plt>
lea    0x1052(%rip),%rdi
call   1030 <puts@plt>
lea    0x1063(%rip),%rdi
call   1030 <puts@plt>
lea    0xed1(%rip),%rdi
call   1040 <printf@plt>
lea    0x1078(%rip),%rdi
call   1030 <puts@plt>
lea    0xee1(%rip),%rdi
call   1040 <printf@plt>
lea    0x107b(%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 = [20 x i8] c"Copyright (C) 2014 \00"
@.str.2 = [40 x i8] c"Parham Alvani(parham.alvani@gmail.com)\0A\00"
@.str.3 = [32 x i8] c"This program is free software: \00"
@.str.4 = [39 x i8] c"you can redistribute it and/or modify\0A\00"
@.str.5 = [27 x i8] c"it under the terms of the \00"
@.str.6 = [44 x i8] c"GNU General Public License as published by\0A\00"
@.str.7 = [31 x i8] c"the Free Software Foundation, \00"
@.str.8 = [37 x i8] c"either version 3 of the License, or\0A\00"
@.str.9 = [37 x i8] c"(at your option) any later version.\0A\00"
@.str.10 = [40 x i8] c"This program is distributed in the hope\00"
@.str.11 = [26 x i8] c" that it will be useful,\0A\00"
@.str.12 = [27 x i8] c"but WITHOUT ANY WARRANTY; \00"
@.str.13 = [38 x i8] c"without even the implied warranty of\0A\00"
@.str.14 = [34 x i8] c"MERCHANTABILITY or FITNESS FOR A \00"
@.str.15 = [30 x i8] c"PARTICULAR PURPOSE. See the\0A\00"
@.str.16 = [46 x i8] c"GNU General Public License for more details.\0A\00"
@.str.17 = [40 x i8] c"You should have received a copy of the \00"
@.str.18 = [28 x i8] c"GNU General Public License\0A\00"
@.str.19 = [27 x i8] c"along with this program. \00"
@.str.20 = [45 x i8] c"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 %49 [
i32 119, label %5
i32 99, label %27
]
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 ([20 x i8], [20 x i8]* @.str.1, i64 0, i64 0))
%8 = call i32 @printf(i8* getelementptr inbounds ([40 x i8], [40 x i8]* @.str.2, i64 0, i64 0))
%9 = call i32 @printf(i8* getelementptr inbounds ([32 x i8], [32 x i8]* @.str.3, i64 0, i64 0))
%10 = call i32 @printf(i8* getelementptr inbounds ([39 x i8], [39 x i8]* @.str.4, i64 0, i64 0))
%11 = call i32 @printf(i8* getelementptr inbounds ([27 x i8], [27 x i8]* @.str.5, i64 0, i64 0))
%12 = call i32 @printf(i8* getelementptr inbounds ([44 x i8], [44 x i8]* @.str.6, i64 0, i64 0))
%13 = call i32 @printf(i8* getelementptr inbounds ([31 x i8], [31 x i8]* @.str.7, i64 0, i64 0))
%14 = call i32 @printf(i8* getelementptr inbounds ([37 x i8], [37 x i8]* @.str.8, i64 0, i64 0))
%15 = call i32 @printf(i8* getelementptr inbounds ([37 x i8], [37 x i8]* @.str.9, i64 0, i64 0))
%16 = call i32 @printf(i8* getelementptr inbounds ([40 x i8], [40 x i8]* @.str.10, i64 0, i64 0))
%17 = call i32 @printf(i8* getelementptr inbounds ([26 x i8], [26 x i8]* @.str.11, i64 0, i64 0))
%18 = call i32 @printf(i8* getelementptr inbounds ([27 x i8], [27 x i8]* @.str.12, i64 0, i64 0))
%19 = call i32 @printf(i8* getelementptr inbounds ([38 x i8], [38 x i8]* @.str.13, i64 0, i64 0))
%20 = call i32 @printf(i8* getelementptr inbounds ([34 x i8], [34 x i8]* @.str.14, i64 0, i64 0))
%21 = call i32 @printf(i8* getelementptr inbounds ([30 x i8], [30 x i8]* @.str.15, i64 0, i64 0))
%22 = call i32 @printf(i8* getelementptr inbounds ([46 x i8], [46 x i8]* @.str.16, i64 0, i64 0))
%23 = call i32 @printf(i8* getelementptr inbounds ([40 x i8], [40 x i8]* @.str.17, i64 0, i64 0))
%24 = call i32 @printf(i8* getelementptr inbounds ([28 x i8], [28 x i8]* @.str.18, i64 0, i64 0))
%25 = call i32 @printf(i8* getelementptr inbounds ([27 x i8], [27 x i8]* @.str.19, i64 0, i64 0))
%26 = call i32 @printf(i8* getelementptr inbounds ([45 x i8], [45 x i8]* @.str.20, i64 0, i64 0))
br label %49
27: ; preds = %1
%28 = call i32 @printf(i8* getelementptr inbounds ([41 x i8], [41 x i8]* @.str, i64 0, i64 0))
%29 = call i32 @printf(i8* getelementptr inbounds ([20 x i8], [20 x i8]* @.str.1, i64 0, i64 0))
%30 = call i32 @printf(i8* getelementptr inbounds ([40 x i8], [40 x i8]* @.str.2, i64 0, i64 0))
%31 = call i32 @printf(i8* getelementptr inbounds ([32 x i8], [32 x i8]* @.str.3, i64 0, i64 0))
%32 = call i32 @printf(i8* getelementptr inbounds ([39 x i8], [39 x i8]* @.str.4, i64 0, i64 0))
%33 = call i32 @printf(i8* getelementptr inbounds ([27 x i8], [27 x i8]* @.str.5, i64 0, i64 0))
%34 = call i32 @printf(i8* getelementptr inbounds ([44 x i8], [44 x i8]* @.str.6, i64 0, i64 0))
%35 = call i32 @printf(i8* getelementptr inbounds ([31 x i8], [31 x i8]* @.str.7, i64 0, i64 0))
%36 = call i32 @printf(i8* getelementptr inbounds ([37 x i8], [37 x i8]* @.str.8, i64 0, i64 0))
%37 = call i32 @printf(i8* getelementptr inbounds ([37 x i8], [37 x i8]* @.str.9, i64 0, i64 0))
%38 = call i32 @printf(i8* getelementptr inbounds ([40 x i8], [40 x i8]* @.str.10, i64 0, i64 0))
%39 = call i32 @printf(i8* getelementptr inbounds ([26 x i8], [26 x i8]* @.str.11, i64 0, i64 0))
%40 = call i32 @printf(i8* getelementptr inbounds ([27 x i8], [27 x i8]* @.str.12, i64 0, i64 0))
%41 = call i32 @printf(i8* getelementptr inbounds ([38 x i8], [38 x i8]* @.str.13, i64 0, i64 0))
%42 = call i32 @printf(i8* getelementptr inbounds ([34 x i8], [34 x i8]* @.str.14, i64 0, i64 0))
%43 = call i32 @printf(i8* getelementptr inbounds ([30 x i8], [30 x i8]* @.str.15, i64 0, i64 0))
%44 = call i32 @printf(i8* getelementptr inbounds ([46 x i8], [46 x i8]* @.str.16, i64 0, i64 0))
%45 = call i32 @printf(i8* getelementptr inbounds ([40 x i8], [40 x i8]* @.str.17, i64 0, i64 0))
%46 = call i32 @printf(i8* getelementptr inbounds ([28 x i8], [28 x i8]* @.str.18, i64 0, i64 0))
%47 = call i32 @printf(i8* getelementptr inbounds ([27 x i8], [27 x i8]* @.str.19, i64 0, i64 0))
%48 = call i32 @printf(i8* getelementptr inbounds ([45 x i8], [45 x i8]* @.str.20, i64 0, i64 0))
br label %49
49: ; preds = %1, %27, %5
ret void
}

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