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

/* Variables and functions */
int /*<<< orphan*/ fclose(int /*<<< orphan*/ *);
scalar_t__ fgets(char *, int, int /*<<< orphan*/ *);
int /*<<< orphan*/ fprintf(int /*<<< orphan*/ *, char *, char *, ...);
int /*<<< orphan*/ free(char *);
char *getLineEnding(char *);
scalar_t__ incOK(char *, char **, char **, char **, int /*<<< orphan*/ **);
int /*<<< orphan*/ stderr;
int /*<<< orphan*/ strcpy(char *, char *);
char *strstr(char *, char *);
void processFile(char *fn, FILE *in, FILE *out) {
  char *s, *e, *es, rec[10000], *ifn = NULL;
  FILE *incFile;
  int comment = 0;
  int nl = 0;
  while (fgets(rec, sizeof(rec), in)) {
    nl++;
    if (comment == 0 && incOK(rec, &s, &e, &ifn, &incFile)) {
      if (incFile) {
        fprintf(out, "// resolved:  >>>> %s", s);
        processFile(ifn, incFile, out);
        fprintf(out, "// back from: >>>> %s", s);
      } else {
        fprintf(stderr, "%s:%d File not found: %s\n", fn, nl, s);
      }
    } else {
      s = rec;
      if (comment == 1) {
        e = getLineEnding(s);
        if (e) {
          strcpy(s, e);
          comment = 0;
        }
      } else if (comment == 2) {
        if ((e = strstr(s, "*/"))) {
          strcpy(s, getLineEnding(e));
          comment = 0;
        } else {
          continue;
        }
      }
      while ((*s == ' ') || (*s == '\t')) {
        s++;
      }
      es = s;
      if (*s == '"') {
        es++;
        while ((s = strstr(es, "\""))) {
          es = s + 1;
        }
      }
      while ((s = strstr(es, "/"))) {
        if (*(s + 1) == '/') {
          e = getLineEnding(s);
          if (e) {
            strcpy(s, e);
          } else {
            *s = 0;
            comment = 1;
            break;
          }
        } else if (*(s + 1) == '*') {
          if ((e = strstr(s + 2, "*/"))) {
            strcpy(s, getLineEnding(e));
          } else {
            *s = 0;
            comment = 2;
            break;
          }
        } else {
          es++;
        }
      }
      fprintf(out, "%s", rec);
    }
  }
  free(fn);
  fclose(in);
}


