// File: /workspace/github_cpp_makefile_star2_O2/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 %r13
pushq %r12
pushq %rbx
subq $0xd0, %rsp
movq %rdi, %rbx
andl $0x0, 0x8(%rdi)
leaq 0x363e0(%rip), %rax     # 0x5b678
movq %rax, (%rdi)
leaq 0x16fa3(%rip), %rsi     # 0x3c245
leaq 0x80(%rsp), %rdi
leaq 0x10(%rsp), %rdx
callq 0xeb2e
leaq 0x16f9f(%rip), %rsi     # 0x3c25a
leaq 0x50(%rsp), %rdi
movq %rsp, %rdx
callq 0xeb2e
leaq 0x80(%rsp), %rsi
leaq 0x50(%rsp), %rdx
movq %rbx, %rdi
callq 0x2983a
leaq 0x50(%rsp), %rdi
callq 0x9130
leaq 0x80(%rsp), %rdi
callq 0x9130
leaq 0x7c(%rsp), %rsi
movl $0x1, (%rsi)
leaq 0x10(%rsp), %rdi
callq 0xbc7c
leaq 0x78(%rsp), %rsi
movl $0x2, (%rsi)
movq %rsp, %rdi
callq 0xbc7c
leaq 0x50(%rsp), %rdi
leaq 0x10(%rsp), %rsi
movq %rsp, %rdx
callq 0x2a838
leaq 0x16f42(%rip), %rsi     # 0x3c277
leaq 0x30(%rsp), %rdi
callq 0x2b094
leaq 0x74(%rsp), %rsi
movl $0x3, (%rsi)
leaq 0x20(%rsp), %rdi
callq 0xbc7c
leaq 0x40(%rsp), %rdi
leaq 0x30(%rsp), %rsi
leaq 0x20(%rsp), %rdx
callq 0x2af4d
leaq 0x16f08(%rip), %rsi     # 0x3c277
leaq 0x80(%rsp), %rdi
leaq 0x50(%rsp), %rdx
leaq 0x40(%rsp), %rcx
callq 0x2ad90
leaq 0xc8(%rsp), %r15
leaq 0x88(%rsp), %r14
movaps -0x8(%r14), %xmm0
movaps %xmm0, -0x8(%r15)
xorps %xmm0, %xmm0
movaps %xmm0, -0x8(%r14)
leaq 0x70(%rsp), %rsi
movl $0x6, (%rsi)
leaq 0xa0(%rsp), %rdi
callq 0xbc7c
leaq 0xb8(%rsp), %r13
leaq 0xa8(%rsp), %r12
movaps -0x8(%r12), %xmm0
movaps %xmm0, -0x8(%r13)
xorps %xmm0, %xmm0
movaps %xmm0, -0x8(%r12)
leaq 0xc0(%rsp), %rsi
leaq 0xb0(%rsp), %rdx
movq %rbx, %rdi
callq 0x298b4
movq %r13, %rdi
callq 0xa248
movq %r12, %rdi
callq 0xa248
movq %r15, %rdi
callq 0xa248
movq %r14, %rdi
callq 0xa248
leaq 0x48(%rsp), %rdi
callq 0xa248
leaq 0x28(%rsp), %rdi
callq 0xa248
leaq 0x38(%rsp), %rdi
callq 0xa248
leaq 0x58(%rsp), %rdi
callq 0xa248
leaq 0x8(%rsp), %rdi
callq 0xa248
leaq 0x18(%rsp), %rdi
callq 0xa248
addq $0xd0, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
retq
movq %rax, %rbx
movq %r13, %rdi
callq 0xa248
movq %r12, %rdi
callq 0xa248
jmp 0x25481
movq %rax, %rbx
movq %r15, %rdi
callq 0xa248
movq %r14, %rdi
callq 0xa248
jmp 0x25496
movq %rax, %rbx
leaq 0x48(%rsp), %rdi
callq 0xa248
jmp 0x254a5
movq %rax, %rbx
leaq 0x28(%rsp), %rdi
callq 0xa248
jmp 0x254b4
movq %rax, %rbx
leaq 0x38(%rsp), %rdi
callq 0xa248
leaq 0x58(%rsp), %rdi
callq 0xa248
leaq 0x8(%rsp), %rdi
callq 0xa248
leaq 0x18(%rsp), %rdi
callq 0xa248
jmp 0x25513
movq %rax, %rbx
jmp 0x254be
movq %rax, %rbx
jmp 0x254c8
movq %rax, %rbx
jmp 0x254d2
jmp 0x25510
movq %rax, %rbx
leaq 0x50(%rsp), %rdi
callq 0x9130
jmp 0x25501
movq %rax, %rbx
leaq 0x80(%rsp), %rdi
callq 0x9130
jmp 0x25513
movq %rax, %rbx
movq %rbx, %rdi
callq 0x94d0
nop