#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*/ Backup(char *);
int /*<<< orphan*/ ExtracttLog(char *, char *, char *, char *);
int /*<<< orphan*/ ImportTemplateFile(char *, char *, char *);
int /*<<< orphan*/ Initialize(char *);
int /*<<< orphan*/ Restore(char *, char *);
int /*<<< orphan*/ RestoreAll(char *);
int /*<<< orphan*/ exit(int /*<<< orphan*/);
scalar_t__ getuid();
int /*<<< orphan*/ printf(char *, ...);
int /*<<< orphan*/ strcmp(char *, char *);
void ExtMainShell(int argc, char *argv[]) {
  if (getuid()) {
    printf("Only root can run this command!\n");
    exit(0);
  }
  if (argc == 5 && !strcmp(argv[1], "ImportTemplateFile"))
    ImportTemplateFile(argv[2], argv[3], argv[4]);
  else if (argc == 3 && !strcmp(argv[1], "Initialize"))
    Initialize(argv[2]);
  else if (argc == 3 && !strcmp(argv[1], "Backup"))
    Backup(argv[2]);
  else if (argc == 4 && !strcmp(argv[1], "Restore"))
    Restore(argv[2], argv[3]);
  else if (argc == 3 && !strcmp(argv[1], "RestoreAll"))
    RestoreAll(argv[2]);
  else if (argc == 6 && !strcmp(argv[1], "ExtracttLog"))
    ExtracttLog(argv[2], argv[3], argv[4], argv[5]);
  else {
    printf("\n%s %s Menu\n\nDatabase Ops:\n", argv[0], "");
    printf("\tInitialize|Backup|RestoreAll <mysql root passwd>\n");
    printf("\tRestore <mysql root passwd> <Restore table name>\n");
    printf("\nSpecial Admin Ops:\n");
    printf("\tImportTemplateFile <mysql root passwd> <tTemplate.cLabel> "
           "<filespec> <tTemplateSet.cLabel>\n");
    printf("\tExtracttLog <Mon> <Year> <mysql root passwd> <path to mysql "
           "table>\n");
    printf("\n");
  }
  exit(0);
}


