// File: /workspace/github_cpp_makefile_star2_O3/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 $0x2f8, %rsp            # imm = 0x2F8
leaq -0x108(%rbp), %rax
movq %rax, -0x10(%rax)
leaq 0x20654(%rip), %rsi     # 0x70fee
leaq 0x2064e(%rip), %rdx     # 0x70fef
leaq -0x118(%rbp), %rdi
callq 0x95e6
leaq -0xe8(%rbp), %rax
movq %rax, -0x10(%rax)
leaq 0x202fb(%rip), %rsi     # 0x70cba
leaq 0x202f6(%rip), %rdx     # 0x70cbc
leaq -0xf8(%rbp), %rdi
callq 0x95e6
leaq -0x238(%rbp), %rax
movq %rax, -0x10(%rax)
movq 0x39bb4(%rip), %rsi     # 0x8a598
movq 0x39bb5(%rip), %rdx     # 0x8a5a0
addq %rsi, %rdx
leaq -0x248(%rbp), %r14
movq %r14, %rdi
callq 0x9548
leaq -0x228(%rbp), %r15
leaq -0x218(%rbp), %rax
movq %rax, -0x10(%rax)
movq -0x118(%rbp), %rsi
movq -0x110(%rbp), %rdx
addq %rsi, %rdx
movq %r15, %rdi
callq 0x9548
leaq -0x208(%rbp), %r15
leaq -0x1f8(%rbp), %r12
movq %r12, -0x10(%r12)
movq -0xf8(%rbp), %rsi
movq -0xf0(%rbp), %rdx
addq %rsi, %rdx
movq %r15, %rdi
callq 0x9548
leaq -0x278(%rbp), %rdi
leaq -0x248(%rbp), %rsi
leaq -0x1d0(%rbp), %rcx
leaq -0x1a0(%rbp), %r8
movl $0x3, %edx
callq 0x6b15e
leaq -0x1f8(%rbp), %rbx
xorl %r14d, %r14d
movq -0x208(%rbp,%r14), %rdi
leaq (%rbx,%r14), %rax
cmpq %rdi, %rax
je 0x50a9a
callq 0x5380
addq $-0x20, %r14
cmpq $-0x60, %r14
jne 0x50a84
leaq -0x1c8(%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 -0x1d0(%rbp), %rdi
leaq -0x118(%rbp), %rsi
callq 0x1e0b0
leaq -0xf8(%rbp), %rsi
movq %rax, %rdi
callq 0x1dd1e
movabsq $-0x4010000000000000, %rbx # imm = 0xBFF0000000000000
movq %rbx, (%rax)
leaq 0x39a9f(%rip), %rsi     # 0x8a598
leaq -0x1d0(%rbp), %rdi
callq 0x1e0b0
leaq -0x118(%rbp), %rsi
movq %rax, %rdi
callq 0x1dd1e
movq %rbx, (%rax)
leaq -0x1d0(%rbp), %rdi
leaq -0xf8(%rbp), %rsi
callq 0x1e0b0
leaq 0x39a67(%rip), %rsi     # 0x8a598
movq %rax, %rdi
callq 0x1dd1e
movq %rbx, (%rax)
leaq -0x160(%rbp), %rax
movq %rax, -0x10(%rax)
leaq 0x2016b(%rip), %rsi     # 0x70cb9
leaq 0x20167(%rip), %rdx     # 0x70cbc
leaq -0x170(%rbp), %rdi
callq 0x95e6
leaq 0x39a30(%rip), %rdx     # 0x8a598
leaq -0x248(%rbp), %rdi
leaq -0x170(%rbp), %rsi
leaq -0x278(%rbp), %rcx
movl $0x2, %r8d
xorl %r9d, %r9d
callq 0x11002
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 -0x1d0(%rbp), %rdi
leaq -0x248(%rbp), %rsi
leaq -0x1a0(%rbp), %rdx
callq 0x1af02
movsd %xmm0, -0xd8(%rbp)
movsd -0xd8(%rbp), %xmm0
movsd %xmm0, -0x150(%rbp)
movq 0x3996d(%rip), %rdi     # 0x8a550
leaq 0x20058(%rip), %r12     # 0x70c42
leaq -0x318(%rbp), %rsi
movq %r12, (%rsi)
leaq 0x20055(%rip), %rax     # 0x70c50
movq %rax, 0x8(%rsi)
leaq 0x1fe69(%rip), %rax     # 0x70a6f
leaq -0x308(%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 0x38ea0(%rip), %rax     # 0x89ad0
movq %rax, (%rcx)
movq 0x39376(%rip), %r13     # 0x89fb0
movq %r13, 0x10(%rcx)
leaq 0x1f782(%rip), %rax     # 0x703c7
movq %rax, 0x18(%rcx)
leaq -0x30(%rbp), %rbx
movl $0x3, (%rbx)
leaq -0x1a0(%rbp), %rdi
callq 0x46b96
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 0x1ffc1(%rip), %r14     # 0x70c50
movq %r14, 0x8(%rdx)
leaq -0xd0(%rbp), %rsi
movq %rbx, (%rsi)
leaq -0xa0(%rbp), %rbx
movb %r15b, 0x8(%rbx)
leaq 0x38f71(%rip), %rax     # 0x89c20
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 0x20625(%rip), %r10     # 0x71308
leaq 0x2035f(%rip), %r11     # 0x71049
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 0x2e804
movq 0x3982a(%rip), %rdi     # 0x8a550
leaq -0x2f8(%rbp), %rsi
leaq 0x1ff0e(%rip), %rax     # 0x70c42
movq %rax, (%rsi)
movq %r14, 0x8(%rsi)
leaq -0x2e8(%rbp), %rcx
leaq 0x1fd26(%rip), %r15     # 0x70a6f
movq %r15, (%rcx)
movq %r15, 0x8(%rcx)
movl $0x34e, %edx            # imm = 0x34E
callq 0x5760
movq 0x3924f(%rip), %r12     # 0x89fb0
movb $0x0, -0x58(%rbp)
leaq 0x38d64(%rip), %rax     # 0x89ad0
movq %rax, -0x60(%rbp)
movq %r12, -0x50(%rbp)
leaq 0x1f64c(%rip), %rax     # 0x703c7
movq %rax, -0x48(%rbp)
movabsq $0x3ff0000000000000, %rax # imm = 0x3FF0000000000000
movq %rax, -0x30(%rbp)
leaq 0x39804(%rip), %rsi     # 0x8a598
leaq -0x1a0(%rbp), %rdi
callq 0x1e0b0
leaq -0x118(%rbp), %rsi
movq %rax, %rdi
callq 0x1dd1e
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 0x1fe62(%rip), %r15     # 0x70c42
movq %r15, (%rdx)
leaq 0x1fe66(%rip), %r14     # 0x70c50
movq %r14, 0x8(%rdx)
leaq -0x30(%rbp), %rcx
movq %rcx, -0xd0(%rbp)
xorl %ecx, %ecx
movb %cl, -0x98(%rbp)
leaq 0x38d18(%rip), %rbx     # 0x89b20
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 0x204da(%rip), %r10     # 0x71320
leaq 0x1ff3d(%rip), %r13     # 0x70d8a
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 0x2e804
movq 0x396bb(%rip), %rdi     # 0x8a550
leaq -0x2d8(%rbp), %rsi
movq %r15, (%rsi)
movq %r14, 0x8(%rsi)
leaq -0x2c8(%rbp), %rcx
leaq 0x1fbbe(%rip), %rax     # 0x70a6f
movq %rax, (%rcx)
movq %rax, 0x8(%rcx)
movl $0x34f, %edx            # imm = 0x34F
callq 0x5760
movb $0x0, -0x58(%rbp)
leaq 0x38c03(%rip), %rax     # 0x89ad0
movq %rax, -0x60(%rbp)
movq %r12, -0x50(%rbp)
leaq 0x1f4eb(%rip), %rax     # 0x703c7
movq %rax, -0x48(%rbp)
movabsq $0x3ff0000000000000, %rax # imm = 0x3FF0000000000000
movq %rax, -0x30(%rbp)
leaq -0x1a0(%rbp), %rdi
leaq -0x118(%rbp), %rsi
callq 0x1e0b0
leaq -0xf8(%rbp), %rsi
movq %rax, %rdi
callq 0x1dd1e
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 0x1fd01(%rip), %r15     # 0x70c42
movq %r15, (%rdx)
leaq 0x1fd05(%rip), %r14     # 0x70c50
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 0x20397(%rip), %r10     # 0x71337
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 0x1fdbb(%rip), %r10     # 0x70d8a
pushq %r10
pushq $0x2
callq 0x5740
addq $0x30, %rsp
leaq -0xb0(%rbp), %rdi
callq 0x2e804
movq 0x39561(%rip), %rdi     # 0x8a550
leaq -0x2b8(%rbp), %rsi
movq %r15, (%rsi)
movq %r14, 0x8(%rsi)
leaq -0x2a8(%rbp), %rcx
leaq 0x1fa64(%rip), %rax     # 0x70a6f
movq %rax, (%rcx)
movq %rax, 0x8(%rcx)
movl $0x350, %edx            # imm = 0x350
callq 0x5760
movb $0x0, -0x58(%rbp)
leaq 0x38aa9(%rip), %rax     # 0x89ad0
movq %rax, -0x60(%rbp)
movq %r12, -0x50(%rbp)
leaq 0x1f391(%rip), %rax     # 0x703c7
movq %rax, -0x48(%rbp)
movabsq $0x3ff0000000000000, %rax # imm = 0x3FF0000000000000
movq %rax, -0x30(%rbp)
leaq -0x1a0(%rbp), %rdi
leaq -0xf8(%rbp), %rsi
callq 0x1e0b0
leaq 0x39536(%rip), %rsi     # 0x8a598
movq %rax, %rdi
callq 0x1dd1e
movsd (%rax), %xmm0
ucomisd 0x1f5c2(%rip), %xmm0    # 0x70638
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 0x1fba4(%rip), %r15     # 0x70c42
movq %r15, (%rdx)
leaq 0x1fba8(%rip), %r14     # 0x70c50
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 0x2024c(%rip), %r10     # 0x71349
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 0x1fc5b(%rip), %r10     # 0x70d8a
pushq %r10
pushq $0x2
callq 0x5740
addq $0x30, %rsp
leaq -0xb0(%rbp), %rdi
callq 0x2e804
movq 0x39401(%rip), %rdi     # 0x8a550
leaq -0x298(%rbp), %rsi
movq %r15, (%rsi)
movq %r14, 0x8(%rsi)
leaq -0x288(%rbp), %rcx
leaq 0x1f904(%rip), %rax     # 0x70a6f
movq %rax, (%rcx)
movq %rax, 0x8(%rcx)
movl $0x351, %edx            # imm = 0x351
callq 0x5760
movb $0x0, -0xb8(%rbp)
leaq 0x38946(%rip), %rax     # 0x89ad0
movq %rax, -0xc0(%rbp)
movq %r12, -0xb0(%rbp)
leaq 0x1f228(%rip), %rax     # 0x703c7
movq %rax, -0xa8(%rbp)
movabsq $-0x3ff8000000000000, %rax # imm = 0xC008000000000000
movq %rax, -0x148(%rbp)
movsd 0x39251(%rip), %xmm2    # 0x8a410
movsd %xmm2, -0x140(%rbp)
leaq -0x138(%rbp), %rdi
leaq -0x39(%rbp), %rsi
movsd 0x1f5ce(%rip), %xmm0    # 0x707a8
movsd -0xd8(%rbp), %xmm1
callq 0x6b55a
leaq -0xd0(%rbp), %rdx
leaq 0x1fa4d(%rip), %rax     # 0x70c42
movq %rax, (%rdx)
leaq 0x1fa51(%rip), %rax     # 0x70c50
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 -0x150(%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 0x38a6b(%rip), %rax     # 0x89cd0
movq %rax, -0x60(%rbp)
movq %r12, -0x50(%rbp)
leaq -0x120(%rbp), %rax
movq %rax, -0x48(%rbp)
subq $0x8, %rsp
leaq 0x1fb3c(%rip), %r10     # 0x70dbf
leaq 0x205c6(%rip), %r11     # 0x71850
leaq 0x1f670(%rip), %rbx     # 0x70901
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 0x2e804
leaq -0x1a0(%rbp), %rdi
callq 0x1e684
leaq -0x248(%rbp), %rdi
callq 0x12b80
movq -0x170(%rbp), %rdi
leaq -0x160(%rbp), %rax
cmpq %rax, %rdi
leaq -0x108(%rbp), %rbx
leaq -0xe8(%rbp), %r14
je 0x5131d
callq 0x5380
leaq -0x1d0(%rbp), %rdi
callq 0x1e684
leaq -0x278(%rbp), %rdi
callq 0x22afc
movq -0xf8(%rbp), %rdi
cmpq %r14, %rdi
je 0x51346
callq 0x5380
movq -0x118(%rbp), %rdi
cmpq %rbx, %rdi
je 0x51357
callq 0x5380
addq $0x2f8, %rsp            # imm = 0x2F8
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
movq %rax, %rbx
leaq -0x128(%rbp), %rdi
jmp 0x5138a
jmp 0x51403
jmp 0x51380
jmp 0x51380
jmp 0x51380
movq %rax, %rbx
leaq -0xb0(%rbp), %rdi
callq 0x2e804
jmp 0x51406
movq %rax, %rbx
jmp 0x5141e
jmp 0x51438
movq %rax, %rbx
movq $-0x60, %r14
movq -0x10(%r12), %rdi
cmpq %rdi, %r12
je 0x513b7
callq 0x5380
addq $-0x20, %r12
addq $0x20, %r14
jne 0x513a8
jmp 0x51453
movq %rax, %rbx
jmp 0x51453
movq %rax, %rbx
jmp 0x5146b
jmp 0x51403
jmp 0x51403
jmp 0x51403
movq %rax, %rbx
addq $-0x10, %r15
movq -0x10(%r15), %rdi
cmpq %rdi, %r15
je 0x513f1
callq 0x5380
leaq -0x20(%r15), %rax
addq $-0x10, %r15
cmpq %r14, %r15
movq %rax, %r15
jne 0x513e3
jmp 0x51453
movq %rax, %rbx
leaq -0x1a0(%rbp), %rdi
callq 0x1e684
leaq -0x248(%rbp), %rdi
callq 0x12b80
movq -0x170(%rbp), %rdi
leaq -0x160(%rbp), %rax
cmpq %rax, %rdi
je 0x5143b
callq 0x5380
jmp 0x5143b
movq %rax, %rbx
leaq -0x1d0(%rbp), %rdi
callq 0x1e684
leaq -0x278(%rbp), %rdi
callq 0x22afc
movq -0xf8(%rbp), %rdi
leaq -0xe8(%rbp), %rax
cmpq %rax, %rdi
je 0x5146b
callq 0x5380
movq -0x118(%rbp), %rdi
leaq -0x108(%rbp), %rax
cmpq %rax, %rdi
je 0x51483
callq 0x5380
movq %rbx, %rdi
callq 0x56f0