#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_haml_comment_entities() {
  test_parser_verify_entity(test_parser_sourcefile("haml", " %element"),
                            "element", "%element");
  test_parser_verify_entity(test_parser_sourcefile("haml", " .class"),
                            "element_class", ".class");
  test_parser_verify_entity(test_parser_sourcefile("haml", " #id"),
                            "element_id", "#id");
}


x86 assembly (clang, -O0):
<test_haml_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    0xec7(%rip),%rsi
lea    0xebf(%rip),%rdx
call   1040 <test_parser_verify_entity@plt>
lea    0xead(%rip),%rdi
lea    0xeb5(%rip),%rsi
call   1030 <test_parser_sourcefile@plt>
mov    %eax,%edi
lea    0xeaf(%rip),%rsi
lea    0xea1(%rip),%rdx
call   1040 <test_parser_verify_entity@plt>
lea    0xe85(%rip),%rdi
lea    0xea3(%rip),%rsi
call   1030 <test_parser_sourcefile@plt>
mov    %eax,%edi
lea    0xe9a(%rip),%rsi
lea    0xe8f(%rip),%rdx
call   1040 <test_parser_verify_entity@plt>
pop    %rbp
ret

x86 assembly (clang, -O2):
<test_haml_comment_entities>:
push   %rbx
lea    0xed8(%rip),%rbx
lea    0xed6(%rip),%rsi
mov    %rbx,%rdi
call   1030 <test_parser_sourcefile@plt>
lea    0xec9(%rip),%rsi
lea    0xec1(%rip),%rdx
mov    %eax,%edi
call   1040 <test_parser_verify_entity@plt>
lea    0xebc(%rip),%rsi
mov    %rbx,%rdi
call   1030 <test_parser_sourcefile@plt>
lea    0xeb5(%rip),%rsi
lea    0xea7(%rip),%rdx
mov    %eax,%edi
call   1040 <test_parser_verify_entity@plt>
lea    0xeae(%rip),%rsi
mov    %rbx,%rdi
call   1030 <test_parser_sourcefile@plt>
lea    0xea4(%rip),%rsi
lea    0xe99(%rip),%rdx
mov    %eax,%edi
pop    %rbx
jmp    1040 <test_parser_verify_entity@plt>

LLVM IR (-O0):
@.str = [5 x i8] c"haml\00"
@.str.1 = [10 x i8] c" %element\00"
@.str.2 = [8 x i8] c"element\00"
@.str.3 = [9 x i8] c"%element\00"
@.str.4 = [8 x i8] c" .class\00"
@.str.5 = [14 x i8] c"element_class\00"
@.str.6 = [7 x i8] c".class\00"
@.str.7 = [5 x i8] c" #id\00"
@.str.8 = [11 x i8] c"element_id\00"
@.str.9 = [4 x i8] c"#id\00"
define void @test_haml_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 ([10 x i8], [10 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 ([9 x i8], [9 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 ([8 x i8], [8 x i8]* @.str.4, i64 0, i64 0))
%4 = call i32 @test_parser_verify_entity(i32 %3, i8* getelementptr inbounds ([14 x i8], [14 x i8]* @.str.5, i64 0, i64 0), i8* getelementptr inbounds ([7 x i8], [7 x i8]* @.str.6, 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 ([5 x i8], [5 x i8]* @.str.7, i64 0, i64 0))
%6 = call i32 @test_parser_verify_entity(i32 %5, i8* getelementptr inbounds ([11 x i8], [11 x i8]* @.str.8, i64 0, i64 0), i8* getelementptr inbounds ([4 x i8], [4 x i8]* @.str.9, i64 0, i64 0))
ret void
}

LLVM IR (-O2):
@.str = [5 x i8] c"haml\00"
@.str.1 = [10 x i8] c" %element\00"
@.str.2 = [8 x i8] c"element\00"
@.str.3 = [9 x i8] c"%element\00"
@.str.4 = [8 x i8] c" .class\00"
@.str.5 = [14 x i8] c"element_class\00"
@.str.6 = [7 x i8] c".class\00"
@.str.7 = [5 x i8] c" #id\00"
@.str.8 = [11 x i8] c"element_id\00"
@.str.9 = [4 x i8] c"#id\00"
define void @test_haml_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 ([10 x i8], [10 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 ([9 x i8], [9 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 ([8 x i8], [8 x i8]* @.str.4, i64 0, i64 0))
%4 = tail call i32 @test_parser_verify_entity(i32 %3, i8* getelementptr inbounds ([14 x i8], [14 x i8]* @.str.5, i64 0, i64 0), i8* getelementptr inbounds ([7 x i8], [7 x i8]* @.str.6, 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 ([5 x i8], [5 x i8]* @.str.7, i64 0, i64 0))
%6 = tail call i32 @test_parser_verify_entity(i32 %5, i8* getelementptr inbounds ([11 x i8], [11 x i8]* @.str.8, i64 0, i64 0), i8* getelementptr inbounds ([4 x i8], [4 x i8]* @.str.9, i64 0, i64 0))
ret void
}