x86 assembly (clang, -O0):
<ExtMainShell>:
push   %rbp
mov    %rsp,%rbp
sub    $0x10,%rsp
mov    %edi,-0x4(%rbp)
mov    %rsi,-0x10(%rbp)
mov    $0x0,%al
call   1040 <getuid@plt>
cmp    $0x0,%rax
je     11d5 <ExtMainShell+0x35>
lea    0xe39(%rip),%rdi
mov    $0x0,%al
call   1050 <printf@plt>
xor    %edi,%edi
call   10b0 <exit@plt>
cmpl   $0x5,-0x4(%rbp)
jne    121e <ExtMainShell+0x7e>
mov    -0x10(%rbp),%rax
mov    0x8(%rax),%rdi
lea    0xe33(%rip),%rsi
call   1060 <strcmp@plt>
cmp    $0x0,%eax
jne    121e <ExtMainShell+0x7e>
mov    -0x10(%rbp),%rax
mov    0x10(%rax),%rdi
mov    -0x10(%rbp),%rax
mov    0x18(%rax),%rsi
mov    -0x10(%rbp),%rax
mov    0x20(%rax),%rdx
call   1080 <ImportTemplateFile@plt>
jmp    13e4 <ExtMainShell+0x244>
cmpl   $0x3,-0x4(%rbp)
jne    1257 <ExtMainShell+0xb7>
mov    -0x10(%rbp),%rax
mov    0x8(%rax),%rdi
lea    0xdfd(%rip),%rsi
call   1060 <strcmp@plt>
cmp    $0x0,%eax
jne    1257 <ExtMainShell+0xb7>
mov    -0x10(%rbp),%rax
mov    0x10(%rax),%rdi
call   10a0 <Initialize@plt>
jmp    13df <ExtMainShell+0x23f>
cmpl   $0x3,-0x4(%rbp)
jne    1290 <ExtMainShell+0xf0>
mov    -0x10(%rbp),%rax
mov    0x8(%rax),%rdi
lea    0xdcf(%rip),%rsi
call   1060 <strcmp@plt>
cmp    $0x0,%eax
jne    1290 <ExtMainShell+0xf0>
mov    -0x10(%rbp),%rax
mov    0x10(%rax),%rdi
call   1090 <Backup@plt>
jmp    13da <ExtMainShell+0x23a>
cmpl   $0x4,-0x4(%rbp)
jne    12d1 <ExtMainShell+0x131>
mov    -0x10(%rbp),%rax
mov    0x8(%rax),%rdi
lea    0xd9d(%rip),%rsi
call   1060 <strcmp@plt>
cmp    $0x0,%eax
jne    12d1 <ExtMainShell+0x131>
mov    -0x10(%rbp),%rax
mov    0x10(%rax),%rdi
mov    -0x10(%rbp),%rax
mov    0x18(%rax),%rsi
call   1030 <Restore@plt>
jmp    13d5 <ExtMainShell+0x235>
cmpl   $0x3,-0x4(%rbp)
jne    130a <ExtMainShell+0x16a>
mov    -0x10(%rbp),%rax
mov    0x8(%rax),%rdi
lea    0xd64(%rip),%rsi
call   1060 <strcmp@plt>
cmp    $0x0,%eax
jne    130a <ExtMainShell+0x16a>
mov    -0x10(%rbp),%rax
mov    0x10(%rax),%rdi
call   10c0 <RestoreAll@plt>
jmp    13d0 <ExtMainShell+0x230>
cmpl   $0x6,-0x4(%rbp)
jne    135b <ExtMainShell+0x1bb>
mov    -0x10(%rbp),%rax
mov    0x8(%rax),%rdi
lea    0xd36(%rip),%rsi
call   1060 <strcmp@plt>
cmp    $0x0,%eax
jne    135b <ExtMainShell+0x1bb>
mov    -0x10(%rbp),%rax
mov    0x10(%rax),%rdi
mov    -0x10(%rbp),%rax
mov    0x18(%rax),%rsi
mov    -0x10(%rbp),%rax
mov    0x20(%rax),%rdx
mov    -0x10(%rbp),%rax
mov    0x28(%rax),%rcx
call   1070 <ExtracttLog@plt>
jmp    13cb <ExtMainShell+0x22b>
mov    -0x10(%rbp),%rax
mov    (%rax),%rsi
lea    0xcfc(%rip),%rdi
lea    0xcb0(%rip),%rdx
mov    $0x0,%al
call   1050 <printf@plt>
lea    0xd03(%rip),%rdi
mov    $0x0,%al
call   1050 <printf@plt>
lea    0xd28(%rip),%rdi
mov    $0x0,%al
call   1050 <printf@plt>
lea    0xd4d(%rip),%rdi
mov    $0x0,%al
call   1050 <printf@plt>
lea    0xd54(%rip),%rdi
mov    $0x0,%al
call   1050 <printf@plt>
lea    0xda3(%rip),%rdi
mov    $0x0,%al
call   1050 <printf@plt>
lea    0xc5b(%rip),%rdi
mov    $0x0,%al
call   1050 <printf@plt>
jmp    13d0 <ExtMainShell+0x230>
jmp    13d5 <ExtMainShell+0x235>
jmp    13da <ExtMainShell+0x23a>
jmp    13df <ExtMainShell+0x23f>
jmp    13e4 <ExtMainShell+0x244>
xor    %edi,%edi
call   10b0 <exit@plt>

