// File: /workspace/github_cpp_makefile_star2_O2/aalto-speech[P]ftk/test/emtest.cc
// Function: TransitionViterbiTest5::test_method()
BOOST_AUTO_TEST_CASE(TransitionViterbiTest5)
{
    string str1("a");
    set<string> vocab = {start_end,str1};

    transitions_t transitions;
    transitions[start_end][str1] = -1.0;
    transitions[str1][start_end] = -1.0;
    string sentence("a");
    FactorGraph fg(sentence, start_end, vocab, 1);
    vector<string> best_path;
    flt_type lp = viterbi(transitions, fg, best_path);
    BOOST_CHECK_EQUAL(3, (int)best_path.size());
    BOOST_CHECK_EQUAL(start_end, best_path[0]);
    BOOST_CHECK_EQUAL(str1, best_path[1]);
    BOOST_CHECK_EQUAL(start_end, best_path[2]);
    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 $0x268, %rsp            # imm = 0x268
leaq 0x19561(%rip), %rsi     # 0x53f2c
leaq -0x80(%rbp), %rdi
leaq -0x168(%rbp), %rdx
callq 0x5160
leaq 0x35ba6(%rip), %rsi     # 0x70588
leaq -0x168(%rbp), %rdi
callq 0x54f0
leaq -0x148(%rbp), %rdi
leaq -0x80(%rbp), %rsi
callq 0x54f0
leaq -0x198(%rbp), %rdi
leaq -0x168(%rbp), %rsi
pushq $0x2
popq %rdx
leaq -0xf0(%rbp), %rcx
leaq -0xc0(%rbp), %r8
callq 0x4ed0a
pushq $0x20
popq %rbx
leaq (%rbx,%rbp), %rdi
addq $-0x168, %rdi           # imm = 0xFE98
callq 0x57b8
addq $-0x20, %rbx
cmpq $-0x20, %rbx
jne 0x3aa25
leaq -0xe8(%rbp), %rax
andl $0x0, (%rax)
andq $0x0, 0x8(%rax)
movq %rax, 0x10(%rax)
movq %rax, 0x18(%rax)
andq $0x0, 0x20(%rax)
leaq 0x35b26(%rip), %rsi     # 0x70588
leaq -0xf0(%rbp), %rdi
callq 0x1b5f0
leaq -0x80(%rbp), %rsi
movq %rax, %rdi
callq 0x1b338
movabsq $-0x4010000000000000, %rbx # imm = 0xBFF0000000000000
movq %rbx, (%rax)
leaq -0xf0(%rbp), %rdi
leaq -0x80(%rbp), %rsi
callq 0x1b5f0
leaq 0x35aea(%rip), %rsi     # 0x70588
movq %rax, %rdi
callq 0x1b338
movq %rbx, (%rax)
leaq 0x1947c(%rip), %rsi     # 0x53f2c
leaq -0xc0(%rbp), %rdi
leaq -0x168(%rbp), %rdx
callq 0x5160
leaq 0x35abe(%rip), %rdx     # 0x70588
leaq -0x168(%rbp), %rdi
leaq -0xc0(%rbp), %rsi
leaq -0x198(%rbp), %rcx
pushq $0x1
popq %r8
xorl %r9d, %r9d
callq 0xf742
xorps %xmm0, %xmm0
leaq -0x50(%rbp), %rdx
movaps %xmm0, (%rdx)
andq $0x0, 0x10(%rdx)
leaq -0xf0(%rbp), %rdi
leaq -0x168(%rbp), %rsi
pushq $0x1
popq %rcx
callq 0x18633
movsd %xmm0, -0x60(%rbp)
movq 0x35a24(%rip), %rdi     # 0x70540
leaq 0x1905d(%rip), %rbx     # 0x53b80
leaq -0x288(%rbp), %rsi
movq %rbx, (%rsi)
leaq 0x1905a(%rip), %r14     # 0x53b8e
movq %r14, 0x8(%rsi)
leaq 0x18ed6(%rip), %r12     # 0x53a15
leaq -0x278(%rbp), %rcx
movq %r12, (%rcx)
movq %r12, 0x8(%rcx)
movl $0x2c7, %edx            # imm = 0x2C7
callq 0x5710
leaq -0xa0(%rbp), %rdi
movb $0x0, 0x8(%rdi)
leaq 0x34f77(%rip), %rax     # 0x6fae0
movq %rax, (%rdi)
movq 0x3543d(%rip), %r15     # 0x6ffb0
movq %r15, 0x10(%rdi)
leaq 0x187d9(%rip), %r13     # 0x53357
movq %r13, 0x18(%rdi)
leaq -0x268(%rbp), %rsi
movq %rbx, (%rsi)
movq %r14, 0x8(%rsi)
leaq -0x58(%rbp), %r9
movq -0x48(%rbp), %rax
subq -0x50(%rbp), %rax
movl $0x3, (%r9)
shrq $0x5, %rax
leaq -0x30(%rbp), %r11
movl %eax, (%r11)
subq $0x8, %rsp
leaq 0x1953c(%rip), %rax     # 0x540f5
leaq 0x193c7(%rip), %r10     # 0x53f87
pushq $0x1
popq %rcx
pushq $0x2
popq %r8
movl $0x2c7, %edx            # imm = 0x2C7
pushq %rax
pushq %r11
pushq %r10
callq 0x4ea09
addq $0x20, %rsp
movq 0x3595f(%rip), %rdi     # 0x70540
leaq -0x258(%rbp), %rsi
movq %rbx, (%rsi)
movq %r14, 0x8(%rsi)
leaq -0x248(%rbp), %rcx
movq %r12, (%rcx)
movq %r12, 0x8(%rcx)
movl $0x2c8, %edx            # imm = 0x2C8
callq 0x5710
leaq -0xa0(%rbp), %rdi
movb $0x0, 0x8(%rdi)
leaq 0x34ec7(%rip), %rax     # 0x6fae0
movq %rax, (%rdi)
movq %r15, 0x10(%rdi)
movq %r13, 0x18(%rdi)
leaq -0x238(%rbp), %rsi
movq %rbx, (%rsi)
movq %r14, 0x8(%rsi)
subq $0x8, %rsp
leaq 0x194d8(%rip), %rax     # 0x54115
leaq 0x194c7(%rip), %r10     # 0x5410b
leaq 0x3593d(%rip), %r9      # 0x70588
pushq $0x1
popq %rcx
pushq $0x2
popq %r8
movl $0x2c8, %edx            # imm = 0x2C8
pushq %rax
pushq -0x50(%rbp)
pushq %r10
callq 0x4e913
addq $0x20, %rsp
movq 0x358d3(%rip), %rdi     # 0x70540
leaq -0x228(%rbp), %rsi
movq %rbx, (%rsi)
movq %r14, 0x8(%rsi)
leaq -0x218(%rbp), %rcx
movq %r12, (%rcx)
movq %r12, 0x8(%rcx)
movl $0x2c9, %edx            # imm = 0x2C9
callq 0x5710
leaq -0xa0(%rbp), %rdi
movb $0x0, 0x8(%rdi)
leaq 0x34e3b(%rip), %rax     # 0x6fae0
movq %rax, (%rdi)
movq %r15, 0x10(%rdi)
movq %r13, 0x18(%rdi)
leaq -0x208(%rbp), %rsi
movq %rbx, (%rsi)
movq %r14, 0x8(%rsi)
movq -0x50(%rbp), %rax
addq $0x20, %rax
subq $0x8, %rsp
leaq 0x19456(%rip), %r10     # 0x54127
leaq 0x1944a(%rip), %r11     # 0x54122
pushq $0x1
popq %rcx
pushq $0x2
popq %r8
leaq -0x80(%rbp), %r9
movl $0x2c9, %edx            # imm = 0x2C9
pushq %r10
pushq %rax
pushq %r11
callq 0x4e913
addq $0x20, %rsp
movq 0x35843(%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 $0x2ca, %edx            # imm = 0x2CA
callq 0x5710
leaq -0xa0(%rbp), %rdi
movb $0x0, 0x8(%rdi)
leaq 0x34dab(%rip), %rax     # 0x6fae0
movq %rax, (%rdi)
movq %r15, 0x10(%rdi)
movq %r13, 0x18(%rdi)
leaq -0x1d8(%rbp), %rsi
movq %rbx, (%rsi)
movq %r14, 0x8(%rsi)
movq -0x50(%rbp), %rax
addq $0x40, %rax
subq $0x8, %rsp
leaq 0x193d8(%rip), %r10     # 0x54139
leaq 0x35820(%rip), %r9      # 0x70588
pushq $0x1
popq %rcx
pushq $0x2
popq %r8
movl $0x2ca, %edx            # imm = 0x2CA
pushq %r10
pushq %rax
leaq 0x1938d(%rip), %rax     # 0x5410b
pushq %rax
callq 0x4e913
addq $0x20, %rsp
movq 0x357b1(%rip), %rdi     # 0x70540
leaq -0x1c8(%rbp), %rsi
movq %rbx, (%rsi)
movq %r14, 0x8(%rsi)
leaq -0x1b8(%rbp), %rcx
movq %r12, (%rcx)
movq %r12, 0x8(%rcx)
movl $0x2cb, %edx            # imm = 0x2CB
callq 0x5710
leaq -0xa0(%rbp), %rdi
movb $0x0, 0x8(%rdi)
leaq 0x34d19(%rip), %rax     # 0x6fae0
movq %rax, (%rdi)
movq %r15, 0x10(%rdi)
movq %r13, 0x18(%rdi)
leaq -0x1a8(%rbp), %rsi
movq %rbx, (%rsi)
movq %r14, 0x8(%rsi)
movabsq $-0x4000000000000000, %rax # imm = 0xC000000000000000
leaq -0x58(%rbp), %r9
movq %rax, (%r9)
movsd 0x35607(%rip), %xmm0    # 0x70400
movsd %xmm0, -0x30(%rbp)
subq $0x8, %rsp
leaq 0x18ef4(%rip), %rax     # 0x53cfd
leaq 0x1997e(%rip), %r10     # 0x5478e
leaq -0x60(%rbp), %r11
leaq 0x18a46(%rip), %rbx     # 0x53861
pushq $0x1
popq %rcx
pushq $0x8
popq %r8
movl $0x2cb, %edx            # imm = 0x2CB
pushq %rax
leaq -0x30(%rbp), %rax
pushq %rax
pushq %r10
pushq %r11
pushq %rbx
callq 0x4eaf1
addq $0x30, %rsp
leaq -0x50(%rbp), %rdi
callq 0x9574
leaq -0x168(%rbp), %rdi
callq 0x10c24
leaq -0xc0(%rbp), %rdi
callq 0x57b8
leaq -0xf0(%rbp), %rdi
callq 0x1bb0c
leaq -0x198(%rbp), %rdi
callq 0x200e8
leaq -0x80(%rbp), %rdi
callq 0x57b8
addq $0x268, %rsp            # imm = 0x268
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
jmp 0x3aede
jmp 0x3aede
jmp 0x3aede
jmp 0x3aede
jmp 0x3aede
movq %rax, %rbx
jmp 0x3aef6
jmp 0x3aed9
movq %rax, %rbx
pushq $0x20
popq %r14
leaq (%r14,%rbp), %rdi
addq $-0x168, %rdi           # imm = 0xFE98
callq 0x57b8
addq $-0x20, %r14
cmpq $-0x20, %r14
jne 0x3aea7
jmp 0x3af1a
movq %rax, %rbx
leaq -0x168(%rbp), %rdi
callq 0x57b8
jmp 0x3af1a
movq %rax, %rbx
jmp 0x3af1a
movq %rax, %rbx
jmp 0x3af02
movq %rax, %rbx
leaq -0x50(%rbp), %rdi
callq 0x9574
leaq -0x168(%rbp), %rdi
callq 0x10c24
leaq -0xc0(%rbp), %rdi
callq 0x57b8
leaq -0xf0(%rbp), %rdi
callq 0x1bb0c
leaq -0x198(%rbp), %rdi
callq 0x200e8
leaq -0x80(%rbp), %rdi
callq 0x57b8
movq %rbx, %rdi
callq 0x56b0