// File: /workspace/github_cpp_makefile_star2_O2/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 $0x268, %rsp            # imm = 0x268
leaq -0xe8(%rbp), %rax
andl $0x0, (%rax)
andq $0x0, 0x8(%rax)
movq %rax, 0x10(%rax)
movq %rax, 0x18(%rax)
andq $0x0, 0x20(%rax)
leaq 0x13241(%rip), %rsi     # 0x53f2c
leaq -0xc0(%rbp), %rdi
leaq -0x1e0(%rbp), %rdx
callq 0x5160
leaq 0x12f04(%rip), %rsi     # 0x53c09
leaq -0xa0(%rbp), %rdi
leaq -0x1e0(%rbp), %rdx
callq 0x5160
leaq 0x12eda(%rip), %rsi     # 0x53bf9
leaq -0x80(%rbp), %rdi
leaq -0x1e0(%rbp), %rdx
callq 0x5160
leaq 0x122db(%rip), %rsi     # 0x53011
leaq -0x60(%rbp), %rdi
leaq -0x1e0(%rbp), %rdx
callq 0x5160
leaq 0x2f83b(%rip), %rsi     # 0x70588
leaq -0x1e0(%rbp), %r14
movq %r14, %rdi
callq 0x54f0
leaq -0x1c0(%rbp), %r15
leaq -0xc0(%rbp), %rsi
movq %r15, %rdi
callq 0x54f0
leaq -0x1a0(%rbp), %r15
leaq -0xa0(%rbp), %rsi
movq %r15, %rdi
callq 0x54f0
leaq -0x180(%rbp), %r15
leaq -0x80(%rbp), %rsi
movq %r15, %rdi
callq 0x54f0
leaq -0x160(%rbp), %r15
leaq -0x60(%rbp), %rsi
movq %r15, %rdi
callq 0x54f0
leaq -0x210(%rbp), %rdi
leaq -0x1e0(%rbp), %rsi
pushq $0x5
popq %rdx
leaq -0x140(%rbp), %rcx
leaq -0x110(%rbp), %r8
callq 0x4ed0a
movl $0x80, %ebx
leaq (%rbx,%rbp), %rdi
addq $-0x1e0, %rdi           # imm = 0xFE20
callq 0x57b8
addq $-0x20, %rbx
cmpq $-0x20, %rbx
jne 0x40dd7
leaq 0x2f790(%rip), %rsi     # 0x70588
leaq -0xf0(%rbp), %rdi
callq 0x1b5f0
leaq -0xc0(%rbp), %rsi
movq %rax, %rdi
callq 0x1b338
movabsq $-0x4010000000000000, %rbx # imm = 0xBFF0000000000000
movq %rbx, (%rax)
leaq -0xf0(%rbp), %rdi
leaq -0x60(%rbp), %rsi
callq 0x1b5f0
leaq 0x2f751(%rip), %rsi     # 0x70588
movq %rax, %rdi
callq 0x1b338
movq %rbx, (%rax)
leaq -0xf0(%rbp), %rdi
leaq -0xc0(%rbp), %rsi
callq 0x1b5f0
leaq -0xa0(%rbp), %rsi
movq %rax, %rdi
callq 0x1b338
movq %rbx, (%rax)
leaq -0xf0(%rbp), %rdi
leaq -0xa0(%rbp), %rsi
callq 0x1b5f0
leaq -0x80(%rbp), %rsi
movq %rax, %rdi
callq 0x1b338
movq %rbx, (%rax)
leaq -0xf0(%rbp), %rdi
leaq -0x80(%rbp), %rsi
callq 0x1b5f0
leaq -0x60(%rbp), %rsi
movq %rax, %rdi
callq 0x1b338
movq %rbx, (%rax)
leaq 0x12d90(%rip), %rsi     # 0x53c3f
leaq -0x110(%rbp), %rdi
leaq -0x1e0(%rbp), %rdx
callq 0x5160
leaq 0x2f6bf(%rip), %rdx     # 0x70588
leaq -0x1e0(%rbp), %rdi
leaq -0x110(%rbp), %rsi
leaq -0x210(%rbp), %rcx
pushq $0x1
popq %r8
xorl %r9d, %r9d
callq 0xf742
leaq -0x138(%rbp), %rax
andl $0x0, (%rax)
andq $0x0, 0x8(%rax)
movq %rax, 0x10(%rax)
movq %rax, 0x18(%rax)
andq $0x0, 0x20(%rax)
leaq -0xf0(%rbp), %rdi
leaq -0x1e0(%rbp), %rsi
leaq -0x140(%rbp), %rdx
callq 0x18d71
movsd %xmm0, -0x40(%rbp)
movq 0x2f614(%rip), %rdi     # 0x70540
leaq 0x12c4d(%rip), %rbx     # 0x53b80
leaq -0x290(%rbp), %rsi
movq %rbx, (%rsi)
leaq 0x12c4a(%rip), %r14     # 0x53b8e
movq %r14, 0x8(%rsi)
leaq 0x12ac6(%rip), %r12     # 0x53a15
leaq -0x280(%rbp), %rcx
movq %r12, (%rcx)
movq %r12, 0x8(%rcx)
movl $0x3b3, %edx            # imm = 0x3B3
callq 0x5710
leaq -0x270(%rbp), %rdi
movb $0x0, 0x8(%rdi)
leaq 0x2eb67(%rip), %rax     # 0x6fae0
movq %rax, (%rdi)
movq 0x2f02d(%rip), %rax     # 0x6ffb0
movq %rax, 0x10(%rdi)
leaq 0x123c9(%rip), %r13     # 0x53357
movq %r13, 0x18(%rdi)
leaq -0x250(%rbp), %rsi
movq %rbx, (%rsi)
leaq -0x38(%rbp), %r9
andl $0x0, (%r9)
movq %r14, 0x8(%rsi)
movl -0x118(%rbp), %eax
leaq -0x30(%rbp), %r15
movl %eax, (%r15)
subq $0x8, %rsp
leaq 0x12cc6(%rip), %rax     # 0x53c86
leaq 0x13a71(%rip), %r10     # 0x54a38
pushq $0x1
popq %rcx
pushq $0x2
popq %r8
movl $0x3b3, %edx            # imm = 0x3B3
pushq %rax
pushq %r15
pushq %r10
callq 0x4ea09
addq $0x20, %rsp
movq 0x2f558(%rip), %rdi     # 0x70540
leaq -0x240(%rbp), %rsi
movq %rbx, (%rsi)
movq %r14, 0x8(%rsi)
leaq -0x230(%rbp), %rcx
movq %r12, (%rcx)
movq %r12, 0x8(%rcx)
movl $0x3b4, %edx            # imm = 0x3B4
callq 0x5710
leaq -0x270(%rbp), %rdi
movb $0x0, 0x8(%rdi)
leaq 0x2eac0(%rip), %rax     # 0x6fae0
movq %rax, (%rdi)
movq 0x2ef86(%rip), %rax     # 0x6ffb0
movq %rax, 0x10(%rdi)
movq %r13, 0x18(%rdi)
leaq -0x220(%rbp), %rsi
movq %rbx, (%rsi)
movq %r14, 0x8(%rsi)
movabsq $-0x10000000000001, %rax # imm = 0xFFEFFFFFFFFFFFFF
leaq -0x38(%rbp), %r9
movq %rax, (%r9)
movsd 0x2f3a7(%rip), %xmm0    # 0x70400
movsd %xmm0, -0x30(%rbp)
subq $0x8, %rsp
leaq 0x12c94(%rip), %rax     # 0x53cfd
leaq 0x1371e(%rip), %r10     # 0x5478e
leaq -0x40(%rbp), %r11
leaq 0x12c1d(%rip), %rbx     # 0x53c98
pushq $0x1
popq %rcx
pushq $0x8
popq %r8
movl $0x3b4, %edx            # imm = 0x3B4
pushq %rax
pushq %r15
pushq %r10
pushq %r11
pushq %rbx
callq 0x4eaf1
addq $0x30, %rsp
leaq -0x140(%rbp), %rdi
callq 0x1bb0c
leaq -0x1e0(%rbp), %rdi
callq 0x10c24
leaq -0x110(%rbp), %rdi
callq 0x57b8
leaq -0x210(%rbp), %rdi
callq 0x200e8
leaq -0x60(%rbp), %rdi
callq 0x57b8
leaq -0x80(%rbp), %rdi
callq 0x57b8
leaq -0xa0(%rbp), %rdi
callq 0x57b8
leaq -0xc0(%rbp), %rdi
callq 0x57b8
leaq -0xf0(%rbp), %rdi
callq 0x1bb0c
addq $0x268, %rsp            # imm = 0x268
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
jmp 0x41159
jmp 0x41159
movq %rax, %rbx
jmp 0x41174
jmp 0x41198
movq %rax, %rbx
movl $0x80, %r14d
leaq (%r14,%rbp), %rdi
addq $-0x1e0, %rdi           # imm = 0xFE20
callq 0x57b8
addq $-0x20, %r14
cmpq $-0x20, %r14
jne 0x41124
jmp 0x411a7
movq %rax, %rbx
jmp 0x411a7
movq %rax, %rbx
jmp 0x411b0
movq %rax, %rbx
jmp 0x411b9
movq %rax, %rbx
jmp 0x411c5
movq %rax, %rbx
jmp 0x411d1
movq %rax, %rbx
leaq -0x140(%rbp), %rdi
callq 0x1bb0c
leaq -0x1e0(%rbp), %rdi
callq 0x10c24
leaq -0x110(%rbp), %rdi
callq 0x57b8
jmp 0x4119b
movq %rax, %rbx
addq $-0x20, %r15
movq %r15, %rdi
callq 0x57b8
cmpq %r14, %r15
jne 0x41185
jmp 0x411a7
movq %rax, %rbx
leaq -0x210(%rbp), %rdi
callq 0x200e8
leaq -0x60(%rbp), %rdi
callq 0x57b8
leaq -0x80(%rbp), %rdi
callq 0x57b8
leaq -0xa0(%rbp), %rdi
callq 0x57b8
leaq -0xc0(%rbp), %rdi
callq 0x57b8
leaq -0xf0(%rbp), %rdi
callq 0x1bb0c
movq %rbx, %rdi
callq 0x56b0