// File: /workspace/github_cpp_makefile_star2_O1/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 $0x58, %rsp
movq %rdx, %r14
movq %rsi, %rbx
movq %rdi, %r15
movq 0x18(%rsi), %rsi
movq (%rdx), %rax
movq %rax, 0x38(%rsp)
movq 0x8(%rdx), %rax
movq %rax, 0x40(%rsp)
testq %rax, %rax
je 0x2ba44
movq 0x27592(%rip), %rdx     # 0x52fc8
cmpb $0x0, (%rdx)
je 0x2ba40
incl 0x8(%rax)
jmp 0x2ba44
lock
incl 0x8(%rax)
movq (%rsi), %rax
movzbl %cl, %ecx
movq %rsp, %rdi
leaq 0x38(%rsp), %rdx
callq *0x30(%rax)
movq 0x40(%rsp), %rdi
testq %rdi, %rdi
je 0x2ba64
callq 0x13308
movq (%rsp), %rax
testq %rax, %rax
je 0x2baf8
movq %r14, 0x48(%rsp)
movq %r15, 0x20(%rsp)
movq 0x28(%rbx), %r15
movq %rbx, 0x50(%rsp)
movq 0x30(%rbx), %r12
cmpq %r12, %r15
je 0x2baef
movq %rsp, %rbp
movq (%r15), %rbx
movq 0x8(%r15), %r14
testq %r14, %r14
je 0x2bab3
movq 0x27525(%rip), %rax     # 0x52fc8
cmpb $0x0, (%rax)
je 0x2baae
incl 0x8(%r14)
jmp 0x2bab3
lock
incl 0x8(%r14)
leaq 0x10(%rsp), %rdi
movq %rbp, %rsi
callq 0x2afc4
movq 0x10(%rsp), %r13
movq 0x18(%rsp), %rdi
testq %rdi, %rdi
je 0x2bad4
callq 0x13308
cmpq %r13, %rbx
je 0x2bb34
testq %r14, %r14
je 0x2bae6
movq %r14, %rdi
callq 0x13308
addq $0x10, %r15
cmpq %r12, %r15
jne 0x2ba90
movq (%rsp), %rax
movq 0x20(%rsp), %r15
movq %rax, (%r15)
xorl %eax, %eax
movq %rax, 0x8(%r15)
movq 0x8(%rsp), %rcx
movq %rax, 0x8(%rsp)
movq %rcx, 0x8(%r15)
movq %rax, (%rsp)
movq 0x8(%rsp), %rdi
testq %rdi, %rdi
je 0x2bb22
callq 0x13308
movq %r15, %rax
addq $0x58, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
movq 0x27495(%rip), %rdi     # 0x52fd0
leaq 0x153d2(%rip), %rsi     # 0x40f14
movl $0x16, %edx
callq 0x72c0
movq 0x20(%rsp), %r15
movq 0x50(%rsp), %r13
movq 0x48(%rsp), %rax
movq (%rax), %rdi
movq 0x8(%rax), %r12
testq %r12, %r12
je 0x2bb80
movq 0x2745a(%rip), %rax     # 0x52fc8
cmpb $0x0, (%rax)
je 0x2bb7a
incl 0x8(%r12)
jmp 0x2bb80
lock
incl 0x8(%r12)
movq (%rdi), %rax
movq 0x27446(%rip), %rsi     # 0x52fd0
callq *0x10(%rax)
leaq 0x15397(%rip), %rsi     # 0x40f2b
movl $0x8, %edx
movq %rax, %rdi
callq 0x72c0
testq %r12, %r12
je 0x2bbae
movq %r12, %rdi
callq 0x13308
movq (%r13), %rax
movq 0x27417(%rip), %r12     # 0x52fd0
movq %r13, %rdi
movq %r12, %rsi
callq *(%rax)
movq (%r12), %rax
addq -0x18(%rax), %r12
movq %r12, %rdi
movl $0xa, %esi
callq 0x7250
movsbl %al, %esi
movq 0x273f0(%rip), %r12     # 0x52fd0
movq %r12, %rdi
callq 0x7030
movq %rax, %rdi
callq 0x7190
movq 0x18(%r13), %rsi
movq %rbx, 0x28(%rsp)
movq %r14, 0x30(%rsp)
testq %r14, %r14
je 0x2bc1a
movq 0x273be(%rip), %rax     # 0x52fc8
cmpb $0x0, (%rax)
je 0x2bc15
incl 0x8(%r14)
jmp 0x2bc1a
lock
incl 0x8(%r14)
movzbl 0x10(%r13), %ecx
movq (%rsi), %rax
leaq 0x10(%rsp), %rdi
leaq 0x28(%rsp), %rdx
callq *0x30(%rax)
movq 0x30(%rsp), %rdi
testq %rdi, %rdi
je 0x2bc3e
callq 0x13308
cmpq $0x0, 0x10(%rsp)
je 0x2bc77
movq 0x27383(%rip), %rdi     # 0x52fd0
leaq 0x152ef(%rip), %rsi     # 0x40f43
movl $0xe, %edx
callq 0x72c0
movq 0x10(%rsp), %rdi
testq %rdi, %rdi
je 0x2bc85
movq (%rdi), %rax
movq 0x2735e(%rip), %rsi     # 0x52fd0
callq *0x10(%rax)
jmp 0x2bc9d
movl $0xe, %edx
leaq 0x152b1(%rip), %rsi     # 0x40f34
jmp 0x2bc91
movl $0xb, %edx
leaq 0x14462(%rip), %rsi     # 0x400f3
movq 0x27338(%rip), %rdi     # 0x52fd0
callq 0x72c0
movq (%r12), %rax
addq -0x18(%rax), %r12
movq %r12, %rdi
movl $0xa, %esi
callq 0x7250
movsbl %al, %esi
movq 0x27314(%rip), %rdi     # 0x52fd0
callq 0x7030
movq %rax, %rdi
callq 0x7190
movq 0x27b00(%rip), %rax     # 0x537d0
movq %rax, (%r15)
movq 0x27afe(%rip), %rax     # 0x537d8
movq %rax, 0x8(%r15)
testq %rax, %rax
je 0x2bcf8
movq 0x272de(%rip), %rcx     # 0x52fc8
cmpb $0x0, (%rcx)
je 0x2bcf4
incl 0x8(%rax)
jmp 0x2bcf8
lock
incl 0x8(%rax)
movq 0x18(%rsp), %rdi
testq %rdi, %rdi
je 0x2bd07
callq 0x13308
testq %r14, %r14
je 0x2bb13
movq %r14, %rdi
callq 0x13308
jmp 0x2bb13
movq %rax, %rbx
movq 0x30(%rsp), %rdi
jmp 0x2bd3c
movq %rax, %rbx
testq %r12, %r12
je 0x2bd4b
movq %r12, %rdi
jmp 0x2bd41
movq %rax, %rbx
movq 0x18(%rsp), %rdi
testq %rdi, %rdi
je 0x2bd4b
callq 0x13308
jmp 0x2bd4b
movq %rax, %rbx
testq %r14, %r14
je 0x2bd58
movq %r14, %rdi
callq 0x13308
movq 0x8(%rsp), %rdi
jmp 0x2bd67
movq %rax, %rbx
movq 0x40(%rsp), %rdi
testq %rdi, %rdi
je 0x2bd71
callq 0x13308
movq %rbx, %rdi
callq 0x7430
nop