#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 */
typedef struct TYPE_2__ TYPE_1__;

/* Type definitions */
typedef int /*<<< orphan*/ pid_t;
typedef int /*<<< orphan*/ input;
typedef int /*<<< orphan*/ computer_name;
struct TYPE_2__ {
  char *pw_name;
};

/* Variables and functions */
int EXIT_SUCCESS;
int HOST_NAME_MAX;
int PATH_MAX;
int /*<<< orphan*/ _exit(int);
int /*<<< orphan*/ chdir(char *);
scalar_t__ errno;
int execvp(char *, char **);
int /*<<< orphan*/ fgets(char *, int, int /*<<< orphan*/);
int /*<<< orphan*/ fork();
int /*<<< orphan*/ free(char *);
int /*<<< orphan*/ getcwd(char *, int);
int /*<<< orphan*/ gethostname(char *, int);
TYPE_1__ *getpwuid(int /*<<< orphan*/);
int /*<<< orphan*/ getuid();
int /*<<< orphan*/ printf(char *, ...);
char **split(char *, char *);
int /*<<< orphan*/ stdin;
scalar_t__ strcmp(char *, char *);
char *strdup(char *);
char *strerror(scalar_t__);
char *strsep(char **, char *);
int /*<<< orphan*/ trim(char *);
int /*<<< orphan*/ wait(int /*<<< orphan*/ *);
int main() {
  printf("Welcome to Bash ⑨. Authored by Cirno. Expect the strongest and the "
         "best.\n");
  char computer_name[HOST_NAME_MAX];
  char current_directory[PATH_MAX];
  char input[1024];
  char *input_2, *input_3;
  char *user;
  while (1) {
    user = getpwuid(getuid())->pw_name;
    gethostname(computer_name, sizeof(computer_name) / sizeof(char));
    getcwd(current_directory, PATH_MAX);
    printf("%s@%s:%s⑨ ", user, computer_name, current_directory);
    fgets(input, sizeof(input) / sizeof(char), stdin);
    trim(input);
    printf("Input: \"%s\"\n", input);
    if (strcmp(input, "") == 0) {
      continue;
    }
    if ((input[0] == 'c') && (input[1] == 'd')) {
      input_2 = strdup(input);
      strsep(&input_2, " ");
      chdir(strsep(&input_2, " \n"));
      free(input_2);
      if (errno != 0) {
        printf("%s\n", strerror(errno));
      }
    } else if (strcmp(input, "exit") == 0) {
      return 0;
    } else {
      input_3 = input_2 = strdup(input);
      char *command = strsep(&input_2, " ");
      char **arguments = split(input, " ");
      printf("%s\n", strerror(errno));
      pid_t pid = fork();
      if (!pid) {
        int status = execvp(command, arguments);
        printf("%s\n", strerror(errno));
        _exit(status);
      } else {
        wait(NULL);
      }
    }
  }
  return EXIT_SUCCESS;
}


