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

// Assembly:
pushq %rbp
movq %rsp, %rbp
subq $0x2b0, %rsp            # imm = 0x2B0
movq %rdi, -0x8(%rbp)
leaq -0x38(%rbp), %rdi
callq 0x530a0
leaq -0x59(%rbp), %rdi
movq %rdi, -0x220(%rbp)
callq 0x67b0
movq -0x220(%rbp), %rdx
leaq 0x527be(%rip), %rsi     # 0xcbf14
leaq -0x58(%rbp), %rdi
callq 0x65e0
jmp 0x79761
leaq -0x38(%rbp), %rdi
leaq -0x58(%rbp), %rsi
callq 0x4b2f0
movq %rax, -0x228(%rbp)
jmp 0x79777
movq -0x228(%rbp), %rax
movabsq $-0x4010000000000000, %rcx # imm = 0xBFF0000000000000
movq %rcx, (%rax)
leaq -0x58(%rbp), %rdi
callq 0x6908
leaq -0x59(%rbp), %rdi
callq 0x6470
leaq -0x91(%rbp), %rdi
movq %rdi, -0x230(%rbp)
callq 0x67b0
movq -0x230(%rbp), %rdx
leaq 0x52756(%rip), %rsi     # 0xcbf14
leaq -0x90(%rbp), %rdi
callq 0x65e0
jmp 0x797cc
leaq -0x91(%rbp), %rdi
callq 0x6470
leaq -0xc8(%rbp), %rdi
movq %rdi, -0x240(%rbp)
callq 0x530a0
movq -0x240(%rbp), %rdx
leaq -0x38(%rbp), %rdi
leaq -0x90(%rbp), %rsi
xorl %ecx, %ecx
callq 0x44ea0
movsd %xmm0, -0x238(%rbp)
jmp 0x7980e
movsd -0x238(%rbp), %xmm0
movsd %xmm0, -0xd0(%rbp)
movq 0x8ddcb(%rip), %rax     # 0x1075f0
movq %rax, -0x248(%rbp)
leaq 0x52335(%rip), %rsi     # 0xcbb68
leaq -0xe0(%rbp), %rdi
movl $0xe, %edx
callq 0x70bd0
jmp 0x79846
leaq -0xf0(%rbp), %rdi
callq 0x70c00
jmp 0x79854
movq -0x248(%rbp), %rdi
leaq -0xe0(%rbp), %rsi
movl $0xe2, %edx
leaq -0xf0(%rbp), %rcx
callq 0x6840
jmp 0x79875
callq 0x70e90
movq %rax, -0x250(%rbp)
jmp 0x79883
movq -0x250(%rbp), %rsi
leaq 0x51a99(%rip), %rdx     # 0xcb32a
leaq -0x118(%rbp), %rdi
callq 0x70e50
jmp 0x7989f
leaq 0x522c2(%rip), %rsi     # 0xcbb68
leaq -0x128(%rbp), %rdi
movl $0xe, %edx
callq 0x70bd0
jmp 0x798b9
movl $0x1, -0x12c(%rbp)
leaq -0xc8(%rbp), %rdi
callq 0x5bdf0
movl %eax, -0x130(%rbp)
leaq 0x52392(%rip), %rcx     # 0xcbc6e
movq %rsp, %rax
movq %rcx, 0x10(%rax)
leaq -0x130(%rbp), %rcx
movq %rcx, 0x8(%rax)
leaq 0x5268e(%rip), %rcx     # 0xcbf83
movq %rcx, (%rax)
leaq -0x118(%rbp), %rdi
leaq -0x128(%rbp), %rsi
movl $0xe2, %edx
movl $0x1, %ecx
movl $0x2, %r8d
leaq -0x12c(%rbp), %r9
callq 0xbf480
jmp 0x79924
leaq -0x118(%rbp), %rdi
callq 0x70ea0
callq 0x70ec0
movb %al, -0x251(%rbp)
jmp 0x7993d
movb -0x251(%rbp), %al
testb $0x1, %al
jne 0x7981e
jmp 0x7994d
jmp 0x7994f
movq 0x8dc9a(%rip), %rax     # 0x1075f0
movq %rax, -0x260(%rbp)
leaq 0x52204(%rip), %rsi     # 0xcbb68
leaq -0x140(%rbp), %rdi
movl $0xe, %edx
callq 0x70bd0
jmp 0x79977
leaq -0x150(%rbp), %rdi
callq 0x70c00
jmp 0x79985
movq -0x260(%rbp), %rdi
leaq -0x140(%rbp), %rsi
movl $0xe3, %edx
leaq -0x150(%rbp), %rcx
callq 0x6840
jmp 0x799a6
callq 0x70e90
movq %rax, -0x268(%rbp)
jmp 0x799b4
movq -0x268(%rbp), %rsi
leaq 0x51968(%rip), %rdx     # 0xcb32a
leaq -0x178(%rbp), %rdi
callq 0x70e50
jmp 0x799d0
leaq 0x52191(%rip), %rsi     # 0xcbb68
leaq -0x188(%rbp), %rdi
movl $0xe, %edx
callq 0x70bd0
jmp 0x799ea
movabsq $0x3ff0000000000000, %rax # imm = 0x3FF0000000000000
movq %rax, -0x190(%rbp)
leaq -0x1b1(%rbp), %rdi
movq %rdi, -0x270(%rbp)
callq 0x67b0
movq -0x270(%rbp), %rdx
leaq 0x524f8(%rip), %rsi     # 0xcbf14
leaq -0x1b0(%rbp), %rdi
callq 0x65e0
jmp 0x79a2a
leaq -0xc8(%rbp), %rdi
leaq -0x1b0(%rbp), %rsi
callq 0x4b2f0
movq %rax, -0x278(%rbp)
jmp 0x79a46
movq -0x278(%rbp), %rcx
leaq 0x52260(%rip), %rdx     # 0xcbcb4
movq %rsp, %rax
movq %rdx, 0x10(%rax)
movq %rcx, 0x8(%rax)
leaq 0x52240(%rip), %rcx     # 0xcbca6
movq %rcx, (%rax)
leaq -0x178(%rbp), %rdi
leaq -0x188(%rbp), %rsi
movl $0xe3, %edx
movl $0x1, %ecx
movl $0x2, %r8d
leaq -0x190(%rbp), %r9
callq 0x70c30
jmp 0x79a95
leaq -0x1b0(%rbp), %rdi
callq 0x6908
leaq -0x1b1(%rbp), %rdi
callq 0x6470
leaq -0x178(%rbp), %rdi
callq 0x70ea0
callq 0x70ec0
movb %al, -0x279(%rbp)
jmp 0x79ac6
movb -0x279(%rbp), %al
testb $0x1, %al
jne 0x7994f
jmp 0x79ad6
jmp 0x79ad8
movq 0x8db11(%rip), %rax     # 0x1075f0
movq %rax, -0x288(%rbp)
leaq 0x5207b(%rip), %rsi     # 0xcbb68
leaq -0x1c8(%rbp), %rdi
movl $0xe, %edx
callq 0x70bd0
jmp 0x79b00
leaq -0x1d8(%rbp), %rdi
callq 0x70c00
jmp 0x79b0e
movq -0x288(%rbp), %rdi
leaq -0x1c8(%rbp), %rsi
movl $0xe4, %edx
leaq -0x1d8(%rbp), %rcx
callq 0x6840
jmp 0x79b2f
callq 0x70e90
movq %rax, -0x290(%rbp)
jmp 0x79b3d
movq -0x290(%rbp), %rsi
leaq 0x517df(%rip), %rdx     # 0xcb32a
leaq -0x200(%rbp), %rdi
callq 0x70e50
jmp 0x79b59
leaq 0x52008(%rip), %rsi     # 0xcbb68
leaq -0x210(%rbp), %rdi
movl $0xe, %edx
callq 0x70bd0
jmp 0x79b73
movabsq $-0x4010000000000000, %rax # imm = 0xBFF0000000000000
movq %rax, -0x218(%rbp)
leaq 0x52beb(%rip), %rcx     # 0xcc776
movq %rsp, %rax
movq %rcx, 0x10(%rax)
leaq -0xd0(%rbp), %rcx
movq %rcx, 0x8(%rax)
leaq 0x51b96(%rip), %rcx     # 0xcb73a
movq %rcx, (%rax)
leaq -0x200(%rbp), %rdi
leaq -0x210(%rbp), %rsi
movl $0xe4, %edx
movl $0x1, %ecx
movl $0x2, %r8d
leaq -0x218(%rbp), %r9
callq 0x70c30
jmp 0x79bd3
leaq -0x200(%rbp), %rdi
callq 0x70ea0
callq 0x70ec0
movb %al, -0x291(%rbp)
jmp 0x79bec
movb -0x291(%rbp), %al
testb $0x1, %al
jne 0x79ad8
jmp 0x79bfc
leaq -0xc8(%rbp), %rdi
callq 0x4cf70
leaq -0x90(%rbp), %rdi
callq 0x6908
leaq -0x38(%rbp), %rdi
callq 0x4cf70
addq $0x2b0, %rsp            # imm = 0x2B0
popq %rbp
retq
movq %rax, %rcx
movl %edx, %eax
movq %rcx, -0x68(%rbp)
movl %eax, -0x6c(%rbp)
jmp 0x79c49
movq %rax, %rcx
movl %edx, %eax
movq %rcx, -0x68(%rbp)
movl %eax, -0x6c(%rbp)
leaq -0x58(%rbp), %rdi
callq 0x6908
leaq -0x59(%rbp), %rdi
callq 0x6470
jmp 0x79d1d
movq %rax, %rcx
movl %edx, %eax
movq %rcx, -0x68(%rbp)
movl %eax, -0x6c(%rbp)
leaq -0x91(%rbp), %rdi
callq 0x6470
jmp 0x79d1d
movq %rax, %rcx
movl %edx, %eax
movq %rcx, -0x68(%rbp)
movl %eax, -0x6c(%rbp)
jmp 0x79d05
movq %rax, %rcx
movl %edx, %eax
movq %rcx, -0x68(%rbp)
movl %eax, -0x6c(%rbp)
leaq -0x118(%rbp), %rdi
callq 0x70ea0
jmp 0x79d05
movq %rax, %rcx
movl %edx, %eax
movq %rcx, -0x68(%rbp)
movl %eax, -0x6c(%rbp)
jmp 0x79cdf
movq %rax, %rcx
movl %edx, %eax
movq %rcx, -0x68(%rbp)
movl %eax, -0x6c(%rbp)
jmp 0x79cd3
movq %rax, %rcx
movl %edx, %eax
movq %rcx, -0x68(%rbp)
movl %eax, -0x6c(%rbp)
leaq -0x1b0(%rbp), %rdi
callq 0x6908
leaq -0x1b1(%rbp), %rdi
callq 0x6470
leaq -0x178(%rbp), %rdi
callq 0x70ea0
jmp 0x79d05
movq %rax, %rcx
movl %edx, %eax
movq %rcx, -0x68(%rbp)
movl %eax, -0x6c(%rbp)
leaq -0x200(%rbp), %rdi
callq 0x70ea0
leaq -0xc8(%rbp), %rdi
callq 0x4cf70
leaq -0x90(%rbp), %rdi
callq 0x6908
leaq -0x38(%rbp), %rdi
callq 0x4cf70
movq -0x68(%rbp), %rdi
callq 0x67a0
nop