// File: /workspace/github_cpp_makefile_star2_O3/aalto-speech[P]ftk/test/emtest.cc
// Function: FactorGraphTest5::test_method()
BOOST_AUTO_TEST_CASE(FactorGraphTest5)
{
    map<std::string, flt_type> vocab;
    vocab.insert(make_pair("k", 0.0));
    vocab.insert(make_pair("ö", 0.0));
    vocab.insert(make_pair("kö", 0.0));
    vocab.insert(make_pair("kös", 0.0));
    vocab.insert(make_pair("�", 0.0));
    vocab.insert(make_pair("�", 0.0));
    vocab.insert(make_pair("s", 0.0));
    vocab.insert(make_pair("i", 0.0));
    vocab.insert(make_pair("si", 0.0));
    vocab.insert(make_pair("ssi", 0.0));

    FactorGraph fg("kössi", start_end, vocab, 3, true);
    BOOST_CHECK_EQUAL(11, (int)fg.nodes.size());

    StringSet ssvocab(vocab);
    FactorGraph ssfg("kössi", start_end, ssvocab, true);
    BOOST_CHECK(fg.assert_equal(ssfg));

    int node_idx = 0;
    assert_node(fg, node_idx++, start_end, 0, 3);
    assert_node(fg, node_idx++, std::string("k"), 1, 1);
    assert_node(fg, node_idx++, std::string("kö"), 1, 2);
    assert_node(fg, node_idx++, std::string("kös"), 1, 2);
    assert_node(fg, node_idx++, std::string("ö"), 1, 2);
    assert_node(fg, node_idx++, std::string("s"), 2, 2);
    assert_node(fg, node_idx++, std::string("ssi"), 2, 1);
    assert_node(fg, node_idx++, std::string("s"), 2, 1);
    assert_node(fg, node_idx++, std::string("si"), 2, 1);
    assert_node(fg, node_idx++, std::string("i"), 1, 1);
    assert_node(fg, node_idx++, start_end, 3, 0);
}

