#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 */
int /*<<< orphan*/ checkResults(char *, char *, char *, int);
void testMultiLineComments() {
  checkResults("/* test */",
               "1:0:BEGIN~EOF~\n"
               "1:1:BEGIN~;~\n"
               "1:1:BEGIN~*~\n"
               "1:1:STRING=/* test */\n"
               "1:10:END~*~\n"
               "1:10:END_MISSING~;~\n"
               "1:10:END~EOF~\n",
               "/scratch/repos/new/home/jordi_armengol_estape/c-scraper/"
               "outputs/2022-01-22/02-19-57/repos/jasonxhill/okavangoc/refs/"
               "heads/master/test/BracketStreamTest.c",
               646);
  checkResults("/** test **/",
               "1:0:BEGIN~EOF~\n"
               "1:1:BEGIN~;~\n"
               "1:1:BEGIN~*~\n"
               "1:1:STRING=/** test **/\n"
               "1:12:END~*~\n"
               "1:12:END_MISSING~;~\n"
               "1:12:END~EOF~\n",
               "/scratch/repos/new/home/jordi_armengol_estape/c-scraper/"
               "outputs/2022-01-22/02-19-57/repos/jasonxhill/okavangoc/refs/"
               "heads/master/test/BracketStreamTest.c",
               655);
  checkResults("/**\n* test\n**/;",
               "1:0:BEGIN~EOF~\n"
               "1:1:BEGIN~;~\n"
               "1:1:BEGIN~*~\n"
               "1:1:STRING=/**\n* test\n**/\n"
               "3:3:END~*~\n"
               "3:4:END~;~\n"
               "3:4:END~EOF~\n",
               "/scratch/repos/new/home/jordi_armengol_estape/c-scraper/"
               "outputs/2022-01-22/02-19-57/repos/jasonxhill/okavangoc/refs/"
               "heads/master/test/BracketStreamTest.c",
               664);
  checkResults("/** /test **/",
               "1:0:BEGIN~EOF~\n"
               "1:1:BEGIN~;~\n"
               "1:1:BEGIN~*~\n"
               "1:1:STRING=/** /test **/\n"
               "1:13:END~*~\n"
               "1:13:END_MISSING~;~\n"
               "1:13:END~EOF~\n",
               "/scratch/repos/new/home/jordi_armengol_estape/c-scraper/"
               "outputs/2022-01-22/02-19-57/repos/jasonxhill/okavangoc/refs/"
               "heads/master/test/BracketStreamTest.c",
               673);
  checkResults("/**/test **/x",
               "1:0:BEGIN~EOF~\n"
               "1:1:BEGIN~;~\n"
               "1:1:BEGIN~*~\n"
               "1:1:STRING=/**/\n"
               "1:4:END~*~\n"
               "1:5:STRING=test **/x\n"
               "1:13:END_MISSING~;~\n"
               "1:13:END~EOF~\n",
               "/scratch/repos/new/home/jordi_armengol_estape/c-scraper/"
               "outputs/2022-01-22/02-19-57/repos/jasonxhill/okavangoc/refs/"
               "heads/master/test/BracketStreamTest.c",
               683);
  checkResults("/**/test **/{}",
               "1:0:BEGIN~EOF~\n"
               "1:1:BEGIN~;~\n"
               "1:1:BEGIN~*~\n"
               "1:1:STRING=/**/\n"
               "1:4:END~*~\n"
               "1:5:STRING=test **/\n"
               "1:13:BEGIN~{~\n"
               "1:14:END~{~\n"
               "1:14:END_MISSING~;~\n"
               "1:14:END~EOF~\n",
               "/scratch/repos/new/home/jordi_armengol_estape/c-scraper/"
               "outputs/2022-01-22/02-19-57/repos/jasonxhill/okavangoc/refs/"
               "heads/master/test/BracketStreamTest.c",
               693);
  checkResults("/*/* test **/",
               "1:0:BEGIN~EOF~\n"
               "1:1:BEGIN~;~\n"
               "1:1:BEGIN~*~\n"
               "1:1:STRING=/*/* test **/\n"
               "1:13:END~*~\n"
               "1:13:END_MISSING~;~\n"
               "1:13:END~EOF~\n",
               "/scratch/repos/new/home/jordi_armengol_estape/c-scraper/"
               "outputs/2022-01-22/02-19-57/repos/jasonxhill/okavangoc/refs/"
               "heads/master/test/BracketStreamTest.c",
               705);
}


