// File: /workspace/github_cpp_makefile_star2_O2/aalto-speech[P]ftk/test/emtest.cc
// Function: FactorGraphTestRemoveArcs::test_method()
BOOST_AUTO_TEST_CASE(FactorGraphTestRemoveArcs)
{
    set<string> vocab = {"k","i","s","a","sa","ki","kis","kissa"};
    string sentence("kissa");
    FactorGraph fg(sentence, start_end, vocab, 5);
    vector<vector<string> > paths;
    fg.remove_arcs(string("k"), string("i"));
    fg.remove_arcs(string("s"), string("a"));
    fg.get_paths(paths);
    BOOST_CHECK_EQUAL( 3, (int)paths.size() );
    vector<string> seg = {"*", "kissa", "*" };
    BOOST_CHECK( includes_path(paths, seg) );
    vector<string> seg2 = {"*", "kis", "sa", "*" };
    BOOST_CHECK( includes_path(paths, seg2) );
    vector<string> seg3 = {"*", "ki", "s", "sa", "*" };
    BOOST_CHECK( includes_path(paths, seg3) );
}

// Assembly:
pushq %rbp
movq %rsp, %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
subq $0x348, %rsp            # imm = 0x348
leaq 0x1cf25(%rip), %rsi     # 0x53c52
leaq -0x1c8(%rbp), %r14
leaq -0x350(%rbp), %rdx
movq %r14, %rdi
callq 0x5160
leaq -0x1a8(%rbp), %r15
leaq 0x1ca17(%rip), %rsi     # 0x53768
leaq -0x1e8(%rbp), %rdx
movq %r15, %rdi
callq 0x5160
leaq -0x188(%rbp), %r15
leaq 0x1c2a0(%rip), %rsi     # 0x5300e
leaq -0xa0(%rbp), %rdx
movq %r15, %rdi
callq 0x5160
leaq -0x168(%rbp), %r15
leaq 0x1d1a1(%rip), %rsi     # 0x53f2c
leaq -0x80(%rbp), %rdx
movq %r15, %rdi
callq 0x5160
leaq -0x148(%rbp), %r15
leaq 0x1da1b(%rip), %rsi     # 0x547c0
leaq -0x60(%rbp), %rdx
movq %r15, %rdi
callq 0x5160
leaq -0x128(%rbp), %r15
leaq 0x1cfc5(%rip), %rsi     # 0x53d84
leaq -0x48(%rbp), %rdx
movq %r15, %rdi
callq 0x5160
leaq -0x108(%rbp), %r15
leaq 0x1cfae(%rip), %rsi     # 0x53d87
leaq -0xc8(%rbp), %rdx
movq %r15, %rdi
callq 0x5160
leaq -0xe8(%rbp), %r15
leaq 0x1ce5e(%rip), %rsi     # 0x53c54
leaq -0xb0(%rbp), %rdx
movq %r15, %rdi
callq 0x5160
leaq -0x218(%rbp), %rdi
leaq -0x1c8(%rbp), %rsi
pushq $0x8
popq %rdx
leaq -0x2a(%rbp), %rcx
leaq -0x29(%rbp), %r8
callq 0x4ed0a
movl $0xe0, %ebx
leaq (%rbx,%rbp), %rdi
addq $-0x1c8, %rdi           # imm = 0xFE38
callq 0x57b8
addq $-0x20, %rbx
cmpq $-0x20, %rbx
jne 0x36e28
leaq 0x1ce0b(%rip), %rsi     # 0x53c54
leaq -0x1e8(%rbp), %rdi
leaq -0x1c8(%rbp), %rdx
callq 0x5160
leaq 0x39725(%rip), %rdx     # 0x70588
leaq -0x350(%rbp), %rdi
leaq -0x1e8(%rbp), %rsi
leaq -0x218(%rbp), %rcx
pushq $0x5
popq %r8
xorl %r9d, %r9d
callq 0xf742
xorps %xmm0, %xmm0
movaps %xmm0, -0x80(%rbp)
andq $0x0, -0x70(%rbp)
leaq 0x1cdbb(%rip), %rsi     # 0x53c52
leaq -0x1c8(%rbp), %rdi
leaq -0x60(%rbp), %rdx
callq 0x5160
leaq 0x1c8ba(%rip), %rsi     # 0x53768
leaq -0xa0(%rbp), %rdi
leaq -0x48(%rbp), %rdx
callq 0x5160
leaq -0x350(%rbp), %rdi
leaq -0x1c8(%rbp), %rsi
leaq -0xa0(%rbp), %rdx
callq 0x107cc
leaq -0xa0(%rbp), %rdi
callq 0x57b8
leaq -0x1c8(%rbp), %rdi
callq 0x57b8
leaq 0x1c117(%rip), %rsi     # 0x5300e
leaq -0x1c8(%rbp), %rdi
leaq -0x60(%rbp), %rbx
movq %rbx, %rdx
callq 0x5160
leaq 0x1d01b(%rip), %rsi     # 0x53f2c
leaq -0xa0(%rbp), %rdi
leaq -0x48(%rbp), %rdx
callq 0x5160
leaq -0x350(%rbp), %rdi
leaq -0x1c8(%rbp), %rsi
leaq -0xa0(%rbp), %rdx
callq 0x107cc
leaq -0xa0(%rbp), %rdi
callq 0x57b8
leaq -0x1c8(%rbp), %rdi
callq 0x57b8
leaq -0x350(%rbp), %rdi
leaq -0x80(%rbp), %rsi
callq 0x105f2
movq 0x395d6(%rip), %rdi     # 0x70540
leaq 0x1cc0f(%rip), %r14     # 0x53b80
leaq -0x2d8(%rbp), %rsi
movq %r14, (%rsi)
leaq 0x1cc0c(%rip), %r13     # 0x53b8e
movq %r13, 0x8(%rsi)
leaq 0x1ca88(%rip), %r12     # 0x53a15
leaq -0x2c8(%rbp), %rcx
movq %r12, (%rcx)
movq %r12, 0x8(%rcx)
movl $0x245, %edx            # imm = 0x245
callq 0x5710
leaq -0x1c8(%rbp), %rdi
movb $0x0, 0x8(%rdi)
leaq 0x38b29(%rip), %rax     # 0x6fae0
movq %rax, (%rdi)
movq 0x38fef(%rip), %rax     # 0x6ffb0
movq %rax, 0x10(%rdi)
leaq 0x1c38b(%rip), %rax     # 0x53357
movq %rax, 0x18(%rdi)
leaq -0x2b8(%rbp), %rsi
movq %r14, (%rsi)
movq %r13, 0x8(%rsi)
leaq -0xa0(%rbp), %r9
movl $0x3, (%r9)
movq -0x78(%rbp), %rax
subq -0x80(%rbp), %rax
pushq $0x18
popq %rcx
cqto
idivq %rcx
movl %eax, -0x60(%rbp)
leaq 0x1cfd5(%rip), %rax     # 0x53fdb
movq %rax, 0x10(%rsp)
movq %rbx, 0x8(%rsp)
leaq 0x1cf70(%rip), %rax     # 0x53f87
movq %rax, (%rsp)
pushq $0x1
popq %rcx
pushq $0x2
popq %r8
movl $0x245, %edx            # imm = 0x245
callq 0x4ea09
leaq 0x1c3f3(%rip), %rsi     # 0x53426
leaq -0x1c8(%rbp), %r14
leaq -0x60(%rbp), %rdx
movq %r14, %rdi
callq 0x5160
leaq -0x1a8(%rbp), %r15
leaq 0x1cc00(%rip), %rsi     # 0x53c54
leaq -0x48(%rbp), %rbx
movq %r15, %rdi
movq %rbx, %rdx
callq 0x5160
leaq -0x188(%rbp), %r15
leaq 0x1c3b5(%rip), %rsi     # 0x53426
leaq -0xc8(%rbp), %rdx
movq %r15, %rdi
callq 0x5160
leaq -0xa0(%rbp), %rdi
leaq -0x1c8(%rbp), %rsi
pushq $0x3
popq %rdx
leaq -0xb0(%rbp), %rcx
callq 0x4ed52
pushq $0x40
popq %r14
leaq 0x1cad8(%rip), %r15     # 0x53b80
leaq (%r14,%rbp), %rdi
addq $-0x1c8, %rdi           # imm = 0xFE38
callq 0x57b8
addq $-0x20, %r14
cmpq $-0x20, %r14
jne 0x370a8
movq 0x39477(%rip), %rdi     # 0x70540
leaq -0x2a8(%rbp), %rsi
movq %r15, (%rsi)
movq %r13, 0x8(%rsi)
leaq -0x298(%rbp), %rcx
movq %r12, (%rcx)
movq %r12, 0x8(%rcx)
movl $0x247, %edx            # imm = 0x247
callq 0x5710
leaq -0x80(%rbp), %rdi
leaq -0xa0(%rbp), %rsi
callq 0x34d21
leaq -0x60(%rbp), %rdi
movb %al, (%rdi)
xorps %xmm0, %xmm0
movups %xmm0, 0x8(%rdi)
leaq 0x1ceda(%rip), %rax     # 0x53fed
movq %rax, -0x48(%rbp)
leaq 0x1cee8(%rip), %rax     # 0x54006
movq %rax, -0x40(%rbp)
leaq -0x1c8(%rbp), %rsi
movb $0x0, 0x8(%rsi)
leaq 0x38a3c(%rip), %rax     # 0x6fb70
movq %rax, (%rsi)
movq 0x38e72(%rip), %rax     # 0x6ffb0
movq %rax, 0x10(%rsi)
movq %rbx, 0x18(%rsi)
leaq -0x288(%rbp), %rdx
movq %r15, (%rdx)
movq %r13, 0x8(%rdx)
andq $0x0, (%rsp)
pushq $0x1
popq %r8
movl $0x247, %ecx            # imm = 0x247
xorl %r9d, %r9d
xorl %eax, %eax
callq 0x56f0
leaq -0x50(%rbp), %rdi
callq 0x291f6
leaq 0x1c2aa(%rip), %rsi     # 0x53426
leaq -0x1c8(%rbp), %r14
leaq -0x48(%rbp), %rdx
movq %r14, %rdi
callq 0x5160
leaq -0x1a8(%rbp), %r15
leaq 0x1cbea(%rip), %rsi     # 0x53d87
leaq -0xc8(%rbp), %rbx
movq %r15, %rdi
movq %rbx, %rdx
callq 0x5160
leaq -0x188(%rbp), %r15
leaq 0x1d603(%rip), %rsi     # 0x547c0
leaq -0xb0(%rbp), %rdx
movq %r15, %rdi
callq 0x5160
leaq -0x168(%rbp), %r15
leaq 0x1c24c(%rip), %rsi     # 0x53426
leaq -0x2a(%rbp), %rdx
movq %r15, %rdi
callq 0x5160
leaq -0x60(%rbp), %rdi
leaq -0x1c8(%rbp), %rsi
pushq $0x4
popq %rdx
leaq -0x29(%rbp), %rcx
callq 0x4ed52
pushq $0x60
popq %r14
leaq 0x1c978(%rip), %r15     # 0x53b80
leaq (%r14,%rbp), %rdi
addq $-0x1c8, %rdi           # imm = 0xFE38
callq 0x57b8
addq $-0x20, %r14
cmpq $-0x20, %r14
jne 0x37208
movq 0x39317(%rip), %rdi     # 0x70540
leaq -0x278(%rbp), %rsi
movq %r15, (%rsi)
movq %r13, 0x8(%rsi)
leaq -0x268(%rbp), %rcx
movq %r12, (%rcx)
movq %r12, 0x8(%rcx)
movl $0x249, %edx            # imm = 0x249
callq 0x5710
leaq -0x80(%rbp), %rdi
leaq -0x60(%rbp), %rsi
callq 0x34d21
leaq -0x48(%rbp), %rdi
movb %al, (%rdi)
xorps %xmm0, %xmm0
movups %xmm0, 0x8(%rdi)
leaq 0x1cd97(%rip), %rax     # 0x54007
movq %rax, -0xc8(%rbp)
leaq 0x1cda3(%rip), %rax     # 0x54021
movq %rax, -0xc0(%rbp)
leaq -0x1c8(%rbp), %rsi
movb $0x0, 0x8(%rsi)
leaq 0x388d9(%rip), %rax     # 0x6fb70
movq %rax, (%rsi)
movq 0x38d0f(%rip), %rax     # 0x6ffb0
movq %rax, 0x10(%rsi)
movq %rbx, 0x18(%rsi)
leaq -0x258(%rbp), %rdx
movq %r15, (%rdx)
movq %r13, 0x8(%rdx)
andq $0x0, (%rsp)
pushq $0x1
popq %r8
movl $0x249, %ecx            # imm = 0x249
xorl %r9d, %r9d
xorl %eax, %eax
callq 0x56f0
leaq -0x38(%rbp), %rdi
callq 0x291f6
leaq 0x1c147(%rip), %rsi     # 0x53426
leaq -0x1c8(%rbp), %r14
leaq -0xc8(%rbp), %rdx
movq %r14, %rdi
callq 0x5160
leaq -0x1a8(%rbp), %r15
leaq 0x1ca81(%rip), %rsi     # 0x53d84
leaq -0xb0(%rbp), %rbx
movq %r15, %rdi
movq %rbx, %rdx
callq 0x5160
leaq -0x188(%rbp), %r15
leaq 0x1bceb(%rip), %rsi     # 0x5300e
leaq -0x2a(%rbp), %rdx
movq %r15, %rdi
callq 0x5160
leaq -0x168(%rbp), %r15
leaq 0x1d483(%rip), %rsi     # 0x547c0
leaq -0x29(%rbp), %rdx
movq %r15, %rdi
callq 0x5160
leaq -0x148(%rbp), %r15
leaq 0x1c0cf(%rip), %rsi     # 0x53426
leaq -0x2c(%rbp), %rdx
movq %r15, %rdi
callq 0x5160
leaq -0x48(%rbp), %rdi
leaq -0x1c8(%rbp), %rsi
pushq $0x5
popq %rdx
leaq -0x2b(%rbp), %rcx
callq 0x4ed52
movl $0x80, %r14d
leaq 0x1c7f9(%rip), %r15     # 0x53b80
leaq (%r14,%rbp), %rdi
addq $-0x1c8, %rdi           # imm = 0xFE38
callq 0x57b8
addq $-0x20, %r14
cmpq $-0x20, %r14
jne 0x37387
movq 0x39198(%rip), %rdi     # 0x70540
leaq -0x248(%rbp), %rsi
movq %r15, (%rsi)
movq %r13, 0x8(%rsi)
leaq -0x238(%rbp), %rcx
movq %r12, (%rcx)
movq %r12, 0x8(%rcx)
movl $0x24b, %edx            # imm = 0x24B
callq 0x5710
leaq -0x80(%rbp), %rdi
leaq -0x48(%rbp), %rsi
callq 0x34d21
leaq -0xc8(%rbp), %rdi
movb %al, (%rdi)
xorps %xmm0, %xmm0
movups %xmm0, 0x8(%rdi)
leaq 0x1cc30(%rip), %rax     # 0x54022
movq %rax, -0xb0(%rbp)
leaq 0x1cc3c(%rip), %rax     # 0x5403c
movq %rax, -0xa8(%rbp)
leaq -0x1c8(%rbp), %rsi
movb $0x0, 0x8(%rsi)
leaq 0x38757(%rip), %rax     # 0x6fb70
movq %rax, (%rsi)
movq 0x38b8d(%rip), %rax     # 0x6ffb0
movq %rax, 0x10(%rsi)
movq %rbx, 0x18(%rsi)
leaq -0x228(%rbp), %rdx
movq %r15, (%rdx)
movq %r13, 0x8(%rdx)
andq $0x0, (%rsp)
pushq $0x1
popq %r8
movl $0x24b, %ecx            # imm = 0x24B
xorl %r9d, %r9d
xorl %eax, %eax
callq 0x56f0
leaq -0xb8(%rbp), %rdi
callq 0x291f6
leaq -0x48(%rbp), %rdi
callq 0x9574
leaq -0x60(%rbp), %rdi
callq 0x9574
leaq -0xa0(%rbp), %rdi
callq 0x9574
leaq -0x80(%rbp), %rdi
callq 0x1442a
leaq -0x350(%rbp), %rdi
callq 0x10c24
leaq -0x1e8(%rbp), %rdi
callq 0x57b8
leaq -0x218(%rbp), %rdi
callq 0x200e8
addq $0x348, %rsp            # imm = 0x348
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
movq %rax, %rbx
leaq -0xb8(%rbp), %rdi
callq 0x291f6
jmp 0x374ce
movq %rax, %rbx
leaq -0x48(%rbp), %rdi
callq 0x9574
jmp 0x3752d
movq %rax, %rbx
movl $0x80, %r14d
leaq (%r14,%rbp), %rdi
addq $-0x1c8, %rdi           # imm = 0xFE38
callq 0x57b8
addq $-0x20, %r14
cmpq $-0x20, %r14
jne 0x374e2
jmp 0x3752d
jmp 0x37504
jmp 0x37504
jmp 0x37504
movq %rax, %rbx
addq $-0x20, %r15
movq %r15, %rdi
callq 0x57b8
cmpq %r14, %r15
jne 0x37507
jmp 0x3752d
jmp 0x3752a
movq %rax, %rbx
leaq -0x38(%rbp), %rdi
callq 0x291f6
jmp 0x3752d
movq %rax, %rbx
leaq -0x60(%rbp), %rdi
callq 0x9574
jmp 0x37588
movq %rax, %rbx
pushq $0x60
popq %r14
leaq (%r14,%rbp), %rdi
addq $-0x1c8, %rdi           # imm = 0xFE38
callq 0x57b8
addq $-0x20, %r14
cmpq $-0x20, %r14
jne 0x3753f
jmp 0x37588
jmp 0x3755f
jmp 0x3755f
movq %rax, %rbx
addq $-0x20, %r15
movq %r15, %rdi
callq 0x57b8
cmpq %r14, %r15
jne 0x37562
jmp 0x37588
jmp 0x37585
movq %rax, %rbx
leaq -0x50(%rbp), %rdi
callq 0x291f6
jmp 0x37588
movq %rax, %rbx
leaq -0xa0(%rbp), %rdi
callq 0x9574
jmp 0x3767f
movq %rax, %rbx
pushq $0x40
popq %r14
leaq (%r14,%rbp), %rdi
addq $-0x1c8, %rdi           # imm = 0xFE38
callq 0x57b8
addq $-0x20, %r14
cmpq $-0x20, %r14
jne 0x375a0
jmp 0x3767f
jmp 0x375c1
movq %rax, %rbx
addq $-0x20, %r15
movq %r15, %rdi
callq 0x57b8
cmpq %r14, %r15
jne 0x375c4
jmp 0x3767f
jmp 0x3767c
jmp 0x3767c
jmp 0x375ed
jmp 0x375fe
jmp 0x3767c
movq %rax, %rbx
leaq -0xa0(%rbp), %rdi
callq 0x57b8
jmp 0x37601
movq %rax, %rbx
leaq -0x1c8(%rbp), %rdi
callq 0x57b8
jmp 0x3767f
jmp 0x3767c
movq %rax, %rbx
jmp 0x37694
movq %rax, %rbx
jmp 0x376a0
movq %rax, %rbx
movl $0xe0, %r12d
leaq (%r12,%rbp), %rdi
addq $-0x1c8, %rdi           # imm = 0xFE38
callq 0x57b8
addq $-0x20, %r12
cmpq $-0x20, %r12
jne 0x37627
movb $0x1, %al
jmp 0x37656
jmp 0x37651
jmp 0x37651
jmp 0x37651
jmp 0x37651
jmp 0x37651
jmp 0x37651
movq %rax, %rbx
xorl %eax, %eax
cmpq %r15, %r14
sete %cl
testb %al, %al
jne 0x376ac
testb %cl, %cl
jne 0x376ac
addq $-0x20, %r15
movq %r15, %rdi
callq 0x57b8
cmpq %r14, %r15
jne 0x37664
jmp 0x376ac
movq %rax, %rbx
jmp 0x376ac
movq %rax, %rbx
leaq -0x80(%rbp), %rdi
callq 0x1442a
leaq -0x350(%rbp), %rdi
callq 0x10c24
leaq -0x1e8(%rbp), %rdi
callq 0x57b8
leaq -0x218(%rbp), %rdi
callq 0x200e8
movq %rbx, %rdi
callq 0x56b0