#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*/ sprintf(char *, char *, char const *);
int /*<<< orphan*/ strcpy(char *, char const *);
char *strtok(char *, char *);
int /*<<< orphan*/ system(char *);
void AppExec(const char *filename) {
  char *ext;
  char file[255];
  char cmd[255];
  strcpy(file, filename);
  strtok(file, ".");
  ext = strtok(NULL, ".");
  if (ext == NULL) {
    sprintf(cmd, "./%s", filename);
    system(cmd);
    return;
  }
  if (ext[0] == 'p' && ext[1] == 'n' && ext[2] == 'g') {
    sprintf(cmd, "shotwell %s", filename);
    system(cmd);
  }
  if (ext[0] == 'j' && ext[1] == 'p' && ext[2] == 'g') {
    sprintf(cmd, "shotwell %s", filename);
    system(cmd);
  }
  if (ext[0] == 'j' && ext[1] == 'p' && ext[2] == 'e' && ext[3] == 'g') {
    sprintf(cmd, "shotwell %s", filename);
    system(cmd);
  }
  if (ext[0] == 't' && ext[1] == 'x' && ext[2] == 't') {
    sprintf(cmd, "gedit %s", filename);
    system(cmd);
  }
  if (ext[0] == 'c' && ext[1] == 'f' && ext[2] == 'g') {
    sprintf(cmd, "gedit %s", filename);
    system(cmd);
  }
  if (ext[0] == 'l' && ext[1] == 'o' && ext[2] == 'g') {
    sprintf(cmd, "gedit %s", filename);
    system(cmd);
  }
}