// Assembly:
pushq %rbp
movq %rsp, %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
subq $0x2f8, %rsp            # imm = 0x2F8
leaq -0x70(%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 0x2f66d(%rip), %rax     # 0x70d14
leaq -0x250(%rbp), %rsi
movq %rax, (%rsi)
movq %rcx, 0x8(%rsi)
leaq -0x78(%rbp), %rdi
callq 0x6ba60
leaq 0x2f853(%rip), %rax     # 0x70f18
leaq -0x250(%rbp), %rsi
movq %rax, (%rsi)
movq $0x0, 0x8(%rsi)
leaq -0x78(%rbp), %rdi
callq 0x6ba60
leaq 0x2f830(%rip), %rax     # 0x70f17
leaq -0x250(%rbp), %rsi
movq %rax, (%rsi)
movq $0x0, 0x8(%rsi)
leaq -0x78(%rbp), %rdi
callq 0x6ba60
leaq 0x2f812(%rip), %rax     # 0x70f1b
leaq -0x250(%rbp), %rsi
movq %rax, (%rsi)
movq $0x0, 0x8(%rsi)
leaq -0x78(%rbp), %rdi
callq 0x6ba60
leaq 0x2f619(%rip), %rbx     # 0x70d44
leaq -0x250(%rbp), %rsi
movq %rbx, (%rsi)
movq $0x0, 0x8(%rsi)
leaq -0x78(%rbp), %rdi
callq 0x6ba60
leaq -0x250(%rbp), %rsi
movq %rbx, (%rsi)
movq $0x0, 0x8(%rsi)
leaq -0x78(%rbp), %rdi
callq 0x6ba60
leaq 0x2e8a6(%rip), %rax     # 0x7000e
leaq -0x250(%rbp), %rsi
movq %rax, (%rsi)
movq $0x0, 0x8(%rsi)
leaq -0x78(%rbp), %rdi
callq 0x6ba60
leaq 0x2f062(%rip), %rax     # 0x707ec
leaq -0x250(%rbp), %rsi
movq %rax, (%rsi)
movq $0x0, 0x8(%rsi)
leaq -0x78(%rbp), %rdi
callq 0x6ba60
leaq 0x2f778(%rip), %rax     # 0x70f24
leaq -0x250(%rbp), %rsi
movq %rax, (%rsi)
movq $0x0, 0x8(%rsi)
leaq -0x78(%rbp), %rdi
callq 0x6ba60
leaq 0x2f755(%rip), %rax     # 0x70f23
leaq -0x250(%rbp), %rsi
movq %rax, (%rsi)
movq $0x0, 0x8(%rsi)
leaq -0x78(%rbp), %rdi
callq 0x6ba60
leaq -0x240(%rbp), %r15
movq %r15, -0x10(%r15)
leaq 0x2f725(%rip), %rsi     # 0x70f20
leaq 0x2f724(%rip), %rdx     # 0x70f26
leaq -0x250(%rbp), %rdi
callq 0x95e6
leaq 0x48d83(%rip), %rdx     # 0x8a598
leaq -0x120(%rbp), %rdi
leaq -0x250(%rbp), %rsi
leaq -0x78(%rbp), %rcx
movl $0x3, %r8d
movl $0x1, %r9d
callq 0x10e70
movq -0x250(%rbp), %rdi
cmpq %r15, %rdi
je 0x41849
callq 0x5380
movq 0x48d00(%rip), %rdi     # 0x8a550
leaq 0x2f3eb(%rip), %r12     # 0x70c42
leaq -0x2a0(%rbp), %rsi
movq %r12, (%rsi)
leaq 0x2f3e8(%rip), %r14     # 0x70c50
movq %r14, 0x8(%rsi)
leaq 0x2f1fc(%rip), %r15     # 0x70a6f
leaq -0x290(%rbp), %rcx
movq %r15, (%rcx)
movq %r15, 0x8(%rcx)
movl $0x1f7, %edx            # imm = 0x1F7
callq 0x5760
xorl %eax, %eax
leaq -0x48(%rbp), %rsi
movb %al, 0x8(%rsi)
leaq 0x48235(%rip), %rcx     # 0x89ad0
movq %rcx, (%rsi)
movq 0x4870b(%rip), %r13     # 0x89fb0
movq %r13, 0x10(%rsi)
leaq 0x2eb17(%rip), %rcx     # 0x703c7
movq %rcx, 0x18(%rsi)
leaq -0x98(%rbp), %rcx
movl $0xb, (%rcx)
movq -0xd8(%rbp), %rdx
subq -0xe0(%rbp), %rdx
shrq $0x3, %rdx
imull $0xb6db6db7, %edx, %edx # imm = 0xB6DB6DB7
leaq -0x94(%rbp), %r8
cmpl $0xb, %edx
leaq -0x90(%rbp), %rdi
sete (%rdi)
movl %edx, (%r8)
xorps %xmm0, %xmm0
movups %xmm0, 0x8(%rdi)
leaq -0xa8(%rbp), %rbx
movq %r12, (%rbx)
movq %r14, 0x8(%rbx)
leaq -0x130(%rbp), %rdx
movq %rcx, (%rdx)
movb %al, -0x248(%rbp)
leaq 0x48304(%rip), %rcx     # 0x89c20
movq %rcx, -0x250(%rbp)
movq %r13, -0x240(%rbp)
movq %rdx, -0x238(%rbp)
leaq -0x128(%rbp), %rdx
movq %r8, (%rdx)
leaq -0x318(%rbp), %r10
movb %al, 0x8(%r10)
movq %rcx, (%r10)
movq %r13, 0x10(%r10)
movq %rdx, 0x18(%r10)
subq $0x8, %rsp
leaq 0x2f694(%rip), %r11     # 0x70ff0
leaq 0x2f6f9(%rip), %r12     # 0x7105c
movl $0x1f7, %ecx            # imm = 0x1F7
movq %rbx, %rdx
movl $0x1, %r8d
movl $0x2, %r9d
xorl %eax, %eax
pushq %r10
pushq %r11
leaq -0x250(%rbp), %r10
pushq %r10
pushq %r12
pushq $0x2
callq 0x5740
addq $0x30, %rsp
leaq -0x80(%rbp), %rdi
callq 0x2e804
leaq -0x250(%rbp), %rdi
leaq -0x78(%rbp), %rsi
callq 0xf4f0
leaq -0x38(%rbp), %r14
movq %r14, -0x10(%r14)
leaq 0x2f565(%rip), %rsi     # 0x70f20
leaq 0x2f564(%rip), %rdx     # 0x70f26
leaq -0x48(%rbp), %rdi
callq 0x95e6
leaq 0x2f270(%rip), %r12     # 0x70c42
leaq 0x48bbf(%rip), %rdx     # 0x8a598
leaq -0x318(%rbp), %rdi
leaq -0x48(%rbp), %rsi
leaq -0x250(%rbp), %rcx
movl $0x1, %r8d
callq 0x11194
movq -0x48(%rbp), %rdi
cmpq %r14, %rdi
je 0x41a04
callq 0x5380
movq 0x48b45(%rip), %rdi     # 0x8a550
leaq -0x280(%rbp), %rsi
movq %r12, (%rsi)
leaq 0x2f234(%rip), %rax     # 0x70c50
movq %rax, 0x8(%rsi)
leaq -0x270(%rbp), %rcx
movq %r15, (%rcx)
movq %r15, 0x8(%rcx)
movl $0x1fb, %edx            # imm = 0x1FB
callq 0x5760
leaq -0x120(%rbp), %rdi
leaq -0x318(%rbp), %rsi
callq 0x12014
leaq -0x90(%rbp), %rdi
movb %al, (%rdi)
xorps %xmm0, %xmm0
movups %xmm0, 0x8(%rdi)
leaq 0x2f5a3(%rip), %rax     # 0x71005
movq %rax, -0xa8(%rbp)
leaq 0x2f5aa(%rip), %rax     # 0x7101a
movq %rax, -0xa0(%rbp)
leaq -0x48(%rbp), %rsi
movb $0x0, 0x8(%rsi)
leaq 0x480da(%rip), %rax     # 0x89b60
movq %rax, (%rsi)
movq %r13, 0x10(%rsi)
movq %rbx, 0x18(%rsi)
leaq -0x260(%rbp), %rdx
movq %r12, (%rdx)
leaq 0x2f1ae(%rip), %rax     # 0x70c50
movq %rax, 0x8(%rdx)
subq $0x8, %rsp
movl $0x1fb, %ecx            # imm = 0x1FB
movl $0x1, %r8d
xorl %r9d, %r9d
xorl %eax, %eax
pushq $0x0
callq 0x5740
addq $0x10, %rsp
leaq -0x80(%rbp), %rdi
callq 0x2e804
leaq 0x48ac3(%rip), %rdx     # 0x8a598
leaq -0x120(%rbp), %rdi
xorl %esi, %esi
xorl %ecx, %ecx
movl $0x3, %r8d
callq 0x3d896
leaq -0x48(%rbp), %rdi
movq %r14, (%rdi)
leaq 0x2f21b(%rip), %rsi     # 0x70d14
leaq 0x2f215(%rip), %rdx     # 0x70d15
callq 0x95e6
leaq -0x120(%rbp), %rdi
leaq -0x48(%rbp), %rdx
movl $0x1, %esi
movl $0x1, %ecx
movl $0x1, %r8d
callq 0x3d896
movq -0x48(%rbp), %rdi
cmpq %r14, %rdi
je 0x41b33
callq 0x5380
leaq -0x48(%rbp), %rdi
movq %r14, (%rdi)
leaq 0x2f3d6(%rip), %rsi     # 0x70f17
leaq 0x2f3d2(%rip), %rdx     # 0x70f1a
callq 0x95e6
leaq -0x120(%rbp), %rdi
leaq -0x48(%rbp), %rdx
movl $0x2, %esi
movl $0x1, %ecx
movl $0x2, %r8d
callq 0x3d896
movq -0x48(%rbp), %rdi
cmpq %r14, %rdi
je 0x41b7b
callq 0x5380
leaq -0x48(%rbp), %rdi
movq %r14, (%rdi)
leaq 0x2f392(%rip), %rsi     # 0x70f1b
leaq 0x2f38f(%rip), %rdx     # 0x70f1f
callq 0x95e6
leaq -0x120(%rbp), %rdi
leaq -0x48(%rbp), %rdx
movl $0x3, %esi
movl $0x1, %ecx
movl $0x2, %r8d
callq 0x3d896
movq -0x48(%rbp), %rdi
cmpq %r14, %rdi
je 0x41bc3
callq 0x5380
leaq -0x48(%rbp), %rdi
movq %r14, (%rdi)
leaq 0x2f347(%rip), %rsi     # 0x70f18
leaq 0x2f342(%rip), %rdx     # 0x70f1a
callq 0x95e6
leaq -0x120(%rbp), %rdi
leaq -0x48(%rbp), %rdx
movl $0x4, %esi
movl $0x1, %ecx
movl $0x2, %r8d
callq 0x3d896
movq -0x48(%rbp), %rdi
cmpq %r14, %rdi
je 0x41c0b
callq 0x5380
leaq -0x48(%rbp), %rdi
movq %r14, (%rdi)
leaq 0x2e3f5(%rip), %rsi     # 0x7000e
leaq 0x2e3ef(%rip), %rdx     # 0x7000f
callq 0x95e6
leaq -0x120(%rbp), %rdi
leaq -0x48(%rbp), %rdx
movl $0x5, %esi
movl $0x2, %ecx
movl $0x2, %r8d
callq 0x3d896
movq -0x48(%rbp), %rdi
cmpq %r14, %rdi
je 0x41c53
callq 0x5380
leaq -0x48(%rbp), %rdi
movq %r14, (%rdi)
leaq 0x2f2c2(%rip), %rsi     # 0x70f23
leaq 0x2f2be(%rip), %rdx     # 0x70f26
callq 0x95e6
leaq -0x120(%rbp), %rdi
leaq -0x48(%rbp), %rdx
movl $0x6, %esi
movl $0x2, %ecx
movl $0x1, %r8d
callq 0x3d896
movq -0x48(%rbp), %rdi
cmpq %r14, %rdi
je 0x41c9b
callq 0x5380
leaq -0x48(%rbp), %rdi
movq %r14, (%rdi)
leaq 0x2e365(%rip), %rsi     # 0x7000e
leaq 0x2e35f(%rip), %rdx     # 0x7000f
callq 0x95e6
leaq -0x120(%rbp), %rdi
leaq -0x48(%rbp), %rdx
movl $0x7, %esi
movl $0x2, %ecx
movl $0x1, %r8d
callq 0x3d896
movq -0x48(%rbp), %rdi
cmpq %r14, %rdi
je 0x41ce3
callq 0x5380
leaq -0x48(%rbp), %rdi
movq %r14, (%rdi)
leaq 0x2f233(%rip), %rsi     # 0x70f24
leaq 0x2f22e(%rip), %rdx     # 0x70f26
callq 0x95e6
leaq -0x120(%rbp), %rdi
leaq -0x48(%rbp), %rdx
movl $0x8, %esi
movl $0x2, %ecx
movl $0x1, %r8d
callq 0x3d896
movq -0x48(%rbp), %rdi
cmpq %r14, %rdi
je 0x41d2b
callq 0x5380
leaq -0x48(%rbp), %rdi
movq %r14, (%rdi)
leaq 0x2eab3(%rip), %rsi     # 0x707ec
leaq 0x2eaad(%rip), %rdx     # 0x707ed
callq 0x95e6
leaq -0x120(%rbp), %rdi
leaq -0x48(%rbp), %rdx
movl $0x9, %esi
movl $0x1, %ecx
movl $0x1, %r8d
callq 0x3d896
movq -0x48(%rbp), %rdi
cmpq %r14, %rdi
je 0x41d73
callq 0x5380
leaq 0x4881e(%rip), %rdx     # 0x8a598
leaq -0x120(%rbp), %rdi
movl $0xa, %esi
movl $0x3, %ecx
xorl %r8d, %r8d
callq 0x3d896
leaq -0x318(%rbp), %rdi
callq 0x12b80
leaq -0x250(%rbp), %rdi
callq 0xf870
leaq -0x120(%rbp), %rdi
callq 0x12b80
leaq -0x78(%rbp), %rdi
callq 0x1e712
addq $0x2f8, %rsp            # imm = 0x2F8
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
movq %rax, %rbx
movq -0x48(%rbp), %rdi
cmpq %r14, %rdi
je 0x41f19
jmp 0x41e9f
jmp 0x41f16
movq %rax, %rbx
movq -0x48(%rbp), %rdi
cmpq %r14, %rdi
je 0x41f19
jmp 0x41e9f
jmp 0x41f16
movq %rax, %rbx
movq -0x48(%rbp), %rdi
cmpq %r14, %rdi
je 0x41f19
jmp 0x41e9f
jmp 0x41f16
movq %rax, %rbx
movq -0x48(%rbp), %rdi
cmpq %r14, %rdi
je 0x41f19
jmp 0x41e9f
jmp 0x41f16
movq %rax, %rbx
movq -0x48(%rbp), %rdi
cmpq %r14, %rdi
je 0x41f19
jmp 0x41e9f
jmp 0x41f16
movq %rax, %rbx
movq -0x48(%rbp), %rdi
cmpq %r14, %rdi
je 0x41f19
jmp 0x41e9f
jmp 0x41f16
movq %rax, %rbx
movq -0x48(%rbp), %rdi
cmpq %r14, %rdi
je 0x41f19
jmp 0x41e9f
jmp 0x41f16
movq %rax, %rbx
movq -0x48(%rbp), %rdi
cmpq %r14, %rdi
je 0x41f19
jmp 0x41e9f
jmp 0x41f16
movq %rax, %rbx
movq -0x48(%rbp), %rdi
cmpq %r14, %rdi
je 0x41f19
callq 0x5380
jmp 0x41f19
jmp 0x41f16
movq %rax, %rbx
leaq -0x80(%rbp), %rdi
callq 0x2e804
jmp 0x41f19
jmp 0x41f16
jmp 0x41f16
movq %rax, %rbx
movq -0x48(%rbp), %rdi
cmpq %r14, %rdi
je 0x41f25
callq 0x5380
jmp 0x41f25
movq %rax, %rbx
jmp 0x41f25
jmp 0x41ee2
movq %rax, %rbx
leaq -0x80(%rbp), %rdi
callq 0x2e804
jmp 0x41f31
movq %rax, %rbx
jmp 0x41f31
movq %rax, %rbx
movq -0x250(%rbp), %rdi
cmpq %r15, %rdi
je 0x41f3d
callq 0x5380
jmp 0x41f3d
jmp 0x41f11
jmp 0x41f11
jmp 0x41f11
jmp 0x41f11
jmp 0x41f11
jmp 0x41f11
jmp 0x41f11
jmp 0x41f11
jmp 0x41f11
jmp 0x41f11
movq %rax, %rbx
jmp 0x41f3d
movq %rax, %rbx
leaq -0x318(%rbp), %rdi
callq 0x12b80
leaq -0x250(%rbp), %rdi
callq 0xf870
leaq -0x120(%rbp), %rdi
callq 0x12b80
leaq -0x78(%rbp), %rdi
callq 0x1e712
movq %rbx, %rdi
callq 0x56f0