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

/* Variables and functions */
int /*<<< orphan*/ STDIN_FILENO;
int /*<<< orphan*/ fflush(int /*<<< orphan*/);
int /*<<< orphan*/ fprintf(int /*<<< orphan*/, char *);
int read(int /*<<< orphan*/, char *, int);
int /*<<< orphan*/ run_cmd(int, char **, char const *);
int /*<<< orphan*/ stdout;
int /*<<< orphan*/ strcmp(char *, char *);
char *strsep(char **, char *);
int run_cmd_loop(int argc, char *argv[], const char *iff_name) {
  int n, i;
  char buf[64];
  char *args[8], *s;
  args[0] = argv[0];
  args[1] = argv[1];
  do {
    fprintf(stdout, "> ");
    fflush(stdout);
    n = read(STDIN_FILENO, buf, sizeof(buf));
    if (n > sizeof(buf) - 1) {
      fprintf(stdout, "too much input.\n");
      return (0);
    } else if (n <= 0)
      return (0);
    if (buf[--n] != '\n')
      continue;
    else
      buf[n] = 0;
    s = &buf[0];
    for (i = 2; i < sizeof(args) / sizeof(args[0]) - 1; i++) {
      while (s && (*s == ' ' || *s == '\t'))
        s++;
      if ((args[i] = strsep(&s, " \t")) == NULL)
        break;
    }
    args[sizeof(args) / sizeof(args[0]) - 1] = 0;
    if (!strcmp(args[2], "quit") || !strcmp(args[2], "exit"))
      return (0);
    (void)run_cmd(i, args, iff_name);
  } while (1);
  return (0);
}