x86 assembly (clang, -O0):
<AppExec>:
push   %rbp
mov    %rsp,%rbp
sub    $0x210,%rsp
mov    %rdi,-0x8(%rbp)
lea    -0x110(%rbp),%rdi
mov    -0x8(%rbp),%rsi
call   1030 <strcpy@plt>
lea    -0x110(%rbp),%rdi
lea    0xe93(%rip),%rsi
call   1050 <strtok@plt>
xor    %eax,%eax
mov    %eax,%edi
lea    0xe83(%rip),%rsi
call   1050 <strtok@plt>
mov    %rax,-0x10(%rbp)
cmpq   $0x0,-0x10(%rbp)
jne    11b9 <AppExec+0x79>
lea    -0x210(%rbp),%rdi
mov    -0x8(%rbp),%rdx
lea    0xe5f(%rip),%rsi
call   1060 <sprintf@plt>
lea    -0x210(%rbp),%rdi
call   1040 <system@plt>
jmp    13c8 <AppExec+0x288>
mov    -0x10(%rbp),%rax
movsbl (%rax),%eax
cmp    $0x70,%eax
jne    120e <AppExec+0xce>
mov    -0x10(%rbp),%rax
movsbl 0x1(%rax),%eax
cmp    $0x6e,%eax
jne    120e <AppExec+0xce>
mov    -0x10(%rbp),%rax
movsbl 0x2(%rax),%eax
cmp    $0x67,%eax
jne    120e <AppExec+0xce>
lea    -0x210(%rbp),%rdi
mov    -0x8(%rbp),%rdx
lea    0xe0a(%rip),%rsi
call   1060 <sprintf@plt>
lea    -0x210(%rbp),%rdi
call   1040 <system@plt>
mov    -0x10(%rbp),%rax
movsbl (%rax),%eax
cmp    $0x6a,%eax
jne    1263 <AppExec+0x123>
mov    -0x10(%rbp),%rax
movsbl 0x1(%rax),%eax
cmp    $0x70,%eax
jne    1263 <AppExec+0x123>
mov    -0x10(%rbp),%rax
movsbl 0x2(%rax),%eax
cmp    $0x67,%eax
jne    1263 <AppExec+0x123>
lea    -0x210(%rbp),%rdi
mov    -0x8(%rbp),%rdx
lea    0xdb5(%rip),%rsi
call   1060 <sprintf@plt>
lea    -0x210(%rbp),%rdi
call   1040 <system@plt>
mov    -0x10(%rbp),%rax
movsbl (%rax),%eax
cmp    $0x6a,%eax
jne    12c9 <AppExec+0x189>
mov    -0x10(%rbp),%rax
movsbl 0x1(%rax),%eax
cmp    $0x70,%eax
jne    12c9 <AppExec+0x189>
mov    -0x10(%rbp),%rax
movsbl 0x2(%rax),%eax
cmp    $0x65,%eax
jne    12c9 <AppExec+0x189>
mov    -0x10(%rbp),%rax
movsbl 0x3(%rax),%eax
cmp    $0x67,%eax
jne    12c9 <AppExec+0x189>
lea    -0x210(%rbp),%rdi
mov    -0x8(%rbp),%rdx
lea    0xd4f(%rip),%rsi
call   1060 <sprintf@plt>
lea    -0x210(%rbp),%rdi
call   1040 <system@plt>
mov    -0x10(%rbp),%rax
movsbl (%rax),%eax
cmp    $0x74,%eax
jne    131e <AppExec+0x1de>
mov    -0x10(%rbp),%rax
movsbl 0x1(%rax),%eax
cmp    $0x78,%eax
jne    131e <AppExec+0x1de>
mov    -0x10(%rbp),%rax
movsbl 0x2(%rax),%eax
cmp    $0x74,%eax
jne    131e <AppExec+0x1de>
lea    -0x210(%rbp),%rdi
mov    -0x8(%rbp),%rdx
lea    0xd06(%rip),%rsi
call   1060 <sprintf@plt>
lea    -0x210(%rbp),%rdi
call   1040 <system@plt>
mov    -0x10(%rbp),%rax
movsbl (%rax),%eax
cmp    $0x63,%eax
jne    1373 <AppExec+0x233>
mov    -0x10(%rbp),%rax
movsbl 0x1(%rax),%eax
cmp    $0x66,%eax
jne    1373 <AppExec+0x233>
mov    -0x10(%rbp),%rax
movsbl 0x2(%rax),%eax
cmp    $0x67,%eax
jne    1373 <AppExec+0x233>
lea    -0x210(%rbp),%rdi
mov    -0x8(%rbp),%rdx
lea    0xcb1(%rip),%rsi
call   1060 <sprintf@plt>
lea    -0x210(%rbp),%rdi
call   1040 <system@plt>
mov    -0x10(%rbp),%rax
movsbl (%rax),%eax
cmp    $0x6c,%eax
jne    13c8 <AppExec+0x288>
mov    -0x10(%rbp),%rax
movsbl 0x1(%rax),%eax
cmp    $0x6f,%eax
jne    13c8 <AppExec+0x288>
mov    -0x10(%rbp),%rax
movsbl 0x2(%rax),%eax
cmp    $0x67,%eax
jne    13c8 <AppExec+0x288>
lea    -0x210(%rbp),%rdi
mov    -0x8(%rbp),%rdx
lea    0xc5c(%rip),%rsi
call   1060 <sprintf@plt>
lea    -0x210(%rbp),%rdi
call   1040 <system@plt>
add    $0x210,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<AppExec>:
push   %r15
push   %r14
push   %rbx
sub    $0x200,%rsp
mov    %rdi,%r14
lea    0x100(%rsp),%rbx
mov    %rbx,%rdi
mov    %r14,%rsi
call   1030 <strcpy@plt>
lea    0xe97(%rip),%r15
mov    %rbx,%rdi
mov    %r15,%rsi
call   1050 <strtok@plt>
xor    %edi,%edi
mov    %r15,%rsi
call   1050 <strtok@plt>
test   %rax,%rax
je     12b2 <AppExec+0x172>
mov    %rax,%rbx
mov    (%rax),%al
cmp    $0x70,%al
jne    11c3 <AppExec+0x83>
cmpb   $0x6e,0x1(%rbx)
jne    12cf <AppExec+0x18f>
cmpb   $0x67,0x2(%rbx)
jne    12cf <AppExec+0x18f>
lea    0xe5c(%rip),%rsi
mov    %rsp,%r15
mov    %r15,%rdi
mov    %r14,%rdx
call   1060 <sprintf@plt>
mov    %r15,%rdi
call   1040 <system@plt>
mov    (%rbx),%al
cmp    $0x6a,%al
jne    1233 <AppExec+0xf3>
cmpb   $0x70,0x1(%rbx)
jne    11f6 <AppExec+0xb6>
cmpb   $0x67,0x2(%rbx)
jne    11f6 <AppExec+0xb6>
lea    0xe2d(%rip),%rsi
mov    %rsp,%r15
mov    %r15,%rdi
mov    %r14,%rdx
call   1060 <sprintf@plt>
mov    %r15,%rdi
call   1040 <system@plt>
mov    (%rbx),%al
cmp    $0x6a,%al
jne    1233 <AppExec+0xf3>
cmpb   $0x70,0x1(%rbx)
jne    12cf <AppExec+0x18f>
cmpb   $0x65,0x2(%rbx)
jne    12cf <AppExec+0x18f>
cmpb   $0x67,0x3(%rbx)
jne    12cf <AppExec+0x18f>
lea    0xdec(%rip),%rsi
mov    %rsp,%r15
mov    %r15,%rdi
mov    %r14,%rdx
call   1060 <sprintf@plt>
mov    %r15,%rdi
call   1040 <system@plt>
mov    (%rbx),%al
cmp    $0x74,%al
jne    126a <AppExec+0x12a>
cmpb   $0x78,0x1(%rbx)
jne    12cf <AppExec+0x18f>
cmpb   $0x74,0x2(%rbx)
jne    12cf <AppExec+0x18f>
lea    0xdc1(%rip),%rsi
mov    %rsp,%r15
mov    %r15,%rdi
mov    %r14,%rdx
call   1060 <sprintf@plt>
mov    %r15,%rdi
call   1040 <system@plt>
mov    (%rbx),%al
cmp    $0x63,%al
jne    1299 <AppExec+0x159>
cmpb   $0x66,0x1(%rbx)
jne    12cf <AppExec+0x18f>
cmpb   $0x67,0x2(%rbx)
jne    12cf <AppExec+0x18f>
lea    0xd92(%rip),%rsi
mov    %rsp,%r15
mov    %r15,%rdi
mov    %r14,%rdx
call   1060 <sprintf@plt>
mov    %r15,%rdi
call   1040 <system@plt>
mov    (%rbx),%al
cmp    $0x6c,%al
jne    12cf <AppExec+0x18f>
cmpb   $0x6f,0x1(%rbx)
jne    12cf <AppExec+0x18f>
cmpb   $0x67,0x2(%rbx)
jne    12cf <AppExec+0x18f>
lea    0xd63(%rip),%rsi
jmp    12b9 <AppExec+0x179>
lea    0xd49(%rip),%rsi
mov    %rsp,%rbx
mov    %rbx,%rdi
mov    %r14,%rdx
call   1060 <sprintf@plt>
mov    %rbx,%rdi
call   1040 <system@plt>
add    $0x200,%rsp
pop    %rbx
pop    %r14
pop    %r15
ret

