// File: /workspace/github_cpp_makefile_star2_O3/aalto-speech[P]ftk/test/emtest.cc
// Function: TransitionViterbiTest6::test_method()
BOOST_AUTO_TEST_CASE(TransitionViterbiTest6)
{
    string str1("a"); string str2("b");
    string str3("c"); string str4("d");
    set<string> vocab = {start_end,str1,str2,str3,str4};

    transitions_t transitions;
    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);
    vector<string> best_path;
    flt_type lp = viterbi(transitions, fg, best_path);
    BOOST_CHECK_EQUAL(0, (int)best_path.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 $0x2e8, %rsp            # imm = 0x2E8
leaq -0xe0(%rbp), %rax
movq %rax, -0x10(%rax)
leaq 0x2507c(%rip), %rsi     # 0x70fee
leaq 0x25076(%rip), %rdx     # 0x70fef
leaq -0xf0(%rbp), %rdi
callq 0x95e6
leaq -0xc0(%rbp), %rax
movq %rax, -0x10(%rax)
leaq 0x24d34(%rip), %rsi     # 0x70ccb
leaq 0x24d2e(%rip), %rdx     # 0x70ccc
leaq -0xd0(%rbp), %rdi
callq 0x95e6
leaq -0xa0(%rbp), %rax
movq %rax, -0x10(%rax)
leaq 0x24cff(%rip), %rsi     # 0x70cbb
leaq 0x24cf9(%rip), %rdx     # 0x70cbc
leaq -0xb0(%rbp), %rdi
callq 0x95e6
leaq -0x80(%rbp), %rax
movq %rax, -0x10(%rax)
leaq 0x24033(%rip), %rsi     # 0x70011
leaq 0x2402d(%rip), %rdx     # 0x70012
leaq -0x90(%rbp), %rdi
callq 0x95e6
leaq -0x288(%rbp), %rax
movq %rax, -0x10(%rax)
movq 0x3e595(%rip), %rsi     # 0x8a598
movq 0x3e596(%rip), %rdx     # 0x8a5a0
addq %rsi, %rdx
leaq -0x298(%rbp), %r14
movq %r14, %rdi
callq 0x9548
leaq -0x278(%rbp), %r15
leaq -0x268(%rbp), %rax
movq %rax, -0x10(%rax)
movq -0xf0(%rbp), %rsi
movq -0xe8(%rbp), %rdx
addq %rsi, %rdx
movq %r15, %rdi
callq 0x9548
leaq -0x258(%rbp), %r15
leaq -0x248(%rbp), %rax
movq %rax, -0x10(%rax)
movq -0xd0(%rbp), %rsi
movq -0xc8(%rbp), %rdx
addq %rsi, %rdx
movq %r15, %rdi
callq 0x9548
leaq -0x238(%rbp), %r15
leaq -0x228(%rbp), %rax
movq %rax, -0x10(%rax)
movq -0xb0(%rbp), %rsi
movq -0xa8(%rbp), %rdx
addq %rsi, %rdx
movq %r15, %rdi
callq 0x9548
leaq -0x218(%rbp), %r15
leaq -0x208(%rbp), %r12
movq %r12, -0x10(%r12)
movq -0x90(%rbp), %rsi
movq -0x88(%rbp), %rdx
addq %rsi, %rdx
movq %r15, %rdi
callq 0x9548
leaq -0x2c8(%rbp), %rdi
leaq -0x298(%rbp), %rsi
leaq -0x190(%rbp), %rcx
leaq -0x70(%rbp), %r8
movl $0x5, %edx
callq 0x6b15e
leaq -0x208(%rbp), %rbx
xorl %r14d, %r14d
movq -0x218(%rbp,%r14), %rdi
leaq (%rbx,%r14), %rax
cmpq %rdi, %rax
je 0x4c10c
callq 0x5380
addq $-0x20, %r14
cmpq $-0xa0, %r14
jne 0x4c0f6
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 0x3e459(%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 0x3e417(%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 0x24af4(%rip), %rsi     # 0x70d01
leaq 0x24af2(%rip), %rdx     # 0x70d06
leaq -0x148(%rbp), %rdi
callq 0x95e6
leaq 0x3e371(%rip), %rdx     # 0x8a598
leaq -0x298(%rbp), %rdi
leaq -0x148(%rbp), %rsi
leaq -0x2c8(%rbp), %rcx
movl $0x1, %r8d
xorl %r9d, %r9d
callq 0x11002
xorps %xmm0, %xmm0
leaq -0x160(%rbp), %rdx
movaps %xmm0, (%rdx)
movq $0x0, 0x10(%rdx)
leaq -0x190(%rbp), %rdi
leaq -0x298(%rbp), %rsi
movl $0x1, %ecx
callq 0x1a5cf
movsd %xmm0, -0x38(%rbp)
movsd -0x38(%rbp), %xmm0
movsd %xmm0, -0x128(%rbp)
movq 0x3e2c0(%rip), %rdi     # 0x8a550
leaq 0x249ab(%rip), %rax     # 0x70c42
leaq -0x308(%rbp), %rsi
movq %rax, (%rsi)
leaq 0x249a8(%rip), %r13     # 0x70c50
movq %r13, 0x8(%rsi)
leaq 0x247bc(%rip), %r12     # 0x70a6f
leaq -0x2f8(%rbp), %rcx
movq %r12, (%rcx)
movq %r12, 0x8(%rcx)
movl $0x2df, %edx            # imm = 0x2DF
callq 0x5760
xorl %eax, %eax
leaq -0x1c8(%rbp), %r14
movb %al, 0x8(%r14)
leaq 0x3d7f1(%rip), %rcx     # 0x89ad0
movq %rcx, (%r14)
movq 0x3dcc7(%rip), %r15     # 0x89fb0
movq %r15, 0x10(%r14)
leaq 0x240d3(%rip), %rcx     # 0x703c7
movq %rcx, 0x18(%r14)
leaq -0x48(%rbp), %rdx
movq -0x158(%rbp), %rcx
subq -0x160(%rbp), %rcx
movl $0x0, (%rdx)
shrq $0x5, %rcx
leaq -0x40(%rbp), %r8
testl %ecx, %ecx
leaq -0x120(%rbp), %rdi
sete (%rdi)
movl %ecx, (%r8)
xorps %xmm0, %xmm0
movups %xmm0, 0x8(%rdi)
leaq -0x1f8(%rbp), %rcx
movq %rdx, (%rcx)
movb %al, -0x68(%rbp)
leaq 0x3d8de(%rip), %rsi     # 0x89c20
movq %rsi, -0x70(%rbp)
movq %r15, -0x60(%rbp)
movq %rcx, -0x58(%rbp)
leaq -0x1e8(%rbp), %rbx
movb %al, 0x8(%rbx)
leaq -0x1a8(%rbp), %rdx
leaq 0x248dc(%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 0x24e2d(%rip), %r10     # 0x711b7
leaq 0x25769(%rip), %r11     # 0x71afa
movl $0x2df, %ecx            # imm = 0x2DF
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 0x3e180(%rip), %rdi     # 0x8a550
leaq -0x2e8(%rbp), %rsi
leaq 0x24864(%rip), %rax     # 0x70c42
movq %rax, (%rsi)
movq %r13, 0x8(%rsi)
leaq -0x2d8(%rbp), %rcx
movq %r12, (%rcx)
movq %r12, 0x8(%rcx)
movl $0x2e0, %edx            # imm = 0x2E0
callq 0x5760
leaq 0x2483e(%rip), %r12     # 0x70c42
movb $0x0, -0x118(%rbp)
leaq 0x3d6be(%rip), %rax     # 0x89ad0
movq %rax, -0x120(%rbp)
movq %r15, -0x110(%rbp)
leaq 0x23fa0(%rip), %rax     # 0x703c7
movq %rax, -0x108(%rbp)
movabsq $-0x10000000000001, %rax # imm = 0xFFEFFFFFFFFFFFFF
movq %rax, -0x100(%rbp)
movsd 0x3dfc9(%rip), %xmm2    # 0x8a410
movsd %xmm2, -0xf8(%rbp)
leaq -0x1a8(%rbp), %rdi
leaq -0x29(%rbp), %rsi
movsd 0x241ce(%rip), %xmm0    # 0x70630
movsd -0x38(%rbp), %xmm1
callq 0x6b55a
leaq -0x1f8(%rbp), %rdx
movq %r12, (%rdx)
movq %r13, 0x8(%rdx)
leaq -0x100(%rbp), %rax
movq %rax, -0x50(%rbp)
xorl %eax, %eax
movb %al, -0x68(%rbp)
leaq 0x3d68f(%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, -0x1e0(%rbp)
movq %rcx, -0x1e8(%rbp)
movq %r15, -0x1d8(%rbp)
leaq -0x48(%rbp), %rcx
movq %rcx, -0x1d0(%rbp)
leaq -0xf8(%rbp), %rcx
movq %rcx, -0x40(%rbp)
movb %al, -0x1c0(%rbp)
leaq 0x3d7ed(%rip), %rax     # 0x89cd0
movq %rax, -0x1c8(%rbp)
movq %r15, -0x1b8(%rbp)
leaq -0x40(%rbp), %rax
movq %rax, -0x1b0(%rbp)
subq $0x8, %rsp
leaq 0x248b8(%rip), %r10     # 0x70dbf
leaq 0x25342(%rip), %r11     # 0x71850
leaq 0x24845(%rip), %r15     # 0x70d5a
leaq -0x1a8(%rbp), %rdi
leaq -0x120(%rbp), %rsi
movl $0x2e0, %ecx            # imm = 0x2E0
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 -0x198(%rbp), %rdi
callq 0x2e804
leaq -0x160(%rbp), %rdi
callq 0xab52
leaq -0x298(%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 0x4c5a5
callq 0x5380
leaq -0x190(%rbp), %rdi
callq 0x1e684
leaq -0x2c8(%rbp), %rdi
callq 0x22afc
movq -0x90(%rbp), %rdi
cmpq %r12, %rdi
je 0x4c5ce
callq 0x5380
movq -0xb0(%rbp), %rdi
cmpq %r15, %rdi
je 0x4c5df
callq 0x5380
movq -0xd0(%rbp), %rdi
cmpq %r14, %rdi
je 0x4c5f0
callq 0x5380
movq -0xf0(%rbp), %rdi
cmpq %rbx, %rdi
je 0x4c601
callq 0x5380
addq $0x2e8, %rsp            # imm = 0x2E8
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
movq %rax, %rbx
leaq -0x198(%rbp), %rdi
jmp 0x4c62b
jmp 0x4c684
movq %rax, %rbx
leaq -0x110(%rbp), %rdi
callq 0x2e804
jmp 0x4c687
movq %rax, %rbx
jmp 0x4c69f
jmp 0x4c6e0
movq %rax, %rbx
movq $-0xa0, %r14
movq -0x10(%r12), %rdi
cmpq %rdi, %r12
je 0x4c655
callq 0x5380
addq $-0x20, %r12
addq $0x20, %r14
jne 0x4c646
jmp 0x4c6fb
movq %rax, %rbx
jmp 0x4c6fb
movq %rax, %rbx
jmp 0x4c710
movq %rax, %rbx
jmp 0x4c728
movq %rax, %rbx
jmp 0x4c740
movq %rax, %rbx
leaq -0x160(%rbp), %rdi
callq 0xab52
leaq -0x298(%rbp), %rdi
callq 0x12b80
movq -0x148(%rbp), %rdi
leaq -0x138(%rbp), %rax
cmpq %rax, %rdi
je 0x4c6e3
callq 0x5380
jmp 0x4c6e3
movq %rax, %rbx
addq $-0x10, %r15
movq -0x10(%r15), %rdi
cmpq %rdi, %r15
je 0x4c6ce
callq 0x5380
leaq -0x20(%r15), %rax
addq $-0x10, %r15
cmpq %r14, %r15
movq %rax, %r15
jne 0x4c6c0
jmp 0x4c6fb
movq %rax, %rbx
leaq -0x190(%rbp), %rdi
callq 0x1e684
leaq -0x2c8(%rbp), %rdi
callq 0x22afc
movq -0x90(%rbp), %rdi
leaq -0x80(%rbp), %rax
cmpq %rax, %rdi
je 0x4c710
callq 0x5380
movq -0xb0(%rbp), %rdi
leaq -0xa0(%rbp), %rax
cmpq %rax, %rdi
je 0x4c728
callq 0x5380
movq -0xd0(%rbp), %rdi
leaq -0xc0(%rbp), %rax
cmpq %rax, %rdi
je 0x4c740
callq 0x5380
movq -0xf0(%rbp), %rdi
leaq -0xe0(%rbp), %rax
cmpq %rax, %rdi
je 0x4c758
callq 0x5380
movq %rbx, %rdi
callq 0x56f0