#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*/ test_parser_sourcefile(char *, char *);
int /*<<< orphan*/ test_parser_verify_entity(int /*<<< orphan*/, char *,
                                             char *);
void test_html_comment_entities() {
  test_parser_verify_entity(test_parser_sourcefile("html", " <!--comment-->"),
                            "comment", "<!--comment-->");
  test_parser_verify_entity(
      test_parser_sourcefile("html",
                             "<style type='text/css'>\n/*comment*/\n</style>"),
      "comment", "/*comment*/");
  test_parser_verify_entity(
      test_parser_sourcefile(
          "html", "<script type='text/javascript'>\n//comment\n</script>"),
      "comment", "//comment");
  test_parser_verify_entity(
      test_parser_sourcefile(
          "html", "<script type='text/javascript'>\n/*comment*/\n</script>"),
      "comment", "/*comment*/");
}


x86 assembly (clang, -O0):
<test_html_comment_entities>:
push   %rbp
mov    %rsp,%rbp
lea    0xed5(%rip),%rdi
lea    0xed3(%rip),%rsi
call   1030 <test_parser_sourcefile@plt>
mov    %eax,%edi
lea    0xf44(%rip),%rsi
lea    0xebf(%rip),%rdx
call   1040 <test_parser_verify_entity@plt>
lea    0xead(%rip),%rdi
lea    0xebb(%rip),%rsi
call   1030 <test_parser_sourcefile@plt>
mov    %eax,%edi
lea    0xf1c(%rip),%rsi
lea    0xed3(%rip),%rdx
call   1040 <test_parser_verify_entity@plt>
lea    0xe85(%rip),%rdi
lea    0xecc(%rip),%rsi
call   1030 <test_parser_sourcefile@plt>
mov    %eax,%edi
lea    0xef4(%rip),%rsi
lea    0xeeb(%rip),%rdx
call   1040 <test_parser_verify_entity@plt>
lea    0xe5d(%rip),%rdi
lea    0xee2(%rip),%rsi
call   1030 <test_parser_sourcefile@plt>
mov    %eax,%edi
lea    0xecc(%rip),%rsi
lea    0xe83(%rip),%rdx
call   1040 <test_parser_verify_entity@plt>
pop    %rbp
ret

x86 assembly (clang, -O2):
<test_html_comment_entities>:
push   %r15
push   %r14
push   %rbx
lea    0xed4(%rip),%r14
lea    0xed2(%rip),%rsi
mov    %r14,%rdi
call   1030 <test_parser_sourcefile@plt>
lea    0xf42(%rip),%rbx
lea    0xebd(%rip),%rdx
mov    %eax,%edi
mov    %rbx,%rsi
call   1040 <test_parser_verify_entity@plt>
lea    0xebb(%rip),%rsi
mov    %r14,%rdi
call   1030 <test_parser_sourcefile@plt>
lea    0xed9(%rip),%r15
mov    %eax,%edi
mov    %rbx,%rsi
mov    %r15,%rdx
call   1040 <test_parser_verify_entity@plt>
lea    0xed1(%rip),%rsi
mov    %r14,%rdi
call   1030 <test_parser_sourcefile@plt>
lea    0xef6(%rip),%rdx
mov    %eax,%edi
mov    %rbx,%rsi
call   1040 <test_parser_verify_entity@plt>
lea    0xeef(%rip),%rsi
mov    %r14,%rdi
call   1030 <test_parser_sourcefile@plt>
mov    %eax,%edi
mov    %rbx,%rsi
mov    %r15,%rdx
pop    %rbx
pop    %r14
pop    %r15
jmp    1040 <test_parser_verify_entity@plt>

