// File: /workspace/github_cpp_makefile_star2_O2/aalto-speech[P]ftk/test/emtest.cc
// Function: TransitionForwardBackwardTest5::test_method()
BOOST_AUTO_TEST_CASE(TransitionForwardBackwardTest5)
{
    transitions_t transitions;
    string str1("a");
    set<string> vocab = {start_end,str1};
    transitions[start_end][str1] = -1.0;
    transitions[str1][start_end] = -1.0;
    string sentence("a");
    FactorGraph fg(sentence, start_end, vocab, 1);
    transitions_t stats;
    flt_type lp = forward_backward(transitions, fg, stats);
    BOOST_CHECK_EQUAL(2, (int)stats.size());
    BOOST_CHECK_EQUAL( 1.0, stats[start_end][str1] );
    BOOST_CHECK_EQUAL( 1.0, stats[str1][start_end] );
    BOOST_CHECK_CLOSE( -2.0, lp, DBL_ACCURACY );
}

// Assembly:
pushq %rbp
movq %rsp, %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
subq $0x248, %rsp            # imm = 0x248
leaq -0x118(%rbp), %rax
andl $0x0, (%rax)
andq $0x0, 0x8(%rax)
movq %rax, 0x10(%rax)
movq %rax, 0x18(%rax)
andq $0x0, 0x20(%rax)
leaq 0x13aed(%rip), %rsi     # 0x53f2c
leaq -0x80(%rbp), %rdi
leaq -0x198(%rbp), %rdx
callq 0x5160
leaq 0x30132(%rip), %rsi     # 0x70588
leaq -0x198(%rbp), %rdi
callq 0x54f0
leaq -0x178(%rbp), %rdi
leaq -0x80(%rbp), %rsi
callq 0x54f0
leaq -0x1c8(%rbp), %rdi
leaq -0x198(%rbp), %rsi
pushq $0x2
popq %rdx
leaq -0xd0(%rbp), %rcx
leaq -0xf0(%rbp), %r8
callq 0x4ed0a
pushq $0x20
popq %rbx
leaq (%rbx,%rbp), %rdi
addq $-0x198, %rdi           # imm = 0xFE68
callq 0x57b8
addq $-0x20, %rbx
cmpq $-0x20, %rbx
jne 0x40499
leaq 0x300ce(%rip), %rsi     # 0x70588
leaq -0x120(%rbp), %rdi
callq 0x1b5f0
leaq -0x80(%rbp), %rsi
movq %rax, %rdi
callq 0x1b338
movabsq $-0x4010000000000000, %rbx # imm = 0xBFF0000000000000
movq %rbx, (%rax)
leaq -0x120(%rbp), %rdi
leaq -0x80(%rbp), %rsi
callq 0x1b5f0
leaq 0x30092(%rip), %rsi     # 0x70588
movq %rax, %rdi
callq 0x1b338
movq %rbx, (%rax)
leaq 0x13a24(%rip), %rsi     # 0x53f2c
leaq -0xf0(%rbp), %rdi
leaq -0x198(%rbp), %rdx
callq 0x5160
leaq 0x30066(%rip), %rdx     # 0x70588
leaq -0x198(%rbp), %rdi
leaq -0xf0(%rbp), %rsi
leaq -0x1c8(%rbp), %rcx
pushq $0x1
popq %r8
xorl %r9d, %r9d
callq 0xf742
leaq -0xc8(%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 -0x198(%rbp), %rsi
leaq -0xd0(%rbp), %rdx
callq 0x18d71
movsd %xmm0, -0x60(%rbp)
movq 0x2ffbb(%rip), %rdi     # 0x70540
leaq 0x135f4(%rip), %rbx     # 0x53b80
leaq -0x268(%rbp), %rsi
movq %rbx, (%rsi)
leaq 0x135f1(%rip), %r14     # 0x53b8e
movq %r14, 0x8(%rsi)
leaq 0x1346d(%rip), %r12     # 0x53a15
leaq -0x258(%rbp), %rcx
movq %r12, (%rcx)
movq %r12, 0x8(%rcx)
movl $0x39d, %edx            # imm = 0x39D
callq 0x5710
leaq -0x58(%rbp), %rdi
movb $0x0, 0x8(%rdi)
leaq 0x2f511(%rip), %rax     # 0x6fae0
movq %rax, (%rdi)
movq 0x2f9d7(%rip), %rax     # 0x6ffb0
movq %rax, 0x10(%rdi)
leaq 0x12d73(%rip), %rax     # 0x53357
movq %rax, 0x18(%rdi)
leaq -0x248(%rbp), %rsi
movq %rbx, (%rsi)
movq %r14, 0x8(%rsi)
leaq -0x30(%rbp), %r9
movl $0x2, (%r9)
movl -0xa8(%rbp), %eax
leaq -0x38(%rbp), %r11
movl %eax, (%r11)
subq $0x8, %rsp
leaq 0x1366d(%rip), %rax     # 0x53c86
leaq 0x1408e(%rip), %r10     # 0x546ae
pushq $0x1
popq %rcx
pushq $0x2
popq %r8
movl $0x39d, %edx            # imm = 0x39D
pushq %rax
pushq %r11
pushq %r10
callq 0x4ea09
addq $0x20, %rsp
movq 0x2feff(%rip), %rdi     # 0x70540
leaq -0x238(%rbp), %rsi
movq %rbx, (%rsi)
movq %r14, 0x8(%rsi)
leaq -0x228(%rbp), %rcx
movq %r12, (%rcx)
movq %r12, 0x8(%rcx)
movl $0x39e, %edx            # imm = 0x39E
callq 0x5710
movb $0x0, -0x50(%rbp)
leaq 0x2f46e(%rip), %rax     # 0x6fae0
movq %rax, -0x58(%rbp)
movq 0x2f933(%rip), %rax     # 0x6ffb0
movq %rax, -0x48(%rbp)
leaq 0x12ccf(%rip), %rax     # 0x53357
movq %rax, -0x40(%rbp)
movq %rbx, -0xa0(%rbp)
movq %r14, -0x98(%rbp)
movabsq $0x3ff0000000000000, %r13 # imm = 0x3FF0000000000000
movq %r13, -0x30(%rbp)
leaq 0x2fed9(%rip), %rsi     # 0x70588
leaq -0xd0(%rbp), %rdi
callq 0x1b5f0
leaq -0x80(%rbp), %rsi
movq %rax, %rdi
callq 0x1b338
subq $0x8, %rsp
leaq 0x13b8c(%rip), %r10     # 0x5425e
leaq 0x135ef(%rip), %r15     # 0x53cc8
leaq -0x58(%rbp), %rdi
leaq -0xa0(%rbp), %rsi
pushq $0x1
popq %rcx
pushq $0x2
popq %r8
leaq -0x30(%rbp), %r9
movl $0x39e, %edx            # imm = 0x39E
pushq %r10
pushq %rax
pushq %r15
callq 0x2903d
addq $0x20, %rsp
movq 0x2fe37(%rip), %rdi     # 0x70540
leaq -0x218(%rbp), %rsi
movq %rbx, (%rsi)
movq %r14, 0x8(%rsi)
leaq -0x208(%rbp), %rcx
movq %r12, (%rcx)
movq %r12, 0x8(%rcx)
movl $0x39f, %edx            # imm = 0x39F
callq 0x5710
movb $0x0, -0x50(%rbp)
leaq 0x2f3a6(%rip), %rax     # 0x6fae0
movq %rax, -0x58(%rbp)
movq 0x2f86b(%rip), %rax     # 0x6ffb0
movq %rax, -0x48(%rbp)
leaq 0x12c07(%rip), %rax     # 0x53357
movq %rax, -0x40(%rbp)
movq %rbx, -0x90(%rbp)
movq %r14, -0x88(%rbp)
movq %r13, -0x30(%rbp)
leaq -0xd0(%rbp), %rdi
leaq -0x80(%rbp), %rsi
callq 0x1b5f0
leaq 0x2fe0b(%rip), %rsi     # 0x70588
movq %rax, %rdi
callq 0x1b338
subq $0x8, %rsp
leaq 0x13bf3(%rip), %r10     # 0x54383
leaq -0x58(%rbp), %rdi
leaq -0x90(%rbp), %rsi
pushq $0x1
popq %rcx
pushq $0x2
popq %r8
leaq -0x30(%rbp), %r9
movl $0x39f, %edx            # imm = 0x39F
pushq %r10
pushq %rax
pushq %r15
callq 0x2903d
addq $0x20, %rsp
movq 0x2fd80(%rip), %rdi     # 0x70540
leaq -0x1f8(%rbp), %rsi
movq %rbx, (%rsi)
movq %r14, 0x8(%rsi)
leaq -0x1e8(%rbp), %rcx
movq %r12, (%rcx)
movq %r12, 0x8(%rcx)
movl $0x3a0, %edx            # imm = 0x3A0
callq 0x5710
leaq -0x58(%rbp), %rdi
movb $0x0, 0x8(%rdi)
leaq 0x2f2eb(%rip), %rax     # 0x6fae0
movq %rax, (%rdi)
movq 0x2f7b1(%rip), %rax     # 0x6ffb0
movq %rax, 0x10(%rdi)
leaq 0x12b4d(%rip), %rax     # 0x53357
movq %rax, 0x18(%rdi)
leaq -0x1d8(%rbp), %rsi
movq %rbx, (%rsi)
movq %r14, 0x8(%rsi)
movabsq $-0x4000000000000000, %rax # imm = 0xC000000000000000
leaq -0x30(%rbp), %r9
movq %rax, (%r9)
movsd 0x2fbcb(%rip), %xmm0    # 0x70400
movsd %xmm0, -0x38(%rbp)
subq $0x8, %rsp
leaq 0x134b8(%rip), %rax     # 0x53cfd
leaq 0x13f42(%rip), %r10     # 0x5478e
leaq -0x60(%rbp), %r11
leaq 0x1300a(%rip), %rbx     # 0x53861
pushq $0x1
popq %rcx
pushq $0x8
popq %r8
movl $0x3a0, %edx            # imm = 0x3A0
pushq %rax
leaq -0x38(%rbp), %rax
pushq %rax
pushq %r10
pushq %r11
pushq %rbx
callq 0x4eaf1
addq $0x30, %rsp
leaq -0xd0(%rbp), %rdi
callq 0x1bb0c
leaq -0x198(%rbp), %rdi
callq 0x10c24
leaq -0xf0(%rbp), %rdi
callq 0x57b8
leaq -0x1c8(%rbp), %rdi
callq 0x200e8
leaq -0x80(%rbp), %rdi
callq 0x57b8
leaq -0x120(%rbp), %rdi
callq 0x1bb0c
addq $0x248, %rsp            # imm = 0x248
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
jmp 0x40920
jmp 0x40920
movq %rax, %rbx
jmp 0x4093b
jmp 0x4091b
movq %rax, %rbx
pushq $0x20
popq %r14
leaq (%r14,%rbp), %rdi
addq $-0x198, %rdi           # imm = 0xFE68
callq 0x57b8
addq $-0x20, %r14
cmpq $-0x20, %r14
jne 0x408e0
jmp 0x40953
movq %rax, %rbx
leaq -0x198(%rbp), %rdi
callq 0x57b8
jmp 0x40953
movq %rax, %rbx
jmp 0x40953
movq %rax, %rbx
jmp 0x4095c
jmp 0x40920
jmp 0x40920
movq %rax, %rbx
jmp 0x40947
movq %rax, %rbx
leaq -0xd0(%rbp), %rdi
callq 0x1bb0c
leaq -0x198(%rbp), %rdi
callq 0x10c24
leaq -0xf0(%rbp), %rdi
callq 0x57b8
leaq -0x1c8(%rbp), %rdi
callq 0x200e8
leaq -0x80(%rbp), %rdi
callq 0x57b8
leaq -0x120(%rbp), %rdi
callq 0x1bb0c
movq %rbx, %rdi
callq 0x56b0