// File: /workspace/github_cpp_makefile_star2_O3/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, %r12
movl %ecx, -0x48(%rbp)
movl %ecx, -0x50(%rbp)
movl %r8d, -0x44(%rbp)
movl %r8d, -0x4c(%rbp)
leaq -0xc0(%rbp), %rax
movq %rax, -0x10(%rax)
movq $0x0, -0x8(%rax)
movb $0x0, (%rax)
movslq %esi, %rax
imulq $0x38, %rax, %rbx
movq 0x40(%rdi), %rsi
addq %rbx, %rsi
leaq -0xd0(%rbp), %r14
movq %rdi, -0x58(%rbp)
movq %r14, %rdx
callq 0x12ede
movq 0x4cc57(%rip), %rdi     # 0x8a550
leaq 0x33342(%rip), %r15     # 0x70c42
leaq -0x160(%rbp), %rsi
movq %r15, (%rsi)
leaq 0x3333f(%rip), %rax     # 0x70c50
movq %rax, 0x8(%rsi)
leaq 0x33153(%rip), %rax     # 0x70a6f
leaq -0x150(%rbp), %rcx
movq %rax, (%rcx)
movq %rax, 0x8(%rcx)
movl $0x170, %edx            # imm = 0x170
callq 0x5760
movb $0x0, -0xe8(%rbp)
leaq 0x4c18e(%rip), %rax     # 0x89ad0
movq %rax, -0xf0(%rbp)
movq 0x4c660(%rip), %r13     # 0x89fb0
movq %r13, -0xe0(%rbp)
leaq 0x32a69(%rip), %rax     # 0x703c7
movq %rax, -0xd8(%rbp)
movq 0x8(%r12), %rdx
cmpq -0xc8(%rbp), %rdx
jne 0x3d98f
testq %rdx, %rdx
je 0x3d993
movq -0xd0(%rbp), %rsi
movq (%r12), %rdi
callq 0x53e0
testl %eax, %eax
sete %al
jmp 0x3d995
xorl %eax, %eax
jmp 0x3d995
movb $0x1, %al
leaq -0x70(%rbp), %rdi
movb %al, (%rdi)
xorps %xmm0, %xmm0
movups %xmm0, 0x8(%rdi)
leaq -0x100(%rbp), %rdx
movq %r15, (%rdx)
leaq 0x3329d(%rip), %rax     # 0x70c50
movq %rax, 0x8(%rdx)
leaq -0x40(%rbp), %rsi
movq %r12, (%rsi)
xorl %eax, %eax
leaq -0xb0(%rbp), %r12
movb %al, 0x8(%r12)
leaq 0x4c20d(%rip), %rcx     # 0x89be0
movq %rcx, (%r12)
movq %r13, 0x10(%r12)
movq %rsi, 0x18(%r12)
leaq -0x38(%rbp), %rsi
movq %r14, (%rsi)
leaq -0x90(%rbp), %r14
movb %al, 0x8(%r14)
movq %rcx, (%r14)
movq %r13, 0x10(%r14)
movq %rsi, 0x18(%r14)
subq $0x8, %rsp
leaq 0x33565(%rip), %r10     # 0x70f6e
leaq 0x33559(%rip), %r11     # 0x70f69
leaq -0xf0(%rbp), %rsi
movl $0x170, %ecx            # imm = 0x170
movl $0x1, %r8d
movl $0x2, %r9d
xorl %eax, %eax
pushq %r14
pushq %r10
pushq %r12
pushq %r11
pushq $0x2
callq 0x5740
addq $0x30, %rsp
leaq -0x60(%rbp), %rdi
callq 0x2e804
movq 0x4cb03(%rip), %rdi     # 0x8a550
leaq -0x140(%rbp), %rsi
movq %r15, (%rsi)
leaq 0x331f2(%rip), %r14     # 0x70c50
movq %r14, 0x8(%rsi)
leaq -0x130(%rbp), %rcx
leaq 0x32fff(%rip), %rax     # 0x70a6f
movq %rax, (%rcx)
movq %rax, 0x8(%rcx)
movl $0x171, %edx            # imm = 0x171
callq 0x5760
xorl %eax, %eax
leaq -0xf0(%rbp), %rsi
movb %al, 0x8(%rsi)
leaq 0x4c03c(%rip), %rcx     # 0x89ad0
movq %rcx, (%rsi)
movq %r13, 0x10(%rsi)
leaq 0x32925(%rip), %rcx     # 0x703c7
movq %rcx, 0x18(%rsi)
movq -0x58(%rbp), %rcx
movq 0x40(%rcx), %rcx
movq 0x10(%rcx,%rbx), %rdx
subq 0x8(%rcx,%rbx), %rdx
shrq $0x3, %rdx
leaq -0x2c(%rbp), %r8
movl %edx, (%r8)
cmpl -0x48(%rbp), %edx
leaq -0x70(%rbp), %rdi
sete (%rdi)
xorps %xmm0, %xmm0
movups %xmm0, 0x8(%rdi)
leaq -0x50(%rbp), %rcx
movq %rcx, -0x40(%rbp)
leaq -0x100(%rbp), %rdx
movq %r15, (%rdx)
movq %r14, 0x8(%rdx)
movb %al, -0xa8(%rbp)
movb %al, -0x88(%rbp)
leaq 0x4c213(%rip), %r12     # 0x89d10
movq %r12, -0xb0(%rbp)
movq %r13, -0xa0(%rbp)
leaq -0x40(%rbp), %rax
movq %rax, -0x98(%rbp)
movq %r8, -0x38(%rbp)
movq %r12, -0x90(%rbp)
movq %r13, -0x80(%rbp)
leaq -0x38(%rbp), %rax
movq %rax, -0x78(%rbp)
subq $0x8, %rsp
leaq 0x33446(%rip), %r10     # 0x70f7e
leaq 0x33433(%rip), %r11     # 0x70f72
movl $0x171, %ecx            # imm = 0x171
movl $0x1, %r8d
movl $0x2, %r9d
xorl %eax, %eax
leaq -0x90(%rbp), %r14
pushq %r14
pushq %r10
leaq -0xb0(%rbp), %r10
pushq %r10
pushq %r11
pushq $0x2
callq 0x5740
addq $0x30, %rsp
leaq -0x60(%rbp), %rdi
callq 0x2e804
movq 0x4c9cd(%rip), %rdi     # 0x8a550
leaq -0x120(%rbp), %rsi
movq %r15, (%rsi)
leaq 0x330bc(%rip), %r14     # 0x70c50
movq %r14, 0x8(%rsi)
leaq -0x110(%rbp), %rcx
leaq 0x32ec9(%rip), %rax     # 0x70a6f
movq %rax, (%rcx)
movq %rax, 0x8(%rcx)
movl $0x172, %edx            # imm = 0x172
callq 0x5760
xorl %eax, %eax
leaq -0xf0(%rbp), %rsi
movb %al, 0x8(%rsi)
leaq 0x4bf06(%rip), %rcx     # 0x89ad0
movq %rcx, (%rsi)
movq %r13, 0x10(%rsi)
leaq 0x327ef(%rip), %rcx     # 0x703c7
movq %rcx, 0x18(%rsi)
movq -0x58(%rbp), %rcx
movq 0x40(%rcx), %rcx
movq 0x28(%rcx,%rbx), %rdx
subq 0x20(%rcx,%rbx), %rdx
shrq $0x3, %rdx
cmpl -0x44(%rbp), %edx
movl %edx, -0x2c(%rbp)
leaq -0x100(%rbp), %rdx
movq %r15, (%rdx)
movq %r14, 0x8(%rdx)
leaq -0x4c(%rbp), %rcx
movq %rcx, -0x40(%rbp)
movb %al, -0xa8(%rbp)
movq %r12, -0xb0(%rbp)
movq %r13, -0xa0(%rbp)
leaq -0x40(%rbp), %rcx
movq %rcx, -0x98(%rbp)
leaq -0x2c(%rbp), %rcx
movq %rcx, -0x38(%rbp)
movb %al, -0x88(%rbp)
movq %r12, -0x90(%rbp)
leaq -0x70(%rbp), %rdi
sete (%rdi)
movq %r13, -0x80(%rbp)
leaq -0x38(%rbp), %rax
movq %rax, -0x78(%rbp)
xorps %xmm0, %xmm0
movups %xmm0, 0x8(%rdi)
subq $0x8, %rsp
leaq 0x33350(%rip), %r10     # 0x70fb7
leaq 0x3333d(%rip), %r11     # 0x70fab
movl $0x172, %ecx            # imm = 0x172
movl $0x1, %r8d
movl $0x2, %r9d
xorl %eax, %eax
leaq -0x90(%rbp), %rbx
pushq %rbx
pushq %r10
leaq -0xb0(%rbp), %r10
pushq %r10
pushq %r11
pushq $0x2
callq 0x5740
addq $0x30, %rsp
leaq -0x60(%rbp), %rdi
callq 0x2e804
movq -0xd0(%rbp), %rdi
leaq -0xc0(%rbp), %rax
cmpq %rax, %rdi
je 0x3dcc2
callq 0x5380
addq $0x138, %rsp            # imm = 0x138
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
jmp 0x3dcd8
jmp 0x3dcd8
movq %rax, %rbx
leaq -0x60(%rbp), %rdi
callq 0x2e804
jmp 0x3dce9
movq %rax, %rbx
movq -0xd0(%rbp), %rdi
leaq -0xc0(%rbp), %rax
cmpq %rax, %rdi
je 0x3dd01
callq 0x5380
movq %rbx, %rdi
callq 0x56f0