// File: /workspace/github_cpp_makefile_star2_O3/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 $0x118, %rsp            # imm = 0x118
movq %rdx, 0x38(%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 0x85cb
incl 0x4a17a(%rip)           # 0x52740
jmp 0x8aff
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 0x40(%rsp), %rdi
callq 0x105be
leaq 0x4a1ba(%rip), %rax     # 0x527b0
movq (%rax), %rdi
movq 0x8(%rax), %rax
movq %rax, %rdx
testq %rax, %rax
je 0x861a
movq 0x499bc(%rip), %rax     # 0x51fc8
cmpb $0x0, (%rax)
je 0x8616
incl 0x8(%rdx)
jmp 0x861a
lock
incl 0x8(%rdx)
movq %rbx, 0x28(%rsp)
movq (%r15), %rsi
movq %r15, %r14
cmpq %rsi, 0x8(%r15)
movq %r13, 0x30(%rsp)
movq %r12, 0xa0(%rsp)
je 0x8936
movq %r12, %rax
shlq $0x6, %rax
leaq 0x49cf6(%rip), %rcx     # 0x52340
addq %rcx, %rax
leaq (%rax,%r13,4), %rax
movq %rax, 0x20(%rsp)
movq %r13, %rax
shlq $0x6, %rax
addq %rcx, %rax
leaq (%rax,%r12,4), %rax
movq %rax, 0xb0(%rsp)
incq %r12
xorl %ebx, %ebx
leaq 0x50(%rsp), %rbp
movq %rdi, %r15
movq %r15, 0x90(%rsp)
movq %rdx, 0x98(%rsp)
movq %rdx, (%rsp)
testq %rdx, %rdx
movq %r15, 0xa8(%rsp)
je 0x86b7
movq 0x49927(%rip), %rax     # 0x51fc8
cmpb $0x0, (%rax)
leaq 0xe8(%rsp), %r13
je 0x86c1
movq (%rsp), %rax
incl 0x8(%rax)
jmp 0x86cc
leaq 0xe8(%rsp), %r13
jmp 0x86cc
movq (%rsp), %rax
lock
incl 0x8(%rax)
movq (%r14), %rsi
movq %rbx, %r15
shlq $0x4, %r15
addq %r15, %rsi
movq %r13, %rdi
leaq 0x40(%rsp), %rdx
callq 0x2bf46
leaq 0xf8(%rsp), %rdi
leaq 0x90(%rsp), %rsi
movq %r13, %rdx
callq 0x2b213
movq 0xf8(%rsp), %rax
movq 0x100(%rsp), %rdi
movq %rax, 0x8(%rsp)
movq %rdi, 0x10(%rsp)
testq %rdi, %rdi
je 0x8738
movq 0x498a7(%rip), %rax     # 0x51fc8
cmpb $0x0, (%rax)
leaq 0x8(%rsp), %rsi
je 0x8742
incl 0x8(%rdi)
movl $0x0, 0x18(%rsp)
jmp 0x875b
movl $0x0, 0x18(%rsp)
jmp 0x8760
lock
incl 0x8(%rdi)
movq 0x100(%rsp), %rdi
movl $0x0, 0x18(%rsp)
testq %rdi, %rdi
je 0x8765
callq 0x133fc
leaq 0x8(%rsp), %rsi
movq 0xf0(%rsp), %rdi
testq %rdi, %rdi
je 0x877c
callq 0x133fc
leaq 0x8(%rsp), %rsi
movq 0x98(%rsp), %rdi
testq %rdi, %rdi
je 0x8793
callq 0x133fc
leaq 0x8(%rsp), %rsi
movq %rbp, %rdi
movq %rsi, %r13
callq 0x293a0
leaq 0xb8(%rsp), %rdi
movq %r13, %rsi
callq 0x29427
movl 0x78(%rsp), %eax
cmpl 0xe0(%rsp), %eax
je 0x87f8
addl $-0x4, %eax
cmpl $-0x2, %eax
jae 0x87ee
movq 0x20(%rsp), %rax
movl %ebx, (%rax)
movq 0xb0(%rsp), %rax
movl %ebx, (%rax)
movq %r14, %rdi
movq 0x28(%rsp), %rsi
movq 0x38(%rsp), %rdx
movq 0x30(%rsp), %rcx
movq %r12, %r8
callq 0x8583
movq %rbp, %rdi
callq 0x2938c
jmp 0x87ae
leaq 0x47b09(%rip), %rax     # 0x50308
movq %rax, 0xb8(%rsp)
movq 0xd8(%rsp), %rdi
testq %rdi, %rdi
je 0x8819
callq 0x133fc
leaq 0xb8(%rsp), %rdi
callq 0x1349e
leaq 0x47adb(%rip), %rax     # 0x50308
movq %rax, 0x50(%rsp)
movq 0x70(%rsp), %rdi
testq %rdi, %rdi
je 0x8841
callq 0x133fc
movq %rbp, %rdi
callq 0x1349e
movq 0x10(%rsp), %rdi
testq %rdi, %rdi
je 0x8858
callq 0x133fc
movq 0xa8(%rsp), %rax
movq %rax, 0x80(%rsp)
movq (%rsp), %rax
movq %rax, 0x88(%rsp)
testq %rax, %rax
leaq 0x108(%rsp), %r13
je 0x889e
movq 0x49740(%rip), %rax     # 0x51fc8
cmpb $0x0, (%rax)
je 0x8896
movq (%rsp), %rax
incl 0x8(%rax)
jmp 0x889e
movq (%rsp), %rax
lock
incl 0x8(%rax)
addq (%r14), %r15
movq %r13, %rdi
movq %r15, %rsi
leaq 0x40(%rsp), %rdx
callq 0x2c0bb
movq %rbp, %rdi
leaq 0x80(%rsp), %rsi
movq %r13, %rdx
callq 0x2b213
movq 0x50(%rsp), %r15
movq 0x58(%rsp), %r13
xorps %xmm0, %xmm0
movaps %xmm0, 0x50(%rsp)
movq (%rsp), %rdi
testq %rdi, %rdi
je 0x88f3
callq 0x133fc
movq 0x58(%rsp), %rdi
testq %rdi, %rdi
je 0x88f3
callq 0x133fc
movq 0x110(%rsp), %rdi
testq %rdi, %rdi
je 0x8905
callq 0x133fc
movq 0x88(%rsp), %rdi
testq %rdi, %rdi
je 0x8917
callq 0x133fc
incq %rbx
movq (%r14), %rsi
movq 0x8(%r14), %rax
subq %rsi, %rax
sarq $0x4, %rax
movq %r13, %rdx
cmpq %rax, %rbx
jb 0x8679
jmp 0x893c
movq %rdx, %r13
movq %rdi, %r15
movq %r13, 0x20(%rsp)
testq %r13, %r13
je 0x896e
movq 0x4967b(%rip), %rax     # 0x51fc8
cmpb $0x0, (%rax)
movq 0x28(%rsp), %r13
movq %r14, %rbp
je 0x898e
movq 0x20(%rsp), %rdi
incl 0x8(%rdi)
movq %r15, 0x8(%rsp)
movq %rdi, 0x10(%rsp)
jmp 0x89aa
movq %r15, 0x8(%rsp)
movq $0x0, 0x10(%rsp)
movl $0x0, 0x18(%rsp)
movq 0x28(%rsp), %r13
movq %r14, %rbp
jmp 0x89ba
movq 0x20(%rsp), %rdi
lock
incl 0x8(%rdi)
cmpb $0x0, (%rax)
movq %r15, 0x8(%rsp)
movq %rdi, 0x10(%rsp)
je 0x8b11
incl 0x8(%rdi)
movl $0x0, 0x18(%rsp)
callq 0x133fc
leaq 0x50(%rsp), %rdi
leaq 0x8(%rsp), %rsi
callq 0x293a0
leaq 0xb8(%rsp), %rdi
leaq 0x8(%rsp), %rsi
callq 0x29427
movq 0xa0(%rsp), %rbx
movq %rbx, %rax
shlq $0x6, %rax
leaq 0x4994f(%rip), %rcx     # 0x52340
addq %rcx, %rax
movq 0x30(%rsp), %rdx
leaq (%rax,%rdx,4), %r14
movq %rdx, %rax
shlq $0x6, %rax
addq %rcx, %rax
leaq (%rax,%rbx,4), %r15
incq %rbx
leaq 0x50(%rsp), %r12
movl 0x78(%rsp), %eax
cmpl 0xe0(%rsp), %eax
je 0x8a83
addl $-0x4, %eax
cmpl $-0x2, %eax
jae 0x8a79
movq 0x8(%rbp), %rax
subq (%rbp), %rax
shrq $0x4, %rax
movl %eax, (%r14)
movl %eax, (%r15)
movq %rbp, %rdi
leaq 0x40(%rsp), %rsi
callq 0x10672
movq %rbp, %rdi
movq %r13, %rsi
movq 0x38(%rsp), %rdx
movq 0x30(%rsp), %rcx
movq %rbx, %r8
callq 0x8583
movq 0x8(%rbp), %rax
leaq -0x10(%rax), %rcx
movq %rcx, 0x8(%rbp)
movq -0x8(%rax), %rdi
testq %rdi, %rdi
je 0x8a79
callq 0x133fc
movq %r12, %rdi
callq 0x2938c
jmp 0x8a13
leaq 0x4787e(%rip), %rbx     # 0x50308
movq %rbx, 0xb8(%rsp)
movq 0xd8(%rsp), %rdi
testq %rdi, %rdi
je 0x8aa4
callq 0x133fc
leaq 0xb8(%rsp), %rdi
callq 0x1349e
movq %rbx, 0x50(%rsp)
movq 0x70(%rsp), %rdi
testq %rdi, %rdi
movq 0x20(%rsp), %rbx
je 0x8aca
callq 0x133fc
leaq 0x50(%rsp), %rdi
callq 0x1349e
movq 0x10(%rsp), %rdi
testq %rdi, %rdi
je 0x8ae3
callq 0x133fc
testq %rbx, %rbx
je 0x8af0
movq %rbx, %rdi
callq 0x133fc
movq 0x48(%rsp), %rdi
testq %rdi, %rdi
je 0x8aff
callq 0x133fc
addq $0x118, %rsp            # imm = 0x118
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
lock
incl 0x8(%rdi)
jmp 0x89ad
movq %rax, %rbx
jmp 0x8b8b
movq %rax, %rbx
jmp 0x8b95
movq %rax, %rbx
jmp 0x8b3e
movq %rax, %rbx
movq 0x110(%rsp), %rdi
testq %rdi, %rdi
je 0x8b3e
callq 0x133fc
movq 0x88(%rsp), %rdi
jmp 0x8bd0
movq %rax, %rbx
jmp 0x8b65
movq %rax, %rbx
movq 0xf0(%rsp), %rdi
testq %rdi, %rdi
je 0x8b65
callq 0x133fc
movq 0x98(%rsp), %rdi
jmp 0x8bd0
movq %rax, %rbx
jmp 0x8bcb
movq %rax, %rbx
jmp 0x8bc1
jmp 0x8b7b
movq %rax, %rbx
leaq 0xb8(%rsp), %rdi
callq 0x10598
leaq 0x50(%rsp), %rdi
callq 0x10598
movq 0x10(%rsp), %rdi
testq %rdi, %rdi
je 0x8ba4
callq 0x133fc
movq 0x20(%rsp), %rax
movq %rax, (%rsp)
jmp 0x8bda
jmp 0x8bb1
movq %rax, %rbx
leaq 0xb8(%rsp), %rdi
callq 0x10598
leaq 0x50(%rsp), %rdi
callq 0x10598
movq 0x10(%rsp), %rdi
testq %rdi, %rdi
je 0x8bda
callq 0x133fc
movq (%rsp), %rdi
testq %rdi, %rdi
je 0x8be8
callq 0x133fc
movq 0x48(%rsp), %rdi
testq %rdi, %rdi
je 0x8bf7
callq 0x133fc
movq %rbx, %rdi
callq 0x7430