char **construct_command_argv(line, file)
char *line;
struct file *file;
{
  static char sh_chars[] = "#;\"*?[]&|<>(){}=$`";
  static char *sh_cmds[] = {
      "cd",    "eval",  "exec",     "exit",   "login", "logout",   "set",
      "umask", "wait",  "while",    "for",    "case",  "if",       ":",
      ".",     "break", "continue", "export", "read",  "readonly", "shift",
      "times", "trap",  "switch",   0};
  register int i;
  register char *p;
  register char *ap;
  char *end;
  int instring;
  char **new_argv = 0;
  p = variable_expand_for_file("$(SHELL)", file);
  if (strcmp(p, "/bin/sh"))
    goto slow;
  p = variable_expand_for_file("$(IFS)", file);
  for (ap = p; *ap != '\0'; ++ap)
    if (*ap != ' ' && *ap != '\t' && *ap != '\n')
      goto slow;
  i = strlen(line) + 1;
  new_argv = (char **)xmalloc(i * sizeof(char *));
  ap = new_argv[0] = (char *)xmalloc(i);
  end = ap + i;
  i = 0;
  instring = 0;
  for (p = line; *p != '\0'; ++p) {
    if (ap > end)
      abort();
    if (instring) {
      if (*p == '\'')
        instring = 0;
      else
        *ap++ = *p;
    } else if (index(sh_chars, *p) != 0)
      goto slow;
    else
      switch (*p) {
      case '\\':
        if (p[1] != '\0' && p[1] != '\n')
          *ap++ = *++p;
        break;
      case '\'':
        instring = 1;
        break;
      case '\n':
      case ' ':
      case '\t':
        *ap++ = '\0';
        new_argv[++i] = ap;
        if (i == 1) {
          register int j;
          for (j = 0; sh_cmds[j] != 0; ++j)
            if (((sh_cmds[j]) == (new_argv[0]) ||
                 (*(sh_cmds[j]) == *(new_argv[0]) &&
                  (*(sh_cmds[j]) == '\0' ||
                   !strcmp((sh_cmds[j]) + 1, (new_argv[0]) + 1)))))
              goto slow;
        }
        p = next_token(p);
        --p;
        break;
      default:
        *ap++ = *p;
        break;
      }
  }
  *ap = '\0';
  if (new_argv[i][0] != '\0')
    ++i;
  new_argv[i] = 0;
  if (new_argv[0] == 0)
    return 0;
  else
    return new_argv;
slow:;
  if (new_argv != 0)
    free(new_argv);
  new_argv = (char **)xmalloc(4 * sizeof(char *));
  new_argv[0] = variable_expand_for_file("$(SHELL)", file);
  new_argv[1] = "-c";
  new_argv[2] = line;
  new_argv[3] = 0;
  return new_argv;
}


