// File: /workspace/github_cpp_makefile_star2_O2/aalto-speech[P]ftk/test/emtest.cc
// Function: ForwardBackwardTest6::test_method()
BOOST_AUTO_TEST_CASE(ForwardBackwardTest6)
{
    map<string, flt_type> vocab;
    vocab["a"] = -1.0;
    vocab["b"] = -1.0;
    vocab["c"] = -1.0;
    vocab["d"] = -1.0;
    vocab["bc"] = -2.0;
    string sentence("abc");
    map<string, flt_type> stats;
    flt_type lp = forward_backward(vocab, sentence, stats);
    BOOST_CHECK_EQUAL(4, (int)stats.size());
    BOOST_CHECK_CLOSE( (flt_type)0.50, stats["bc"], DBL_ACCURACY );
    BOOST_CHECK_CLOSE( (flt_type)0.50, stats["c"], DBL_ACCURACY );
    BOOST_CHECK_CLOSE( (flt_type)0.50, stats["b"], DBL_ACCURACY );
    BOOST_CHECK_CLOSE( (flt_type)1.0, stats["a"], DBL_ACCURACY );
    // -3.0 + math.log(1+math.exp(-3.0-(-3.0)))
    BOOST_CHECK_CLOSE( (flt_type)-2.3068528194400546, lp, DBL_ACCURACY);
}

