// File: /workspace/github_cpp_makefile_star2_O2/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 $0x188, %rsp            # imm = 0x188
movq %rdi, %r15
andl $0x0, 0x8(%rdi)
leaq 0x33ce3(%rip), %rax     # 0x5bae0
movq %rax, (%rdi)
leaq 0x1488b(%rip), %rsi     # 0x3c692
leaq 0x30(%rsp), %rdi
callq 0x2eb90
leaq 0x48(%rsp), %r14
leaq 0x38(%rsp), %rbx
movaps -0x8(%rbx), %xmm0
movaps %xmm0, -0x8(%r14)
xorps %xmm0, %xmm0
movaps %xmm0, -0x8(%rbx)
leaq 0x14860(%rip), %rsi     # 0x3c692
leaq 0x118(%rsp), %rdi
leaq 0x50(%rsp), %rdx
callq 0xeb2e
leaq 0x10(%rsp), %rdi
callq 0x1c1ff
leaq 0x28(%rsp), %r13
leaq 0x18(%rsp), %r12
movaps -0x8(%r12), %xmm0
movaps %xmm0, -0x8(%r13)
xorps %xmm0, %xmm0
movaps %xmm0, -0x8(%r12)
leaq 0xc8(%rsp), %rdi
leaq 0x40(%rsp), %rsi
leaq 0x118(%rsp), %rdx
leaq 0x20(%rsp), %rcx
callq 0xf6d0
movq 0xc8(%rsp), %rsi
leaq 0x32af6(%rip), %rax     # 0x5a990
leaq 0x60(%rsp), %rdx
movq %rax, (%rdx)
movq %r15, %rdi
callq 0x2e8b4
leaq 0xd0(%rsp), %rdi
callq 0xa248
movq %r13, %rdi
callq 0xa248
movq %r12, %rdi
callq 0xa248
leaq 0x118(%rsp), %rdi
callq 0x9130
movq %r14, %rdi
callq 0xa248
movq %rbx, %rdi
callq 0xa248
leaq 0x147ac(%rip), %rsi     # 0x3c697
leaq 0x60(%rsp), %rdi
callq 0x2eb90
leaq 0x10(%rsp), %rdi
leaq 0x60(%rsp), %rsi
callq 0x2e674
leaq 0x114(%rsp), %rsi
movl $0x2, (%rsi)
leaq 0xf8(%rsp), %rdi
callq 0x1b78c
leaq 0x110(%rsp), %rsi
movl $0x3, (%rsi)
leaq 0xe8(%rsp), %rdi
callq 0x1b78c
leaq 0x50(%rsp), %rdi
leaq 0xf8(%rsp), %rsi
leaq 0xe8(%rsp), %rdx
callq 0x2ee27
leaq 0x20(%rsp), %rdi
leaq 0x10(%rsp), %rsi
leaq 0x50(%rsp), %rdx
callq 0x2ecc0
leaq 0x38(%rsp), %rcx
leaq 0x28(%rsp), %rax
movaps -0x8(%rax), %xmm0
movaps %xmm0, -0x8(%rcx)
xorps %xmm0, %xmm0
movaps %xmm0, -0x8(%rax)
leaq 0x1470f(%rip), %rsi     # 0x3c697
leaq 0xc8(%rsp), %rdi
leaq 0xf(%rsp), %rdx
callq 0xeb2e
leaq 0x170(%rsp), %rdi
callq 0x1c1ff
leaq 0x88(%rsp), %rax
leaq 0x178(%rsp), %r14
movaps -0x8(%r14), %xmm0
movaps %xmm0, -0x8(%rax)
xorps %xmm0, %xmm0
movaps %xmm0, -0x8(%r14)
leaq 0x40(%rsp), %rdi
leaq 0x30(%rsp), %rsi
leaq 0xc8(%rsp), %rdx
leaq 0x80(%rsp), %rcx
callq 0xf6d0
movq 0x40(%rsp), %r13
leaq 0xb8(%rsp), %rdi
callq 0x1c1ff
leaq 0x70(%rsp), %rdi
leaq 0xb8(%rsp), %rsi
callq 0x2ef8d
leaq 0x168(%rsp), %rbp
leaq 0x78(%rsp), %rax
movaps -0x8(%rax), %xmm0
movaps %xmm0, -0x8(%rbp)
xorps %xmm0, %xmm0
movaps %xmm0, -0x8(%rax)
leaq 0x10c(%rsp), %rsi
movl $0x2, (%rsi)
leaq 0xa8(%rsp), %rdi
callq 0x1b78c
leaq 0x108(%rsp), %rsi
movl $0x3, (%rsi)
leaq 0x98(%rsp), %rdi
callq 0x1b78c
leaq 0x140(%rsp), %rdi
leaq 0xa8(%rsp), %rsi
leaq 0x98(%rsp), %rdx
callq 0x2ee27
leaq 0x158(%rsp), %r12
leaq 0x148(%rsp), %rbx
movaps -0x8(%rbx), %xmm0
movaps %xmm0, -0x8(%r12)
xorps %xmm0, %xmm0
movaps %xmm0, -0x8(%rbx)
leaq 0x118(%rsp), %rdi
leaq 0x160(%rsp), %rsi
leaq 0x150(%rsp), %rdx
callq 0x1357c
leaq 0x118(%rsp), %rdx
movq %r15, %rdi
movq %r13, %rsi
callq 0x2ea06
leaq 0x118(%rsp), %rdi
callq 0x1376c
movq %r12, %rdi
callq 0xa248
movq %rbx, %rdi
callq 0xa248
leaq 0xa0(%rsp), %rdi
callq 0xa248
leaq 0xb0(%rsp), %rdi
callq 0xa248
movq %rbp, %rdi
callq 0xa248
leaq 0x78(%rsp), %rdi
callq 0xa248
leaq 0xc0(%rsp), %rdi
callq 0xa248
leaq 0x48(%rsp), %rdi
callq 0xa248
leaq 0x88(%rsp), %rdi
callq 0xa248
movq %r14, %rdi
callq 0xa248
leaq 0xc8(%rsp), %rdi
callq 0x9130
leaq 0x38(%rsp), %rdi
callq 0xa248
leaq 0x28(%rsp), %rdi
callq 0xa248
leaq 0x58(%rsp), %rdi
callq 0xa248
leaq 0xf0(%rsp), %rdi
callq 0xa248
leaq 0x100(%rsp), %rdi
callq 0xa248
leaq 0x18(%rsp), %rdi
callq 0xa248
leaq 0x68(%rsp), %rdi
callq 0xa248
addq $0x188, %rsp            # imm = 0x188
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
movq %rax, %r15
leaq 0x118(%rsp), %rdi
callq 0x1376c
jmp 0x281c0
movq %rax, %r15
movq %r12, %rdi
callq 0xa248
movq %rbx, %rdi
callq 0xa248
jmp 0x281d5
movq %rax, %r15
leaq 0xa0(%rsp), %rdi
callq 0xa248
jmp 0x281e7
movq %rax, %r15
leaq 0xb0(%rsp), %rdi
callq 0xa248
jmp 0x281f9
movq %rax, %r15
movq %rbp, %rdi
callq 0xa248
leaq 0x78(%rsp), %rdi
callq 0xa248
leaq 0xc0(%rsp), %rdi
callq 0xa248
leaq 0x48(%rsp), %rdi
callq 0xa248
leaq 0x88(%rsp), %rdi
callq 0xa248
movq %r14, %rdi
callq 0xa248
leaq 0xc8(%rsp), %rdi
callq 0x9130
leaq 0x38(%rsp), %rdi
callq 0xa248
leaq 0x28(%rsp), %rdi
callq 0xa248
leaq 0x58(%rsp), %rdi
callq 0xa248
leaq 0xf0(%rsp), %rdi
callq 0xa248
leaq 0x100(%rsp), %rdi
callq 0xa248
leaq 0x18(%rsp), %rdi
callq 0xa248
leaq 0x68(%rsp), %rdi
jmp 0x28314
movq %rax, %r15
jmp 0x2820b
movq %rax, %r15
jmp 0x28218
movq %rax, %r15
jmp 0x28222
movq %rax, %r15
jmp 0x28237
movq %rax, %r15
jmp 0x28244
movq %rax, %r15
jmp 0x28258
movq %rax, %r15
jmp 0x28262
movq %rax, %r15
jmp 0x2826f
movq %rax, %r15
jmp 0x2827c
movq %rax, %r15
jmp 0x28286
jmp 0x28321
movq %rax, %r15
leaq 0xd0(%rsp), %rdi
callq 0xa248
jmp 0x282e2
movq %rax, %r15
movq %r13, %rdi
callq 0xa248
movq %r12, %rdi
callq 0xa248
jmp 0x282f7
movq %rax, %r15
leaq 0x118(%rsp), %rdi
callq 0x9130
jmp 0x28309
movq %rax, %r15
movq %r14, %rdi
callq 0xa248
movq %rbx, %rdi
callq 0xa248
movq %r15, %rdi
callq 0x94d0
movq %rax, %r15
jmp 0x28319