#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*/ FILE;

/* Variables and functions */
int /*<<< orphan*/ fclose(int /*<<< orphan*/ *);
int fgetc(int /*<<< orphan*/ *);
int /*<<< orphan*/ *fopen(char *, char *);
int /*<<< orphan*/ fprintf(int /*<<< orphan*/, char *, char *);
int /*<<< orphan*/ printf(char *, ...);
int /*<<< orphan*/ putchar(int);
int /*<<< orphan*/ stderr;
int strlen(char *);
scalar_t__ strstr(char *, char *);
int main(int argc, char *argv[]) {
  int x;
  int first_file = 1;
  printf("/* Built-in files */\n");
  printf("\n");
  printf("#include \"types.h\"\n");
  printf("\n");
  printf("unsigned char *builtins[]=\n");
  printf("{\n");
  for (x = 1; argv[x]; ++x) {
    int c;
    int instring = 0;
    int first_string = 1;
    int z;
    int type;
    FILE *f;
    f = fopen(argv[x], "r");
    if (!f) {
      fprintf(stderr, "Couldn't open file '%s'\n", argv[x]);
      return -1;
    }
    for (z = strlen(argv[x]); z && argv[x][z - 1] != '/'; --z)
      ;
    if (first_file) {
      printf("	USTR \"%s\",\n", argv[x] + z);
      first_file = 0;
    } else
      printf(",	USTR \"%s\",\n", argv[x] + z);
    if (strstr(argv[x] + z, ".jsf"))
      type = 1;
    else
      type = 0;
    while ((c = fgetc(f)) != -1) {
      if (!instring) {
        if ((type && c == '#') ||
            (!type && (c == ' ' || c == '\t' || c == '\n'))) {
          do
            if (c == '\n')
              break;
          while ((c = fgetc(f)) != -1);
          continue;
        }
        if (first_string) {
          printf("		USTR \"");
          first_string = 0;
        } else
          printf("		\"");
        instring = 1;
      }
      if (c == '"')
        printf("\\\"");
      else if (c == '\\')
        printf("\\\\");
      else if (c == '\n')
        printf("\\n");
      else if ((c >= 32 && c <= 126) || c == '\t')
        putchar(c);
      else
        printf("\\x%2.2x", c);
      if (c == '\n') {
        printf("\"\n");
        instring = 0;
      }
    }
    if (instring) {
      printf("\"\n");
      instring = 0;
    }
    fclose(f);
  }
  if (first_file)
    printf("	NULL\n");
  else
    printf(",	NULL\n");
  printf("};\n");
  return 0;
}