LLVM IR (-O0):
@.str = [2 x i8] c".\00"
@.str.1 = [5 x i8] c"./%s\00"
@.str.2 = [12 x i8] c"shotwell %s\00"
@.str.3 = [9 x i8] c"gedit %s\00"
define void @AppExec(i8* %0) {
%2 = alloca i8*
%3 = alloca i8*
%4 = alloca [255 x i8]
%5 = alloca [255 x i8]
store i8* %0, i8** %2
%6 = getelementptr inbounds [255 x i8], [255 x i8]* %4, i64 0, i64 0
%7 = load i8*, i8** %2
%8 = call i32 @strcpy(i8* %6, i8* %7)
%9 = getelementptr inbounds [255 x i8], [255 x i8]* %4, i64 0, i64 0
%10 = call i8* @strtok(i8* %9, i8* getelementptr inbounds ([2 x i8], [2 x i8]* @.str, i64 0, i64 0))
%11 = call i8* @strtok(i8* null, i8* getelementptr inbounds ([2 x i8], [2 x i8]* @.str, i64 0, i64 0))
store i8* %11, i8** %3
%12 = load i8*, i8** %3
%13 = icmp eq i8* %12, null
br i1 %13, label %14, label %20
14: ; preds = %1
%15 = getelementptr inbounds [255 x i8], [255 x i8]* %5, i64 0, i64 0
%16 = load i8*, i8** %2
%17 = call i32 @sprintf(i8* %15, i8* getelementptr inbounds ([5 x i8], [5 x i8]* @.str.1, i64 0, i64 0), i8* %16)
%18 = getelementptr inbounds [255 x i8], [255 x i8]* %5, i64 0, i64 0
%19 = call i32 @system(i8* %18)
br label %170
20: ; preds = %1
%21 = load i8*, i8** %3
%22 = getelementptr inbounds i8, i8* %21, i64 0
%23 = load i8, i8* %22
%24 = sext i8 %23 to i32
%25 = icmp eq i32 %24, 112
br i1 %25, label %26, label %44
26: ; preds = %20
%27 = load i8*, i8** %3
%28 = getelementptr inbounds i8, i8* %27, i64 1
%29 = load i8, i8* %28
%30 = sext i8 %29 to i32
%31 = icmp eq i32 %30, 110
br i1 %31, label %32, label %44
32: ; preds = %26
%33 = load i8*, i8** %3
%34 = getelementptr inbounds i8, i8* %33, i64 2
%35 = load i8, i8* %34
%36 = sext i8 %35 to i32
%37 = icmp eq i32 %36, 103
br i1 %37, label %38, label %44
38: ; preds = %32
%39 = getelementptr inbounds [255 x i8], [255 x i8]* %5, i64 0, i64 0
%40 = load i8*, i8** %2
%41 = call i32 @sprintf(i8* %39, i8* getelementptr inbounds ([12 x i8], [12 x i8]* @.str.2, i64 0, i64 0), i8* %40)
%42 = getelementptr inbounds [255 x i8], [255 x i8]* %5, i64 0, i64 0
%43 = call i32 @system(i8* %42)
br label %44
44: ; preds = %38, %32, %26, %20
%45 = load i8*, i8** %3
%46 = getelementptr inbounds i8, i8* %45, i64 0
%47 = load i8, i8* %46
%48 = sext i8 %47 to i32
%49 = icmp eq i32 %48, 106
br i1 %49, label %50, label %68
50: ; preds = %44
%51 = load i8*, i8** %3
%52 = getelementptr inbounds i8, i8* %51, i64 1
%53 = load i8, i8* %52
%54 = sext i8 %53 to i32
%55 = icmp eq i32 %54, 112
br i1 %55, label %56, label %68
56: ; preds = %50
%57 = load i8*, i8** %3
%58 = getelementptr inbounds i8, i8* %57, i64 2
%59 = load i8, i8* %58
%60 = sext i8 %59 to i32
%61 = icmp eq i32 %60, 103
br i1 %61, label %62, label %68
62: ; preds = %56
%63 = getelementptr inbounds [255 x i8], [255 x i8]* %5, i64 0, i64 0
%64 = load i8*, i8** %2
%65 = call i32 @sprintf(i8* %63, i8* getelementptr inbounds ([12 x i8], [12 x i8]* @.str.2, i64 0, i64 0), i8* %64)
%66 = getelementptr inbounds [255 x i8], [255 x i8]* %5, i64 0, i64 0
%67 = call i32 @system(i8* %66)
br label %68
68: ; preds = %62, %56, %50, %44
%69 = load i8*, i8** %3
%70 = getelementptr inbounds i8, i8* %69, i64 0
%71 = load i8, i8* %70
%72 = sext i8 %71 to i32
%73 = icmp eq i32 %72, 106
br i1 %73, label %74, label %98
74: ; preds = %68
%75 = load i8*, i8** %3
%76 = getelementptr inbounds i8, i8* %75, i64 1
%77 = load i8, i8* %76
%78 = sext i8 %77 to i32
%79 = icmp eq i32 %78, 112
br i1 %79, label %80, label %98
80: ; preds = %74
%81 = load i8*, i8** %3
%82 = getelementptr inbounds i8, i8* %81, i64 2
%83 = load i8, i8* %82
%84 = sext i8 %83 to i32
%85 = icmp eq i32 %84, 101
br i1 %85, label %86, label %98
86: ; preds = %80
%87 = load i8*, i8** %3
%88 = getelementptr inbounds i8, i8* %87, i64 3
%89 = load i8, i8* %88
%90 = sext i8 %89 to i32
%91 = icmp eq i32 %90, 103
br i1 %91, label %92, label %98
92: ; preds = %86
%93 = getelementptr inbounds [255 x i8], [255 x i8]* %5, i64 0, i64 0
%94 = load i8*, i8** %2
%95 = call i32 @sprintf(i8* %93, i8* getelementptr inbounds ([12 x i8], [12 x i8]* @.str.2, i64 0, i64 0), i8* %94)
%96 = getelementptr inbounds [255 x i8], [255 x i8]* %5, i64 0, i64 0
%97 = call i32 @system(i8* %96)
br label %98
98: ; preds = %92, %86, %80, %74, %68
%99 = load i8*, i8** %3
%100 = getelementptr inbounds i8, i8* %99, i64 0
%101 = load i8, i8* %100
%102 = sext i8 %101 to i32
%103 = icmp eq i32 %102, 116
br i1 %103, label %104, label %122
104: ; preds = %98
%105 = load i8*, i8** %3
%106 = getelementptr inbounds i8, i8* %105, i64 1
%107 = load i8, i8* %106
%108 = sext i8 %107 to i32
%109 = icmp eq i32 %108, 120
br i1 %109, label %110, label %122
110: ; preds = %104
%111 = load i8*, i8** %3
%112 = getelementptr inbounds i8, i8* %111, i64 2
%113 = load i8, i8* %112
%114 = sext i8 %113 to i32
%115 = icmp eq i32 %114, 116
br i1 %115, label %116, label %122
116: ; preds = %110
%117 = getelementptr inbounds [255 x i8], [255 x i8]* %5, i64 0, i64 0
%118 = load i8*, i8** %2
%119 = call i32 @sprintf(i8* %117, i8* getelementptr inbounds ([9 x i8], [9 x i8]* @.str.3, i64 0, i64 0), i8* %118)
%120 = getelementptr inbounds [255 x i8], [255 x i8]* %5, i64 0, i64 0
%121 = call i32 @system(i8* %120)
br label %122
122: ; preds = %116, %110, %104, %98
%123 = load i8*, i8** %3
%124 = getelementptr inbounds i8, i8* %123, i64 0
%125 = load i8, i8* %124
%126 = sext i8 %125 to i32
%127 = icmp eq i32 %126, 99
br i1 %127, label %128, label %146
128: ; preds = %122
%129 = load i8*, i8** %3
%130 = getelementptr inbounds i8, i8* %129, i64 1
%131 = load i8, i8* %130
%132 = sext i8 %131 to i32
%133 = icmp eq i32 %132, 102
br i1 %133, label %134, label %146
134: ; preds = %128
%135 = load i8*, i8** %3
%136 = getelementptr inbounds i8, i8* %135, i64 2
%137 = load i8, i8* %136
%138 = sext i8 %137 to i32
%139 = icmp eq i32 %138, 103
br i1 %139, label %140, label %146
140: ; preds = %134
%141 = getelementptr inbounds [255 x i8], [255 x i8]* %5, i64 0, i64 0
%142 = load i8*, i8** %2
%143 = call i32 @sprintf(i8* %141, i8* getelementptr inbounds ([9 x i8], [9 x i8]* @.str.3, i64 0, i64 0), i8* %142)
%144 = getelementptr inbounds [255 x i8], [255 x i8]* %5, i64 0, i64 0
%145 = call i32 @system(i8* %144)
br label %146
146: ; preds = %140, %134, %128, %122
%147 = load i8*, i8** %3
%148 = getelementptr inbounds i8, i8* %147, i64 0
%149 = load i8, i8* %148
%150 = sext i8 %149 to i32
%151 = icmp eq i32 %150, 108
br i1 %151, label %152, label %170
152: ; preds = %146
%153 = load i8*, i8** %3
%154 = getelementptr inbounds i8, i8* %153, i64 1
%155 = load i8, i8* %154
%156 = sext i8 %155 to i32
%157 = icmp eq i32 %156, 111
br i1 %157, label %158, label %170
158: ; preds = %152
%159 = load i8*, i8** %3
%160 = getelementptr inbounds i8, i8* %159, i64 2
%161 = load i8, i8* %160
%162 = sext i8 %161 to i32
%163 = icmp eq i32 %162, 103
br i1 %163, label %164, label %170
164: ; preds = %158
%165 = getelementptr inbounds [255 x i8], [255 x i8]* %5, i64 0, i64 0
%166 = load i8*, i8** %2
%167 = call i32 @sprintf(i8* %165, i8* getelementptr inbounds ([9 x i8], [9 x i8]* @.str.3, i64 0, i64 0), i8* %166)
%168 = getelementptr inbounds [255 x i8], [255 x i8]* %5, i64 0, i64 0
%169 = call i32 @system(i8* %168)
br label %170
170: ; preds = %14, %164, %158, %152, %146
ret void
}

