#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_parse(int /*<<< orphan*/, char *, char *,
                                            char *, int /*<<< orphan*/);
void test_nsis_strings() {
  test_parser_verify_parse(
      test_parser_sourcefile("nsis", "\"abc;not a 'comment\""), "nsis",
      "\"abc;not a 'comment\"", "", 0);
  test_parser_verify_parse(
      test_parser_sourcefile("nsis", "'abc;not a \"comment'"), "nsis",
      "'abc;not a \"comment'", "", 0);
  test_parser_verify_parse(
      test_parser_sourcefile("nsis", "`abc;not a 'comment`"), "nsis",
      "`abc;not a 'comment`", "", 0);
}


x86 assembly (clang, -O0):
<test_nsis_strings>:
push   %rbp
mov    %rsp,%rbp
lea    0xed5(%rip),%rdi
lea    0xed3(%rip),%rsi
call   1030 <test_parser_sourcefile@plt>
mov    %eax,%edi
lea    0xec0(%rip),%rsi
lea    0xebe(%rip),%rdx
lea    0xecb(%rip),%rcx
xor    %r8d,%r8d
call   1040 <test_parser_verify_parse@plt>
lea    0xea3(%rip),%rdi
lea    0xeb6(%rip),%rsi
call   1030 <test_parser_sourcefile@plt>
mov    %eax,%edi
lea    0xe8e(%rip),%rsi
lea    0xea1(%rip),%rdx
lea    0xe99(%rip),%rcx
xor    %r8d,%r8d
call   1040 <test_parser_verify_parse@plt>
lea    0xe71(%rip),%rdi
lea    0xe99(%rip),%rsi
call   1030 <test_parser_sourcefile@plt>
mov    %eax,%edi
lea    0xe5c(%rip),%rsi
lea    0xe84(%rip),%rdx
lea    0xe67(%rip),%rcx
xor    %r8d,%r8d
call   1040 <test_parser_verify_parse@plt>
pop    %rbp
ret

x86 assembly (clang, -O2):
<test_nsis_strings>:
push   %r15
push   %r14
push   %rbx
lea    0xed4(%rip),%rbx
lea    0xed2(%rip),%r15
mov    %rbx,%rdi
mov    %r15,%rsi
call   1030 <test_parser_sourcefile@plt>
lea    0xed4(%rip),%r14
mov    %eax,%edi
mov    %rbx,%rsi
mov    %r15,%rdx
mov    %r14,%rcx
xor    %r8d,%r8d
call   1040 <test_parser_verify_parse@plt>
lea    0xebb(%rip),%r15
mov    %rbx,%rdi
mov    %r15,%rsi
call   1030 <test_parser_sourcefile@plt>
mov    %eax,%edi
mov    %rbx,%rsi
mov    %r15,%rdx
mov    %r14,%rcx
xor    %r8d,%r8d
call   1040 <test_parser_verify_parse@plt>
lea    0xeab(%rip),%r15
mov    %rbx,%rdi
mov    %r15,%rsi
call   1030 <test_parser_sourcefile@plt>
mov    %eax,%edi
mov    %rbx,%rsi
mov    %r15,%rdx
mov    %r14,%rcx
xor    %r8d,%r8d
pop    %rbx
pop    %r14
pop    %r15
jmp    1040 <test_parser_verify_parse@plt>

