// File: /workspace/github_cpp_makefile_star2_O2/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 $0x138, %rsp            # imm = 0x138
movq %rdx, 0x40(%rsp)
cmpq %r8, %rcx
movq %rcx, %rbx
adcq $0x0, %rbx
movq (%rdi), %rax
movq 0x8(%rdi), %rdx
subq %rax, %rdx
sarq $0x4, %rdx
cmpq %rdx, %rbx
jne 0x801b
incl 0x4172a(%rip)           # 0x49740
jmp 0x834b
movq %r8, %r15
movq %rdi, %r13
xorl %r14d, %r14d
cmpq %rcx, %r8
cmovaq %r14, %r15
movq %rbx, %rdx
shlq $0x4, %rdx
addq %rax, %rdx
movq %r15, %rcx
shlq $0x4, %rcx
addq %rax, %rcx
leaq 0x48(%rsp), %rdi
movq %rsi, 0x38(%rsp)
callq 0xd086
leaq 0x4175b(%rip), %rsi     # 0x497b0
leaq 0x8(%rsp), %rdi
callq 0xf04a
movq %r15, %rax
shlq $0x6, %rax
leaq 0x412d3(%rip), %rcx     # 0x49340
addq %rcx, %rax
leaq (%rax,%rbx,4), %rax
movq %rax, 0x28(%rsp)
movq %rbx, 0x30(%rsp)
movq %rbx, %rax
shlq $0x6, %rax
addq %rcx, %rax
leaq (%rax,%r15,4), %rax
movq %rax, 0x20(%rsp)
incq %r15
movq %r15, 0x18(%rsp)
leaq 0x78(%rsp), %rbx
leaq 0x128(%rsp), %r12
leaq 0xa8(%rsp), %rbp
movq 0x8(%r13), %rax
subq (%r13), %rax
sarq $0x4, %rax
cmpq %rax, %r14
jae 0x8247
movq %rbx, %rdi
leaq 0x8(%rsp), %rsi
callq 0xf04a
movq %r14, %rcx
shlq $0x4, %rcx
movq (%r13), %rsi
movq %rcx, 0x70(%rsp)
addq %rcx, %rsi
leaq 0xd8(%rsp), %r15
movq %r15, %rdi
leaq 0x48(%rsp), %rdx
callq 0x20a46
movq %r12, %rdi
movq %rbx, %rsi
movq %r15, %rdx
callq 0x20113
leaq 0x58(%rsp), %rbx
movq %rbx, %rdi
movq %r12, %rsi
callq 0xd01d
leaq 0x130(%rsp), %rdi
callq 0xefce
leaq 0xe0(%rsp), %rdi
callq 0xefce
leaq 0x80(%rsp), %rdi
callq 0xefce
movq %rbp, %rdi
movq %rbx, %rsi
callq 0x1ea68
leaq 0xe8(%rsp), %rdi
movq %rbx, %rsi
callq 0x1eab0
movl 0xd0(%rsp), %eax
cmpl 0x110(%rsp), %eax
je 0x81a6
addl $-0x4, %eax
cmpl $-0x2, %eax
jae 0x819c
movq 0x28(%rsp), %rax
movl %r14d, (%rax)
movq 0x20(%rsp), %rax
movl %r14d, (%rax)
movq %r13, %rdi
movq 0x38(%rsp), %rsi
movq 0x40(%rsp), %rdx
movq 0x30(%rsp), %rcx
movq 0x18(%rsp), %r8
callq 0x7fdd
movq %rbp, %rdi
callq 0x1ea54
jmp 0x8158
leaq 0xe8(%rsp), %rdi
callq 0xd03a
movq %rbp, %rdi
callq 0xd03a
leaq 0x60(%rsp), %rdi
callq 0xefce
leaq 0x98(%rsp), %rbx
movq %rbx, %rdi
leaq 0x8(%rsp), %rsi
callq 0xf04a
movq 0x70(%rsp), %rsi
addq (%r13), %rsi
leaq 0x88(%rsp), %r15
movq %r15, %rdi
leaq 0x48(%rsp), %rdx
callq 0x20afd
movq %rbp, %rdi
movq %rbx, %rsi
movq %r15, %rdx
callq 0x20113
leaq 0x8(%rsp), %rdi
movq %rbp, %rsi
callq 0xf3dc
leaq 0xb0(%rsp), %rdi
callq 0xefce
leaq 0x90(%rsp), %rdi
callq 0xefce
leaq 0xa0(%rsp), %rdi
callq 0xefce
incq %r14
leaq 0x78(%rsp), %rbx
jmp 0x80ae
leaq 0x118(%rsp), %r14
leaq 0x8(%rsp), %rsi
movq %r14, %rdi
callq 0xf04a
leaq 0x58(%rsp), %rbp
movq %rbp, %rdi
movq %r14, %rsi
callq 0xd01d
leaq 0x120(%rsp), %rdi
callq 0xefce
leaq 0xa8(%rsp), %rdi
movq %rbp, %rsi
callq 0x1ea68
leaq 0xe8(%rsp), %rdi
leaq 0x58(%rsp), %rsi
callq 0x1eab0
leaq 0x48(%rsp), %r14
leaq 0xa8(%rsp), %rbp
movl 0xd0(%rsp), %eax
cmpl 0x110(%rsp), %eax
je 0x8313
addl $-0x4, %eax
cmpl $-0x2, %eax
jae 0x8309
movq 0x8(%r13), %rax
subq (%r13), %rax
shrq $0x4, %rax
movq 0x28(%rsp), %rcx
movl %eax, (%rcx)
movq 0x20(%rsp), %rcx
movl %eax, (%rcx)
movq %r13, %rdi
movq %r14, %rsi
callq 0xd116
movq %r13, %rdi
movq 0x38(%rsp), %rsi
movq 0x40(%rsp), %rdx
movq 0x30(%rsp), %rcx
movq 0x18(%rsp), %r8
callq 0x7fdd
movq %r13, %rdi
callq 0xd142
movq %rbp, %rdi
callq 0x1ea54
jmp 0x82a8
leaq 0xe8(%rsp), %rdi
callq 0xd03a
leaq 0xa8(%rsp), %rdi
callq 0xd03a
leaq 0x60(%rsp), %rdi
callq 0xefce
leaq 0x10(%rsp), %rdi
callq 0xefce
leaq 0x50(%rsp), %rdi
callq 0xefce
addq $0x138, %rsp            # imm = 0x138
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
jmp 0x8396
jmp 0x839b
jmp 0x83af
movq %rax, %rbx
leaq 0x90(%rsp), %rdi
callq 0xefce
jmp 0x8378
movq %rax, %rbx
leaq 0xa0(%rsp), %rdi
jmp 0x83d1
jmp 0x83af
movq %rax, %rbx
leaq 0xe0(%rsp), %rdi
callq 0xefce
jmp 0x83a3
movq %rax, %rbx
jmp 0x83bf
movq %rax, %rbx
jmp 0x83cc
movq %rax, %rbx
leaq 0x80(%rsp), %rdi
jmp 0x83d1
jmp 0x83af
movq %rax, %rbx
leaq 0xe8(%rsp), %rdi
callq 0xd03a
leaq 0xa8(%rsp), %rdi
callq 0xd03a
leaq 0x60(%rsp), %rdi
callq 0xefce
leaq 0x10(%rsp), %rdi
callq 0xefce
leaq 0x50(%rsp), %rdi
callq 0xefce
movq %rbx, %rdi
callq 0x7410