LLVM IR (-O0):
@.str = [5 x i8] c"html\00"
@.str.1 = [16 x i8] c" <!--comment-->\00"
@.str.2 = [8 x i8] c"comment\00"
@.str.3 = [15 x i8] c"<!--comment-->\00"
@.str.4 = [45 x i8] c"<style type='text/css'>\0A/*comment*/\0A</style>\00"
@.str.5 = [12 x i8] c"/*comment*/\00"
@.str.6 = [52 x i8] c"<script type='text/javascript'>\0A//comment\0A</script>\00"
@.str.7 = [10 x i8] c"//comment\00"
@.str.8 = [54 x i8] c"<script type='text/javascript'>\0A/*comment*/\0A</script>\00"
define void @test_html_comment_entities() {
%1 = call i32 @test_parser_sourcefile(i8* getelementptr inbounds ([5 x i8], [5 x i8]* @.str, i64 0, i64 0), i8* getelementptr inbounds ([16 x i8], [16 x i8]* @.str.1, i64 0, i64 0))
%2 = call i32 @test_parser_verify_entity(i32 %1, i8* getelementptr inbounds ([8 x i8], [8 x i8]* @.str.2, i64 0, i64 0), i8* getelementptr inbounds ([15 x i8], [15 x i8]* @.str.3, i64 0, i64 0))
%3 = call i32 @test_parser_sourcefile(i8* getelementptr inbounds ([5 x i8], [5 x i8]* @.str, i64 0, i64 0), i8* getelementptr inbounds ([45 x i8], [45 x i8]* @.str.4, i64 0, i64 0))
%4 = call i32 @test_parser_verify_entity(i32 %3, i8* getelementptr inbounds ([8 x i8], [8 x i8]* @.str.2, i64 0, i64 0), i8* getelementptr inbounds ([12 x i8], [12 x i8]* @.str.5, i64 0, i64 0))
%5 = call i32 @test_parser_sourcefile(i8* getelementptr inbounds ([5 x i8], [5 x i8]* @.str, i64 0, i64 0), i8* getelementptr inbounds ([52 x i8], [52 x i8]* @.str.6, i64 0, i64 0))
%6 = call i32 @test_parser_verify_entity(i32 %5, i8* getelementptr inbounds ([8 x i8], [8 x i8]* @.str.2, i64 0, i64 0), i8* getelementptr inbounds ([10 x i8], [10 x i8]* @.str.7, i64 0, i64 0))
%7 = call i32 @test_parser_sourcefile(i8* getelementptr inbounds ([5 x i8], [5 x i8]* @.str, i64 0, i64 0), i8* getelementptr inbounds ([54 x i8], [54 x i8]* @.str.8, i64 0, i64 0))
%8 = call i32 @test_parser_verify_entity(i32 %7, i8* getelementptr inbounds ([8 x i8], [8 x i8]* @.str.2, i64 0, i64 0), i8* getelementptr inbounds ([12 x i8], [12 x i8]* @.str.5, i64 0, i64 0))
ret void
}

LLVM IR (-O2):
@.str = [5 x i8] c"html\00"
@.str.1 = [16 x i8] c" <!--comment-->\00"
@.str.2 = [8 x i8] c"comment\00"
@.str.3 = [15 x i8] c"<!--comment-->\00"
@.str.4 = [45 x i8] c"<style type='text/css'>\0A/*comment*/\0A</style>\00"
@.str.5 = [12 x i8] c"/*comment*/\00"
@.str.6 = [52 x i8] c"<script type='text/javascript'>\0A//comment\0A</script>\00"
@.str.7 = [10 x i8] c"//comment\00"
@.str.8 = [54 x i8] c"<script type='text/javascript'>\0A/*comment*/\0A</script>\00"
define void @test_html_comment_entities() {
%1 = tail call i32 @test_parser_sourcefile(i8* getelementptr inbounds ([5 x i8], [5 x i8]* @.str, i64 0, i64 0), i8* getelementptr inbounds ([16 x i8], [16 x i8]* @.str.1, i64 0, i64 0))
%2 = tail call i32 @test_parser_verify_entity(i32 %1, i8* getelementptr inbounds ([8 x i8], [8 x i8]* @.str.2, i64 0, i64 0), i8* getelementptr inbounds ([15 x i8], [15 x i8]* @.str.3, i64 0, i64 0))
%3 = tail call i32 @test_parser_sourcefile(i8* getelementptr inbounds ([5 x i8], [5 x i8]* @.str, i64 0, i64 0), i8* getelementptr inbounds ([45 x i8], [45 x i8]* @.str.4, i64 0, i64 0))
%4 = tail call i32 @test_parser_verify_entity(i32 %3, i8* getelementptr inbounds ([8 x i8], [8 x i8]* @.str.2, i64 0, i64 0), i8* getelementptr inbounds ([12 x i8], [12 x i8]* @.str.5, i64 0, i64 0))
%5 = tail call i32 @test_parser_sourcefile(i8* getelementptr inbounds ([5 x i8], [5 x i8]* @.str, i64 0, i64 0), i8* getelementptr inbounds ([52 x i8], [52 x i8]* @.str.6, i64 0, i64 0))
%6 = tail call i32 @test_parser_verify_entity(i32 %5, i8* getelementptr inbounds ([8 x i8], [8 x i8]* @.str.2, i64 0, i64 0), i8* getelementptr inbounds ([10 x i8], [10 x i8]* @.str.7, i64 0, i64 0))
%7 = tail call i32 @test_parser_sourcefile(i8* getelementptr inbounds ([5 x i8], [5 x i8]* @.str, i64 0, i64 0), i8* getelementptr inbounds ([54 x i8], [54 x i8]* @.str.8, i64 0, i64 0))
%8 = tail call i32 @test_parser_verify_entity(i32 %7, i8* getelementptr inbounds ([8 x i8], [8 x i8]* @.str.2, i64 0, i64 0), i8* getelementptr inbounds ([12 x i8], [12 x i8]* @.str.5, i64 0, i64 0))
ret void
}