// File: /workspace/github_cpp_makefile_star2_O3/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 0xdb0b(%rip), %rsi      # 0x16104
movq %r15, %rdi
callq 0x4090
movl %eax, %ebp
movq (%r15), %rdi
leaq 0x10(%rsp), %r12
cmpq %r12, %rdi
je 0x861d
movq 0x10(%rsp), %rsi
incq %rsi
callq 0x41d0
testl %ebp, %ebp
je 0x86ba
movq 0x159ac(%rip), %r14     # 0x1dfd8
leaq 0xdad5(%rip), %rsi      # 0x16108
movl $0x1e, %edx
movq %r14, %rdi
callq 0x4210
leaq 0xdb99(%rip), %rsi      # 0x161e0
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 0x8768
movq 0x10(%rsp), %rsi
incq %rsi
callq 0x41d0
jmp 0x8768
movq 0x98(%rbx), %rdx
cmpq 0x8(%r14), %rdx
jne 0x86e7
testq %rdx, %rdx
je 0x8777
movq (%r14), %rsi
movq 0x90(%rbx), %rdi
callq 0x41e0
testl %eax, %eax
je 0x8777
movq 0x158ea(%rip), %r15     # 0x1dfd8
leaq 0xda32(%rip), %rsi      # 0x16127
movl $0x15, %edx
movq %r15, %rdi
callq 0x4210
movq (%r14), %rsi
movq 0x8(%r14), %rdx
movq %r15, %rdi
callq 0x4210
movq %rax, %r14
leaq 0xdac5(%rip), %rsi      # 0x161e0
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 0x8bda
movq 0x8(%r15), %rdx
cmpq 0x8(%r14), %rdx
jne 0x87b6
movq (%rsp), %r15
testq %rdx, %rdx
je 0x87bf
movq (%r14), %rsi
movq %r15, %rdi
callq 0x41e0
testl %eax, %eax
setne %bpl
jmp 0x87c1
movb $0x1, %bpl
movq (%rsp), %r15
jmp 0x87c1
xorl %ebp, %ebp
cmpq %r12, %r15
je 0x87d6
movq 0x10(%rsp), %rsi
incq %rsi
movq %r15, %rdi
callq 0x41d0
movb $0x1, %al
testb %bpl, %bpl
je 0x876a
movq 0x157f4(%rip), %r15     # 0x1dfd8
leaq 0xd952(%rip), %rsi      # 0x1613d
movl $0x1e, %edx
movq %r15, %rdi
callq 0x4210
movq (%r14), %rsi
movq 0x8(%r14), %rdx
movq %r15, %rdi
callq 0x4210
movq %rax, %r14
leaq 0xd9cf(%rip), %rsi      # 0x161e0
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 0x8bda
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 0x869b
jmp 0x8877
movq %rax, %rbx
movq (%rsp), %rdi
cmpq %r12, %rdi
je 0x8890
movq 0x10(%rsp), %rsi
incq %rsi
callq 0x41d0
movq %rbx, %rdi
callq 0x4330