// File: /workspace/github_cpp_makefile_star2_O3/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 -0x1a8(%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 0x3a035(%rip), %rsi     # 0x70fee
leaq 0x3a02f(%rip), %rdx     # 0x70fef
leaq -0x140(%rbp), %rdi
callq 0x95e6
leaq -0x1b0(%rbp), %rdi
leaq -0x140(%rbp), %rsi
callq 0x1ddce
movabsq $-0x4010000000000000, %rbx # imm = 0xBFF0000000000000
movq %rbx, (%rax)
movq -0x140(%rbp), %rdi
cmpq %r14, %rdi
je 0x36ffd
callq 0x5380
leaq -0x140(%rbp), %rdi
movq %r14, (%rdi)
leaq 0x39cbd(%rip), %rsi     # 0x70ccb
leaq 0x39cb7(%rip), %rdx     # 0x70ccc
callq 0x95e6
leaq -0x1b0(%rbp), %rdi
leaq -0x140(%rbp), %rsi
callq 0x1ddce
movq %rbx, (%rax)
movq -0x140(%rbp), %rdi
cmpq %r14, %rdi
je 0x37041
callq 0x5380
leaq -0x140(%rbp), %rdi
movq %r14, (%rdi)
leaq 0x39c78(%rip), %rsi     # 0x70cca
leaq 0x39c73(%rip), %rdx     # 0x70ccc
callq 0x95e6
leaq -0x1b0(%rbp), %rdi
leaq -0x140(%rbp), %rsi
callq 0x1ddce
movabsq $-0x4000000000000000, %rcx # imm = 0xC000000000000000
movq %rcx, (%rax)
movq -0x140(%rbp), %rdi
cmpq %r14, %rdi
je 0x3708f
callq 0x5380
leaq -0x170(%rbp), %rax
movq %rax, -0x10(%rax)
leaq 0x39c29(%rip), %rsi     # 0x70cca
leaq 0x39c24(%rip), %rdx     # 0x70ccc
leaq -0x180(%rbp), %rdi
callq 0x95e6
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 -0x1b0(%rbp), %rdi
leaq -0x180(%rbp), %rsi
leaq -0x140(%rbp), %rdx
xorl %ecx, %ecx
callq 0x1a432
movsd %xmm0, -0x148(%rbp)
movsd -0x148(%rbp), %xmm0
movsd %xmm0, -0x160(%rbp)
movq 0x53442(%rip), %rdi     # 0x8a550
leaq 0x39b2d(%rip), %rax     # 0x70c42
leaq -0x250(%rbp), %rsi
movq %rax, (%rsi)
leaq 0x39b2a(%rip), %rax     # 0x70c50
movq %rax, 0x8(%rsi)
leaq 0x3993e(%rip), %rax     # 0x70a6f
leaq -0x240(%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 0x52974(%rip), %rcx     # 0x89ad0
movq %rcx, (%rsi)
movq 0x52e4a(%rip), %rbx     # 0x89fb0
movq %rbx, 0x10(%rsi)
leaq 0x39256(%rip), %r10     # 0x703c7
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 0x52a7e(%rip), %rdx     # 0x89c20
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 0x39a4a(%rip), %r14     # 0x70c42
movq %r14, (%rdx)
leaq 0x39a4e(%rip), %r15     # 0x70c50
movq %r15, 0x8(%rdx)
subq $0x8, %rsp
leaq 0x39b37(%rip), %r10     # 0x70d48
leaq 0x39e31(%rip), %r11     # 0x71049
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 0x2e804
movq 0x53302(%rip), %rdi     # 0x8a550
leaq -0x230(%rbp), %rsi
movq %r14, (%rsi)
movq %r15, 0x8(%rsi)
leaq -0x220(%rbp), %rcx
leaq 0x39805(%rip), %rax     # 0x70a6f
movq %rax, (%rcx)
movq %rax, 0x8(%rcx)
movl $0x102, %edx            # imm = 0x102
callq 0x5760
movb $0x0, -0x88(%rbp)
leaq 0x52847(%rip), %rax     # 0x89ad0
movq %rax, -0x90(%rbp)
movq %rbx, -0x80(%rbp)
leaq 0x3912c(%rip), %rax     # 0x703c7
movq %rax, -0x78(%rbp)
movabsq $0x3fe0000000000000, %rax # imm = 0x3FE0000000000000
movq %rax, -0x38(%rbp)
leaq -0x60(%rbp), %rax
movq %rax, -0x10(%rax)
leaq 0x39a0e(%rip), %rsi     # 0x70cca
leaq 0x39a09(%rip), %rdx     # 0x70ccc
leaq -0x70(%rbp), %rdi
callq 0x95e6
leaq -0x140(%rbp), %rdi
leaq -0x70(%rbp), %rsi
callq 0x1ddce
movq %rax, %r14
movsd 0x53129(%rip), %xmm2    # 0x8a410
movsd %xmm2, -0xf8(%rbp)
movsd -0x38(%rbp), %xmm0
movsd (%rax), %xmm1
leaq -0x110(%rbp), %rdi
leaq -0x29(%rbp), %rsi
callq 0x6b55a
leaq -0x158(%rbp), %rdx
leaq 0x3992c(%rip), %rax     # 0x70c42
movq %rax, (%rdx)
leaq 0x39930(%rip), %rax     # 0x70c50
movq %rax, 0x8(%rdx)
leaq -0x38(%rbp), %rax
movq %rax, -0x48(%rbp)
xorl %eax, %eax
movb %al, -0xe8(%rbp)
leaq 0x527e5(%rip), %r12     # 0x89b20
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 0x5293b(%rip), %rax     # 0x89cd0
movq %rax, -0xb0(%rbp)
movq %rbx, -0xa0(%rbp)
movq %rcx, -0x98(%rbp)
subq $0x8, %rsp
leaq 0x39a0a(%rip), %r14     # 0x70dbf
leaq 0x399f7(%rip), %r10     # 0x70db3
leaq 0x399e1(%rip), %r13     # 0x70da4
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 0x2e804
movq -0x70(%rbp), %rdi
leaq -0x60(%rbp), %rax
cmpq %rax, %rdi
je 0x3742e
callq 0x5380
movq 0x5311b(%rip), %rdi     # 0x8a550
leaq -0x210(%rbp), %rsi
leaq 0x397ff(%rip), %rax     # 0x70c42
movq %rax, (%rsi)
leaq 0x39803(%rip), %rax     # 0x70c50
movq %rax, 0x8(%rsi)
leaq -0x200(%rbp), %rcx
leaq 0x39610(%rip), %rax     # 0x70a6f
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 0x52645(%rip), %rax     # 0x89ad0
movq %rax, -0x90(%rbp)
movq %rbx, -0x80(%rbp)
leaq 0x38f2a(%rip), %rax     # 0x703c7
movq %rax, -0x78(%rbp)
movq %r15, -0x38(%rbp)
leaq -0x70(%rbp), %rdi
leaq -0x60(%rbp), %rax
movq %rax, (%rdi)
leaq 0x39814(%rip), %rsi     # 0x70ccb
leaq 0x3980e(%rip), %rdx     # 0x70ccc
callq 0x95e6
leaq -0x140(%rbp), %rdi
leaq -0x70(%rbp), %rsi
callq 0x1ddce
movq %rax, %r14
movsd 0x52f32(%rip), %xmm2    # 0x8a410
movsd %xmm2, -0xf8(%rbp)
movsd -0x38(%rbp), %xmm0
movsd (%rax), %xmm1
leaq -0x110(%rbp), %rdi
leaq -0x29(%rbp), %rsi
callq 0x6b55a
leaq -0x158(%rbp), %rdx
leaq 0x39735(%rip), %rax     # 0x70c42
movq %rax, (%rdx)
leaq 0x39739(%rip), %rax     # 0x70c50
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 0x52758(%rip), %rax     # 0x89cd0
movq %rax, -0xb0(%rbp)
movq %rbx, -0xa0(%rbp)
leaq -0x50(%rbp), %rax
movq %rax, -0x98(%rbp)
subq $0x8, %rsp
leaq 0x397fd(%rip), %r10     # 0x70d99
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 0x397f2(%rip), %r11     # 0x70dbf
pushq %r11
leaq -0xd0(%rbp), %r11
pushq %r11
pushq %r10
leaq -0xf0(%rbp), %r10
pushq %r10
leaq 0x397ba(%rip), %r10     # 0x70da4
pushq %r10
pushq $0x3
callq 0x5740
addq $0x40, %rsp
leaq -0x100(%rbp), %rdi
callq 0x2e804
movq -0x70(%rbp), %rdi
leaq -0x60(%rbp), %rax
cmpq %rax, %rdi
je 0x37615
callq 0x5380
movq 0x52f34(%rip), %rdi     # 0x8a550
leaq -0x1f0(%rbp), %rsi
leaq 0x39618(%rip), %rax     # 0x70c42
movq %rax, (%rsi)
leaq 0x3961c(%rip), %rax     # 0x70c50
movq %rax, 0x8(%rsi)
leaq -0x1e0(%rbp), %rcx
leaq 0x39429(%rip), %rax     # 0x70a6f
movq %rax, (%rcx)
movq %rax, 0x8(%rcx)
movl $0x104, %edx            # imm = 0x104
callq 0x5760
movb $0x0, -0x88(%rbp)
leaq 0x5246b(%rip), %rax     # 0x89ad0
movq %rax, -0x90(%rbp)
movq %rbx, -0x80(%rbp)
leaq 0x38d50(%rip), %rax     # 0x703c7
movq %rax, -0x78(%rbp)
movq %r15, -0x38(%rbp)
leaq -0x70(%rbp), %rdi
leaq -0x60(%rbp), %rax
movq %rax, (%rdi)
leaq 0x3995d(%rip), %rsi     # 0x70fee
leaq 0x39957(%rip), %rdx     # 0x70fef
callq 0x95e6
leaq -0x140(%rbp), %rdi
leaq -0x70(%rbp), %rsi
callq 0x1ddce
movq %rax, %r15
movsd 0x52d58(%rip), %xmm2    # 0x8a410
movsd %xmm2, -0xf8(%rbp)
movsd (%rax), %xmm1
leaq -0x110(%rbp), %rdi
leaq -0x29(%rbp), %rsi
movsd 0x394e1(%rip), %xmm0    # 0x70bb8
callq 0x6b55a
leaq -0x158(%rbp), %r14
leaq 0x39558(%rip), %rax     # 0x70c42
movq %rax, (%r14)
leaq 0x3955c(%rip), %rax     # 0x70c50
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 0x5257b(%rip), %rax     # 0x89cd0
movq %rax, -0xb0(%rbp)
movq %rbx, -0xa0(%rbp)
leaq -0x50(%rbp), %rax
movq %rax, -0x98(%rbp)
subq $0x8, %rsp
leaq 0x39615(%rip), %r10     # 0x70d8e
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 0x39612(%rip), %r11     # 0x70dbf
pushq %r11
leaq -0xd0(%rbp), %r11
pushq %r11
pushq %r10
leaq -0xf0(%rbp), %r10
pushq %r10
leaq 0x395da(%rip), %r10     # 0x70da4
pushq %r10
pushq $0x3
callq 0x5740
addq $0x40, %rsp
leaq -0x100(%rbp), %rdi
callq 0x2e804
movq -0x70(%rbp), %rdi
leaq -0x60(%rbp), %rax
cmpq %rax, %rdi
je 0x377f5
callq 0x5380
movq 0x52d54(%rip), %rdi     # 0x8a550
leaq -0x1d0(%rbp), %rsi
leaq 0x39438(%rip), %rax     # 0x70c42
movq %rax, (%rsi)
leaq 0x3943c(%rip), %rax     # 0x70c50
movq %rax, 0x8(%rsi)
leaq -0x1c0(%rbp), %rcx
leaq 0x39249(%rip), %rax     # 0x70a6f
movq %rax, (%rcx)
movq %rax, 0x8(%rcx)
movl $0x106, %edx            # imm = 0x106
callq 0x5760
movb $0x0, -0x88(%rbp)
leaq 0x5228b(%rip), %rax     # 0x89ad0
movq %rax, -0x90(%rbp)
movq %rbx, -0x80(%rbp)
leaq 0x38b70(%rip), %rax     # 0x703c7
movq %rax, -0x78(%rbp)
movabsq $-0x400b17217f7d1cf8, %rax # imm = 0xBFF4E8DE8082E308
movq %rax, -0x50(%rbp)
movsd 0x52b9f(%rip), %xmm2    # 0x8a410
movsd %xmm2, -0x38(%rbp)
leaq -0x70(%rbp), %rdi
leaq -0xf8(%rbp), %rsi
movsd 0x39337(%rip), %xmm0    # 0x70bc0
movsd -0x148(%rbp), %xmm1
callq 0x6b55a
leaq -0x110(%rbp), %rdx
leaq 0x3939e(%rip), %rax     # 0x70c42
movq %rax, (%rdx)
leaq 0x393a2(%rip), %rax     # 0x70c50
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 -0x160(%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 0x523b7(%rip), %rax     # 0x89cd0
movq %rax, -0xb0(%rbp)
movq %rbx, -0xa0(%rbp)
leaq -0x40(%rbp), %rax
movq %rax, -0x98(%rbp)
subq $0x8, %rsp
leaq 0x39f13(%rip), %r10     # 0x71850
leaq 0x394af(%rip), %r11     # 0x70df3
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 0x3944e(%rip), %rbx     # 0x70dbf
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 0x2e804
leaq -0x140(%rbp), %rdi
callq 0x1e712
movq -0x180(%rbp), %rdi
leaq -0x170(%rbp), %rax
cmpq %rax, %rdi
je 0x379bf
callq 0x5380
leaq -0x1b0(%rbp), %rdi
callq 0x1e712
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 0x37a76
jmp 0x37abb
movq %rax, %rbx
leaq -0x100(%rbp), %rdi
callq 0x2e804
jmp 0x37a04
jmp 0x37a01
movq %rax, %rbx
movq -0x70(%rbp), %rdi
leaq -0x60(%rbp), %rax
cmpq %rax, %rdi
je 0x37abe
jmp 0x37a66
jmp 0x37abb
movq %rax, %rbx
leaq -0x100(%rbp), %rdi
callq 0x2e804
jmp 0x37a32
jmp 0x37a2f
movq %rax, %rbx
movq -0x70(%rbp), %rdi
leaq -0x60(%rbp), %rax
cmpq %rax, %rdi
je 0x37abe
jmp 0x37a66
jmp 0x37abb
movq %rax, %rbx
leaq -0x100(%rbp), %rdi
callq 0x2e804
jmp 0x37a59
jmp 0x37a56
movq %rax, %rbx
movq -0x70(%rbp), %rdi
leaq -0x60(%rbp), %rax
cmpq %rax, %rdi
je 0x37abe
callq 0x5380
jmp 0x37abe
jmp 0x37abb
movq %rax, %rbx
leaq -0x80(%rbp), %rdi
callq 0x2e804
jmp 0x37abe
jmp 0x37ab6
movq %rax, %rbx
movq -0x140(%rbp), %rdi
cmpq %r14, %rdi
je 0x37ae2
jmp 0x37add
jmp 0x37ab6
movq %rax, %rbx
movq -0x140(%rbp), %rdi
cmpq %r14, %rdi
je 0x37ae2
jmp 0x37add
jmp 0x37ab6
movq %rax, %rbx
movq -0x140(%rbp), %rdi
cmpq %r14, %rdi
je 0x37ae2
jmp 0x37add
movq %rax, %rbx
jmp 0x37ae2
movq %rax, %rbx
leaq -0x140(%rbp), %rdi
callq 0x1e712
movq -0x180(%rbp), %rdi
leaq -0x170(%rbp), %rax
cmpq %rax, %rdi
je 0x37ae2
callq 0x5380
leaq -0x1b0(%rbp), %rdi
callq 0x1e712
movq %rbx, %rdi
callq 0x56f0