// File: /workspace/github_cpp_makefile_star2_O3/pfnet-research[P]pml/src/test.cpp
// Function: let_test::let_test()
PML_CUSTOM_TEST(let_test, lang_feature_test) {
    using namespace ast;
    parse_test("let a = 1+2 in a + 3", "Let(a, Add(1, 2), Add(a, 3))");
    eval_test(
            make<let_expr_t>("a",
                make<add_expr_t>(
                    make<int_expr_t>(1),
                    make<int_expr_t>(2)),
                make<add_expr_t>(
                    make<var_expr_t>("a"),
                    make<int_expr_t>(3))),
            make<int_expr_t>(6));
}

// Assembly:
pushq %r15
pushq %r14
pushq %r12
pushq %rbx
subq $0xb8, %rsp
movq %rdi, %rbx
movl $0x0, 0x8(%rdi)
leaq 0x32239(%rip), %rax     # 0x61688
movq %rax, (%rdi)
leaq 0x10(%rsp), %r14
movq %r14, -0x10(%r14)
leaq 0x1b777(%rip), %rsi     # 0x4abd9
leaq 0x1b784(%rip), %rdx     # 0x4abed
movq %rsp, %rdi
callq 0x116f8
leaq 0x40(%rsp), %r15
movq %r15, -0x10(%r15)
leaq 0x1b76d(%rip), %rsi     # 0x4abee
leaq 0x1b782(%rip), %rdx     # 0x4ac0a
leaq 0x30(%rsp), %rdi
callq 0x116f8
movq %rsp, %rsi
leaq 0x30(%rsp), %rdx
movq %rbx, %rdi
callq 0x3543e
movq 0x30(%rsp), %rdi
cmpq %r15, %rdi
je 0x2f4b9
movq 0x40(%rsp), %rsi
incq %rsi
callq 0x92e0
movq (%rsp), %rdi
cmpq %r14, %rdi
je 0x2f4cf
movq 0x10(%rsp), %rsi
incq %rsi
callq 0x92e0
movl $0x20, %edi
callq 0x92d0
movabsq $0x100000001, %r14      # imm = 0x100000001
movq %r14, 0x8(%rax)
leaq 0x305fa(%rip), %r15     # 0x5fae8
movq %r15, (%rax)
movq %rax, %rcx
addq $0x10, %rcx
leaq 0x30639(%rip), %r12     # 0x5fb38
movq %r12, 0x10(%rax)
movl $0x1, 0x18(%rax)
movq %rax, 0x78(%rsp)
movq %rcx, 0x70(%rsp)
movl $0x20, %edi
callq 0x92d0
movq %r14, 0x8(%rax)
movq %r15, (%rax)
movq %rax, %rcx
addq $0x10, %rcx
movq %r12, 0x10(%rax)
movl $0x2, 0x18(%rax)
leaq 0xa8(%rsp), %r8
movq %rax, 0x8(%r8)
movq %rcx, (%r8)
leaq 0x38(%rsp), %rdi
movq $0x0, -0x8(%rdi)
leaq 0x30(%rsp), %rsi
leaq 0x20(%rsp), %rdx
leaq 0x70(%rsp), %rcx
callq 0x3663a
leaq 0x68(%rsp), %rdi
movq $0x0, -0x8(%rdi)
leaq 0x1b690(%rip), %rcx     # 0x4ac0b
leaq 0x60(%rsp), %rsi
leaq 0x98(%rsp), %rdx
callq 0x36c9a
movl $0x20, %edi
callq 0x92d0
movq %r14, 0x8(%rax)
movq %r15, (%rax)
movq %rax, %rcx
addq $0x10, %rcx
movq %r12, 0x10(%rax)
movl $0x3, 0x18(%rax)
leaq 0x98(%rsp), %r8
movq %rax, 0x8(%r8)
movq %rcx, (%r8)
leaq 0x28(%rsp), %rdi
movq $0x0, -0x8(%rdi)
leaq 0x20(%rsp), %rsi
leaq 0x50(%rsp), %rdx
leaq 0x60(%rsp), %rcx
callq 0x36bac
leaq 0x8(%rsp), %rdi
movq $0x0, -0x8(%rdi)
leaq 0x1b617(%rip), %rcx     # 0x4ac0b
movq %rsp, %rsi
leaq 0x50(%rsp), %rdx
leaq 0x30(%rsp), %r8
leaq 0x20(%rsp), %r9
callq 0x36a2e
movaps (%rsp), %xmm0
movaps %xmm0, 0x80(%rsp)
xorps %xmm0, %xmm0
movaps %xmm0, (%rsp)
movl $0x20, %edi
callq 0x92d0
movq %r14, 0x8(%rax)
movq %r15, (%rax)
movq %rax, %rcx
addq $0x10, %rcx
movq %r12, 0x10(%rax)
movl $0x6, 0x18(%rax)
leaq 0x50(%rsp), %rdx
movq %rcx, (%rdx)
movq %rax, 0x8(%rdx)
leaq 0x80(%rsp), %rsi
movq %rbx, %rdi
callq 0x354b8
movq 0x58(%rsp), %rdi
testq %rdi, %rdi
je 0x2f66c
callq 0xa946
movq 0x88(%rsp), %rdi
testq %rdi, %rdi
je 0x2f67e
callq 0xa946
movq 0x8(%rsp), %rdi
testq %rdi, %rdi
je 0x2f68d
callq 0xa946
movq 0x28(%rsp), %rdi
testq %rdi, %rdi
je 0x2f69c
callq 0xa946
movq 0xa0(%rsp), %rdi
testq %rdi, %rdi
je 0x2f6ae
callq 0xa946
movq 0x68(%rsp), %rdi
testq %rdi, %rdi
je 0x2f6bd
callq 0xa946
movq 0x38(%rsp), %rdi
testq %rdi, %rdi
je 0x2f6cc
callq 0xa946
movq 0xb0(%rsp), %rdi
testq %rdi, %rdi
je 0x2f6de
callq 0xa946
movq 0x78(%rsp), %rdi
testq %rdi, %rdi
je 0x2f6ed
callq 0xa946
addq $0xb8, %rsp
popq %rbx
popq %r12
popq %r14
popq %r15
retq
movq %rax, %rbx
movq 0x58(%rsp), %rdi
testq %rdi, %rdi
je 0x2f713
callq 0xa946
jmp 0x2f713
movq %rax, %rbx
movq 0x88(%rsp), %rdi
testq %rdi, %rdi
je 0x2f725
callq 0xa946
movq 0x8(%rsp), %rdi
testq %rdi, %rdi
je 0x2f739
callq 0xa946
jmp 0x2f739
movq %rax, %rbx
movq 0x28(%rsp), %rdi
testq %rdi, %rdi
je 0x2f74d
callq 0xa946
jmp 0x2f74d
movq %rax, %rbx
movq 0xa0(%rsp), %rdi
testq %rdi, %rdi
je 0x2f764
callq 0xa946
jmp 0x2f764
movq %rax, %rbx
movq 0x68(%rsp), %rdi
testq %rdi, %rdi
je 0x2f778
callq 0xa946
jmp 0x2f778
movq %rax, %rbx
movq 0x38(%rsp), %rdi
testq %rdi, %rdi
je 0x2f78c
callq 0xa946
jmp 0x2f78c
movq %rax, %rbx
movq 0xb0(%rsp), %rdi
testq %rdi, %rdi
je 0x2f7a3
callq 0xa946
jmp 0x2f7a3
movq %rax, %rbx
movq 0x78(%rsp), %rdi
testq %rdi, %rdi
je 0x2f7f0
callq 0xa946
jmp 0x2f7f0
jmp 0x2f7ed
movq %rax, %rbx
movq 0x30(%rsp), %rdi
cmpq %r15, %rdi
je 0x2f7d5
movq 0x40(%rsp), %rsi
incq %rsi
callq 0x92e0
jmp 0x2f7d5
movq %rax, %rbx
movq (%rsp), %rdi
cmpq %r14, %rdi
je 0x2f7f0
movq 0x10(%rsp), %rsi
incq %rsi
callq 0x92e0
jmp 0x2f7f0
movq %rax, %rbx
movq %rbx, %rdi
callq 0x94e0