x86 assembly (clang, -O0):
<main>:
push   %rbp
mov    %rsp,%rbp
sub    $0x40,%rsp
movl   $0x0,-0x4(%rbp)
mov    %edi,-0x8(%rbp)
mov    %rsi,-0x10(%rbp)
movl   $0x1,-0x18(%rbp)
lea    0xe5c(%rip),%rdi
mov    $0x0,%al
call   1060 <printf@plt>
lea    0xe76(%rip),%rdi
mov    $0x0,%al
call   1060 <printf@plt>
lea    0xe56(%rip),%rdi
mov    $0x0,%al
call   1060 <printf@plt>
lea    0xe5a(%rip),%rdi
mov    $0x0,%al
call   1060 <printf@plt>
lea    0xe4e(%rip),%rdi
mov    $0x0,%al
call   1060 <printf@plt>
lea    0xe5c(%rip),%rdi
mov    $0x0,%al
call   1060 <printf@plt>
movl   $0x1,-0x14(%rbp)
mov    -0x10(%rbp),%rax
movslq -0x14(%rbp),%rcx
cmpq   $0x0,(%rax,%rcx,8)
je     1531 <main+0x3b1>
movl   $0x0,-0x20(%rbp)
movl   $0x1,-0x24(%rbp)
mov    -0x10(%rbp),%rax
movslq -0x14(%rbp),%rcx
mov    (%rax,%rcx,8),%rdi
lea    0xe1d(%rip),%rsi
call   1090 <fopen@plt>
mov    %rax,-0x38(%rbp)
cmpq   $0x0,-0x38(%rbp)
jne    126d <main+0xed>
mov    0x2d99(%rip),%rax
mov    (%rax),%edi
mov    -0x10(%rbp),%rax
movslq -0x14(%rbp),%rcx
mov    (%rax,%rcx,8),%rdx
lea    0xdef(%rip),%rsi
call   1080 <fprintf@plt>
movl   $0xffffffff,-0x4(%rbp)
jmp    1571 <main+0x3f1>
mov    -0x10(%rbp),%rax
movslq -0x14(%rbp),%rcx
mov    (%rax,%rcx,8),%rdi
call   1050 <strlen@plt>
mov    %eax,-0x28(%rbp)
xor    %eax,%eax
cmpl   $0x0,-0x28(%rbp)
mov    %al,-0x39(%rbp)
je     12b2 <main+0x132>
mov    -0x10(%rbp),%rax
movslq -0x14(%rbp),%rcx
mov    (%rax,%rcx,8),%rax
mov    -0x28(%rbp),%ecx
sub    $0x1,%ecx
movslq %ecx,%rcx
movsbl (%rax,%rcx,1),%eax
cmp    $0x2f,%eax
setne  %al
mov    %al,-0x39(%rbp)
mov    -0x39(%rbp),%al
test   $0x1,%al
jne    12c2 <main+0x142>
jmp    12d5 <main+0x155>
jmp    12c7 <main+0x147>
mov    -0x28(%rbp),%eax
add    $0xffffffff,%eax
mov    %eax,-0x28(%rbp)
jmp    1281 <main+0x101>
cmpl   $0x0,-0x18(%rbp)
je     130c <main+0x18c>
mov    -0x10(%rbp),%rax
movslq -0x14(%rbp),%rcx
mov    (%rax,%rcx,8),%rsi
movslq -0x28(%rbp),%rax
add    %rax,%rsi
lea    0xd6c(%rip),%rdi
mov    $0x0,%al
call   1060 <printf@plt>
movl   $0x0,-0x18(%rbp)
jmp    132d <main+0x1ad>
mov    -0x10(%rbp),%rax
movslq -0x14(%rbp),%rcx
mov    (%rax,%rcx,8),%rsi
movslq -0x28(%rbp),%rax
add    %rax,%rsi
lea    0xd3e(%rip),%rdi
mov    $0x0,%al
call   1060 <printf@plt>
mov    -0x10(%rbp),%rax
movslq -0x14(%rbp),%rcx
mov    (%rax,%rcx,8),%rdi
movslq -0x28(%rbp),%rax
add    %rax,%rdi
lea    0xd2b(%rip),%rsi
call   10a0 <strstr@plt>
cmp    $0x0,%rax
je     1362 <main+0x1e2>
movl   $0x1,-0x2c(%rbp)
jmp    1369 <main+0x1e9>
movl   $0x0,-0x2c(%rbp)
jmp    136e <main+0x1ee>
mov    -0x38(%rbp),%rdi
call   1070 <fgetc@plt>
mov    %eax,-0x1c(%rbp)
cmp    $0xffffffff,%eax
je     14fb <main+0x37b>
cmpl   $0x0,-0x20(%rbp)
jne    1435 <main+0x2b5>
cmpl   $0x0,-0x2c(%rbp)
je     13a1 <main+0x221>
cmpl   $0x23,-0x1c(%rbp)
je     13c9 <main+0x249>
cmpl   $0x0,-0x2c(%rbp)
jne    13fc <main+0x27c>
cmpl   $0x20,-0x1c(%rbp)
je     13c9 <main+0x249>
cmpl   $0x9,-0x1c(%rbp)
je     13c9 <main+0x249>
cmpl   $0xa,-0x1c(%rbp)
jne    13fc <main+0x27c>
jmp    13ce <main+0x24e>
cmpl   $0xa,-0x1c(%rbp)
jne    13dd <main+0x25d>
jmp    13f7 <main+0x277>
jmp    13e2 <main+0x262>
mov    -0x38(%rbp),%rdi
call   1070 <fgetc@plt>
mov    %eax,-0x1c(%rbp)
cmp    $0xffffffff,%eax
jne    13ce <main+0x24e>
jmp    136e <main+0x1ee>
cmpl   $0x0,-0x24(%rbp)
je     1420 <main+0x2a0>
lea    0xc6a(%rip),%rdi
mov    $0x0,%al
call   1060 <printf@plt>
movl   $0x0,-0x24(%rbp)
jmp    142e <main+0x2ae>
lea    0xc59(%rip),%rdi
mov    $0x0,%al
call   1060 <printf@plt>
movl   $0x1,-0x20(%rbp)
cmpl   $0x22,-0x1c(%rbp)
jne    1452 <main+0x2d2>
lea    0xc3e(%rip),%rdi
mov    $0x0,%al
call   1060 <printf@plt>
jmp    14d7 <main+0x357>
cmpl   $0x5c,-0x1c(%rbp)
jne    146f <main+0x2ef>
lea    0xc24(%rip),%rdi
mov    $0x0,%al
call   1060 <printf@plt>
jmp    14d2 <main+0x352>
cmpl   $0xa,-0x1c(%rbp)
jne    148c <main+0x30c>
lea    0xc0a(%rip),%rdi
mov    $0x0,%al
call   1060 <printf@plt>
jmp    14cd <main+0x34d>
cmpl   $0x20,-0x1c(%rbp)
jl     14a0 <main+0x320>
cmpl   $0x7e,-0x1c(%rbp)
jle    14aa <main+0x32a>
cmpl   $0x9,-0x1c(%rbp)
jne    14b7 <main+0x337>
mov    -0x1c(%rbp),%edi
call   1030 <putchar@plt>
jmp    14c8 <main+0x348>
mov    -0x1c(%rbp),%esi
lea    0xbcc(%rip),%rdi
mov    $0x0,%al
call   1060 <printf@plt>
jmp    14cd <main+0x34d>
jmp    14d2 <main+0x352>
jmp    14d7 <main+0x357>
cmpl   $0xa,-0x1c(%rbp)
jne    14f6 <main+0x376>
lea    0xb3f(%rip),%rdi
mov    $0x0,%al
call   1060 <printf@plt>
movl   $0x0,-0x20(%rbp)
jmp    136e <main+0x1ee>
cmpl   $0x0,-0x20(%rbp)
je     151a <main+0x39a>
lea    0xb1b(%rip),%rdi
mov    $0x0,%al
call   1060 <printf@plt>
movl   $0x0,-0x20(%rbp)
mov    -0x38(%rbp),%rdi
call   1040 <fclose@plt>
mov    -0x14(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0x14(%rbp)
jmp    11f8 <main+0x78>
cmpl   $0x0,-0x18(%rbp)
je     154e <main+0x3ce>
lea    0xb54(%rip),%rdi
mov    $0x0,%al
call   1060 <printf@plt>
jmp    155c <main+0x3dc>
lea    0xb40(%rip),%rdi
mov    $0x0,%al
call   1060 <printf@plt>
lea    0xb3a(%rip),%rdi
mov    $0x0,%al
call   1060 <printf@plt>
movl   $0x0,-0x4(%rbp)
mov    -0x4(%rbp),%eax
add    $0x40,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<main>:
push   %rbp
push   %r15
push   %r14
push   %r13
push   %r12
push   %rbx
sub    $0x18,%rsp
mov    %rsi,%rbx
lea    0xea4(%rip),%rdi
call   1040 <puts@plt>
mov    $0xa,%edi
call   1030 <putchar@plt>
lea    0xea3(%rip),%rdi
call   1040 <puts@plt>
mov    $0xa,%edi
call   1030 <putchar@plt>
lea    0xea0(%rip),%rdi
call   1040 <puts@plt>
lea    0xeaf(%rip),%rdi
call   1040 <puts@plt>
mov    0x8(%rbx),%rdi
test   %rdi,%rdi
je     1411 <main+0x281>
lea    0x8(%rbx),%rbp
lea    0xe1f(%rip),%r14
mov    $0x1,%r15d
mov    %rbx,0x10(%rsp)
jmp    123e <main+0xae>
nopw   0x0(%rax,%rax,1)
mov    %r13,%rdi
call   1050 <fclose@plt>
mov    0x10(%rsp),%rbx
lea    (%rbx,%r15,8),%rbp
add    $0x8,%rbp
mov    0x8(%rbx,%r15,8),%rdi
add    $0x1,%r15
lea    0xde6(%rip),%r14
test   %rdi,%rdi
je     143a <main+0x2aa>
lea    0xdbb(%rip),%rsi
call   10a0 <fopen@plt>
test   %rax,%rax
je     141a <main+0x28a>
mov    %rax,%r13
mov    0x0(%rbp),%rdi
call   1060 <strlen@plt>
cltq
add    $0x1,%rax
cs nopw 0x0(%rax,%rax,1)
nop
cmp    $0x1,%rax
je     1290 <main+0x100>
mov    0x0(%rbp),%rdx
lea    -0x1(%rax),%rcx
cmpb   $0x2f,-0x2(%rdx,%rax,1)
mov    %rcx,%rax
jne    1270 <main+0xe0>
jmp    1292 <main+0x102>
nopw   0x0(%rax,%rax,1)
xor    %ecx,%ecx
movslq %ecx,%rbx
mov    0x0(%rbp),%rsi
add    %rbx,%rsi
mov    %r14,%rdi
xor    %eax,%eax
call   1070 <printf@plt>
add    0x0(%rbp),%rbx
mov    %rbx,%rdi
lea    0xd75(%rip),%rsi
call   10b0 <strstr@plt>
mov    %rax,%r14
mov    %r13,%rdi
call   1080 <fgetc@plt>
cmp    $0xffffffff,%eax
je     1210 <main+0x80>
mov    %eax,%ebp
xor    %r12d,%r12d
movl   $0x1,0xc(%rsp)
jmp    12f6 <main+0x166>
nopl   0x0(%rax)
mov    %r13,%rdi
call   1080 <fgetc@plt>
mov    %eax,%ebp
xor    %r12d,%r12d
cmp    $0xffffffff,%eax
je     1210 <main+0x80>
test   %r12d,%r12d
jne    135a <main+0x1ca>
test   %r14,%r14
je     1305 <main+0x175>
cmp    $0x23,%ebp
je     1320 <main+0x190>
test   %r14,%r14
jne    1334 <main+0x1a4>
cmp    $0x20,%ebp
je     1320 <main+0x190>
cmp    $0xa,%ebp
je     12e0 <main+0x150>
cmp    $0x9,%ebp
jne    1334 <main+0x1a4>
nopl   0x0(%rax)
mov    %r13,%rdi
call   1080 <fgetc@plt>
cmp    $0xa,%eax
je     12e0 <main+0x150>
cmp    $0xffffffff,%eax
jne    1320 <main+0x190>
jmp    12e0 <main+0x150>
cmpl   $0x0,0xc(%rsp)
lea    0xcee(%rip),%rdi
lea    0xcf0(%rip),%rax
cmove  %rax,%rdi
movl   $0x0,0xc(%rsp)
xor    %eax,%eax
call   1070 <printf@plt>
cmp    $0xa,%ebp
je     1374 <main+0x1e4>
cmp    $0x5c,%ebp
je     1384 <main+0x1f4>
cmp    $0x22,%ebp
jne    139c <main+0x20c>
xor    %ebx,%ebx
lea    0xcc9(%rip),%rdi
jmp    138d <main+0x1fd>
lea    0xcc6(%rip),%rdi
xor    %eax,%eax
call   1070 <printf@plt>
jmp    13d4 <main+0x244>
xor    %ebx,%ebx
lea    0xcb1(%rip),%rdi
xor    %eax,%eax
call   1070 <printf@plt>
mov    $0x1,%r12d
jmp    13e5 <main+0x255>
cmp    $0x9,%ebp
je     13c8 <main+0x238>
lea    -0x20(%rbp),%eax
cmp    $0x5e,%eax
jbe    13c8 <main+0x238>
lea    0xc94(%rip),%rdi
mov    %ebp,%esi
xor    %eax,%eax
call   1070 <printf@plt>
cmp    $0xa,%ebp
je     13d4 <main+0x244>
mov    $0x1,%r12d
xor    %ebx,%ebx
jmp    13e5 <main+0x255>
mov    %ebp,%edi
call   1030 <putchar@plt>
cmp    $0xa,%ebp
jne    13be <main+0x22e>
lea    0xc5e(%rip),%rdi
call   1040 <puts@plt>
xor    %r12d,%r12d
mov    $0x1,%bl
mov    %r13,%rdi
call   1080 <fgetc@plt>
mov    %eax,%ebp
cmp    $0xffffffff,%eax
jne    12f6 <main+0x166>
test   %bl,%bl
jne    1210 <main+0x80>
lea    0xc32(%rip),%rdi
call   1040 <puts@plt>
jmp    1210 <main+0x80>
lea    0xc7a(%rip),%rdi
jmp    1441 <main+0x2b1>
mov    0x2bbf(%rip),%rax
mov    (%rax),%edi
mov    0x0(%rbp),%rdx
lea    0xbd4(%rip),%rsi
call   1090 <fprintf@plt>
mov    $0xffffffff,%eax
jmp    1454 <main+0x2c4>
lea    0xc50(%rip),%rdi
call   1040 <puts@plt>
lea    0xc4b(%rip),%rdi
call   1040 <puts@plt>
xor    %eax,%eax
add    $0x18,%rsp
pop    %rbx
pop    %r12
pop    %r13
pop    %r14
pop    %r15
pop    %rbp
ret

LLVM IR (-O0):
@.str = [22 x i8] c"/* Built-in files */\0A\00"
@.str.1 = [2 x i8] c"\0A\00"
@.str.2 = [20 x i8] c"#include \22types.h\22\0A\00"
@.str.3 = [28 x i8] c"unsigned char *builtins[]=\0A\00"
@.str.4 = [3 x i8] c"{\0A\00"
@.str.5 = [2 x i8] c"r\00"
@stderr = global i32 0
@.str.6 = [25 x i8] c"Couldn't open file '%s'\0A\00"
@.str.7 = [13 x i8] c"\09USTR \22%s\22,\0A\00"
@.str.8 = [14 x i8] c",\09USTR \22%s\22,\0A\00"
@.str.9 = [5 x i8] c".jsf\00"
@.str.10 = [9 x i8] c"\09\09USTR \22\00"
@.str.11 = [4 x i8] c"\09\09\22\00"
@.str.12 = [3 x i8] c"\\\22\00"
@.str.13 = [3 x i8] c"\\\\\00"
@.str.14 = [3 x i8] c"\\n\00"
@.str.15 = [8 x i8] c"\\x%2.2x\00"
@.str.16 = [3 x i8] c"\22\0A\00"
@.str.17 = [7 x i8] c"\09NULL\0A\00"
@.str.18 = [8 x i8] c",\09NULL\0A\00"
@.str.19 = [4 x i8] c"};\0A\00"
define i32 @main(i32 %0, i8** %1) {
%3 = alloca i32
%4 = alloca i32
%5 = alloca i8**
%6 = alloca i32
%7 = alloca i32
%8 = alloca i32
%9 = alloca i32
%10 = alloca i32
%11 = alloca i32
%12 = alloca i32
%13 = alloca i32*
store i32 0, i32* %3
store i32 %0, i32* %4
store i8** %1, i8*** %5
store i32 1, i32* %7
%14 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([22 x i8], [22 x i8]* @.str, i64 0, i64 0))
%15 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([2 x i8], [2 x i8]* @.str.1, i64 0, i64 0))
%16 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([20 x i8], [20 x i8]* @.str.2, i64 0, i64 0))
%17 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([2 x i8], [2 x i8]* @.str.1, i64 0, i64 0))
%18 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([28 x i8], [28 x i8]* @.str.3, i64 0, i64 0))
%19 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str.4, i64 0, i64 0))
store i32 1, i32* %6
br label %20
20: ; preds = %201, %2
%21 = load i8**, i8*** %5
%22 = load i32, i32* %6
%23 = sext i32 %22 to i64
%24 = getelementptr inbounds i8*, i8** %21, i64 %23
%25 = load i8*, i8** %24
%26 = icmp ne i8* %25, null
br i1 %26, label %27, label %204
27: ; preds = %20
store i32 0, i32* %9
store i32 1, i32* %10
%28 = load i8**, i8*** %5
%29 = load i32, i32* %6
%30 = sext i32 %29 to i64
%31 = getelementptr inbounds i8*, i8** %28, i64 %30
%32 = load i8*, i8** %31
%33 = call i32* @fopen(i8* %32, i8* getelementptr inbounds ([2 x i8], [2 x i8]* @.str.5, i64 0, i64 0))
store i32* %33, i32** %13
%34 = load i32*, i32** %13
%35 = icmp ne i32* %34, null
br i1 %35, label %44, label %36
36: ; preds = %27
%37 = load i32, i32* @stderr
%38 = load i8**, i8*** %5
%39 = load i32, i32* %6
%40 = sext i32 %39 to i64
%41 = getelementptr inbounds i8*, i8** %38, i64 %40
%42 = load i8*, i8** %41
%43 = call i32 @fprintf(i32 %37, i8* getelementptr inbounds ([25 x i8], [25 x i8]* @.str.6, i64 0, i64 0), i8* %42)
store i32 -1, i32* %3
br label %213
44: ; preds = %27
%45 = load i8**, i8*** %5
%46 = load i32, i32* %6
%47 = sext i32 %46 to i64
%48 = getelementptr inbounds i8*, i8** %45, i64 %47
%49 = load i8*, i8** %48
%50 = call i32 @strlen(i8* %49)
store i32 %50, i32* %11
br label %51
51: ; preds = %70, %44
%52 = load i32, i32* %11
%53 = icmp ne i32 %52, 0
br i1 %53, label %54, label %67
54: ; preds = %51
%55 = load i8**, i8*** %5
%56 = load i32, i32* %6
%57 = sext i32 %56 to i64
%58 = getelementptr inbounds i8*, i8** %55, i64 %57
%59 = load i8*, i8** %58
%60 = load i32, i32* %11
%61 = sub nsw i32 %60, 1
%62 = sext i32 %61 to i64
%63 = getelementptr inbounds i8, i8* %59, i64 %62
%64 = load i8, i8* %63
%65 = sext i8 %64 to i32
%66 = icmp ne i32 %65, 47
br label %67
67: ; preds = %54, %51
%68 = phi i1 [ false, %51 ], [ %66, %54 ]
br i1 %68, label %69, label %73
69: ; preds = %67
br label %70
70: ; preds = %69
%71 = load i32, i32* %11
%72 = add nsw i32 %71, -1
store i32 %72, i32* %11
br label %51
73: ; preds = %67
%74 = load i32, i32* %7
%75 = icmp ne i32 %74, 0
br i1 %75, label %76, label %86
76: ; preds = %73
%77 = load i8**, i8*** %5
%78 = load i32, i32* %6
%79 = sext i32 %78 to i64
%80 = getelementptr inbounds i8*, i8** %77, i64 %79
%81 = load i8*, i8** %80
%82 = load i32, i32* %11
%83 = sext i32 %82 to i64
%84 = getelementptr inbounds i8, i8* %81, i64 %83
%85 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([13 x i8], [13 x i8]* @.str.7, i64 0, i64 0), i8* %84)
store i32 0, i32* %7
br label %96
86: ; preds = %73
%87 = load i8**, i8*** %5
%88 = load i32, i32* %6
%89 = sext i32 %88 to i64
%90 = getelementptr inbounds i8*, i8** %87, i64 %89
%91 = load i8*, i8** %90
%92 = load i32, i32* %11
%93 = sext i32 %92 to i64
%94 = getelementptr inbounds i8, i8* %91, i64 %93
%95 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([14 x i8], [14 x i8]* @.str.8, i64 0, i64 0), i8* %94)
br label %96
96: ; preds = %86, %76
%97 = load i8**, i8*** %5
%98 = load i32, i32* %6
%99 = sext i32 %98 to i64
%100 = getelementptr inbounds i8*, i8** %97, i64 %99
%101 = load i8*, i8** %100
%102 = load i32, i32* %11
%103 = sext i32 %102 to i64
%104 = getelementptr inbounds i8, i8* %101, i64 %103
%105 = call i64 @strstr(i8* %104, i8* getelementptr inbounds ([5 x i8], [5 x i8]* @.str.9, i64 0, i64 0))
%106 = icmp ne i64 %105, 0
br i1 %106, label %107, label %108
107: ; preds = %96
store i32 1, i32* %12
br label %109
108: ; preds = %96
store i32 0, i32* %12
br label %109
109: ; preds = %108, %107
br label %110
110: ; preds = %192, %145, %109
%111 = load i32*, i32** %13
%112 = call i32 @fgetc(i32* %111)
store i32 %112, i32* %8
%113 = icmp ne i32 %112, -1
br i1 %113, label %114, label %193
114: ; preds = %110
%115 = load i32, i32* %9
%116 = icmp ne i32 %115, 0
br i1 %116, label %154, label %117
117: ; preds = %114
%118 = load i32, i32* %12
%119 = icmp ne i32 %118, 0
br i1 %119, label %120, label %123
120: ; preds = %117
%121 = load i32, i32* %8
%122 = icmp eq i32 %121, 35
br i1 %122, label %135, label %123
123: ; preds = %120, %117
%124 = load i32, i32* %12
%125 = icmp ne i32 %124, 0
br i1 %125, label %146, label %126
126: ; preds = %123
%127 = load i32, i32* %8
%128 = icmp eq i32 %127, 32
br i1 %128, label %135, label %129
129: ; preds = %126
%130 = load i32, i32* %8
%131 = icmp eq i32 %130, 9
br i1 %131, label %135, label %132
132: ; preds = %129
%133 = load i32, i32* %8
%134 = icmp eq i32 %133, 10
br i1 %134, label %135, label %146
135: ; preds = %132, %129, %126, %120
br label %136
136: ; preds = %141, %135
%137 = load i32, i32* %8
%138 = icmp eq i32 %137, 10
br i1 %138, label %139, label %140
139: ; preds = %136
br label %145
140: ; preds = %136
br label %141
141: ; preds = %140
%142 = load i32*, i32** %13
%143 = call i32 @fgetc(i32* %142)
store i32 %143, i32* %8
%144 = icmp ne i32 %143, -1
br i1 %144, label %136, label %145
145: ; preds = %141, %139
br label %110
146: ; preds = %132, %123
%147 = load i32, i32* %10
%148 = icmp ne i32 %147, 0
br i1 %148, label %149, label %151
149: ; preds = %146
%150 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([9 x i8], [9 x i8]* @.str.10, i64 0, i64 0))
store i32 0, i32* %10
br label %153
151: ; preds = %146
%152 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([4 x i8], [4 x i8]* @.str.11, i64 0, i64 0))
br label %153
153: ; preds = %151, %149
store i32 1, i32* %9
br label %154
154: ; preds = %153, %114
%155 = load i32, i32* %8
%156 = icmp eq i32 %155, 34
br i1 %156, label %157, label %159
157: ; preds = %154
%158 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str.12, i64 0, i64 0))
br label %187
159: ; preds = %154
%160 = load i32, i32* %8
%161 = icmp eq i32 %160, 92
br i1 %161, label %162, label %164
162: ; preds = %159
%163 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str.13, i64 0, i64 0))
br label %186
164: ; preds = %159
%165 = load i32, i32* %8
%166 = icmp eq i32 %165, 10
br i1 %166, label %167, label %169
167: ; preds = %164
%168 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str.14, i64 0, i64 0))
br label %185
169: ; preds = %164
%170 = load i32, i32* %8
%171 = icmp sge i32 %170, 32
br i1 %171, label %172, label %175
172: ; preds = %169
%173 = load i32, i32* %8
%174 = icmp sle i32 %173, 126
br i1 %174, label %178, label %175
175: ; preds = %172, %169
%176 = load i32, i32* %8
%177 = icmp eq i32 %176, 9
br i1 %177, label %178, label %181
178: ; preds = %175, %172
%179 = load i32, i32* %8
%180 = call i32 @putchar(i32 %179)
br label %184
181: ; preds = %175
%182 = load i32, i32* %8
%183 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([8 x i8], [8 x i8]* @.str.15, i64 0, i64 0), i32 %182)
br label %184
184: ; preds = %181, %178
br label %185
185: ; preds = %184, %167
br label %186
186: ; preds = %185, %162
br label %187
187: ; preds = %186, %157
%188 = load i32, i32* %8
%189 = icmp eq i32 %188, 10
br i1 %189, label %190, label %192
190: ; preds = %187
%191 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str.16, i64 0, i64 0))
store i32 0, i32* %9
br label %192
192: ; preds = %190, %187
br label %110
193: ; preds = %110
%194 = load i32, i32* %9
%195 = icmp ne i32 %194, 0
br i1 %195, label %196, label %198
196: ; preds = %193
%197 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str.16, i64 0, i64 0))
store i32 0, i32* %9
br label %198
198: ; preds = %196, %193
%199 = load i32*, i32** %13
%200 = call i32 @fclose(i32* %199)
br label %201
201: ; preds = %198
%202 = load i32, i32* %6
%203 = add nsw i32 %202, 1
store i32 %203, i32* %6
br label %20
204: ; preds = %20
%205 = load i32, i32* %7
%206 = icmp ne i32 %205, 0
br i1 %206, label %207, label %209
207: ; preds = %204
%208 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([7 x i8], [7 x i8]* @.str.17, i64 0, i64 0))
br label %211
209: ; preds = %204
%210 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([8 x i8], [8 x i8]* @.str.18, i64 0, i64 0))
br label %211
211: ; preds = %209, %207
%212 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([4 x i8], [4 x i8]* @.str.19, i64 0, i64 0))
store i32 0, i32* %3
br label %213
213: ; preds = %211, %36
%214 = load i32, i32* %3
ret i32 %214
}