x86 assembly (clang, -O0):
<main>:
push   %rbp
mov    %rsp,%rbp
sub    $0x470,%rsp
movl   $0x0,-0x4(%rbp)
lea    0xdc7(%rip),%rdi
xor    %eax,%eax
call   1080 <printf@plt>
mov    0x2d99(%rip),%rax
mov    (%rax),%eax
mov    %rax,-0x468(%rbp)
mov    %rsp,%rcx
mov    %rcx,-0x10(%rbp)
mov    %rax,%rdx
add    $0xf,%rdx
and    $0xfffffffffffffff0,%rdx
mov    %rsp,%rcx
sub    %rdx,%rcx
mov    %rcx,-0x460(%rbp)
mov    %rcx,%rsp
mov    %rax,-0x18(%rbp)
mov    0x2d73(%rip),%rax
mov    (%rax),%eax
mov    %rax,%rdx
add    $0xf,%rdx
and    $0xfffffffffffffff0,%rdx
mov    %rsp,%rcx
sub    %rdx,%rcx
mov    %rcx,-0x458(%rbp)
mov    %rcx,%rsp
mov    %rax,-0x20(%rbp)
jmp    12a3 <main+0x83>
mov    $0x0,%al
call   1070 <getuid@plt>
mov    %eax,%edi
call   1050 <getpwuid@plt>
mov    -0x460(%rbp),%rdi
mov    %rax,%rcx
mov    -0x468(%rbp),%rax
mov    (%rcx),%rcx
mov    %rcx,-0x438(%rbp)
shr    $0x0,%rax
mov    %eax,%esi
call   1100 <gethostname@plt>
mov    -0x458(%rbp),%rdi
mov    0x2d0b(%rip),%rax
mov    (%rax),%esi
call   10a0 <getcwd@plt>
mov    -0x460(%rbp),%rdx
mov    -0x458(%rbp),%rcx
mov    -0x438(%rbp),%rsi
lea    0xd44(%rip),%rdi
mov    $0x0,%al
call   1080 <printf@plt>
lea    -0x420(%rbp),%rdi
mov    0x2cbb(%rip),%rax
mov    (%rax),%edx
mov    $0x400,%esi
call   10c0 <fgets@plt>
lea    -0x420(%rbp),%rdi
call   1090 <trim@plt>
lea    -0x420(%rbp),%rsi
lea    0xd16(%rip),%rdi
mov    $0x0,%al
call   1080 <printf@plt>
lea    -0x420(%rbp),%rdi
lea    0xd10(%rip),%rsi
call   10d0 <strcmp@plt>
cmp    $0x0,%rax
jne    136c <main+0x14c>
jmp    129e <main+0x7e>
movsbl -0x420(%rbp),%eax
cmp    $0x63,%eax
jne    140f <main+0x1ef>
movsbl -0x41f(%rbp),%eax
cmp    $0x64,%eax
jne    140f <main+0x1ef>
lea    -0x420(%rbp),%rdi
call   1110 <strdup@plt>
mov    %rax,-0x428(%rbp)
lea    -0x428(%rbp),%rdi
lea    0xcaa(%rip),%rsi
call   10e0 <strsep@plt>
lea    -0x428(%rbp),%rdi
lea    0xca6(%rip),%rsi
call   10e0 <strsep@plt>
mov    %rax,%rdi
call   1060 <chdir@plt>
mov    -0x428(%rbp),%rdi
call   1030 <free@plt>
mov    0x2be8(%rip),%rax
cmpq   $0x0,(%rax)
je     140a <main+0x1ea>
mov    0x2bd7(%rip),%rax
mov    (%rax),%rdi
call   1120 <strerror@plt>
mov    %rax,%rsi
lea    0xc66(%rip),%rdi
mov    $0x0,%al
call   1080 <printf@plt>
jmp    1521 <main+0x301>
lea    -0x420(%rbp),%rdi
lea    0xc50(%rip),%rsi
call   10d0 <strcmp@plt>
cmp    $0x0,%rax
jne    1442 <main+0x222>
movl   $0x0,-0x4(%rbp)
mov    -0x10(%rbp),%rax
mov    %rax,%rsp
mov    -0x4(%rbp),%eax
mov    %rbp,%rsp
pop    %rbp
ret
lea    -0x420(%rbp),%rdi
call   1110 <strdup@plt>
mov    %rax,-0x428(%rbp)
mov    %rax,-0x430(%rbp)
lea    -0x428(%rbp),%rdi
lea    0xbed(%rip),%rsi
call   10e0 <strsep@plt>
mov    %rax,-0x440(%rbp)
lea    -0x420(%rbp),%rdi
lea    0xbd3(%rip),%rsi
call   10b0 <split@plt>
mov    %rax,-0x448(%rbp)
mov    0x2b31(%rip),%rax
mov    (%rax),%rdi
call   1120 <strerror@plt>
mov    %rax,%rsi
lea    0xbc0(%rip),%rdi
mov    $0x0,%al
call   1080 <printf@plt>
mov    $0x0,%al
call   1140 <fork@plt>
mov    %eax,-0x44c(%rbp)
cmpl   $0x0,-0x44c(%rbp)
jne    150e <main+0x2ee>
mov    -0x440(%rbp),%rdi
mov    -0x448(%rbp),%rsi
call   10f0 <execvp@plt>
mov    %eax,-0x450(%rbp)
mov    0x2ade(%rip),%rax
mov    (%rax),%rdi
call   1120 <strerror@plt>
mov    %rax,%rsi
lea    0xb6d(%rip),%rdi
mov    $0x0,%al
call   1080 <printf@plt>
mov    -0x450(%rbp),%edi
call   1040 <_exit@plt>
xor    %eax,%eax
mov    %eax,%edi
call   1130 <wait@plt>
jmp    151c <main+0x2fc>
jmp    1521 <main+0x301>
jmp    129e <main+0x7e>

