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

/* Variables and functions */
char *ConcatStrings(int, char *, char *);
char *CopyString(char *);
int /*<<< orphan*/ SafeFree(char *, char *, int);
char *SafeMallocString(char *, char *, int);
int /*<<< orphan*/ TidyCommentString(char **, int);
int strlen(char *);
char *strstr(char *, char *);
char *SplitComment(char **original, char *name) {
  char *c = NULL;
  if (*original) {
    int l = strlen(name);
    c = *original;
    do {
      int i, j, failed = 0;
      char *start = c;
      while (c[0] == '\n')
        c++;
      for (i = j = 0; i < l; i++, j++) {
        while (name[i] == ' ')
          i++;
        while (c[j] == ' ')
          j++;
        if (!c[j] || name[i] != c[j]) {
          failed = 1;
          break;
        }
      }
      if (!failed) {
        char *old = *original;
        char *end = strstr(c, "\n\n");
        *start = 0;
        if (end)
          *original = SafeMallocString(
              ConcatStrings(2, *original, end),
              "/scratch/repos/new/home/jordi_armengol_estape/c-scraper/outputs/"
              "2022-01-22/02-19-57/repos/farhi/idl2matlab/refs/heads/master/"
              "cxref/comment.c",
              217);
        else if (start == *original)
          *original = NULL;
        else
          *original = SafeMallocString(
              *original,
              "/scratch/repos/new/home/jordi_armengol_estape/c-scraper/outputs/"
              "2022-01-22/02-19-57/repos/farhi/idl2matlab/refs/heads/master/"
              "cxref/comment.c",
              222);
        if (end)
          *end = 0;
        if (end && &c[j + 1] >= end)
          c = NULL;
        else {
          c = CopyString(&c[j + 1]);
          TidyCommentString(&c, 1);
          if (!*c)
            c = NULL;
        }
        SafeFree(old,
                 "/scratch/repos/new/home/jordi_armengol_estape/c-scraper/"
                 "outputs/2022-01-22/02-19-57/repos/farhi/idl2matlab/refs/"
                 "heads/master/cxref/comment.c",
                 236);
        break;
      }
    } while ((c = strstr(c, "\n\n")));
  }
  return (c);
}