x86 assembly (clang, -O2):
<ExtMainShell>:
push   %r15
push   %r14
push   %rbx
mov    %rsi,%r15
mov    %edi,%ebx
xor    %eax,%eax
call   1060 <getuid@plt>
test   %rax,%rax
jne    121d <ExtMainShell+0x5d>
add    $0xfffffffd,%ebx
cmp    $0x3,%ebx
ja     1302 <ExtMainShell+0x142>
lea    0xe17(%rip),%rax
movslq (%rax,%rbx,4),%rcx
add    %rax,%rcx
jmp    *%rcx
mov    0x8(%r15),%r14
lea    0xe26(%rip),%rsi
mov    %r14,%rdi
call   1080 <strcmp@plt>
test   %eax,%eax
jne    12bc <ExtMainShell+0xfc>
mov    0x10(%r15),%rdi
call   10c0 <Initialize@plt>
xor    %edi,%edi
call   10d0 <exit@plt>
lea    0xf64(%rip),%rdi
call   1050 <puts@plt>
xor    %edi,%edi
call   10d0 <exit@plt>
mov    0x8(%r15),%rdi
lea    0xdd5(%rip),%rsi
call   1080 <strcmp@plt>
test   %eax,%eax
jne    1302 <ExtMainShell+0x142>
mov    0x10(%r15),%rdi
mov    0x18(%r15),%rsi
mov    0x20(%r15),%rdx
call   10a0 <ImportTemplateFile@plt>
xor    %edi,%edi
call   10d0 <exit@plt>
mov    0x8(%r15),%rdi
lea    0xddd(%rip),%rsi
call   1080 <strcmp@plt>
test   %eax,%eax
jne    1302 <ExtMainShell+0x142>
mov    0x10(%r15),%rdi
mov    0x18(%r15),%rsi
mov    0x20(%r15),%rdx
mov    0x28(%r15),%rcx
call   1090 <ExtracttLog@plt>
xor    %edi,%edi
call   10d0 <exit@plt>
mov    0x8(%r15),%rdi
lea    0xd96(%rip),%rsi
call   1080 <strcmp@plt>
test   %eax,%eax
jne    1302 <ExtMainShell+0x142>
mov    0x10(%r15),%rdi
mov    0x18(%r15),%rsi
call   1040 <Restore@plt>
xor    %edi,%edi
call   10d0 <exit@plt>
lea    0xd6b(%rip),%rsi
mov    %r14,%rdi
call   1080 <strcmp@plt>
test   %eax,%eax
jne    12df <ExtMainShell+0x11f>
mov    0x10(%r15),%rdi
call   10b0 <Backup@plt>
xor    %edi,%edi
call   10d0 <exit@plt>
lea    0xd57(%rip),%rsi
mov    %r14,%rdi
call   1080 <strcmp@plt>
test   %eax,%eax
jne    1302 <ExtMainShell+0x142>
mov    0x10(%r15),%rdi
call   10e0 <RestoreAll@plt>
xor    %edi,%edi
call   10d0 <exit@plt>
mov    (%r15),%rsi
lea    0xd48(%rip),%rdi
lea    0xd5c(%rip),%rdx
xor    %eax,%eax
call   1070 <printf@plt>
lea    0xd4f(%rip),%rdi
call   1050 <puts@plt>
lea    0xd75(%rip),%rdi
call   1050 <puts@plt>
lea    0xd9b(%rip),%rdi
call   1050 <puts@plt>
lea    0xda3(%rip),%rdi
call   1050 <puts@plt>
lea    0xdf3(%rip),%rdi
call   1050 <puts@plt>
mov    $0xa,%edi
call   1030 <putchar@plt>
xor    %edi,%edi
call   10d0 <exit@plt>

