// File: /workspace/github_cpp_makefile_star2_O3/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 -0x188(%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 0x1b5e5(%rip), %rsi     # 0x70fee
leaq 0x1b5df(%rip), %rdx     # 0x70fef
leaq -0xf0(%rbp), %rdi
callq 0x95e6
leaq -0xc0(%rbp), %rax
movq %rax, -0x10(%rax)
leaq 0x1b29d(%rip), %rsi     # 0x70ccb
leaq 0x1b297(%rip), %rdx     # 0x70ccc
leaq -0xd0(%rbp), %rdi
callq 0x95e6
leaq -0xa0(%rbp), %rax
movq %rax, -0x10(%rax)
leaq 0x1b268(%rip), %rsi     # 0x70cbb
leaq 0x1b262(%rip), %rdx     # 0x70cbc
leaq -0xb0(%rbp), %rdi
callq 0x95e6
leaq -0x80(%rbp), %rax
movq %rax, -0x10(%rax)
leaq 0x1a59c(%rip), %rsi     # 0x70011
leaq 0x1a596(%rip), %rdx     # 0x70012
leaq -0x90(%rbp), %rdi
callq 0x95e6
leaq -0x2a0(%rbp), %rax
movq %rax, -0x10(%rax)
movq 0x34afe(%rip), %rsi     # 0x8a598
movq 0x34aff(%rip), %rdx     # 0x8a5a0
addq %rsi, %rdx
leaq -0x2b0(%rbp), %r14
movq %r14, %rdi
callq 0x9548
leaq -0x290(%rbp), %r15
leaq -0x280(%rbp), %rax
movq %rax, -0x10(%rax)
movq -0xf0(%rbp), %rsi
movq -0xe8(%rbp), %rdx
addq %rsi, %rdx
movq %r15, %rdi
callq 0x9548
leaq -0x270(%rbp), %r15
leaq -0x260(%rbp), %rax
movq %rax, -0x10(%rax)
movq -0xd0(%rbp), %rsi
movq -0xc8(%rbp), %rdx
addq %rsi, %rdx
movq %r15, %rdi
callq 0x9548
leaq -0x250(%rbp), %r15
leaq -0x240(%rbp), %rax
movq %rax, -0x10(%rax)
movq -0xb0(%rbp), %rsi
movq -0xa8(%rbp), %rdx
addq %rsi, %rdx
movq %r15, %rdi
callq 0x9548
leaq -0x230(%rbp), %r15
leaq -0x220(%rbp), %r12
movq %r12, -0x10(%r12)
movq -0x90(%rbp), %rsi
movq -0x88(%rbp), %rdx
addq %rsi, %rdx
movq %r15, %rdi
callq 0x9548
leaq -0x2e0(%rbp), %rdi
leaq -0x2b0(%rbp), %rsi
leaq -0x200(%rbp), %rcx
leaq -0x70(%rbp), %r8
movl $0x5, %edx
callq 0x6b15e
leaq -0x220(%rbp), %rbx
xorl %r14d, %r14d
movq -0x230(%rbp,%r14), %rdi
leaq (%rbx,%r14), %rax
cmpq %rdi, %rax
je 0x55ba3
callq 0x5380
addq $-0x20, %r14
cmpq $-0xa0, %r14
jne 0x55b8d
leaq 0x349e1(%rip), %rsi     # 0x8a598
leaq -0x190(%rbp), %rdi
callq 0x1e0b0
leaq -0xf0(%rbp), %rsi
movq %rax, %rdi
callq 0x1dd1e
movabsq $-0x4010000000000000, %rbx # imm = 0xBFF0000000000000
movq %rbx, (%rax)
leaq -0x190(%rbp), %rdi
leaq -0x90(%rbp), %rsi
callq 0x1e0b0
leaq 0x3499f(%rip), %rsi     # 0x8a598
movq %rax, %rdi
callq 0x1dd1e
movq %rbx, (%rax)
leaq -0x190(%rbp), %rdi
leaq -0xf0(%rbp), %rsi
callq 0x1e0b0
leaq -0xd0(%rbp), %rsi
movq %rax, %rdi
callq 0x1dd1e
movq %rbx, (%rax)
leaq -0x190(%rbp), %rdi
leaq -0xd0(%rbp), %rsi
callq 0x1e0b0
leaq -0xb0(%rbp), %rsi
movq %rax, %rdi
callq 0x1dd1e
movq %rbx, (%rax)
leaq -0x190(%rbp), %rdi
leaq -0xb0(%rbp), %rsi
callq 0x1e0b0
leaq -0x90(%rbp), %rsi
movq %rax, %rdi
callq 0x1dd1e
movq %rbx, (%rax)
leaq -0x138(%rbp), %rax
movq %rax, -0x10(%rax)
leaq 0x1b07c(%rip), %rsi     # 0x70d01
leaq 0x1b07a(%rip), %rdx     # 0x70d06
leaq -0x148(%rbp), %rdi
callq 0x95e6
leaq 0x348f9(%rip), %rdx     # 0x8a598
leaq -0x2b0(%rbp), %rdi
leaq -0x148(%rbp), %rsi
leaq -0x2e0(%rbp), %rcx
movl $0x1, %r8d
xorl %r9d, %r9d
callq 0x11002
leaq -0x1f8(%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 -0x190(%rbp), %rdi
leaq -0x2b0(%rbp), %rsi
leaq -0x200(%rbp), %rdx
callq 0x1af02
movsd %xmm0, -0x38(%rbp)
movsd -0x38(%rbp), %xmm0
movsd %xmm0, -0x128(%rbp)
movq 0x3483c(%rip), %rdi     # 0x8a550
leaq 0x1af27(%rip), %rax     # 0x70c42
leaq -0x320(%rbp), %rsi
movq %rax, (%rsi)
leaq 0x1af24(%rip), %r13     # 0x70c50
movq %r13, 0x8(%rsi)
leaq 0x1ad38(%rip), %r12     # 0x70a6f
leaq -0x310(%rbp), %rcx
movq %r12, (%rcx)
movq %r12, 0x8(%rcx)
movl $0x3b3, %edx            # imm = 0x3B3
callq 0x5760
xorl %eax, %eax
leaq -0x1b0(%rbp), %r14
movb %al, 0x8(%r14)
leaq 0x33d6d(%rip), %rcx     # 0x89ad0
movq %rcx, (%r14)
movq 0x34243(%rip), %r15     # 0x89fb0
movq %r15, 0x10(%r14)
leaq 0x1a64f(%rip), %rcx     # 0x703c7
movq %rcx, 0x18(%r14)
leaq -0x48(%rbp), %rdx
movl $0x0, (%rdx)
movl -0x1d8(%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 -0x210(%rbp), %rcx
movq %rdx, (%rcx)
movb %al, -0x68(%rbp)
leaq 0x33e66(%rip), %rsi     # 0x89c20
movq %rsi, -0x70(%rbp)
movq %r15, -0x60(%rbp)
movq %rcx, -0x58(%rbp)
leaq -0x1d0(%rbp), %rbx
movb %al, 0x8(%rbx)
leaq -0x160(%rbp), %rdx
leaq 0x1ae64(%rip), %rax     # 0x70c42
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 0x1af46(%rip), %r10     # 0x70d48
leaq 0x1bcf1(%rip), %r11     # 0x71afa
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 0x2e804
movq 0x34708(%rip), %rdi     # 0x8a550
leaq -0x300(%rbp), %rsi
leaq 0x1adec(%rip), %rax     # 0x70c42
movq %rax, (%rsi)
movq %r13, 0x8(%rsi)
leaq -0x2f0(%rbp), %rcx
movq %r12, (%rcx)
movq %r12, 0x8(%rcx)
movl $0x3b4, %edx            # imm = 0x3B4
callq 0x5760
movq %r13, %r12
leaq 0x1adc3(%rip), %r13     # 0x70c42
movb $0x0, -0x118(%rbp)
leaq 0x33c43(%rip), %rax     # 0x89ad0
movq %rax, -0x120(%rbp)
movq %r15, -0x110(%rbp)
leaq 0x1a525(%rip), %rax     # 0x703c7
movq %rax, -0x108(%rbp)
movabsq $-0x10000000000001, %rax # imm = 0xFFEFFFFFFFFFFFFF
movq %rax, -0x100(%rbp)
movsd 0x3454e(%rip), %xmm2    # 0x8a410
movsd %xmm2, -0xf8(%rbp)
leaq -0x160(%rbp), %rdi
leaq -0x29(%rbp), %rsi
movsd 0x1a753(%rip), %xmm0    # 0x70630
movsd -0x38(%rbp), %xmm1
callq 0x6b55a
leaq -0x210(%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 0x33c14(%rip), %rcx     # 0x89b20
movq %rcx, -0x70(%rbp)
movq %r15, -0x60(%rbp)
leaq -0x50(%rbp), %rsi
movq %rsi, -0x58(%rbp)
leaq -0x128(%rbp), %rsi
movq %rsi, -0x48(%rbp)
movb %al, -0x1c8(%rbp)
movq %rcx, -0x1d0(%rbp)
movq %r15, -0x1c0(%rbp)
leaq -0x48(%rbp), %rcx
movq %rcx, -0x1b8(%rbp)
leaq -0xf8(%rbp), %rcx
movq %rcx, -0x40(%rbp)
movb %al, -0x1a8(%rbp)
leaq 0x33d72(%rip), %rax     # 0x89cd0
movq %rax, -0x1b0(%rbp)
movq %r15, -0x1a0(%rbp)
leaq -0x40(%rbp), %rax
movq %rax, -0x198(%rbp)
subq $0x8, %rsp
leaq 0x1ae3d(%rip), %r10     # 0x70dbf
leaq 0x1b8c7(%rip), %r11     # 0x71850
leaq 0x1adca(%rip), %r15     # 0x70d5a
leaq -0x160(%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 -0x150(%rbp), %rdi
callq 0x2e804
leaq -0x200(%rbp), %rdi
callq 0x1e684
leaq -0x2b0(%rbp), %rdi
callq 0x12b80
movq -0x148(%rbp), %rdi
leaq -0x138(%rbp), %rax
cmpq %rax, %rdi
leaq -0xe0(%rbp), %rbx
leaq -0xc0(%rbp), %r14
leaq -0xa0(%rbp), %r15
leaq -0x80(%rbp), %r12
je 0x56020
callq 0x5380
leaq -0x2e0(%rbp), %rdi
callq 0x22afc
movq -0x90(%rbp), %rdi
cmpq %r12, %rdi
je 0x5603d
callq 0x5380
movq -0xb0(%rbp), %rdi
cmpq %r15, %rdi
je 0x5604e
callq 0x5380
movq -0xd0(%rbp), %rdi
cmpq %r14, %rdi
je 0x5605f
callq 0x5380
movq -0xf0(%rbp), %rdi
cmpq %rbx, %rdi
je 0x56070
callq 0x5380
leaq -0x190(%rbp), %rdi
callq 0x1e684
addq $0x2f8, %rsp            # imm = 0x2F8
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
movq %rax, %rbx
leaq -0x150(%rbp), %rdi
jmp 0x560a6
jmp 0x56107
movq %rax, %rbx
leaq -0x110(%rbp), %rdi
callq 0x2e804
jmp 0x5610a
movq %rax, %rbx
jmp 0x56122
jmp 0x56163
movq %rax, %rbx
movq $-0xa0, %r14
movq -0x10(%r12), %rdi
cmpq %rdi, %r12
je 0x560d0
callq 0x5380
addq $-0x20, %r12
addq $0x20, %r14
jne 0x560c1
jmp 0x56172
movq %rax, %rbx
jmp 0x56172
movq %rax, %rbx
jmp 0x56187
movq %rax, %rbx
jmp 0x5619f
movq %rax, %rbx
jmp 0x561b7
movq %rax, %rbx
jmp 0x561cf
movq %rax, %rbx
leaq -0x200(%rbp), %rdi
callq 0x1e684
leaq -0x2b0(%rbp), %rdi
callq 0x12b80
movq -0x148(%rbp), %rdi
leaq -0x138(%rbp), %rax
cmpq %rax, %rdi
je 0x56166
callq 0x5380
jmp 0x56166
movq %rax, %rbx
addq $-0x10, %r15
movq -0x10(%r15), %rdi
cmpq %rdi, %r15
je 0x56151
callq 0x5380
leaq -0x20(%r15), %rax
addq $-0x10, %r15
cmpq %r14, %r15
movq %rax, %r15
jne 0x56143
jmp 0x56172
movq %rax, %rbx
leaq -0x2e0(%rbp), %rdi
callq 0x22afc
movq -0x90(%rbp), %rdi
leaq -0x80(%rbp), %rax
cmpq %rax, %rdi
je 0x56187
callq 0x5380
movq -0xb0(%rbp), %rdi
leaq -0xa0(%rbp), %rax
cmpq %rax, %rdi
je 0x5619f
callq 0x5380
movq -0xd0(%rbp), %rdi
leaq -0xc0(%rbp), %rax
cmpq %rax, %rdi
je 0x561b7
callq 0x5380
movq -0xf0(%rbp), %rdi
leaq -0xe0(%rbp), %rax
cmpq %rax, %rdi
je 0x561cf
callq 0x5380
leaq -0x190(%rbp), %rdi
callq 0x1e684
movq %rbx, %rdi
callq 0x56f0