LLVM IR (-O2):
@.str = [2 x i8] c".\00"
@.str.1 = [5 x i8] c"./%s\00"
@.str.2 = [12 x i8] c"shotwell %s\00"
@.str.3 = [9 x i8] c"gedit %s\00"
define void @AppExec(i8* %0) {
%2 = alloca [255 x i8]
%3 = alloca [255 x i8]
%4 = getelementptr inbounds [255 x i8], [255 x i8]* %2, i64 0, i64 0
%5 = getelementptr inbounds [255 x i8], [255 x i8]* %3, i64 0, i64 0
%6 = call i32 @strcpy(i8* %4, i8* %0)
%7 = call i8* @strtok(i8* %4, i8* getelementptr inbounds ([2 x i8], [2 x i8]* @.str, i64 0, i64 0))
%8 = call i8* @strtok(i8* null, i8* getelementptr inbounds ([2 x i8], [2 x i8]* @.str, i64 0, i64 0))
%9 = icmp eq i8* %8, null
br i1 %9, label %98, label %10
10: ; preds = %1
%11 = load i8, i8* %8
%12 = icmp eq i8 %11, 112
br i1 %12, label %13, label %25
13: ; preds = %10
%14 = getelementptr inbounds i8, i8* %8, i64 1
%15 = load i8, i8* %14
%16 = icmp eq i8 %15, 110
br i1 %16, label %17, label %102
17: ; preds = %13
%18 = getelementptr inbounds i8, i8* %8, i64 2
%19 = load i8, i8* %18
%20 = icmp eq i8 %19, 103
br i1 %20, label %21, label %102
21: ; preds = %17
%22 = call i32 @sprintf(i8* %5, i8* dereferenceable(1) getelementptr inbounds ([12 x i8], [12 x i8]* @.str.2, i64 0, i64 0), i8* %0)
%23 = call i32 @system(i8* %5)
%24 = load i8, i8* %8
br label %25
25: ; preds = %21, %10
%26 = phi i8 [ %11, %10 ], [ %24, %21 ]
%27 = icmp eq i8 %26, 106
br i1 %27, label %28, label %57
28: ; preds = %25
%29 = getelementptr inbounds i8, i8* %8, i64 1
%30 = load i8, i8* %29
%31 = icmp eq i8 %30, 112
br i1 %31, label %32, label %41
32: ; preds = %28
%33 = getelementptr inbounds i8, i8* %8, i64 2
%34 = load i8, i8* %33
%35 = icmp eq i8 %34, 103
br i1 %35, label %36, label %41
36: ; preds = %32
%37 = call i32 @sprintf(i8* %5, i8* dereferenceable(1) getelementptr inbounds ([12 x i8], [12 x i8]* @.str.2, i64 0, i64 0), i8* %0)
%38 = call i32 @system(i8* %5)
%39 = load i8, i8* %8
%40 = icmp eq i8 %39, 106
br i1 %40, label %41, label %57
41: ; preds = %28, %32, %36
%42 = getelementptr inbounds i8, i8* %8, i64 1
%43 = load i8, i8* %42
%44 = icmp eq i8 %43, 112
br i1 %44, label %45, label %102
45: ; preds = %41
%46 = getelementptr inbounds i8, i8* %8, i64 2
%47 = load i8, i8* %46
%48 = icmp eq i8 %47, 101
br i1 %48, label %49, label %102
49: ; preds = %45
%50 = getelementptr inbounds i8, i8* %8, i64 3
%51 = load i8, i8* %50
%52 = icmp eq i8 %51, 103
br i1 %52, label %53, label %102
53: ; preds = %49
%54 = call i32 @sprintf(i8* %5, i8* dereferenceable(1) getelementptr inbounds ([12 x i8], [12 x i8]* @.str.2, i64 0, i64 0), i8* %0)
%55 = call i32 @system(i8* %5)
%56 = load i8, i8* %8
br label %57
57: ; preds = %25, %53, %36
%58 = phi i8 [ %39, %36 ], [ %56, %53 ], [ %26, %25 ]
%59 = icmp eq i8 %58, 116
br i1 %59, label %60, label %72
60: ; preds = %57
%61 = getelementptr inbounds i8, i8* %8, i64 1
%62 = load i8, i8* %61
%63 = icmp eq i8 %62, 120
br i1 %63, label %64, label %102
64: ; preds = %60
%65 = getelementptr inbounds i8, i8* %8, i64 2
%66 = load i8, i8* %65
%67 = icmp eq i8 %66, 116
br i1 %67, label %68, label %102
68: ; preds = %64
%69 = call i32 @sprintf(i8* %5, i8* dereferenceable(1) getelementptr inbounds ([9 x i8], [9 x i8]* @.str.3, i64 0, i64 0), i8* %0)
%70 = call i32 @system(i8* %5)
%71 = load i8, i8* %8
br label %72
72: ; preds = %68, %57
%73 = phi i8 [ %71, %68 ], [ %58, %57 ]
%74 = icmp eq i8 %73, 99
br i1 %74, label %75, label %87
75: ; preds = %72
%76 = getelementptr inbounds i8, i8* %8, i64 1
%77 = load i8, i8* %76
%78 = icmp eq i8 %77, 102
br i1 %78, label %79, label %102
79: ; preds = %75
%80 = getelementptr inbounds i8, i8* %8, i64 2
%81 = load i8, i8* %80
%82 = icmp eq i8 %81, 103
br i1 %82, label %83, label %102
83: ; preds = %79
%84 = call i32 @sprintf(i8* %5, i8* dereferenceable(1) getelementptr inbounds ([9 x i8], [9 x i8]* @.str.3, i64 0, i64 0), i8* %0)
%85 = call i32 @system(i8* %5)
%86 = load i8, i8* %8
br label %87
87: ; preds = %83, %72
%88 = phi i8 [ %73, %72 ], [ %86, %83 ]
%89 = icmp eq i8 %88, 108
br i1 %89, label %90, label %102
90: ; preds = %87
%91 = getelementptr inbounds i8, i8* %8, i64 1
%92 = load i8, i8* %91
%93 = icmp eq i8 %92, 111
br i1 %93, label %94, label %102
94: ; preds = %90
%95 = getelementptr inbounds i8, i8* %8, i64 2
%96 = load i8, i8* %95
%97 = icmp eq i8 %96, 103
br i1 %97, label %98, label %102
98: ; preds = %94, %1
%99 = phi i8* [ getelementptr inbounds ([5 x i8], [5 x i8]* @.str.1, i64 0, i64 0), %1 ], [ getelementptr inbounds ([9 x i8], [9 x i8]* @.str.3, i64 0, i64 0), %94 ]
%100 = call i32 @sprintf(i8* %5, i8* dereferenceable(1) %99, i8* %0)
%101 = call i32 @system(i8* %5)
br label %102
102: ; preds = %98, %17, %13, %49, %45, %41, %60, %64, %79, %75, %87, %90, %94
ret void
}