x86 assembly (clang, -O0):
<construct_command_argv>:
push   %rbp
mov    %rsp,%rbp
sub    $0x50,%rsp
mov    %rdi,-0x10(%rbp)
mov    %rsi,-0x18(%rbp)
movq   $0x0,-0x48(%rbp)
mov    -0x18(%rbp),%rsi
lea    0xedd(%rip),%rdi
mov    $0x0,%al
call   10a0 <variable_expand_for_file@plt>
cltq
mov    %rax,-0x28(%rbp)
mov    -0x28(%rbp),%rdi
lea    0xece(%rip),%rsi
call   1080 <strcmp@plt>
cmp    $0x0,%eax
je     11ce <construct_command_argv+0x4e>
jmp    1583 <construct_command_argv+0x403>
mov    -0x18(%rbp),%rsi
lea    0xeb8(%rip),%rdi
mov    $0x0,%al
call   10a0 <variable_expand_for_file@plt>
cltq
mov    %rax,-0x28(%rbp)
mov    -0x28(%rbp),%rax
mov    %rax,-0x30(%rbp)
mov    -0x30(%rbp),%rax
movsbl (%rax),%eax
cmp    $0x0,%eax
je     1249 <construct_command_argv+0xc9>
mov    -0x30(%rbp),%rax
movsbl (%rax),%eax
cmp    $0x20,%eax
je     1233 <construct_command_argv+0xb3>
mov    -0x30(%rbp),%rax
movsbl (%rax),%eax
cmp    $0x9,%eax
je     1233 <construct_command_argv+0xb3>
mov    -0x30(%rbp),%rax
movsbl (%rax),%eax
cmp    $0xa,%eax
je     1233 <construct_command_argv+0xb3>
jmp    1583 <construct_command_argv+0x403>
jmp    1238 <construct_command_argv+0xb8>
mov    -0x30(%rbp),%rax
add    $0x1,%rax
mov    %rax,-0x30(%rbp)
jmp    11ee <construct_command_argv+0x6e>
mov    -0x10(%rbp),%rdi
call   1050 <strlen@plt>
add    $0x1,%rax
mov    %eax,-0x1c(%rbp)
movslq -0x1c(%rbp),%rdi
shl    $0x3,%rdi
mov    $0x0,%al
call   1070 <xmalloc@plt>
cltq
mov    %rax,-0x48(%rbp)
mov    -0x1c(%rbp),%edi
mov    $0x0,%al
call   1070 <xmalloc@plt>
cltq
mov    -0x48(%rbp),%rcx
mov    %rax,(%rcx)
mov    %rax,-0x30(%rbp)
mov    -0x30(%rbp),%rax
movslq -0x1c(%rbp),%rcx
add    %rcx,%rax
mov    %rax,-0x38(%rbp)
movl   $0x0,-0x1c(%rbp)
movl   $0x0,-0x3c(%rbp)
mov    -0x10(%rbp),%rax
mov    %rax,-0x28(%rbp)
mov    -0x28(%rbp),%rax
movsbl (%rax),%eax
cmp    $0x0,%eax
je     1523 <construct_command_argv+0x3a3>
mov    -0x30(%rbp),%rax
cmp    -0x38(%rbp),%rax
jbe    12cd <construct_command_argv+0x14d>
call   1040 <abort@plt>
cmpl   $0x0,-0x3c(%rbp)
je     130f <construct_command_argv+0x18f>
mov    -0x28(%rbp),%rax
movsbl (%rax),%eax
cmp    $0x27,%eax
jne    12f3 <construct_command_argv+0x173>
movl   $0x0,-0x3c(%rbp)
jmp    130a <construct_command_argv+0x18a>
mov    -0x28(%rbp),%rax
mov    (%rax),%cl
mov    -0x30(%rbp),%rax
mov    %rax,%rdx
add    $0x1,%rdx
mov    %rdx,-0x30(%rbp)
mov    %cl,(%rax)
jmp    150d <construct_command_argv+0x38d>
mov    -0x28(%rbp),%rax
movsbl (%rax),%esi
lea    0x2d53(%rip),%rdi
call   1060 <index@plt>
cmp    $0x0,%rax
je     1331 <construct_command_argv+0x1b1>
jmp    1583 <construct_command_argv+0x403>
mov    -0x28(%rbp),%rax
movsbl (%rax),%eax
mov    %eax,-0x50(%rbp)
add    $0xfffffff7,%eax
sub    $0x2,%eax
jb     13d5 <construct_command_argv+0x255>
jmp    134c <construct_command_argv+0x1cc>
mov    -0x50(%rbp),%eax
sub    $0x20,%eax
je     13d5 <construct_command_argv+0x255>
jmp    135d <construct_command_argv+0x1dd>
mov    -0x50(%rbp),%eax
sub    $0x27,%eax
je     13c9 <construct_command_argv+0x249>
jmp    136e <construct_command_argv+0x1ee>
mov    -0x50(%rbp),%eax
sub    $0x5c,%eax
jne    14ec <construct_command_argv+0x36c>
jmp    137f <construct_command_argv+0x1ff>
mov    -0x28(%rbp),%rax
movsbl 0x1(%rax),%eax
cmp    $0x0,%eax
je     13c4 <construct_command_argv+0x244>
mov    -0x28(%rbp),%rax
movsbl 0x1(%rax),%eax
cmp    $0xa,%eax
je     13c4 <construct_command_argv+0x244>
mov    -0x28(%rbp),%rax
mov    %rax,%rcx
add    $0x1,%rcx
mov    %rcx,-0x28(%rbp)
mov    0x1(%rax),%cl
mov    -0x30(%rbp),%rax
mov    %rax,%rdx
add    $0x1,%rdx
mov    %rdx,-0x30(%rbp)
mov    %cl,(%rax)
jmp    1503 <construct_command_argv+0x383>
movl   $0x1,-0x3c(%rbp)
jmp    1503 <construct_command_argv+0x383>
mov    -0x30(%rbp),%rax
mov    %rax,%rcx
add    $0x1,%rcx
mov    %rcx,-0x30(%rbp)
movb   $0x0,(%rax)
mov    -0x30(%rbp),%rdx
mov    -0x48(%rbp),%rax
mov    -0x1c(%rbp),%ecx
add    $0x1,%ecx
mov    %ecx,-0x1c(%rbp)
movslq %ecx,%rcx
mov    %rdx,(%rax,%rcx,8)
cmpl   $0x1,-0x1c(%rbp)
jne    14ca <construct_command_argv+0x34a>
movl   $0x0,-0x4c(%rbp)
movslq -0x4c(%rbp),%rcx
lea    0x2c75(%rip),%rax
cmpq   $0x0,(%rax,%rcx,8)
je     14c5 <construct_command_argv+0x345>
movslq -0x4c(%rbp),%rcx
lea    0x2c5f(%rip),%rax
mov    (%rax,%rcx,8),%rax
mov    -0x48(%rbp),%rcx
cmp    (%rcx),%rax
je     14ad <construct_command_argv+0x32d>
movslq -0x4c(%rbp),%rcx
lea    0x2c43(%rip),%rax
mov    (%rax,%rcx,8),%rax
movsbl (%rax),%eax
mov    -0x48(%rbp),%rcx
mov    (%rcx),%rcx
movsbl (%rcx),%ecx
cmp    %ecx,%eax
jne    14b2 <construct_command_argv+0x332>
movslq -0x4c(%rbp),%rcx
lea    0x2c1f(%rip),%rax
mov    (%rax,%rcx,8),%rax
movsbl (%rax),%eax
cmp    $0x0,%eax
je     14ad <construct_command_argv+0x32d>
movslq -0x4c(%rbp),%rcx
lea    0x2c04(%rip),%rax
mov    (%rax,%rcx,8),%rdi
add    $0x1,%rdi
mov    -0x48(%rbp),%rax
mov    (%rax),%rsi
add    $0x1,%rsi
call   1080 <strcmp@plt>
cmp    $0x0,%eax
jne    14b2 <construct_command_argv+0x332>
jmp    1583 <construct_command_argv+0x403>
jmp    14b7 <construct_command_argv+0x337>
mov    -0x4c(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0x4c(%rbp)
jmp    1410 <construct_command_argv+0x290>
jmp    14ca <construct_command_argv+0x34a>
mov    -0x28(%rbp),%rdi
mov    $0x0,%al
call   1090 <next_token@plt>
cltq
mov    %rax,-0x28(%rbp)
mov    -0x28(%rbp),%rax
add    $0xffffffffffffffff,%rax
mov    %rax,-0x28(%rbp)
jmp    1503 <construct_command_argv+0x383>
mov    -0x28(%rbp),%rax
mov    (%rax),%cl
mov    -0x30(%rbp),%rax
mov    %rax,%rdx
add    $0x1,%rdx
mov    %rdx,-0x30(%rbp)
mov    %cl,(%rax)
jmp    1508 <construct_command_argv+0x388>
jmp    150d <construct_command_argv+0x38d>
jmp    1512 <construct_command_argv+0x392>
mov    -0x28(%rbp),%rax
add    $0x1,%rax
mov    %rax,-0x28(%rbp)
jmp    12aa <construct_command_argv+0x12a>
mov    -0x30(%rbp),%rax
movb   $0x0,(%rax)
mov    -0x48(%rbp),%rax
movslq -0x1c(%rbp),%rcx
mov    (%rax,%rcx,8),%rax
movsbl (%rax),%eax
cmp    $0x0,%eax
je     154b <construct_command_argv+0x3cb>
mov    -0x1c(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0x1c(%rbp)
mov    -0x48(%rbp),%rax
movslq -0x1c(%rbp),%rcx
movq   $0x0,(%rax,%rcx,8)
mov    -0x48(%rbp),%rax
cmpq   $0x0,(%rax)
jne    1576 <construct_command_argv+0x3f6>
movq   $0x0,-0x8(%rbp)
jmp    15f4 <construct_command_argv+0x474>
mov    -0x48(%rbp),%rax
mov    %rax,-0x8(%rbp)
jmp    15f4 <construct_command_argv+0x474>
cmpq   $0x0,-0x48(%rbp)
je     1597 <construct_command_argv+0x417>
mov    -0x48(%rbp),%rdi
call   1030 <free@plt>
mov    $0x20,%edi
mov    $0x0,%al
call   1070 <xmalloc@plt>
cltq
mov    %rax,-0x48(%rbp)
mov    -0x18(%rbp),%rsi
lea    0xacc(%rip),%rdi
mov    $0x0,%al
call   10a0 <variable_expand_for_file@plt>
movslq %eax,%rcx
mov    -0x48(%rbp),%rax
mov    %rcx,(%rax)
mov    -0x48(%rbp),%rax
lea    0xac8(%rip),%rcx
mov    %rcx,0x8(%rax)
mov    -0x10(%rbp),%rcx
mov    -0x48(%rbp),%rax
mov    %rcx,0x10(%rax)
mov    -0x48(%rbp),%rax
movq   $0x0,0x18(%rax)
mov    -0x48(%rbp),%rax
mov    %rax,-0x8(%rbp)
mov    -0x8(%rbp),%rax
add    $0x50,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<construct_command_argv>:
push   %rbp
push   %r15
push   %r14
push   %r13
push   %r12
push   %rbx
sub    $0x28,%rsp
mov    %rsi,%rbp
mov    %rdi,%r14
lea    0xee5(%rip),%rdi
xor    %eax,%eax
call   10a0 <variable_expand_for_file@plt>
movslq %eax,%rdi
lea    0xedd(%rip),%rsi
call   1080 <strcmp@plt>
test   %eax,%eax
jne    13cc <construct_command_argv+0x24c>
lea    0xed1(%rip),%rdi
mov    %rbp,%rsi
xor    %eax,%eax
call   10a0 <variable_expand_for_file@plt>
cltq
jmp    11d4 <construct_command_argv+0x54>
xchg   %ax,%ax
add    $0x1,%rax
movzbl (%rax),%ecx
lea    -0x9(%rcx),%edx
cmp    $0x2,%dl
jb     11d0 <construct_command_argv+0x50>
cmp    $0x20,%cl
je     11d0 <construct_command_argv+0x50>
test   %cl,%cl
jne    13cc <construct_command_argv+0x24c>
mov    %r14,%rdi
call   1050 <strlen@plt>
add    $0x1,%eax
movslq %eax,%r12
lea    0x0(,%r12,8),%rdi
xor    %eax,%eax
call   1070 <xmalloc@plt>
movslq %eax,%r13
mov    %r12d,%edi
xor    %eax,%eax
call   1070 <xmalloc@plt>
movslq %eax,%rdx
mov    %rdx,0x0(%r13)
mov    (%r14),%al
test   %al,%al
je     141b <construct_command_argv+0x29b>
mov    %rbp,0x10(%rsp)
add    %rdx,%r12
xor    %r15d,%r15d
mov    %r14,0x18(%rsp)
mov    %r14,%rbp
movl   $0x0,0xc(%rsp)
jmp    129d <construct_command_argv+0x11d>
cs nopw 0x0(%rax,%rax,1)
nop
movb   $0x0,(%rdx)
add    $0x1,%rdx
mov    0xc(%rsp),%ecx
movslq %ecx,%rax
mov    %rdx,0x20(%rsp)
mov    %rdx,0x8(%r13,%rax,8)
test   %ecx,%ecx
je     1350 <construct_command_argv+0x1d0>
addl   $0x1,0xc(%rsp)
xor    %r15d,%r15d
mov    %rbp,%rdi
xor    %eax,%eax
call   1090 <next_token@plt>
movslq %eax,%rbp
add    $0xffffffffffffffff,%rbp
mov    0x20(%rsp),%rdx
mov    0x1(%rbp),%al
add    $0x1,%rbp
test   %al,%al
je     1423 <construct_command_argv+0x2a3>
cmp    %r12,%rdx
ja     144e <construct_command_argv+0x2ce>
test   %r15d,%r15d
jne    12f0 <construct_command_argv+0x170>
mov    %rdx,%rbx
movsbl %al,%esi
lea    0x2db8(%rip),%rdi
call   1060 <index@plt>
test   %rax,%rax
jne    13ba <construct_command_argv+0x23a>
mov    0x0(%rbp),%al
movsbl %al,%ecx
cmp    $0x26,%ecx
jg     1310 <construct_command_argv+0x190>
lea    -0x9(%rcx),%edx
cmp    $0x2,%edx
mov    %rbx,%rdx
jb     1250 <construct_command_argv+0xd0>
cmp    $0x20,%ecx
je     1250 <construct_command_argv+0xd0>
jmp    13ac <construct_command_argv+0x22c>
xchg   %ax,%ax
xor    %r15d,%r15d
cmp    $0x27,%al
je     128e <construct_command_argv+0x10e>
mov    %al,(%rdx)
add    $0x1,%rdx
mov    $0x1,%r15d
jmp    128e <construct_command_argv+0x10e>
cs nopw 0x0(%rax,%rax,1)
nop
mov    $0x1,%r15d
cmp    $0x27,%ecx
mov    %rbx,%rdx
je     128e <construct_command_argv+0x10e>
cmp    $0x5c,%ecx
jne    13ac <construct_command_argv+0x22c>
mov    0x1(%rbp),%al
xor    %r15d,%r15d
test   %al,%al
je     128e <construct_command_argv+0x10e>
cmp    $0xa,%al
je     128e <construct_command_argv+0x10e>
add    $0x1,%rbp
mov    %al,(%rdx)
add    $0x1,%rdx
jmp    128e <construct_command_argv+0x10e>
mov    0x0(%r13),%r14
lea    0x1(%r14),%rbx
mov    $0x1,%r15d
lea    0xc9b(%rip),%rdi
jmp    1389 <construct_command_argv+0x209>
nopw   0x0(%rax,%rax,1)
lea    0x29d9(%rip),%rax
mov    (%rax,%r15,8),%rdi
add    $0x1,%r15
cmp    $0x19,%r15
je     1270 <construct_command_argv+0xf0>
cmp    %r14,%rdi
je     13ba <construct_command_argv+0x23a>
movzbl (%rdi),%eax
cmp    (%r14),%al
jne    1370 <construct_command_argv+0x1f0>
test   %al,%al
je     13ba <construct_command_argv+0x23a>
add    $0x1,%rdi
mov    %rbx,%rsi
call   1080 <strcmp@plt>
test   %eax,%eax
jne    1370 <construct_command_argv+0x1f0>
jmp    13ba <construct_command_argv+0x23a>
mov    %al,(%rdx)
add    $0x1,%rdx
xor    %r15d,%r15d
jmp    128e <construct_command_argv+0x10e>
mov    %r13,%rdi
call   1030 <free@plt>
mov    0x18(%rsp),%r14
mov    0x10(%rsp),%rbp
mov    $0x20,%edi
xor    %eax,%eax
call   1070 <xmalloc@plt>
movslq %eax,%r13
lea    0xc9e(%rip),%rdi
mov    %rbp,%rsi
xor    %eax,%eax
call   10a0 <variable_expand_for_file@plt>
cltq
mov    %rax,0x0(%r13)
lea    0xc9f(%rip),%rax
mov    %rax,0x8(%r13)
mov    %r14,0x10(%r13)
movq   $0x0,0x18(%r13)
mov    %r13,%rax
add    $0x28,%rsp
pop    %rbx
pop    %r12
pop    %r13
pop    %r14
pop    %r15
pop    %rbp
ret
movl   $0x0,0xc(%rsp)
movb   $0x0,(%rdx)
movslq 0xc(%rsp),%rax
mov    0x0(%r13,%rax,8),%rcx
cmpb   $0x1,(%rcx)
sbb    $0xffffffff,%eax
cltq
movq   $0x0,0x0(%r13,%rax,8)
mov    0x0(%r13),%rax
test   %rax,%rax
cmove  %rax,%r13
jmp    1409 <construct_command_argv+0x289>
call   1040 <abort@plt>

LLVM IR (-O0):
%struct.file = type opaque
@construct_command_argv.sh_chars = internal global [19 x i8] c"#;\22*?[]&|<>(){}=$`\00"
@construct_command_argv.sh_cmds = internal global [25 x i8*] [i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str, i32 0, i32 0), i8* getelementptr inbounds ([5 x i8], [5 x i8]* @.str.1, i32 0, i32 0), i8* getelementptr inbounds ([5 x i8], [5 x i8]* @.str.2, i32 0, i32 0), i8* getelementptr inbounds ([5 x i8], [5 x i8]* @.str.3, i32 0, i32 0), i8* getelementptr inbounds ([6 x i8], [6 x i8]* @.str.4, i32 0, i32 0), i8* getelementptr inbounds ([7 x i8], [7 x i8]* @.str.5, i32 0, i32 0), i8* getelementptr inbounds ([4 x i8], [4 x i8]* @.str.6, i32 0, i32 0), i8* getelementptr inbounds ([6 x i8], [6 x i8]* @.str.7, i32 0, i32 0), i8* getelementptr inbounds ([5 x i8], [5 x i8]* @.str.8, i32 0, i32 0), i8* getelementptr inbounds ([6 x i8], [6 x i8]* @.str.9, i32 0, i32 0), i8* getelementptr inbounds ([4 x i8], [4 x i8]* @.str.10, i32 0, i32 0), i8* getelementptr inbounds ([5 x i8], [5 x i8]* @.str.11, i32 0, i32 0), i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str.12, i32 0, i32 0), i8* getelementptr inbounds ([2 x i8], [2 x i8]* @.str.13, i32 0, i32 0), i8* getelementptr inbounds ([2 x i8], [2 x i8]* @.str.14, i32 0, i32 0), i8* getelementptr inbounds ([6 x i8], [6 x i8]* @.str.15, i32 0, i32 0), i8* getelementptr inbounds ([9 x i8], [9 x i8]* @.str.16, i32 0, i32 0), i8* getelementptr inbounds ([7 x i8], [7 x i8]* @.str.17, i32 0, i32 0), i8* getelementptr inbounds ([5 x i8], [5 x i8]* @.str.18, i32 0, i32 0), i8* getelementptr inbounds ([9 x i8], [9 x i8]* @.str.19, i32 0, i32 0), i8* getelementptr inbounds ([6 x i8], [6 x i8]* @.str.20, i32 0, i32 0), i8* getelementptr inbounds ([6 x i8], [6 x i8]* @.str.21, i32 0, i32 0), i8* getelementptr inbounds ([5 x i8], [5 x i8]* @.str.22, i32 0, i32 0), i8* getelementptr inbounds ([7 x i8], [7 x i8]* @.str.23, i32 0, i32 0), i8* null]
@.str = [3 x i8] c"cd\00"
@.str.1 = [5 x i8] c"eval\00"
@.str.2 = [5 x i8] c"exec\00"
@.str.3 = [5 x i8] c"exit\00"
@.str.4 = [6 x i8] c"login\00"
@.str.5 = [7 x i8] c"logout\00"
@.str.6 = [4 x i8] c"set\00"
@.str.7 = [6 x i8] c"umask\00"
@.str.8 = [5 x i8] c"wait\00"
@.str.9 = [6 x i8] c"while\00"
@.str.10 = [4 x i8] c"for\00"
@.str.11 = [5 x i8] c"case\00"
@.str.12 = [3 x i8] c"if\00"
@.str.13 = [2 x i8] c":\00"
@.str.14 = [2 x i8] c".\00"
@.str.15 = [6 x i8] c"break\00"
@.str.16 = [9 x i8] c"continue\00"
@.str.17 = [7 x i8] c"export\00"
@.str.18 = [5 x i8] c"read\00"
@.str.19 = [9 x i8] c"readonly\00"
@.str.20 = [6 x i8] c"shift\00"
@.str.21 = [6 x i8] c"times\00"
@.str.22 = [5 x i8] c"trap\00"
@.str.23 = [7 x i8] c"switch\00"
@.str.24 = [9 x i8] c"$(SHELL)\00"
@.str.25 = [8 x i8] c"/bin/sh\00"
@.str.26 = [7 x i8] c"$(IFS)\00"
@.str.27 = [3 x i8] c"-c\00"
define i8** @construct_command_argv(i8* %0, %struct.file* %1) {
%3 = alloca i8**
%4 = alloca i8*
%5 = alloca %struct.file*
%6 = alloca i32
%7 = alloca i8*
%8 = alloca i8*
%9 = alloca i8*
%10 = alloca i32
%11 = alloca i8**
%12 = alloca i32
store i8* %0, i8** %4
store %struct.file* %1, %struct.file** %5
store i8** null, i8*** %11
%13 = load %struct.file*, %struct.file** %5
%14 = call i32 (i8*, %struct.file*, ...) bitcast (i32 (...)* @variable_expand_for_file to i32 (i8*, %struct.file*, ...)*)(i8* getelementptr inbounds ([9 x i8], [9 x i8]* @.str.24, i64 0, i64 0), %struct.file* %13)
%15 = sext i32 %14 to i64
%16 = inttoptr i64 %15 to i8*
store i8* %16, i8** %7
%17 = load i8*, i8** %7
%18 = call i32 @strcmp(i8* %17, i8* getelementptr inbounds ([8 x i8], [8 x i8]* @.str.25, i64 0, i64 0))
%19 = icmp ne i32 %18, 0
br i1 %19, label %20, label %21
20: ; preds = %2
br label %240
21: ; preds = %2
%22 = load %struct.file*, %struct.file** %5
%23 = call i32 (i8*, %struct.file*, ...) bitcast (i32 (...)* @variable_expand_for_file to i32 (i8*, %struct.file*, ...)*)(i8* getelementptr inbounds ([7 x i8], [7 x i8]* @.str.26, i64 0, i64 0), %struct.file* %22)
%24 = sext i32 %23 to i64
%25 = inttoptr i64 %24 to i8*
store i8* %25, i8** %7
%26 = load i8*, i8** %7
store i8* %26, i8** %8
br label %27
27: ; preds = %49, %21
%28 = load i8*, i8** %8
%29 = load i8, i8* %28
%30 = sext i8 %29 to i32
%31 = icmp ne i32 %30, 0
br i1 %31, label %32, label %52
32: ; preds = %27
%33 = load i8*, i8** %8
%34 = load i8, i8* %33
%35 = sext i8 %34 to i32
%36 = icmp ne i32 %35, 32
br i1 %36, label %37, label %48
37: ; preds = %32
%38 = load i8*, i8** %8
%39 = load i8, i8* %38
%40 = sext i8 %39 to i32
%41 = icmp ne i32 %40, 9
br i1 %41, label %42, label %48
42: ; preds = %37
%43 = load i8*, i8** %8
%44 = load i8, i8* %43
%45 = sext i8 %44 to i32
%46 = icmp ne i32 %45, 10
br i1 %46, label %47, label %48
47: ; preds = %42
br label %240
48: ; preds = %42, %37, %32
br label %49
49: ; preds = %48
%50 = load i8*, i8** %8
%51 = getelementptr inbounds i8, i8* %50, i32 1
store i8* %51, i8** %8
br label %27
52: ; preds = %27
%53 = load i8*, i8** %4
%54 = call i64 @strlen(i8* %53)
%55 = add i64 %54, 1
%56 = trunc i64 %55 to i32
store i32 %56, i32* %6
%57 = load i32, i32* %6
%58 = sext i32 %57 to i64
%59 = mul i64 %58, 8
%60 = call i32 (i64, ...) bitcast (i32 (...)* @xmalloc to i32 (i64, ...)*)(i64 %59)
%61 = sext i32 %60 to i64
%62 = inttoptr i64 %61 to i8**
store i8** %62, i8*** %11
%63 = load i32, i32* %6
%64 = call i32 (i32, ...) bitcast (i32 (...)* @xmalloc to i32 (i32, ...)*)(i32 %63)
%65 = sext i32 %64 to i64
%66 = inttoptr i64 %65 to i8*
%67 = load i8**, i8*** %11
%68 = getelementptr inbounds i8*, i8** %67, i64 0
store i8* %66, i8** %68
store i8* %66, i8** %8
%69 = load i8*, i8** %8
%70 = load i32, i32* %6
%71 = sext i32 %70 to i64
%72 = getelementptr inbounds i8, i8* %69, i64 %71
store i8* %72, i8** %9
store i32 0, i32* %6
store i32 0, i32* %10
%73 = load i8*, i8** %4
store i8* %73, i8** %7
br label %74
74: ; preds = %211, %52
%75 = load i8*, i8** %7
%76 = load i8, i8* %75
%77 = sext i8 %76 to i32
%78 = icmp ne i32 %77, 0
br i1 %78, label %79, label %214
79: ; preds = %74
%80 = load i8*, i8** %8
%81 = load i8*, i8** %9
%82 = icmp ugt i8* %80, %81
br i1 %82, label %83, label %84
83: ; preds = %79
unreachable
84: ; preds = %79
%85 = load i32, i32* %10
%86 = icmp ne i32 %85, 0
br i1 %86, label %87, label %99
87: ; preds = %84
%88 = load i8*, i8** %7
%89 = load i8, i8* %88
%90 = sext i8 %89 to i32
%91 = icmp eq i32 %90, 39
br i1 %91, label %92, label %93
92: ; preds = %87
store i32 0, i32* %10
br label %98
93: ; preds = %87
%94 = load i8*, i8** %7
%95 = load i8, i8* %94
%96 = load i8*, i8** %8
%97 = getelementptr inbounds i8, i8* %96, i32 1
store i8* %97, i8** %8
store i8 %95, i8* %96
br label %98
98: ; preds = %93, %92
br label %210
99: ; preds = %84
%100 = load i8*, i8** %7
%101 = load i8, i8* %100
%102 = sext i8 %101 to i32
%103 = call i8* @index(i8* getelementptr inbounds ([19 x i8], [19 x i8]* @construct_command_argv.sh_chars, i64 0, i64 0), i32 %102)
%104 = icmp ne i8* %103, null
br i1 %104, label %105, label %106
105: ; preds = %99
br label %240
106: ; preds = %99
%107 = load i8*, i8** %7
%108 = load i8, i8* %107
%109 = sext i8 %108 to i32
switch i32 %109, label %203 [
i32 92, label %110
i32 39, label %129
i32 10, label %130
i32 32, label %130
i32 9, label %130
]
110: ; preds = %106
%111 = load i8*, i8** %7
%112 = getelementptr inbounds i8, i8* %111, i64 1
%113 = load i8, i8* %112
%114 = sext i8 %113 to i32
%115 = icmp ne i32 %114, 0
br i1 %115, label %116, label %128
116: ; preds = %110
%117 = load i8*, i8** %7
%118 = getelementptr inbounds i8, i8* %117, i64 1
%119 = load i8, i8* %118
%120 = sext i8 %119 to i32
%121 = icmp ne i32 %120, 10
br i1 %121, label %122, label %128
122: ; preds = %116
%123 = load i8*, i8** %7
%124 = getelementptr inbounds i8, i8* %123, i32 1
store i8* %124, i8** %7
%125 = load i8, i8* %124
%126 = load i8*, i8** %8
%127 = getelementptr inbounds i8, i8* %126, i32 1
store i8* %127, i8** %8
store i8 %125, i8* %126
br label %128
128: ; preds = %122, %116, %110
br label %208
129: ; preds = %106
store i32 1, i32* %10
br label %208
130: ; preds = %106, %106, %106
%131 = load i8*, i8** %8
%132 = getelementptr inbounds i8, i8* %131, i32 1
store i8* %132, i8** %8
store i8 0, i8* %131
%133 = load i8*, i8** %8
%134 = load i8**, i8*** %11
%135 = load i32, i32* %6
%136 = add nsw i32 %135, 1
store i32 %136, i32* %6
%137 = sext i32 %136 to i64
%138 = getelementptr inbounds i8*, i8** %134, i64 %137
store i8* %133, i8** %138
%139 = load i32, i32* %6
%140 = icmp eq i32 %139, 1
br i1 %140, label %141, label %196
141: ; preds = %130
store i32 0, i32* %12
br label %142
142: ; preds = %192, %141
%143 = load i32, i32* %12
%144 = sext i32 %143 to i64
%145 = getelementptr inbounds [25 x i8*], [25 x i8*]* @construct_command_argv.sh_cmds, i64 0, i64 %144
%146 = load i8*, i8** %145
%147 = icmp ne i8* %146, null
br i1 %147, label %148, label %195
148: ; preds = %142
%149 = load i32, i32* %12
%150 = sext i32 %149 to i64
%151 = getelementptr inbounds [25 x i8*], [25 x i8*]* @construct_command_argv.sh_cmds, i64 0, i64 %150
%152 = load i8*, i8** %151
%153 = load i8**, i8*** %11
%154 = getelementptr inbounds i8*, i8** %153, i64 0
%155 = load i8*, i8** %154
%156 = icmp eq i8* %152, %155
br i1 %156, label %190, label %157
157: ; preds = %148
%158 = load i32, i32* %12
%159 = sext i32 %158 to i64
%160 = getelementptr inbounds [25 x i8*], [25 x i8*]* @construct_command_argv.sh_cmds, i64 0, i64 %159
%161 = load i8*, i8** %160
%162 = load i8, i8* %161
%163 = sext i8 %162 to i32
%164 = load i8**, i8*** %11
%165 = getelementptr inbounds i8*, i8** %164, i64 0
%166 = load i8*, i8** %165
%167 = load i8, i8* %166
%168 = sext i8 %167 to i32
%169 = icmp eq i32 %163, %168
br i1 %169, label %170, label %191
170: ; preds = %157
%171 = load i32, i32* %12
%172 = sext i32 %171 to i64
%173 = getelementptr inbounds [25 x i8*], [25 x i8*]* @construct_command_argv.sh_cmds, i64 0, i64 %172
%174 = load i8*, i8** %173
%175 = load i8, i8* %174
%176 = sext i8 %175 to i32
%177 = icmp eq i32 %176, 0
br i1 %177, label %190, label %178
178: ; preds = %170
%179 = load i32, i32* %12
%180 = sext i32 %179 to i64
%181 = getelementptr inbounds [25 x i8*], [25 x i8*]* @construct_command_argv.sh_cmds, i64 0, i64 %180
%182 = load i8*, i8** %181
%183 = getelementptr inbounds i8, i8* %182, i64 1
%184 = load i8**, i8*** %11
%185 = getelementptr inbounds i8*, i8** %184, i64 0
%186 = load i8*, i8** %185
%187 = getelementptr inbounds i8, i8* %186, i64 1
%188 = call i32 @strcmp(i8* %183, i8* %187)
%189 = icmp ne i32 %188, 0
br i1 %189, label %191, label %190
190: ; preds = %178, %170, %148
br label %240
191: ; preds = %178, %157
br label %192
192: ; preds = %191
%193 = load i32, i32* %12
%194 = add nsw i32 %193, 1
store i32 %194, i32* %12
br label %142
195: ; preds = %142
br label %196
196: ; preds = %195, %130
%197 = load i8*, i8** %7
%198 = call i32 (i8*, ...) bitcast (i32 (...)* @next_token to i32 (i8*, ...)*)(i8* %197)
%199 = sext i32 %198 to i64
%200 = inttoptr i64 %199 to i8*
store i8* %200, i8** %7
%201 = load i8*, i8** %7
%202 = getelementptr inbounds i8, i8* %201, i32 -1
store i8* %202, i8** %7
br label %208
203: ; preds = %106
%204 = load i8*, i8** %7
%205 = load i8, i8* %204
%206 = load i8*, i8** %8
%207 = getelementptr inbounds i8, i8* %206, i32 1
store i8* %207, i8** %8
store i8 %205, i8* %206
br label %208
208: ; preds = %203, %196, %129, %128
br label %209
209: ; preds = %208
br label %210
210: ; preds = %209, %98
br label %211
211: ; preds = %210
%212 = load i8*, i8** %7
%213 = getelementptr inbounds i8, i8* %212, i32 1
store i8* %213, i8** %7
br label %74
214: ; preds = %74
%215 = load i8*, i8** %8
store i8 0, i8* %215
%216 = load i8**, i8*** %11
%217 = load i32, i32* %6
%218 = sext i32 %217 to i64
%219 = getelementptr inbounds i8*, i8** %216, i64 %218
%220 = load i8*, i8** %219
%221 = getelementptr inbounds i8, i8* %220, i64 0
%222 = load i8, i8* %221
%223 = sext i8 %222 to i32
%224 = icmp ne i32 %223, 0
br i1 %224, label %225, label %228
225: ; preds = %214
%226 = load i32, i32* %6
%227 = add nsw i32 %226, 1
store i32 %227, i32* %6
br label %228
228: ; preds = %225, %214
%229 = load i8**, i8*** %11
%230 = load i32, i32* %6
%231 = sext i32 %230 to i64
%232 = getelementptr inbounds i8*, i8** %229, i64 %231
store i8* null, i8** %232
%233 = load i8**, i8*** %11
%234 = getelementptr inbounds i8*, i8** %233, i64 0
%235 = load i8*, i8** %234
%236 = icmp eq i8* %235, null
br i1 %236, label %237, label %238
237: ; preds = %228
store i8** null, i8*** %3
br label %264
238: ; preds = %228
%239 = load i8**, i8*** %11
store i8** %239, i8*** %3
br label %264
240: ; preds = %190, %105, %47, %20
%241 = load i8**, i8*** %11
%242 = icmp ne i8** %241, null
br i1 %242, label %243, label %246
243: ; preds = %240
%244 = load i8**, i8*** %11
%245 = bitcast i8** %244 to i8*
br label %246
246: ; preds = %243, %240
%247 = call i32 (i64, ...) bitcast (i32 (...)* @xmalloc to i32 (i64, ...)*)(i64 32)
%248 = sext i32 %247 to i64
%249 = inttoptr i64 %248 to i8**
store i8** %249, i8*** %11
%250 = load %struct.file*, %struct.file** %5
%251 = call i32 (i8*, %struct.file*, ...) bitcast (i32 (...)* @variable_expand_for_file to i32 (i8*, %struct.file*, ...)*)(i8* getelementptr inbounds ([9 x i8], [9 x i8]* @.str.24, i64 0, i64 0), %struct.file* %250)
%252 = sext i32 %251 to i64
%253 = inttoptr i64 %252 to i8*
%254 = load i8**, i8*** %11
%255 = getelementptr inbounds i8*, i8** %254, i64 0
store i8* %253, i8** %255
%256 = load i8**, i8*** %11
%257 = getelementptr inbounds i8*, i8** %256, i64 1
store i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str.27, i64 0, i64 0), i8** %257
%258 = load i8*, i8** %4
%259 = load i8**, i8*** %11
%260 = getelementptr inbounds i8*, i8** %259, i64 2
store i8* %258, i8** %260
%261 = load i8**, i8*** %11
%262 = getelementptr inbounds i8*, i8** %261, i64 3
store i8* null, i8** %262
%263 = load i8**, i8*** %11
store i8** %263, i8*** %3
br label %264
264: ; preds = %246, %238, %237
%265 = load i8**, i8*** %3
ret i8** %265
}

