// File: /workspace/github_cpp_makefile_star2_O1/pranavmodx[P]modlang/test/parser_test.cpp
// Function: testLetStatement(LetStatement*, std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char>>)
bool testLetStatement(LetStatement *stmt, std::string expectedName)
{
	if (stmt->tokenLiteral() != "let")
	{
		std::cout << "stmt->tokenLiteral() not 'let'"
				  << ", got " << stmt->tokenLiteral() << std::endl;
		return false;
	}

	if (stmt->name.value != expectedName)
	{
		std::cout << "stmt->name.value not " << expectedName << ", got " << stmt->name.value << std::endl;
		return false;
	}

	if (stmt->name.tokenLiteral() != expectedName)
	{
		std::cout << "stmt->name.tokenLiteral() not " << expectedName << ", got " << stmt->name.tokenLiteral() << std::endl;
		return false;
	}

	return true;
}

// Assembly:
pushq %rbp
pushq %r15
pushq %r14
pushq %r12
pushq %rbx
subq $0x20, %rsp
movq %rsi, %r14
movq %rdi, %rbx
movq (%rdi), %rax
movq %rsp, %r15
movq %r15, %rdi
movq %rbx, %rsi
callq *(%rax)
leaq 0xeafd(%rip), %rsi      # 0x17104
movq %r15, %rdi
callq 0x4090
movl %eax, %ebp
movq (%r15), %rdi
leaq 0x10(%rsp), %r12
cmpq %r12, %rdi
je 0x862b
movq 0x10(%rsp), %rsi
incq %rsi
callq 0x41d0
testl %ebp, %ebp
je 0x86c8
movq 0x1699e(%rip), %r14     # 0x1efd8
leaq 0xeac7(%rip), %rsi      # 0x17108
movl $0x1e, %edx
movq %r14, %rdi
callq 0x4210
leaq 0xeb8b(%rip), %rsi      # 0x171e0
movl $0x6, %edx
movq %r14, %rdi
callq 0x4210
movq (%rbx), %rax
movq %rsp, %r15
movq %r15, %rdi
movq %rbx, %rsi
callq *(%rax)
movq (%r15), %rsi
movq 0x8(%r15), %rdx
movq %r14, %rdi
callq 0x4210
movq %rax, %rbx
movq (%rax), %rax
movq -0x18(%rax), %rdi
addq %rbx, %rdi
movl $0xa, %esi
callq 0x41b0
movsbl %al, %esi
movq %rbx, %rdi
callq 0x4030
movq %rax, %rdi
callq 0x4140
movq (%rsp), %rdi
cmpq %r12, %rdi
je 0x8776
movq 0x10(%rsp), %rsi
incq %rsi
callq 0x41d0
jmp 0x8776
movq 0x98(%rbx), %rdx
cmpq 0x8(%r14), %rdx
jne 0x86f5
testq %rdx, %rdx
je 0x8785
movq (%r14), %rsi
movq 0x90(%rbx), %rdi
callq 0x41e0
testl %eax, %eax
je 0x8785
movq 0x168dc(%rip), %r15     # 0x1efd8
leaq 0xea24(%rip), %rsi      # 0x17127
movl $0x15, %edx
movq %r15, %rdi
callq 0x4210
movq (%r14), %rsi
movq 0x8(%r14), %rdx
movq %r15, %rdi
callq 0x4210
movq %rax, %r14
leaq 0xeab7(%rip), %rsi      # 0x171e0
movl $0x6, %edx
movq %rax, %rdi
callq 0x4210
movq 0x90(%rbx), %rsi
movq 0x98(%rbx), %rdx
movq %r14, %rdi
callq 0x4210
movq %rax, %rbx
movq (%rax), %rax
movq -0x18(%rax), %rdi
addq %rbx, %rdi
movl $0xa, %esi
callq 0x41b0
movsbl %al, %esi
movq %rbx, %rdi
callq 0x4030
movq %rax, %rdi
callq 0x4140
xorl %eax, %eax
addq $0x20, %rsp
popq %rbx
popq %r12
popq %r14
popq %r15
popq %rbp
retq
movq %rsp, %r15
movq %r12, (%r15)
movq 0x70(%rbx), %rsi
movq 0x78(%rbx), %rdx
addq %rsi, %rdx
movq %r15, %rdi
callq 0x8bde
movq 0x8(%r15), %rdx
movb $0x1, %bpl
cmpq 0x8(%r14), %rdx
jne 0x87c6
testq %rdx, %rdx
je 0x87c4
movq (%r14), %rsi
movq (%rsp), %rdi
callq 0x41e0
testl %eax, %eax
setne %bpl
jmp 0x87c6
xorl %ebp, %ebp
movq (%rsp), %rdi
cmpq %r12, %rdi
je 0x87dc
movq 0x10(%rsp), %rsi
incq %rsi
callq 0x41d0
movb $0x1, %al
testb %bpl, %bpl
je 0x8778
movq 0x167ee(%rip), %r15     # 0x1efd8
leaq 0xe94c(%rip), %rsi      # 0x1713d
movl $0x1e, %edx
movq %r15, %rdi
callq 0x4210
movq (%r14), %rsi
movq 0x8(%r14), %rdx
movq %r15, %rdi
callq 0x4210
movq %rax, %r14
leaq 0xe9c9(%rip), %rsi      # 0x171e0
movl $0x6, %edx
movq %rax, %rdi
callq 0x4210
movq %rsp, %r15
movq %r12, (%r15)
movq 0x70(%rbx), %rsi
movq 0x78(%rbx), %rdx
addq %rsi, %rdx
movq %r15, %rdi
callq 0x8bde
movq (%r15), %rsi
movq 0x8(%r15), %rdx
movq %r14, %rdi
callq 0x4210
movq %rax, %rbx
movq (%rax), %rax
movq -0x18(%rax), %rdi
addq %rbx, %rdi
movl $0xa, %esi
callq 0x41b0
movsbl %al, %esi
movq %rbx, %rdi
callq 0x4030
movq %rax, %rdi
callq 0x4140
jmp 0x86a9
jmp 0x887d
movq %rax, %rbx
movq (%rsp), %rdi
cmpq %r12, %rdi
je 0x8896
movq 0x10(%rsp), %rsi
incq %rsi
callq 0x41d0
movq %rbx, %rdi
callq 0x4330