x86 assembly (clang, -O0):
<run_cmd_loop>:
push   %rbp
mov    %rsp,%rbp
sub    $0xb0,%rsp
mov    %edi,-0x8(%rbp)
mov    %rsi,-0x10(%rbp)
mov    %rdx,-0x18(%rbp)
mov    -0x10(%rbp),%rax
mov    (%rax),%rax
mov    %rax,-0xa0(%rbp)
mov    -0x10(%rbp),%rax
mov    0x8(%rax),%rax
mov    %rax,-0x98(%rbp)
mov    0x2e46(%rip),%rax
mov    (%rax),%edi
lea    0xe5d(%rip),%rsi
call   1050 <fprintf@plt>
mov    0x2e31(%rip),%rax
mov    (%rax),%edi
call   1060 <fflush@plt>
mov    0x2e1b(%rip),%rax
mov    (%rax),%edi
lea    -0x60(%rbp),%rsi
mov    $0x40,%edx
call   1030 <read@plt>
mov    %eax,-0x1c(%rbp)
movslq -0x1c(%rbp),%rax
cmp    $0x3f,%rax
jbe    11ff <run_cmd_loop+0x9f>
mov    0x2dfb(%rip),%rax
mov    (%rax),%edi
lea    0xe15(%rip),%rsi
call   1050 <fprintf@plt>
movl   $0x0,-0x4(%rbp)
jmp    1399 <run_cmd_loop+0x239>
cmpl   $0x0,-0x1c(%rbp)
jg     1215 <run_cmd_loop+0xb5>
movl   $0x0,-0x4(%rbp)
jmp    1399 <run_cmd_loop+0x239>
jmp    121a <run_cmd_loop+0xba>
mov    -0x1c(%rbp),%eax
add    $0xffffffff,%eax
mov    %eax,-0x1c(%rbp)
cltq
movsbl -0x60(%rbp,%rax,1),%eax
cmp    $0xa,%eax
je     1238 <run_cmd_loop+0xd8>
jmp    1383 <run_cmd_loop+0x223>
movslq -0x1c(%rbp),%rax
movb   $0x0,-0x60(%rbp,%rax,1)
lea    -0x60(%rbp),%rax
mov    %rax,-0xa8(%rbp)
movl   $0x2,-0x20(%rbp)
movslq -0x20(%rbp),%rax
cmp    $0x7,%rax
jae    1324 <run_cmd_loop+0x1c4>
jmp    1266 <run_cmd_loop+0x106>
xor    %eax,%eax
cmpq   $0x0,-0xa8(%rbp)
mov    %al,-0xa9(%rbp)
je     12b9 <run_cmd_loop+0x159>
mov    -0xa8(%rbp),%rax
movsbl (%rax),%ecx
mov    $0x1,%al
cmp    $0x20,%ecx
mov    %al,-0xaa(%rbp)
je     12ad <run_cmd_loop+0x14d>
mov    -0xa8(%rbp),%rax
movsbl (%rax),%eax
cmp    $0x9,%eax
sete   %al
mov    %al,-0xaa(%rbp)
mov    -0xaa(%rbp),%al
mov    %al,-0xa9(%rbp)
mov    -0xa9(%rbp),%al
test   $0x1,%al
jne    12cc <run_cmd_loop+0x16c>
jmp    12e3 <run_cmd_loop+0x183>
mov    -0xa8(%rbp),%rax
add    $0x1,%rax
mov    %rax,-0xa8(%rbp)
jmp    1266 <run_cmd_loop+0x106>
lea    -0xa8(%rbp),%rdi
lea    0xd23(%rip),%rsi
call   1070 <strsep@plt>
movslq -0x20(%rbp),%rcx
mov    %rax,-0xa0(%rbp,%rcx,8)
ff
cmp    $0x0,%rax
jne    1311 <run_cmd_loop+0x1b1>
jmp    1324 <run_cmd_loop+0x1c4>
jmp    1316 <run_cmd_loop+0x1b6>
mov    -0x20(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0x20(%rbp)
jmp    1253 <run_cmd_loop+0xf3>
movq   $0x0,-0x68(%rbp)
mov    -0x90(%rbp),%rdi
lea    0xcdd(%rip),%rsi
call   1040 <strcmp@plt>
cmp    $0x0,%eax
je     1364 <run_cmd_loop+0x204>
mov    -0x90(%rbp),%rdi
lea    0xcc6(%rip),%rsi
call   1040 <strcmp@plt>
cmp    $0x0,%eax
jne    1370 <run_cmd_loop+0x210>
movl   $0x0,-0x4(%rbp)
jmp    1399 <run_cmd_loop+0x239>
mov    -0x20(%rbp),%edi
lea    -0xa0(%rbp),%rsi
mov    -0x18(%rbp),%rdx
call   1080 <run_cmd@plt>
mov    $0x1,%al
test   $0x1,%al
jne    1193 <run_cmd_loop+0x33>
jmp    1392 <run_cmd_loop+0x232>
movl   $0x0,-0x4(%rbp)
mov    -0x4(%rbp),%eax
add    $0xb0,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<run_cmd_loop>:
push   %rbp
push   %r15
push   %r14
push   %r13
push   %r12
push   %rbx
sub    $0x98,%rsp
mov    %rdx,0x8(%rsp)
movups (%rsi),%xmm0
movaps %xmm0,0x10(%rsp)
mov    0x2e5b(%rip),%r14
mov    (%r14),%edi
lea    0xe71(%rip),%rsi
call   1050 <fprintf@plt>
mov    (%r14),%edi
call   1060 <fflush@plt>
mov    0x2e35(%rip),%rax
mov    (%rax),%edi
lea    0x50(%rsp),%rbx
mov    %rbx,%rsi
mov    $0x40,%edx
call   1030 <read@plt>
cmp    $0x3f,%eax
jbe    11df <run_cmd_loop+0x7f>
mov    (%r14),%edi
lea    0xe3d(%rip),%rsi
call   1050 <fprintf@plt>
xor    %eax,%eax
add    $0x98,%rsp
pop    %rbx
pop    %r12
pop    %r13
pop    %r14
pop    %r15
pop    %rbp
ret
lea    0xe2e(%rip),%r15
mov    %rsp,%r12
jmp    1234 <run_cmd_loop+0xd4>
nopl   0x0(%rax,%rax,1)
mov    %r13d,%edi
lea    0x10(%rsp),%rsi
mov    0x8(%rsp),%rdx
call   1080 <run_cmd@plt>
mov    (%r14),%edi
lea    0xdf4(%rip),%rsi
call   1050 <fprintf@plt>
mov    (%r14),%edi
call   1060 <fflush@plt>
mov    0x2db8(%rip),%rax
mov    (%rax),%edi
mov    %rbx,%rsi
mov    $0x40,%edx
call   1030 <read@plt>
cmp    $0x3f,%eax
ja     11bc <run_cmd_loop+0x5c>
test   %eax,%eax
je     11cb <run_cmd_loop+0x6b>
add    $0xffffffff,%eax
cmpb   $0xa,0x50(%rsp,%rax,1)
jne    1202 <run_cmd_loop+0xa2>
movb   $0x0,0x50(%rsp,%rax,1)
mov    %rbx,%rax
jmp    1254 <run_cmd_loop+0xf4>
nopl   0x0(%rax)
add    $0x1,%rax
movzbl (%rax),%ecx
cmp    $0x20,%cl
je     1250 <run_cmd_loop+0xf0>
cmp    $0x9,%cl
je     1250 <run_cmd_loop+0xf0>
mov    %rax,(%rsp)
mov    %r12,%rdi
mov    %r15,%rsi
call   1070 <strsep@plt>
mov    %rax,0x20(%rsp)
test   %rax,%rax
je     1386 <run_cmd_loop+0x226>
mov    (%rsp),%rax
test   %rax,%rax
jne    1294 <run_cmd_loop+0x134>
jmp    12a6 <run_cmd_loop+0x146>
nopl   0x0(%rax)
mov    %rax,(%rsp)
add    $0x1,%rax
movzbl -0x1(%rax),%ecx
cmp    $0x20,%cl
je     1290 <run_cmd_loop+0x130>
cmp    $0x9,%cl
je     1290 <run_cmd_loop+0x130>
mov    %r12,%rdi
mov    %r15,%rsi
call   1070 <strsep@plt>
mov    %rax,0x28(%rsp)
test   %rax,%rax
je     138e <run_cmd_loop+0x22e>
mov    (%rsp),%rax
test   %rax,%rax
jne    12d4 <run_cmd_loop+0x174>
jmp    12e6 <run_cmd_loop+0x186>
nopw   0x0(%rax,%rax,1)
mov    %rax,(%rsp)
add    $0x1,%rax
movzbl -0x1(%rax),%ecx
cmp    $0x20,%cl
je     12d0 <run_cmd_loop+0x170>
cmp    $0x9,%cl
je     12d0 <run_cmd_loop+0x170>
mov    %r12,%rdi
mov    %r15,%rsi
call   1070 <strsep@plt>
mov    %rax,0x30(%rsp)
test   %rax,%rax
je     1396 <run_cmd_loop+0x236>
mov    (%rsp),%rax
test   %rax,%rax
jne    1314 <run_cmd_loop+0x1b4>
jmp    1326 <run_cmd_loop+0x1c6>
nopw   0x0(%rax,%rax,1)
mov    %rax,(%rsp)
add    $0x1,%rax
movzbl -0x1(%rax),%ecx
cmp    $0x20,%cl
je     1310 <run_cmd_loop+0x1b0>
cmp    $0x9,%cl
je     1310 <run_cmd_loop+0x1b0>
mov    %r12,%rdi
mov    %r15,%rsi
call   1070 <strsep@plt>
mov    %rax,0x38(%rsp)
test   %rax,%rax
je     139e <run_cmd_loop+0x23e>
mov    (%rsp),%rax
test   %rax,%rax
jne    1354 <run_cmd_loop+0x1f4>
jmp    1366 <run_cmd_loop+0x206>
cs nopw 0x0(%rax,%rax,1)
mov    %rax,(%rsp)
add    $0x1,%rax
movzbl -0x1(%rax),%ecx
cmp    $0x20,%cl
je     1350 <run_cmd_loop+0x1f0>
cmp    $0x9,%cl
je     1350 <run_cmd_loop+0x1f0>
mov    %r12,%rdi
mov    %r15,%rsi
call   1070 <strsep@plt>
mov    %rax,0x40(%rsp)
cmp    $0x1,%rax
mov    $0x7,%r13d
sbb    $0x0,%r13d
jmp    13b0 <run_cmd_loop+0x250>
mov    $0x2,%r13d
jmp    13b0 <run_cmd_loop+0x250>
mov    $0x3,%r13d
jmp    13b0 <run_cmd_loop+0x250>
mov    $0x4,%r13d
jmp    13b0 <run_cmd_loop+0x250>
mov    $0x5,%r13d
cs nopw 0x0(%rax,%rax,1)
xchg   %ax,%ax
movq   $0x0,0x48(%rsp)
mov    0x20(%rsp),%rbp
mov    %rbp,%rdi
lea    0xc4f(%rip),%rsi
call   1040 <strcmp@plt>
test   %eax,%eax
je     11cb <run_cmd_loop+0x6b>
mov    %rbp,%rdi
lea    0xc3d(%rip),%rsi
call   1040 <strcmp@plt>
test   %eax,%eax
jne    11f0 <run_cmd_loop+0x90>
jmp    11cb <run_cmd_loop+0x6b>

LLVM IR (-O0):
@stdout = global i32 0
@.str = [3 x i8] c"> \00"
@STDIN_FILENO = global i32 0
@.str.1 = [17 x i8] c"too much input.\0A\00"
@.str.2 = [3 x i8] c" \09\00"
@.str.3 = [5 x i8] c"quit\00"
@.str.4 = [5 x i8] c"exit\00"
define i32 @run_cmd_loop(i32 %0, i8** %1, i8* %2) {
%4 = alloca i32
%5 = alloca i32
%6 = alloca i8**
%7 = alloca i8*
%8 = alloca i32
%9 = alloca i32
%10 = alloca [64 x i8]
%11 = alloca [8 x i8*]
%12 = alloca i8*
store i32 %0, i32* %5
store i8** %1, i8*** %6
store i8* %2, i8** %7
%13 = load i8**, i8*** %6
%14 = getelementptr inbounds i8*, i8** %13, i64 0
%15 = load i8*, i8** %14
%16 = getelementptr inbounds [8 x i8*], [8 x i8*]* %11, i64 0, i64 0
store i8* %15, i8** %16
%17 = load i8**, i8*** %6
%18 = getelementptr inbounds i8*, i8** %17, i64 1
%19 = load i8*, i8** %18
%20 = getelementptr inbounds [8 x i8*], [8 x i8*]* %11, i64 0, i64 1
store i8* %19, i8** %20
br label %21
21: ; preds = %108, %3
%22 = load i32, i32* @stdout
%23 = call i32 @fprintf(i32 %22, i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str, i64 0, i64 0))
%24 = load i32, i32* @stdout
%25 = call i32 @fflush(i32 %24)
%26 = load i32, i32* @STDIN_FILENO
%27 = getelementptr inbounds [64 x i8], [64 x i8]* %10, i64 0, i64 0
%28 = call i32 @read(i32 %26, i8* %27, i32 64)
store i32 %28, i32* %8
%29 = load i32, i32* %8
%30 = sext i32 %29 to i64
%31 = icmp ugt i64 %30, 63
br i1 %31, label %32, label %35
32: ; preds = %21
%33 = load i32, i32* @stdout
%34 = call i32 @fprintf(i32 %33, i8* getelementptr inbounds ([17 x i8], [17 x i8]* @.str.1, i64 0, i64 0))
store i32 0, i32* %4
br label %110
35: ; preds = %21
%36 = load i32, i32* %8
%37 = icmp sle i32 %36, 0
br i1 %37, label %38, label %39
38: ; preds = %35
store i32 0, i32* %4
br label %110
39: ; preds = %35
br label %40
40: ; preds = %39
%41 = load i32, i32* %8
%42 = add nsw i32 %41, -1
store i32 %42, i32* %8
%43 = sext i32 %42 to i64
%44 = getelementptr inbounds [64 x i8], [64 x i8]* %10, i64 0, i64 %43
%45 = load i8, i8* %44
%46 = sext i8 %45 to i32
%47 = icmp ne i32 %46, 10
br i1 %47, label %48, label %49
48: ; preds = %40
br label %108
49: ; preds = %40
%50 = load i32, i32* %8
%51 = sext i32 %50 to i64
%52 = getelementptr inbounds [64 x i8], [64 x i8]* %10, i64 0, i64 %51
store i8 0, i8* %52
br label %53
53: ; preds = %49
%54 = getelementptr inbounds [64 x i8], [64 x i8]* %10, i64 0, i64 0
store i8* %54, i8** %12
store i32 2, i32* %9
br label %55
55: ; preds = %88, %53
%56 = load i32, i32* %9
%57 = sext i32 %56 to i64
%58 = icmp ult i64 %57, 7
br i1 %58, label %59, label %91
59: ; preds = %55
br label %60
60: ; preds = %77, %59
%61 = load i8*, i8** %12
%62 = icmp ne i8* %61, null
br i1 %62, label %63, label %75
63: ; preds = %60
%64 = load i8*, i8** %12
%65 = load i8, i8* %64
%66 = sext i8 %65 to i32
%67 = icmp eq i32 %66, 32
br i1 %67, label %73, label %68
68: ; preds = %63
%69 = load i8*, i8** %12
%70 = load i8, i8* %69
%71 = sext i8 %70 to i32
%72 = icmp eq i32 %71, 9
br label %73
73: ; preds = %68, %63
%74 = phi i1 [ true, %63 ], [ %72, %68 ]
br label %75
75: ; preds = %73, %60
%76 = phi i1 [ false, %60 ], [ %74, %73 ]
br i1 %76, label %77, label %80
77: ; preds = %75
%78 = load i8*, i8** %12
%79 = getelementptr inbounds i8, i8* %78, i32 1
store i8* %79, i8** %12
br label %60
80: ; preds = %75
%81 = call i8* @strsep(i8** %12, i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str.2, i64 0, i64 0))
%82 = load i32, i32* %9
%83 = sext i32 %82 to i64
%84 = getelementptr inbounds [8 x i8*], [8 x i8*]* %11, i64 0, i64 %83
store i8* %81, i8** %84
%85 = icmp eq i8* %81, null
br i1 %85, label %86, label %87
86: ; preds = %80
br label %91
87: ; preds = %80
br label %88
88: ; preds = %87
%89 = load i32, i32* %9
%90 = add nsw i32 %89, 1
store i32 %90, i32* %9
br label %55
91: ; preds = %86, %55
%92 = getelementptr inbounds [8 x i8*], [8 x i8*]* %11, i64 0, i64 7
store i8* null, i8** %92
%93 = getelementptr inbounds [8 x i8*], [8 x i8*]* %11, i64 0, i64 2
%94 = load i8*, i8** %93
%95 = call i32 @strcmp(i8* %94, i8* getelementptr inbounds ([5 x i8], [5 x i8]* @.str.3, i64 0, i64 0))
%96 = icmp ne i32 %95, 0
br i1 %96, label %97, label %102
97: ; preds = %91
%98 = getelementptr inbounds [8 x i8*], [8 x i8*]* %11, i64 0, i64 2
%99 = load i8*, i8** %98
%100 = call i32 @strcmp(i8* %99, i8* getelementptr inbounds ([5 x i8], [5 x i8]* @.str.4, i64 0, i64 0))
%101 = icmp ne i32 %100, 0
br i1 %101, label %103, label %102
102: ; preds = %97, %91
store i32 0, i32* %4
br label %110
103: ; preds = %97
%104 = load i32, i32* %9
%105 = getelementptr inbounds [8 x i8*], [8 x i8*]* %11, i64 0, i64 0
%106 = load i8*, i8** %7
%107 = call i32 @run_cmd(i32 %104, i8** %105, i8* %106)
br label %108
108: ; preds = %103, %48
br i1 true, label %21, label %109
109: ; preds = %108
store i32 0, i32* %4
br label %110
110: ; preds = %109, %102, %38, %32
%111 = load i32, i32* %4
ret i32 %111
}