LLVM IR (-O2):
@.str.5 = [2 x i8] c"r\00"
@stderr = global i32 0
@.str.6 = [25 x i8] c"Couldn't open file '%s'\0A\00"
@.str.7 = [13 x i8] c"\09USTR \22%s\22,\0A\00"
@.str.8 = [14 x i8] c",\09USTR \22%s\22,\0A\00"
@.str.9 = [5 x i8] c".jsf\00"
@.str.10 = [9 x i8] c"\09\09USTR \22\00"
@.str.11 = [4 x i8] c"\09\09\22\00"
@.str.12 = [3 x i8] c"\\\22\00"
@.str.13 = [3 x i8] c"\\\\\00"
@.str.14 = [3 x i8] c"\\n\00"
@.str.15 = [8 x i8] c"\\x%2.2x\00"
@str = [21 x i8] c"/* Built-in files */\00"
@str.20 = [19 x i8] c"#include \22types.h\22\00"
@str.21 = [27 x i8] c"unsigned char *builtins[]=\00"
@str.22 = [2 x i8] c"{\00"
@str.23 = [7 x i8] c",\09NULL\00"
@str.24 = [3 x i8] c"};\00"
@str.25 = [6 x i8] c"\09NULL\00"
@str.27 = [2 x i8] c"\22\00"
define i32 @main(i32 %0, i8** nocapture %1) {
%3 = tail call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([21 x i8], [21 x i8]* @str, i64 0, i64 0))
%4 = tail call i32 @putchar(i32 10)
%5 = tail call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([19 x i8], [19 x i8]* @str.20, i64 0, i64 0))
%6 = tail call i32 @putchar(i32 10)
%7 = tail call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([27 x i8], [27 x i8]* @str.21, i64 0, i64 0))
%8 = tail call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([2 x i8], [2 x i8]* @str.22, i64 0, i64 0))
%9 = getelementptr inbounds i8*, i8** %1, i64 1
%10 = load i8*, i8** %9
%11 = icmp eq i8* %10, null
br i1 %11, label %107, label %18
12: ; preds = %71, %42, %105, %104
%13 = tail call i32 @fclose(i32* %23)
%14 = add nuw i64 %19, 1
%15 = getelementptr inbounds i8*, i8** %1, i64 %14
%16 = load i8*, i8** %15
%17 = icmp eq i8* %16, null
br i1 %17, label %107, label %18
18: ; preds = %2, %12
%19 = phi i64 [ %14, %12 ], [ 1, %2 ]
%20 = phi i8* [ %16, %12 ], [ %10, %2 ]
%21 = phi i8** [ %15, %12 ], [ %9, %2 ]
%22 = phi i8* [ getelementptr inbounds ([14 x i8], [14 x i8]* @.str.8, i64 0, i64 0), %12 ], [ getelementptr inbounds ([13 x i8], [13 x i8]* @.str.7, i64 0, i64 0), %2 ]
%23 = tail call i32* @fopen(i8* %20, i8* getelementptr inbounds ([2 x i8], [2 x i8]* @.str.5, i64 0, i64 0))
%24 = icmp eq i32* %23, null
br i1 %24, label %25, label %29
25: ; preds = %18
%26 = load i32, i32* @stderr
%27 = load i8*, i8** %21
%28 = tail call i32 @fprintf(i32 %26, i8* getelementptr inbounds ([25 x i8], [25 x i8]* @.str.6, i64 0, i64 0), i8* %27)
br label %111
29: ; preds = %18
%30 = load i8*, i8** %21
%31 = tail call i32 @strlen(i8* %30)
%32 = sext i32 %31 to i64
br label %33
33: ; preds = %36, %29
%34 = phi i64 [ %38, %36 ], [ %32, %29 ]
%35 = icmp eq i64 %34, 0
br i1 %35, label %42, label %36
36: ; preds = %33
%37 = load i8*, i8** %21
%38 = add nsw i64 %34, -1
%39 = getelementptr inbounds i8, i8* %37, i64 %38
%40 = load i8, i8* %39
%41 = icmp eq i8 %40, 47
br i1 %41, label %42, label %33
42: ; preds = %33, %36
%43 = phi i64 [ %34, %36 ], [ 0, %33 ]
%44 = load i8*, i8** %21
%45 = shl i64 %43, 32
%46 = ashr exact i64 %45, 32
%47 = getelementptr inbounds i8, i8* %44, i64 %46
%48 = tail call i32 (i8*, ...) @printf(i8* dereferenceable(1) %22, i8* %47)
%49 = load i8*, i8** %21
%50 = getelementptr inbounds i8, i8* %49, i64 %46
%51 = tail call i64 @strstr(i8* %50, i8* getelementptr inbounds ([5 x i8], [5 x i8]* @.str.9, i64 0, i64 0))
%52 = icmp eq i64 %51, 0
%53 = tail call i32 @fgetc(i32* %23)
%54 = icmp eq i32 %53, -1
br i1 %54, label %12, label %55
55: ; preds = %42, %99
%56 = phi i32 [ %102, %99 ], [ %53, %42 ]
%57 = phi i32 [ %79, %99 ], [ 1, %42 ]
%58 = phi i32 [ %101, %99 ], [ 0, %42 ]
br label %59
59: ; preds = %55, %71
%60 = phi i32 [ %56, %55 ], [ %72, %71 ]
%61 = phi i32 [ %58, %55 ], [ 0, %71 ]
%62 = icmp eq i32 %61, 0
br i1 %62, label %63, label %78
63: ; preds = %59
%64 = icmp ne i32 %60, 35
%65 = or i1 %52, %64
br i1 %65, label %66, label %68
66: ; preds = %63
br i1 %52, label %67, label %74
67: ; preds = %66
switch i32 %60, label %74 [
i32 10, label %71
i32 9, label %68
i32 32, label %68
]
68: ; preds = %67, %67, %63
br label %69
69: ; preds = %68, %69
%70 = tail call i32 @fgetc(i32* %23)
switch i32 %70, label %69 [
i32 -1, label %71
i32 10, label %71
]
71: ; preds = %69, %69, %67
%72 = tail call i32 @fgetc(i32* %23)
%73 = icmp eq i32 %72, -1
br i1 %73, label %12, label %59
74: ; preds = %67, %66
%75 = icmp eq i32 %57, 0
%76 = select i1 %75, i8* getelementptr inbounds ([4 x i8], [4 x i8]* @.str.11, i64 0, i64 0), i8* getelementptr inbounds ([9 x i8], [9 x i8]* @.str.10, i64 0, i64 0)
%77 = tail call i32 (i8*, ...) @printf(i8* dereferenceable(1) %76)
br label %78
78: ; preds = %59, %74
%79 = phi i32 [ 0, %74 ], [ %57, %59 ]
switch i32 %60, label %86 [
i32 34, label %80
i32 92, label %82
i32 10, label %84
]
80: ; preds = %78
%81 = tail call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([3 x i8], [3 x i8]* @.str.12, i64 0, i64 0))
br label %99
82: ; preds = %78
%83 = tail call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([3 x i8], [3 x i8]* @.str.13, i64 0, i64 0))
br label %99
84: ; preds = %78
%85 = tail call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([3 x i8], [3 x i8]* @.str.14, i64 0, i64 0))
br label %97
86: ; preds = %78
%87 = add i32 %60, -32
%88 = icmp ult i32 %87, 95
%89 = icmp eq i32 %60, 9
%90 = or i1 %89, %88
br i1 %90, label %91, label %93
91: ; preds = %86
%92 = tail call i32 @putchar(i32 %60)
br label %95
93: ; preds = %86
%94 = tail call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([8 x i8], [8 x i8]* @.str.15, i64 0, i64 0), i32 %60)
br label %95
95: ; preds = %91, %93
%96 = icmp eq i32 %60, 10
br i1 %96, label %97, label %99
97: ; preds = %84, %95
%98 = tail call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([2 x i8], [2 x i8]* @str.27, i64 0, i64 0))
br label %99
99: ; preds = %80, %82, %97, %95
%100 = phi i1 [ false, %80 ], [ false, %82 ], [ true, %97 ], [ false, %95 ]
%101 = phi i32 [ 1, %80 ], [ 1, %82 ], [ 0, %97 ], [ 1, %95 ]
%102 = tail call i32 @fgetc(i32* %23)
%103 = icmp eq i32 %102, -1
br i1 %103, label %104, label %55
104: ; preds = %99
br i1 %100, label %12, label %105
105: ; preds = %104
%106 = tail call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([2 x i8], [2 x i8]* @str.27, i64 0, i64 0))
br label %12
107: ; preds = %12, %2
%108 = phi i8* [ getelementptr inbounds ([6 x i8], [6 x i8]* @str.25, i64 0, i64 0), %2 ], [ getelementptr inbounds ([7 x i8], [7 x i8]* @str.23, i64 0, i64 0), %12 ]
%109 = tail call i32 @puts(i8* dereferenceable(1) %108)
%110 = tail call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([3 x i8], [3 x i8]* @str.24, i64 0, i64 0))
br label %111
111: ; preds = %25, %107
%112 = phi i32 [ 0, %107 ], [ -1, %25 ]
ret i32 %112
}