x86 assembly (clang, -O0):
<testMultiLineComments>:
push   %rbp
mov    %rsp,%rbp
lea    0xee5(%rip),%rdi
lea    0xee9(%rip),%rsi
lea    0xf50(%rip),%rdx
mov    $0x286,%ecx
call   1030 <checkResults@plt>
lea    0xfd9(%rip),%rdi
lea    0xfdf(%rip),%rsi
lea    0xf31(%rip),%rdx
mov    $0x28f,%ecx
call   1030 <checkResults@plt>
lea    0x1037(%rip),%rdi
lea    0x1040(%rip),%rsi
lea    0xf12(%rip),%rdx
mov    $0x298,%ecx
call   1030 <checkResults@plt>
lea    0x108f(%rip),%rdi
lea    0x1096(%rip),%rsi
lea    0xef3(%rip),%rdx
mov    $0x2a1,%ecx
call   1030 <checkResults@plt>
lea    0x10ef(%rip),%rdi
lea    0x10f6(%rip),%rsi
lea    0xed4(%rip),%rdx
mov    $0x2ab,%ecx
call   1030 <checkResults@plt>
lea    0x115a(%rip),%rdi
lea    0x1162(%rip),%rsi
lea    0xeb5(%rip),%rdx
mov    $0x2b5,%ecx
call   1030 <checkResults@plt>
lea    0x11df(%rip),%rdi
lea    0x11e6(%rip),%rsi
lea    0xe96(%rip),%rdx
mov    $0x2c1,%ecx
call   1030 <checkResults@plt>
pop    %rbp
ret

x86 assembly (clang, -O2):
<testMultiLineComments>:
push   %rbx
lea    0xee8(%rip),%rdi
lea    0xeec(%rip),%rsi
lea    0xf53(%rip),%rbx
mov    %rbx,%rdx
mov    $0x286,%ecx
call   1030 <checkResults@plt>
lea    0xfd9(%rip),%rdi
lea    0xfdf(%rip),%rsi
mov    %rbx,%rdx
mov    $0x28f,%ecx
call   1030 <checkResults@plt>
lea    0x103b(%rip),%rdi
lea    0x1044(%rip),%rsi
mov    %rbx,%rdx
mov    $0x298,%ecx
call   1030 <checkResults@plt>
lea    0x1097(%rip),%rdi
lea    0x109e(%rip),%rsi
mov    %rbx,%rdx
mov    $0x2a1,%ecx
call   1030 <checkResults@plt>
lea    0x10fb(%rip),%rdi
lea    0x1102(%rip),%rsi
mov    %rbx,%rdx
mov    $0x2ab,%ecx
call   1030 <checkResults@plt>
lea    0x116a(%rip),%rdi
lea    0x1172(%rip),%rsi
mov    %rbx,%rdx
mov    $0x2b5,%ecx
call   1030 <checkResults@plt>
lea    0x11f3(%rip),%rdi
lea    0x11fa(%rip),%rsi
mov    %rbx,%rdx
mov    $0x2c1,%ecx
pop    %rbx
jmp    1030 <checkResults@plt>