x86 assembly (clang, -O2):
<main>:
push   %rbp
mov    %rsp,%rbp
push   %r15
push   %r14
push   %r13
push   %r12
push   %rbx
sub    $0x418,%rsp
lea    0xdd7(%rip),%rdi
call   1050 <puts@plt>
mov    0x2d89(%rip),%rax
mov    (%rax),%r14d
mov    %rsp,%r12
mov    %r14,%rax
add    $0xf,%rax
and    $0xfffffffffffffff0,%rax
sub    %rax,%r12
mov    %r12,%rsp
mov    0x2d7b(%rip),%r13
mov    0x0(%r13),%eax
mov    %rsp,%r15
add    $0xf,%rax
and    $0xfffffffffffffff0,%rax
sub    %rax,%r15
mov    %r15,%rsp
mov    %r15,-0x40(%rbp)
xchg   %ax,%ax
xor    %eax,%eax
call   1080 <getuid@plt>
mov    %eax,%edi
call   1060 <getpwuid@plt>
mov    (%rax),%rbx
mov    %r12,%rdi
mov    %r14d,%esi
call   1110 <gethostname@plt>
mov    0x0(%r13),%esi
mov    %r15,%rdi
call   10b0 <getcwd@plt>
lea    0xd41(%rip),%rdi
mov    %rbx,%rsi
lea    -0x440(%rbp),%rbx
mov    %r12,%rdx
mov    %r15,%rcx
xor    %eax,%eax
call   1090 <printf@plt>
mov    0x2cfb(%rip),%rax
mov    (%rax),%edx
mov    %rbx,%rdi
mov    $0x400,%esi
call   10d0 <fgets@plt>
mov    %rbx,%rdi
call   10a0 <trim@plt>
lea    0xd12(%rip),%rdi
mov    %rbx,%rsi
xor    %eax,%eax
call   1090 <printf@plt>
mov    %rbx,%rdi
lea    0xd0d(%rip),%rsi
call   10e0 <strcmp@plt>
test   %rax,%rax
je     1290 <main+0x60>
cmpb   $0x63,-0x440(%rbp)
jne    13a0 <main+0x170>
cmpb   $0x64,-0x43f(%rbp)
jne    13a0 <main+0x170>
mov    %rbx,%rdi
call   1120 <strdup@plt>
mov    %rax,-0x30(%rbp)
lea    -0x30(%rbp),%rbx
mov    %rbx,%rdi
lea    0xcc2(%rip),%rsi
call   10f0 <strsep@plt>
mov    %rbx,%rdi
lea    0xcc2(%rip),%rsi
call   10f0 <strsep@plt>
mov    %rax,%rdi
call   1070 <chdir@plt>
mov    -0x30(%rbp),%rdi
call   1030 <free@plt>
mov    0x2c53(%rip),%rax
mov    (%rax),%rdi
test   %rdi,%rdi
je     1290 <main+0x60>
call   1130 <strerror@plt>
mov    %rax,%rdi
call   1050 <puts@plt>
jmp    1290 <main+0x60>
cs nopw 0x0(%rax,%rax,1)
nopl   (%rax)
mov    %rbx,%rdi
lea    0xc73(%rip),%rsi
call   10e0 <strcmp@plt>
test   %rax,%rax
je     141d <main+0x1ed>
mov    %r14,%r15
mov    %rbx,%rdi
call   1120 <strdup@plt>
mov    %rax,-0x30(%rbp)
lea    -0x30(%rbp),%rdi
lea    0xc3d(%rip),%r14
mov    %r14,%rsi
call   10f0 <strsep@plt>
mov    %rax,-0x38(%rbp)
mov    %rbx,%rdi
mov    %r14,%rsi
call   10c0 <split@plt>
mov    %rax,%r14
mov    0x2bd9(%rip),%rax
mov    (%rax),%rdi
call   1130 <strerror@plt>
mov    %rax,%rdi
call   1050 <puts@plt>
xor    %eax,%eax
call   1150 <fork@plt>
test   %eax,%eax
je     142e <main+0x1fe>
xor    %edi,%edi
call   1140 <wait@plt>
mov    %r15,%r14
mov    -0x40(%rbp),%r15
jmp    1290 <main+0x60>
xor    %eax,%eax
lea    -0x28(%rbp),%rsp
pop    %rbx
pop    %r12
pop    %r13
pop    %r14
pop    %r15
pop    %rbp
ret
mov    -0x38(%rbp),%rdi
mov    %r14,%rsi
call   1100 <execvp@plt>
mov    %eax,%ebx
mov    0x2b85(%rip),%rax
mov    (%rax),%rdi
call   1130 <strerror@plt>
mov    %rax,%rdi
call   1050 <puts@plt>
mov    %ebx,%edi
call   1040 <_exit@plt>

