// File: /workspace/github_cpp_makefile_star2_O2/aalto-speech[P]ftk/test/emtest.cc
// Function: FactorGraphTestRemoveArcs2::test_method()
BOOST_AUTO_TEST_CASE(FactorGraphTestRemoveArcs2)
{
    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"));
    fg.remove_arcs(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 $0x338, %rsp            # imm = 0x338
leaq 0x1c23f(%rip), %rsi     # 0x53c52
leaq -0x1b8(%rbp), %r14
leaq -0x340(%rbp), %rdx
movq %r14, %rdi
callq 0x5160
leaq -0x198(%rbp), %r15
leaq 0x1bd31(%rip), %rsi     # 0x53768
leaq -0x1d8(%rbp), %rdx
movq %r15, %rdi
callq 0x5160
leaq -0x178(%rbp), %r15
leaq 0x1b5ba(%rip), %rsi     # 0x5300e
leaq -0x60(%rbp), %rdx
movq %r15, %rdi
callq 0x5160
leaq -0x158(%rbp), %r15
leaq 0x1c4be(%rip), %rsi     # 0x53f2c
leaq -0xb8(%rbp), %rdx
movq %r15, %rdi
callq 0x5160
leaq -0x138(%rbp), %r15
leaq 0x1cd35(%rip), %rsi     # 0x547c0
leaq -0x78(%rbp), %rbx
movq %r15, %rdi
movq %rbx, %rdx
callq 0x5160
leaq -0x118(%rbp), %r15
leaq 0x1c2dc(%rip), %rsi     # 0x53d84
leaq -0x48(%rbp), %rdx
movq %r15, %rdi
callq 0x5160
leaq -0xf8(%rbp), %r15
leaq 0x1c2c5(%rip), %rsi     # 0x53d87
leaq -0xa0(%rbp), %rdx
movq %r15, %rdi
callq 0x5160
leaq -0xd8(%rbp), %r15
leaq 0x1c175(%rip), %rsi     # 0x53c54
leaq -0x88(%rbp), %rdx
movq %r15, %rdi
callq 0x5160
leaq -0x208(%rbp), %rdi
leaq -0x1b8(%rbp), %rsi
pushq $0x8
popq %rdx
leaq -0x2a(%rbp), %rcx
leaq -0x29(%rbp), %r8
callq 0x4ed0a
movl $0xe0, %r14d
leaq (%r14,%rbp), %rdi
addq $-0x1b8, %rdi           # imm = 0xFE48
callq 0x57b8
addq $-0x20, %r14
cmpq $-0x20, %r14
jne 0x37b12
leaq 0x1c121(%rip), %rsi     # 0x53c54
leaq -0x1d8(%rbp), %rdi
leaq -0x1b8(%rbp), %rdx
callq 0x5160
leaq 0x38a3b(%rip), %rdx     # 0x70588
leaq -0x340(%rbp), %rdi
leaq -0x1d8(%rbp), %rsi
leaq -0x208(%rbp), %rcx
pushq $0x5
popq %r8
xorl %r9d, %r9d
callq 0xf742
xorps %xmm0, %xmm0
movaps %xmm0, -0x60(%rbp)
andq $0x0, -0x50(%rbp)
leaq 0x1c0d1(%rip), %rsi     # 0x53c52
leaq -0x1b8(%rbp), %rdi
leaq -0xb8(%rbp), %rdx
callq 0x5160
leaq -0x340(%rbp), %rdi
leaq -0x1b8(%rbp), %rsi
callq 0x1090c
leaq -0x1b8(%rbp), %rdi
callq 0x57b8
leaq 0x1c372(%rip), %rsi     # 0x53f2c
leaq -0x1b8(%rbp), %rdi
leaq -0xb8(%rbp), %rdx
callq 0x5160
leaq -0x340(%rbp), %rdi
leaq -0x1b8(%rbp), %rsi
callq 0x1090c
leaq -0x1b8(%rbp), %rdi
callq 0x57b8
leaq -0x340(%rbp), %rdi
leaq -0x60(%rbp), %rsi
callq 0x105f2
movq 0x3893d(%rip), %rdi     # 0x70540
leaq 0x1bf76(%rip), %r14     # 0x53b80
leaq -0x2c8(%rbp), %rsi
movq %r14, (%rsi)
leaq 0x1bf73(%rip), %r13     # 0x53b8e
movq %r13, 0x8(%rsi)
leaq 0x1bdef(%rip), %r12     # 0x53a15
leaq -0x2b8(%rbp), %rcx
movq %r12, (%rcx)
movq %r12, 0x8(%rcx)
movl $0x259, %edx            # imm = 0x259
callq 0x5710
leaq -0x1b8(%rbp), %rdi
movb $0x0, 0x8(%rdi)
leaq 0x37e90(%rip), %rax     # 0x6fae0
movq %rax, (%rdi)
movq 0x38356(%rip), %rax     # 0x6ffb0
movq %rax, 0x10(%rdi)
leaq 0x1b6f2(%rip), %rax     # 0x53357
movq %rax, 0x18(%rdi)
leaq -0x2a8(%rbp), %rsi
movq %r14, (%rsi)
movq %r13, 0x8(%rsi)
leaq -0xb8(%rbp), %r9
movl $0x3, (%r9)
movq -0x58(%rbp), %rax
subq -0x60(%rbp), %rax
pushq $0x18
popq %rcx
cqto
idivq %rcx
movl %eax, -0x78(%rbp)
leaq 0x1c33c(%rip), %rax     # 0x53fdb
movq %rax, 0x10(%rsp)
movq %rbx, 0x8(%rsp)
leaq 0x1c2d7(%rip), %rax     # 0x53f87
movq %rax, (%rsp)
pushq $0x1
popq %rcx
pushq $0x2
popq %r8
movl $0x259, %edx            # imm = 0x259
callq 0x4ea09
leaq 0x1b75a(%rip), %rsi     # 0x53426
leaq -0x1b8(%rbp), %r14
leaq -0x78(%rbp), %rdx
movq %r14, %rdi
callq 0x5160
leaq -0x198(%rbp), %r15
leaq 0x1bf67(%rip), %rsi     # 0x53c54
leaq -0x48(%rbp), %rbx
movq %r15, %rdi
movq %rbx, %rdx
callq 0x5160
leaq -0x178(%rbp), %r15
leaq 0x1b71c(%rip), %rsi     # 0x53426
leaq -0xa0(%rbp), %rdx
movq %r15, %rdi
callq 0x5160
leaq -0xb8(%rbp), %rdi
leaq -0x1b8(%rbp), %rsi
pushq $0x3
popq %rdx
leaq -0x88(%rbp), %rcx
callq 0x4ed52
pushq $0x40
popq %r14
leaq 0x1be3f(%rip), %r15     # 0x53b80
leaq (%r14,%rbp), %rdi
addq $-0x1b8, %rdi           # imm = 0xFE48
callq 0x57b8
addq $-0x20, %r14
cmpq $-0x20, %r14
jne 0x37d41
movq 0x387de(%rip), %rdi     # 0x70540
leaq -0x298(%rbp), %rsi
movq %r15, (%rsi)
movq %r13, 0x8(%rsi)
leaq -0x288(%rbp), %rcx
movq %r12, (%rcx)
movq %r12, 0x8(%rcx)
movl $0x25b, %edx            # imm = 0x25B
callq 0x5710
leaq -0x60(%rbp), %rdi
leaq -0xb8(%rbp), %rsi
callq 0x34d21
leaq -0x78(%rbp), %rdi
movb %al, (%rdi)
xorps %xmm0, %xmm0
movups %xmm0, 0x8(%rdi)
leaq 0x1c241(%rip), %rax     # 0x53fed
movq %rax, -0x48(%rbp)
leaq 0x1c24f(%rip), %rax     # 0x54006
movq %rax, -0x40(%rbp)
leaq -0x1b8(%rbp), %rsi
movb $0x0, 0x8(%rsi)
leaq 0x37da3(%rip), %rax     # 0x6fb70
movq %rax, (%rsi)
movq 0x381d9(%rip), %rax     # 0x6ffb0
movq %rax, 0x10(%rsi)
movq %rbx, 0x18(%rsi)
leaq -0x278(%rbp), %rdx
movq %r15, (%rdx)
movq %r13, 0x8(%rdx)
andq $0x0, (%rsp)
pushq $0x1
popq %r8
movl $0x25b, %ecx            # imm = 0x25B
xorl %r9d, %r9d
xorl %eax, %eax
callq 0x56f0
leaq -0x68(%rbp), %rdi
callq 0x291f6
leaq 0x1b611(%rip), %rsi     # 0x53426
leaq -0x1b8(%rbp), %r14
leaq -0x48(%rbp), %rdx
movq %r14, %rdi
callq 0x5160
leaq -0x198(%rbp), %r15
leaq 0x1bf51(%rip), %rsi     # 0x53d87
leaq -0xa0(%rbp), %rbx
movq %r15, %rdi
movq %rbx, %rdx
callq 0x5160
leaq -0x178(%rbp), %r15
leaq 0x1c96a(%rip), %rsi     # 0x547c0
leaq -0x88(%rbp), %rdx
movq %r15, %rdi
callq 0x5160
leaq -0x158(%rbp), %r15
leaq 0x1b5b3(%rip), %rsi     # 0x53426
leaq -0x2a(%rbp), %rdx
movq %r15, %rdi
callq 0x5160
leaq -0x78(%rbp), %rdi
leaq -0x1b8(%rbp), %rsi
pushq $0x4
popq %rdx
leaq -0x29(%rbp), %rcx
callq 0x4ed52
pushq $0x60
popq %r14
leaq 0x1bcdf(%rip), %r15     # 0x53b80
leaq (%r14,%rbp), %rdi
addq $-0x1b8, %rdi           # imm = 0xFE48
callq 0x57b8
addq $-0x20, %r14
cmpq $-0x20, %r14
jne 0x37ea1
movq 0x3867e(%rip), %rdi     # 0x70540
leaq -0x268(%rbp), %rsi
movq %r15, (%rsi)
movq %r13, 0x8(%rsi)
leaq -0x258(%rbp), %rcx
movq %r12, (%rcx)
movq %r12, 0x8(%rcx)
movl $0x25d, %edx            # imm = 0x25D
callq 0x5710
leaq -0x60(%rbp), %rdi
leaq -0x78(%rbp), %rsi
callq 0x34d21
leaq -0x48(%rbp), %rdi
movb %al, (%rdi)
xorps %xmm0, %xmm0
movups %xmm0, 0x8(%rdi)
leaq 0x1c0fe(%rip), %rax     # 0x54007
movq %rax, -0xa0(%rbp)
leaq 0x1c10a(%rip), %rax     # 0x54021
movq %rax, -0x98(%rbp)
leaq -0x1b8(%rbp), %rsi
movb $0x0, 0x8(%rsi)
leaq 0x37c40(%rip), %rax     # 0x6fb70
movq %rax, (%rsi)
movq 0x38076(%rip), %rax     # 0x6ffb0
movq %rax, 0x10(%rsi)
movq %rbx, 0x18(%rsi)
leaq -0x248(%rbp), %rdx
movq %r15, (%rdx)
movq %r13, 0x8(%rdx)
andq $0x0, (%rsp)
pushq $0x1
popq %r8
movl $0x25d, %ecx            # imm = 0x25D
xorl %r9d, %r9d
xorl %eax, %eax
callq 0x56f0
leaq -0x38(%rbp), %rdi
callq 0x291f6
leaq 0x1b4ae(%rip), %rsi     # 0x53426
leaq -0x1b8(%rbp), %r14
leaq -0xa0(%rbp), %rdx
movq %r14, %rdi
callq 0x5160
leaq -0x198(%rbp), %r15
leaq 0x1bde8(%rip), %rsi     # 0x53d84
leaq -0x88(%rbp), %rbx
movq %r15, %rdi
movq %rbx, %rdx
callq 0x5160
leaq -0x178(%rbp), %r15
leaq 0x1b052(%rip), %rsi     # 0x5300e
leaq -0x2a(%rbp), %rdx
movq %r15, %rdi
callq 0x5160
leaq -0x158(%rbp), %r15
leaq 0x1c7ea(%rip), %rsi     # 0x547c0
leaq -0x29(%rbp), %rdx
movq %r15, %rdi
callq 0x5160
leaq -0x138(%rbp), %r15
leaq 0x1b436(%rip), %rsi     # 0x53426
leaq -0x2c(%rbp), %rdx
movq %r15, %rdi
callq 0x5160
leaq -0x48(%rbp), %rdi
leaq -0x1b8(%rbp), %rsi
pushq $0x5
popq %rdx
leaq -0x2b(%rbp), %rcx
callq 0x4ed52
movl $0x80, %r14d
leaq 0x1bb60(%rip), %r15     # 0x53b80
leaq (%r14,%rbp), %rdi
addq $-0x1b8, %rdi           # imm = 0xFE48
callq 0x57b8
addq $-0x20, %r14
cmpq $-0x20, %r14
jne 0x38020
movq 0x384ff(%rip), %rdi     # 0x70540
leaq -0x238(%rbp), %rsi
movq %r15, (%rsi)
movq %r13, 0x8(%rsi)
leaq -0x228(%rbp), %rcx
movq %r12, (%rcx)
movq %r12, 0x8(%rcx)
movl $0x25f, %edx            # imm = 0x25F
callq 0x5710
leaq -0x60(%rbp), %rdi
leaq -0x48(%rbp), %rsi
callq 0x34d21
leaq -0xa0(%rbp), %rdi
movb %al, (%rdi)
xorps %xmm0, %xmm0
movups %xmm0, 0x8(%rdi)
leaq 0x1bf97(%rip), %rax     # 0x54022
movq %rax, -0x88(%rbp)
leaq 0x1bfa3(%rip), %rax     # 0x5403c
movq %rax, -0x80(%rbp)
leaq -0x1b8(%rbp), %rsi
movb $0x0, 0x8(%rsi)
leaq 0x37ac1(%rip), %rax     # 0x6fb70
movq %rax, (%rsi)
movq 0x37ef7(%rip), %rax     # 0x6ffb0
movq %rax, 0x10(%rsi)
movq %rbx, 0x18(%rsi)
leaq -0x218(%rbp), %rdx
movq %r15, (%rdx)
movq %r13, 0x8(%rdx)
andq $0x0, (%rsp)
pushq $0x1
popq %r8
movl $0x25f, %ecx            # imm = 0x25F
xorl %r9d, %r9d
xorl %eax, %eax
callq 0x56f0
leaq -0x90(%rbp), %rdi
callq 0x291f6
leaq -0x48(%rbp), %rdi
callq 0x9574
leaq -0x78(%rbp), %rdi
callq 0x9574
leaq -0xb8(%rbp), %rdi
callq 0x9574
leaq -0x60(%rbp), %rdi
callq 0x1442a
leaq -0x340(%rbp), %rdi
callq 0x10c24
leaq -0x1d8(%rbp), %rdi
callq 0x57b8
leaq -0x208(%rbp), %rdi
callq 0x200e8
addq $0x338, %rsp            # imm = 0x338
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
movq %rax, %rbx
leaq -0x90(%rbp), %rdi
callq 0x291f6
jmp 0x38164
movq %rax, %rbx
leaq -0x48(%rbp), %rdi
callq 0x9574
jmp 0x381c3
movq %rax, %rbx
movl $0x80, %r14d
leaq (%r14,%rbp), %rdi
addq $-0x1b8, %rdi           # imm = 0xFE48
callq 0x57b8
addq $-0x20, %r14
cmpq $-0x20, %r14
jne 0x38178
jmp 0x381c3
jmp 0x3819a
jmp 0x3819a
jmp 0x3819a
movq %rax, %rbx
addq $-0x20, %r15
movq %r15, %rdi
callq 0x57b8
cmpq %r14, %r15
jne 0x3819d
jmp 0x381c3
jmp 0x381c0
movq %rax, %rbx
leaq -0x38(%rbp), %rdi
callq 0x291f6
jmp 0x381c3
movq %rax, %rbx
leaq -0x78(%rbp), %rdi
callq 0x9574
jmp 0x3821e
movq %rax, %rbx
pushq $0x60
popq %r14
leaq (%r14,%rbp), %rdi
addq $-0x1b8, %rdi           # imm = 0xFE48
callq 0x57b8
addq $-0x20, %r14
cmpq $-0x20, %r14
jne 0x381d5
jmp 0x3821e
jmp 0x381f5
jmp 0x381f5
movq %rax, %rbx
addq $-0x20, %r15
movq %r15, %rdi
callq 0x57b8
cmpq %r14, %r15
jne 0x381f8
jmp 0x3821e
jmp 0x3821b
movq %rax, %rbx
leaq -0x68(%rbp), %rdi
callq 0x291f6
jmp 0x3821e
movq %rax, %rbx
leaq -0xb8(%rbp), %rdi
callq 0x9574
jmp 0x382ff
movq %rax, %rbx
pushq $0x40
popq %r14
leaq (%r14,%rbp), %rdi
addq $-0x1b8, %rdi           # imm = 0xFE48
callq 0x57b8
addq $-0x20, %r14
cmpq $-0x20, %r14
jne 0x38236
jmp 0x382ff
jmp 0x38257
movq %rax, %rbx
addq $-0x20, %r15
movq %r15, %rdi
callq 0x57b8
cmpq %r14, %r15
jne 0x3825a
jmp 0x382ff
jmp 0x382fc
jmp 0x382fc
jmp 0x3827e
jmp 0x382fc
movq %rax, %rbx
leaq -0x1b8(%rbp), %rdi
callq 0x57b8
jmp 0x382ff
jmp 0x382fc
movq %rax, %rbx
jmp 0x38314
movq %rax, %rbx
jmp 0x38320
movq %rax, %rbx
movl $0xe0, %r12d
leaq (%r12,%rbp), %rdi
addq $-0x1b8, %rdi           # imm = 0xFE48
callq 0x57b8
addq $-0x20, %r12
cmpq $-0x20, %r12
jne 0x382a7
movb $0x1, %al
jmp 0x382d6
jmp 0x382d1
jmp 0x382d1
jmp 0x382d1
jmp 0x382d1
jmp 0x382d1
jmp 0x382d1
movq %rax, %rbx
xorl %eax, %eax
cmpq %r15, %r14
sete %cl
testb %al, %al
jne 0x3832c
testb %cl, %cl
jne 0x3832c
addq $-0x20, %r15
movq %r15, %rdi
callq 0x57b8
cmpq %r14, %r15
jne 0x382e4
jmp 0x3832c
movq %rax, %rbx
jmp 0x3832c
movq %rax, %rbx
leaq -0x60(%rbp), %rdi
callq 0x1442a
leaq -0x340(%rbp), %rdi
callq 0x10c24
leaq -0x1d8(%rbp), %rdi
callq 0x57b8
leaq -0x208(%rbp), %rdi
callq 0x200e8
movq %rbx, %rdi
callq 0x56b0