LLVM IR (-O0):
@.str = [11 x i8] c"/* test */\00"
@.str.1 = [110 x i8] c"1:0:BEGIN~EOF~\0A1:1:BEGIN~;~\0A1:1:BEGIN~*~\0A1:1:STRING=/* test */\0A1:10:END~*~\0A1:10:END_MISSING~;~\0A1:10:END~EOF~\0A\00"
@.str.2 = [154 x i8] c"/scratch/repos/new/home/jordi_armengol_estape/c-scraper/outputs/2022-01-22/02-19-57/repos/jasonxhill/okavangoc/refs/heads/master/test/BracketStreamTest.c\00"
@.str.3 = [13 x i8] c"/** test **/\00"
@.str.4 = [112 x i8] c"1:0:BEGIN~EOF~\0A1:1:BEGIN~;~\0A1:1:BEGIN~*~\0A1:1:STRING=/** test **/\0A1:12:END~*~\0A1:12:END_MISSING~;~\0A1:12:END~EOF~\0A\00"
@.str.5 = [16 x i8] c"/**\0A* test\0A**/;\00"
@.str.6 = [103 x i8] c"1:0:BEGIN~EOF~\0A1:1:BEGIN~;~\0A1:1:BEGIN~*~\0A1:1:STRING=/**\0A* test\0A**/\0A3:3:END~*~\0A3:4:END~;~\0A3:4:END~EOF~\0A\00"
@.str.7 = [14 x i8] c"/** /test **/\00"
@.str.8 = [113 x i8] c"1:0:BEGIN~EOF~\0A1:1:BEGIN~;~\0A1:1:BEGIN~*~\0A1:1:STRING=/** /test **/\0A1:13:END~*~\0A1:13:END_MISSING~;~\0A1:13:END~EOF~\0A\00"
@.str.9 = [14 x i8] c"/**/test **/x\00"
@.str.10 = [124 x i8] c"1:0:BEGIN~EOF~\0A1:1:BEGIN~;~\0A1:1:BEGIN~*~\0A1:1:STRING=/**/\0A1:4:END~*~\0A1:5:STRING=test **/x\0A1:13:END_MISSING~;~\0A1:13:END~EOF~\0A\00"
@.str.11 = [15 x i8] c"/**/test **/{}\00"
@.str.12 = [149 x i8] c"1:0:BEGIN~EOF~\0A1:1:BEGIN~;~\0A1:1:BEGIN~*~\0A1:1:STRING=/**/\0A1:4:END~*~\0A1:5:STRING=test **/\0A1:13:BEGIN~{~\0A1:14:END~{~\0A1:14:END_MISSING~;~\0A1:14:END~EOF~\0A\00"
@.str.13 = [14 x i8] c"/*/* test **/\00"
@.str.14 = [113 x i8] c"1:0:BEGIN~EOF~\0A1:1:BEGIN~;~\0A1:1:BEGIN~*~\0A1:1:STRING=/*/* test **/\0A1:13:END~*~\0A1:13:END_MISSING~;~\0A1:13:END~EOF~\0A\00"
define void @testMultiLineComments() {
%1 = call i32 @checkResults(i8* getelementptr inbounds ([11 x i8], [11 x i8]* @.str, i64 0, i64 0), i8* getelementptr inbounds ([110 x i8], [110 x i8]* @.str.1, i64 0, i64 0), i8* getelementptr inbounds ([154 x i8], [154 x i8]* @.str.2, i64 0, i64 0), i32 646)
%2 = call i32 @checkResults(i8* getelementptr inbounds ([13 x i8], [13 x i8]* @.str.3, i64 0, i64 0), i8* getelementptr inbounds ([112 x i8], [112 x i8]* @.str.4, i64 0, i64 0), i8* getelementptr inbounds ([154 x i8], [154 x i8]* @.str.2, i64 0, i64 0), i32 655)
%3 = call i32 @checkResults(i8* getelementptr inbounds ([16 x i8], [16 x i8]* @.str.5, i64 0, i64 0), i8* getelementptr inbounds ([103 x i8], [103 x i8]* @.str.6, i64 0, i64 0), i8* getelementptr inbounds ([154 x i8], [154 x i8]* @.str.2, i64 0, i64 0), i32 664)
%4 = call i32 @checkResults(i8* getelementptr inbounds ([14 x i8], [14 x i8]* @.str.7, i64 0, i64 0), i8* getelementptr inbounds ([113 x i8], [113 x i8]* @.str.8, i64 0, i64 0), i8* getelementptr inbounds ([154 x i8], [154 x i8]* @.str.2, i64 0, i64 0), i32 673)
%5 = call i32 @checkResults(i8* getelementptr inbounds ([14 x i8], [14 x i8]* @.str.9, i64 0, i64 0), i8* getelementptr inbounds ([124 x i8], [124 x i8]* @.str.10, i64 0, i64 0), i8* getelementptr inbounds ([154 x i8], [154 x i8]* @.str.2, i64 0, i64 0), i32 683)
%6 = call i32 @checkResults(i8* getelementptr inbounds ([15 x i8], [15 x i8]* @.str.11, i64 0, i64 0), i8* getelementptr inbounds ([149 x i8], [149 x i8]* @.str.12, i64 0, i64 0), i8* getelementptr inbounds ([154 x i8], [154 x i8]* @.str.2, i64 0, i64 0), i32 693)
%7 = call i32 @checkResults(i8* getelementptr inbounds ([14 x i8], [14 x i8]* @.str.13, i64 0, i64 0), i8* getelementptr inbounds ([113 x i8], [113 x i8]* @.str.14, i64 0, i64 0), i8* getelementptr inbounds ([154 x i8], [154 x i8]* @.str.2, i64 0, i64 0), i32 705)
ret void
}