LLVM IR (-O0):
@.str = [5 x i8] c"nsis\00"
@.str.1 = [21 x i8] c"\22abc;not a 'comment\22\00"
@.str.2 = [1 x i8] zeroinitializer
@.str.3 = [21 x i8] c"'abc;not a \22comment'\00"
@.str.4 = [21 x i8] c"`abc;not a 'comment`\00"
define void @test_nsis_strings() {
%1 = call i32 @test_parser_sourcefile(i8* getelementptr inbounds ([5 x i8], [5 x i8]* @.str, i64 0, i64 0), i8* getelementptr inbounds ([21 x i8], [21 x i8]* @.str.1, i64 0, i64 0))
%2 = call i32 @test_parser_verify_parse(i32 %1, i8* getelementptr inbounds ([5 x i8], [5 x i8]* @.str, i64 0, i64 0), i8* getelementptr inbounds ([21 x i8], [21 x i8]* @.str.1, i64 0, i64 0), i8* getelementptr inbounds ([1 x i8], [1 x i8]* @.str.2, i64 0, i64 0), i32 0)
%3 = call i32 @test_parser_sourcefile(i8* getelementptr inbounds ([5 x i8], [5 x i8]* @.str, i64 0, i64 0), i8* getelementptr inbounds ([21 x i8], [21 x i8]* @.str.3, i64 0, i64 0))
%4 = call i32 @test_parser_verify_parse(i32 %3, i8* getelementptr inbounds ([5 x i8], [5 x i8]* @.str, i64 0, i64 0), i8* getelementptr inbounds ([21 x i8], [21 x i8]* @.str.3, i64 0, i64 0), i8* getelementptr inbounds ([1 x i8], [1 x i8]* @.str.2, i64 0, i64 0), i32 0)
%5 = call i32 @test_parser_sourcefile(i8* getelementptr inbounds ([5 x i8], [5 x i8]* @.str, i64 0, i64 0), i8* getelementptr inbounds ([21 x i8], [21 x i8]* @.str.4, i64 0, i64 0))
%6 = call i32 @test_parser_verify_parse(i32 %5, i8* getelementptr inbounds ([5 x i8], [5 x i8]* @.str, i64 0, i64 0), i8* getelementptr inbounds ([21 x i8], [21 x i8]* @.str.4, i64 0, i64 0), i8* getelementptr inbounds ([1 x i8], [1 x i8]* @.str.2, i64 0, i64 0), i32 0)
ret void
}

LLVM IR (-O2):
@.str = [5 x i8] c"nsis\00"
@.str.1 = [21 x i8] c"\22abc;not a 'comment\22\00"
@.str.2 = [1 x i8] zeroinitializer
@.str.3 = [21 x i8] c"'abc;not a \22comment'\00"
@.str.4 = [21 x i8] c"`abc;not a 'comment`\00"
define void @test_nsis_strings() {
%1 = tail call i32 @test_parser_sourcefile(i8* getelementptr inbounds ([5 x i8], [5 x i8]* @.str, i64 0, i64 0), i8* getelementptr inbounds ([21 x i8], [21 x i8]* @.str.1, i64 0, i64 0))
%2 = tail call i32 @test_parser_verify_parse(i32 %1, i8* getelementptr inbounds ([5 x i8], [5 x i8]* @.str, i64 0, i64 0), i8* getelementptr inbounds ([21 x i8], [21 x i8]* @.str.1, i64 0, i64 0), i8* getelementptr inbounds ([1 x i8], [1 x i8]* @.str.2, i64 0, i64 0), i32 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 ([21 x i8], [21 x i8]* @.str.3, i64 0, i64 0))
%4 = tail call i32 @test_parser_verify_parse(i32 %3, i8* getelementptr inbounds ([5 x i8], [5 x i8]* @.str, i64 0, i64 0), i8* getelementptr inbounds ([21 x i8], [21 x i8]* @.str.3, i64 0, i64 0), i8* getelementptr inbounds ([1 x i8], [1 x i8]* @.str.2, i64 0, i64 0), i32 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 ([21 x i8], [21 x i8]* @.str.4, i64 0, i64 0))
%6 = tail call i32 @test_parser_verify_parse(i32 %5, i8* getelementptr inbounds ([5 x i8], [5 x i8]* @.str, i64 0, i64 0), i8* getelementptr inbounds ([21 x i8], [21 x i8]* @.str.4, i64 0, i64 0), i8* getelementptr inbounds ([1 x i8], [1 x i8]* @.str.2, i64 0, i64 0), i32 0)
ret void
}