LLVM IR (-O2):
%struct.file = type opaque
@construct_command_argv.sh_chars = internal global [19 x i8] c"#;\22*?[]&|<>(){}=$`\00"
@construct_command_argv.sh_cmds = internal unnamed_addr constant [25 x i8*] [i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str, i32 0, i32 0), i8* getelementptr inbounds ([5 x i8], [5 x i8]* @.str.1, i32 0, i32 0), i8* getelementptr inbounds ([5 x i8], [5 x i8]* @.str.2, i32 0, i32 0), i8* getelementptr inbounds ([5 x i8], [5 x i8]* @.str.3, i32 0, i32 0), i8* getelementptr inbounds ([6 x i8], [6 x i8]* @.str.4, i32 0, i32 0), i8* getelementptr inbounds ([7 x i8], [7 x i8]* @.str.5, i32 0, i32 0), i8* getelementptr inbounds ([4 x i8], [4 x i8]* @.str.6, i32 0, i32 0), i8* getelementptr inbounds ([6 x i8], [6 x i8]* @.str.7, i32 0, i32 0), i8* getelementptr inbounds ([5 x i8], [5 x i8]* @.str.8, i32 0, i32 0), i8* getelementptr inbounds ([6 x i8], [6 x i8]* @.str.9, i32 0, i32 0), i8* getelementptr inbounds ([4 x i8], [4 x i8]* @.str.10, i32 0, i32 0), i8* getelementptr inbounds ([5 x i8], [5 x i8]* @.str.11, i32 0, i32 0), i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str.12, i32 0, i32 0), i8* getelementptr inbounds ([2 x i8], [2 x i8]* @.str.13, i32 0, i32 0), i8* getelementptr inbounds ([2 x i8], [2 x i8]* @.str.14, i32 0, i32 0), i8* getelementptr inbounds ([6 x i8], [6 x i8]* @.str.15, i32 0, i32 0), i8* getelementptr inbounds ([9 x i8], [9 x i8]* @.str.16, i32 0, i32 0), i8* getelementptr inbounds ([7 x i8], [7 x i8]* @.str.17, i32 0, i32 0), i8* getelementptr inbounds ([5 x i8], [5 x i8]* @.str.18, i32 0, i32 0), i8* getelementptr inbounds ([9 x i8], [9 x i8]* @.str.19, i32 0, i32 0), i8* getelementptr inbounds ([6 x i8], [6 x i8]* @.str.20, i32 0, i32 0), i8* getelementptr inbounds ([6 x i8], [6 x i8]* @.str.21, i32 0, i32 0), i8* getelementptr inbounds ([5 x i8], [5 x i8]* @.str.22, i32 0, i32 0), i8* getelementptr inbounds ([7 x i8], [7 x i8]* @.str.23, i32 0, i32 0), i8* null]
@.str = [3 x i8] c"cd\00"
@.str.1 = [5 x i8] c"eval\00"
@.str.2 = [5 x i8] c"exec\00"
@.str.3 = [5 x i8] c"exit\00"
@.str.4 = [6 x i8] c"login\00"
@.str.5 = [7 x i8] c"logout\00"
@.str.6 = [4 x i8] c"set\00"
@.str.7 = [6 x i8] c"umask\00"
@.str.8 = [5 x i8] c"wait\00"
@.str.9 = [6 x i8] c"while\00"
@.str.10 = [4 x i8] c"for\00"
@.str.11 = [5 x i8] c"case\00"
@.str.12 = [3 x i8] c"if\00"
@.str.13 = [2 x i8] c":\00"
@.str.14 = [2 x i8] c".\00"
@.str.15 = [6 x i8] c"break\00"
@.str.16 = [9 x i8] c"continue\00"
@.str.17 = [7 x i8] c"export\00"
@.str.18 = [5 x i8] c"read\00"
@.str.19 = [9 x i8] c"readonly\00"
@.str.20 = [6 x i8] c"shift\00"
@.str.21 = [6 x i8] c"times\00"
@.str.22 = [5 x i8] c"trap\00"
@.str.23 = [7 x i8] c"switch\00"
@.str.24 = [9 x i8] c"$(SHELL)\00"
@.str.25 = [8 x i8] c"/bin/sh\00"
@.str.26 = [7 x i8] c"$(IFS)\00"
@.str.27 = [3 x i8] c"-c\00"
define i8** @construct_command_argv(i8* %0, %struct.file* %1) {
%3 = tail call i32 (i8*, %struct.file*, ...) bitcast (i32 (...)* @variable_expand_for_file to i32 (i8*, %struct.file*, ...)*)(i8* getelementptr inbounds ([9 x i8], [9 x i8]* @.str.24, i64 0, i64 0), %struct.file* %1)
%4 = sext i32 %3 to i64
%5 = inttoptr i64 %4 to i8*
%6 = tail call i32 @strcmp(i8* dereferenceable(1) %5, i8* dereferenceable(8) getelementptr inbounds ([8 x i8], [8 x i8]* @.str.25, i64 0, i64 0))
%7 = icmp eq i32 %6, 0
br i1 %7, label %8, label %118
8: ; preds = %2
%9 = tail call i32 (i8*, %struct.file*, ...) bitcast (i32 (...)* @variable_expand_for_file to i32 (i8*, %struct.file*, ...)*)(i8* getelementptr inbounds ([7 x i8], [7 x i8]* @.str.26, i64 0, i64 0), %struct.file* %1)
%10 = sext i32 %9 to i64
%11 = inttoptr i64 %10 to i8*
br label %12
12: ; preds = %15, %8
%13 = phi i8* [ %11, %8 ], [ %16, %15 ]
%14 = load i8, i8* %13
switch i8 %14, label %118 [
i8 0, label %17
i8 32, label %15
i8 9, label %15
i8 10, label %15
]
15: ; preds = %12, %12, %12
%16 = getelementptr inbounds i8, i8* %13, i64 1
br label %12
17: ; preds = %12
%18 = tail call i64 @strlen(i8* dereferenceable(1) %0)
%19 = trunc i64 %18 to i32
%20 = add i32 %19, 1
%21 = sext i32 %20 to i64
%22 = shl nsw i64 %21, 3
%23 = tail call i32 (i64, ...) bitcast (i32 (...)* @xmalloc to i32 (i64, ...)*)(i64 %22)
%24 = sext i32 %23 to i64
%25 = inttoptr i64 %24 to i8**
%26 = tail call i32 (i32, ...) bitcast (i32 (...)* @xmalloc to i32 (i32, ...)*)(i32 %20)
%27 = sext i32 %26 to i64
%28 = inttoptr i64 %27 to i8*
store i8* %28, i8** %25
%29 = getelementptr inbounds i8, i8* %28, i64 %21
%30 = load i8, i8* %0
%31 = icmp eq i8 %30, 0
br i1 %31, label %101, label %32
32: ; preds = %17, %93
%33 = phi i8 [ %99, %93 ], [ %30, %17 ]
%34 = phi i32 [ %97, %93 ], [ 0, %17 ]
%35 = phi i8* [ %96, %93 ], [ %28, %17 ]
%36 = phi i8* [ %98, %93 ], [ %0, %17 ]
%37 = phi i32 [ %94, %93 ], [ 0, %17 ]
%38 = sext i8 %33 to i32
%39 = icmp ugt i8* %35, %29
br i1 %39, label %40, label %41
40: ; preds = %32
tail call void @abort()
unreachable
41: ; preds = %32
%42 = icmp eq i32 %34, 0
br i1 %42, label %47, label %43
43: ; preds = %41
%44 = icmp eq i8 %33, 39
br i1 %44, label %93, label %45
45: ; preds = %43
%46 = getelementptr inbounds i8, i8* %35, i64 1
store i8 %33, i8* %35
br label %93
47: ; preds = %41
%48 = tail call i8* @index(i8* getelementptr inbounds ([19 x i8], [19 x i8]* @construct_command_argv.sh_chars, i64 0, i64 0), i32 %38)
%49 = icmp eq i8* %48, null
br i1 %49, label %50, label %116
50: ; preds = %47
%51 = load i8, i8* %36
%52 = sext i8 %51 to i32
switch i32 %52, label %91 [
i32 92, label %53
i32 39, label %93
i32 10, label %58
i32 32, label %58
i32 9, label %58
]
53: ; preds = %50
%54 = getelementptr inbounds i8, i8* %36, i64 1
%55 = load i8, i8* %54
switch i8 %55, label %56 [
i8 0, label %93
i8 10, label %93
]
56: ; preds = %53
%57 = getelementptr inbounds i8, i8* %35, i64 1
store i8 %55, i8* %35
br label %93
58: ; preds = %50, %50, %50
%59 = getelementptr inbounds i8, i8* %35, i64 1
store i8 0, i8* %35
%60 = add nsw i32 %37, 1
%61 = sext i32 %60 to i64
%62 = getelementptr inbounds i8*, i8** %25, i64 %61
store i8* %59, i8** %62
%63 = icmp eq i32 %37, 0
br i1 %63, label %64, label %86
64: ; preds = %58
%65 = load i8*, i8** %25
%66 = getelementptr inbounds i8, i8* %65, i64 1
br label %67
67: ; preds = %64, %81
%68 = phi i64 [ 0, %64 ], [ %82, %81 ]
%69 = phi i8* [ getelementptr inbounds ([3 x i8], [3 x i8]* @.str, i64 0, i64 0), %64 ], [ %84, %81 ]
%70 = icmp eq i8* %69, %65
br i1 %70, label %116, label %71
71: ; preds = %67
%72 = load i8, i8* %69
%73 = load i8, i8* %65
%74 = icmp eq i8 %72, %73
br i1 %74, label %75, label %81
75: ; preds = %71
%76 = icmp eq i8 %72, 0
br i1 %76, label %116, label %77
77: ; preds = %75
%78 = getelementptr inbounds i8, i8* %69, i64 1
%79 = tail call i32 @strcmp(i8* %78, i8* %66)
%80 = icmp eq i32 %79, 0
br i1 %80, label %116, label %81
81: ; preds = %71, %77
%82 = add nuw nsw i64 %68, 1
%83 = getelementptr inbounds [25 x i8*], [25 x i8*]* @construct_command_argv.sh_cmds, i64 0, i64 %82
%84 = load i8*, i8** %83
%85 = icmp eq i64 %82, 24
br i1 %85, label %86, label %67
86: ; preds = %81, %58
%87 = tail call i32 (i8*, ...) bitcast (i32 (...)* @next_token to i32 (i8*, ...)*)(i8* %36)
%88 = sext i32 %87 to i64
%89 = inttoptr i64 %88 to i8*
%90 = getelementptr inbounds i8, i8* %89, i64 -1
br label %93
91: ; preds = %50
%92 = getelementptr inbounds i8, i8* %35, i64 1
store i8 %51, i8* %35
br label %93
93: ; preds = %50, %53, %53, %43, %45, %86, %91, %56
%94 = phi i32 [ %37, %45 ], [ %37, %91 ], [ %60, %86 ], [ %37, %56 ], [ %37, %53 ], [ %37, %43 ], [ %37, %53 ], [ %37, %50 ]
%95 = phi i8* [ %36, %45 ], [ %36, %91 ], [ %90, %86 ], [ %54, %56 ], [ %36, %53 ], [ %36, %43 ], [ %36, %53 ], [ %36, %50 ]
%96 = phi i8* [ %46, %45 ], [ %92, %91 ], [ %59, %86 ], [ %57, %56 ], [ %35, %53 ], [ %35, %43 ], [ %35, %53 ], [ %35, %50 ]
%97 = phi i32 [ 1, %45 ], [ 0, %91 ], [ 0, %86 ], [ 0, %56 ], [ 0, %53 ], [ 0, %43 ], [ 0, %53 ], [ 1, %50 ]
%98 = getelementptr inbounds i8, i8* %95, i64 1
%99 = load i8, i8* %98
%100 = icmp eq i8 %99, 0
br i1 %100, label %101, label %32
101: ; preds = %93, %17
%102 = phi i32 [ 0, %17 ], [ %94, %93 ]
%103 = phi i8* [ %28, %17 ], [ %96, %93 ]
store i8 0, i8* %103
%104 = sext i32 %102 to i64
%105 = getelementptr inbounds i8*, i8** %25, i64 %104
%106 = load i8*, i8** %105
%107 = load i8, i8* %106
%108 = icmp ne i8 %107, 0
%109 = zext i1 %108 to i32
%110 = add nsw i32 %102, %109
%111 = sext i32 %110 to i64
%112 = getelementptr inbounds i8*, i8** %25, i64 %111
store i8* null, i8** %112
%113 = load i8*, i8** %25
%114 = icmp eq i8* %113, null
%115 = select i1 %114, i8** null, i8** %25
br label %128
116: ; preds = %47, %77, %75, %67
%117 = inttoptr i64 %24 to i8*
tail call void @free(i8* %117)
br label %118
118: ; preds = %12, %2, %116
%119 = tail call i32 (i64, ...) bitcast (i32 (...)* @xmalloc to i32 (i64, ...)*)(i64 32)
%120 = sext i32 %119 to i64
%121 = inttoptr i64 %120 to i8**
%122 = tail call i32 (i8*, %struct.file*, ...) bitcast (i32 (...)* @variable_expand_for_file to i32 (i8*, %struct.file*, ...)*)(i8* getelementptr inbounds ([9 x i8], [9 x i8]* @.str.24, i64 0, i64 0), %struct.file* %1)
%123 = sext i32 %122 to i64
%124 = inttoptr i64 %123 to i8*
store i8* %124, i8** %121
%125 = getelementptr inbounds i8*, i8** %121, i64 1
store i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str.27, i64 0, i64 0), i8** %125
%126 = getelementptr inbounds i8*, i8** %121, i64 2
store i8* %0, i8** %126
%127 = getelementptr inbounds i8*, i8** %121, i64 3
store i8* null, i8** %127
br label %128
128: ; preds = %101, %118
%129 = phi i8** [ %121, %118 ], [ %115, %101 ]
ret i8** %129
}