// File: /workspace/github_cpp_makefile_star2_O3/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 $0x2c8, %rsp            # imm = 0x2C8
leaq -0xd8(%rbp), %rax
movq %rax, -0x10(%rax)
leaq 0x26076(%rip), %rsi     # 0x70fee
leaq 0x26070(%rip), %rdx     # 0x70fef
leaq -0xe8(%rbp), %rdi
callq 0x95e6
leaq -0x208(%rbp), %r15
movq %r15, -0x10(%r15)
movq 0x3f5fb(%rip), %rsi     # 0x8a598
movq 0x3f5fc(%rip), %rdx     # 0x8a5a0
addq %rsi, %rdx
leaq -0x218(%rbp), %rdi
callq 0x9548
leaq -0x1f8(%rbp), %rdi
leaq -0x1e8(%rbp), %r14
movq %r14, -0x10(%r14)
movq -0xe8(%rbp), %rsi
movq -0xe0(%rbp), %rdx
addq %rsi, %rdx
callq 0x9548
leaq -0x248(%rbp), %rdi
leaq -0x218(%rbp), %rsi
leaq -0x1a0(%rbp), %rcx
leaq -0x58(%rbp), %r12
movl $0x2, %edx
movq %r12, %r8
callq 0x6b15e
leaq -0x1e8(%rbp), %rbx
xorl %r14d, %r14d
movq -0x1f8(%rbp,%r14), %rdi
leaq (%rbx,%r14), %rax
cmpq %rdi, %rax
je 0x4b021
callq 0x5380
addq $-0x20, %r14
cmpq $-0x40, %r14
jne 0x4b00b
leaq -0x198(%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 0x3f547(%rip), %rsi     # 0x8a598
leaq -0x1a0(%rbp), %rdi
callq 0x1e0b0
leaq -0xe8(%rbp), %rsi
movq %rax, %rdi
callq 0x1dd1e
movabsq $-0x4010000000000000, %rbx # imm = 0xBFF0000000000000
movq %rbx, (%rax)
leaq -0x1a0(%rbp), %rdi
leaq -0xe8(%rbp), %rsi
callq 0x1e0b0
leaq 0x3f505(%rip), %rsi     # 0x8a598
movq %rax, %rdi
callq 0x1dd1e
movq %rbx, (%rax)
leaq -0x160(%rbp), %rax
movq %rax, -0x10(%rax)
leaq 0x25f3e(%rip), %rsi     # 0x70fee
leaq 0x25f38(%rip), %rdx     # 0x70fef
leaq -0x170(%rbp), %rdi
callq 0x95e6
leaq 0x3f4ce(%rip), %rdx     # 0x8a598
leaq -0x218(%rbp), %rdi
leaq -0x170(%rbp), %rsi
leaq -0x248(%rbp), %rcx
movl $0x1, %r8d
xorl %r9d, %r9d
callq 0x11002
xorps %xmm0, %xmm0
leaq -0x120(%rbp), %rdx
movaps %xmm0, (%rdx)
movq $0x0, 0x10(%rdx)
leaq -0x1a0(%rbp), %rdi
leaq -0x218(%rbp), %rsi
movl $0x1, %ecx
callq 0x1a5cf
movsd %xmm0, -0xf0(%rbp)
movsd -0xf0(%rbp), %xmm0
movsd %xmm0, -0x150(%rbp)
movq 0x3f417(%rip), %rdi     # 0x8a550
leaq 0x25b02(%rip), %rax     # 0x70c42
leaq -0x2e8(%rbp), %rsi
movq %rax, (%rsi)
leaq 0x25aff(%rip), %r13     # 0x70c50
movq %r13, 0x8(%rsi)
leaq 0x25913(%rip), %rax     # 0x70a6f
leaq -0x2d8(%rbp), %rcx
movq %rax, (%rcx)
movq %rax, 0x8(%rcx)
movl $0x2c7, %edx            # imm = 0x2C7
callq 0x5760
xorl %eax, %eax
leaq -0x98(%rbp), %rsi
movb %al, 0x8(%rsi)
leaq 0x3e949(%rip), %rcx     # 0x89ad0
movq %rcx, (%rsi)
movq 0x3ee1f(%rip), %r15     # 0x89fb0
movq %r15, 0x10(%rsi)
leaq 0x2522b(%rip), %rcx     # 0x703c7
movq %rcx, 0x18(%rsi)
leaq -0x100(%rbp), %r8
movq -0x118(%rbp), %rcx
subq -0x120(%rbp), %rcx
movl $0x3, (%r8)
shrq $0x5, %rcx
leaq -0xf8(%rbp), %r9
cmpl $0x3, %ecx
leaq -0xb8(%rbp), %rdi
sete (%rdi)
movl %ecx, (%r9)
xorps %xmm0, %xmm0
movups %xmm0, 0x8(%rdi)
leaq -0x138(%rbp), %rdx
leaq 0x25a56(%rip), %r14     # 0x70c42
movq %r14, (%rdx)
movq %r13, 0x8(%rdx)
leaq -0xc8(%rbp), %rcx
movq %r8, (%rcx)
movb %al, -0x50(%rbp)
leaq -0x78(%rbp), %rbx
movb %al, 0x8(%rbx)
leaq 0x3ea12(%rip), %rax     # 0x89c20
movq %rax, -0x58(%rbp)
movq %r15, -0x48(%rbp)
movq %rcx, -0x40(%rbp)
movq %rax, (%rbx)
leaq -0x30(%rbp), %rax
movq %r9, (%rax)
movq %r15, 0x10(%rbx)
movq %rax, 0x18(%rbx)
subq $0x8, %rsp
leaq 0x25f80(%rip), %r10     # 0x711b7
leaq 0x25e0b(%rip), %r11     # 0x71049
movl $0x2c7, %ecx            # imm = 0x2C7
movl $0x1, %r8d
movl $0x2, %r9d
xorl %eax, %eax
pushq %rbx
pushq %r10
pushq %r12
pushq %r11
pushq $0x2
callq 0x5740
addq $0x30, %rsp
leaq -0xa8(%rbp), %rdi
callq 0x2e804
movq 0x3f2da(%rip), %rdi     # 0x8a550
leaq -0x2c8(%rbp), %rsi
movq %r14, (%rsi)
movq %r13, 0x8(%rsi)
leaq -0x2b8(%rbp), %rcx
leaq 0x257dd(%rip), %rax     # 0x70a6f
movq %rax, (%rcx)
movq %rax, 0x8(%rcx)
movl $0x2c8, %edx            # imm = 0x2C8
callq 0x5760
movb $0x0, -0x90(%rbp)
leaq 0x3e81f(%rip), %rax     # 0x89ad0
movq %rax, -0x98(%rbp)
movq %r15, -0x88(%rbp)
leaq 0x25101(%rip), %rax     # 0x703c7
movq %rax, -0x80(%rbp)
movq -0x120(%rbp), %r12
movq 0x3f2c8(%rip), %rdx     # 0x8a5a0
cmpq 0x8(%r12), %rdx
jne 0x4b302
testq %rdx, %rdx
leaq 0x25959(%rip), %r13     # 0x70c42
je 0x4b30d
movq (%r12), %rsi
movq 0x3f2a2(%rip), %rdi     # 0x8a598
callq 0x53e0
testl %eax, %eax
sete %al
jmp 0x4b30f
xorl %eax, %eax
leaq 0x25937(%rip), %r13     # 0x70c42
jmp 0x4b30f
movb $0x1, %al
leaq -0xb8(%rbp), %rdi
movb %al, (%rdi)
xorps %xmm0, %xmm0
movups %xmm0, 0x8(%rdi)
leaq -0x138(%rbp), %rdx
movq %r13, (%rdx)
leaq 0x25920(%rip), %rbx     # 0x70c50
movq %rbx, 0x8(%rdx)
leaq 0x3f25d(%rip), %rax     # 0x8a598
movq %rax, -0xc8(%rbp)
xorl %eax, %eax
movb %al, -0x50(%rbp)
leaq 0x3e892(%rip), %r14     # 0x89be0
movq %r14, -0x58(%rbp)
movq %r15, -0x48(%rbp)
leaq -0xc8(%rbp), %rcx
movq %rcx, -0x40(%rbp)
movq %r12, -0x30(%rbp)
movb %al, -0x70(%rbp)
movq %r14, -0x78(%rbp)
movq %r15, -0x68(%rbp)
leaq -0x30(%rbp), %rax
movq %rax, -0x60(%rbp)
subq $0x8, %rsp
leaq 0x25e54(%rip), %r10     # 0x711d7
leaq 0x25e43(%rip), %r12     # 0x711cd
leaq -0x98(%rbp), %rsi
movl $0x2c8, %ecx            # imm = 0x2C8
movl $0x1, %r8d
movl $0x2, %r9d
xorl %eax, %eax
leaq -0x78(%rbp), %r11
pushq %r11
pushq %r10
leaq -0x58(%rbp), %r10
pushq %r10
pushq %r12
pushq $0x2
callq 0x5740
addq $0x30, %rsp
leaq -0xa8(%rbp), %rdi
callq 0x2e804
movq 0x3f17e(%rip), %rdi     # 0x8a550
leaq -0x2a8(%rbp), %rsi
movq %r13, (%rsi)
movq %rbx, 0x8(%rsi)
leaq -0x298(%rbp), %rcx
leaq 0x25681(%rip), %rax     # 0x70a6f
movq %rax, (%rcx)
movq %rax, 0x8(%rcx)
movl $0x2c9, %edx            # imm = 0x2C9
callq 0x5760
movb $0x0, -0x90(%rbp)
leaq 0x3e6c3(%rip), %rax     # 0x89ad0
movq %rax, -0x98(%rbp)
movq %r15, -0x88(%rbp)
leaq 0x24fa5(%rip), %rax     # 0x703c7
movq %rax, -0x80(%rbp)
movq -0x120(%rbp), %rax
leaq 0x20(%rax), %r12
movq -0xe0(%rbp), %rdx
cmpq 0x28(%rax), %rdx
jne 0x4b45a
testq %rdx, %rdx
je 0x4b45e
movq (%r12), %rsi
movq -0xe8(%rbp), %rdi
callq 0x53e0
testl %eax, %eax
sete %al
jmp 0x4b460
xorl %eax, %eax
jmp 0x4b460
movb $0x1, %al
leaq -0xb8(%rbp), %rdi
movb %al, (%rdi)
xorps %xmm0, %xmm0
movups %xmm0, 0x8(%rdi)
leaq -0x138(%rbp), %rdx
leaq 0x257c4(%rip), %r13     # 0x70c42
movq %r13, (%rdx)
leaq 0x257c8(%rip), %rbx     # 0x70c50
movq %rbx, 0x8(%rdx)
leaq -0xe8(%rbp), %rax
movq %rax, -0xc8(%rbp)
xorl %eax, %eax
movb %al, -0x50(%rbp)
movq %r14, -0x58(%rbp)
movq %r15, -0x48(%rbp)
leaq -0xc8(%rbp), %rcx
movq %rcx, -0x40(%rbp)
movq %r12, -0x30(%rbp)
movb %al, -0x70(%rbp)
movq %r14, -0x78(%rbp)
movq %r15, -0x68(%rbp)
leaq -0x30(%rbp), %rax
movq %rax, -0x60(%rbp)
subq $0x8, %rsp
leaq 0x25d15(%rip), %r10     # 0x711e9
leaq 0x25d09(%rip), %r11     # 0x711e4
leaq -0x98(%rbp), %rsi
movl $0x2c9, %ecx            # imm = 0x2C9
movl $0x1, %r8d
movl $0x2, %r9d
xorl %eax, %eax
leaq -0x78(%rbp), %r12
pushq %r12
pushq %r10
leaq -0x58(%rbp), %r10
pushq %r10
pushq %r11
pushq $0x2
callq 0x5740
addq $0x30, %rsp
leaq -0xa8(%rbp), %rdi
callq 0x2e804
movq 0x3f02d(%rip), %rdi     # 0x8a550
leaq -0x288(%rbp), %rsi
movq %r13, (%rsi)
movq %rbx, 0x8(%rsi)
leaq -0x278(%rbp), %rcx
leaq 0x25530(%rip), %rax     # 0x70a6f
movq %rax, (%rcx)
movq %rax, 0x8(%rcx)
movl $0x2ca, %edx            # imm = 0x2CA
callq 0x5760
movb $0x0, -0x90(%rbp)
leaq 0x3e572(%rip), %rax     # 0x89ad0
movq %rax, -0x98(%rbp)
movq %r15, -0x88(%rbp)
leaq 0x24e54(%rip), %rax     # 0x703c7
movq %rax, -0x80(%rbp)
movq -0x120(%rbp), %rax
leaq 0x40(%rax), %r12
movq 0x3f017(%rip), %rdx     # 0x8a5a0
cmpq 0x48(%rax), %rdx
jne 0x4b5ab
testq %rdx, %rdx
je 0x4b5af
movq (%r12), %rsi
movq 0x3eff9(%rip), %rdi     # 0x8a598
callq 0x53e0
testl %eax, %eax
sete %al
jmp 0x4b5b1
xorl %eax, %eax
jmp 0x4b5b1
movb $0x1, %al
leaq -0xb8(%rbp), %rdi
movb %al, (%rdi)
xorps %xmm0, %xmm0
movups %xmm0, 0x8(%rdi)
leaq -0x138(%rbp), %rdx
leaq 0x25673(%rip), %r13     # 0x70c42
movq %r13, (%rdx)
leaq 0x25677(%rip), %rbx     # 0x70c50
movq %rbx, 0x8(%rdx)
leaq 0x3efb4(%rip), %rax     # 0x8a598
movq %rax, -0xc8(%rbp)
xorl %eax, %eax
movb %al, -0x50(%rbp)
movq %r14, -0x58(%rbp)
movq %r15, -0x48(%rbp)
leaq -0xc8(%rbp), %rcx
movq %rcx, -0x40(%rbp)
movq %r12, -0x30(%rbp)
movb %al, -0x70(%rbp)
movq %r14, -0x78(%rbp)
movq %r15, -0x68(%rbp)
leaq -0x30(%rbp), %rax
movq %rax, -0x60(%rbp)
subq $0x8, %rsp
leaq 0x25bd6(%rip), %r10     # 0x711fb
leaq -0x98(%rbp), %r14
movl $0x2ca, %ecx            # imm = 0x2CA
movq %r14, %rsi
movl $0x1, %r8d
movl $0x2, %r9d
xorl %eax, %eax
leaq -0x78(%rbp), %r11
pushq %r11
pushq %r10
leaq -0x58(%rbp), %r12
pushq %r12
leaq 0x25b76(%rip), %r10     # 0x711cd
pushq %r10
pushq $0x2
callq 0x5740
addq $0x30, %rsp
leaq -0xa8(%rbp), %rdi
callq 0x2e804
movq 0x3eed9(%rip), %rdi     # 0x8a550
leaq -0x268(%rbp), %rsi
movq %r13, (%rsi)
movq %rbx, 0x8(%rsi)
leaq -0x258(%rbp), %rcx
leaq 0x253dc(%rip), %rax     # 0x70a6f
movq %rax, (%rcx)
movq %rax, 0x8(%rcx)
movl $0x2cb, %edx            # imm = 0x2CB
callq 0x5760
movb $0x0, -0xb0(%rbp)
leaq 0x3e41e(%rip), %rax     # 0x89ad0
movq %rax, -0xb8(%rbp)
movq %r15, -0xa8(%rbp)
leaq 0x24d00(%rip), %rax     # 0x703c7
movq %rax, -0xa0(%rbp)
movabsq $-0x4000000000000000, %rax # imm = 0xC000000000000000
movq %rax, -0x148(%rbp)
movsd 0x3ed29(%rip), %xmm2    # 0x8a410
movsd %xmm2, -0x140(%rbp)
leaq -0x138(%rbp), %rdi
leaq -0x31(%rbp), %rsi
movsd 0x254ae(%rip), %xmm0    # 0x70bb0
movsd -0xf0(%rbp), %xmm1
callq 0x6b55a
leaq -0xc8(%rbp), %rdx
leaq 0x25525(%rip), %rax     # 0x70c42
movq %rax, (%rdx)
movq %rbx, 0x8(%rdx)
leaq -0x148(%rbp), %rax
movq %rax, -0x30(%rbp)
xorl %eax, %eax
movb %al, -0x50(%rbp)
leaq 0x3e3e5(%rip), %rcx     # 0x89b20
movq %rcx, -0x58(%rbp)
movq %r15, -0x48(%rbp)
leaq -0x30(%rbp), %rsi
movq %rsi, -0x40(%rbp)
leaq -0x150(%rbp), %rsi
movq %rsi, -0x100(%rbp)
movb %al, -0x70(%rbp)
movq %rcx, -0x78(%rbp)
movq %r15, -0x68(%rbp)
leaq -0x100(%rbp), %rcx
movq %rcx, -0x60(%rbp)
leaq -0x140(%rbp), %rcx
movq %rcx, -0xf8(%rbp)
movb %al, -0x90(%rbp)
leaq 0x3e546(%rip), %rax     # 0x89cd0
movq %rax, -0x98(%rbp)
movq %r15, -0x88(%rbp)
leaq -0xf8(%rbp), %rax
movq %rax, -0x80(%rbp)
subq $0x8, %rsp
leaq 0x25611(%rip), %r10     # 0x70dbf
leaq 0x2609b(%rip), %r11     # 0x71850
leaq 0x25129(%rip), %rbx     # 0x708e5
leaq -0x138(%rbp), %rdi
leaq -0xb8(%rbp), %rsi
movl $0x2cb, %ecx            # imm = 0x2CB
movl $0x1, %r8d
movl $0x8, %r9d
xorl %eax, %eax
pushq %r14
pushq %r10
leaq -0x78(%rbp), %r10
pushq %r10
pushq %r11
pushq %r12
pushq %rbx
pushq $0x3
callq 0x5740
addq $0x40, %rsp
leaq -0x128(%rbp), %rdi
callq 0x2e804
leaq -0x120(%rbp), %rdi
callq 0xab52
leaq -0x218(%rbp), %rdi
callq 0x12b80
movq -0x170(%rbp), %rdi
leaq -0x160(%rbp), %rax
cmpq %rax, %rdi
leaq -0xd8(%rbp), %rbx
je 0x4b83a
callq 0x5380
leaq -0x1a0(%rbp), %rdi
callq 0x1e684
leaq -0x248(%rbp), %rdi
callq 0x22afc
movq -0xe8(%rbp), %rdi
cmpq %rbx, %rdi
je 0x4b863
callq 0x5380
addq $0x2c8, %rsp            # imm = 0x2C8
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
movq %rax, %rbx
leaq -0x128(%rbp), %rdi
jmp 0x4b893
jmp 0x4b8e5
jmp 0x4b889
jmp 0x4b889
jmp 0x4b889
movq %rax, %rbx
leaq -0xa8(%rbp), %rdi
callq 0x2e804
jmp 0x4b8e8
movq %rax, %rbx
jmp 0x4b900
jmp 0x4b8e0
movq %rax, %rbx
movq $-0x40, %r15
movq -0x10(%r14), %rdi
cmpq %rdi, %r14
je 0x4b8b9
callq 0x5380
addq $-0x20, %r14
addq $0x20, %r15
jne 0x4b8ab
jmp 0x4b930
movq %rax, %rbx
movq -0x218(%rbp), %rdi
cmpq %r15, %rdi
je 0x4b930
callq 0x5380
jmp 0x4b930
movq %rax, %rbx
jmp 0x4b930
movq %rax, %rbx
jmp 0x4b918
movq %rax, %rbx
leaq -0x120(%rbp), %rdi
callq 0xab52
leaq -0x218(%rbp), %rdi
callq 0x12b80
movq -0x170(%rbp), %rdi
leaq -0x160(%rbp), %rax
cmpq %rax, %rdi
je 0x4b918
callq 0x5380
leaq -0x1a0(%rbp), %rdi
callq 0x1e684
leaq -0x248(%rbp), %rdi
callq 0x22afc
movq -0xe8(%rbp), %rdi
leaq -0xd8(%rbp), %rax
cmpq %rax, %rdi
je 0x4b948
callq 0x5380
movq %rbx, %rdi
callq 0x56f0