// File: /workspace/github_cpp_makefile_star2_O1/aalto-speech[P]ftk/test/emtest.cc
// Function: ForwardBackwardTest5::test_method()
BOOST_AUTO_TEST_CASE(ForwardBackwardTest5)
{
    map<string, flt_type> vocab;
    vocab["a"] = -1.0;
    vocab["b"] = -1.0;
    vocab["ab"] = -2.0;
    string sentence("ab");
    map<string, flt_type> stats;
    flt_type lp = forward_backward(vocab, sentence, stats);
    BOOST_CHECK_EQUAL(3, (int)stats.size());
    BOOST_CHECK_CLOSE( (flt_type)0.50, stats["ab"], DBL_ACCURACY );
    BOOST_CHECK_CLOSE( (flt_type)0.50, stats["b"], DBL_ACCURACY );
    BOOST_CHECK_CLOSE( (flt_type)0.50, stats["a"], DBL_ACCURACY );
    // -2.0 + math.log(1+math.exp(-2.0-(-2.0)))
    BOOST_CHECK_CLOSE( (flt_type)-1.3068528194400546, lp, DBL_ACCURACY );
}

// Assembly:
pushq %rbp
movq %rsp, %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
subq $0x228, %rsp            # imm = 0x228
leaq -0x1a0(%rbp), %rax
movl $0x0, (%rax)
xorl %ecx, %ecx
movq %rcx, 0x8(%rax)
movq %rax, 0x10(%rax)
movq %rax, 0x18(%rax)
movq %rcx, 0x20(%rax)
leaq -0x130(%rbp), %r14
movq %r14, -0x10(%r14)
leaq 0x3aecf(%rip), %rsi     # 0x71fbe
leaq 0x3aec9(%rip), %rdx     # 0x71fbf
leaq -0x140(%rbp), %rdi
callq 0x95e2
leaq -0x1a8(%rbp), %rdi
leaq -0x140(%rbp), %rsi
callq 0x1de9e
movabsq $-0x4010000000000000, %rbx # imm = 0xBFF0000000000000
movq %rbx, (%rax)
movq -0x140(%rbp), %rdi
cmpq %r14, %rdi
je 0x37133
callq 0x5380
leaq -0x140(%rbp), %rdi
movq %r14, (%rdi)
leaq 0x3ab57(%rip), %rsi     # 0x71c9b
leaq 0x3ab51(%rip), %rdx     # 0x71c9c
callq 0x95e2
leaq -0x1a8(%rbp), %rdi
leaq -0x140(%rbp), %rsi
callq 0x1de9e
movq %rbx, (%rax)
movq -0x140(%rbp), %rdi
cmpq %r14, %rdi
je 0x37177
callq 0x5380
leaq -0x140(%rbp), %rdi
movq %r14, (%rdi)
leaq 0x3ab12(%rip), %rsi     # 0x71c9a
leaq 0x3ab0d(%rip), %rdx     # 0x71c9c
callq 0x95e2
leaq -0x1a8(%rbp), %rdi
leaq -0x140(%rbp), %rsi
callq 0x1de9e
movabsq $-0x4000000000000000, %rcx # imm = 0xC000000000000000
movq %rcx, (%rax)
movq -0x140(%rbp), %rdi
cmpq %r14, %rdi
je 0x371c5
callq 0x5380
leaq -0x168(%rbp), %rax
movq %rax, -0x10(%rax)
leaq 0x3aac3(%rip), %rsi     # 0x71c9a
leaq 0x3aabe(%rip), %rdx     # 0x71c9c
leaq -0x178(%rbp), %rdi
callq 0x95e2
leaq -0x138(%rbp), %rax
movl $0x0, (%rax)
xorl %ecx, %ecx
movq %rcx, 0x8(%rax)
movq %rax, 0x10(%rax)
movq %rax, 0x18(%rax)
movq %rcx, 0x20(%rax)
leaq -0x1a8(%rbp), %rdi
leaq -0x178(%rbp), %rsi
leaq -0x140(%rbp), %rdx
xorl %ecx, %ecx
callq 0x1a594
movsd %xmm0, -0x148(%rbp)
movq 0x5431c(%rip), %rdi     # 0x8b550
leaq 0x3a9d7(%rip), %rax     # 0x71c12
leaq -0x248(%rbp), %rsi
movq %rax, (%rsi)
leaq 0x3a9d4(%rip), %rax     # 0x71c20
movq %rax, 0x8(%rsi)
leaq 0x3a808(%rip), %rax     # 0x71a5f
leaq -0x238(%rbp), %rcx
movq %rax, (%rcx)
movq %rax, 0x8(%rcx)
movl $0x101, %edx            # imm = 0x101
callq 0x5760
xorl %eax, %eax
leaq -0xb0(%rbp), %rsi
movb %al, 0x8(%rsi)
leaq 0x537de(%rip), %rcx     # 0x8aa60
movq %rcx, (%rsi)
movq 0x53d24(%rip), %rbx     # 0x8afb0
movq %rbx, 0x10(%rsi)
leaq 0x3a130(%rip), %r10     # 0x713c7
leaq -0x48(%rbp), %r9
movl -0x118(%rbp), %ecx
leaq -0x40(%rbp), %r8
movl %ecx, (%r8)
cmpl $0x3, %ecx
leaq -0x110(%rbp), %rcx
movq %r9, (%rcx)
leaq -0xf0(%rbp), %r12
movb %al, 0x8(%r12)
leaq 0x53910(%rip), %rdx     # 0x8abd8
movq %rdx, (%r12)
movq %rbx, 0x10(%r12)
movq %rcx, 0x18(%r12)
leaq -0xd0(%rbp), %r13
movb %al, 0x8(%r13)
leaq -0x90(%rbp), %rdi
sete (%rdi)
movq %r10, 0x18(%rsi)
movl $0x3, (%r9)
xorps %xmm0, %xmm0
movups %xmm0, 0x8(%rdi)
movq %rdx, (%r13)
leaq -0x158(%rbp), %rax
movq %r8, (%rax)
movq %rbx, 0x10(%r13)
movq %rax, 0x18(%r13)
leaq -0x70(%rbp), %rdx
leaq 0x3a8f4(%rip), %r14     # 0x71c12
movq %r14, (%rdx)
leaq 0x3a8f8(%rip), %r15     # 0x71c20
movq %r15, 0x8(%rdx)
subq $0x8, %rsp
leaq 0x3a9e1(%rip), %r10     # 0x71d18
leaq 0x3acdb(%rip), %r11     # 0x72019
movl $0x101, %ecx            # imm = 0x101
movl $0x1, %r8d
movl $0x2, %r9d
xorl %eax, %eax
pushq %r13
pushq %r10
pushq %r12
pushq %r11
pushq $0x2
callq 0x5740
addq $0x30, %rsp
leaq -0x80(%rbp), %rdi
callq 0x2e966
movq 0x541dc(%rip), %rdi     # 0x8b550
leaq -0x228(%rbp), %rsi
movq %r14, (%rsi)
movq %r15, 0x8(%rsi)
leaq -0x218(%rbp), %rcx
leaq 0x3a6cf(%rip), %rax     # 0x71a5f
movq %rax, (%rcx)
movq %rax, 0x8(%rcx)
movl $0x102, %edx            # imm = 0x102
callq 0x5760
movb $0x0, -0x88(%rbp)
leaq 0x536b1(%rip), %rax     # 0x8aa60
movq %rax, -0x90(%rbp)
movq %rbx, -0x80(%rbp)
leaq 0x3a006(%rip), %rax     # 0x713c7
movq %rax, -0x78(%rbp)
movabsq $0x3fe0000000000000, %rax # imm = 0x3FE0000000000000
movq %rax, -0x38(%rbp)
leaq -0x60(%rbp), %rax
movq %rax, -0x10(%rax)
leaq 0x3a8b8(%rip), %rsi     # 0x71c9a
leaq 0x3a8b3(%rip), %rdx     # 0x71c9c
leaq -0x70(%rbp), %rdi
callq 0x95e2
leaq -0x140(%rbp), %rdi
leaq -0x70(%rbp), %rsi
callq 0x1de9e
movq %rax, %r14
movsd 0x54003(%rip), %xmm2    # 0x8b410
movsd %xmm2, -0xf8(%rbp)
movsd -0x38(%rbp), %xmm0
movsd (%rax), %xmm1
leaq -0x110(%rbp), %rdi
leaq -0x29(%rbp), %rsi
callq 0x6b8ea
leaq -0x158(%rbp), %rdx
leaq 0x3a7d6(%rip), %rax     # 0x71c12
movq %rax, (%rdx)
leaq 0x3a7da(%rip), %rax     # 0x71c20
movq %rax, 0x8(%rdx)
leaq -0x38(%rbp), %rax
movq %rax, -0x48(%rbp)
xorl %eax, %eax
movb %al, -0xe8(%rbp)
leaq 0x53677(%rip), %r12     # 0x8aad8
movq %r12, -0xf0(%rbp)
movq %rbx, -0xe0(%rbp)
leaq -0x48(%rbp), %rcx
movq %rcx, -0xd8(%rbp)
movq %r14, -0x40(%rbp)
movb %al, -0xc8(%rbp)
movq %r12, -0xd0(%rbp)
movq %rbx, -0xc0(%rbp)
leaq -0x40(%rbp), %rcx
movq %rcx, -0xb8(%rbp)
leaq -0xf8(%rbp), %rsi
leaq -0x50(%rbp), %rcx
movq %rsi, %r15
movq %rsi, (%rcx)
movb %al, -0xa8(%rbp)
leaq 0x53815(%rip), %rax     # 0x8acd0
movq %rax, -0xb0(%rbp)
movq %rbx, -0xa0(%rbp)
movq %rcx, -0x98(%rbp)
subq $0x8, %rsp
leaq 0x3a8b4(%rip), %r14     # 0x71d8f
leaq 0x3a8a1(%rip), %r10     # 0x71d83
leaq 0x3a88b(%rip), %r13     # 0x71d74
leaq -0x110(%rbp), %rdi
leaq -0x90(%rbp), %rsi
movl $0x102, %ecx            # imm = 0x102
movl $0x1, %r8d
movl $0x8, %r9d
xorl %eax, %eax
leaq -0xb0(%rbp), %r11
pushq %r11
pushq %r14
leaq -0xd0(%rbp), %r11
pushq %r11
pushq %r10
leaq -0xf0(%rbp), %r10
pushq %r10
pushq %r13
pushq $0x3
callq 0x5740
addq $0x40, %rsp
leaq -0x100(%rbp), %rdi
callq 0x2e966
movq -0x70(%rbp), %rdi
leaq -0x60(%rbp), %rax
cmpq %rax, %rdi
je 0x37554
callq 0x5380
movq 0x53ff5(%rip), %rdi     # 0x8b550
leaq -0x208(%rbp), %rsi
leaq 0x3a6a9(%rip), %rax     # 0x71c12
movq %rax, (%rsi)
leaq 0x3a6ad(%rip), %rax     # 0x71c20
movq %rax, 0x8(%rsi)
leaq -0x1f8(%rbp), %rcx
leaq 0x3a4da(%rip), %rax     # 0x71a5f
movq %rax, (%rcx)
movq %rax, 0x8(%rcx)
movl $0x103, %edx            # imm = 0x103
callq 0x5760
movq %r15, %r13
movabsq $0x3fe0000000000000, %r15 # imm = 0x3FE0000000000000
movb $0x0, -0x88(%rbp)
leaq 0x534af(%rip), %rax     # 0x8aa60
movq %rax, -0x90(%rbp)
movq %rbx, -0x80(%rbp)
leaq 0x39e04(%rip), %rax     # 0x713c7
movq %rax, -0x78(%rbp)
movq %r15, -0x38(%rbp)
leaq -0x70(%rbp), %rdi
leaq -0x60(%rbp), %rax
movq %rax, (%rdi)
leaq 0x3a6be(%rip), %rsi     # 0x71c9b
leaq 0x3a6b8(%rip), %rdx     # 0x71c9c
callq 0x95e2
leaq -0x140(%rbp), %rdi
leaq -0x70(%rbp), %rsi
callq 0x1de9e
movq %rax, %r14
movsd 0x53e0c(%rip), %xmm2    # 0x8b410
movsd %xmm2, -0xf8(%rbp)
movsd -0x38(%rbp), %xmm0
movsd (%rax), %xmm1
leaq -0x110(%rbp), %rdi
leaq -0x29(%rbp), %rsi
callq 0x6b8ea
leaq -0x158(%rbp), %rdx
leaq 0x3a5df(%rip), %rax     # 0x71c12
movq %rax, (%rdx)
leaq 0x3a5e3(%rip), %rax     # 0x71c20
movq %rax, 0x8(%rdx)
leaq -0x38(%rbp), %rax
movq %rax, -0x48(%rbp)
xorl %eax, %eax
movb %al, -0xe8(%rbp)
movq %r12, -0xf0(%rbp)
movq %rbx, -0xe0(%rbp)
leaq -0x48(%rbp), %rcx
movq %rcx, -0xd8(%rbp)
movq %r14, -0x40(%rbp)
movb %al, -0xc8(%rbp)
movq %r12, -0xd0(%rbp)
movq %rbx, -0xc0(%rbp)
leaq -0x40(%rbp), %rcx
movq %rcx, -0xb8(%rbp)
movq %r13, -0x50(%rbp)
movb %al, -0xa8(%rbp)
leaq 0x53632(%rip), %rax     # 0x8acd0
movq %rax, -0xb0(%rbp)
movq %rbx, -0xa0(%rbp)
leaq -0x50(%rbp), %rax
movq %rax, -0x98(%rbp)
subq $0x8, %rsp
leaq 0x3a6a7(%rip), %r10     # 0x71d69
leaq -0x110(%rbp), %rdi
leaq -0x90(%rbp), %rsi
movl $0x103, %ecx            # imm = 0x103
movl $0x1, %r8d
movl $0x8, %r9d
xorl %eax, %eax
leaq -0xb0(%rbp), %r11
pushq %r11
leaq 0x3a69c(%rip), %r11     # 0x71d8f
pushq %r11
leaq -0xd0(%rbp), %r11
pushq %r11
pushq %r10
leaq -0xf0(%rbp), %r10
pushq %r10
leaq 0x3a664(%rip), %r10     # 0x71d74
pushq %r10
pushq $0x3
callq 0x5740
addq $0x40, %rsp
leaq -0x100(%rbp), %rdi
callq 0x2e966
movq -0x70(%rbp), %rdi
leaq -0x60(%rbp), %rax
cmpq %rax, %rdi
je 0x3773b
callq 0x5380
movq 0x53e0e(%rip), %rdi     # 0x8b550
leaq -0x1e8(%rbp), %rsi
leaq 0x3a4c2(%rip), %rax     # 0x71c12
movq %rax, (%rsi)
leaq 0x3a4c6(%rip), %rax     # 0x71c20
movq %rax, 0x8(%rsi)
leaq -0x1d8(%rbp), %rcx
leaq 0x3a2f3(%rip), %rax     # 0x71a5f
movq %rax, (%rcx)
movq %rax, 0x8(%rcx)
movl $0x104, %edx            # imm = 0x104
callq 0x5760
movb $0x0, -0x88(%rbp)
leaq 0x532d5(%rip), %rax     # 0x8aa60
movq %rax, -0x90(%rbp)
movq %rbx, -0x80(%rbp)
leaq 0x39c2a(%rip), %rax     # 0x713c7
movq %rax, -0x78(%rbp)
movq %r15, -0x38(%rbp)
leaq -0x70(%rbp), %rdi
leaq -0x60(%rbp), %rax
movq %rax, (%rdi)
leaq 0x3a807(%rip), %rsi     # 0x71fbe
leaq 0x3a801(%rip), %rdx     # 0x71fbf
callq 0x95e2
leaq -0x140(%rbp), %rdi
leaq -0x70(%rbp), %rsi
callq 0x1de9e
movq %rax, %r15
movsd 0x53c32(%rip), %xmm2    # 0x8b410
movsd %xmm2, -0xf8(%rbp)
movsd -0x38(%rbp), %xmm0
movsd (%rax), %xmm1
leaq -0x110(%rbp), %rdi
leaq -0x29(%rbp), %rsi
callq 0x6b8ea
leaq -0x158(%rbp), %r14
leaq 0x3a405(%rip), %rax     # 0x71c12
movq %rax, (%r14)
leaq 0x3a409(%rip), %rax     # 0x71c20
movq %rax, 0x8(%r14)
leaq -0x38(%rbp), %rax
movq %rax, -0x48(%rbp)
xorl %eax, %eax
movb %al, -0xe8(%rbp)
movq %r12, -0xf0(%rbp)
movq %rbx, -0xe0(%rbp)
leaq -0x48(%rbp), %rcx
movq %rcx, -0xd8(%rbp)
movq %r15, -0x40(%rbp)
movb %al, -0xc8(%rbp)
movq %r12, -0xd0(%rbp)
movq %rbx, -0xc0(%rbp)
leaq -0x40(%rbp), %rcx
movq %rcx, -0xb8(%rbp)
movq %r13, -0x50(%rbp)
movb %al, -0xa8(%rbp)
leaq 0x53458(%rip), %rax     # 0x8acd0
movq %rax, -0xb0(%rbp)
movq %rbx, -0xa0(%rbp)
leaq -0x50(%rbp), %rax
movq %rax, -0x98(%rbp)
subq $0x8, %rsp
leaq 0x3a4c2(%rip), %r10     # 0x71d5e
leaq -0x110(%rbp), %rdi
leaq -0x90(%rbp), %rsi
movl $0x104, %ecx            # imm = 0x104
movq %r14, %rdx
movl $0x1, %r8d
movl $0x8, %r9d
xorl %eax, %eax
leaq -0xb0(%rbp), %r11
pushq %r11
leaq 0x3a4bf(%rip), %r11     # 0x71d8f
pushq %r11
leaq -0xd0(%rbp), %r11
pushq %r11
pushq %r10
leaq -0xf0(%rbp), %r10
pushq %r10
leaq 0x3a487(%rip), %r10     # 0x71d74
pushq %r10
pushq $0x3
callq 0x5740
addq $0x40, %rsp
leaq -0x100(%rbp), %rdi
callq 0x2e966
movq -0x70(%rbp), %rdi
leaq -0x60(%rbp), %rax
cmpq %rax, %rdi
je 0x37918
callq 0x5380
movq 0x53c31(%rip), %rdi     # 0x8b550
leaq -0x1c8(%rbp), %rsi
leaq 0x3a2e5(%rip), %rax     # 0x71c12
movq %rax, (%rsi)
leaq 0x3a2e9(%rip), %rax     # 0x71c20
movq %rax, 0x8(%rsi)
leaq -0x1b8(%rbp), %rcx
leaq 0x3a116(%rip), %rax     # 0x71a5f
movq %rax, (%rcx)
movq %rax, 0x8(%rcx)
movl $0x106, %edx            # imm = 0x106
callq 0x5760
movb $0x0, -0x88(%rbp)
leaq 0x530f8(%rip), %rax     # 0x8aa60
movq %rax, -0x90(%rbp)
movq %rbx, -0x80(%rbp)
leaq 0x39a4d(%rip), %rax     # 0x713c7
movq %rax, -0x78(%rbp)
movabsq $-0x400b17217f7d1cf8, %rax # imm = 0xBFF4E8DE8082E308
movq %rax, -0x50(%rbp)
movsd 0x53a7c(%rip), %xmm2    # 0x8b410
movsd %xmm2, -0x38(%rbp)
movsd -0x148(%rbp), %xmm1
leaq -0x70(%rbp), %rdi
leaq -0xf8(%rbp), %rsi
movsd 0x3a204(%rip), %xmm0    # 0x71bb8
callq 0x6b8ea
leaq -0x110(%rbp), %rdx
leaq 0x3a24b(%rip), %rax     # 0x71c12
movq %rax, (%rdx)
leaq 0x3a24f(%rip), %rax     # 0x71c20
movq %rax, 0x8(%rdx)
leaq -0x50(%rbp), %rax
movq %rax, -0x158(%rbp)
xorl %eax, %eax
movb %al, -0xe8(%rbp)
movq %r12, -0xf0(%rbp)
movq %rbx, -0xe0(%rbp)
movq %r14, -0xd8(%rbp)
leaq -0x148(%rbp), %rcx
movq %rcx, -0x48(%rbp)
movb %al, -0xc8(%rbp)
movq %r12, -0xd0(%rbp)
movq %rbx, -0xc0(%rbp)
leaq -0x48(%rbp), %rcx
movq %rcx, -0xb8(%rbp)
leaq -0x38(%rbp), %rcx
movq %rcx, -0x40(%rbp)
movb %al, -0xa8(%rbp)
leaq 0x53294(%rip), %rax     # 0x8acd0
movq %rax, -0xb0(%rbp)
movq %rbx, -0xa0(%rbp)
leaq -0x40(%rbp), %rax
movq %rax, -0x98(%rbp)
subq $0x8, %rsp
leaq 0x3adc0(%rip), %r10     # 0x72820
leaq 0x3a35c(%rip), %r11     # 0x71dc3
leaq -0x70(%rbp), %rdi
leaq -0x90(%rbp), %rsi
movl $0x106, %ecx            # imm = 0x106
movl $0x1, %r8d
movl $0x8, %r9d
xorl %eax, %eax
leaq -0xb0(%rbp), %rbx
pushq %rbx
leaq 0x3a2fb(%rip), %rbx     # 0x71d8f
pushq %rbx
leaq -0xd0(%rbp), %rbx
pushq %rbx
pushq %r10
leaq -0xf0(%rbp), %r10
pushq %r10
pushq %r11
pushq $0x3
callq 0x5740
addq $0x40, %rsp
leaq -0x60(%rbp), %rdi
callq 0x2e966
leaq -0x140(%rbp), %rdi
callq 0x1e7f8
movq -0x178(%rbp), %rdi
leaq -0x168(%rbp), %rax
cmpq %rax, %rdi
je 0x37ae2
callq 0x5380
leaq -0x1a8(%rbp), %rdi
callq 0x1e7f8
addq $0x228, %rsp            # imm = 0x228
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
movq %rax, %rbx
leaq -0x60(%rbp), %rdi
jmp 0x37b99
jmp 0x37bde
movq %rax, %rbx
leaq -0x100(%rbp), %rdi
callq 0x2e966
jmp 0x37b27
jmp 0x37b24
movq %rax, %rbx
movq -0x70(%rbp), %rdi
leaq -0x60(%rbp), %rax
cmpq %rax, %rdi
je 0x37be1
jmp 0x37b89
jmp 0x37bde
movq %rax, %rbx
leaq -0x100(%rbp), %rdi
callq 0x2e966
jmp 0x37b55
jmp 0x37b52
movq %rax, %rbx
movq -0x70(%rbp), %rdi
leaq -0x60(%rbp), %rax
cmpq %rax, %rdi
je 0x37be1
jmp 0x37b89
jmp 0x37bde
movq %rax, %rbx
leaq -0x100(%rbp), %rdi
callq 0x2e966
jmp 0x37b7c
jmp 0x37b79
movq %rax, %rbx
movq -0x70(%rbp), %rdi
leaq -0x60(%rbp), %rax
cmpq %rax, %rdi
je 0x37be1
callq 0x5380
jmp 0x37be1
jmp 0x37bde
movq %rax, %rbx
leaq -0x80(%rbp), %rdi
callq 0x2e966
jmp 0x37be1
jmp 0x37bd9
movq %rax, %rbx
movq -0x140(%rbp), %rdi
cmpq %r14, %rdi
je 0x37c05
jmp 0x37c00
jmp 0x37bd9
movq %rax, %rbx
movq -0x140(%rbp), %rdi
cmpq %r14, %rdi
je 0x37c05
jmp 0x37c00
jmp 0x37bd9
movq %rax, %rbx
movq -0x140(%rbp), %rdi
cmpq %r14, %rdi
je 0x37c05
jmp 0x37c00
movq %rax, %rbx
jmp 0x37c05
movq %rax, %rbx
leaq -0x140(%rbp), %rdi
callq 0x1e7f8
movq -0x178(%rbp), %rdi
leaq -0x168(%rbp), %rax
cmpq %rax, %rdi
je 0x37c05
callq 0x5380
leaq -0x1a8(%rbp), %rdi
callq 0x1e7f8
movq %rbx, %rdi
callq 0x56f0