// File: /workspace/github_cpp_makefile_star2_O3/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, %r13
movq 0x18(%rsi), %rsi
movq (%rdx), %rax
movq %rax, 0x38(%rsp)
movq 0x8(%rdx), %rax
movq %rax, 0x40(%rsp)
testq %rax, %rax
je 0x2baec
movq 0x264ea(%rip), %rdx     # 0x51fc8
cmpb $0x0, (%rdx)
je 0x2bae8
incl 0x8(%rax)
jmp 0x2baec
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 0x2bb0c
callq 0x133fc
movq (%rsp), %rax
testq %rax, %rax
je 0x2bbbd
movq 0x28(%rbx), %r15
movq 0x30(%rbx), %r12
cmpq %r12, %r15
je 0x2bba0
movq %r14, 0x48(%rsp)
movq %rbx, 0x50(%rsp)
movq %r13, 0x20(%rsp)
movq %rsp, %rbp
movq (%r15), %rbx
movq 0x8(%r15), %r14
testq %r14, %r14
je 0x2bb5b
movq 0x2647d(%rip), %rax     # 0x51fc8
cmpb $0x0, (%rax)
je 0x2bb56
incl 0x8(%r14)
jmp 0x2bb5b
lock
incl 0x8(%r14)
leaq 0x10(%rsp), %rdi
movq %rbp, %rsi
callq 0x2b0ee
movq 0x10(%rsp), %r13
movq 0x18(%rsp), %rdi
testq %rdi, %rdi
je 0x2bb7c
callq 0x133fc
cmpq %r13, %rbx
je 0x2bbd6
testq %r14, %r14
je 0x2bb8e
movq %r14, %rdi
callq 0x133fc
addq $0x10, %r15
cmpq %r12, %r15
jne 0x2bb38
movq (%rsp), %rax
movq 0x20(%rsp), %r13
movq %rax, (%r13)
movq 0x8(%rsp), %rax
xorl %ecx, %ecx
movq %rcx, 0x8(%rsp)
movq %rax, 0x8(%r13)
movq %rcx, (%rsp)
jmp 0x2bdb6
xorl %eax, %eax
movq %rax, (%r13)
movq 0x8(%rsp), %rcx
movq %rax, 0x8(%rsp)
movq %rcx, 0x8(%r13)
jmp 0x2bdb6
movq 0x263f3(%rip), %rdi     # 0x51fd0
leaq 0x14330(%rip), %rsi     # 0x3ff14
movl $0x16, %edx
callq 0x72c0
movq 0x20(%rsp), %r13
movq 0x50(%rsp), %r15
movq 0x48(%rsp), %rax
movq (%rax), %rdi
movq 0x8(%rax), %r12
testq %r12, %r12
je 0x2bc22
movq 0x263b8(%rip), %rax     # 0x51fc8
cmpb $0x0, (%rax)
je 0x2bc1c
incl 0x8(%r12)
jmp 0x2bc22
lock
incl 0x8(%r12)
movq (%rdi), %rax
movq 0x263a4(%rip), %rsi     # 0x51fd0
callq *0x10(%rax)
leaq 0x142f5(%rip), %rsi     # 0x3ff2b
movl $0x8, %edx
movq %rax, %rdi
callq 0x72c0
testq %r12, %r12
je 0x2bc50
movq %r12, %rdi
callq 0x133fc
movq (%r15), %rax
movq 0x26376(%rip), %r12     # 0x51fd0
movq %r15, %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 0x2634f(%rip), %r12     # 0x51fd0
movq %r12, %rdi
callq 0x7030
movq %rax, %rdi
callq 0x7190
movq 0x18(%r15), %rsi
movq %rbx, 0x28(%rsp)
movq %r14, 0x30(%rsp)
testq %r14, %r14
je 0x2bcbb
movq 0x2631d(%rip), %rax     # 0x51fc8
cmpb $0x0, (%rax)
je 0x2bcb6
incl 0x8(%r14)
jmp 0x2bcbb
lock
incl 0x8(%r14)
movzbl 0x10(%r15), %ecx
movq (%rsi), %rax
leaq 0x10(%rsp), %rdi
leaq 0x28(%rsp), %rdx
callq *0x30(%rax)
movq 0x30(%rsp), %rdi
testq %rdi, %rdi
je 0x2bcdf
callq 0x133fc
cmpq $0x0, 0x10(%rsp)
je 0x2bd18
movq 0x262e2(%rip), %rdi     # 0x51fd0
leaq 0x1424e(%rip), %rsi     # 0x3ff43
movl $0xe, %edx
callq 0x72c0
movq 0x10(%rsp), %rdi
testq %rdi, %rdi
je 0x2bd26
movq (%rdi), %rax
movq 0x262bd(%rip), %rsi     # 0x51fd0
callq *0x10(%rax)
jmp 0x2bd3e
movl $0xe, %edx
leaq 0x14210(%rip), %rsi     # 0x3ff34
jmp 0x2bd32
movl $0xb, %edx
leaq 0x133c1(%rip), %rsi     # 0x3f0f3
movq 0x26297(%rip), %rdi     # 0x51fd0
callq 0x72c0
movq (%r12), %rax
addq -0x18(%rax), %r12
movq %r12, %rdi
movl $0xa, %esi
callq 0x7250
movsbl %al, %esi
movq 0x26273(%rip), %rdi     # 0x51fd0
callq 0x7030
movq %rax, %rdi
callq 0x7190
movq 0x26a5f(%rip), %rax     # 0x527d0
movq %rax, (%r13)
movq 0x26a5c(%rip), %rax     # 0x527d8
movq %rax, 0x8(%r13)
testq %rax, %rax
je 0x2bd9a
movq 0x2623c(%rip), %rcx     # 0x51fc8
cmpb $0x0, (%rcx)
je 0x2bd96
incl 0x8(%rax)
jmp 0x2bd9a
lock
incl 0x8(%rax)
movq 0x18(%rsp), %rdi
testq %rdi, %rdi
je 0x2bda9
callq 0x133fc
testq %r14, %r14
je 0x2bdb6
movq %r14, %rdi
callq 0x133fc
movq 0x8(%rsp), %rdi
testq %rdi, %rdi
je 0x2bdc5
callq 0x133fc
movq %r13, %rax
addq $0x58, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
movq %rax, %rbx
movq 0x30(%rsp), %rdi
jmp 0x2bdf6
movq %rax, %rbx
testq %r12, %r12
je 0x2be05
movq %r12, %rdi
jmp 0x2bdfb
movq %rax, %rbx
movq 0x18(%rsp), %rdi
testq %rdi, %rdi
je 0x2be05
callq 0x133fc
jmp 0x2be05
movq %rax, %rbx
testq %r14, %r14
je 0x2be12
movq %r14, %rdi
callq 0x133fc
movq 0x8(%rsp), %rdi
jmp 0x2be21
movq %rax, %rbx
movq 0x40(%rsp), %rdi
testq %rdi, %rdi
je 0x2be2b
callq 0x133fc
movq %rbx, %rdi
callq 0x7430
nop