// File: /workspace/github_cpp_makefile_star2_O1/aalto-speech[P]ftk/test/emtest.cc
// Function: assert_node(FactorGraph const&, int, std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char>> const&, unsigned int, unsigned int)
void assert_node(const FactorGraph &fg,
                 int node,
                 const std::string &nstr,
                 unsigned int incoming_sz,
                 unsigned int outgoing_sz)
{
    std::string tst;
    fg.get_factor(fg.nodes[node], tst);
    BOOST_CHECK_EQUAL( nstr, tst );
    BOOST_CHECK_EQUAL( incoming_sz, (unsigned int)fg.nodes[node].incoming.size() );
    BOOST_CHECK_EQUAL( outgoing_sz, (unsigned int)fg.nodes[node].outgoing.size() );
}

// Assembly:
pushq %rbp
movq %rsp, %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
subq $0x138, %rsp            # imm = 0x138
movq %rdx, %r14
movl %ecx, -0x48(%rbp)
movl %r8d, -0x44(%rbp)
leaq -0xb8(%rbp), %rax
movq %rax, -0x10(%rax)
movq $0x0, -0x8(%rax)
movb $0x0, (%rax)
movslq %esi, %rax
imulq $0x38, %rax, %r13
movq 0x40(%rdi), %rsi
addq %r13, %rsi
leaq -0xc8(%rbp), %r12
movq %rdi, -0x50(%rbp)
movq %r12, %rdx
callq 0x12fc6
movq 0x4db85(%rip), %rdi     # 0x8b550
leaq 0x34240(%rip), %rbx     # 0x71c12
leaq -0x158(%rbp), %rsi
movq %rbx, (%rsi)
leaq 0x3423d(%rip), %r15     # 0x71c20
movq %r15, 0x8(%rsi)
leaq 0x34071(%rip), %rax     # 0x71a5f
leaq -0x148(%rbp), %rcx
movq %rax, (%rcx)
movq %rax, 0x8(%rcx)
movl $0x170, %edx            # imm = 0x170
callq 0x5760
movb $0x0, -0xe0(%rbp)
leaq 0x4d04c(%rip), %rax     # 0x8aa60
movq %rax, -0xe8(%rbp)
movq 0x4d58e(%rip), %rax     # 0x8afb0
movq %rax, -0xd8(%rbp)
leaq 0x33997(%rip), %rax     # 0x713c7
movq %rax, -0xd0(%rbp)
movq 0x8(%r14), %rdx
cmpq -0xc0(%rbp), %rdx
jne 0x3da5f
testq %rdx, %rdx
je 0x3da63
movq -0xc8(%rbp), %rsi
movq (%r14), %rdi
callq 0x53e0
testl %eax, %eax
sete %al
jmp 0x3da65
xorl %eax, %eax
jmp 0x3da65
movb $0x1, %al
leaq -0x68(%rbp), %rdi
movb %al, (%rdi)
xorps %xmm0, %xmm0
movups %xmm0, 0x8(%rdi)
leaq -0xf8(%rbp), %rdx
movq %rbx, (%rdx)
movq %r15, 0x8(%rdx)
leaq -0x40(%rbp), %r8
movq %r14, (%r8)
xorl %eax, %eax
leaq -0xa8(%rbp), %r14
movb %al, 0x8(%r14)
leaq 0x4d0fd(%rip), %rcx     # 0x8ab98
movq %rcx, (%r14)
movq 0x4d50b(%rip), %rsi     # 0x8afb0
movq %rsi, 0x10(%r14)
movq %r8, 0x18(%r14)
leaq -0x38(%rbp), %r8
movq %r12, (%r8)
leaq -0x88(%rbp), %r12
movb %al, 0x8(%r12)
movq %rcx, (%r12)
movq %rsi, 0x10(%r12)
movq %r8, 0x18(%r12)
subq $0x8, %rsp
leaq 0x34465(%rip), %r10     # 0x71f3e
leaq 0x34459(%rip), %r11     # 0x71f39
leaq -0xe8(%rbp), %rsi
movl $0x170, %ecx            # imm = 0x170
movl $0x1, %r8d
movl $0x2, %r9d
xorl %eax, %eax
pushq %r12
pushq %r10
pushq %r14
pushq %r11
pushq $0x2
callq 0x5740
addq $0x30, %rsp
leaq -0x58(%rbp), %rdi
callq 0x2e966
movq 0x4da33(%rip), %rdi     # 0x8b550
leaq -0x138(%rbp), %rsi
movq %rbx, (%rsi)
movq %r15, 0x8(%rsi)
leaq -0x128(%rbp), %rcx
leaq 0x33f26(%rip), %rax     # 0x71a5f
movq %rax, (%rcx)
movq %rax, 0x8(%rcx)
movl $0x171, %edx            # imm = 0x171
callq 0x5760
xorl %eax, %eax
leaq -0xe8(%rbp), %rsi
movb %al, 0x8(%rsi)
leaq 0x4cf03(%rip), %rcx     # 0x8aa60
movq %rcx, (%rsi)
movq 0x4d449(%rip), %r8      # 0x8afb0
movq %r8, 0x10(%rsi)
leaq 0x33855(%rip), %rcx     # 0x713c7
movq %rcx, 0x18(%rsi)
movq -0x50(%rbp), %rcx
movq 0x40(%rcx), %rcx
movq 0x10(%rcx,%r13), %rdx
subq 0x8(%rcx,%r13), %rdx
shrq $0x3, %rdx
leaq -0x2c(%rbp), %r9
movl %edx, (%r9)
leaq -0x48(%rbp), %rcx
cmpl %edx, (%rcx)
leaq -0x68(%rbp), %rdi
sete (%rdi)
xorps %xmm0, %xmm0
movups %xmm0, 0x8(%rdi)
movq %rcx, -0x40(%rbp)
leaq -0xf8(%rbp), %rdx
movq %rbx, (%rdx)
movq %r15, 0x8(%rdx)
movb %al, -0xa0(%rbp)
movb %al, -0x80(%rbp)
leaq 0x4d147(%rip), %r14     # 0x8ad10
movq %r14, -0xa8(%rbp)
movq %r8, -0x98(%rbp)
leaq -0x40(%rbp), %rax
movq %rax, -0x90(%rbp)
movq %r9, -0x38(%rbp)
movq %r14, -0x88(%rbp)
movq %r8, -0x78(%rbp)
leaq -0x38(%rbp), %rax
movq %rax, -0x70(%rbp)
subq $0x8, %rsp
leaq 0x3434a(%rip), %r10     # 0x71f4e
leaq 0x34337(%rip), %r11     # 0x71f42
movl $0x171, %ecx            # imm = 0x171
movl $0x1, %r8d
movl $0x2, %r9d
xorl %eax, %eax
pushq %r12
pushq %r10
leaq -0xa8(%rbp), %r10
pushq %r10
pushq %r11
pushq $0x2
callq 0x5740
addq $0x30, %rsp
leaq -0x58(%rbp), %rdi
callq 0x2e966
movq 0x4d908(%rip), %rdi     # 0x8b550
leaq -0x118(%rbp), %rsi
movq %rbx, (%rsi)
movq %r15, 0x8(%rsi)
leaq -0x108(%rbp), %rcx
leaq 0x33dfb(%rip), %rax     # 0x71a5f
movq %rax, (%rcx)
movq %rax, 0x8(%rcx)
movl $0x172, %edx            # imm = 0x172
callq 0x5760
xorl %eax, %eax
leaq -0xe8(%rbp), %rsi
movb %al, 0x8(%rsi)
leaq 0x4cdd8(%rip), %rcx     # 0x8aa60
movq %rcx, (%rsi)
movq 0x4d31e(%rip), %r8      # 0x8afb0
movq %r8, 0x10(%rsi)
leaq 0x3372a(%rip), %rcx     # 0x713c7
movq %rcx, 0x18(%rsi)
movq -0x50(%rbp), %rcx
movq 0x40(%rcx), %rcx
movq 0x28(%rcx,%r13), %rdx
subq 0x20(%rcx,%r13), %rdx
shrq $0x3, %rdx
leaq -0x44(%rbp), %rcx
cmpl %edx, (%rcx)
leaq -0x68(%rbp), %rdi
sete (%rdi)
movl %edx, -0x2c(%rbp)
xorps %xmm0, %xmm0
movups %xmm0, 0x8(%rdi)
leaq -0xf8(%rbp), %rdx
movq %rbx, (%rdx)
movq %r15, 0x8(%rdx)
movq %rcx, -0x40(%rbp)
movb %al, -0xa0(%rbp)
movq %r14, -0xa8(%rbp)
movq %r8, -0x98(%rbp)
leaq -0x40(%rbp), %rcx
movq %rcx, -0x90(%rbp)
leaq -0x2c(%rbp), %rcx
movq %rcx, -0x38(%rbp)
movb %al, -0x80(%rbp)
movq %r14, -0x88(%rbp)
movq %r8, -0x78(%rbp)
leaq -0x38(%rbp), %rax
movq %rax, -0x70(%rbp)
subq $0x8, %rsp
leaq 0x3425f(%rip), %r10     # 0x71f87
leaq 0x3424c(%rip), %r11     # 0x71f7b
movl $0x172, %ecx            # imm = 0x172
movl $0x1, %r8d
movl $0x2, %r9d
xorl %eax, %eax
leaq -0x88(%rbp), %rbx
pushq %rbx
pushq %r10
leaq -0xa8(%rbp), %r10
pushq %r10
pushq %r11
pushq $0x2
callq 0x5740
addq $0x30, %rsp
leaq -0x58(%rbp), %rdi
callq 0x2e966
movq -0xc8(%rbp), %rdi
leaq -0xb8(%rbp), %rax
cmpq %rax, %rdi
je 0x3dd83
callq 0x5380
addq $0x138, %rsp            # imm = 0x138
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
jmp 0x3dd99
jmp 0x3dd99
movq %rax, %rbx
leaq -0x58(%rbp), %rdi
callq 0x2e966
jmp 0x3ddaa
movq %rax, %rbx
movq -0xc8(%rbp), %rdi
leaq -0xb8(%rbp), %rax
cmpq %rax, %rdi
je 0x3ddc2
callq 0x5380
movq %rbx, %rdi
callq 0x56f0