#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 */
typedef int /*<<< orphan*/ command;

/* Variables and functions */
int /*<<< orphan*/ getenv(char *);
int /*<<< orphan*/ printf(char *, char *);
int /*<<< orphan*/ strcmp(char *, char *);
int strlen(char *);
int /*<<< orphan*/ strncat(char *, char *, int);
int /*<<< orphan*/ strncpy(char *, int /*<<< orphan*/, int);
int /*<<< orphan*/ system(char *);
int main(int argc, char *argv[]) {
  char command[255] = "";
  int a, i;
  strncpy(command, getenv("COMSPEC"), sizeof(command) - 1);
  command[sizeof(command) - 1] = '\0';
  if (!strcmp(command, "")) {
    strncpy(command, getenv("SystemRoot"), sizeof(command) - 1);
    command[sizeof(command) - 1] = '\0';
    strncat(command, "/system32/cmd.exe",
            sizeof(command) - 1 - strlen(command));
  }
  for (a = 0; a < strlen(command); a++)
    if ((char)command[a] == '\\')
      command[a] = '/';
  strncat(command, " /q", sizeof(command) - 1 - strlen(command));
  if (argc > 1 && !(strcmp(argv[1], "-c"))) {
    command[0] = '\0';
    strncat(command, "/bin/sh.exe -c \"", sizeof(command) - 1);
    for (i = 2; i < argc; i++) {
      strncat(command, argv[i], sizeof(command) - 1 - strlen(command));
      strncat(command, " ", sizeof(command) - 1 - strlen(command));
    }
    strncat(command, "\"", sizeof(command) - 1);
  }
  if (argc > 1 && !(strcmp(argv[1], "-p")))
    printf("Command to execute: %s\n", command);
  system(command);
  return (0);
}


