// File: /workspace/github_cpp_makefile_star2_O1/eryxcc[P]lois/tests/autotest.cpp
// Function: analyzeStructure(std::vector<lois::term, std::allocator<lois::term>>&, lois::RelTree&, lois::lsetof<lois::term> const&, unsigned long, unsigned long)
void analyzeStructure(vector<term>& v, RelTree& tree, const lsetof<term>& A, size_t a=0, size_t b=0) {

  if(b>a) a=a+1, b=0;
  
  if(a == v.size()) {
    int i = 0;
    for(int j=1; j<a; j++) i = strindex[i][j];
    // cout << "possible tree structure: "; drawTree(v, i); cout << endl;
    numstruct++;
    return;
    }

  term lca = tree.lca(v[a], v[b]);

  {
 
    rbool psi = ftrue;
    for(size_t i=0; i<v.size(); i++) {
      If(psi && v[i] == lca) {
        strindex[a][b] = strindex[b][a] = i;
        analyzeStructure(v, tree, A, a, b+1);
        }
      psi = psi && (v[i] != lca);
      }

    If(psi) {
      strindex[a][b] = strindex[b][a] = v.size();
      v.push_back(lca);
      analyzeStructure(v, tree, A, a, b+1);
      v.pop_back();
      }
    }

  }