LLVM IR (-O2):
@.str = [11 x i8] c"/* test */\00"
@.str.1 = [110 x i8] c"1:0:BEGIN~EOF~\0A1:1:BEGIN~;~\0A1:1:BEGIN~*~\0A1:1:STRING=/* test */\0A1:10:END~*~\0A1:10:END_MISSING~;~\0A1:10:END~EOF~\0A\00"
@.str.2 = [154 x i8] c"/scratch/repos/new/home/jordi_armengol_estape/c-scraper/outputs/2022-01-22/02-19-57/repos/jasonxhill/okavangoc/refs/heads/master/test/BracketStreamTest.c\00"
@.str.3 = [13 x i8] c"/** test **/\00"
@.str.4 = [112 x i8] c"1:0:BEGIN~EOF~\0A1:1:BEGIN~;~\0A1:1:BEGIN~*~\0A1:1:STRING=/** test **/\0A1:12:END~*~\0A1:12:END_MISSING~;~\0A1:12:END~EOF~\0A\00"
@.str.5 = [16 x i8] c"/**\0A* test\0A**/;\00"
@.str.6 = [103 x i8] c"1:0:BEGIN~EOF~\0A1:1:BEGIN~;~\0A1:1:BEGIN~*~\0A1:1:STRING=/**\0A* test\0A**/\0A3:3:END~*~\0A3:4:END~;~\0A3:4:END~EOF~\0A\00"
@.str.7 = [14 x i8] c"/** /test **/\00"
@.str.8 = [113 x i8] c"1:0:BEGIN~EOF~\0A1:1:BEGIN~;~\0A1:1:BEGIN~*~\0A1:1:STRING=/** /test **/\0A1:13:END~*~\0A1:13:END_MISSING~;~\0A1:13:END~EOF~\0A\00"
@.str.9 = [14 x i8] c"/**/test **/x\00"
@.str.10 = [124 x i8] c"1:0:BEGIN~EOF~\0A1:1:BEGIN~;~\0A1:1:BEGIN~*~\0A1:1:STRING=/**/\0A1:4:END~*~\0A1:5:STRING=test **/x\0A1:13:END_MISSING~;~\0A1:13:END~EOF~\0A\00"
@.str.11 = [15 x i8] c"/**/test **/{}\00"
@.str.12 = [149 x i8] c"1:0:BEGIN~EOF~\0A1:1:BEGIN~;~\0A1:1:BEGIN~*~\0A1:1:STRING=/**/\0A1:4:END~*~\0A1:5:STRING=test **/\0A1:13:BEGIN~{~\0A1:14:END~{~\0A1:14:END_MISSING~;~\0A1:14:END~EOF~\0A\00"
@.str.13 = [14 x i8] c"/*/* test **/\00"
@.str.14 = [113 x i8] c"1:0:BEGIN~EOF~\0A1:1:BEGIN~;~\0A1:1:BEGIN~*~\0A1:1:STRING=/*/* test **/\0A1:13:END~*~\0A1:13:END_MISSING~;~\0A1:13:END~EOF~\0A\00"
define void @testMultiLineComments() {
%1 = tail call i32 @checkResults(i8* getelementptr inbounds ([11 x i8], [11 x i8]* @.str, i64 0, i64 0), i8* getelementptr inbounds ([110 x i8], [110 x i8]* @.str.1, i64 0, i64 0), i8* getelementptr inbounds ([154 x i8], [154 x i8]* @.str.2, i64 0, i64 0), i32 646)
%2 = tail call i32 @checkResults(i8* getelementptr inbounds ([13 x i8], [13 x i8]* @.str.3, i64 0, i64 0), i8* getelementptr inbounds ([112 x i8], [112 x i8]* @.str.4, i64 0, i64 0), i8* getelementptr inbounds ([154 x i8], [154 x i8]* @.str.2, i64 0, i64 0), i32 655)
%3 = tail call i32 @checkResults(i8* getelementptr inbounds ([16 x i8], [16 x i8]* @.str.5, i64 0, i64 0), i8* getelementptr inbounds ([103 x i8], [103 x i8]* @.str.6, i64 0, i64 0), i8* getelementptr inbounds ([154 x i8], [154 x i8]* @.str.2, i64 0, i64 0), i32 664)
%4 = tail call i32 @checkResults(i8* getelementptr inbounds ([14 x i8], [14 x i8]* @.str.7, i64 0, i64 0), i8* getelementptr inbounds ([113 x i8], [113 x i8]* @.str.8, i64 0, i64 0), i8* getelementptr inbounds ([154 x i8], [154 x i8]* @.str.2, i64 0, i64 0), i32 673)
%5 = tail call i32 @checkResults(i8* getelementptr inbounds ([14 x i8], [14 x i8]* @.str.9, i64 0, i64 0), i8* getelementptr inbounds ([124 x i8], [124 x i8]* @.str.10, i64 0, i64 0), i8* getelementptr inbounds ([154 x i8], [154 x i8]* @.str.2, i64 0, i64 0), i32 683)
%6 = tail call i32 @checkResults(i8* getelementptr inbounds ([15 x i8], [15 x i8]* @.str.11, i64 0, i64 0), i8* getelementptr inbounds ([149 x i8], [149 x i8]* @.str.12, i64 0, i64 0), i8* getelementptr inbounds ([154 x i8], [154 x i8]* @.str.2, i64 0, i64 0), i32 693)
%7 = tail call i32 @checkResults(i8* getelementptr inbounds ([14 x i8], [14 x i8]* @.str.13, i64 0, i64 0), i8* getelementptr inbounds ([113 x i8], [113 x i8]* @.str.14, i64 0, i64 0), i8* getelementptr inbounds ([154 x i8], [154 x i8]* @.str.2, i64 0, i64 0), i32 705)
ret void
}