// Assembly:
pushq %rbp
movq %rsp, %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
subq $0x208, %rsp            # imm = 0x208
leaq -0x140(%rbp), %rax
andl $0x0, (%rax)
andq $0x0, 0x8(%rax)
movq %rax, 0x10(%rax)
movq %rax, 0x18(%rax)
andq $0x0, 0x20(%rax)
leaq 0x250a7(%rip), %rsi     # 0x53f2c
leaq -0x88(%rbp), %rdi
leaq -0xd0(%rbp), %rdx
callq 0x5160
leaq -0x148(%rbp), %rdi
leaq -0x88(%rbp), %rsi
callq 0x1b3d2
movabsq $-0x4010000000000000, %rbx # imm = 0xBFF0000000000000
movq %rbx, (%rax)
leaq -0x88(%rbp), %rdi
callq 0x57b8
leaq 0x24d3e(%rip), %rsi     # 0x53c09
leaq -0x88(%rbp), %rdi
leaq -0xd0(%rbp), %rdx
callq 0x5160
leaq -0x148(%rbp), %rdi
leaq -0x88(%rbp), %rsi
callq 0x1b3d2
movq %rbx, (%rax)
leaq -0x88(%rbp), %rdi
callq 0x57b8
leaq 0x24cf2(%rip), %rsi     # 0x53bf9
leaq -0x88(%rbp), %rdi
leaq -0xd0(%rbp), %rdx
callq 0x5160
leaq -0x148(%rbp), %rdi
leaq -0x88(%rbp), %rsi
callq 0x1b3d2
movq %rbx, (%rax)
leaq -0x88(%rbp), %rdi
callq 0x57b8
leaq 0x240ce(%rip), %rsi     # 0x53011
leaq -0x88(%rbp), %rdi
leaq -0xd0(%rbp), %rdx
callq 0x5160
leaq -0x148(%rbp), %rdi
leaq -0x88(%rbp), %rsi
callq 0x1b3d2
movq %rbx, (%rax)
leaq -0x88(%rbp), %rdi
callq 0x57b8
leaq 0x24c79(%rip), %rsi     # 0x53bf8
leaq -0x88(%rbp), %rdi
leaq -0xd0(%rbp), %rdx
callq 0x5160
leaq -0x148(%rbp), %rdi
leaq -0x88(%rbp), %rsi
callq 0x1b3d2
movabsq $-0x4000000000000000, %rcx # imm = 0xC000000000000000
movq %rcx, (%rax)
leaq -0x88(%rbp), %rdi
callq 0x57b8
leaq 0x24c32(%rip), %rsi     # 0x53bf7
leaq -0xd0(%rbp), %rdi
leaq -0x88(%rbp), %rdx
callq 0x5160
leaq -0x80(%rbp), %rax
andl $0x0, (%rax)
andq $0x0, 0x8(%rax)
movq %rax, 0x10(%rax)
movq %rax, 0x18(%rax)
andq $0x0, 0x20(%rax)
leaq -0x148(%rbp), %rdi
leaq -0xd0(%rbp), %rsi
leaq -0x88(%rbp), %rdx
xorl %ecx, %ecx
callq 0x184bb
movsd %xmm0, -0xd8(%rbp)
movq 0x41524(%rip), %rdi     # 0x70540
leaq 0x24b5d(%rip), %rbx     # 0x53b80
leaq -0x228(%rbp), %rsi
movq %rbx, (%rsi)
leaq 0x24b5a(%rip), %r15     # 0x53b8e
movq %r15, 0x8(%rsi)
leaq 0x249d6(%rip), %r12     # 0x53a15
leaq -0x218(%rbp), %rcx
movq %r12, (%rcx)
movq %r12, 0x8(%rcx)
movl $0x116, %edx            # imm = 0x116
callq 0x5710
leaq -0x58(%rbp), %rdi
movb $0x0, 0x8(%rdi)
leaq 0x40a7a(%rip), %rax     # 0x6fae0
movq %rax, (%rdi)
movq 0x40f40(%rip), %rax     # 0x6ffb0
movq %rax, 0x10(%rdi)
leaq 0x242dc(%rip), %rax     # 0x53357
movq %rax, 0x18(%rdi)
leaq -0x208(%rbp), %rsi
movq %rbx, (%rsi)
movq %r15, 0x8(%rsi)
leaq -0xa8(%rbp), %r9
movl $0x4, (%r9)
movl -0x60(%rbp), %eax
leaq -0x38(%rbp), %r10
movl %eax, (%r10)
subq $0x8, %rsp
leaq 0x24bd6(%rip), %rax     # 0x53c86
leaq 0x255ab(%rip), %r11     # 0x54662
pushq $0x1
popq %rcx
pushq $0x2
popq %r8
movl $0x116, %edx            # imm = 0x116
pushq %rax
pushq %r10
pushq %r11
callq 0x4ea09
addq $0x20, %rsp
movq 0x41468(%rip), %rdi     # 0x70540
leaq -0x1f8(%rbp), %rsi
movq %rbx, (%rsi)
movq %r15, 0x8(%rsi)
leaq -0x1e8(%rbp), %rcx
movq %r12, (%rcx)
movq %r12, 0x8(%rcx)
movl $0x117, %edx            # imm = 0x117
callq 0x5710
movb $0x0, -0x50(%rbp)
leaq 0x409d7(%rip), %rax     # 0x6fae0
movq %rax, -0x58(%rbp)
movq 0x40e9c(%rip), %rax     # 0x6ffb0
movq %rax, -0x48(%rbp)
leaq 0x24238(%rip), %rax     # 0x53357
movq %rax, -0x40(%rbp)
movq %rbx, -0x118(%rbp)
movq %r15, -0x110(%rbp)
movabsq $0x3fe0000000000000, %rbx # imm = 0x3FE0000000000000
movq %rbx, -0x38(%rbp)
leaq 0x24ab2(%rip), %rsi     # 0x53bf8
leaq -0xa8(%rbp), %rdi
leaq -0x29(%rbp), %rdx
callq 0x5160
leaq -0x88(%rbp), %rdi
leaq -0xa8(%rbp), %rsi
callq 0x1b3d2
movsd 0x4128f(%rip), %xmm0    # 0x70400
leaq -0xb0(%rbp), %r13
movsd %xmm0, (%r13)
subq $0x8, %rsp
leaq 0x24b74(%rip), %r11     # 0x53cfd
leaq 0x24bbf(%rip), %r10     # 0x53d4f
leaq 0x24b4b(%rip), %r14     # 0x53ce2
leaq -0x58(%rbp), %rdi
leaq -0x118(%rbp), %rsi
pushq $0x1
popq %rcx
pushq $0x8
popq %r8
leaq -0x38(%rbp), %r9
movl $0x117, %edx            # imm = 0x117
pushq %r11
pushq %r13
pushq %r10
pushq %rax
pushq %r14
callq 0x4eaf1
addq $0x30, %rsp
leaq -0xa8(%rbp), %rdi
callq 0x57b8
movq 0x41369(%rip), %rdi     # 0x70540
leaq -0x1d8(%rbp), %rsi
leaq 0x2499b(%rip), %r14     # 0x53b80
movq %r14, (%rsi)
movq %r15, 0x8(%rsi)
leaq -0x1c8(%rbp), %rcx
movq %r12, (%rcx)
movq %r12, 0x8(%rcx)
movl $0x118, %edx            # imm = 0x118
callq 0x5710
movb $0x0, -0x50(%rbp)
leaq 0x408d1(%rip), %rax     # 0x6fae0
movq %rax, -0x58(%rbp)
movq 0x40d96(%rip), %rax     # 0x6ffb0
movq %rax, -0x48(%rbp)
leaq 0x24132(%rip), %rax     # 0x53357
movq %rax, -0x40(%rbp)
movq %r14, -0x108(%rbp)
movq %r15, -0x100(%rbp)
movq %rbx, -0x38(%rbp)
leaq 0x249b7(%rip), %rsi     # 0x53bf9
leaq -0xa8(%rbp), %rdi
leaq -0x29(%rbp), %rdx
callq 0x5160
leaq -0x88(%rbp), %rdi
leaq -0xa8(%rbp), %rsi
callq 0x1b3d2
movsd 0x41193(%rip), %xmm0    # 0x70400
movsd %xmm0, -0xb0(%rbp)
subq $0x8, %rsp
leaq 0x24adb(%rip), %r10     # 0x53d5b
leaq -0x58(%rbp), %rdi
leaq -0x108(%rbp), %rsi
pushq $0x1
popq %rcx
pushq $0x8
popq %r8
leaq -0x38(%rbp), %r9
movl $0x118, %edx            # imm = 0x118
leaq 0x24a5b(%rip), %r11     # 0x53cfd
pushq %r11
pushq %r13
pushq %r10
pushq %rax
leaq 0x24a32(%rip), %rax     # 0x53ce2
pushq %rax
callq 0x4eaf1
addq $0x30, %rsp
leaq -0xa8(%rbp), %rdi
callq 0x57b8
movq 0x41273(%rip), %rdi     # 0x70540
leaq -0x1b8(%rbp), %rsi
leaq 0x248a5(%rip), %r14     # 0x53b80
movq %r14, (%rsi)
movq %r15, 0x8(%rsi)
leaq -0x1a8(%rbp), %rcx
movq %r12, (%rcx)
movq %r12, 0x8(%rcx)
movl $0x119, %edx            # imm = 0x119
callq 0x5710
movb $0x0, -0x50(%rbp)
leaq 0x407db(%rip), %rax     # 0x6fae0
movq %rax, -0x58(%rbp)
movq 0x40ca0(%rip), %rax     # 0x6ffb0
movq %rax, -0x48(%rbp)
leaq 0x2403c(%rip), %rax     # 0x53357
movq %rax, -0x40(%rbp)
movq %r14, -0xf8(%rbp)
movq %r15, -0xf0(%rbp)
movq %rbx, -0x38(%rbp)
leaq 0x248d1(%rip), %rsi     # 0x53c09
leaq -0xa8(%rbp), %rdi
leaq -0x29(%rbp), %rdx
callq 0x5160
leaq -0x88(%rbp), %rdi
leaq -0xa8(%rbp), %rsi
callq 0x1b3d2
movsd 0x4109d(%rip), %xmm0    # 0x70400
movsd %xmm0, -0xb0(%rbp)
subq $0x8, %rsp
leaq 0x24961(%rip), %r10     # 0x53cd7
leaq -0x58(%rbp), %rdi
leaq -0xf8(%rbp), %rsi
pushq $0x1
popq %rcx
pushq $0x8
popq %r8
leaq -0x38(%rbp), %r9
movl $0x119, %edx            # imm = 0x119
leaq 0x24965(%rip), %r11     # 0x53cfd
pushq %r11
pushq %r13
pushq %r10
pushq %rax
leaq 0x2493c(%rip), %rax     # 0x53ce2
pushq %rax
callq 0x4eaf1
addq $0x30, %rsp
leaq -0xa8(%rbp), %rdi
callq 0x57b8
movq 0x4117d(%rip), %rdi     # 0x70540
leaq -0x198(%rbp), %rsi
leaq 0x247af(%rip), %rbx     # 0x53b80
movq %rbx, (%rsi)
movq %r15, 0x8(%rsi)
leaq -0x188(%rbp), %rcx
movq %r12, (%rcx)
movq %r12, 0x8(%rcx)
movl $0x11a, %edx            # imm = 0x11A
callq 0x5710
movb $0x0, -0x50(%rbp)
leaq 0x406e5(%rip), %rax     # 0x6fae0
movq %rax, -0x58(%rbp)
movq 0x40baa(%rip), %rax     # 0x6ffb0
movq %rax, -0x48(%rbp)
leaq 0x23f46(%rip), %rax     # 0x53357
movq %rax, -0x40(%rbp)
movq %rbx, -0xe8(%rbp)
movq %r15, -0xe0(%rbp)
movabsq $0x3ff0000000000000, %rax # imm = 0x3FF0000000000000
movq %rax, -0x38(%rbp)
leaq 0x24af4(%rip), %rsi     # 0x53f2c
leaq -0xa8(%rbp), %rdi
leaq -0x29(%rbp), %rdx
callq 0x5160
movq %r13, %r14
leaq -0x88(%rbp), %rdi
leaq -0xa8(%rbp), %rsi
callq 0x1b3d2
movsd 0x40f9a(%rip), %xmm0    # 0x70400
movsd %xmm0, -0xb0(%rbp)
subq $0x8, %rsp
leaq 0x24853(%rip), %r10     # 0x53ccc
leaq 0x2483e(%rip), %r11     # 0x53cbe
leaq -0x58(%rbp), %rdi
leaq -0xe8(%rbp), %rsi
pushq $0x1
popq %rcx
pushq $0x8
popq %r8
leaq -0x38(%rbp), %rbx
movl $0x11a, %edx            # imm = 0x11A
movq %rbx, %r9
leaq 0x24858(%rip), %r13     # 0x53cfd
pushq %r13
pushq %r14
pushq %r10
pushq %rax
pushq %r11
callq 0x4eaf1
addq $0x30, %rsp
leaq -0xa8(%rbp), %rdi
callq 0x57b8
movq 0x41076(%rip), %rdi     # 0x70540
leaq -0x178(%rbp), %rsi
leaq 0x246a8(%rip), %r14     # 0x53b80
movq %r14, (%rsi)
movq %r15, 0x8(%rsi)
leaq -0x168(%rbp), %rcx
movq %r12, (%rcx)
movq %r12, 0x8(%rcx)
movl $0x11c, %edx            # imm = 0x11C
callq 0x5710
leaq -0x58(%rbp), %rdi
movb $0x0, 0x8(%rdi)
leaq 0x405da(%rip), %rax     # 0x6fae0
movq %rax, (%rdi)
movq 0x40aa0(%rip), %rax     # 0x6ffb0
movq %rax, 0x10(%rdi)
leaq 0x23e3c(%rip), %rax     # 0x53357
movq %rax, 0x18(%rdi)
leaq -0x158(%rbp), %rsi
movq %r14, (%rsi)
movq %r15, 0x8(%rsi)
movabsq $-0x3ffd8b90bfbe8e7c, %rax # imm = 0xC002746F40417184
leaq -0xa8(%rbp), %r9
movq %rax, (%r9)
movsd 0x40eb7(%rip), %xmm0    # 0x70400
movsd %xmm0, -0x38(%rbp)
subq $0x8, %rsp
leaq 0x25235(%rip), %rax     # 0x5478e
leaq -0xd8(%rbp), %r10
leaq 0x247ff(%rip), %r11     # 0x53d66
pushq $0x1
popq %rcx
pushq $0x8
popq %r8
movl $0x11c, %edx            # imm = 0x11C
leaq 0x24783(%rip), %r14     # 0x53cfd
pushq %r14
pushq %rbx
pushq %rax
pushq %r10
pushq %r11
callq 0x4eaf1
addq $0x30, %rsp
leaq -0x88(%rbp), %rdi
callq 0x1bba4
leaq -0xd0(%rbp), %rdi
callq 0x57b8
leaq -0x148(%rbp), %rdi
callq 0x1bba4
addq $0x208, %rsp            # imm = 0x208
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
jmp 0x2f60f
jmp 0x2f5d7
jmp 0x2f5d7
jmp 0x2f60f
jmp 0x2f5d7
jmp 0x2f5d7
jmp 0x2f60f
jmp 0x2f5d7
jmp 0x2f5d7
jmp 0x2f60f
jmp 0x2f5d7
movq %rax, %rbx
leaq -0xa8(%rbp), %rdi
callq 0x57b8
jmp 0x2f612
jmp 0x2f60f
jmp 0x2f60f
jmp 0x2f60a
jmp 0x2f5fe
jmp 0x2f60a
jmp 0x2f5fe
jmp 0x2f60a
jmp 0x2f5fe
jmp 0x2f60a
jmp 0x2f5fe
jmp 0x2f60a
movq %rax, %rbx
leaq -0x88(%rbp), %rdi
jmp 0x2f625
movq %rax, %rbx
jmp 0x2f62a
movq %rax, %rbx
leaq -0x88(%rbp), %rdi
callq 0x1bba4
leaq -0xd0(%rbp), %rdi
callq 0x57b8
leaq -0x148(%rbp), %rdi
callq 0x1bba4
movq %rbx, %rdi
callq 0x56b0