x86 assembly (clang, -O0):
<processFile>:
push   %rbp
mov    %rsp,%rbp
sub    $0x2770,%rsp
mov    %rdi,-0x8(%rbp)
mov    %rsi,-0x10(%rbp)
mov    %rdx,-0x18(%rbp)
movq   $0x0,-0x2748(%rbp)
movl   $0x0,-0x2754(%rbp)
movl   $0x0,-0x2758(%rbp)
lea    -0x2740(%rbp),%rdi
mov    -0x10(%rbp),%rdx
mov    $0x2710,%esi
call   1060 <fgets@plt>
cmp    $0x0,%rax
je     1535 <processFile+0x3a5>
mov    -0x2758(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0x2758(%rbp)
cmpl   $0x0,-0x2754(%rbp)
jne    12ae <processFile+0x11e>
lea    -0x2740(%rbp),%rdi
lea    -0x20(%rbp),%rsi
lea    -0x28(%rbp),%rdx
lea    -0x2748(%rbp),%rcx
lea    -0x2750(%rbp),%r8
call   10b0 <incOK@plt>
cmp    $0x0,%rax
je     12ae <processFile+0x11e>
cmpq   $0x0,-0x2750(%rbp)
je     1283 <processFile+0xf3>
mov    -0x18(%rbp),%rdi
mov    -0x20(%rbp),%rdx
lea    0xdb6(%rip),%rsi
mov    $0x0,%al
call   1080 <fprintf@plt>
mov    -0x2748(%rbp),%rdi
mov    -0x2750(%rbp),%rsi
mov    -0x18(%rbp),%rdx
call   1070 <processFile@plt>
mov    -0x18(%rbp),%rdi
mov    -0x20(%rbp),%rdx
lea    0xd9f(%rip),%rsi
mov    $0x0,%al
call   1080 <fprintf@plt>
jmp    12a9 <processFile+0x119>
mov    0x2d56(%rip),%rax
movslq (%rax),%rdi
mov    -0x8(%rbp),%rdx
mov    -0x2758(%rbp),%ecx
mov    -0x20(%rbp),%r8
lea    0xd8a(%rip),%rsi
mov    $0x0,%al
call   1080 <fprintf@plt>
jmp    1530 <processFile+0x3a0>
lea    -0x2740(%rbp),%rax
mov    %rax,-0x20(%rbp)
cmpl   $0x1,-0x2754(%rbp)
jne    12fa <processFile+0x16a>
mov    -0x20(%rbp),%rdi
call   1090 <getLineEnding@plt>
mov    %rax,-0x28(%rbp)
cmpq   $0x0,-0x28(%rbp)
je     12f5 <processFile+0x165>
mov    -0x20(%rbp),%rdi
mov    -0x28(%rbp),%rsi
call   1040 <strcpy@plt>
movl   $0x0,-0x2754(%rbp)
jmp    1366 <processFile+0x1d6>
cmpl   $0x2,-0x2754(%rbp)
jne    1361 <processFile+0x1d1>
mov    -0x20(%rbp),%rdi
lea    0xd34(%rip),%rsi
call   10a0 <strstr@plt>
mov    %rax,-0x28(%rbp)
cmp    $0x0,%rax
je     1357 <processFile+0x1c7>
mov    -0x20(%rbp),%rax
mov    %rax,-0x2760(%rbp)
mov    -0x28(%rbp),%rdi
call   1090 <getLineEnding@plt>
mov    -0x2760(%rbp),%rdi
mov    %rax,%rsi
call   1040 <strcpy@plt>
movl   $0x0,-0x2754(%rbp)
jmp    135c <processFile+0x1cc>
jmp    11c6 <processFile+0x36>
jmp    1361 <processFile+0x1d1>
jmp    1366 <processFile+0x1d6>
jmp    136b <processFile+0x1db>
mov    -0x20(%rbp),%rax
movsbl (%rax),%ecx
mov    $0x1,%al
cmp    $0x20,%ecx
mov    %al,-0x2761(%rbp)
je     1396 <processFile+0x206>
mov    -0x20(%rbp),%rax
movsbl (%rax),%eax
cmp    $0x9,%eax
sete   %al
mov    %al,-0x2761(%rbp)
mov    -0x2761(%rbp),%al
test   $0x1,%al
jne    13a9 <processFile+0x219>
jmp    13ba <processFile+0x22a>
mov    -0x20(%rbp),%rax
add    $0x1,%rax
mov    %rax,-0x20(%rbp)
jmp    136b <processFile+0x1db>
mov    -0x20(%rbp),%rax
mov    %rax,-0x30(%rbp)
mov    -0x20(%rbp),%rax
movsbl (%rax),%eax
cmp    $0x22,%eax
jne    1412 <processFile+0x282>
mov    -0x30(%rbp),%rax
add    $0x1,%rax
mov    %rax,-0x30(%rbp)
mov    -0x30(%rbp),%rdi
lea    0xc60(%rip),%rsi
call   10a0 <strstr@plt>
mov    %rax,-0x20(%rbp)
cmp    $0x0,%rax
je     140d <processFile+0x27d>
mov    -0x20(%rbp),%rax
add    $0x1,%rax
mov    %rax,-0x30(%rbp)
jmp    13de <processFile+0x24e>
jmp    1412 <processFile+0x282>
jmp    1417 <processFile+0x287>
mov    -0x30(%rbp),%rdi
lea    0xc25(%rip),%rsi
call   10a0 <strstr@plt>
mov    %rax,-0x20(%rbp)
cmp    $0x0,%rax
je     1517 <processFile+0x387>
mov    -0x20(%rbp),%rax
movsbl 0x1(%rax),%eax
cmp    $0x2f,%eax
jne    148b <processFile+0x2fb>
mov    -0x20(%rbp),%rdi
call   1090 <getLineEnding@plt>
mov    %rax,-0x28(%rbp)
cmpq   $0x0,-0x28(%rbp)
je     1470 <processFile+0x2e0>
mov    -0x20(%rbp),%rdi
mov    -0x28(%rbp),%rsi
call   1040 <strcpy@plt>
jmp    1486 <processFile+0x2f6>
mov    -0x20(%rbp),%rax
movb   $0x0,(%rax)
movl   $0x1,-0x2754(%rbp)
jmp    1517 <processFile+0x387>
jmp    1512 <processFile+0x382>
mov    -0x20(%rbp),%rax
movsbl 0x1(%rax),%eax
cmp    $0x2a,%eax
jne    1501 <processFile+0x371>
mov    -0x20(%rbp),%rdi
add    $0x2,%rdi
lea    0xb9b(%rip),%rsi
call   10a0 <strstr@plt>
mov    %rax,-0x28(%rbp)
cmp    $0x0,%rax
je     14e6 <processFile+0x356>
mov    -0x20(%rbp),%rax
mov    %rax,-0x2770(%rbp)
mov    -0x28(%rbp),%rdi
call   1090 <getLineEnding@plt>
mov    -0x2770(%rbp),%rdi
mov    %rax,%rsi
call   1040 <strcpy@plt>
jmp    14fc <processFile+0x36c>
mov    -0x20(%rbp),%rax
movb   $0x0,(%rax)
movl   $0x2,-0x2754(%rbp)
jmp    1517 <processFile+0x387>
jmp    150d <processFile+0x37d>
mov    -0x30(%rbp),%rax
add    $0x1,%rax
mov    %rax,-0x30(%rbp)
jmp    1512 <processFile+0x382>
jmp    1417 <processFile+0x287>
mov    -0x18(%rbp),%rdi
lea    -0x2740(%rbp),%rdx
lea    0xaea(%rip),%rsi
mov    $0x0,%al
call   1080 <fprintf@plt>
jmp    11c6 <processFile+0x36>
mov    -0x8(%rbp),%rdi
call   1030 <free@plt>
mov    -0x10(%rbp),%rdi
call   1050 <fclose@plt>
add    $0x2770,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<processFile>:
push   %rbp
push   %r15
push   %r14
push   %r13
push   %r12
push   %rbx
sub    $0x2758,%rsp
mov    %rdx,0x20(%rsp)
mov    %rsi,%rdx
mov    %rdi,0x18(%rsp)
movq   $0x0,0x38(%rsp)
lea    0x40(%rsp),%rbp
mov    %rbp,%rdi
mov    $0x2710,%esi
mov    %rdx,0x28(%rsp)
call   1080 <fgets@plt>
test   %rax,%rax
je     1491 <processFile+0x2e1>
xor    %r13d,%r13d
lea    0x8(%rsp),%rbx
xor    %r12d,%r12d
jmp    1236 <processFile+0x86>
mov    $0x2,%r12d
movb   $0x0,(%r15)
mov    %rbp,%rdi
mov    0x20(%rsp),%rsi
call   1070 <fputs@plt>
mov    %rbp,%rdi
mov    $0x2710,%esi
mov    0x28(%rsp),%rdx
call   1080 <fgets@plt>
test   %rax,%rax
je     1491 <processFile+0x2e1>
add    $0x1,%r13d
test   %r12d,%r12d
je     1280 <processFile+0xd0>
mov    %rbp,0x8(%rsp)
cmp    $0x2,%r12d
je     1310 <processFile+0x160>
cmp    $0x1,%r12d
jne    134a <processFile+0x19a>
mov    %rbp,%rdi
call   10b0 <getLineEnding@plt>
mov    %rax,0x10(%rsp)
test   %rax,%rax
je     147b <processFile+0x2cb>
mov    0x8(%rsp),%rdi
jmp    1338 <processFile+0x188>
nopl   0x0(%rax,%rax,1)
mov    %rbp,%rdi
mov    %rbx,%rsi
lea    0x10(%rsp),%rdx
lea    0x38(%rsp),%rcx
lea    0x30(%rsp),%r8
call   10d0 <incOK@plt>
test   %rax,%rax
je     1342 <processFile+0x192>
cmpq   $0x0,0x30(%rsp)
je     1443 <processFile+0x293>
mov    0x8(%rsp),%rdx
xor    %r12d,%r12d
mov    %rbp,%r14
mov    %rbx,%rbp
mov    0x20(%rsp),%rbx
mov    %rbx,%rdi
lea    0xd34(%rip),%rsi
xor    %eax,%eax
call   10a0 <fprintf@plt>
mov    0x38(%rsp),%rdi
mov    0x30(%rsp),%rsi
mov    %rbx,%rdx
call   1090 <processFile@plt>
mov    0x8(%rsp),%rdx
mov    %rbx,%rdi
mov    %rbp,%rbx
mov    %r14,%rbp
lea    0xd1c(%rip),%rsi
xor    %eax,%eax
call   10a0 <fprintf@plt>
jmp    121b <processFile+0x6b>
cs nopw 0x0(%rax,%rax,1)
mov    %rbp,%rdi
lea    0xd2c(%rip),%rsi
call   10c0 <strstr@plt>
mov    %rax,0x10(%rsp)
test   %rax,%rax
je     1486 <processFile+0x2d6>
mov    %rax,%rdi
call   10b0 <getLineEnding@plt>
mov    %rbp,%rdi
mov    %rax,%rsi
call   1040 <strcpy@plt>
jmp    1347 <processFile+0x197>
mov    %rbp,0x8(%rsp)
xor    %r12d,%r12d
mov    0x8(%rsp),%r14
jmp    1369 <processFile+0x1b9>
cs nopw 0x0(%rax,%rax,1)
nopl   0x0(%rax,%rax,1)
add    $0x1,%r14
mov    %r14,0x8(%rsp)
movzbl (%r14),%eax
cmp    $0x9,%al
je     1360 <processFile+0x1b0>
cmp    $0x20,%al
je     1360 <processFile+0x1b0>
cmp    $0x22,%al
jne    139e <processFile+0x1ee>
mov    %r14,%rax
nopl   0x0(%rax)
mov    %rax,%r14
add    $0x1,%r14
mov    %r14,%rdi
mov    $0x22,%esi
call   1060 <strchr@plt>
mov    %rax,0x8(%rsp)
test   %rax,%rax
jne    1380 <processFile+0x1d0>
mov    %r14,%rdi
mov    $0x2f,%esi
call   1060 <strchr@plt>
mov    %rax,0x8(%rsp)
test   %rax,%rax
je     120e <processFile+0x5e>
mov    %rax,%r15
jmp    13e2 <processFile+0x232>
xchg   %ax,%ax
add    $0x1,%r14
mov    %r14,%rdi
mov    $0x2f,%esi
call   1060 <strchr@plt>
mov    %rax,%r15
mov    %rax,0x8(%rsp)
test   %rax,%rax
je     120e <processFile+0x5e>
movzbl 0x1(%r15),%eax
cmp    $0x2a,%al
je     1410 <processFile+0x260>
cmp    $0x2f,%al
jne    13c0 <processFile+0x210>
mov    %r15,%rdi
call   10b0 <getLineEnding@plt>
mov    %rax,0x10(%rsp)
mov    0x8(%rsp),%r15
test   %rax,%rax
jne    1436 <processFile+0x286>
jmp    1470 <processFile+0x2c0>
nopl   0x0(%rax,%rax,1)
lea    0x2(%r15),%rdi
lea    0xc2b(%rip),%rsi
call   10c0 <strstr@plt>
mov    %rax,0x10(%rsp)
test   %rax,%rax
je     1204 <processFile+0x54>
mov    %rax,%rdi
call   10b0 <getLineEnding@plt>
mov    %r15,%rdi
mov    %rax,%rsi
call   1040 <strcpy@plt>
jmp    13c4 <processFile+0x214>
mov    0x2b96(%rip),%rax
movslq (%rax),%rdi
mov    0x8(%rsp),%r8
xor    %r12d,%r12d
lea    0xbd0(%rip),%rsi
mov    0x18(%rsp),%rdx
mov    %r13d,%ecx
xor    %eax,%eax
call   10a0 <fprintf@plt>
jmp    121b <processFile+0x6b>
mov    $0x1,%r12d
jmp    120a <processFile+0x5a>
mov    $0x1,%r12d
jmp    134a <processFile+0x19a>
mov    $0x2,%r12d
jmp    121b <processFile+0x6b>
mov    0x18(%rsp),%rdi
call   1030 <free@plt>
mov    0x28(%rsp),%rdi
call   1050 <fclose@plt>
add    $0x2758,%rsp
pop    %rbx
pop    %r12
pop    %r13
pop    %r14
pop    %r15
pop    %rbp
ret

LLVM IR (-O0):
@.str = [22 x i8] c"// resolved: >>>> %s\00"
@.str.1 = [22 x i8] c"// back from: >>>> %s\00"
@stderr = global i32 0
@.str.2 = [26 x i8] c"%s:%d File not found: %s\0A\00"
@.str.3 = [3 x i8] c"*/\00"
@.str.4 = [2 x i8] c"\22\00"
@.str.5 = [2 x i8] c"/\00"
@.str.6 = [3 x i8] c"%s\00"
define void @processFile(i8* %0, i32* %1, i32* %2) {
%4 = alloca i8*
%5 = alloca i32*
%6 = alloca i32*
%7 = alloca i8*
%8 = alloca i8*
%9 = alloca i8*
%10 = alloca [10000 x i8]
%11 = alloca i8*
%12 = alloca i32*
%13 = alloca i32
%14 = alloca i32
store i8* %0, i8** %4
store i32* %1, i32** %5
store i32* %2, i32** %6
store i8* null, i8** %11
store i32 0, i32* %13
store i32 0, i32* %14
br label %15
15: ; preds = %164, %77, %3
%16 = getelementptr inbounds [10000 x i8], [10000 x i8]* %10, i64 0, i64 0
%17 = load i32*, i32** %5
%18 = call i64 @fgets(i8* %16, i32 10000, i32* %17)
%19 = icmp ne i64 %18, 0
br i1 %19, label %20, label %165
20: ; preds = %15
%21 = load i32, i32* %14
%22 = add nsw i32 %21, 1
store i32 %22, i32* %14
%23 = load i32, i32* %13
%24 = icmp eq i32 %23, 0
br i1 %24, label %25, label %51
25: ; preds = %20
%26 = getelementptr inbounds [10000 x i8], [10000 x i8]* %10, i64 0, i64 0
%27 = call i64 @incOK(i8* %26, i8** %7, i8** %8, i8** %11, i32** %12)
%28 = icmp ne i64 %27, 0
br i1 %28, label %29, label %51
29: ; preds = %25
%30 = load i32*, i32** %12
%31 = icmp ne i32* %30, null
br i1 %31, label %32, label %42
32: ; preds = %29
%33 = load i32*, i32** %6
%34 = load i8*, i8** %7
%35 = call i32 (i32*, i8*, i8*, ...) @fprintf(i32* %33, i8* getelementptr inbounds ([22 x i8], [22 x i8]* @.str, i64 0, i64 0), i8* %34)
%36 = load i8*, i8** %11
%37 = load i32*, i32** %12
%38 = load i32*, i32** %6
%39 = load i32*, i32** %6
%40 = load i8*, i8** %7
%41 = call i32 (i32*, i8*, i8*, ...) @fprintf(i32* %39, i8* getelementptr inbounds ([22 x i8], [22 x i8]* @.str.1, i64 0, i64 0), i8* %40)
br label %50
42: ; preds = %29
%43 = load i32, i32* @stderr
%44 = sext i32 %43 to i64
%45 = inttoptr i64 %44 to i32*
%46 = load i8*, i8** %4
%47 = load i32, i32* %14
%48 = load i8*, i8** %7
%49 = call i32 (i32*, i8*, i8*, ...) @fprintf(i32* %45, i8* getelementptr inbounds ([26 x i8], [26 x i8]* @.str.2, i64 0, i64 0), i8* %46, i32 %47, i8* %48)
br label %50
50: ; preds = %42, %32
br label %164
51: ; preds = %25, %20
%52 = getelementptr inbounds [10000 x i8], [10000 x i8]* %10, i64 0, i64 0
store i8* %52, i8** %7
%53 = load i32, i32* %13
%54 = icmp eq i32 %53, 1
br i1 %54, label %55, label %65
55: ; preds = %51
%56 = load i8*, i8** %7
%57 = call i8* @getLineEnding(i8* %56)
store i8* %57, i8** %8
%58 = load i8*, i8** %8
%59 = icmp ne i8* %58, null
br i1 %59, label %60, label %64
60: ; preds = %55
%61 = load i8*, i8** %7
%62 = load i8*, i8** %8
%63 = call i32 @strcpy(i8* %61, i8* %62)
store i32 0, i32* %13
br label %64
64: ; preds = %60, %55
br label %80
65: ; preds = %51
%66 = load i32, i32* %13
%67 = icmp eq i32 %66, 2
br i1 %67, label %68, label %79
68: ; preds = %65
%69 = load i8*, i8** %7
%70 = call i8* @strstr(i8* %69, i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str.3, i64 0, i64 0))
store i8* %70, i8** %8
%71 = icmp ne i8* %70, null
br i1 %71, label %72, label %77
72: ; preds = %68
%73 = load i8*, i8** %7
%74 = load i8*, i8** %8
%75 = call i8* @getLineEnding(i8* %74)
%76 = call i32 @strcpy(i8* %73, i8* %75)
store i32 0, i32* %13
br label %78
77: ; preds = %68
br label %15
78: ; preds = %72
br label %79
79: ; preds = %78, %65
br label %80
80: ; preds = %79, %64
br label %81
81: ; preds = %93, %80
%82 = load i8*, i8** %7
%83 = load i8, i8* %82
%84 = sext i8 %83 to i32
%85 = icmp eq i32 %84, 32
br i1 %85, label %91, label %86
86: ; preds = %81
%87 = load i8*, i8** %7
%88 = load i8, i8* %87
%89 = sext i8 %88 to i32
%90 = icmp eq i32 %89, 9
br label %91
91: ; preds = %86, %81
%92 = phi i1 [ true, %81 ], [ %90, %86 ]
br i1 %92, label %93, label %96
93: ; preds = %91
%94 = load i8*, i8** %7
%95 = getelementptr inbounds i8, i8* %94, i32 1
store i8* %95, i8** %7
br label %81
96: ; preds = %91
%97 = load i8*, i8** %7
store i8* %97, i8** %9
%98 = load i8*, i8** %7
%99 = load i8, i8* %98
%100 = sext i8 %99 to i32
%101 = icmp eq i32 %100, 34
br i1 %101, label %102, label %113
102: ; preds = %96
%103 = load i8*, i8** %9
%104 = getelementptr inbounds i8, i8* %103, i32 1
store i8* %104, i8** %9
br label %105
105: ; preds = %109, %102
%106 = load i8*, i8** %9
%107 = call i8* @strstr(i8* %106, i8* getelementptr inbounds ([2 x i8], [2 x i8]* @.str.4, i64 0, i64 0))
store i8* %107, i8** %7
%108 = icmp ne i8* %107, null
br i1 %108, label %109, label %112
109: ; preds = %105
%110 = load i8*, i8** %7
%111 = getelementptr inbounds i8, i8* %110, i64 1
store i8* %111, i8** %9
br label %105
112: ; preds = %105
br label %113
113: ; preds = %112, %96
br label %114
114: ; preds = %159, %113
%115 = load i8*, i8** %9
%116 = call i8* @strstr(i8* %115, i8* getelementptr inbounds ([2 x i8], [2 x i8]* @.str.5, i64 0, i64 0))
store i8* %116, i8** %7
%117 = icmp ne i8* %116, null
br i1 %117, label %118, label %160
118: ; preds = %114
%119 = load i8*, i8** %7
%120 = getelementptr inbounds i8, i8* %119, i64 1
%121 = load i8, i8* %120
%122 = sext i8 %121 to i32
%123 = icmp eq i32 %122, 47
br i1 %123, label %124, label %136
124: ; preds = %118
%125 = load i8*, i8** %7
%126 = call i8* @getLineEnding(i8* %125)
store i8* %126, i8** %8
%127 = load i8*, i8** %8
%128 = icmp ne i8* %127, null
br i1 %128, label %129, label %133
129: ; preds = %124
%130 = load i8*, i8** %7
%131 = load i8*, i8** %8
%132 = call i32 @strcpy(i8* %130, i8* %131)
br label %135
133: ; preds = %124
%134 = load i8*, i8** %7
store i8 0, i8* %134
store i32 1, i32* %13
br label %160
135: ; preds = %129
br label %159
136: ; preds = %118
%137 = load i8*, i8** %7
%138 = getelementptr inbounds i8, i8* %137, i64 1
%139 = load i8, i8* %138
%140 = sext i8 %139 to i32
%141 = icmp eq i32 %140, 42
br i1 %141, label %142, label %155
142: ; preds = %136
%143 = load i8*, i8** %7
%144 = getelementptr inbounds i8, i8* %143, i64 2
%145 = call i8* @strstr(i8* %144, i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str.3, i64 0, i64 0))
store i8* %145, i8** %8
%146 = icmp ne i8* %145, null
br i1 %146, label %147, label %152
147: ; preds = %142
%148 = load i8*, i8** %7
%149 = load i8*, i8** %8
%150 = call i8* @getLineEnding(i8* %149)
%151 = call i32 @strcpy(i8* %148, i8* %150)
br label %154
152: ; preds = %142
%153 = load i8*, i8** %7
store i8 0, i8* %153
store i32 2, i32* %13
br label %160
154: ; preds = %147
br label %158
155: ; preds = %136
%156 = load i8*, i8** %9
%157 = getelementptr inbounds i8, i8* %156, i32 1
store i8* %157, i8** %9
br label %158
158: ; preds = %155, %154
br label %159
159: ; preds = %158, %135
br label %114
160: ; preds = %152, %133, %114
%161 = load i32*, i32** %6
%162 = getelementptr inbounds [10000 x i8], [10000 x i8]* %10, i64 0, i64 0
%163 = call i32 (i32*, i8*, i8*, ...) @fprintf(i32* %161, i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str.6, i64 0, i64 0), i8* %162)
br label %164
164: ; preds = %160, %50
br label %15
165: ; preds = %15
%166 = load i8*, i8** %4
%167 = call i32 @free(i8* %166)
%168 = load i32*, i32** %5
%169 = call i32 @fclose(i32* %168)
ret void
}