LLVM IR (-O2):
@stdout = global i32 0
@.str = [3 x i8] c"> \00"
@STDIN_FILENO = global i32 0
@.str.1 = [17 x i8] c"too much input.\0A\00"
@.str.2 = [3 x i8] c" \09\00"
@.str.3 = [5 x i8] c"quit\00"
@.str.4 = [5 x i8] c"exit\00"
define i32 @run_cmd_loop(i32 %0, i8** nocapture %1, i8* %2) {
%4 = alloca [64 x i8]
%5 = alloca [8 x i8*]
%6 = alloca i8*
%7 = getelementptr inbounds [64 x i8], [64 x i8]* %4, i64 0, i64 0
%8 = bitcast [8 x i8*]* %5 to i8*
%9 = bitcast i8** %6 to i8*
%10 = getelementptr inbounds [8 x i8*], [8 x i8*]* %5, i64 0, i64 0
%11 = bitcast i8** %1 to <2 x i8*>*
%12 = load <2 x i8*>, <2 x i8*>* %11
%13 = bitcast [8 x i8*]* %5 to <2 x i8*>*
store <2 x i8*> %12, <2 x i8*>* %13
%14 = load i32, i32* @stdout
%15 = call i32 @fprintf(i32 %14, i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str, i64 0, i64 0))
%16 = load i32, i32* @stdout
%17 = call i32 @fflush(i32 %16)
%18 = load i32, i32* @STDIN_FILENO
%19 = call i32 @read(i32 %18, i8* %7, i32 64)
%20 = icmp ugt i32 %19, 63
br i1 %20, label %28, label %21
21: ; preds = %3
%22 = getelementptr inbounds [8 x i8*], [8 x i8*]* %5, i64 0, i64 7
%23 = getelementptr inbounds [8 x i8*], [8 x i8*]* %5, i64 0, i64 2
%24 = getelementptr inbounds [8 x i8*], [8 x i8*]* %5, i64 0, i64 3
%25 = getelementptr inbounds [8 x i8*], [8 x i8*]* %5, i64 0, i64 4
%26 = getelementptr inbounds [8 x i8*], [8 x i8*]* %5, i64 0, i64 5
%27 = getelementptr inbounds [8 x i8*], [8 x i8*]* %5, i64 0, i64 6
br label %31
28: ; preds = %104, %3
%29 = load i32, i32* @stdout
%30 = call i32 @fprintf(i32 %29, i8* getelementptr inbounds ([17 x i8], [17 x i8]* @.str.1, i64 0, i64 0))
br label %112
31: ; preds = %21, %104
%32 = phi i32 [ %19, %21 ], [ %110, %104 ]
%33 = icmp eq i32 %32, 0
br i1 %33, label %112, label %34
34: ; preds = %31
%35 = add nsw i32 %32, -1
%36 = zext i32 %35 to i64
%37 = getelementptr inbounds [64 x i8], [64 x i8]* %4, i64 0, i64 %36
%38 = load i8, i8* %37
%39 = icmp eq i8 %38, 10
br i1 %39, label %40, label %104
40: ; preds = %34
store i8 0, i8* %37
br label %41
41: ; preds = %40, %44
%42 = phi i8* [ %7, %40 ], [ %45, %44 ]
%43 = load i8, i8* %42
switch i8 %43, label %46 [
i8 32, label %44
i8 9, label %44
]
44: ; preds = %41, %41
%45 = getelementptr inbounds i8, i8* %42, i64 1
br label %41
46: ; preds = %41
store i8* %42, i8** %6
%47 = call i8* @strsep(i8** %6, i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str.2, i64 0, i64 0))
store i8* %47, i8** %23
%48 = icmp eq i8* %47, null
br i1 %48, label %94, label %49
49: ; preds = %46
%50 = load i8*, i8** %6
%51 = icmp eq i8* %50, null
br i1 %51, label %57, label %52
52: ; preds = %49, %55
%53 = phi i8* [ %56, %55 ], [ %50, %49 ]
%54 = load i8, i8* %53
switch i8 %54, label %57 [
i8 32, label %55
i8 9, label %55
]
55: ; preds = %52, %52
%56 = getelementptr inbounds i8, i8* %53, i64 1
store i8* %56, i8** %6
br label %52
57: ; preds = %52, %49
%58 = call i8* @strsep(i8** %6, i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str.2, i64 0, i64 0))
store i8* %58, i8** %24
%59 = icmp eq i8* %58, null
br i1 %59, label %94, label %60
60: ; preds = %57
%61 = load i8*, i8** %6
%62 = icmp eq i8* %61, null
br i1 %62, label %68, label %63
63: ; preds = %60, %66
%64 = phi i8* [ %67, %66 ], [ %61, %60 ]
%65 = load i8, i8* %64
switch i8 %65, label %68 [
i8 32, label %66
i8 9, label %66
]
66: ; preds = %63, %63
%67 = getelementptr inbounds i8, i8* %64, i64 1
store i8* %67, i8** %6
br label %63
68: ; preds = %63, %60
%69 = call i8* @strsep(i8** %6, i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str.2, i64 0, i64 0))
store i8* %69, i8** %25
%70 = icmp eq i8* %69, null
br i1 %70, label %94, label %71
71: ; preds = %68
%72 = load i8*, i8** %6
%73 = icmp eq i8* %72, null
br i1 %73, label %79, label %74
74: ; preds = %71, %77
%75 = phi i8* [ %78, %77 ], [ %72, %71 ]
%76 = load i8, i8* %75
switch i8 %76, label %79 [
i8 32, label %77
i8 9, label %77
]
77: ; preds = %74, %74
%78 = getelementptr inbounds i8, i8* %75, i64 1
store i8* %78, i8** %6
br label %74
79: ; preds = %74, %71
%80 = call i8* @strsep(i8** %6, i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str.2, i64 0, i64 0))
store i8* %80, i8** %26
%81 = icmp eq i8* %80, null
br i1 %81, label %94, label %82
82: ; preds = %79
%83 = load i8*, i8** %6
%84 = icmp eq i8* %83, null
br i1 %84, label %90, label %85
85: ; preds = %82, %88
%86 = phi i8* [ %89, %88 ], [ %83, %82 ]
%87 = load i8, i8* %86
switch i8 %87, label %90 [
i8 32, label %88
i8 9, label %88
]
88: ; preds = %85, %85
%89 = getelementptr inbounds i8, i8* %86, i64 1
store i8* %89, i8** %6
br label %85
90: ; preds = %85, %82
%91 = call i8* @strsep(i8** %6, i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str.2, i64 0, i64 0))
store i8* %91, i8** %27
%92 = icmp eq i8* %91, null
%93 = select i1 %92, i32 6, i32 7
br label %94
94: ; preds = %90, %79, %68, %57, %46
%95 = phi i32 [ 2, %46 ], [ 3, %57 ], [ 4, %68 ], [ 5, %79 ], [ %93, %90 ]
store i8* null, i8** %22
%96 = load i8*, i8** %23
%97 = call i32 @strcmp(i8* dereferenceable(1) %96, i8* dereferenceable(5) getelementptr inbounds ([5 x i8], [5 x i8]* @.str.3, i64 0, i64 0))
%98 = icmp eq i32 %97, 0
br i1 %98, label %112, label %99
99: ; preds = %94
%100 = call i32 @strcmp(i8* dereferenceable(1) %96, i8* dereferenceable(5) getelementptr inbounds ([5 x i8], [5 x i8]* @.str.4, i64 0, i64 0))
%101 = icmp eq i32 %100, 0
br i1 %101, label %112, label %102
102: ; preds = %99
%103 = call i32 @run_cmd(i32 %95, i8** %10, i8* %2)
br label %104
104: ; preds = %34, %102
%105 = load i32, i32* @stdout
%106 = call i32 @fprintf(i32 %105, i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str, i64 0, i64 0))
%107 = load i32, i32* @stdout
%108 = call i32 @fflush(i32 %107)
%109 = load i32, i32* @STDIN_FILENO
%110 = call i32 @read(i32 %109, i8* %7, i32 64)
%111 = icmp ugt i32 %110, 63
br i1 %111, label %28, label %31
112: ; preds = %94, %99, %31, %28
ret i32 0
}