// File: /workspace/github_cpp_makefile_star2_O1/aalto-speech[P]ftk/test/emtest.cc
// Function: TransitionForwardBackwardTest1::test_method()
BOOST_AUTO_TEST_CASE(TransitionForwardBackwardTest1)
{
    string str1("a"); string str2("bc");
    set<string> vocab = {start_end,str1,str2};
    transitions_t transitions;
    transitions[str1][str2] = -1.0;
    transitions[start_end][str1] = -1.0;
    transitions[str2][start_end] = -1.0;
    string sentence("abc");
    FactorGraph fg(sentence, start_end, vocab, 2);
    transitions_t stats;
    flt_type lp = forward_backward(transitions, fg, stats);
    BOOST_CHECK_EQUAL(3, transition_count(stats));
    BOOST_CHECK_EQUAL(1.0, stats[start_end][str1]);
    BOOST_CHECK_EQUAL(1.0, stats[str1][str2]);
    BOOST_CHECK_EQUAL(1.0, stats[str2][start_end]);
    BOOST_CHECK_CLOSE( -3.0, 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 -0x108(%rbp), %rax
movq %rax, -0x10(%rax)
leaq 0x21312(%rip), %rsi     # 0x71fbe
leaq 0x2130c(%rip), %rdx     # 0x71fbf
leaq -0x118(%rbp), %rdi
callq 0x95e2
leaq -0xe8(%rbp), %rax
movq %rax, -0x10(%rax)
leaq 0x20fb9(%rip), %rsi     # 0x71c8a
leaq 0x20fb4(%rip), %rdx     # 0x71c8c
leaq -0xf8(%rbp), %rdi
callq 0x95e2
leaq -0x230(%rbp), %rax
movq %rax, -0x10(%rax)
movq 0x3a8a2(%rip), %rsi     # 0x8b598
movq 0x3a8a3(%rip), %rdx     # 0x8b5a0
addq %rsi, %rdx
leaq -0x240(%rbp), %r15
movq %r15, %r14
movq %r15, %rdi
callq 0x9548
leaq -0x220(%rbp), %r14
leaq -0x210(%rbp), %rax
movq %rax, -0x10(%rax)
movq -0x118(%rbp), %rsi
movq -0x110(%rbp), %rdx
addq %rsi, %rdx
movq %r14, %rdi
callq 0x9548
leaq -0x200(%rbp), %r14
leaq -0x1f0(%rbp), %r12
movq %r12, -0x10(%r12)
movq -0xf8(%rbp), %rsi
movq -0xf0(%rbp), %rdx
addq %rsi, %rdx
movq %r14, %rdi
callq 0x9548
leaq -0x270(%rbp), %rdi
leaq -0x240(%rbp), %rsi
leaq -0x1c8(%rbp), %rcx
leaq -0x198(%rbp), %r8
movl $0x3, %edx
callq 0x6b4ee
leaq -0x1f0(%rbp), %rbx
xorl %r14d, %r14d
movq -0x200(%rbp,%r14), %rdi
leaq (%rbx,%r14), %rax
cmpq %rdi, %rax
je 0x50daf
callq 0x5380
addq $-0x20, %r14
cmpq $-0x60, %r14
jne 0x50d99
leaq -0x1c0(%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 -0x1c8(%rbp), %rdi
leaq -0x118(%rbp), %rsi
callq 0x1e18a
leaq -0xf8(%rbp), %rsi
movq %rax, %rdi
callq 0x1ddee
movabsq $-0x4010000000000000, %rbx # imm = 0xBFF0000000000000
movq %rbx, (%rax)
leaq 0x3a78a(%rip), %rsi     # 0x8b598
leaq -0x1c8(%rbp), %rdi
callq 0x1e18a
leaq -0x118(%rbp), %rsi
movq %rax, %rdi
callq 0x1ddee
movq %rbx, (%rax)
leaq -0x1c8(%rbp), %rdi
leaq -0xf8(%rbp), %rsi
callq 0x1e18a
leaq 0x3a752(%rip), %rsi     # 0x8b598
movq %rax, %rdi
callq 0x1ddee
movq %rbx, (%rax)
leaq -0x158(%rbp), %rax
movq %rax, -0x10(%rax)
leaq 0x20e26(%rip), %rsi     # 0x71c89
leaq 0x20e22(%rip), %rdx     # 0x71c8c
leaq -0x168(%rbp), %rdi
callq 0x95e2
leaq 0x3a71b(%rip), %rdx     # 0x8b598
leaq -0x240(%rbp), %rdi
leaq -0x168(%rbp), %rsi
leaq -0x270(%rbp), %rcx
movl $0x2, %r8d
xorl %r9d, %r9d
callq 0x110ea
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 -0x1c8(%rbp), %rdi
leaq -0x240(%rbp), %rsi
leaq -0x198(%rbp), %rdx
callq 0x1b037
movsd %xmm0, -0xd8(%rbp)
movq 0x3a668(%rip), %rdi     # 0x8b550
leaq 0x20d23(%rip), %r12     # 0x71c12
leaq -0x310(%rbp), %rsi
movq %r12, (%rsi)
leaq 0x20d20(%rip), %rax     # 0x71c20
movq %rax, 0x8(%rsi)
leaq 0x20b54(%rip), %rax     # 0x71a5f
leaq -0x300(%rbp), %rcx
movq %rax, (%rcx)
movq %rax, 0x8(%rcx)
movl $0x34d, %edx            # imm = 0x34D
callq 0x5760
xorl %r15d, %r15d
leaq -0x60(%rbp), %rcx
movb %r15b, 0x8(%rcx)
leaq 0x39b2b(%rip), %rax     # 0x8aa60
movq %rax, (%rcx)
movq 0x3a071(%rip), %r13     # 0x8afb0
movq %r13, 0x10(%rcx)
leaq 0x2047d(%rip), %rax     # 0x713c7
movq %rax, 0x18(%rcx)
leaq -0x30(%rbp), %rbx
movl $0x3, (%rbx)
leaq -0x198(%rbp), %rdi
callq 0x46e72
leaq -0x120(%rbp), %rcx
movl %eax, (%rcx)
cmpl $0x3, %eax
leaq -0xc0(%rbp), %rdi
sete (%rdi)
xorpd %xmm0, %xmm0
movupd %xmm0, 0x8(%rdi)
leaq -0x138(%rbp), %rdx
movq %r12, (%rdx)
leaq 0x20c8c(%rip), %r14     # 0x71c20
movq %r14, 0x8(%rdx)
leaq -0xd0(%rbp), %rsi
movq %rbx, (%rsi)
leaq -0xa0(%rbp), %rbx
movb %r15b, 0x8(%rbx)
leaq 0x39c24(%rip), %rax     # 0x8abd8
movq %rax, (%rbx)
movq %r13, 0x10(%rbx)
movq %rsi, 0x18(%rbx)
leaq -0x38(%rbp), %rsi
movq %rcx, (%rsi)
leaq -0x80(%rbp), %r12
movb %r15b, 0x8(%r12)
movq %rax, (%r12)
movq %r13, 0x10(%r12)
movq %rsi, 0x18(%r12)
subq $0x8, %rsp
leaq 0x212f0(%rip), %r10     # 0x722d8
leaq 0x2102a(%rip), %r11     # 0x72019
movl $0x34d, %ecx            # imm = 0x34D
leaq -0x60(%rbp), %rsi
movl $0x1, %r8d
movl $0x2, %r9d
xorl %eax, %eax
pushq %r12
pushq %r10
pushq %rbx
pushq %r11
pushq $0x2
callq 0x5740
addq $0x30, %rsp
leaq -0xb0(%rbp), %rdi
callq 0x2e966
movq 0x3a525(%rip), %rdi     # 0x8b550
leaq -0x2f0(%rbp), %rsi
leaq 0x20bd9(%rip), %rax     # 0x71c12
movq %rax, (%rsi)
movq %r14, 0x8(%rsi)
leaq -0x2e0(%rbp), %rcx
leaq 0x20a11(%rip), %r15     # 0x71a5f
movq %r15, (%rcx)
movq %r15, 0x8(%rcx)
movl $0x34e, %edx            # imm = 0x34E
callq 0x5760
movq 0x39f4a(%rip), %r12     # 0x8afb0
movb $0x0, -0x58(%rbp)
leaq 0x399ef(%rip), %rax     # 0x8aa60
movq %rax, -0x60(%rbp)
movq %r12, -0x50(%rbp)
leaq 0x20347(%rip), %rax     # 0x713c7
movq %rax, -0x48(%rbp)
movabsq $0x3ff0000000000000, %rax # imm = 0x3FF0000000000000
movq %rax, -0x30(%rbp)
leaq 0x3a4ff(%rip), %rsi     # 0x8b598
leaq -0x198(%rbp), %rdi
callq 0x1e18a
leaq -0x118(%rbp), %rsi
movq %rax, %rdi
callq 0x1ddee
movsd -0x30(%rbp), %xmm0
ucomisd (%rax), %xmm0
setnp %cl
sete %dl
andb %cl, %dl
leaq -0xc0(%rbp), %rdi
movb %dl, (%rdi)
xorpd %xmm0, %xmm0
movupd %xmm0, 0x8(%rdi)
leaq -0x138(%rbp), %rdx
leaq 0x20b2d(%rip), %r15     # 0x71c12
movq %r15, (%rdx)
leaq 0x20b31(%rip), %r14     # 0x71c20
movq %r14, 0x8(%rdx)
leaq -0x30(%rbp), %rcx
movq %rcx, -0xd0(%rbp)
xorl %ecx, %ecx
movb %cl, -0x98(%rbp)
leaq 0x399cb(%rip), %rbx     # 0x8aad8
movq %rbx, -0xa0(%rbp)
movq %r12, -0x90(%rbp)
leaq -0xd0(%rbp), %rsi
movq %rsi, -0x88(%rbp)
movq %rax, -0x38(%rbp)
movb %cl, -0x78(%rbp)
movq %rbx, -0x80(%rbp)
movq %r12, -0x70(%rbp)
leaq -0x38(%rbp), %rax
movq %rax, -0x68(%rbp)
subq $0x8, %rsp
leaq 0x211a5(%rip), %r10     # 0x722f0
leaq 0x20c08(%rip), %r13     # 0x71d5a
leaq -0x60(%rbp), %rsi
movl $0x34e, %ecx            # imm = 0x34E
movl $0x1, %r8d
movl $0x2, %r9d
xorl %eax, %eax
leaq -0x80(%rbp), %r11
pushq %r11
pushq %r10
leaq -0xa0(%rbp), %r10
pushq %r10
pushq %r13
pushq $0x2
callq 0x5740
addq $0x30, %rsp
leaq -0xb0(%rbp), %rdi
callq 0x2e966
movq 0x3a3b6(%rip), %rdi     # 0x8b550
leaq -0x2d0(%rbp), %rsi
movq %r15, (%rsi)
movq %r14, 0x8(%rsi)
leaq -0x2c0(%rbp), %rcx
leaq 0x208a9(%rip), %rax     # 0x71a5f
movq %rax, (%rcx)
movq %rax, 0x8(%rcx)
movl $0x34f, %edx            # imm = 0x34F
callq 0x5760
movb $0x0, -0x58(%rbp)
leaq 0x3988e(%rip), %rax     # 0x8aa60
movq %rax, -0x60(%rbp)
movq %r12, -0x50(%rbp)
leaq 0x201e6(%rip), %rax     # 0x713c7
movq %rax, -0x48(%rbp)
movabsq $0x3ff0000000000000, %rax # imm = 0x3FF0000000000000
movq %rax, -0x30(%rbp)
leaq -0x198(%rbp), %rdi
leaq -0x118(%rbp), %rsi
callq 0x1e18a
leaq -0xf8(%rbp), %rsi
movq %rax, %rdi
callq 0x1ddee
movsd -0x30(%rbp), %xmm0
ucomisd (%rax), %xmm0
setnp %cl
sete %dl
andb %cl, %dl
leaq -0xc0(%rbp), %rdi
movb %dl, (%rdi)
xorpd %xmm0, %xmm0
movupd %xmm0, 0x8(%rdi)
leaq -0x138(%rbp), %rdx
leaq 0x209cc(%rip), %r15     # 0x71c12
movq %r15, (%rdx)
leaq 0x209d0(%rip), %r14     # 0x71c20
movq %r14, 0x8(%rdx)
leaq -0x30(%rbp), %rcx
movq %rcx, -0xd0(%rbp)
xorl %ecx, %ecx
movb %cl, -0x98(%rbp)
movq %rbx, -0xa0(%rbp)
movq %r12, -0x90(%rbp)
leaq -0xd0(%rbp), %rsi
movq %rsi, -0x88(%rbp)
movq %rax, -0x38(%rbp)
movb %cl, -0x78(%rbp)
movq %rbx, -0x80(%rbp)
movq %r12, -0x70(%rbp)
leaq -0x38(%rbp), %rax
movq %rax, -0x68(%rbp)
subq $0x8, %rsp
leaq 0x21062(%rip), %r10     # 0x72307
leaq -0x60(%rbp), %rsi
movl $0x34f, %ecx            # imm = 0x34F
movl $0x1, %r8d
movl $0x2, %r9d
xorl %eax, %eax
leaq -0x80(%rbp), %r11
pushq %r11
pushq %r10
leaq -0xa0(%rbp), %r10
pushq %r10
leaq 0x20a86(%rip), %r10     # 0x71d5a
pushq %r10
pushq $0x2
callq 0x5740
addq $0x30, %rsp
leaq -0xb0(%rbp), %rdi
callq 0x2e966
movq 0x3a25c(%rip), %rdi     # 0x8b550
leaq -0x2b0(%rbp), %rsi
movq %r15, (%rsi)
movq %r14, 0x8(%rsi)
leaq -0x2a0(%rbp), %rcx
leaq 0x2074f(%rip), %rax     # 0x71a5f
movq %rax, (%rcx)
movq %rax, 0x8(%rcx)
movl $0x350, %edx            # imm = 0x350
callq 0x5760
movb $0x0, -0x58(%rbp)
leaq 0x39734(%rip), %rax     # 0x8aa60
movq %rax, -0x60(%rbp)
movq %r12, -0x50(%rbp)
leaq 0x2008c(%rip), %rax     # 0x713c7
movq %rax, -0x48(%rbp)
movabsq $0x3ff0000000000000, %rax # imm = 0x3FF0000000000000
movq %rax, -0x30(%rbp)
leaq -0x198(%rbp), %rdi
leaq -0xf8(%rbp), %rsi
callq 0x1e18a
leaq 0x3a231(%rip), %rsi     # 0x8b598
movq %rax, %rdi
callq 0x1ddee
movsd -0x30(%rbp), %xmm0
ucomisd (%rax), %xmm0
setnp %cl
sete %dl
andb %cl, %dl
leaq -0xc0(%rbp), %rdi
movb %dl, (%rdi)
xorpd %xmm0, %xmm0
movupd %xmm0, 0x8(%rdi)
leaq -0x138(%rbp), %rdx
leaq 0x20872(%rip), %r15     # 0x71c12
movq %r15, (%rdx)
leaq 0x20876(%rip), %r14     # 0x71c20
movq %r14, 0x8(%rdx)
leaq -0x30(%rbp), %rcx
movq %rcx, -0xd0(%rbp)
xorl %ecx, %ecx
movb %cl, -0x98(%rbp)
movq %rbx, -0xa0(%rbp)
movq %r12, -0x90(%rbp)
leaq -0xd0(%rbp), %rsi
movq %rsi, -0x88(%rbp)
movq %rax, -0x38(%rbp)
movb %cl, -0x78(%rbp)
movq %rbx, -0x80(%rbp)
movq %r12, -0x70(%rbp)
leaq -0x38(%rbp), %rax
movq %rax, -0x68(%rbp)
subq $0x8, %rsp
leaq 0x20f1a(%rip), %r10     # 0x72319
leaq -0x60(%rbp), %rsi
movl $0x350, %ecx            # imm = 0x350
movq %rsi, %r13
movl $0x1, %r8d
movl $0x2, %r9d
xorl %eax, %eax
leaq -0x80(%rbp), %r11
pushq %r11
pushq %r10
leaq -0xa0(%rbp), %r10
pushq %r10
leaq 0x20929(%rip), %r10     # 0x71d5a
pushq %r10
pushq $0x2
callq 0x5740
addq $0x30, %rsp
leaq -0xb0(%rbp), %rdi
callq 0x2e966
movq 0x3a0ff(%rip), %rdi     # 0x8b550
leaq -0x290(%rbp), %rsi
movq %r15, (%rsi)
movq %r14, 0x8(%rsi)
leaq -0x280(%rbp), %rcx
leaq 0x205f2(%rip), %rax     # 0x71a5f
movq %rax, (%rcx)
movq %rax, 0x8(%rcx)
movl $0x351, %edx            # imm = 0x351
callq 0x5760
movb $0x0, -0xb8(%rbp)
leaq 0x395d4(%rip), %rax     # 0x8aa60
movq %rax, -0xc0(%rbp)
movq %r12, -0xb0(%rbp)
leaq 0x1ff26(%rip), %rax     # 0x713c7
movq %rax, -0xa8(%rbp)
movabsq $-0x3ff8000000000000, %rax # imm = 0xC008000000000000
movq %rax, -0x148(%rbp)
movsd 0x39f4f(%rip), %xmm2    # 0x8b410
movsd %xmm2, -0x140(%rbp)
movsd -0xd8(%rbp), %xmm1
leaq -0x138(%rbp), %rdi
leaq -0x39(%rbp), %rsi
movsd 0x206b4(%rip), %xmm0    # 0x71b98
callq 0x6b8ea
leaq -0xd0(%rbp), %rdx
leaq 0x2071b(%rip), %rax     # 0x71c12
movq %rax, (%rdx)
leaq 0x2071f(%rip), %rax     # 0x71c20
movq %rax, 0x8(%rdx)
leaq -0x148(%rbp), %rax
movq %rax, -0x38(%rbp)
xorl %eax, %eax
movb %al, -0x98(%rbp)
movq %rbx, -0xa0(%rbp)
movq %r12, -0x90(%rbp)
leaq -0x38(%rbp), %rcx
movq %rcx, -0x88(%rbp)
leaq -0xd8(%rbp), %rcx
movq %rcx, -0x30(%rbp)
movb %al, -0x78(%rbp)
movq %rbx, -0x80(%rbp)
movq %r12, -0x70(%rbp)
leaq -0x30(%rbp), %rcx
movq %rcx, -0x68(%rbp)
leaq -0x140(%rbp), %rcx
movq %rcx, -0x120(%rbp)
movb %al, -0x58(%rbp)
leaq 0x39769(%rip), %rax     # 0x8acd0
movq %rax, -0x60(%rbp)
movq %r12, -0x50(%rbp)
leaq -0x120(%rbp), %rax
movq %rax, -0x48(%rbp)
subq $0x8, %rsp
leaq 0x2080a(%rip), %r10     # 0x71d8f
leaq 0x21294(%rip), %r11     # 0x72820
leaq 0x2035e(%rip), %rbx     # 0x718f1
leaq -0x138(%rbp), %rdi
leaq -0xc0(%rbp), %rsi
movl $0x351, %ecx            # imm = 0x351
movl $0x1, %r8d
movl $0x8, %r9d
xorl %eax, %eax
pushq %r13
pushq %r10
leaq -0x80(%rbp), %r10
pushq %r10
pushq %r11
leaq -0xa0(%rbp), %r10
pushq %r10
pushq %rbx
pushq $0x3
callq 0x5740
addq $0x40, %rsp
leaq -0x128(%rbp), %rdi
callq 0x2e966
leaq -0x198(%rbp), %rdi
callq 0x1e76a
leaq -0x240(%rbp), %rdi
callq 0x12c6c
movq -0x168(%rbp), %rdi
leaq -0x158(%rbp), %rax
cmpq %rax, %rdi
leaq -0x108(%rbp), %rbx
leaq -0xe8(%rbp), %r14
je 0x5161f
callq 0x5380
leaq -0x1c8(%rbp), %rdi
callq 0x1e76a
leaq -0x270(%rbp), %rdi
callq 0x22c7c
movq -0xf8(%rbp), %rdi
cmpq %r14, %rdi
je 0x51648
callq 0x5380
movq -0x118(%rbp), %rdi
cmpq %rbx, %rdi
je 0x51659
callq 0x5380
addq $0x2e8, %rsp            # imm = 0x2E8
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
movq %rax, %rbx
leaq -0x128(%rbp), %rdi
jmp 0x5168c
jmp 0x51709
jmp 0x51682
jmp 0x51682
jmp 0x51682
movq %rax, %rbx
leaq -0xb0(%rbp), %rdi
callq 0x2e966
jmp 0x5170c
movq %rax, %rbx
jmp 0x51724
jmp 0x5173e
movq %rax, %rbx
movq $-0x60, %r14
movq -0x10(%r12), %rdi
cmpq %rdi, %r12
je 0x516b9
callq 0x5380
addq $-0x20, %r12
addq $0x20, %r14
jne 0x516aa
jmp 0x51759
movq %rax, %rbx
jmp 0x51771
jmp 0x51709
jmp 0x51709
jmp 0x51709
movq %rax, %rbx
cmpq %r14, %r15
je 0x51759
addq $-0x10, %r14
leaq -0x240(%rbp), %r15
movq -0x10(%r14), %rdi
cmpq %rdi, %r14
je 0x516f7
callq 0x5380
leaq -0x20(%r14), %rax
addq $-0x10, %r14
cmpq %r15, %r14
movq %rax, %r14
jne 0x516e9
jmp 0x51759
movq %rax, %rbx
leaq -0x198(%rbp), %rdi
callq 0x1e76a
leaq -0x240(%rbp), %rdi
callq 0x12c6c
movq -0x168(%rbp), %rdi
leaq -0x158(%rbp), %rax
cmpq %rax, %rdi
je 0x51741
callq 0x5380
jmp 0x51741
movq %rax, %rbx
leaq -0x1c8(%rbp), %rdi
callq 0x1e76a
leaq -0x270(%rbp), %rdi
callq 0x22c7c
movq -0xf8(%rbp), %rdi
leaq -0xe8(%rbp), %rax
cmpq %rax, %rdi
je 0x51771
callq 0x5380
movq -0x118(%rbp), %rdi
leaq -0x108(%rbp), %rax
cmpq %rax, %rdi
je 0x51789
callq 0x5380
movq %rbx, %rdi
callq 0x56f0