// File: /workspace/github_cpp_makefile_star2_O1/pfnet-research[P]pml/src/test.cpp
// Function: arith_test::arith_test()
PML_CUSTOM_TEST(arith_test, lang_feature_test) {
    using namespace ast;
    parse_test("1 +(2+3*4) - 3", "Sub(Add(1, Add(2, Mul(3, 4))), 3)");
    eval_test(
            make<sub_expr_t>(
                make<add_expr_t>(
                    make<int_expr_t>(1),
                    make<add_expr_t>(
                        make<int_expr_t>(2),
                        make<mul_expr_t>(
                            make<int_expr_t>(3),
                            make<int_expr_t>(4)))),
                make<int_expr_t>(3)),
            make<int_expr_t>(12));
    parse_test("1-(-3)", "Sub(1, -3)");
    eval_test(
            make<sub_expr_t>(
                make<int_expr_t>(1),
                make<int_expr_t>(-3)),
            make<int_expr_t>(4));
}

// Assembly:
pushq %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
subq $0xe8, %rsp
movq %rdi, %rbx
movl $0x0, 0x8(%rdi)
leaq 0x3409e(%rip), %rax     # 0x62578
movq %rax, (%rdi)
leaq 0x18(%rsp), %r14
movq %r14, -0x10(%r14)
leaq 0x1c5af(%rip), %rsi     # 0x4aa9c
leaq 0x1c5b6(%rip), %rdx     # 0x4aaaa
leaq 0x8(%rsp), %rdi
callq 0x11866
leaq 0x38(%rsp), %rbp
movq %rbp, -0x10(%rbp)
leaq 0x1c59d(%rip), %rsi     # 0x4aaab
leaq 0x1c5b7(%rip), %rdx     # 0x4aacc
leaq 0x28(%rsp), %rdi
callq 0x11866
leaq 0x8(%rsp), %rsi
leaq 0x28(%rsp), %rdx
movq %rbx, %rdi
callq 0x35a02
movq 0x28(%rsp), %rdi
cmpq %rbp, %rdi
je 0x2e548
movq 0x38(%rsp), %rsi
incq %rsi
callq 0x92e0
movq 0x8(%rsp), %rdi
cmpq %r14, %rdi
je 0x2e55f
movq 0x18(%rsp), %rsi
incq %rsi
callq 0x92e0
movq $0x0, 0x48(%rsp)
movl $0x20, %edi
callq 0x92d0
movabsq $0x100000001, %r15      # imm = 0x100000001
movq %r15, 0x8(%rax)
leaq 0x32539(%rip), %r12     # 0x60ac0
movq %r12, (%rax)
movq %rax, %rcx
addq $0x10, %rcx
leaq 0x32578(%rip), %r13     # 0x60b10
movq %r13, 0x10(%rax)
movl $0x1, 0x18(%rax)
movq %rax, 0x50(%rsp)
movq %rcx, 0x48(%rsp)
movq $0x0, 0x88(%rsp)
movl $0x20, %edi
callq 0x92d0
movq %r15, 0x8(%rax)
movq %r12, (%rax)
movq %rax, %rcx
addq $0x10, %rcx
movq %r13, 0x10(%rax)
movl $0x2, 0x18(%rax)
movq %rax, 0x90(%rsp)
movq %rcx, 0x88(%rsp)
movq $0x0, 0x78(%rsp)
movl $0x20, %edi
callq 0x92d0
movq %r15, 0x8(%rax)
movq %r12, (%rax)
movq %rax, %rcx
addq $0x10, %rcx
movq %r13, 0x10(%rax)
movl $0x3, 0x18(%rax)
movq %rax, 0x80(%rsp)
movq %rcx, 0x78(%rsp)
movq $0x0, 0xc8(%rsp)
movl $0x20, %edi
callq 0x92d0
movq %r15, 0x8(%rax)
movq %r12, (%rax)
movq %rax, %rcx
addq $0x10, %rcx
movq %r13, 0x10(%rax)
movl $0x4, 0x18(%rax)
leaq 0xc8(%rsp), %r8
movq %rax, 0x8(%r8)
movq %rcx, (%r8)
leaq 0xa0(%rsp), %rdi
movq $0x0, -0x8(%rdi)
leaq 0x98(%rsp), %rsi
leaq 0x68(%rsp), %rdx
leaq 0x78(%rsp), %rcx
callq 0x3694a
leaq 0x60(%rsp), %rdi
movq $0x0, -0x8(%rdi)
leaq 0x58(%rsp), %rsi
leaq 0x68(%rsp), %rdx
leaq 0x88(%rsp), %rcx
leaq 0x98(%rsp), %r8
callq 0x36844
leaq 0x30(%rsp), %rdi
movq $0x0, -0x8(%rdi)
leaq 0x28(%rsp), %rsi
leaq 0x68(%rsp), %rdx
leaq 0x48(%rsp), %rcx
leaq 0x58(%rsp), %r8
callq 0x3673e
movq $0x0, 0x68(%rsp)
movl $0x20, %edi
callq 0x92d0
movq %r15, 0x8(%rax)
movq %r12, (%rax)
movq %rax, %rcx
addq $0x10, %rcx
movq %r13, 0x10(%rax)
movl $0x3, 0x18(%rax)
leaq 0x68(%rsp), %r8
movq %rax, 0x8(%r8)
movq %rcx, (%r8)
leaq 0x10(%rsp), %rdi
movq $0x0, -0x8(%rdi)
leaq 0x8(%rsp), %rsi
leaq 0xb8(%rsp), %rdx
leaq 0x28(%rsp), %rcx
callq 0x36638
movups 0x8(%rsp), %xmm0
movups %xmm0, 0xd8(%rsp)
xorps %xmm0, %xmm0
movups %xmm0, 0x8(%rsp)
movl $0x20, %edi
callq 0x92d0
movq %r15, 0x8(%rax)
movq %r12, (%rax)
movq %rax, %rcx
addq $0x10, %rcx
movq %r13, 0x10(%rax)
movl $0xc, 0x18(%rax)
leaq 0xb8(%rsp), %rdx
movq %rcx, (%rdx)
movq %rax, 0x8(%rdx)
leaq 0xd8(%rsp), %rsi
movq %rbx, %rdi
callq 0x35a7c
movq 0xc0(%rsp), %rdi
testq %rdi, %rdi
je 0x2e7a1
callq 0xaa12
movq 0xe0(%rsp), %rdi
testq %rdi, %rdi
je 0x2e7b3
callq 0xaa12
movq 0x10(%rsp), %rdi
testq %rdi, %rdi
je 0x2e7c2
callq 0xaa12
movq 0x70(%rsp), %rdi
testq %rdi, %rdi
je 0x2e7d1
callq 0xaa12
movq 0x30(%rsp), %rdi
testq %rdi, %rdi
je 0x2e7e0
callq 0xaa12
movq 0x60(%rsp), %rdi
testq %rdi, %rdi
je 0x2e7ef
callq 0xaa12
movq 0xa0(%rsp), %rdi
testq %rdi, %rdi
je 0x2e801
callq 0xaa12
movq 0xd0(%rsp), %rdi
testq %rdi, %rdi
je 0x2e813
callq 0xaa12
movq 0x80(%rsp), %rdi
testq %rdi, %rdi
je 0x2e825
callq 0xaa12
movq 0x90(%rsp), %rdi
testq %rdi, %rdi
je 0x2e837
callq 0xaa12
movq 0x50(%rsp), %rdi
testq %rdi, %rdi
je 0x2e846
callq 0xaa12
leaq 0x8(%rsp), %rdi
movq %r14, (%rdi)
leaq 0x1c278(%rip), %rsi     # 0x4aacd
leaq 0x1c277(%rip), %rdx     # 0x4aad3
callq 0x11866
leaq 0x28(%rsp), %rdi
movq %rbp, (%rdi)
leaq 0x1c264(%rip), %rsi     # 0x4aad4
leaq 0x1c267(%rip), %rdx     # 0x4aade
callq 0x11866
leaq 0x8(%rsp), %rsi
leaq 0x28(%rsp), %rdx
movq %rbx, %rdi
callq 0x35a02
movq 0x28(%rsp), %rdi
cmpq %rbp, %rdi
je 0x2e8a5
movq 0x38(%rsp), %rsi
incq %rsi
callq 0x92e0
movq 0x8(%rsp), %rdi
cmpq %r14, %rdi
je 0x2e8bc
movq 0x18(%rsp), %rsi
incq %rsi
callq 0x92e0
movq $0x0, 0x28(%rsp)
movl $0x20, %edi
callq 0x92d0
movq %r15, 0x8(%rax)
movq %r12, (%rax)
movq %rax, %rcx
addq $0x10, %rcx
movq %r13, 0x10(%rax)
movl $0x1, 0x18(%rax)
movq %rax, 0x30(%rsp)
movq %rcx, 0x28(%rsp)
movq $0x0, 0x48(%rsp)
movl $0x20, %edi
callq 0x92d0
movq %r15, 0x8(%rax)
movq %r12, (%rax)
movq %rax, %rcx
addq $0x10, %rcx
movq %r13, 0x10(%rax)
movl $0xfffffffd, 0x18(%rax) # imm = 0xFFFFFFFD
leaq 0x48(%rsp), %r8
movq %rax, 0x8(%r8)
movq %rcx, (%r8)
leaq 0x10(%rsp), %rdi
movq $0x0, -0x8(%rdi)
leaq 0x8(%rsp), %rsi
leaq 0x58(%rsp), %rdx
leaq 0x28(%rsp), %rcx
callq 0x36a50
movups 0x8(%rsp), %xmm0
movups %xmm0, 0xa8(%rsp)
xorps %xmm0, %xmm0
movups %xmm0, 0x8(%rsp)
movl $0x20, %edi
callq 0x92d0
movq %r15, 0x8(%rax)
movq %r12, (%rax)
movq %rax, %rcx
addq $0x10, %rcx
movq %r13, 0x10(%rax)
movl $0x4, 0x18(%rax)
leaq 0x58(%rsp), %rdx
movq %rcx, (%rdx)
movq %rax, 0x8(%rdx)
leaq 0xa8(%rsp), %rsi
movq %rbx, %rdi
callq 0x35a7c
movq 0x60(%rsp), %rdi
testq %rdi, %rdi
je 0x2e9ae
callq 0xaa12
movq 0xb0(%rsp), %rdi
testq %rdi, %rdi
je 0x2e9c0
callq 0xaa12
movq 0x10(%rsp), %rdi
testq %rdi, %rdi
je 0x2e9cf
callq 0xaa12
movq 0x50(%rsp), %rdi
testq %rdi, %rdi
je 0x2e9de
callq 0xaa12
movq 0x30(%rsp), %rdi
testq %rdi, %rdi
je 0x2e9ed
callq 0xaa12
addq $0xe8, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
movq %rax, %rbx
movq 0x60(%rsp), %rdi
testq %rdi, %rdi
je 0x2ea16
callq 0xaa12
jmp 0x2ea16
movq %rax, %rbx
movq 0xb0(%rsp), %rdi
testq %rdi, %rdi
je 0x2ea28
callq 0xaa12
movq 0x10(%rsp), %rdi
testq %rdi, %rdi
je 0x2ea3c
callq 0xaa12
jmp 0x2ea3c
movq %rax, %rbx
movq 0x50(%rsp), %rdi
testq %rdi, %rdi
je 0x2ea50
callq 0xaa12
jmp 0x2ea50
movq %rax, %rbx
movq 0x30(%rsp), %rdi
jmp 0x2eb46
jmp 0x2eb91
jmp 0x2eb59
jmp 0x2eb75
jmp 0x2eb91
movq %rax, %rbx
movq 0xc0(%rsp), %rdi
testq %rdi, %rdi
je 0x2ea88
callq 0xaa12
jmp 0x2ea88
movq %rax, %rbx
movq 0xe0(%rsp), %rdi
testq %rdi, %rdi
je 0x2ea9a
callq 0xaa12
movq 0x10(%rsp), %rdi
testq %rdi, %rdi
je 0x2eaae
callq 0xaa12
jmp 0x2eaae
movq %rax, %rbx
movq 0x70(%rsp), %rdi
testq %rdi, %rdi
je 0x2eac2
callq 0xaa12
jmp 0x2eac2
movq %rax, %rbx
movq 0x30(%rsp), %rdi
testq %rdi, %rdi
je 0x2ead6
callq 0xaa12
jmp 0x2ead6
movq %rax, %rbx
movq 0x60(%rsp), %rdi
testq %rdi, %rdi
je 0x2eaea
callq 0xaa12
jmp 0x2eaea
movq %rax, %rbx
movq 0xa0(%rsp), %rdi
testq %rdi, %rdi
je 0x2eb01
callq 0xaa12
jmp 0x2eb01
movq %rax, %rbx
movq 0xd0(%rsp), %rdi
testq %rdi, %rdi
je 0x2eb18
callq 0xaa12
jmp 0x2eb18
movq %rax, %rbx
movq 0x80(%rsp), %rdi
testq %rdi, %rdi
je 0x2eb2f
callq 0xaa12
jmp 0x2eb2f
movq %rax, %rbx
movq 0x90(%rsp), %rdi
testq %rdi, %rdi
je 0x2eb41
callq 0xaa12
movq 0x50(%rsp), %rdi
testq %rdi, %rdi
je 0x2eb94
callq 0xaa12
jmp 0x2eb94
movq %rax, %rbx
jmp 0x2eb41
jmp 0x2eb91
movq %rax, %rbx
movq 0x28(%rsp), %rdi
cmpq %rbp, %rdi
je 0x2eb78
movq 0x38(%rsp), %rsi
incq %rsi
callq 0x92e0
jmp 0x2eb78
movq %rax, %rbx
movq 0x8(%rsp), %rdi
cmpq %r14, %rdi
je 0x2eb94
movq 0x18(%rsp), %rsi
incq %rsi
callq 0x92e0
jmp 0x2eb94
movq %rax, %rbx
movq %rbx, %rdi
callq 0x94e0