// File: /workspace/github_cpp_makefile_star2_O2/aalto-speech[P]ftk/test/emtest.cc
// Function: ForwardBackwardTest4::test_method()
BOOST_AUTO_TEST_CASE(ForwardBackwardTest4)
{
    map<string, flt_type> vocab;
    vocab["a"] = -1.0;
    vocab["b"] = -1.0;
    string sentence("ab");
    map<string, flt_type> stats;
    flt_type lp = forward_backward(vocab, sentence, stats);
    BOOST_CHECK_EQUAL(2, (int)stats.size());
    BOOST_CHECK_EQUAL((flt_type)1.0, stats["b"]);
    BOOST_CHECK_EQUAL((flt_type)1.0, stats["a"]);
    BOOST_CHECK_EQUAL(-2.0, lp);
}

// Assembly:
pushq %rbp
movq %rsp, %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
subq $0x198, %rsp            # imm = 0x198
leaq -0x118(%rbp), %rax
andl $0x0, (%rax)
andq $0x0, 0x8(%rax)
movq %rax, 0x10(%rax)
movq %rax, 0x18(%rax)
andq $0x0, 0x20(%rax)
leaq 0x2621d(%rip), %rsi     # 0x53f2c
leaq -0x88(%rbp), %rdi
leaq -0xf0(%rbp), %rdx
callq 0x5160
leaq -0x120(%rbp), %rdi
leaq -0x88(%rbp), %rsi
callq 0x1b3d2
movabsq $-0x4010000000000000, %rbx # imm = 0xBFF0000000000000
movq %rbx, (%rax)
leaq -0x88(%rbp), %rdi
callq 0x57b8
leaq 0x25eb4(%rip), %rsi     # 0x53c09
leaq -0x88(%rbp), %rdi
leaq -0xf0(%rbp), %rdx
callq 0x5160
leaq -0x120(%rbp), %rdi
leaq -0x88(%rbp), %rsi
callq 0x1b3d2
movq %rbx, (%rax)
leaq -0x88(%rbp), %rdi
callq 0x57b8
leaq 0x25e77(%rip), %rsi     # 0x53c08
leaq -0xf0(%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 -0x120(%rbp), %rdi
leaq -0xf0(%rbp), %rsi
leaq -0x88(%rbp), %rdx
xorl %ecx, %ecx
callq 0x184bb
movsd %xmm0, -0xb0(%rbp)
movq 0x42758(%rip), %rdi     # 0x70540
leaq 0x25d91(%rip), %rbx     # 0x53b80
leaq -0x1c0(%rbp), %rsi
movq %rbx, (%rsi)
leaq 0x25d8e(%rip), %r14     # 0x53b8e
movq %r14, 0x8(%rsi)
leaq 0x25c0a(%rip), %r15     # 0x53a15
leaq -0x1b0(%rbp), %rcx
movq %r15, (%rcx)
movq %r15, 0x8(%rcx)
movl $0xf0, %edx
callq 0x5710
leaq -0x58(%rbp), %rdi
movb $0x0, 0x8(%rdi)
leaq 0x41cae(%rip), %rax     # 0x6fae0
movq %rax, (%rdi)
movq 0x42174(%rip), %rax     # 0x6ffb0
movq %rax, 0x10(%rdi)
leaq 0x25510(%rip), %rax     # 0x53357
movq %rax, 0x18(%rdi)
leaq -0x1a0(%rbp), %rsi
movq %rbx, (%rsi)
movq %r14, 0x8(%rsi)
leaq -0xa8(%rbp), %r9
movl $0x2, (%r9)
movl -0x60(%rbp), %eax
leaq -0x38(%rbp), %r10
movl %eax, (%r10)
subq $0x8, %rsp
leaq 0x25e0a(%rip), %rax     # 0x53c86
leaq 0x2682b(%rip), %r11     # 0x546ae
pushq $0x1
popq %rcx
pushq $0x2
popq %r8
movl $0xf0, %edx
pushq %rax
pushq %r10
pushq %r11
callq 0x4ea09
addq $0x20, %rsp
movq 0x4269c(%rip), %rdi     # 0x70540
leaq -0x190(%rbp), %rsi
movq %rbx, (%rsi)
movq %r14, 0x8(%rsi)
leaq -0x180(%rbp), %rcx
movq %r15, (%rcx)
movq %r15, 0x8(%rcx)
movl $0xf1, %edx
callq 0x5710
movb $0x0, -0x50(%rbp)
leaq 0x41c0b(%rip), %rax     # 0x6fae0
movq %rax, -0x58(%rbp)
movq 0x420d0(%rip), %rax     # 0x6ffb0
movq %rax, -0x48(%rbp)
leaq 0x2546c(%rip), %rax     # 0x53357
movq %rax, -0x40(%rbp)
movq %rbx, -0xd0(%rbp)
movq %r14, -0xc8(%rbp)
movabsq $0x3ff0000000000000, %r12 # imm = 0x3FF0000000000000
movq %r12, -0x38(%rbp)
leaq 0x25cf7(%rip), %rsi     # 0x53c09
leaq -0xa8(%rbp), %rdi
leaq -0x29(%rbp), %rdx
callq 0x5160
leaq -0x88(%rbp), %rdi
leaq -0xa8(%rbp), %rsi
callq 0x1b3d2
subq $0x8, %rsp
leaq 0x25d97(%rip), %r10     # 0x53cd7
leaq 0x25d77(%rip), %r13     # 0x53cbe
leaq -0x58(%rbp), %rdi
leaq -0xd0(%rbp), %rsi
pushq $0x1
popq %rcx
pushq $0x2
popq %r8
leaq -0x38(%rbp), %r9
movl $0xf1, %edx
pushq %r10
pushq %rax
pushq %r13
callq 0x2903d
addq $0x20, %rsp
leaq -0xa8(%rbp), %rdi
callq 0x57b8
movq 0x425bd(%rip), %rdi     # 0x70540
leaq -0x170(%rbp), %rsi
movq %rbx, (%rsi)
movq %r14, 0x8(%rsi)
leaq -0x160(%rbp), %rcx
movq %r15, (%rcx)
movq %r15, 0x8(%rcx)
movl $0xf2, %edx
callq 0x5710
movb $0x0, -0x50(%rbp)
leaq 0x41b2c(%rip), %rax     # 0x6fae0
movq %rax, -0x58(%rbp)
movq 0x41ff1(%rip), %rax     # 0x6ffb0
movq %rax, -0x48(%rbp)
leaq 0x2538d(%rip), %rax     # 0x53357
movq %rax, -0x40(%rbp)
movq %rbx, -0xc0(%rbp)
movq %r14, -0xb8(%rbp)
movq %r12, -0x38(%rbp)
leaq 0x25f45(%rip), %rsi     # 0x53f2c
leaq -0xa8(%rbp), %rdi
leaq -0x29(%rbp), %rdx
callq 0x5160
leaq -0x88(%rbp), %rdi
leaq -0xa8(%rbp), %rsi
callq 0x1b3d2
subq $0x8, %rsp
leaq 0x25cb7(%rip), %r10     # 0x53ccc
leaq -0x58(%rbp), %rdi
leaq -0xc0(%rbp), %rsi
pushq $0x1
popq %rcx
pushq $0x2
popq %r8
leaq -0x38(%rbp), %r9
movl $0xf2, %edx
pushq %r10
pushq %rax
pushq %r13
callq 0x2903d
addq $0x20, %rsp
leaq -0xa8(%rbp), %rdi
callq 0x57b8
movq 0x424ef(%rip), %rdi     # 0x70540
leaq -0x150(%rbp), %rsi
movq %rbx, (%rsi)
movq %r14, 0x8(%rsi)
leaq -0x140(%rbp), %rcx
movq %r15, (%rcx)
movq %r15, 0x8(%rcx)
movl $0xf3, %edx
callq 0x5710
leaq -0x58(%rbp), %rdi
movb $0x0, 0x8(%rdi)
leaq 0x41a5a(%rip), %rax     # 0x6fae0
movq %rax, (%rdi)
movq 0x41f20(%rip), %rax     # 0x6ffb0
movq %rax, 0x10(%rdi)
leaq 0x252bc(%rip), %rax     # 0x53357
movq %rax, 0x18(%rdi)
leaq -0x130(%rbp), %rsi
movq %rbx, (%rsi)
movq %r14, 0x8(%rsi)
movabsq $-0x4000000000000000, %rax # imm = 0xC000000000000000
leaq -0xa8(%rbp), %r9
movq %rax, (%r9)
subq $0x8, %rsp
leaq 0x266c2(%rip), %rax     # 0x5478e
leaq -0xb0(%rbp), %r10
leaq 0x25787(%rip), %r11     # 0x53861
pushq $0x1
popq %rcx
pushq $0x2
popq %r8
movl $0xf3, %edx
pushq %rax
pushq %r10
pushq %r11
callq 0x2903d
addq $0x20, %rsp
leaq -0x88(%rbp), %rdi
callq 0x1bba4
leaq -0xf0(%rbp), %rdi
callq 0x57b8
leaq -0x120(%rbp), %rdi
callq 0x1bba4
addq $0x198, %rsp            # imm = 0x198
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
jmp 0x2e15c
jmp 0x2e15c
jmp 0x2e15c
jmp 0x2e15c
jmp 0x2e144
jmp 0x2e138
jmp 0x2e144
movq %rax, %rbx
leaq -0x88(%rbp), %rdi
jmp 0x2e172
movq %rax, %rbx
jmp 0x2e177
jmp 0x2e14b
movq %rax, %rbx
leaq -0xa8(%rbp), %rdi
callq 0x57b8
jmp 0x2e15f
movq %rax, %rbx
leaq -0x88(%rbp), %rdi
callq 0x1bba4
leaq -0xf0(%rbp), %rdi
callq 0x57b8
leaq -0x120(%rbp), %rdi
callq 0x1bba4
movq %rbx, %rdi
callq 0x56b0