LLVM IR (-O0):
@.str = [33 x i8] c"Only root can run this command!\0A\00"
@.str.1 = [19 x i8] c"ImportTemplateFile\00"
@.str.2 = [11 x i8] c"Initialize\00"
@.str.3 = [7 x i8] c"Backup\00"
@.str.4 = [8 x i8] c"Restore\00"
@.str.5 = [11 x i8] c"RestoreAll\00"
@.str.6 = [12 x i8] c"ExtracttLog\00"
@.str.7 = [28 x i8] c"\0A%s %s Menu\0A\0ADatabase Ops:\0A\00"
@.str.8 = [1 x i8] zeroinitializer
@.str.9 = [51 x i8] c"\09Initialize|Backup|RestoreAll <mysql root passwd>\0A\00"
@.str.10 = [51 x i8] c"\09Restore <mysql root passwd> <Restore table name>\0A\00"
@.str.11 = [21 x i8] c"\0ASpecial Admin Ops:\0A\00"
@.str.12 = [93 x i8] c"\09ImportTemplateFile <mysql root passwd> <tTemplate.cLabel> <filespec> <tTemplateSet.cLabel>\0A\00"
@.str.13 = [69 x i8] c"\09ExtracttLog <Mon> <Year> <mysql root passwd> <path to mysql table>\0A\00"
@.str.14 = [2 x i8] c"\0A\00"
define void @ExtMainShell(i32 %0, i8** %1) {
%3 = alloca i32
%4 = alloca i8**
store i32 %0, i32* %3
store i8** %1, i8*** %4
%5 = call i64 (...) @getuid()
%6 = icmp ne i64 %5, 0
br i1 %6, label %7, label %10
7: ; preds = %2
%8 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([33 x i8], [33 x i8]* @.str, i64 0, i64 0))
%9 = call i32 @exit(i32 0)
unreachable
10: ; preds = %2
%11 = load i32, i32* %3
%12 = icmp eq i32 %11, 5
br i1 %12, label %13, label %30
13: ; preds = %10
%14 = load i8**, i8*** %4
%15 = getelementptr inbounds i8*, i8** %14, i64 1
%16 = load i8*, i8** %15
%17 = call i32 @strcmp(i8* %16, i8* getelementptr inbounds ([19 x i8], [19 x i8]* @.str.1, i64 0, i64 0))
%18 = icmp ne i32 %17, 0
br i1 %18, label %30, label %19
19: ; preds = %13
%20 = load i8**, i8*** %4
%21 = getelementptr inbounds i8*, i8** %20, i64 2
%22 = load i8*, i8** %21
%23 = load i8**, i8*** %4
%24 = getelementptr inbounds i8*, i8** %23, i64 3
%25 = load i8*, i8** %24
%26 = load i8**, i8*** %4
%27 = getelementptr inbounds i8*, i8** %26, i64 4
%28 = load i8*, i8** %27
%29 = call i32 @ImportTemplateFile(i8* %22, i8* %25, i8* %28)
br label %128
30: ; preds = %13, %10
%31 = load i32, i32* %3
%32 = icmp eq i32 %31, 3
br i1 %32, label %33, label %44
33: ; preds = %30
%34 = load i8**, i8*** %4
%35 = getelementptr inbounds i8*, i8** %34, i64 1
%36 = load i8*, i8** %35
%37 = call i32 @strcmp(i8* %36, i8* getelementptr inbounds ([11 x i8], [11 x i8]* @.str.2, i64 0, i64 0))
%38 = icmp ne i32 %37, 0
br i1 %38, label %44, label %39
39: ; preds = %33
%40 = load i8**, i8*** %4
%41 = getelementptr inbounds i8*, i8** %40, i64 2
%42 = load i8*, i8** %41
%43 = call i32 @Initialize(i8* %42)
br label %127
44: ; preds = %33, %30
%45 = load i32, i32* %3
%46 = icmp eq i32 %45, 3
br i1 %46, label %47, label %58
47: ; preds = %44
%48 = load i8**, i8*** %4
%49 = getelementptr inbounds i8*, i8** %48, i64 1
%50 = load i8*, i8** %49
%51 = call i32 @strcmp(i8* %50, i8* getelementptr inbounds ([7 x i8], [7 x i8]* @.str.3, i64 0, i64 0))
%52 = icmp ne i32 %51, 0
br i1 %52, label %58, label %53
53: ; preds = %47
%54 = load i8**, i8*** %4
%55 = getelementptr inbounds i8*, i8** %54, i64 2
%56 = load i8*, i8** %55
%57 = call i32 @Backup(i8* %56)
br label %126
58: ; preds = %47, %44
%59 = load i32, i32* %3
%60 = icmp eq i32 %59, 4
br i1 %60, label %61, label %75
61: ; preds = %58
%62 = load i8**, i8*** %4
%63 = getelementptr inbounds i8*, i8** %62, i64 1
%64 = load i8*, i8** %63
%65 = call i32 @strcmp(i8* %64, i8* getelementptr inbounds ([8 x i8], [8 x i8]* @.str.4, i64 0, i64 0))
%66 = icmp ne i32 %65, 0
br i1 %66, label %75, label %67
67: ; preds = %61
%68 = load i8**, i8*** %4
%69 = getelementptr inbounds i8*, i8** %68, i64 2
%70 = load i8*, i8** %69
%71 = load i8**, i8*** %4
%72 = getelementptr inbounds i8*, i8** %71, i64 3
%73 = load i8*, i8** %72
%74 = call i32 @Restore(i8* %70, i8* %73)
br label %125
75: ; preds = %61, %58
%76 = load i32, i32* %3
%77 = icmp eq i32 %76, 3
br i1 %77, label %78, label %89
78: ; preds = %75
%79 = load i8**, i8*** %4
%80 = getelementptr inbounds i8*, i8** %79, i64 1
%81 = load i8*, i8** %80
%82 = call i32 @strcmp(i8* %81, i8* getelementptr inbounds ([11 x i8], [11 x i8]* @.str.5, i64 0, i64 0))
%83 = icmp ne i32 %82, 0
br i1 %83, label %89, label %84
84: ; preds = %78
%85 = load i8**, i8*** %4
%86 = getelementptr inbounds i8*, i8** %85, i64 2
%87 = load i8*, i8** %86
%88 = call i32 @RestoreAll(i8* %87)
br label %124
89: ; preds = %78, %75
%90 = load i32, i32* %3
%91 = icmp eq i32 %90, 6
br i1 %91, label %92, label %112
92: ; preds = %89
%93 = load i8**, i8*** %4
%94 = getelementptr inbounds i8*, i8** %93, i64 1
%95 = load i8*, i8** %94
%96 = call i32 @strcmp(i8* %95, i8* getelementptr inbounds ([12 x i8], [12 x i8]* @.str.6, i64 0, i64 0))
%97 = icmp ne i32 %96, 0
br i1 %97, label %112, label %98
98: ; preds = %92
%99 = load i8**, i8*** %4
%100 = getelementptr inbounds i8*, i8** %99, i64 2
%101 = load i8*, i8** %100
%102 = load i8**, i8*** %4
%103 = getelementptr inbounds i8*, i8** %102, i64 3
%104 = load i8*, i8** %103
%105 = load i8**, i8*** %4
%106 = getelementptr inbounds i8*, i8** %105, i64 4
%107 = load i8*, i8** %106
%108 = load i8**, i8*** %4
%109 = getelementptr inbounds i8*, i8** %108, i64 5
%110 = load i8*, i8** %109
%111 = call i32 @ExtracttLog(i8* %101, i8* %104, i8* %107, i8* %110)
br label %123
112: ; preds = %92, %89
%113 = load i8**, i8*** %4
%114 = getelementptr inbounds i8*, i8** %113, i64 0
%115 = load i8*, i8** %114
%116 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([28 x i8], [28 x i8]* @.str.7, i64 0, i64 0), i8* %115, i8* getelementptr inbounds ([1 x i8], [1 x i8]* @.str.8, i64 0, i64 0))
%117 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([51 x i8], [51 x i8]* @.str.9, i64 0, i64 0))
%118 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([51 x i8], [51 x i8]* @.str.10, i64 0, i64 0))
%119 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([21 x i8], [21 x i8]* @.str.11, i64 0, i64 0))
%120 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([93 x i8], [93 x i8]* @.str.12, i64 0, i64 0))
%121 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([69 x i8], [69 x i8]* @.str.13, i64 0, i64 0))
%122 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([2 x i8], [2 x i8]* @.str.14, i64 0, i64 0))
br label %123
123: ; preds = %112, %98
br label %124
124: ; preds = %123, %84
br label %125
125: ; preds = %124, %67
br label %126
126: ; preds = %125, %53
br label %127
127: ; preds = %126, %39
br label %128
128: ; preds = %127, %19
%129 = call i32 @exit(i32 0)
unreachable
}

