// File: /workspace/github_cpp_makefile_star2_O1/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 $0x2b8, %rsp            # imm = 0x2B8
leaq -0xd8(%rbp), %rax
movq %rax, -0x10(%rax)
leaq 0x26d3e(%rip), %rsi     # 0x71fbe
leaq 0x26d38(%rip), %rdx     # 0x71fbf
leaq -0xe8(%rbp), %rdi
callq 0x95e2
leaq -0x200(%rbp), %rax
movq %rax, -0x10(%rax)
movq 0x402f3(%rip), %rsi     # 0x8b598
movq 0x402f4(%rip), %rdx     # 0x8b5a0
addq %rsi, %rdx
leaq -0x210(%rbp), %r15
movq %r15, %r14
movq %r15, %rdi
callq 0x9548
leaq -0x1f0(%rbp), %r14
leaq -0x1e0(%rbp), %r12
movq %r12, -0x10(%r12)
movq -0xe8(%rbp), %rsi
movq -0xe0(%rbp), %rdx
addq %rsi, %rdx
movq %r14, %rdi
callq 0x9548
leaq -0x240(%rbp), %rdi
leaq -0x210(%rbp), %rsi
leaq -0x198(%rbp), %rcx
leaq -0x58(%rbp), %r8
movl $0x2, %edx
callq 0x6b4ee
leaq -0x1e0(%rbp), %rbx
xorl %r14d, %r14d
movq -0x1f0(%rbp,%r14), %rdi
leaq (%rbx,%r14), %rax
cmpq %rdi, %rax
je 0x4b330
callq 0x5380
addq $-0x20, %r14
cmpq $-0x40, %r14
jne 0x4b31a
leaq -0x190(%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 0x40238(%rip), %rsi     # 0x8b598
leaq -0x198(%rbp), %rdi
callq 0x1e18a
leaq -0xe8(%rbp), %rsi
movq %rax, %rdi
callq 0x1ddee
movabsq $-0x4010000000000000, %rbx # imm = 0xBFF0000000000000
movq %rbx, (%rax)
leaq -0x198(%rbp), %rdi
leaq -0xe8(%rbp), %rsi
callq 0x1e18a
leaq 0x401f6(%rip), %rsi     # 0x8b598
movq %rax, %rdi
callq 0x1ddee
movq %rbx, (%rax)
leaq -0x158(%rbp), %rax
movq %rax, -0x10(%rax)
leaq 0x26bff(%rip), %rsi     # 0x71fbe
leaq 0x26bf9(%rip), %rdx     # 0x71fbf
leaq -0x168(%rbp), %rdi
callq 0x95e2
leaq 0x401bf(%rip), %rdx     # 0x8b598
leaq -0x210(%rbp), %rdi
leaq -0x168(%rbp), %rsi
leaq -0x240(%rbp), %rcx
movl $0x1, %r8d
xorl %r9d, %r9d
callq 0x110ea
xorps %xmm0, %xmm0
leaq -0x120(%rbp), %rdx
movaps %xmm0, (%rdx)
movq $0x0, 0x10(%rdx)
leaq -0x198(%rbp), %rdi
leaq -0x210(%rbp), %rsi
movl $0x1, %ecx
callq 0x1a731
movsd %xmm0, -0xf0(%rbp)
movq 0x40118(%rip), %rdi     # 0x8b550
leaq 0x267d3(%rip), %r14     # 0x71c12
leaq -0x2e0(%rbp), %rsi
movq %r14, (%rsi)
leaq 0x267d0(%rip), %r12     # 0x71c20
movq %r12, 0x8(%rsi)
leaq 0x26604(%rip), %rax     # 0x71a5f
leaq -0x2d0(%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 0x3f5da(%rip), %rcx     # 0x8aa60
movq %rcx, (%rsi)
movq 0x3fb20(%rip), %r15     # 0x8afb0
movq %r15, 0x10(%rsi)
leaq 0x25f2c(%rip), %rcx     # 0x713c7
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
movq %r14, (%rdx)
movq %r12, 0x8(%rdx)
leaq -0xc8(%rbp), %rcx
movq %r8, (%rcx)
movb %al, -0x50(%rbp)
leaq -0x78(%rbp), %rbx
movb %al, 0x8(%rbx)
leaq 0x3f6d2(%rip), %rax     # 0x8abd8
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 0x26c58(%rip), %r10     # 0x72187
leaq 0x26ae3(%rip), %r11     # 0x72019
movl $0x2c7, %ecx            # imm = 0x2C7
movl $0x1, %r8d
movl $0x2, %r9d
xorl %eax, %eax
pushq %rbx
pushq %r10
leaq -0x58(%rbp), %r10
pushq %r10
pushq %r11
pushq $0x2
callq 0x5740
addq $0x30, %rsp
leaq -0xa8(%rbp), %rdi
callq 0x2e966
movq 0x3ffde(%rip), %rdi     # 0x8b550
leaq -0x2c0(%rbp), %rsi
movq %r14, (%rsi)
movq %r12, 0x8(%rsi)
leaq -0x2b0(%rbp), %rcx
leaq 0x264d1(%rip), %rax     # 0x71a5f
movq %rax, (%rcx)
movq %rax, 0x8(%rcx)
movl $0x2c8, %edx            # imm = 0x2C8
callq 0x5760
movb $0x0, -0x90(%rbp)
leaq 0x3f4b3(%rip), %rax     # 0x8aa60
movq %rax, -0x98(%rbp)
movq %r15, -0x88(%rbp)
leaq 0x25e05(%rip), %rax     # 0x713c7
movq %rax, -0x80(%rbp)
movq -0x120(%rbp), %r12
movq 0x3ffcc(%rip), %rdx     # 0x8b5a0
cmpq 0x8(%r12), %rdx
jne 0x4b5f7
testq %rdx, %rdx
je 0x4b5fb
movq (%r12), %rsi
movq 0x3ffad(%rip), %rdi     # 0x8b598
callq 0x53e0
testl %eax, %eax
sete %al
jmp 0x4b5fd
xorl %eax, %eax
jmp 0x4b5fd
movb $0x1, %al
leaq -0xb8(%rbp), %rdi
movb %al, (%rdi)
xorps %xmm0, %xmm0
movups %xmm0, 0x8(%rdi)
leaq -0x138(%rbp), %rdx
leaq 0x265f7(%rip), %r13     # 0x71c12
movq %r13, (%rdx)
leaq 0x265fb(%rip), %rbx     # 0x71c20
movq %rbx, 0x8(%rdx)
leaq 0x3ff68(%rip), %rax     # 0x8b598
movq %rax, -0xc8(%rbp)
xorl %eax, %eax
movb %al, -0x50(%rbp)
leaq 0x3f555(%rip), %r14     # 0x8ab98
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 0x26b2f(%rip), %r10     # 0x721a7
leaq 0x26b1e(%rip), %r12     # 0x7219d
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 0x2e966
movq 0x3fe89(%rip), %rdi     # 0x8b550
leaq -0x2a0(%rbp), %rsi
movq %r13, (%rsi)
movq %rbx, 0x8(%rsi)
leaq -0x290(%rbp), %rcx
leaq 0x2637c(%rip), %rax     # 0x71a5f
movq %rax, (%rcx)
movq %rax, 0x8(%rcx)
movl $0x2c9, %edx            # imm = 0x2C9
callq 0x5760
movb $0x0, -0x90(%rbp)
leaq 0x3f35e(%rip), %rax     # 0x8aa60
movq %rax, -0x98(%rbp)
movq %r15, -0x88(%rbp)
leaq 0x25cb0(%rip), %rax     # 0x713c7
movq %rax, -0x80(%rbp)
movq -0x120(%rbp), %rax
leaq 0x20(%rax), %r12
movq -0xe0(%rbp), %rdx
cmpq 0x28(%rax), %rdx
jne 0x4b74f
testq %rdx, %rdx
je 0x4b753
movq (%r12), %rsi
movq -0xe8(%rbp), %rdi
callq 0x53e0
testl %eax, %eax
sete %al
jmp 0x4b755
xorl %eax, %eax
jmp 0x4b755
movb $0x1, %al
leaq -0xb8(%rbp), %rdi
movb %al, (%rdi)
xorps %xmm0, %xmm0
movups %xmm0, 0x8(%rdi)
leaq -0x138(%rbp), %rdx
leaq 0x2649f(%rip), %r13     # 0x71c12
movq %r13, (%rdx)
leaq 0x264a3(%rip), %rbx     # 0x71c20
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 0x269f0(%rip), %r10     # 0x721b9
leaq 0x269e4(%rip), %r11     # 0x721b4
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 0x2e966
movq 0x3fd38(%rip), %rdi     # 0x8b550
leaq -0x280(%rbp), %rsi
movq %r13, (%rsi)
movq %rbx, 0x8(%rsi)
leaq -0x270(%rbp), %rcx
leaq 0x2622b(%rip), %rax     # 0x71a5f
movq %rax, (%rcx)
movq %rax, 0x8(%rcx)
movl $0x2ca, %edx            # imm = 0x2CA
callq 0x5760
movb $0x0, -0x90(%rbp)
leaq 0x3f20d(%rip), %rax     # 0x8aa60
movq %rax, -0x98(%rbp)
movq %r15, -0x88(%rbp)
leaq 0x25b5f(%rip), %rax     # 0x713c7
movq %rax, -0x80(%rbp)
movq -0x120(%rbp), %rax
leaq 0x40(%rax), %r12
movq 0x3fd22(%rip), %rdx     # 0x8b5a0
cmpq 0x48(%rax), %rdx
jne 0x4b8a0
testq %rdx, %rdx
je 0x4b8a4
movq (%r12), %rsi
movq 0x3fd04(%rip), %rdi     # 0x8b598
callq 0x53e0
testl %eax, %eax
sete %al
jmp 0x4b8a6
xorl %eax, %eax
jmp 0x4b8a6
movb $0x1, %al
leaq -0xb8(%rbp), %rdi
movb %al, (%rdi)
xorps %xmm0, %xmm0
movups %xmm0, 0x8(%rdi)
leaq -0x138(%rbp), %rdx
leaq 0x2634e(%rip), %r13     # 0x71c12
movq %r13, (%rdx)
leaq 0x26352(%rip), %rbx     # 0x71c20
movq %rbx, 0x8(%rdx)
leaq 0x3fcbf(%rip), %rax     # 0x8b598
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 0x268b1(%rip), %r10     # 0x721cb
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), %r10
pushq %r10
leaq 0x26851(%rip), %r10     # 0x7219d
pushq %r10
pushq $0x2
callq 0x5740
addq $0x30, %rsp
leaq -0xa8(%rbp), %rdi
callq 0x2e966
movq 0x3fbe4(%rip), %rdi     # 0x8b550
leaq -0x260(%rbp), %rsi
movq %r13, (%rsi)
movq %rbx, 0x8(%rsi)
leaq -0x250(%rbp), %rcx
leaq 0x260d7(%rip), %rax     # 0x71a5f
movq %rax, (%rcx)
movq %rax, 0x8(%rcx)
movl $0x2cb, %edx            # imm = 0x2CB
callq 0x5760
movb $0x0, -0xb0(%rbp)
leaq 0x3f0b9(%rip), %rax     # 0x8aa60
movq %rax, -0xb8(%rbp)
movq %r15, -0xa8(%rbp)
leaq 0x25a0b(%rip), %rax     # 0x713c7
movq %rax, -0xa0(%rbp)
movabsq $-0x4000000000000000, %rax # imm = 0xC000000000000000
movq %rax, -0x148(%rbp)
movsd 0x3fa34(%rip), %xmm2    # 0x8b410
movsd %xmm2, -0x140(%rbp)
movsd -0xf0(%rbp), %xmm1
leaq -0x138(%rbp), %rdi
leaq -0x31(%rbp), %rsi
movsd 0x261b1(%rip), %xmm0    # 0x71bb0
callq 0x6b8ea
leaq -0xc8(%rbp), %rdx
movq %r13, (%rdx)
movq %rbx, 0x8(%rdx)
leaq -0x148(%rbp), %rax
movq %rax, -0x30(%rbp)
xorl %eax, %eax
movb %al, -0x50(%rbp)
leaq 0x3f0af(%rip), %rcx     # 0x8aad8
movq %rcx, -0x58(%rbp)
movq %r15, -0x48(%rbp)
leaq -0x30(%rbp), %rsi
movq %rsi, -0x40(%rbp)
leaq -0xf0(%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 0x3f258(%rip), %rax     # 0x8acd0
movq %rax, -0x98(%rbp)
movq %r15, -0x88(%rbp)
leaq -0xf8(%rbp), %rax
movq %rax, -0x80(%rbp)
subq $0x8, %rsp
leaq 0x262f3(%rip), %r10     # 0x71d8f
leaq 0x26d7d(%rip), %r11     # 0x72820
leaq 0x25e2b(%rip), %rbx     # 0x718d5
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
leaq -0x58(%rbp), %r10
pushq %r10
pushq %rbx
pushq $0x3
callq 0x5740
addq $0x40, %rsp
leaq -0x128(%rbp), %rdi
callq 0x2e966
leaq -0x120(%rbp), %rdi
callq 0xab88
leaq -0x210(%rbp), %rdi
callq 0x12c6c
movq -0x168(%rbp), %rdi
leaq -0x158(%rbp), %rax
cmpq %rax, %rdi
leaq -0xd8(%rbp), %rbx
je 0x4bb2c
callq 0x5380
leaq -0x198(%rbp), %rdi
callq 0x1e76a
leaq -0x240(%rbp), %rdi
callq 0x22c7c
movq -0xe8(%rbp), %rdi
cmpq %rbx, %rdi
je 0x4bb55
callq 0x5380
addq $0x2b8, %rsp            # imm = 0x2B8
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
movq %rax, %rbx
leaq -0x128(%rbp), %rdi
jmp 0x4bb85
jmp 0x4bbf3
jmp 0x4bb7b
jmp 0x4bb7b
jmp 0x4bb7b
movq %rax, %rbx
leaq -0xa8(%rbp), %rdi
callq 0x2e966
jmp 0x4bbf6
movq %rax, %rbx
jmp 0x4bc0e
jmp 0x4bbee
movq %rax, %rbx
movq $-0x40, %r14
movq -0x10(%r12), %rdi
cmpq %rdi, %r12
je 0x4bbac
callq 0x5380
addq $-0x20, %r12
addq $0x20, %r14
jne 0x4bb9d
jmp 0x4bc3e
movq %rax, %rbx
cmpq %r14, %r15
je 0x4bc3e
addq $-0x10, %r14
leaq -0x210(%rbp), %r15
movq -0x10(%r14), %rdi
cmpq %rdi, %r14
je 0x4bbdc
callq 0x5380
leaq -0x20(%r14), %rax
addq $-0x10, %r14
cmpq %r15, %r14
movq %rax, %r14
jne 0x4bbce
jmp 0x4bc3e
movq %rax, %rbx
jmp 0x4bc26
movq %rax, %rbx
leaq -0x120(%rbp), %rdi
callq 0xab88
leaq -0x210(%rbp), %rdi
callq 0x12c6c
movq -0x168(%rbp), %rdi
leaq -0x158(%rbp), %rax
cmpq %rax, %rdi
je 0x4bc26
callq 0x5380
leaq -0x198(%rbp), %rdi
callq 0x1e76a
leaq -0x240(%rbp), %rdi
callq 0x22c7c
movq -0xe8(%rbp), %rdi
leaq -0xd8(%rbp), %rax
cmpq %rax, %rdi
je 0x4bc56
callq 0x5380
movq %rbx, %rdi
callq 0x56f0