// File: /workspace/github_cpp_makefile_star2_O2/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 $0xe8, %rsp
movq %rdx, -0x40(%rbp)
movq %rdi, %rbx
movl %ecx, -0x34(%rbp)
movl %r8d, -0x30(%rbp)
leaq -0x50(%rbp), %rax
movq %rax, -0x10(%rax)
andq $0x0, -0x8(%rax)
movb $0x0, (%rax)
movslq %esi, %rax
imulq $0x38, %rax, %r12
movq 0x40(%rdi), %rsi
addq %r12, %rsi
leaq -0x60(%rbp), %rdx
callq 0x10ec4
movq 0x3e682(%rip), %rdi     # 0x70540
leaq 0x21cbb(%rip), %r13     # 0x53b80
leaq -0x110(%rbp), %rsi
movq %r13, (%rsi)
leaq 0x21cb8(%rip), %r15     # 0x53b8e
movq %r15, 0x8(%rsi)
leaq 0x21b34(%rip), %r14     # 0x53a15
leaq -0x100(%rbp), %rcx
movq %r14, (%rcx)
movq %r14, 0x8(%rcx)
movl $0x170, %edx            # imm = 0x170
callq 0x5710
leaq -0x80(%rbp), %rdi
movb $0x0, 0x8(%rdi)
leaq 0x3dbd8(%rip), %rax     # 0x6fae0
movq %rax, (%rdi)
movq 0x3e09e(%rip), %rax     # 0x6ffb0
movq %rax, 0x10(%rdi)
leaq 0x2143a(%rip), %rax     # 0x53357
movq %rax, 0x18(%rdi)
leaq -0xf0(%rbp), %rsi
movq %r13, (%rsi)
movq %r15, 0x8(%rsi)
subq $0x8, %rsp
leaq 0x21f72(%rip), %rax     # 0x53eac
leaq 0x21f66(%rip), %r10     # 0x53ea7
pushq $0x1
popq %rcx
pushq $0x2
popq %r8
movl $0x170, %edx            # imm = 0x170
movq -0x40(%rbp), %r9
pushq %rax
leaq -0x60(%rbp), %rax
pushq %rax
pushq %r10
callq 0x4e913
addq $0x20, %rsp
movq 0x3e5d7(%rip), %rdi     # 0x70540
leaq -0xe0(%rbp), %rsi
movq %r13, (%rsi)
movq %r15, 0x8(%rsi)
leaq -0xd0(%rbp), %rcx
movq %r14, (%rcx)
movq %r14, 0x8(%rcx)
movl $0x171, %edx            # imm = 0x171
callq 0x5710
leaq -0x80(%rbp), %rdi
movb $0x0, 0x8(%rdi)
leaq 0x3db42(%rip), %rax     # 0x6fae0
movq %rax, (%rdi)
movq 0x3e008(%rip), %rax     # 0x6ffb0
movq %rax, 0x10(%rdi)
leaq 0x213a4(%rip), %rax     # 0x53357
movq %rax, 0x18(%rdi)
leaq -0xc0(%rbp), %rsi
movq %r13, (%rsi)
movq %r15, 0x8(%rsi)
movq 0x40(%rbx), %rax
movq 0x10(%rax,%r12), %rcx
subq 0x8(%rax,%r12), %rcx
shrq $0x3, %rcx
leaq -0x2c(%rbp), %r11
movl %ecx, (%r11)
subq $0x8, %rsp
leaq 0x21ed3(%rip), %rax     # 0x53ebc
leaq 0x21ec0(%rip), %r10     # 0x53eb0
pushq $0x1
popq %rcx
pushq $0x2
popq %r8
leaq -0x34(%rbp), %r9
movl $0x171, %edx            # imm = 0x171
pushq %rax
pushq %r11
pushq %r10
callq 0x4ec22
addq $0x20, %rsp
movq 0x3e52b(%rip), %rdi     # 0x70540
leaq -0xb0(%rbp), %rsi
movq %r13, (%rsi)
movq %r15, 0x8(%rsi)
leaq -0xa0(%rbp), %rcx
movq %r14, (%rcx)
movq %r14, 0x8(%rcx)
movl $0x172, %edx            # imm = 0x172
callq 0x5710
leaq -0x80(%rbp), %rdi
movb $0x0, 0x8(%rdi)
leaq 0x3da96(%rip), %rax     # 0x6fae0
movq %rax, (%rdi)
movq 0x3df5c(%rip), %rax     # 0x6ffb0
movq %rax, 0x10(%rdi)
leaq 0x212f8(%rip), %rax     # 0x53357
movq %rax, 0x18(%rdi)
leaq -0x90(%rbp), %rsi
movq %r13, (%rsi)
movq %r15, 0x8(%rsi)
movq 0x40(%rbx), %rax
movq 0x28(%rax,%r12), %rcx
subq 0x20(%rax,%r12), %rcx
shrq $0x3, %rcx
movl %ecx, -0x2c(%rbp)
subq $0x8, %rsp
leaq 0x21e64(%rip), %rax     # 0x53ef5
leaq 0x21e51(%rip), %r10     # 0x53ee9
pushq $0x1
popq %rcx
pushq $0x2
popq %r8
leaq -0x30(%rbp), %r9
movl $0x172, %edx            # imm = 0x172
pushq %rax
leaq -0x2c(%rbp), %rax
pushq %rax
pushq %r10
callq 0x4ec22
addq $0x20, %rsp
leaq -0x60(%rbp), %rdi
callq 0x57b8
addq $0xe8, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
jmp 0x320da
jmp 0x320da
jmp 0x320da
movq %rax, %rbx
leaq -0x60(%rbp), %rdi
callq 0x57b8
movq %rbx, %rdi
callq 0x56b0