// File: /workspace/github_cpp_makefile_star2_O2/eryxcc[P]lois/src/formula.cpp
// Function: lois::FormulaQ::valueKnown(std::shared_ptr<lois::Variable>, bool)
term FormulaQ::valueKnown(vptr v, bool negated) {
  term v1 = right->valueKnown(v, negated);
  if(!v1.p) return v1;
  for(auto qx: var) if(qx == v1.asVar()) {
    // should not happen if simplified!
    std::cout << "should not happen: v= " <<v << " rbool= ";
    display(std::cout); std::cout << std::endl;
    term vk = right->valueKnown(qx, type);
    if(!vk.p) std::cout << "value unknown!" << std::endl;
    else std::cout << "valueKnown is " << vk <<std::endl;
    return nullterm;
    }
  return v1;
  }

// Assembly:
pushq %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
subq $0x88, %rsp
movl %ecx, %ebx
movq %rdx, %rbp
movq %rsi, %r13
movq %rdi, %r12
movq 0x18(%rsi), %r14
leaq 0x78(%rsp), %r15
movq %r15, %rdi
movq %rdx, %rsi
callq 0x1160e
movq (%r14), %rax
movq %rsp, %rdi
movq %r14, %rsi
movq %r15, %rdx
movl %ebx, %ecx
callq *0x30(%rax)
leaq 0x80(%rsp), %rdi
callq 0xefce
cmpq $0x0, (%rsp)
je 0x207cc
movq %rbp, 0x48(%rsp)
movq %r12, 0x30(%rsp)
leaq 0x18(%rsp), %rax
movq %rax, 0x20(%rsp)
leaq 0x8(%rsp), %rax
movq %rax, 0x28(%rsp)
movq 0x28(%r13), %r14
movq %r13, 0x50(%rsp)
movq 0x30(%r13), %r13
leaq 0x10(%rsp), %rbp
movq %rsp, %r15
cmpq %r13, %r14
je 0x207e6
leaq 0x38(%rsp), %rdi
movq %r14, %rsi
callq 0x1160e
movq %rbp, %rdi
movq %r15, %rsi
callq 0x219fe
movq 0x38(%rsp), %r12
movq 0x10(%rsp), %rbx
leaq 0x18(%rsp), %rdi
callq 0xefce
cmpq %rbx, %r12
je 0x20804
leaq 0x40(%rsp), %rdi
callq 0xefce
addq $0x10, %r14
jmp 0x20786
andq $0x0, (%r12)
movq 0x8(%rsp), %rax
andq $0x0, 0x8(%rsp)
movq %rax, 0x8(%r12)
jmp 0x20914
movaps (%rsp), %xmm0
andq $0x0, 0x8(%rsp)
movq 0x30(%rsp), %r12
movups %xmm0, (%r12)
andq $0x0, (%rsp)
jmp 0x20914
movq 0x287c5(%rip), %rdi     # 0x48fd0
leaq 0x11702(%rip), %rsi     # 0x31f14
callq 0x7230
movq 0x30(%rsp), %r12
movq 0x50(%rsp), %r15
movq %rax, %rbx
leaq 0x68(%rsp), %r14
movq %r14, %rdi
movq 0x48(%rsp), %rsi
callq 0x1160e
movq (%r14), %rdi
movq (%rdi), %rax
movq %rbx, %rsi
callq *0x10(%rax)
leaq 0x116e2(%rip), %rsi     # 0x31f2b
movq %rax, %rdi
callq 0x7230
leaq 0x70(%rsp), %rdi
callq 0xefce
movq (%r15), %rax
movq 0x2876b(%rip), %rsi     # 0x48fd0
movq %r15, %rdi
callq *(%rax)
movq 0x2875f(%rip), %rdi     # 0x48fd0
callq 0x7130
movq 0x18(%r15), %rbx
leaq 0x58(%rsp), %r14
leaq 0x38(%rsp), %rsi
movq %r14, %rdi
callq 0x1160e
movzbl 0x10(%r15), %ecx
movq (%rbx), %rax
leaq 0x10(%rsp), %rdi
movq %rbx, %rsi
movq %r14, %rdx
callq *0x30(%rax)
leaq 0x60(%rsp), %rdi
callq 0xefce
cmpq $0x0, 0x10(%rsp)
je 0x208d6
movq 0x28715(%rip), %rdi     # 0x48fd0
leaq 0x11681(%rip), %rsi     # 0x31f43
callq 0x7230
leaq 0x10(%rsp), %rsi
movq %rax, %rdi
callq 0xd05a
jmp 0x208e9
movq 0x286f3(%rip), %rdi     # 0x48fd0
leaq 0x11650(%rip), %rsi     # 0x31f34
callq 0x7230
movq %rax, %rdi
callq 0x7130
leaq 0x28ed8(%rip), %rsi     # 0x497d0
movq %r12, %rdi
callq 0xf5ec
leaq 0x18(%rsp), %rdi
callq 0xefce
leaq 0x40(%rsp), %rdi
callq 0xefce
leaq 0x8(%rsp), %rdi
callq 0xefce
movq %r12, %rax
addq $0x88, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
movq %rax, %rbx
leaq 0x60(%rsp), %rax
movq %rax, 0x20(%rsp)
jmp 0x2094f
movq %rax, %rbx
leaq 0x70(%rsp), %rdi
jmp 0x20954
movq %rax, %rbx
movq 0x20(%rsp), %rdi
callq 0xefce
jmp 0x2095e
movq %rax, %rbx
leaq 0x40(%rsp), %rdi
callq 0xefce
jmp 0x2097a
movq %rax, %rbx
leaq 0x80(%rsp), %rax
movq %rax, 0x28(%rsp)
movq 0x28(%rsp), %rdi
callq 0xefce
movq %rbx, %rdi
callq 0x7410