x86 assembly (clang, -O0):
<SplitComment>:
push   %rbp
mov    %rsp,%rbp
sub    $0x40,%rsp
mov    %rdi,-0x8(%rbp)
mov    %rsi,-0x10(%rbp)
movq   $0x0,-0x18(%rbp)
mov    -0x8(%rbp),%rax
cmpq   $0x0,(%rax)
je     1422 <SplitComment+0x2b2>
mov    -0x10(%rbp),%rdi
call   1060 <strlen@plt>
mov    %eax,-0x1c(%rbp)
mov    -0x8(%rbp),%rax
mov    (%rax),%rax
mov    %rax,-0x18(%rbp)
movl   $0x0,-0x28(%rbp)
mov    -0x18(%rbp),%rax
mov    %rax,-0x30(%rbp)
mov    -0x18(%rbp),%rax
movsbl (%rax),%eax
cmp    $0xa,%eax
jne    11dd <SplitComment+0x6d>
mov    -0x18(%rbp),%rax
add    $0x1,%rax
mov    %rax,-0x18(%rbp)
jmp    11bc <SplitComment+0x4c>
movl   $0x0,-0x24(%rbp)
movl   $0x0,-0x20(%rbp)
mov    -0x20(%rbp),%eax
cmp    -0x1c(%rbp),%eax
jge    12a1 <SplitComment+0x131>
jmp    11fc <SplitComment+0x8c>
mov    -0x10(%rbp),%rax
movslq -0x20(%rbp),%rcx
movsbl (%rax,%rcx,1),%eax
cmp    $0x20,%eax
jne    121f <SplitComment+0xaf>
mov    -0x20(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0x20(%rbp)
jmp    11fc <SplitComment+0x8c>
jmp    1224 <SplitComment+0xb4>
mov    -0x18(%rbp),%rax
movslq -0x24(%rbp),%rcx
movsbl (%rax,%rcx,1),%eax
cmp    $0x20,%eax
jne    1247 <SplitComment+0xd7>
mov    -0x24(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0x24(%rbp)
jmp    1224 <SplitComment+0xb4>
mov    -0x18(%rbp),%rax
movslq -0x24(%rbp),%rcx
cmpb   $0x0,(%rax,%rcx,1)
je     1279 <SplitComment+0x109>
mov    -0x10(%rbp),%rax
movslq -0x20(%rbp),%rcx
movsbl (%rax,%rcx,1),%eax
mov    -0x18(%rbp),%rcx
movslq -0x24(%rbp),%rdx
movsbl (%rcx,%rdx,1),%ecx
cmp    %ecx,%eax
je     1285 <SplitComment+0x115>
movl   $0x1,-0x28(%rbp)
jmp    12a1 <SplitComment+0x131>
jmp    128a <SplitComment+0x11a>
mov    -0x20(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0x20(%rbp)
mov    -0x24(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0x24(%rbp)
jmp    11eb <SplitComment+0x7b>
cmpl   $0x0,-0x28(%rbp)
jne    13fa <SplitComment+0x28a>
mov    -0x8(%rbp),%rax
mov    (%rax),%rax
mov    %rax,-0x38(%rbp)
mov    -0x18(%rbp),%rdi
lea    0xd3f(%rip),%rsi
call   1090 <strstr@plt>
mov    %rax,-0x40(%rbp)
mov    -0x30(%rbp),%rax
movb   $0x0,(%rax)
cmpq   $0x0,-0x40(%rbp)
je     1314 <SplitComment+0x1a4>
mov    -0x8(%rbp),%rax
mov    (%rax),%rsi
mov    -0x40(%rbp),%rdx
mov    $0x2,%edi
call   1070 <ConcatStrings@plt>
mov    %rax,%rdi
lea    0xd08(%rip),%rsi
mov    $0xd9,%edx
call   1040 <SafeMallocString@plt>
mov    %rax,%rcx
mov    -0x8(%rbp),%rax
mov    %rcx,(%rax)
jmp    135c <SplitComment+0x1ec>
mov    -0x30(%rbp),%rax
mov    -0x8(%rbp),%rcx
cmp    (%rcx),%rax
jne    1335 <SplitComment+0x1c5>
mov    -0x8(%rbp),%rax
movq   $0x0,(%rax)
jmp    1357 <SplitComment+0x1e7>
mov    -0x8(%rbp),%rax
mov    (%rax),%rdi
lea    0xcc0(%rip),%rsi
mov    $0xde,%edx
call   1040 <SafeMallocString@plt>
mov    %rax,%rcx
mov    -0x8(%rbp),%rax
mov    %rcx,(%rax)
jmp    135c <SplitComment+0x1ec>
cmpq   $0x0,-0x40(%rbp)
je     136e <SplitComment+0x1fe>
mov    -0x40(%rbp),%rax
movb   $0x0,(%rax)
cmpq   $0x0,-0x40(%rbp)
je     13a0 <SplitComment+0x230>
mov    -0x18(%rbp),%rax
mov    -0x24(%rbp),%ecx
add    $0x1,%ecx
movslq %ecx,%rcx
add    %rcx,%rax
cmp    -0x40(%rbp),%rax
jb     13a0 <SplitComment+0x230>
movq   $0x0,-0x18(%rbp)
jmp    13e0 <SplitComment+0x270>
mov    -0x18(%rbp),%rdi
mov    -0x24(%rbp),%eax
add    $0x1,%eax
cltq
add    %rax,%rdi
call   1050 <CopyString@plt>
mov    %rax,-0x18(%rbp)
lea    -0x18(%rbp),%rdi
mov    $0x1,%esi
call   1030 <TidyCommentString@plt>
mov    -0x18(%rbp),%rax
cmpb   $0x0,(%rax)
jne    13db <SplitComment+0x26b>
movq   $0x0,-0x18(%rbp)
jmp    13e0 <SplitComment+0x270>
mov    -0x38(%rbp),%rdi
lea    0xc18(%rip),%rsi
mov    $0xec,%edx
call   1080 <SafeFree@plt>
jmp    141d <SplitComment+0x2ad>
jmp    13ff <SplitComment+0x28f>
mov    -0x18(%rbp),%rdi
lea    0xbf6(%rip),%rsi
call   1090 <strstr@plt>
mov    %rax,-0x18(%rbp)
cmp    $0x0,%rax
jne    11ad <SplitComment+0x3d>
jmp    1422 <SplitComment+0x2b2>
mov    -0x18(%rbp),%rax
add    $0x40,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<SplitComment>:
push   %rbp
push   %r15
push   %r14
push   %r13
push   %r12
push   %rbx
sub    $0x18,%rsp
cmpq   $0x0,(%rdi)
je     126b <SplitComment+0xfb>
mov    %rsi,%r12
mov    %rdi,%rbx
mov    %rsi,%rdi
call   1060 <strlen@plt>
mov    %eax,%r14d
mov    %rbx,0x8(%rsp)
mov    (%rbx),%r13
mov    %r13,(%rsp)
movabs $0x200000000,%r8
movabs $0x100000000,%r15
mov    %r13,0x10(%rsp)
jmp    11e2 <SplitComment+0x72>
lea    0xe39(%rip),%rsi
mov    %r8,%rbx
call   1090 <strstr@plt>
mov    %rbx,%r8
mov    %rax,%r13
mov    %rax,(%rsp)
test   %rax,%rax
je     126b <SplitComment+0xfb>
cmpb   $0xa,0x0(%r13)
mov    %r13,%rdi
jne    1201 <SplitComment+0x91>
lea    0x1(%r13),%rdi
mov    %rdi,(%rsp)
cmpb   $0xa,(%rdi)
lea    0x1(%rdi),%rdi
je     11f0 <SplitComment+0x80>
add    $0xffffffffffffffff,%rdi
test   %r14d,%r14d
jle    1272 <SplitComment+0x102>
xor    %eax,%eax
xor    %ecx,%ecx
movslq %eax,%rsi
add    %r12,%rsi
movzbl (%rsi),%edx
add    $0x1,%eax
add    $0x1,%rsi
cmp    $0x20,%dl
je     1210 <SplitComment+0xa0>
mov    %rcx,%rbp
shl    $0x20,%rbp
add    %r8,%rbp
movslq %ecx,%rcx
nopl   0x0(%rax)
add    $0x1,%rcx
movzbl -0x1(%rdi,%rcx,1),%ebx
cmp    $0x20,%bl
jne    1250 <SplitComment+0xe0>
add    %r15,%rbp
jmp    1230 <SplitComment+0xc0>
cs nopw 0x0(%rax,%rax,1)
nopl   (%rax)
test   %bl,%bl
je     11c0 <SplitComment+0x50>
cmp    %bl,%dl
jne    11c0 <SplitComment+0x50>
cmp    %r14d,%eax
jl     120a <SplitComment+0x9a>
sar    $0x20,%rbp
jmp    1277 <SplitComment+0x107>
xor    %eax,%eax
jmp    1339 <SplitComment+0x1c9>
mov    $0x1,%ebp
lea    0xd82(%rip),%rsi
call   1090 <strstr@plt>
movb   $0x0,0x0(%r13)
mov    0x8(%rsp),%rbx
mov    (%rbx),%rsi
test   %rax,%rax
je     12ce <SplitComment+0x15e>
mov    %rax,%r14
mov    $0x2,%edi
mov    %rax,%rdx
call   1070 <ConcatStrings@plt>
lea    0xd57(%rip),%rsi
mov    %rax,%rdi
mov    $0xd9,%edx
call   1040 <SafeMallocString@plt>
mov    %rax,(%rbx)
movb   $0x0,(%r14)
mov    (%rsp),%rax
add    %rbp,%rax
cmp    %r14,%rax
jb     12f1 <SplitComment+0x181>
jmp    1317 <SplitComment+0x1a7>
cmp    %rsi,%r13
je     12ec <SplitComment+0x17c>
lea    0xd29(%rip),%rax
mov    %rsi,%rdi
mov    %rax,%rsi
mov    $0xde,%edx
call   1040 <SafeMallocString@plt>
jmp    12ee <SplitComment+0x17e>
xor    %eax,%eax
mov    %rax,(%rbx)
add    (%rsp),%rbp
mov    %rbp,%rdi
call   1050 <CopyString@plt>
mov    %rax,(%rsp)
mov    %rsp,%rdi
mov    $0x1,%esi
call   1030 <TidyCommentString@plt>
mov    (%rsp),%rax
cmpb   $0x0,(%rax)
jne    131f <SplitComment+0x1af>
movq   $0x0,(%rsp)
lea    0xcdd(%rip),%rsi
mov    0x10(%rsp),%rdi
mov    $0xec,%edx
call   1080 <SafeFree@plt>
mov    (%rsp),%rax
add    $0x18,%rsp
pop    %rbx
pop    %r12
pop    %r13
pop    %r14
pop    %r15
pop    %rbp
ret

LLVM IR (-O0):
@.str = [3 x i8] c"\0A\0A\00"
@.str.1 = [141 x i8] c"/scratch/repos/new/home/jordi_armengol_estape/c-scraper/outputs/2022-01-22/02-19-57/repos/farhi/idl2matlab/refs/heads/master/cxref/comment.c\00"
define i8* @SplitComment(i8** %0, i8* %1) {
%3 = alloca i8**
%4 = alloca i8*
%5 = alloca i8*
%6 = alloca i32
%7 = alloca i32
%8 = alloca i32
%9 = alloca i32
%10 = alloca i8*
%11 = alloca i8*
%12 = alloca i8*
store i8** %0, i8*** %3
store i8* %1, i8** %4
store i8* null, i8** %5
%13 = load i8**, i8*** %3
%14 = load i8*, i8** %13
%15 = icmp ne i8* %14, null
br i1 %15, label %16, label %159
16: ; preds = %2
%17 = load i8*, i8** %4
%18 = call i32 @strlen(i8* %17)
store i32 %18, i32* %6
%19 = load i8**, i8*** %3
%20 = load i8*, i8** %19
store i8* %20, i8** %5
br label %21
21: ; preds = %154, %16
store i32 0, i32* %9
%22 = load i8*, i8** %5
store i8* %22, i8** %10
br label %23
23: ; preds = %29, %21
%24 = load i8*, i8** %5
%25 = getelementptr inbounds i8, i8* %24, i64 0
%26 = load i8, i8* %25
%27 = sext i8 %26 to i32
%28 = icmp eq i32 %27, 10
br i1 %28, label %29, label %32
29: ; preds = %23
%30 = load i8*, i8** %5
%31 = getelementptr inbounds i8, i8* %30, i32 1
store i8* %31, i8** %5
br label %23
32: ; preds = %23
store i32 0, i32* %8
store i32 0, i32* %7
br label %33
33: ; preds = %84, %32
%34 = load i32, i32* %7
%35 = load i32, i32* %6
%36 = icmp slt i32 %34, %35
br i1 %36, label %37, label %89
37: ; preds = %33
br label %38
38: ; preds = %46, %37
%39 = load i8*, i8** %4
%40 = load i32, i32* %7
%41 = sext i32 %40 to i64
%42 = getelementptr inbounds i8, i8* %39, i64 %41
%43 = load i8, i8* %42
%44 = sext i8 %43 to i32
%45 = icmp eq i32 %44, 32
br i1 %45, label %46, label %49
46: ; preds = %38
%47 = load i32, i32* %7
%48 = add nsw i32 %47, 1
store i32 %48, i32* %7
br label %38
49: ; preds = %38
br label %50
50: ; preds = %58, %49
%51 = load i8*, i8** %5
%52 = load i32, i32* %8
%53 = sext i32 %52 to i64
%54 = getelementptr inbounds i8, i8* %51, i64 %53
%55 = load i8, i8* %54
%56 = sext i8 %55 to i32
%57 = icmp eq i32 %56, 32
br i1 %57, label %58, label %61
58: ; preds = %50
%59 = load i32, i32* %8
%60 = add nsw i32 %59, 1
store i32 %60, i32* %8
br label %50
61: ; preds = %50
%62 = load i8*, i8** %5
%63 = load i32, i32* %8
%64 = sext i32 %63 to i64
%65 = getelementptr inbounds i8, i8* %62, i64 %64
%66 = load i8, i8* %65
%67 = icmp ne i8 %66, 0
br i1 %67, label %68, label %82
68: ; preds = %61
%69 = load i8*, i8** %4
%70 = load i32, i32* %7
%71 = sext i32 %70 to i64
%72 = getelementptr inbounds i8, i8* %69, i64 %71
%73 = load i8, i8* %72
%74 = sext i8 %73 to i32
%75 = load i8*, i8** %5
%76 = load i32, i32* %8
%77 = sext i32 %76 to i64
%78 = getelementptr inbounds i8, i8* %75, i64 %77
%79 = load i8, i8* %78
%80 = sext i8 %79 to i32
%81 = icmp ne i32 %74, %80
br i1 %81, label %82, label %83
82: ; preds = %68, %61
store i32 1, i32* %9
br label %89
83: ; preds = %68
br label %84
84: ; preds = %83
%85 = load i32, i32* %7
%86 = add nsw i32 %85, 1
store i32 %86, i32* %7
%87 = load i32, i32* %8
%88 = add nsw i32 %87, 1
store i32 %88, i32* %8
br label %33
89: ; preds = %82, %33
%90 = load i32, i32* %9
%91 = icmp ne i32 %90, 0
br i1 %91, label %153, label %92
92: ; preds = %89
%93 = load i8**, i8*** %3
%94 = load i8*, i8** %93
store i8* %94, i8** %11
%95 = load i8*, i8** %5
%96 = call i8* @strstr(i8* %95, i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str, i64 0, i64 0))
store i8* %96, i8** %12
%97 = load i8*, i8** %10
store i8 0, i8* %97
%98 = load i8*, i8** %12
%99 = icmp ne i8* %98, null
br i1 %99, label %100, label %107
100: ; preds = %92
%101 = load i8**, i8*** %3
%102 = load i8*, i8** %101
%103 = load i8*, i8** %12
%104 = call i8* @ConcatStrings(i32 2, i8* %102, i8* %103)
%105 = call i8* @SafeMallocString(i8* %104, i8* getelementptr inbounds ([141 x i8], [141 x i8]* @.str.1, i64 0, i64 0), i32 217)
%106 = load i8**, i8*** %3
store i8* %105, i8** %106
br label %120
107: ; preds = %92
%108 = load i8*, i8** %10
%109 = load i8**, i8*** %3
%110 = load i8*, i8** %109
%111 = icmp eq i8* %108, %110
br i1 %111, label %112, label %114
112: ; preds = %107
%113 = load i8**, i8*** %3
store i8* null, i8** %113
br label %119
114: ; preds = %107
%115 = load i8**, i8*** %3
%116 = load i8*, i8** %115
%117 = call i8* @SafeMallocString(i8* %116, i8* getelementptr inbounds ([141 x i8], [141 x i8]* @.str.1, i64 0, i64 0), i32 222)
%118 = load i8**, i8*** %3
store i8* %117, i8** %118
br label %119
119: ; preds = %114, %112
br label %120
120: ; preds = %119, %100
%121 = load i8*, i8** %12
%122 = icmp ne i8* %121, null
br i1 %122, label %123, label %125
123: ; preds = %120
%124 = load i8*, i8** %12
store i8 0, i8* %124
br label %125
125: ; preds = %123, %120
%126 = load i8*, i8** %12
%127 = icmp ne i8* %126, null
br i1 %127, label %128, label %137
128: ; preds = %125
%129 = load i8*, i8** %5
%130 = load i32, i32* %8
%131 = add nsw i32 %130, 1
%132 = sext i32 %131 to i64
%133 = getelementptr inbounds i8, i8* %129, i64 %132
%134 = load i8*, i8** %12
%135 = icmp uge i8* %133, %134
br i1 %135, label %136, label %137
136: ; preds = %128
store i8* null, i8** %5
br label %150
137: ; preds = %128, %125
%138 = load i8*, i8** %5
%139 = load i32, i32* %8
%140 = add nsw i32 %139, 1
%141 = sext i32 %140 to i64
%142 = getelementptr inbounds i8, i8* %138, i64 %141
%143 = call i8* @CopyString(i8* %142)
store i8* %143, i8** %5
%144 = call i32 @TidyCommentString(i8** %5, i32 1)
%145 = load i8*, i8** %5
%146 = load i8, i8* %145
%147 = icmp ne i8 %146, 0
br i1 %147, label %149, label %148
148: ; preds = %137
store i8* null, i8** %5
br label %149
149: ; preds = %148, %137
br label %150
150: ; preds = %149, %136
%151 = load i8*, i8** %11
%152 = call i32 @SafeFree(i8* %151, i8* getelementptr inbounds ([141 x i8], [141 x i8]* @.str.1, i64 0, i64 0), i32 236)
br label %158
153: ; preds = %89
br label %154
154: ; preds = %153
%155 = load i8*, i8** %5
%156 = call i8* @strstr(i8* %155, i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str, i64 0, i64 0))
store i8* %156, i8** %5
%157 = icmp ne i8* %156, null
br i1 %157, label %21, label %158
158: ; preds = %154, %150
br label %159
159: ; preds = %158, %2
%160 = load i8*, i8** %5
ret i8* %160
}

LLVM IR (-O2):
@.str = [3 x i8] c"\0A\0A\00"
@.str.1 = [141 x i8] c"/scratch/repos/new/home/jordi_armengol_estape/c-scraper/outputs/2022-01-22/02-19-57/repos/farhi/idl2matlab/refs/heads/master/cxref/comment.c\00"
define i8* @SplitComment(i8** nocapture %0, i8* %1) {
%3 = alloca i8*
%4 = bitcast i8** %3 to i8*
%5 = load i8*, i8** %0
%6 = icmp eq i8* %5, null
br i1 %6, label %85, label %7
7: ; preds = %2
%8 = tail call i32 @strlen(i8* %1)
%9 = load i8*, i8** %0
store i8* %9, i8** %3
%10 = icmp sgt i32 %8, 0
br label %11
11: ; preds = %82, %7
%12 = phi i8* [ %83, %82 ], [ %9, %7 ]
%13 = load i8, i8* %12
%14 = icmp eq i8 %13, 10
br i1 %14, label %17, label %15
15: ; preds = %17, %11
%16 = phi i8* [ %12, %11 ], [ %19, %17 ]
br i1 %10, label %22, label %52
17: ; preds = %11, %17
%18 = phi i8* [ %19, %17 ], [ %12, %11 ]
%19 = getelementptr inbounds i8, i8* %18, i64 1
store i8* %19, i8** %3
%20 = load i8, i8* %19
%21 = icmp eq i8 %20, 10
br i1 %21, label %17, label %15
22: ; preds = %15, %44
%23 = phi i32 [ %45, %44 ], [ 0, %15 ]
%24 = phi i64 [ %46, %44 ], [ 0, %15 ]
%25 = sext i32 %23 to i64
br label %26
26: ; preds = %26, %22
%27 = phi i64 [ %31, %26 ], [ %25, %22 ]
%28 = getelementptr inbounds i8, i8* %1, i64 %27
%29 = load i8, i8* %28
%30 = icmp eq i8 %29, 32
%31 = add i64 %27, 1
br i1 %30, label %26, label %32
32: ; preds = %26
%33 = trunc i64 %27 to i32
%34 = shl i64 %24, 32
%35 = ashr exact i64 %34, 32
br label %36
36: ; preds = %32, %40
%37 = phi i64 [ %35, %32 ], [ %41, %40 ]
%38 = getelementptr inbounds i8, i8* %16, i64 %37
%39 = load i8, i8* %38
switch i8 %39, label %42 [
i8 32, label %40
i8 0, label %82
]
40: ; preds = %36
%41 = add i64 %37, 1
br label %36
42: ; preds = %36
%43 = icmp eq i8 %29, %39
br i1 %43, label %44, label %82
44: ; preds = %42
%45 = add nsw i32 %33, 1
%46 = add i64 %37, 1
%47 = icmp slt i32 %45, %8
br i1 %47, label %22, label %48
48: ; preds = %44
%49 = shl i64 %37, 32
%50 = add i64 %49, 8589934592
%51 = ashr exact i64 %50, 32
br label %52
52: ; preds = %15, %48
%53 = phi i64 [ %51, %48 ], [ 1, %15 ]
%54 = tail call i8* @strstr(i8* dereferenceable(1) %16, i8* dereferenceable(1) getelementptr inbounds ([3 x i8], [3 x i8]* @.str, i64 0, i64 0))
store i8 0, i8* %12
%55 = icmp eq i8* %54, null
%56 = load i8*, i8** %0
br i1 %55, label %57, label %61
57: ; preds = %52
%58 = icmp eq i8* %12, %56
br i1 %58, label %68, label %59
59: ; preds = %57
%60 = tail call i8* @SafeMallocString(i8* %56, i8* getelementptr inbounds ([141 x i8], [141 x i8]* @.str.1, i64 0, i64 0), i32 222)
br label %68
61: ; preds = %52
%62 = tail call i8* @ConcatStrings(i32 2, i8* %56, i8* %54)
%63 = tail call i8* @SafeMallocString(i8* %62, i8* getelementptr inbounds ([141 x i8], [141 x i8]* @.str.1, i64 0, i64 0), i32 217)
store i8* %63, i8** %0
store i8 0, i8* %54
%64 = load i8*, i8** %3
%65 = getelementptr inbounds i8, i8* %64, i64 %53
%66 = icmp ult i8* %65, %54
br i1 %66, label %70, label %67
67: ; preds = %61
store i8* null, i8** %3
br label %79
68: ; preds = %57, %59
%69 = phi i8* [ %60, %59 ], [ null, %57 ]
store i8* %69, i8** %0
br label %70
70: ; preds = %68, %61
%71 = load i8*, i8** %3
%72 = getelementptr inbounds i8, i8* %71, i64 %53
%73 = tail call i8* @CopyString(i8* %72)
store i8* %73, i8** %3
%74 = call i32 @TidyCommentString(i8** %3, i32 1)
%75 = load i8*, i8** %3
%76 = load i8, i8* %75
%77 = icmp eq i8 %76, 0
br i1 %77, label %78, label %79
78: ; preds = %70
store i8* null, i8** %3
br label %79
79: ; preds = %67, %78, %70
%80 = call i32 @SafeFree(i8* %9, i8* getelementptr inbounds ([141 x i8], [141 x i8]* @.str.1, i64 0, i64 0), i32 236)
%81 = load i8*, i8** %3
br label %85
82: ; preds = %42, %36
%83 = tail call i8* @strstr(i8* dereferenceable(1) %16, i8* dereferenceable(1) getelementptr inbounds ([3 x i8], [3 x i8]* @.str, i64 0, i64 0))
store i8* %83, i8** %3
%84 = icmp eq i8* %83, null
br i1 %84, label %85, label %11
85: ; preds = %82, %79, %2
%86 = phi i8* [ %81, %79 ], [ null, %2 ], [ null, %82 ]
ret i8* %86
}