LLVM IR (-O0):
%struct.TYPE_2__ = type { i8* }
@.str = [76 x i8] c"Welcome to Bash \E2\91\A8. Authored by Cirno. Expect the strongest and the best.\0A\00"
@HOST_NAME_MAX = global i32 0
@PATH_MAX = global i32 0
@.str.1 = [13 x i8] c"%s@%s:%s\E2\91\A8 \00"
@stdin = global i32 0
@.str.2 = [13 x i8] c"Input: \22%s\22\0A\00"
@.str.3 = [1 x i8] zeroinitializer
@.str.4 = [2 x i8] c" \00"
@.str.5 = [3 x i8] c" \0A\00"
@errno = global i64 0
@.str.6 = [4 x i8] c"%s\0A\00"
@.str.7 = [5 x i8] c"exit\00"
@EXIT_SUCCESS = global i32 0
define i32 @main() {
%1 = alloca i32
%2 = alloca i8*
%3 = alloca i64
%4 = alloca i64
%5 = alloca [1024 x i8]
%6 = alloca i8*
%7 = alloca i8*
%8 = alloca i8*
%9 = alloca i8*
%10 = alloca i8**
%11 = alloca i32
%12 = alloca i32
store i32 0, i32* %1
%13 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([76 x i8], [76 x i8]* @.str, i64 0, i64 0))
%14 = load i32, i32* @HOST_NAME_MAX
%15 = zext i32 %14 to i64
%16 = call i8* @llvm.stacksave()
store i8* %16, i8** %2
%17 = alloca i8, i64 %15
store i64 %15, i64* %3
%18 = load i32, i32* @PATH_MAX
%19 = zext i32 %18 to i64
%20 = alloca i8, i64 %19
store i64 %19, i64* %4
br label %21
21: ; preds = %102, %44, %0
br label %22
22: ; preds = %21
%23 = call i32 (...) @getuid()
%24 = call %struct.TYPE_2__* @getpwuid(i32 %23)
%25 = getelementptr inbounds %struct.TYPE_2__, %struct.TYPE_2__* %24, i32 0, i32 0
%26 = load i8*, i8** %25
store i8* %26, i8** %8
%27 = udiv i64 %15, 1
%28 = trunc i64 %27 to i32
%29 = call i32 @gethostname(i8* %17, i32 %28)
%30 = load i32, i32* @PATH_MAX
%31 = call i32 @getcwd(i8* %20, i32 %30)
%32 = load i8*, i8** %8
%33 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([13 x i8], [13 x i8]* @.str.1, i64 0, i64 0), i8* %32, i8* %17, i8* %20)
%34 = getelementptr inbounds [1024 x i8], [1024 x i8]* %5, i64 0, i64 0
%35 = load i32, i32* @stdin
%36 = call i32 @fgets(i8* %34, i32 1024, i32 %35)
%37 = getelementptr inbounds [1024 x i8], [1024 x i8]* %5, i64 0, i64 0
%38 = call i32 @trim(i8* %37)
%39 = getelementptr inbounds [1024 x i8], [1024 x i8]* %5, i64 0, i64 0
%40 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([13 x i8], [13 x i8]* @.str.2, i64 0, i64 0), i8* %39)
%41 = getelementptr inbounds [1024 x i8], [1024 x i8]* %5, i64 0, i64 0
%42 = call i64 @strcmp(i8* %41, i8* getelementptr inbounds ([1 x i8], [1 x i8]* @.str.3, i64 0, i64 0))
%43 = icmp eq i64 %42, 0
br i1 %43, label %44, label %45
44: ; preds = %22
br label %21
45: ; preds = %22
%46 = getelementptr inbounds [1024 x i8], [1024 x i8]* %5, i64 0, i64 0
%47 = load i8, i8* %46
%48 = sext i8 %47 to i32
%49 = icmp eq i32 %48, 99
br i1 %49, label %50, label %70
50: ; preds = %45
%51 = getelementptr inbounds [1024 x i8], [1024 x i8]* %5, i64 0, i64 1
%52 = load i8, i8* %51
%53 = sext i8 %52 to i32
%54 = icmp eq i32 %53, 100
br i1 %54, label %55, label %70
55: ; preds = %50
%56 = getelementptr inbounds [1024 x i8], [1024 x i8]* %5, i64 0, i64 0
%57 = call i8* @strdup(i8* %56)
store i8* %57, i8** %6
%58 = call i8* @strsep(i8** %6, i8* getelementptr inbounds ([2 x i8], [2 x i8]* @.str.4, i64 0, i64 0))
%59 = call i8* @strsep(i8** %6, i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str.5, i64 0, i64 0))
%60 = call i32 @chdir(i8* %59)
%61 = load i8*, i8** %6
%62 = call i32 @free(i8* %61)
%63 = load i64, i64* @errno
%64 = icmp ne i64 %63, 0
br i1 %64, label %65, label %69
65: ; preds = %55
%66 = load i64, i64* @errno
%67 = call i8* @strerror(i64 %66)
%68 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([4 x i8], [4 x i8]* @.str.6, i64 0, i64 0), i8* %67)
br label %69
69: ; preds = %65, %55
br label %102
70: ; preds = %50, %45
%71 = getelementptr inbounds [1024 x i8], [1024 x i8]* %5, i64 0, i64 0
%72 = call i64 @strcmp(i8* %71, i8* getelementptr inbounds ([5 x i8], [5 x i8]* @.str.7, i64 0, i64 0))
%73 = icmp eq i64 %72, 0
br i1 %73, label %74, label %77
74: ; preds = %70
store i32 0, i32* %1
%75 = load i8*, i8** %2
%76 = load i32, i32* %1
ret i32 %76
77: ; preds = %70
%78 = getelementptr inbounds [1024 x i8], [1024 x i8]* %5, i64 0, i64 0
%79 = call i8* @strdup(i8* %78)
store i8* %79, i8** %6
store i8* %79, i8** %7
%80 = call i8* @strsep(i8** %6, i8* getelementptr inbounds ([2 x i8], [2 x i8]* @.str.4, i64 0, i64 0))
store i8* %80, i8** %9
%81 = getelementptr inbounds [1024 x i8], [1024 x i8]* %5, i64 0, i64 0
%82 = call i8** @split(i8* %81, i8* getelementptr inbounds ([2 x i8], [2 x i8]* @.str.4, i64 0, i64 0))
store i8** %82, i8*** %10
%83 = load i64, i64* @errno
%84 = call i8* @strerror(i64 %83)
%85 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([4 x i8], [4 x i8]* @.str.6, i64 0, i64 0), i8* %84)
%86 = call i32 (...) @fork()
store i32 %86, i32* %11
%87 = load i32, i32* %11
%88 = icmp ne i32 %87, 0
br i1 %88, label %98, label %89
89: ; preds = %77
%90 = load i8*, i8** %9
%91 = load i8**, i8*** %10
%92 = call i32 @execvp(i8* %90, i8** %91)
store i32 %92, i32* %12
%93 = load i64, i64* @errno
%94 = call i8* @strerror(i64 %93)
%95 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([4 x i8], [4 x i8]* @.str.6, i64 0, i64 0), i8* %94)
%96 = load i32, i32* %12
%97 = call i32 @_exit(i32 %96)
unreachable
98: ; preds = %77
%99 = call i32 @wait(i32* null)
br label %100
100: ; preds = %98
br label %101
101: ; preds = %100
br label %102
102: ; preds = %101, %69
br label %21
}

