// File: /workspace/github_cpp_makefile_star2_O2/eryxcc[P]lois/src/formula.cpp
// Function: lois::FormulaBi::subst(std::vector<std::pair<std::shared_ptr<lois::Variable>, lois::term>, std::allocator<std::pair<std::shared_ptr<lois::Variable>, lois::term>>> const&) const
virtual rbool subst(const varsubstlist& l) const { 
    if(l.size() == 1 && l[0].first == lastusecheck && usestat < 3) {
      if(usestat == 1 && type)
        return substitute(left, l) && right;
      if(usestat == 1 && !type)
        return substitute(left, l) || right;
      if(usestat == 2 && type)
        return left && substitute(right, l);
      if(usestat == 2 && !type)
        return left || substitute(right, l);
      }
    if(type) return substitute(left, l) && substitute(right, l);
    return substitute(left, l) || substitute(right, l);
    // make_shared<FormulaBi> (type, left->alph(v1,v2), right->alph(v1,v2));
    }

// Assembly:
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
subq $0xc0, %rsp
movq %rdx, %r15
movq %rsi, %r12
movq %rdi, %r14
movq (%rdx), %rax
movq 0x8(%rdx), %rcx
subq %rax, %rcx
cmpq $0x20, %rcx
jne 0x23569
movq (%rax), %rax
cmpq 0x38(%r12), %rax
jne 0x23569
movl 0x48(%r12), %eax
cmpl $0x2, %eax
jg 0x23569
je 0x2360e
cmpl $0x1, %eax
jne 0x23569
movq 0x18(%r12), %rsi
movq (%rsi), %rax
movq 0x10(%rax), %rax
leaq 0x28(%r12), %r13
cmpb $0x1, 0x10(%r12)
jne 0x2365a
leaq 0xb8(%rsp), %rbx
leaq 0xb0(%rsp), %r12
movq %r12, %rdi
movq %r15, %rdx
callq *%rax
leaq 0x90(%rsp), %r15
movq %r15, %rdi
movq %r13, %rsi
callq 0xf04a
movq %r14, %rdi
movq %r12, %rsi
movq %r15, %rdx
callq 0x20113
leaq 0x98(%rsp), %rdi
jmp 0x235ed
movq 0x18(%r12), %rsi
movq (%rsi), %rax
movq 0x10(%rax), %rax
cmpb $0x1, 0x10(%r12)
jne 0x235b8
leaq 0x58(%rsp), %rbx
leaq 0x50(%rsp), %rdi
movq %r15, %rdx
callq *%rax
movq 0x28(%r12), %rsi
movq (%rsi), %rax
leaq 0x10(%rsp), %rdi
movq %r15, %rdx
callq *0x10(%rax)
leaq 0x50(%rsp), %rsi
leaq 0x10(%rsp), %rdx
movq %r14, %rdi
callq 0x20113
leaq 0x18(%rsp), %rdi
jmp 0x235ed
leaq 0x48(%rsp), %rbx
leaq 0x40(%rsp), %rdi
movq %r15, %rdx
callq *%rax
movq 0x28(%r12), %rsi
movq (%rsi), %rax
movq %rsp, %rdi
movq %r15, %rdx
callq *0x10(%rax)
leaq 0x40(%rsp), %rsi
movq %rsp, %rdx
movq %r14, %rdi
callq 0x202f9
leaq 0x8(%rsp), %rdi
callq 0xefce
movq %rbx, %rdi
callq 0xefce
movq %r14, %rax
addq $0xc0, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
retq
leaq 0x18(%r12), %rsi
cmpb $0x1, 0x10(%r12)
jne 0x236a0
leaq 0x78(%rsp), %rbx
leaq 0x70(%rsp), %rdi
callq 0xf04a
movq 0x28(%r12), %rsi
movq (%rsi), %rax
leaq 0x30(%rsp), %rdi
movq %r15, %rdx
callq *0x10(%rax)
leaq 0x70(%rsp), %rsi
leaq 0x30(%rsp), %rdx
movq %r14, %rdi
callq 0x20113
leaq 0x38(%rsp), %rdi
jmp 0x235ed
leaq 0xa8(%rsp), %rbx
leaq 0xa0(%rsp), %r12
movq %r12, %rdi
movq %r15, %rdx
callq *%rax
leaq 0x80(%rsp), %r15
movq %r15, %rdi
movq %r13, %rsi
callq 0xf04a
movq %r14, %rdi
movq %r12, %rsi
movq %r15, %rdx
callq 0x202f9
leaq 0x88(%rsp), %rdi
jmp 0x235ed
leaq 0x68(%rsp), %rbx
leaq 0x60(%rsp), %rdi
callq 0xf04a
movq 0x28(%r12), %rsi
movq (%rsi), %rax
leaq 0x20(%rsp), %rdi
movq %r15, %rdx
callq *0x10(%rax)
leaq 0x60(%rsp), %rsi
leaq 0x20(%rsp), %rdx
movq %r14, %rdi
callq 0x202f9
leaq 0x28(%rsp), %rdi
jmp 0x235ed
movq %rax, %r14
leaq 0x28(%rsp), %rdi
jmp 0x23722
movq %rax, %r14
leaq 0x38(%rsp), %rdi
jmp 0x23722
jmp 0x2372b
movq %rax, %r14
leaq 0x88(%rsp), %rdi
jmp 0x23722
jmp 0x2372b
movq %rax, %r14
leaq 0x98(%rsp), %rdi
jmp 0x23722
movq %rax, %r14
leaq 0x8(%rsp), %rdi
jmp 0x23722
movq %rax, %r14
leaq 0x18(%rsp), %rdi
callq 0xefce
jmp 0x2372e
jmp 0x2372b
movq %rax, %r14
movq %rbx, %rdi
callq 0xefce
movq %r14, %rdi
callq 0x7410