LLVM IR (-O2):
@.str.1 = [19 x i8] c"ImportTemplateFile\00"
@.str.2 = [11 x i8] c"Initialize\00"
@.str.3 = [7 x i8] c"Backup\00"
@.str.4 = [8 x i8] c"Restore\00"
@.str.5 = [11 x i8] c"RestoreAll\00"
@.str.6 = [12 x i8] c"ExtracttLog\00"
@.str.7 = [28 x i8] c"\0A%s %s Menu\0A\0ADatabase Ops:\0A\00"
@.str.8 = [1 x i8] zeroinitializer
@str = [50 x i8] c"\09Initialize|Backup|RestoreAll <mysql root passwd>\00"
@str.15 = [50 x i8] c"\09Restore <mysql root passwd> <Restore table name>\00"
@str.16 = [20 x i8] c"\0ASpecial Admin Ops:\00"
@str.17 = [92 x i8] c"\09ImportTemplateFile <mysql root passwd> <tTemplate.cLabel> <filespec> <tTemplateSet.cLabel>\00"
@str.18 = [68 x i8] c"\09ExtracttLog <Mon> <Year> <mysql root passwd> <path to mysql table>\00"
@str.19 = [32 x i8] c"Only root can run this command!\00"
define void @ExtMainShell(i32 %0, i8** nocapture %1) {
%3 = tail call i64 (...) @getuid()
%4 = icmp eq i64 %3, 0
br i1 %4, label %8, label %5
5: ; preds = %2
%6 = tail call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([32 x i8], [32 x i8]* @str.19, i64 0, i64 0))
%7 = tail call i32 @exit(i32 0)
unreachable
8: ; preds = %2
switch i32 %0, label %71 [
i32 5, label %9
i32 3, label %22
i32 4, label %38
i32 6, label %56
]
9: ; preds = %8
%10 = getelementptr inbounds i8*, i8** %1, i64 1
%11 = load i8*, i8** %10
%12 = tail call i32 @strcmp(i8* dereferenceable(1) %11, i8* dereferenceable(19) getelementptr inbounds ([19 x i8], [19 x i8]* @.str.1, i64 0, i64 0))
%13 = icmp eq i32 %12, 0
br i1 %13, label %14, label %71
14: ; preds = %9
%15 = getelementptr inbounds i8*, i8** %1, i64 2
%16 = load i8*, i8** %15
%17 = getelementptr inbounds i8*, i8** %1, i64 3
%18 = load i8*, i8** %17
%19 = getelementptr inbounds i8*, i8** %1, i64 4
%20 = load i8*, i8** %19
%21 = tail call i32 @ImportTemplateFile(i8* %16, i8* %18, i8* %20)
br label %80
22: ; preds = %8
%23 = getelementptr inbounds i8*, i8** %1, i64 1
%24 = load i8*, i8** %23
%25 = tail call i32 @strcmp(i8* dereferenceable(1) %24, i8* dereferenceable(11) getelementptr inbounds ([11 x i8], [11 x i8]* @.str.2, i64 0, i64 0))
%26 = icmp eq i32 %25, 0
br i1 %26, label %27, label %31
27: ; preds = %22
%28 = getelementptr inbounds i8*, i8** %1, i64 2
%29 = load i8*, i8** %28
%30 = tail call i32 @Initialize(i8* %29)
br label %80
31: ; preds = %22
%32 = tail call i32 @strcmp(i8* dereferenceable(1) %24, i8* dereferenceable(7) getelementptr inbounds ([7 x i8], [7 x i8]* @.str.3, i64 0, i64 0))
%33 = icmp eq i32 %32, 0
br i1 %33, label %34, label %49
34: ; preds = %31
%35 = getelementptr inbounds i8*, i8** %1, i64 2
%36 = load i8*, i8** %35
%37 = tail call i32 @Backup(i8* %36)
br label %80
38: ; preds = %8
%39 = getelementptr inbounds i8*, i8** %1, i64 1
%40 = load i8*, i8** %39
%41 = tail call i32 @strcmp(i8* dereferenceable(1) %40, i8* dereferenceable(8) getelementptr inbounds ([8 x i8], [8 x i8]* @.str.4, i64 0, i64 0))
%42 = icmp eq i32 %41, 0
br i1 %42, label %43, label %71
43: ; preds = %38
%44 = getelementptr inbounds i8*, i8** %1, i64 2
%45 = load i8*, i8** %44
%46 = getelementptr inbounds i8*, i8** %1, i64 3
%47 = load i8*, i8** %46
%48 = tail call i32 @Restore(i8* %45, i8* %47)
br label %80
49: ; preds = %31
%50 = tail call i32 @strcmp(i8* dereferenceable(1) %24, i8* dereferenceable(11) getelementptr inbounds ([11 x i8], [11 x i8]* @.str.5, i64 0, i64 0))
%51 = icmp eq i32 %50, 0
br i1 %51, label %52, label %71
52: ; preds = %49
%53 = getelementptr inbounds i8*, i8** %1, i64 2
%54 = load i8*, i8** %53
%55 = tail call i32 @RestoreAll(i8* %54)
br label %80
56: ; preds = %8
%57 = getelementptr inbounds i8*, i8** %1, i64 1
%58 = load i8*, i8** %57
%59 = tail call i32 @strcmp(i8* dereferenceable(1) %58, i8* dereferenceable(12) getelementptr inbounds ([12 x i8], [12 x i8]* @.str.6, i64 0, i64 0))
%60 = icmp eq i32 %59, 0
br i1 %60, label %61, label %71
61: ; preds = %56
%62 = getelementptr inbounds i8*, i8** %1, i64 2
%63 = load i8*, i8** %62
%64 = getelementptr inbounds i8*, i8** %1, i64 3
%65 = load i8*, i8** %64
%66 = getelementptr inbounds i8*, i8** %1, i64 4
%67 = load i8*, i8** %66
%68 = getelementptr inbounds i8*, i8** %1, i64 5
%69 = load i8*, i8** %68
%70 = tail call i32 @ExtracttLog(i8* %63, i8* %65, i8* %67, i8* %69)
br label %80
71: ; preds = %8, %49, %9, %38, %56
%72 = load i8*, i8** %1
%73 = tail call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([28 x i8], [28 x i8]* @.str.7, i64 0, i64 0), i8* %72, i8* getelementptr inbounds ([1 x i8], [1 x i8]* @.str.8, i64 0, i64 0))
%74 = tail call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([50 x i8], [50 x i8]* @str, i64 0, i64 0))
%75 = tail call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([50 x i8], [50 x i8]* @str.15, i64 0, i64 0))
%76 = tail call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([20 x i8], [20 x i8]* @str.16, i64 0, i64 0))
%77 = tail call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([92 x i8], [92 x i8]* @str.17, i64 0, i64 0))
%78 = tail call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([68 x i8], [68 x i8]* @str.18, i64 0, i64 0))
%79 = tail call i32 @putchar(i32 10)
br label %80
80: ; preds = %27, %43, %61, %71, %52, %34, %14
%81 = tail call i32 @exit(i32 0)
unreachable
}