// Assembly:
pushq %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
subq $0x128, %rsp            # imm = 0x128
movq %rdx, 0x48(%rsp)
xorl %r12d, %r12d
xorl %r13d, %r13d
cmpq %rcx, %r8
cmovbeq %r8, %r12
seta %r13b
addq %rcx, %r13
movq (%rdi), %rax
movq 0x8(%rdi), %rcx
subq %rax, %rcx
sarq $0x4, %rcx
cmpq %rcx, %r13
jne 0x85a7
incl 0x4b19e(%rip)           # 0x53740
jmp 0x8ab6
movq %rsi, %rbx
movq %rdi, %r15
movq %r13, %rdx
shlq $0x4, %rdx
addq %rax, %rdx
movq %r12, %rcx
shlq $0x4, %rcx
addq %rax, %rcx
leaq 0x50(%rsp), %rdi
callq 0x10550
leaq 0x4b1de(%rip), %rax     # 0x537b0
movq (%rax), %rsi
movq 0x8(%rax), %rax
movq %rax, %rdx
testq %rax, %rax
je 0x85f6
movq 0x4a9e0(%rip), %rax     # 0x52fc8
cmpb $0x0, (%rax)
je 0x85f2
incl 0x8(%rdx)
jmp 0x85f6
lock
incl 0x8(%rdx)
movq %rbx, 0x40(%rsp)
movq 0x8(%r15), %rax
movq %r15, %r14
cmpq (%r15), %rax
movq %r13, 0x38(%rsp)
movq %r12, 0xb8(%rsp)
je 0x88fa
movq %r12, %rax
shlq $0x6, %rax
leaq 0x4ad1a(%rip), %rcx     # 0x53340
addq %rcx, %rax
leaq (%rax,%r13,4), %rax
movq %rax, 0x10(%rsp)
movq %r13, %rax
shlq $0x6, %rax
addq %rcx, %rax
leaq (%rax,%r12,4), %rax
movq %rax, 0xc0(%rsp)
incq %r12
xorl %ebx, %ebx
leaq 0xf8(%rsp), %r13
leaq 0x60(%rsp), %rbp
movq %rsi, 0xa8(%rsp)
movq %rdx, 0xb0(%rsp)
movq %rdx, 0x8(%rsp)
testq %rdx, %rdx
je 0x8693
movq 0x4a94d(%rip), %rax     # 0x52fc8
cmpb $0x0, (%rax)
je 0x868a
movq 0x8(%rsp), %rax
incl 0x8(%rax)
jmp 0x8693
movq 0x8(%rsp), %rax
lock
incl 0x8(%rax)
movq %rsi, 0x30(%rsp)
movq %rbx, %r15
shlq $0x4, %r15
movq (%r14), %rsi
addq %r15, %rsi
movq %r13, %rdi
leaq 0x50(%rsp), %rdx
callq 0x2be82
leaq 0x108(%rsp), %rdi
leaq 0xa8(%rsp), %rsi
movq %r13, %rdx
callq 0x2b0ed
movq 0x108(%rsp), %rcx
movq 0x110(%rsp), %rax
movq %rcx, 0x18(%rsp)
movq %rax, 0x20(%rsp)
testq %rax, %rax
je 0x86fe
movq 0x4a8d8(%rip), %rcx     # 0x52fc8
cmpb $0x0, (%rcx)
je 0x86fa
incl 0x8(%rax)
jmp 0x86fe
lock
incl 0x8(%rax)
movl $0x0, 0x28(%rsp)
movq 0x110(%rsp), %rdi
testq %rdi, %rdi
je 0x8718
callq 0x13308
movq 0x100(%rsp), %rdi
testq %rdi, %rdi
je 0x872a
callq 0x13308
movq 0xb0(%rsp), %rdi
testq %rdi, %rdi
je 0x873c
callq 0x13308
movq %rbp, %rdi
leaq 0x18(%rsp), %r13
movq %r13, %rsi
callq 0x29206
leaq 0xc8(%rsp), %rdi
movq %r13, %rsi
callq 0x29291
movl 0x88(%rsp), %eax
cmpl 0xf0(%rsp), %eax
je 0x87a9
addl $-0x4, %eax
cmpl $-0x2, %eax
jae 0x879f
movq 0x10(%rsp), %rax
movl %ebx, (%rax)
movq 0xc0(%rsp), %rax
movl %ebx, (%rax)
movq %r14, %rdi
movq 0x40(%rsp), %rsi
movq 0x48(%rsp), %rdx
movq 0x38(%rsp), %rcx
movq %r12, %r8
callq 0x855f
movq %rbp, %rdi
callq 0x291f2
jmp 0x875c
leaq 0x48af8(%rip), %rax     # 0x512a8
movq %rax, 0xc8(%rsp)
movq 0xe8(%rsp), %rdi
testq %rdi, %rdi
je 0x87ca
callq 0x13308
leaq 0xc8(%rsp), %rdi
callq 0x133aa
leaq 0x48aca(%rip), %rax     # 0x512a8
movq %rax, 0x60(%rsp)
movq 0x80(%rsp), %rdi
testq %rdi, %rdi
je 0x87f5
callq 0x13308
movq %rbp, %rdi
callq 0x133aa
movq 0x20(%rsp), %rdi
testq %rdi, %rdi
je 0x880c
callq 0x13308
movq 0x30(%rsp), %rax
movq %rax, 0x98(%rsp)
movq 0x8(%rsp), %rax
movq %rax, 0xa0(%rsp)
testq %rax, %rax
leaq 0x118(%rsp), %rdi
je 0x8852
movq 0x4a78e(%rip), %rax     # 0x52fc8
cmpb $0x0, (%rax)
je 0x8849
movq 0x8(%rsp), %rax
incl 0x8(%rax)
jmp 0x8852
movq 0x8(%rsp), %rax
lock
incl 0x8(%rax)
addq (%r14), %r15
movq %r15, %rsi
movq %rdi, %r15
leaq 0x50(%rsp), %rdx
callq 0x2c008
movq %rbp, %rdi
leaq 0x98(%rsp), %rsi
movq %r15, %rdx
callq 0x2b0ed
movq 0x60(%rsp), %rax
movq %rax, 0x30(%rsp)
movq 0x68(%rsp), %r15
xorps %xmm0, %xmm0
movaps %xmm0, 0x60(%rsp)
movq 0x8(%rsp), %rdi
testq %rdi, %rdi
je 0x889e
callq 0x13308
movq 0x68(%rsp), %rdi
testq %rdi, %rdi
je 0x88ad
callq 0x13308
movq 0x120(%rsp), %rdi
testq %rdi, %rdi
je 0x88bf
callq 0x13308
movq 0xa0(%rsp), %rdi
testq %rdi, %rdi
je 0x88d1
callq 0x13308
movq 0x8(%r14), %rax
subq (%r14), %rax
incq %rbx
sarq $0x4, %rax
movq %r15, %rdx
cmpq %rax, %rbx
leaq 0xf8(%rsp), %r13
movq 0x30(%rsp), %rsi
jb 0x865a
jmp 0x88fd
movq %rdx, %r15
testq %r15, %r15
movq 0x40(%rsp), %r13
movq %r14, %rbp
je 0x8921
movq 0x4a6b7(%rip), %rax     # 0x52fc8
cmpb $0x0, (%rax)
je 0x891c
incl 0x8(%r15)
jmp 0x8921
lock
incl 0x8(%r15)
movq %rsi, 0x18(%rsp)
movq %r15, 0x20(%rsp)
testq %r15, %r15
je 0x8942
movq 0x4a691(%rip), %rax     # 0x52fc8
cmpb $0x0, (%rax)
je 0x894c
incl 0x8(%r15)
jmp 0x8951
movl $0x0, 0x28(%rsp)
jmp 0x8966
lock
incl 0x8(%r15)
movl $0x0, 0x28(%rsp)
testq %r15, %r15
je 0x8966
movq %r15, %rdi
callq 0x13308
leaq 0x60(%rsp), %rdi
leaq 0x18(%rsp), %rsi
movq %r15, 0x10(%rsp)
callq 0x29206
leaq 0xc8(%rsp), %rdi
leaq 0x18(%rsp), %rsi
callq 0x29291
movq 0xb8(%rsp), %rbx
movq %rbx, %rax
shlq $0x6, %rax
leaq 0x4a99e(%rip), %rcx     # 0x53340
addq %rcx, %rax
movq 0x38(%rsp), %rdx
leaq (%rax,%rdx,4), %r14
movq %rdx, %rax
shlq $0x6, %rax
addq %rcx, %rax
leaq (%rax,%rbx,4), %r15
incq %rbx
leaq 0x60(%rsp), %r12
movl 0x88(%rsp), %eax
cmpl 0xf0(%rsp), %eax
je 0x8a37
addl $-0x4, %eax
cmpl $-0x2, %eax
jae 0x8a2d
movq 0x8(%rbp), %rax
subq (%rbp), %rax
shrq $0x4, %rax
movl %eax, (%r14)
movl %eax, (%r15)
movq %rbp, %rdi
leaq 0x50(%rsp), %rsi
callq 0x10604
movq %rbp, %rdi
movq %r13, %rsi
movq 0x48(%rsp), %rdx
movq 0x38(%rsp), %rcx
movq %rbx, %r8
callq 0x855f
movq 0x8(%rbp), %rax
leaq -0x10(%rax), %rcx
movq %rcx, 0x8(%rbp)
movq -0x8(%rax), %rdi
testq %rdi, %rdi
je 0x8a2d
callq 0x13308
movq %r12, %rdi
callq 0x291f2
jmp 0x89c4
leaq 0x4886a(%rip), %rbx     # 0x512a8
movq %rbx, 0xc8(%rsp)
movq 0xe8(%rsp), %rdi
testq %rdi, %rdi
je 0x8a58
callq 0x13308
leaq 0xc8(%rsp), %rdi
callq 0x133aa
movq %rbx, 0x60(%rsp)
movq 0x80(%rsp), %rdi
testq %rdi, %rdi
movq 0x10(%rsp), %rbx
je 0x8a81
callq 0x13308
leaq 0x60(%rsp), %rdi
callq 0x133aa
movq 0x20(%rsp), %rdi
testq %rdi, %rdi
je 0x8a9a
callq 0x13308
testq %rbx, %rbx
je 0x8aa7
movq %rbx, %rdi
callq 0x13308
movq 0x58(%rsp), %rdi
testq %rdi, %rdi
je 0x8ab6
callq 0x13308
addq $0x128, %rsp            # imm = 0x128
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
movq %rax, %rbx
jmp 0x8b39
movq %rax, %rbx
jmp 0x8b43
movq %rax, %rbx
jmp 0x8aec
movq %rax, %rbx
movq 0x120(%rsp), %rdi
testq %rdi, %rdi
je 0x8aec
callq 0x13308
movq 0xa0(%rsp), %rdi
jmp 0x8b7f
movq %rax, %rbx
jmp 0x8b13
movq %rax, %rbx
movq 0x100(%rsp), %rdi
testq %rdi, %rdi
je 0x8b13
callq 0x13308
movq 0xb0(%rsp), %rdi
jmp 0x8b7f
movq %rax, %rbx
jmp 0x8b7a
movq %rax, %rbx
jmp 0x8b70
jmp 0x8b29
movq %rax, %rbx
leaq 0xc8(%rsp), %rdi
callq 0x1052a
leaq 0x60(%rsp), %rdi
callq 0x1052a
movq 0x20(%rsp), %rdi
testq %rdi, %rdi
je 0x8b52
callq 0x13308
movq 0x10(%rsp), %rax
movq %rax, 0x8(%rsp)
jmp 0x8b89
jmp 0x8b60
movq %rax, %rbx
leaq 0xc8(%rsp), %rdi
callq 0x1052a
leaq 0x60(%rsp), %rdi
callq 0x1052a
movq 0x20(%rsp), %rdi
testq %rdi, %rdi
je 0x8b89
callq 0x13308
movq 0x8(%rsp), %rdi
testq %rdi, %rdi
je 0x8b98
callq 0x13308
movq 0x58(%rsp), %rdi
testq %rdi, %rdi
je 0x8ba7
callq 0x13308
movq %rbx, %rdi
callq 0x7430