x86 assembly (clang, -O0):
<main>:
push   %rbp
mov    %rsp,%rbp
sub    $0x160,%rsp
movl   $0x0,-0x4(%rbp)
mov    %edi,-0x8(%rbp)
mov    %rsi,-0x10(%rbp)
lea    -0x110(%rbp),%rdi
xor    %esi,%esi
mov    $0xff,%edx
call   1080 <memset@plt>
lea    -0x110(%rbp),%rax
mov    %rax,-0x120(%rbp)
lea    0xe3f(%rip),%rdi
call   1030 <getenv@plt>
mov    -0x120(%rbp),%rdi
mov    %eax,%esi
mov    $0xfe,%edx
call   1040 <strncpy@plt>
movb   $0x0,-0x12(%rbp)
lea    -0x110(%rbp),%rdi
lea    0xe6e(%rip),%rsi
call   10a0 <strcmp@plt>
cmp    $0x0,%eax
jne    1264 <main+0xe4>
lea    -0x110(%rbp),%rax
mov    %rax,-0x130(%rbp)
lea    0xdfa(%rip),%rdi
call   1030 <getenv@plt>
mov    -0x130(%rbp),%rdi
mov    %eax,%esi
mov    $0xfe,%edx
call   1040 <strncpy@plt>
movb   $0x0,-0x12(%rbp)
lea    -0x110(%rbp),%rax
mov    %rax,-0x128(%rbp)
lea    -0x110(%rbp),%rdi
call   1050 <strlen@plt>
mov    -0x128(%rbp),%rdi
movslq %eax,%rcx
mov    $0xfe,%eax
sub    %rcx,%rax
mov    %eax,%edx
lea    0xdb4(%rip),%rsi
call   1090 <strncat@plt>
movl   $0x0,-0x114(%rbp)
mov    -0x114(%rbp),%eax
mov    %eax,-0x134(%rbp)
lea    -0x110(%rbp),%rdi
call   1050 <strlen@plt>
mov    %eax,%ecx
mov    -0x134(%rbp),%eax
cmp    %ecx,%eax
jge    12d6 <main+0x156>
movslq -0x114(%rbp),%rax
movsbl -0x110(%rbp,%rax,1),%eax
ff
cmp    $0x5c,%eax
jne    12bd <main+0x13d>
movslq -0x114(%rbp),%rax
movb   $0x2f,-0x110(%rbp,%rax,1)
2f
jmp    12c2 <main+0x142>
mov    -0x114(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0x114(%rbp)
jmp    126e <main+0xee>
lea    -0x110(%rbp),%rax
mov    %rax,-0x140(%rbp)
lea    -0x110(%rbp),%rdi
call   1050 <strlen@plt>
mov    -0x140(%rbp),%rdi
movslq %eax,%rcx
mov    $0xfe,%eax
sub    %rcx,%rax
mov    %eax,%edx
lea    0xd1a(%rip),%rsi
call   1090 <strncat@plt>
cmpl   $0x1,-0x8(%rbp)
jle    1425 <main+0x2a5>
mov    -0x10(%rbp),%rax
mov    0x8(%rax),%rdi
lea    0xd00(%rip),%rsi
call   10a0 <strcmp@plt>
cmp    $0x0,%eax
jne    1425 <main+0x2a5>
movb   $0x0,-0x110(%rbp)
lea    -0x110(%rbp),%rdi
lea    0xce0(%rip),%rsi
mov    $0xfe,%edx
call   1090 <strncat@plt>
movl   $0x2,-0x118(%rbp)
mov    -0x118(%rbp),%eax
cmp    -0x8(%rbp),%eax
jge    140d <main+0x28d>
lea    -0x110(%rbp),%rax
mov    %rax,-0x158(%rbp)
mov    -0x10(%rbp),%rax
movslq -0x118(%rbp),%rcx
mov    (%rax,%rcx,8),%rax
mov    %rax,-0x150(%rbp)
lea    -0x110(%rbp),%rdi
call   1050 <strlen@plt>
mov    -0x158(%rbp),%rdi
mov    -0x150(%rbp),%rsi
movslq %eax,%rcx
mov    $0xfe,%eax
sub    %rcx,%rax
mov    %eax,%edx
call   1090 <strncat@plt>
lea    -0x110(%rbp),%rax
mov    %rax,-0x148(%rbp)
lea    -0x110(%rbp),%rdi
call   1050 <strlen@plt>
mov    -0x148(%rbp),%rdi
movslq %eax,%rcx
mov    $0xfe,%eax
sub    %rcx,%rax
mov    %eax,%edx
lea    0xc49(%rip),%rsi
call   1090 <strncat@plt>
mov    -0x118(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0x118(%rbp)
jmp    1360 <main+0x1e0>
lea    -0x110(%rbp),%rdi
lea    0xc20(%rip),%rsi
mov    $0xfe,%edx
call   1090 <strncat@plt>
cmpl   $0x1,-0x8(%rbp)
jle    145f <main+0x2df>
mov    -0x10(%rbp),%rax
mov    0x8(%rax),%rdi
lea    0xc01(%rip),%rsi
call   10a0 <strcmp@plt>
cmp    $0x0,%eax
jne    145f <main+0x2df>
lea    -0x110(%rbp),%rsi
lea    0xbe8(%rip),%rdi
call   1070 <printf@plt>
lea    -0x110(%rbp),%rdi
call   1060 <system@plt>
xor    %eax,%eax
add    $0x160,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<main>:
push   %rbp
push   %r15
push   %r14
push   %r13
push   %r12
push   %rbx
sub    $0x108,%rsp
mov    %rsi,%r14
mov    %edi,%r15d
xorps  %xmm0,%xmm0
movups %xmm0,0xef(%rsp)
movaps %xmm0,0xe0(%rsp)
movaps %xmm0,0xd0(%rsp)
movaps %xmm0,0xc0(%rsp)
movaps %xmm0,0xb0(%rsp)
movaps %xmm0,0xa0(%rsp)
movaps %xmm0,0x90(%rsp)
movaps %xmm0,0x80(%rsp)
movaps %xmm0,0x70(%rsp)
movaps %xmm0,0x60(%rsp)
movaps %xmm0,0x50(%rsp)
movaps %xmm0,0x40(%rsp)
movaps %xmm0,0x30(%rsp)
movaps %xmm0,0x20(%rsp)
movaps %xmm0,0x10(%rsp)
movaps %xmm0,(%rsp)
lea    0xe08(%rip),%rdi
call   1030 <getenv@plt>
mov    %rsp,%rdi
mov    $0xfe,%ebx
mov    %eax,%esi
mov    $0xfe,%edx
call   1040 <strncpy@plt>
movb   $0x0,0xfe(%rsp)
cmpb   $0x0,(%rsp)
jne    1260 <main+0xf0>
lea    0xde2(%rip),%rdi
call   1030 <getenv@plt>
mov    %rsp,%rbp
mov    %rbp,%rdi
mov    %eax,%esi
mov    $0xfe,%edx
call   1040 <strncpy@plt>
movb   $0x0,0xfe(%rsp)
mov    %rbp,%rdi
call   1050 <strlen@plt>
sub    %eax,%ebx
lea    0xdbd(%rip),%rsi
mov    %rbp,%rdi
mov    %ebx,%edx
call   1080 <strncat@plt>
mov    %rsp,%rdi
call   1050 <strlen@plt>
test   %eax,%eax
jle    129f <main+0x12f>
xor    %ebp,%ebp
mov    %rsp,%rbx
jmp    1293 <main+0x123>
cs nopw 0x0(%rax,%rax,1)
nopl   (%rax)
add    $0x1,%rbp
mov    %rbx,%rdi
call   1050 <strlen@plt>
cltq
cmp    %rax,%rbp
jge    129f <main+0x12f>
cmpb   $0x5c,(%rsp,%rbp,1)
jne    1280 <main+0x110>
movb   $0x2f,(%rsp,%rbp,1)
jmp    1280 <main+0x110>
mov    %rsp,%rbx
mov    %rbx,%rdi
call   1050 <strlen@plt>
mov    $0xfe,%edx
sub    %eax,%edx
lea    0xd6d(%rip),%rsi
mov    %rbx,%rdi
call   1080 <strncat@plt>
cmp    $0x2,%r15d
jl     139b <main+0x22b>
mov    0x8(%r14),%rbx
lea    0xd54(%rip),%rsi
mov    %rbx,%rdi
call   1090 <strcmp@plt>
test   %eax,%eax
jne    1379 <main+0x209>
movb   $0x0,(%rsp)
lea    0xd3c(%rip),%rsi
mov    %rsp,%rdi
mov    $0xfe,%edx
call   1080 <strncat@plt>
cmp    $0x3,%r15d
jb     1361 <main+0x1f1>
mov    %r15d,%r12d
mov    $0x2,%ebp
mov    %rsp,%r13
lea    0xd28(%rip),%r15
cs nopw 0x0(%rax,%rax,1)
nop
mov    (%r14,%rbp,8),%rbx
mov    %r13,%rdi
call   1050 <strlen@plt>
mov    $0xfe,%edx
sub    %eax,%edx
mov    %r13,%rdi
mov    %rbx,%rsi
call   1080 <strncat@plt>
mov    %r13,%rdi
call   1050 <strlen@plt>
mov    $0xfe,%edx
sub    %eax,%edx
mov    %r13,%rdi
mov    %r15,%rsi
call   1080 <strncat@plt>
add    $0x1,%rbp
cmp    %rbp,%r12
jne    1320 <main+0x1b0>
lea    0xcd3(%rip),%rsi
mov    %rsp,%rdi
mov    $0xfe,%edx
call   1080 <strncat@plt>
mov    0x8(%r14),%rbx
lea    0xcbf(%rip),%rsi
mov    %rbx,%rdi
call   1090 <strcmp@plt>
test   %eax,%eax
jne    139b <main+0x22b>
lea    0xcaf(%rip),%rdi
mov    %rsp,%rsi
call   1070 <printf@plt>
mov    %rsp,%rdi
call   1060 <system@plt>
xor    %eax,%eax
add    $0x108,%rsp
pop    %rbx
pop    %r12
pop    %r13
pop    %r14
pop    %r15
pop    %rbp
ret

LLVM IR (-O0):
@.str = [8 x i8] c"COMSPEC\00"
@.str.1 = [1 x i8] zeroinitializer
@.str.2 = [11 x i8] c"SystemRoot\00"
@.str.3 = [18 x i8] c"/system32/cmd.exe\00"
@.str.4 = [4 x i8] c" /q\00"
@.str.5 = [3 x i8] c"-c\00"
@.str.6 = [17 x i8] c"/bin/sh.exe -c \22\00"
@.str.7 = [2 x i8] c" \00"
@.str.8 = [2 x i8] c"\22\00"
@.str.9 = [3 x i8] c"-p\00"
@.str.10 = [24 x i8] c"Command to execute: %s\0A\00"
define i32 @main(i32 %0, i8** %1) {
%3 = alloca i32
%4 = alloca i32
%5 = alloca i8**
%6 = alloca [255 x i8]
%7 = alloca i32
%8 = alloca i32
store i32 0, i32* %3
store i32 %0, i32* %4
store i8** %1, i8*** %5
%9 = bitcast [255 x i8]* %6 to i8*
%10 = getelementptr inbounds [255 x i8], [255 x i8]* %6, i64 0, i64 0
%11 = call i32 @getenv(i8* getelementptr inbounds ([8 x i8], [8 x i8]* @.str, i64 0, i64 0))
%12 = call i32 @strncpy(i8* %10, i32 %11, i32 254)
%13 = getelementptr inbounds [255 x i8], [255 x i8]* %6, i64 0, i64 254
store i8 0, i8* %13
%14 = getelementptr inbounds [255 x i8], [255 x i8]* %6, i64 0, i64 0
%15 = call i32 @strcmp(i8* %14, i8* getelementptr inbounds ([1 x i8], [1 x i8]* @.str.1, i64 0, i64 0))
%16 = icmp ne i32 %15, 0
br i1 %16, label %29, label %17
17: ; preds = %2
%18 = getelementptr inbounds [255 x i8], [255 x i8]* %6, i64 0, i64 0
%19 = call i32 @getenv(i8* getelementptr inbounds ([11 x i8], [11 x i8]* @.str.2, i64 0, i64 0))
%20 = call i32 @strncpy(i8* %18, i32 %19, i32 254)
%21 = getelementptr inbounds [255 x i8], [255 x i8]* %6, i64 0, i64 254
store i8 0, i8* %21
%22 = getelementptr inbounds [255 x i8], [255 x i8]* %6, i64 0, i64 0
%23 = getelementptr inbounds [255 x i8], [255 x i8]* %6, i64 0, i64 0
%24 = call i32 @strlen(i8* %23)
%25 = sext i32 %24 to i64
%26 = sub i64 254, %25
%27 = trunc i64 %26 to i32
%28 = call i32 @strncat(i8* %22, i8* getelementptr inbounds ([18 x i8], [18 x i8]* @.str.3, i64 0, i64 0), i32 %27)
br label %29
29: ; preds = %17, %2
store i32 0, i32* %7
br label %30
30: ; preds = %47, %29
%31 = load i32, i32* %7
%32 = getelementptr inbounds [255 x i8], [255 x i8]* %6, i64 0, i64 0
%33 = call i32 @strlen(i8* %32)
%34 = icmp slt i32 %31, %33
br i1 %34, label %35, label %50
35: ; preds = %30
%36 = load i32, i32* %7
%37 = sext i32 %36 to i64
%38 = getelementptr inbounds [255 x i8], [255 x i8]* %6, i64 0, i64 %37
%39 = load i8, i8* %38
%40 = sext i8 %39 to i32
%41 = icmp eq i32 %40, 92
br i1 %41, label %42, label %46
42: ; preds = %35
%43 = load i32, i32* %7
%44 = sext i32 %43 to i64
%45 = getelementptr inbounds [255 x i8], [255 x i8]* %6, i64 0, i64 %44
store i8 47, i8* %45
br label %46
46: ; preds = %42, %35
br label %47
47: ; preds = %46
%48 = load i32, i32* %7
%49 = add nsw i32 %48, 1
store i32 %49, i32* %7
br label %30
50: ; preds = %30
%51 = getelementptr inbounds [255 x i8], [255 x i8]* %6, i64 0, i64 0
%52 = getelementptr inbounds [255 x i8], [255 x i8]* %6, i64 0, i64 0
%53 = call i32 @strlen(i8* %52)
%54 = sext i32 %53 to i64
%55 = sub i64 254, %54
%56 = trunc i64 %55 to i32
%57 = call i32 @strncat(i8* %51, i8* getelementptr inbounds ([4 x i8], [4 x i8]* @.str.4, i64 0, i64 0), i32 %56)
%58 = load i32, i32* %4
%59 = icmp sgt i32 %58, 1
br i1 %59, label %60, label %100
60: ; preds = %50
%61 = load i8**, i8*** %5
%62 = getelementptr inbounds i8*, i8** %61, i64 1
%63 = load i8*, i8** %62
%64 = call i32 @strcmp(i8* %63, i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str.5, i64 0, i64 0))
%65 = icmp ne i32 %64, 0
br i1 %65, label %100, label %66
66: ; preds = %60
%67 = getelementptr inbounds [255 x i8], [255 x i8]* %6, i64 0, i64 0
store i8 0, i8* %67
%68 = getelementptr inbounds [255 x i8], [255 x i8]* %6, i64 0, i64 0
%69 = call i32 @strncat(i8* %68, i8* getelementptr inbounds ([17 x i8], [17 x i8]* @.str.6, i64 0, i64 0), i32 254)
store i32 2, i32* %8
br label %70
70: ; preds = %94, %66
%71 = load i32, i32* %8
%72 = load i32, i32* %4
%73 = icmp slt i32 %71, %72
br i1 %73, label %74, label %97
74: ; preds = %70
%75 = getelementptr inbounds [255 x i8], [255 x i8]* %6, i64 0, i64 0
%76 = load i8**, i8*** %5
%77 = load i32, i32* %8
%78 = sext i32 %77 to i64
%79 = getelementptr inbounds i8*, i8** %76, i64 %78
%80 = load i8*, i8** %79
%81 = getelementptr inbounds [255 x i8], [255 x i8]* %6, i64 0, i64 0
%82 = call i32 @strlen(i8* %81)
%83 = sext i32 %82 to i64
%84 = sub i64 254, %83
%85 = trunc i64 %84 to i32
%86 = call i32 @strncat(i8* %75, i8* %80, i32 %85)
%87 = getelementptr inbounds [255 x i8], [255 x i8]* %6, i64 0, i64 0
%88 = getelementptr inbounds [255 x i8], [255 x i8]* %6, i64 0, i64 0
%89 = call i32 @strlen(i8* %88)
%90 = sext i32 %89 to i64
%91 = sub i64 254, %90
%92 = trunc i64 %91 to i32
%93 = call i32 @strncat(i8* %87, i8* getelementptr inbounds ([2 x i8], [2 x i8]* @.str.7, i64 0, i64 0), i32 %92)
br label %94
94: ; preds = %74
%95 = load i32, i32* %8
%96 = add nsw i32 %95, 1
store i32 %96, i32* %8
br label %70
97: ; preds = %70
%98 = getelementptr inbounds [255 x i8], [255 x i8]* %6, i64 0, i64 0
%99 = call i32 @strncat(i8* %98, i8* getelementptr inbounds ([2 x i8], [2 x i8]* @.str.8, i64 0, i64 0), i32 254)
br label %100
100: ; preds = %97, %60, %50
%101 = load i32, i32* %4
%102 = icmp sgt i32 %101, 1
br i1 %102, label %103, label %112
103: ; preds = %100
%104 = load i8**, i8*** %5
%105 = getelementptr inbounds i8*, i8** %104, i64 1
%106 = load i8*, i8** %105
%107 = call i32 @strcmp(i8* %106, i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str.9, i64 0, i64 0))
%108 = icmp ne i32 %107, 0
br i1 %108, label %112, label %109
109: ; preds = %103
%110 = getelementptr inbounds [255 x i8], [255 x i8]* %6, i64 0, i64 0
%111 = call i32 @printf(i8* getelementptr inbounds ([24 x i8], [24 x i8]* @.str.10, i64 0, i64 0), i8* %110)
br label %112
112: ; preds = %109, %103, %100
%113 = getelementptr inbounds [255 x i8], [255 x i8]* %6, i64 0, i64 0
%114 = call i32 @system(i8* %113)
ret i32 0
}

