// File: /workspace/github_cpp_makefile_star2_O3/pfnet-research[P]pml/src/test.cpp
// Function: subst_formula_test::subst_formula_test()
PML_TEST(subst_formula_test) {
    // [true/hoge]hoge == true
    assert_eq(
            *logic::subst(
                make<logic::var_formula_t>("hoge"),
                "hoge", make<logic::top_formula_t>()),
            logic::top_formula_t{});
    // [true/neko](Prob(neko) >= 2/3) == Prob(true) >= 2/3
    assert_eq(
            *logic::subst(
                make<logic::geq_formula_t>(
                    make<logic::prob_term_t>(
                        make<logic::var_formula_t>("neko")),
                    make<logic::div_term_t>(
                        make<logic::int_term_t>(2),
                        make<logic::int_term_t>(3))),
                "neko", make<logic::top_formula_t>()),
            logic::geq_formula_t(
                make<logic::prob_term_t>(
                    make<logic::top_formula_t>()),
                make<logic::div_term_t>(
                    make<logic::int_term_t>(2),
                    make<logic::int_term_t>(3))));
}

// Assembly:
pushq %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
subq $0x148, %rsp            # imm = 0x148
movq %rdi, %rbx
movl $0x0, 0x8(%rdi)
leaq 0x2ea48(%rip), %rax     # 0x61af0
movq %rax, (%rdi)
leaq 0x18(%rsp), %rdi
movq $0x0, -0x8(%rdi)
leaq 0x17f67(%rip), %rcx     # 0x4b026
leaq 0x10(%rsp), %rsi
leaq 0x38(%rsp), %rdx
callq 0x3af30
movaps 0x10(%rsp), %xmm0
movaps %xmm0, 0x70(%rsp)
xorps %xmm0, %xmm0
movaps %xmm0, 0x10(%rsp)
leaq 0x48(%rsp), %r15
movq %r15, -0x10(%r15)
leaq 0x17f36(%rip), %rsi     # 0x4b026
leaq 0x17f33(%rip), %rdx     # 0x4b02a
leaq 0x38(%rsp), %rdi
callq 0x116f8
movl $0x18, %edi
callq 0x92d0
movabsq $0x100000001, %rbp      # imm = 0x100000001
movq %rbp, 0x8(%rax)
leaq 0x2d830(%rip), %rcx     # 0x60950
movq %rcx, (%rax)
movq %rax, %rdx
addq $0x10, %rdx
leaq 0x2d86f(%rip), %r14     # 0x609a0
movq %r14, 0x10(%rax)
leaq 0x20(%rsp), %rcx
movq %rdx, (%rcx)
movq %rax, 0x8(%rcx)
leaq 0x90(%rsp), %rdi
leaq 0x70(%rsp), %rsi
leaq 0x38(%rsp), %rdx
callq 0x127f6
movq 0x90(%rsp), %rsi
leaq 0xb0(%rsp), %rdx
movq %r14, (%rdx)
movq %rbx, %rdi
callq 0x3ab90
movq 0x98(%rsp), %rdi
testq %rdi, %rdi
je 0x33185
callq 0xa946
movq 0x28(%rsp), %rdi
testq %rdi, %rdi
je 0x33194
callq 0xa946
movq 0x38(%rsp), %rdi
cmpq %r15, %rdi
je 0x331ab
movq 0x48(%rsp), %rsi
incq %rsi
callq 0x92e0
movq 0x78(%rsp), %rdi
testq %rdi, %rdi
je 0x331ba
callq 0xa946
movq 0x18(%rsp), %rdi
testq %rdi, %rdi
je 0x331c9
callq 0xa946
leaq 0xf8(%rsp), %rdi
movq $0x0, -0x8(%rdi)
leaq 0x17e4b(%rip), %rcx     # 0x4b02b
leaq 0xf0(%rsp), %rsi
leaq 0x38(%rsp), %rdx
callq 0x3af30
leaq 0xb8(%rsp), %rdi
movq $0x0, -0x8(%rdi)
leaq 0xb0(%rsp), %rsi
leaq 0x38(%rsp), %rdx
leaq 0xf0(%rsp), %rcx
callq 0x3a9b0
movl $0x20, %edi
callq 0x92d0
movq %rbp, 0x8(%rax)
leaq 0x2d6a7(%rip), %r13     # 0x608d8
movq %r13, (%rax)
movq %rax, %rcx
addq $0x10, %rcx
leaq 0x2d6e6(%rip), %r12     # 0x60928
movq %r12, 0x10(%rax)
movl $0x2, 0x18(%rax)
movq %rax, 0xd8(%rsp)
movq %rcx, 0xd0(%rsp)
movl $0x20, %edi
callq 0x92d0
movq %rbp, 0x8(%rax)
movq %r13, (%rax)
movq %rax, %rcx
addq $0x10, %rcx
movq %r12, 0x10(%rax)
movl $0x3, 0x18(%rax)
leaq 0x138(%rsp), %r8
movq %rax, 0x8(%r8)
movq %rcx, (%r8)
leaq 0xe8(%rsp), %rdi
movq $0x0, -0x8(%rdi)
leaq 0xe0(%rsp), %rsi
leaq 0x38(%rsp), %rdx
leaq 0xd0(%rsp), %rcx
callq 0x3b13e
leaq 0x28(%rsp), %rdi
movq $0x0, -0x8(%rdi)
leaq 0x20(%rsp), %rsi
leaq 0x38(%rsp), %rdx
leaq 0xb0(%rsp), %rcx
leaq 0xe0(%rsp), %r8
callq 0x3b050
movaps 0x20(%rsp), %xmm0
movaps %xmm0, 0x10(%rsp)
xorps %xmm0, %xmm0
movaps %xmm0, 0x20(%rsp)
leaq 0xa0(%rsp), %rax
movq %rax, -0x10(%rax)
leaq 0x17d21(%rip), %rsi     # 0x4b02b
leaq 0x17d1e(%rip), %rdx     # 0x4b02f
leaq 0x90(%rsp), %rdi
callq 0x116f8
movl $0x18, %edi
callq 0x92d0
movq %rbp, 0x8(%rax)
leaq 0x2d61d(%rip), %rcx     # 0x60950
movq %rcx, (%rax)
movq %rax, %rdx
addq $0x10, %rdx
movq %r14, 0x10(%rax)
leaq 0x128(%rsp), %rcx
movq %rdx, (%rcx)
movq %rax, 0x8(%rcx)
leaq 0x70(%rsp), %rdi
leaq 0x10(%rsp), %rsi
leaq 0x90(%rsp), %rdx
callq 0x127f6
movq 0x70(%rsp), %rax
movq %rax, 0x100(%rsp)
movl $0x18, %edi
callq 0x92d0
movq %rbx, %r15
movq %rbp, 0x8(%rax)
leaq 0x2d5c4(%rip), %rcx     # 0x60950
movq %rcx, (%rax)
movq %rax, %rdx
addq $0x10, %rdx
movq %r14, 0x10(%rax)
leaq 0x118(%rsp), %rcx
movq %rax, 0x8(%rcx)
movq %rdx, (%rcx)
leaq 0x88(%rsp), %rdi
movq $0x0, -0x8(%rdi)
leaq 0x80(%rsp), %rsi
leaq 0x60(%rsp), %rdx
callq 0x3b22c
movq 0x80(%rsp), %rbx
movq 0x88(%rsp), %r14
xorps %xmm0, %xmm0
movaps %xmm0, 0x80(%rsp)
movl $0x20, %edi
callq 0x92d0
movq %rbp, 0x8(%rax)
movq %r13, (%rax)
movq %rax, %rcx
addq $0x10, %rcx
movq %r12, 0x10(%rax)
movl $0x2, 0x18(%rax)
movq %rax, 0xc8(%rsp)
movq %rcx, 0xc0(%rsp)
movl $0x20, %edi
callq 0x92d0
movq %rbp, 0x8(%rax)
movq %r13, (%rax)
movq %rax, %rcx
addq $0x10, %rcx
movq %r12, 0x10(%rax)
movl $0x3, 0x18(%rax)
leaq 0x108(%rsp), %r8
movq %rax, 0x8(%r8)
movq %rcx, (%r8)
leaq 0x68(%rsp), %rdi
movq $0x0, -0x8(%rdi)
leaq 0x60(%rsp), %rsi
leaq 0xf(%rsp), %rdx
leaq 0xc0(%rsp), %rcx
callq 0x3b13e
movq 0x60(%rsp), %rax
movq 0x68(%rsp), %r12
xorps %xmm0, %xmm0
movaps %xmm0, 0x60(%rsp)
leaq 0x2ce70(%rip), %r13     # 0x602f8
movq %r13, 0x38(%rsp)
movq %rbx, 0x40(%rsp)
movq %r14, 0x48(%rsp)
testq %r14, %r14
je 0x334b3
movq 0x2eb0d(%rip), %rcx     # 0x61fb0
cmpb $0x0, (%rcx)
je 0x334ae
incl 0x8(%r14)
jmp 0x334b3
lock
incl 0x8(%r14)
movq %rax, 0x50(%rsp)
movq %r12, 0x58(%rsp)
testq %r12, %r12
je 0x334db
movq 0x2eae7(%rip), %rax     # 0x61fb0
cmpb $0x0, (%rax)
je 0x334d5
incl 0x8(%r12)
jmp 0x334db
lock
incl 0x8(%r12)
leaq 0x2cfae(%rip), %rax     # 0x60490
leaq 0x38(%rsp), %rdx
movq %rax, (%rdx)
movq %r15, %rdi
movq 0x100(%rsp), %rsi
callq 0x3ad42
movq %r13, 0x38(%rsp)
movq 0x58(%rsp), %rdi
testq %rdi, %rdi
leaq 0xa0(%rsp), %rbx
je 0x33516
callq 0xa946
movq 0x48(%rsp), %rdi
testq %rdi, %rdi
je 0x33525
callq 0xa946
testq %r12, %r12
je 0x33532
movq %r12, %rdi
callq 0xa946
movq 0x68(%rsp), %rdi
testq %rdi, %rdi
je 0x33541
callq 0xa946
movq 0x110(%rsp), %rdi
testq %rdi, %rdi
je 0x33553
callq 0xa946
movq 0xc8(%rsp), %rdi
testq %rdi, %rdi
je 0x33565
callq 0xa946
testq %r14, %r14
je 0x33572
movq %r14, %rdi
callq 0xa946
movq 0x88(%rsp), %rdi
testq %rdi, %rdi
je 0x33584
callq 0xa946
movq 0x120(%rsp), %rdi
testq %rdi, %rdi
je 0x33596
callq 0xa946
movq 0x78(%rsp), %rdi
testq %rdi, %rdi
je 0x335a5
callq 0xa946
movq 0x130(%rsp), %rdi
testq %rdi, %rdi
je 0x335b7
callq 0xa946
movq 0x90(%rsp), %rdi
cmpq %rbx, %rdi
je 0x335d4
movq 0xa0(%rsp), %rsi
incq %rsi
callq 0x92e0
movq 0x18(%rsp), %rdi
testq %rdi, %rdi
je 0x335e3
callq 0xa946
movq 0x28(%rsp), %rdi
testq %rdi, %rdi
je 0x335f2
callq 0xa946
movq 0xe8(%rsp), %rdi
testq %rdi, %rdi
je 0x33604
callq 0xa946
movq 0x140(%rsp), %rdi
testq %rdi, %rdi
je 0x33616
callq 0xa946
movq 0xd8(%rsp), %rdi
testq %rdi, %rdi
je 0x33628
callq 0xa946
movq 0xb8(%rsp), %rdi
testq %rdi, %rdi
je 0x3363a
callq 0xa946
movq 0xf8(%rsp), %rdi
testq %rdi, %rdi
je 0x3364c
callq 0xa946
addq $0x148, %rsp            # imm = 0x148
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
movq %rax, %rbx
leaq 0x38(%rsp), %rdi
callq 0x192e4
testq %r12, %r12
je 0x33678
movq %r12, %rdi
callq 0xa946
movq 0x68(%rsp), %rdi
testq %rdi, %rdi
je 0x3368c
callq 0xa946
jmp 0x3368c
movq %rax, %rbx
movq 0x110(%rsp), %rdi
testq %rdi, %rdi
je 0x336a3
callq 0xa946
jmp 0x336a3
movq %rax, %rbx
movq 0xc8(%rsp), %rdi
testq %rdi, %rdi
je 0x336ba
callq 0xa946
jmp 0x336ba
movq %rax, %rbx
testq %r14, %r14
je 0x336c7
movq %r14, %rdi
callq 0xa946
movq 0x88(%rsp), %rdi
testq %rdi, %rdi
je 0x336de
callq 0xa946
jmp 0x336de
movq %rax, %rbx
movq 0x120(%rsp), %rdi
testq %rdi, %rdi
je 0x336f5
callq 0xa946
jmp 0x336f5
movq %rax, %rbx
movq 0x78(%rsp), %rdi
testq %rdi, %rdi
je 0x33709
callq 0xa946
jmp 0x33709
movq %rax, %rbx
movq 0x130(%rsp), %rdi
testq %rdi, %rdi
je 0x33720
callq 0xa946
jmp 0x33720
movq %rax, %rbx
movq 0x90(%rsp), %rdi
leaq 0xa0(%rsp), %rax
cmpq %rax, %rdi
je 0x3374a
movq 0xa0(%rsp), %rsi
incq %rsi
callq 0x92e0
jmp 0x3374a
movq %rax, %rbx
movq 0x18(%rsp), %rdi
testq %rdi, %rdi
je 0x33759
callq 0xa946
movq 0x28(%rsp), %rdi
testq %rdi, %rdi
je 0x33768
callq 0xa946
movq 0xe8(%rsp), %rdi
testq %rdi, %rdi
je 0x3377a
callq 0xa946
movq 0x140(%rsp), %rdi
testq %rdi, %rdi
je 0x3378c
callq 0xa946
movq 0xd8(%rsp), %rdi
testq %rdi, %rdi
je 0x3379e
callq 0xa946
movq 0xb8(%rsp), %rdi
testq %rdi, %rdi
je 0x337b0
callq 0xa946
movq 0xf8(%rsp), %rdi
jmp 0x33833
movq %rax, %rbx
jmp 0x33768
movq %rax, %rbx
jmp 0x3377a
movq %rax, %rbx
jmp 0x3378c
movq %rax, %rbx
jmp 0x3379e
movq %rax, %rbx
jmp 0x337b0
jmp 0x33845
movq %rax, %rbx
movq 0x98(%rsp), %rdi
testq %rdi, %rdi
je 0x337ef
callq 0xa946
jmp 0x337ef
movq %rax, %rbx
movq 0x28(%rsp), %rdi
testq %rdi, %rdi
je 0x33803
callq 0xa946
jmp 0x33803
movq %rax, %rbx
movq 0x38(%rsp), %rdi
cmpq %r15, %rdi
je 0x3381f
movq 0x48(%rsp), %rsi
incq %rsi
callq 0x92e0
jmp 0x3381f
movq %rax, %rbx
movq 0x78(%rsp), %rdi
testq %rdi, %rdi
je 0x3382e
callq 0xa946
movq 0x18(%rsp), %rdi
testq %rdi, %rdi
je 0x3383d
callq 0xa946
movq %rbx, %rdi
callq 0x94e0
movq %rax, %rbx
jmp 0x3383d