LLVM IR (-O2):
@.str = [22 x i8] c"// resolved: >>>> %s\00"
@.str.1 = [22 x i8] c"// back from: >>>> %s\00"
@stderr = global i32 0
@.str.2 = [26 x i8] c"%s:%d File not found: %s\0A\00"
@.str.3 = [3 x i8] c"*/\00"
define void @processFile(i8* %0, i32* nocapture %1, i32* nocapture %2) {
%4 = alloca i8*
%5 = alloca i8*
%6 = alloca [10000 x i8]
%7 = alloca i8*
%8 = alloca i32*
%9 = bitcast i8** %4 to i8*
%10 = bitcast i8** %5 to i8*
%11 = getelementptr inbounds [10000 x i8], [10000 x i8]* %6, i64 0, i64 0
%12 = bitcast i8** %7 to i8*
store i8* null, i8** %7
%13 = bitcast i32** %8 to i8*
%14 = call i64 @fgets(i8* %11, i32 10000, i32* %1)
%15 = icmp eq i64 %14, 0
br i1 %15, label %105, label %16
16: ; preds = %3, %101
%17 = phi i32 [ %19, %101 ], [ 0, %3 ]
%18 = phi i32 [ %102, %101 ], [ 0, %3 ]
%19 = add nuw nsw i32 %17, 1
%20 = icmp eq i32 %18, 0
br i1 %20, label %21, label %41
21: ; preds = %16
%22 = call i64 @incOK(i8* %11, i8** %4, i8** %5, i8** %7, i32** %8)
%23 = icmp eq i64 %22, 0
br i1 %23, label %24, label %25
24: ; preds = %21
store i8* %11, i8** %4
br label %54
25: ; preds = %21
%26 = load i32*, i32** %8
%27 = icmp eq i32* %26, null
br i1 %27, label %35, label %28
28: ; preds = %25
%29 = load i8*, i8** %4
%30 = call i32 (i32*, i8*, i8*, ...) @fprintf(i32* %2, i8* getelementptr inbounds ([22 x i8], [22 x i8]* @.str, i64 0, i64 0), i8* %29)
%31 = load i8*, i8** %7
%32 = load i32*, i32** %8
%33 = load i8*, i8** %4
%34 = call i32 (i32*, i8*, i8*, ...) @fprintf(i32* %2, i8* getelementptr inbounds ([22 x i8], [22 x i8]* @.str.1, i64 0, i64 0), i8* %33)
br label %101
35: ; preds = %25
%36 = load i32, i32* @stderr
%37 = sext i32 %36 to i64
%38 = inttoptr i64 %37 to i32*
%39 = load i8*, i8** %4
%40 = call i32 (i32*, i8*, i8*, ...) @fprintf(i32* %38, i8* getelementptr inbounds ([26 x i8], [26 x i8]* @.str.2, i64 0, i64 0), i8* %0, i32 %19, i8* %39)
br label %101
41: ; preds = %16
store i8* %11, i8** %4
switch i32 %18, label %54 [
i32 1, label %42
i32 2, label %48
]
42: ; preds = %41
%43 = call i8* @getLineEnding(i8* %11)
store i8* %43, i8** %5
%44 = icmp eq i8* %43, null
br i1 %44, label %54, label %45
45: ; preds = %42
%46 = load i8*, i8** %4
%47 = call i32 @strcpy(i8* %46, i8* %43)
br label %54
48: ; preds = %41
%49 = call i8* @strstr(i8* %11, i8* dereferenceable(1) getelementptr inbounds ([3 x i8], [3 x i8]* @.str.3, i64 0, i64 0))
store i8* %49, i8** %5
%50 = icmp eq i8* %49, null
br i1 %50, label %101, label %51
51: ; preds = %48
%52 = call i8* @getLineEnding(i8* %49)
%53 = call i32 @strcpy(i8* %11, i8* %52)
br label %54
54: ; preds = %24, %41, %51, %42, %45
%55 = phi i32 [ 0, %45 ], [ 1, %42 ], [ 0, %51 ], [ %18, %41 ], [ 0, %24 ]
%56 = load i8*, i8** %4
br label %57
57: ; preds = %60, %54
%58 = phi i8* [ %61, %60 ], [ %56, %54 ]
%59 = load i8, i8* %58
switch i8 %59, label %67 [
i8 32, label %60
i8 9, label %60
i8 34, label %62
]
60: ; preds = %57, %57
%61 = getelementptr inbounds i8, i8* %58, i64 1
store i8* %61, i8** %4
br label %57
62: ; preds = %57, %62
%63 = phi i8* [ %65, %62 ], [ %58, %57 ]
%64 = getelementptr inbounds i8, i8* %63, i64 1
%65 = call i8* @strchr(i8* %64, i32 34)
store i8* %65, i8** %4
%66 = icmp eq i8* %65, null
br i1 %66, label %67, label %62
67: ; preds = %57, %62
%68 = phi i8* [ %64, %62 ], [ %58, %57 ]
%69 = call i8* @strchr(i8* dereferenceable(1) %68, i32 47)
store i8* %69, i8** %4
%70 = icmp eq i8* %69, null
br i1 %70, label %98, label %71
71: ; preds = %67, %91
%72 = phi i8* [ %93, %91 ], [ %69, %67 ]
%73 = phi i8* [ %92, %91 ], [ %68, %67 ]
%74 = getelementptr inbounds i8, i8* %72, i64 1
%75 = load i8, i8* %74
switch i8 %75, label %89 [
i8 47, label %76
i8 42, label %82
]
76: ; preds = %71
%77 = call i8* @getLineEnding(i8* %72)
store i8* %77, i8** %5
%78 = icmp eq i8* %77, null
%79 = load i8*, i8** %4
br i1 %78, label %95, label %80
80: ; preds = %76
%81 = call i32 @strcpy(i8* %79, i8* %77)
br label %91
82: ; preds = %71
%83 = getelementptr inbounds i8, i8* %72, i64 2
%84 = call i8* @strstr(i8* %83, i8* dereferenceable(1) getelementptr inbounds ([3 x i8], [3 x i8]* @.str.3, i64 0, i64 0))
store i8* %84, i8** %5
%85 = icmp eq i8* %84, null
br i1 %85, label %95, label %86
86: ; preds = %82
%87 = call i8* @getLineEnding(i8* %84)
%88 = call i32 @strcpy(i8* %72, i8* %87)
br label %91
89: ; preds = %71
%90 = getelementptr inbounds i8, i8* %73, i64 1
br label %91
91: ; preds = %86, %89, %80
%92 = phi i8* [ %73, %80 ], [ %73, %86 ], [ %90, %89 ]
%93 = call i8* @strchr(i8* dereferenceable(1) %92, i32 47)
store i8* %93, i8** %4
%94 = icmp eq i8* %93, null
br i1 %94, label %98, label %71
95: ; preds = %82, %76
%96 = phi i8* [ %79, %76 ], [ %72, %82 ]
%97 = phi i32 [ 1, %76 ], [ 2, %82 ]
store i8 0, i8* %96
br label %98
98: ; preds = %91, %95, %67
%99 = phi i32 [ %55, %67 ], [ %97, %95 ], [ %55, %91 ]
%100 = call i32 @fputs(i8* %11, i32* %2)
br label %101
101: ; preds = %98, %35, %28, %48
%102 = phi i32 [ 2, %48 ], [ 0, %28 ], [ 0, %35 ], [ %99, %98 ]
%103 = call i64 @fgets(i8* %11, i32 10000, i32* %1)
%104 = icmp eq i64 %103, 0
br i1 %104, label %105, label %16
105: ; preds = %101, %3
%106 = call i32 @free(i8* %0)
%107 = call i32 @fclose(i32* %1)
ret void
}