LLVM IR (-O2):
@.str = [8 x i8] c"COMSPEC\00"
@.str.2 = [11 x i8] c"SystemRoot\00"
@.str.3 = [18 x i8] c"/system32/cmd.exe\00"
@.str.4 = [4 x i8] c" /q\00"
@.str.5 = [3 x i8] c"-c\00"
@.str.6 = [17 x i8] c"/bin/sh.exe -c \22\00"
@.str.7 = [2 x i8] c" \00"
@.str.8 = [2 x i8] c"\22\00"
@.str.9 = [3 x i8] c"-p\00"
@.str.10 = [24 x i8] c"Command to execute: %s\0A\00"
define i32 @main(i32 %0, i8** nocapture %1) {
%3 = alloca [255 x i8]
%4 = getelementptr inbounds [255 x i8], [255 x i8]* %3, i64 0, i64 0
%5 = tail call i32 @getenv(i8* getelementptr inbounds ([8 x i8], [8 x i8]* @.str, i64 0, i64 0))
%6 = call i32 @strncpy(i8* %4, i32 %5, i32 254)
%7 = getelementptr inbounds [255 x i8], [255 x i8]* %3, i64 0, i64 254
store i8 0, i8* %7
%8 = load i8, i8* %4
%9 = icmp eq i8 %8, 0
br i1 %9, label %10, label %16
10: ; preds = %2
%11 = call i32 @getenv(i8* getelementptr inbounds ([11 x i8], [11 x i8]* @.str.2, i64 0, i64 0))
%12 = call i32 @strncpy(i8* %4, i32 %11, i32 254)
store i8 0, i8* %7
%13 = call i32 @strlen(i8* %4)
%14 = sub i32 254, %13
%15 = call i32 @strncat(i8* %4, i8* getelementptr inbounds ([18 x i8], [18 x i8]* @.str.3, i64 0, i64 0), i32 %14)
br label %16
16: ; preds = %10, %2
%17 = call i32 @strlen(i8* %4)
%18 = icmp sgt i32 %17, 0
br i1 %18, label %19, label %30
19: ; preds = %16, %25
%20 = phi i64 [ %26, %25 ], [ 0, %16 ]
%21 = getelementptr inbounds [255 x i8], [255 x i8]* %3, i64 0, i64 %20
%22 = load i8, i8* %21
%23 = icmp eq i8 %22, 92
br i1 %23, label %24, label %25
24: ; preds = %19
store i8 47, i8* %21
br label %25
25: ; preds = %19, %24
%26 = add nuw nsw i64 %20, 1
%27 = call i32 @strlen(i8* %4)
%28 = sext i32 %27 to i64
%29 = icmp slt i64 %26, %28
br i1 %29, label %19, label %30
30: ; preds = %25, %16
%31 = call i32 @strlen(i8* %4)
%32 = sub i32 254, %31
%33 = call i32 @strncat(i8* %4, i8* getelementptr inbounds ([4 x i8], [4 x i8]* @.str.4, i64 0, i64 0), i32 %32)
%34 = icmp sgt i32 %0, 1
br i1 %34, label %35, label %66
35: ; preds = %30
%36 = getelementptr inbounds i8*, i8** %1, i64 1
%37 = load i8*, i8** %36
%38 = call i32 @strcmp(i8* dereferenceable(1) %37, i8* dereferenceable(3) getelementptr inbounds ([3 x i8], [3 x i8]* @.str.5, i64 0, i64 0))
%39 = icmp eq i32 %38, 0
br i1 %39, label %40, label %60
40: ; preds = %35
store i8 0, i8* %4
%41 = call i32 @strncat(i8* %4, i8* getelementptr inbounds ([17 x i8], [17 x i8]* @.str.6, i64 0, i64 0), i32 254)
%42 = icmp ugt i32 %0, 2
br i1 %42, label %43, label %57
43: ; preds = %40
%44 = zext i32 %0 to i64
br label %45
45: ; preds = %43, %45
%46 = phi i64 [ 2, %43 ], [ %55, %45 ]
%47 = getelementptr inbounds i8*, i8** %1, i64 %46
%48 = load i8*, i8** %47
%49 = call i32 @strlen(i8* %4)
%50 = sub i32 254, %49
%51 = call i32 @strncat(i8* %4, i8* %48, i32 %50)
%52 = call i32 @strlen(i8* %4)
%53 = sub i32 254, %52
%54 = call i32 @strncat(i8* %4, i8* getelementptr inbounds ([2 x i8], [2 x i8]* @.str.7, i64 0, i64 0), i32 %53)
%55 = add nuw nsw i64 %46, 1
%56 = icmp eq i64 %55, %44
br i1 %56, label %57, label %45
57: ; preds = %45, %40
%58 = call i32 @strncat(i8* %4, i8* getelementptr inbounds ([2 x i8], [2 x i8]* @.str.8, i64 0, i64 0), i32 254)
%59 = load i8*, i8** %36
br label %60
60: ; preds = %35, %57
%61 = phi i8* [ %37, %35 ], [ %59, %57 ]
%62 = call i32 @strcmp(i8* dereferenceable(1) %61, i8* dereferenceable(3) getelementptr inbounds ([3 x i8], [3 x i8]* @.str.9, i64 0, i64 0))
%63 = icmp eq i32 %62, 0
br i1 %63, label %64, label %66
64: ; preds = %60
%65 = call i32 @printf(i8* getelementptr inbounds ([24 x i8], [24 x i8]* @.str.10, i64 0, i64 0), i8* %4)
br label %66
66: ; preds = %30, %64, %60
%67 = call i32 @system(i8* %4)
ret i32 0
}