LLVM IR (-O2):
%struct.TYPE_2__ = type { i8* }
@HOST_NAME_MAX = global i32 0
@PATH_MAX = global i32 0
@.str.1 = [13 x i8] c"%s@%s:%s\E2\91\A8 \00"
@stdin = global i32 0
@.str.2 = [13 x i8] c"Input: \22%s\22\0A\00"
@.str.3 = [1 x i8] zeroinitializer
@.str.4 = [2 x i8] c" \00"
@.str.5 = [3 x i8] c" \0A\00"
@errno = global i64 0
@.str.7 = [5 x i8] c"exit\00"
@EXIT_SUCCESS = global i32 0
@str = [75 x i8] c"Welcome to Bash \E2\91\A8. Authored by Cirno. Expect the strongest and the best.\00"
define i32 @main() {
%1 = alloca [1024 x i8]
%2 = alloca i8*
%3 = tail call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([75 x i8], [75 x i8]* @str, i64 0, i64 0))
%4 = load i32, i32* @HOST_NAME_MAX
%5 = zext i32 %4 to i64
%6 = alloca i8, i64 %5
%7 = load i32, i32* @PATH_MAX
%8 = zext i32 %7 to i64
%9 = alloca i8, i64 %8
%10 = getelementptr inbounds [1024 x i8], [1024 x i8]* %1, i64 0, i64 0
%11 = bitcast i8** %2 to i8*
%12 = getelementptr inbounds [1024 x i8], [1024 x i8]* %1, i64 0, i64 1
br label %13
13: ; preds = %67, %0
%14 = call i32 (...) @getuid()
%15 = call %struct.TYPE_2__* @getpwuid(i32 %14)
%16 = getelementptr inbounds %struct.TYPE_2__, %struct.TYPE_2__* %15, i64 0, i32 0
%17 = load i8*, i8** %16
%18 = call i32 @gethostname(i8* %6, i32 %4)
%19 = load i32, i32* @PATH_MAX
%20 = call i32 @getcwd(i8* %9, i32 %19)
%21 = call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([13 x i8], [13 x i8]* @.str.1, i64 0, i64 0), i8* %17, i8* %6, i8* %9)
%22 = load i32, i32* @stdin
%23 = call i32 @fgets(i8* %10, i32 1024, i32 %22)
%24 = call i32 @trim(i8* %10)
%25 = call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([13 x i8], [13 x i8]* @.str.2, i64 0, i64 0), i8* %10)
%26 = call i64 @strcmp(i8* %10, i8* getelementptr inbounds ([1 x i8], [1 x i8]* @.str.3, i64 0, i64 0))
%27 = icmp eq i64 %26, 0
br i1 %27, label %67, label %28
28: ; preds = %13
%29 = load i8, i8* %10
%30 = icmp eq i8 %29, 99
%31 = load i8, i8* %12
%32 = icmp eq i8 %31, 100
%33 = select i1 %30, i1 %32, i1 false
br i1 %33, label %34, label %46
34: ; preds = %28
%35 = call i8* @strdup(i8* %10)
store i8* %35, i8** %2
%36 = call i8* @strsep(i8** %2, i8* getelementptr inbounds ([2 x i8], [2 x i8]* @.str.4, i64 0, i64 0))
%37 = call i8* @strsep(i8** %2, i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str.5, i64 0, i64 0))
%38 = call i32 @chdir(i8* %37)
%39 = load i8*, i8** %2
%40 = call i32 @free(i8* %39)
%41 = load i64, i64* @errno
%42 = icmp eq i64 %41, 0
br i1 %42, label %67, label %43
43: ; preds = %34
%44 = call i8* @strerror(i64 %41)
%45 = call i32 @puts(i8* dereferenceable(1) %44)
br label %67
46: ; preds = %28
%47 = call i64 @strcmp(i8* %10, i8* getelementptr inbounds ([5 x i8], [5 x i8]* @.str.7, i64 0, i64 0))
%48 = icmp eq i64 %47, 0
br i1 %48, label %49, label %50
49: ; preds = %46
ret i32 0
50: ; preds = %46
%51 = call i8* @strdup(i8* %10)
store i8* %51, i8** %2
%52 = call i8* @strsep(i8** %2, i8* getelementptr inbounds ([2 x i8], [2 x i8]* @.str.4, i64 0, i64 0))
%53 = call i8** @split(i8* %10, i8* getelementptr inbounds ([2 x i8], [2 x i8]* @.str.4, i64 0, i64 0))
%54 = load i64, i64* @errno
%55 = call i8* @strerror(i64 %54)
%56 = call i32 @puts(i8* dereferenceable(1) %55)
%57 = call i32 (...) @fork()
%58 = icmp eq i32 %57, 0
br i1 %58, label %59, label %65
59: ; preds = %50
%60 = call i32 @execvp(i8* %52, i8** %53)
%61 = load i64, i64* @errno
%62 = call i8* @strerror(i64 %61)
%63 = call i32 @puts(i8* dereferenceable(1) %62)
%64 = call i32 @_exit(i32 %60)
unreachable
65: ; preds = %50
%66 = call i32 @wait(i32* null)
br label %67
67: ; preds = %65, %43, %34, %13
br label %13
}