// File: /workspace/github_cpp_makefile_star2_O1/aalto-speech[P]ftk/test/emtest.cc
// Function: TransitionForwardBackwardTest6::test_method()
BOOST_AUTO_TEST_CASE(TransitionForwardBackwardTest6)
{
    transitions_t transitions;
    string str1("a"); string str2("b");
    string str3("c"); string str4("d");
    set<string> vocab = {start_end,str1,str2,str3,str4};
    transitions[start_end][str1] = -1.0;
    transitions[str4][start_end] = -1.0;
    transitions[str1][str2] = -1.0;
    transitions[str2][str3] = -1.0;
    transitions[str3][str4] = -1.0;
    string sentence("a-bcd");
    FactorGraph fg(sentence, start_end, vocab, 1);
    transitions_t stats;
    flt_type lp = forward_backward(transitions, fg, stats);
    BOOST_CHECK_EQUAL(0, (int)stats.size());
    BOOST_CHECK_CLOSE( MIN_FLOAT, lp, DBL_ACCURACY );
}

// Assembly:
pushq %rbp
movq %rsp, %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
subq $0x2f8, %rsp            # imm = 0x2F8
leaq -0x180(%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 -0xe0(%rbp), %rax
movq %rax, -0x10(%rax)
leaq 0x1c277(%rip), %rsi     # 0x71fbe
leaq 0x1c271(%rip), %rdx     # 0x71fbf
leaq -0xf0(%rbp), %rdi
callq 0x95e2
leaq -0xc0(%rbp), %rax
movq %rax, -0x10(%rax)
leaq 0x1bf2f(%rip), %rsi     # 0x71c9b
leaq 0x1bf29(%rip), %rdx     # 0x71c9c
leaq -0xd0(%rbp), %rdi
callq 0x95e2
leaq -0xa0(%rbp), %rax
movq %rax, -0x10(%rax)
leaq 0x1befa(%rip), %rsi     # 0x71c8b
leaq 0x1bef4(%rip), %rdx     # 0x71c8c
leaq -0xb0(%rbp), %rdi
callq 0x95e2
leaq -0x80(%rbp), %rax
movq %rax, -0x10(%rax)
leaq 0x1b25e(%rip), %rsi     # 0x71011
leaq 0x1b258(%rip), %rdx     # 0x71012
leaq -0x90(%rbp), %rdi
callq 0x95e2
leaq -0x298(%rbp), %rax
movq %rax, -0x10(%rax)
movq 0x357c0(%rip), %rsi     # 0x8b598
movq 0x357c1(%rip), %rdx     # 0x8b5a0
addq %rsi, %rdx
leaq -0x2a8(%rbp), %r15
movq %r15, %r14
movq %r15, %rdi
callq 0x9548
leaq -0x288(%rbp), %r14
leaq -0x278(%rbp), %rax
movq %rax, -0x10(%rax)
movq -0xf0(%rbp), %rsi
movq -0xe8(%rbp), %rdx
addq %rsi, %rdx
movq %r14, %rdi
callq 0x9548
leaq -0x268(%rbp), %r14
leaq -0x258(%rbp), %rax
movq %rax, -0x10(%rax)
movq -0xd0(%rbp), %rsi
movq -0xc8(%rbp), %rdx
addq %rsi, %rdx
movq %r14, %rdi
callq 0x9548
leaq -0x248(%rbp), %r14
leaq -0x238(%rbp), %rax
movq %rax, -0x10(%rax)
movq -0xb0(%rbp), %rsi
movq -0xa8(%rbp), %rdx
addq %rsi, %rdx
movq %r14, %rdi
callq 0x9548
leaq -0x228(%rbp), %r14
leaq -0x218(%rbp), %r12
movq %r12, -0x10(%r12)
movq -0x90(%rbp), %rsi
movq -0x88(%rbp), %rdx
addq %rsi, %rdx
movq %r14, %rdi
callq 0x9548
leaq -0x2d8(%rbp), %rdi
leaq -0x2a8(%rbp), %rsi
leaq -0x1f8(%rbp), %rcx
leaq -0x70(%rbp), %r8
movl $0x5, %edx
callq 0x6b4ee
leaq -0x218(%rbp), %rbx
xorl %r14d, %r14d
movq -0x228(%rbp,%r14), %rdi
leaq (%rbx,%r14), %rax
cmpq %rdi, %rax
je 0x55ee4
callq 0x5380
addq $-0x20, %r14
cmpq $-0xa0, %r14
jne 0x55ece
leaq 0x356a0(%rip), %rsi     # 0x8b598
leaq -0x188(%rbp), %rdi
callq 0x1e18a
leaq -0xf0(%rbp), %rsi
movq %rax, %rdi
callq 0x1ddee
movabsq $-0x4010000000000000, %rbx # imm = 0xBFF0000000000000
movq %rbx, (%rax)
leaq -0x188(%rbp), %rdi
leaq -0x90(%rbp), %rsi
callq 0x1e18a
leaq 0x3565e(%rip), %rsi     # 0x8b598
movq %rax, %rdi
callq 0x1ddee
movq %rbx, (%rax)
leaq -0x188(%rbp), %rdi
leaq -0xf0(%rbp), %rsi
callq 0x1e18a
leaq -0xd0(%rbp), %rsi
movq %rax, %rdi
callq 0x1ddee
movq %rbx, (%rax)
leaq -0x188(%rbp), %rdi
leaq -0xd0(%rbp), %rsi
callq 0x1e18a
leaq -0xb0(%rbp), %rsi
movq %rax, %rdi
callq 0x1ddee
movq %rbx, (%rax)
leaq -0x188(%rbp), %rdi
leaq -0xb0(%rbp), %rsi
callq 0x1e18a
leaq -0x90(%rbp), %rsi
movq %rax, %rdi
callq 0x1ddee
movq %rbx, (%rax)
leaq -0x130(%rbp), %rax
movq %rax, -0x10(%rax)
leaq 0x1bd0b(%rip), %rsi     # 0x71cd1
leaq 0x1bd09(%rip), %rdx     # 0x71cd6
leaq -0x140(%rbp), %rdi
callq 0x95e2
leaq 0x355b8(%rip), %rdx     # 0x8b598
leaq -0x2a8(%rbp), %rdi
leaq -0x140(%rbp), %rsi
leaq -0x2d8(%rbp), %rcx
movl $0x1, %r8d
xorl %r9d, %r9d
callq 0x110ea
leaq -0x1f0(%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 -0x188(%rbp), %rdi
leaq -0x2a8(%rbp), %rsi
leaq -0x1f8(%rbp), %rdx
callq 0x1b037
movsd %xmm0, -0x38(%rbp)
movq 0x35508(%rip), %rdi     # 0x8b550
leaq 0x1bbc3(%rip), %rax     # 0x71c12
leaq -0x318(%rbp), %rsi
movq %rax, (%rsi)
leaq 0x1bbc0(%rip), %r13     # 0x71c20
movq %r13, 0x8(%rsi)
leaq 0x1b9f4(%rip), %r12     # 0x71a5f
leaq -0x308(%rbp), %rcx
movq %r12, (%rcx)
movq %r12, 0x8(%rcx)
movl $0x3b3, %edx            # imm = 0x3B3
callq 0x5760
xorl %eax, %eax
leaq -0x1a8(%rbp), %r14
movb %al, 0x8(%r14)
leaq 0x349c9(%rip), %rcx     # 0x8aa60
movq %rcx, (%r14)
movq 0x34f0f(%rip), %r15     # 0x8afb0
movq %r15, 0x10(%r14)
leaq 0x1b31b(%rip), %rcx     # 0x713c7
movq %rcx, 0x18(%r14)
leaq -0x48(%rbp), %rdx
movl $0x0, (%rdx)
movl -0x1d0(%rbp), %ecx
leaq -0x40(%rbp), %r8
testl %ecx, %ecx
leaq -0x120(%rbp), %rdi
sete (%rdi)
movl %ecx, (%r8)
xorps %xmm0, %xmm0
movups %xmm0, 0x8(%rdi)
leaq -0x208(%rbp), %rcx
movq %rdx, (%rcx)
movb %al, -0x68(%rbp)
leaq 0x34aea(%rip), %rsi     # 0x8abd8
movq %rsi, -0x70(%rbp)
movq %r15, -0x60(%rbp)
movq %rcx, -0x58(%rbp)
leaq -0x1c8(%rbp), %rbx
movb %al, 0x8(%rbx)
leaq -0x158(%rbp), %rdx
leaq 0x1bb00(%rip), %rax     # 0x71c12
movq %rax, (%rdx)
movq %r13, 0x8(%rdx)
movq %rsi, (%rbx)
leaq -0x50(%rbp), %rax
movq %r8, (%rax)
movq %r15, 0x10(%rbx)
movq %rax, 0x18(%rbx)
subq $0x8, %rsp
leaq 0x1bbe2(%rip), %r10     # 0x71d18
leaq 0x1c98d(%rip), %r11     # 0x72aca
movl $0x3b3, %ecx            # imm = 0x3B3
movq %r14, %rsi
movl $0x1, %r8d
movl $0x2, %r9d
xorl %eax, %eax
pushq %rbx
pushq %r10
leaq -0x70(%rbp), %r10
pushq %r10
pushq %r11
pushq $0x2
callq 0x5740
addq $0x30, %rsp
leaq -0x110(%rbp), %rdi
callq 0x2e966
movq 0x353d4(%rip), %rdi     # 0x8b550
leaq -0x2f8(%rbp), %rsi
leaq 0x1ba88(%rip), %rax     # 0x71c12
movq %rax, (%rsi)
movq %r13, 0x8(%rsi)
leaq -0x2e8(%rbp), %rcx
movq %r12, (%rcx)
movq %r12, 0x8(%rcx)
movl $0x3b4, %edx            # imm = 0x3B4
callq 0x5760
movq %r13, %r12
leaq 0x1ba5f(%rip), %r13     # 0x71c12
movb $0x0, -0x118(%rbp)
leaq 0x3489f(%rip), %rax     # 0x8aa60
movq %rax, -0x120(%rbp)
movq %r15, -0x110(%rbp)
leaq 0x1b1f1(%rip), %rax     # 0x713c7
movq %rax, -0x108(%rbp)
movabsq $-0x10000000000001, %rax # imm = 0xFFEFFFFFFFFFFFFF
movq %rax, -0x100(%rbp)
movsd 0x3521a(%rip), %xmm2    # 0x8b410
movsd %xmm2, -0xf8(%rbp)
movsd -0x38(%rbp), %xmm1
leaq -0x158(%rbp), %rdi
leaq -0x29(%rbp), %rsi
movsd 0x1b41a(%rip), %xmm0    # 0x71630
callq 0x6b8ea
leaq -0x208(%rbp), %rdx
movq %r13, (%rdx)
movq %r12, 0x8(%rdx)
leaq -0x100(%rbp), %rax
movq %rax, -0x50(%rbp)
xorl %eax, %eax
movb %al, -0x68(%rbp)
leaq 0x34898(%rip), %rcx     # 0x8aad8
movq %rcx, -0x70(%rbp)
movq %r15, -0x60(%rbp)
leaq -0x50(%rbp), %rsi
movq %rsi, -0x58(%rbp)
leaq -0x38(%rbp), %rsi
movq %rsi, -0x48(%rbp)
movb %al, -0x1c0(%rbp)
movq %rcx, -0x1c8(%rbp)
movq %r15, -0x1b8(%rbp)
leaq -0x48(%rbp), %rcx
movq %rcx, -0x1b0(%rbp)
leaq -0xf8(%rbp), %rcx
movq %rcx, -0x40(%rbp)
movb %al, -0x1a0(%rbp)
leaq 0x34a41(%rip), %rax     # 0x8acd0
movq %rax, -0x1a8(%rbp)
movq %r15, -0x198(%rbp)
leaq -0x40(%rbp), %rax
movq %rax, -0x190(%rbp)
subq $0x8, %rsp
leaq 0x1badc(%rip), %r10     # 0x71d8f
leaq 0x1c566(%rip), %r11     # 0x72820
leaq 0x1ba69(%rip), %r15     # 0x71d2a
leaq -0x158(%rbp), %rdi
leaq -0x120(%rbp), %rsi
movl $0x3b4, %ecx            # imm = 0x3B4
movl $0x1, %r8d
movl $0x8, %r9d
xorl %eax, %eax
pushq %r14
pushq %r10
pushq %rbx
pushq %r11
leaq -0x70(%rbp), %r10
pushq %r10
pushq %r15
pushq $0x3
callq 0x5740
addq $0x40, %rsp
leaq -0x148(%rbp), %rdi
callq 0x2e966
leaq -0x1f8(%rbp), %rdi
callq 0x1e76a
leaq -0x2a8(%rbp), %rdi
callq 0x12c6c
movq -0x140(%rbp), %rdi
leaq -0x130(%rbp), %rax
cmpq %rax, %rdi
leaq -0xe0(%rbp), %rbx
leaq -0xc0(%rbp), %r14
leaq -0xa0(%rbp), %r15
leaq -0x80(%rbp), %r12
je 0x56351
callq 0x5380
leaq -0x2d8(%rbp), %rdi
callq 0x22c7c
movq -0x90(%rbp), %rdi
cmpq %r12, %rdi
je 0x5636e
callq 0x5380
movq -0xb0(%rbp), %rdi
cmpq %r15, %rdi
je 0x5637f
callq 0x5380
movq -0xd0(%rbp), %rdi
cmpq %r14, %rdi
je 0x56390
callq 0x5380
movq -0xf0(%rbp), %rdi
cmpq %rbx, %rdi
je 0x563a1
callq 0x5380
leaq -0x188(%rbp), %rdi
callq 0x1e76a
addq $0x2f8, %rsp            # imm = 0x2F8
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
movq %rax, %rbx
leaq -0x148(%rbp), %rdi
jmp 0x563d7
jmp 0x56430
movq %rax, %rbx
leaq -0x110(%rbp), %rdi
callq 0x2e966
jmp 0x56433
movq %rax, %rbx
jmp 0x5644b
jmp 0x56498
movq %rax, %rbx
movq $-0xa0, %r14
movq -0x10(%r12), %rdi
cmpq %rdi, %r12
je 0x56401
callq 0x5380
addq $-0x20, %r12
addq $0x20, %r14
jne 0x563f2
jmp 0x564a7
movq %rax, %rbx
jmp 0x564bc
movq %rax, %rbx
jmp 0x564d4
movq %rax, %rbx
jmp 0x564ec
movq %rax, %rbx
jmp 0x56504
movq %rax, %rbx
leaq -0x1f8(%rbp), %rdi
callq 0x1e76a
leaq -0x2a8(%rbp), %rdi
callq 0x12c6c
movq -0x140(%rbp), %rdi
leaq -0x130(%rbp), %rax
cmpq %rax, %rdi
je 0x5649b
callq 0x5380
jmp 0x5649b
movq %rax, %rbx
cmpq %r14, %r15
je 0x564a7
addq $-0x10, %r14
leaq -0x2a8(%rbp), %r15
movq -0x10(%r14), %rdi
cmpq %rdi, %r14
je 0x56486
callq 0x5380
leaq -0x20(%r14), %rax
addq $-0x10, %r14
cmpq %r15, %r14
movq %rax, %r14
jne 0x56478
jmp 0x564a7
movq %rax, %rbx
leaq -0x2d8(%rbp), %rdi
callq 0x22c7c
movq -0x90(%rbp), %rdi
leaq -0x80(%rbp), %rax
cmpq %rax, %rdi
je 0x564bc
callq 0x5380
movq -0xb0(%rbp), %rdi
leaq -0xa0(%rbp), %rax
cmpq %rax, %rdi
je 0x564d4
callq 0x5380
movq -0xd0(%rbp), %rdi
leaq -0xc0(%rbp), %rax
cmpq %rax, %rdi
je 0x564ec
callq 0x5380
movq -0xf0(%rbp), %rdi
leaq -0xe0(%rbp), %rax
cmpq %rax, %rdi
je 0x56504
callq 0x5380
leaq -0x188(%rbp), %rdi
callq 0x1e76a
movq %rbx, %rdi
callq 0x56f0