// File: eryxcc[P]lois/src/formula.cpp
// Function: lois::FormulaBi::valueKnown(std::shared_ptr<lois::Variable>, bool)
term valueKnown(vptr v, bool negated) { 
    // non-negated: AND => at least one
    if(negated == type) {
      // OR: both need the same value
      term v1 = left->valueKnown(v, negated);
      term v2 = right->valueKnown(v, negated);
      if(v1.p == v2.p) return v1;
      return nullterm;
      }
    else {
      term v1 = left->valueKnown(v, negated);
      if(v1.p) return v1;
      return right->valueKnown(v, negated);
      }
    }

// Assembly:
pushq %rbp
movq %rsp, %rbp
subq $0x110, %rsp            # imm = 0x110
movq %rdx, -0xc8(%rbp)
movq %rdi, -0xc0(%rbp)
movb %cl, %al
movq %rdi, %rcx
movq %rcx, -0xb8(%rbp)
movq %rdi, -0x8(%rbp)
movq %rsi, -0x10(%rbp)
movq %rdx, -0x18(%rbp)
andb $0x1, %al
movb %al, -0x19(%rbp)
movq -0x10(%rbp), %rcx
movq %rcx, -0xb0(%rbp)
movb -0x19(%rbp), %al
andb $0x1, %al
movzbl %al, %eax
movb 0x10(%rcx), %cl
andb $0x1, %cl
movzbl %cl, %ecx
cmpl %ecx, %eax
jne 0x4c7aa
movq -0xb0(%rbp), %rdi
addq $0x18, %rdi
callq 0x3ece0
movq -0xc8(%rbp), %rsi
movq %rax, -0xd8(%rbp)
leaq -0x40(%rbp), %rdi
movq %rdi, -0xd0(%rbp)
callq 0x1b100
movq -0xd8(%rbp), %rsi
movq -0xd0(%rbp), %rdx
movq (%rsi), %rax
movq 0x30(%rax), %rax
movzbl -0x19(%rbp), %ecx
andl $0x1, %ecx
leaq -0x30(%rbp), %rdi
callq *%rax
jmp 0x4c6ac
leaq -0x40(%rbp), %rdi
callq 0x10f20
movq -0xb0(%rbp), %rdi
addq $0x28, %rdi
callq 0x3ece0
movq -0xc8(%rbp), %rsi
movq %rax, -0xe8(%rbp)
leaq -0x70(%rbp), %rdi
movq %rdi, -0xe0(%rbp)
callq 0x1b100
movq -0xe8(%rbp), %rsi
movq -0xe0(%rbp), %rdx
movq (%rsi), %rax
movq 0x30(%rax), %rax
movzbl -0x19(%rbp), %ecx
andl $0x1, %ecx
leaq -0x60(%rbp), %rdi
callq *%rax
jmp 0x4c707
leaq -0x70(%rbp), %rdi
callq 0x10f20
leaq -0x30(%rbp), %rdi
leaq -0x60(%rbp), %rsi
callq 0x4d050
testb $0x1, %al
jne 0x4c723
jmp 0x4c779
movq -0xc0(%rbp), %rdi
leaq -0x30(%rbp), %rsi
callq 0x215e0
movl $0x1, -0x74(%rbp)
jmp 0x4c793
movq %rax, %rcx
movl %edx, %eax
movq %rcx, -0x48(%rbp)
movl %eax, -0x4c(%rbp)
leaq -0x40(%rbp), %rdi
callq 0x10f20
jmp 0x4c90b
movq %rax, %rcx
movl %edx, %eax
movq %rcx, -0x48(%rbp)
movl %eax, -0x4c(%rbp)
leaq -0x70(%rbp), %rdi
callq 0x10f20
leaq -0x30(%rbp), %rdi
callq 0x11360
jmp 0x4c90b
movq -0xc0(%rbp), %rdi
leaq 0x590c9(%rip), %rsi     # 0xa5850
callq 0x11800
movl $0x1, -0x74(%rbp)
leaq -0x60(%rbp), %rdi
callq 0x11360
leaq -0x30(%rbp), %rdi
callq 0x11360
jmp 0x4c8fb
movq -0xb0(%rbp), %rdi
addq $0x18, %rdi
callq 0x3ece0
movq -0xc8(%rbp), %rsi
movq %rax, -0xf8(%rbp)
leaq -0x98(%rbp), %rdi
movq %rdi, -0xf0(%rbp)
callq 0x1b100
movq -0xf8(%rbp), %rsi
movq -0xf0(%rbp), %rdx
movq (%rsi), %rax
movq 0x30(%rax), %rax
movzbl -0x19(%rbp), %ecx
andl $0x1, %ecx
leaq -0x88(%rbp), %rdi
callq *%rax
jmp 0x4c802
leaq -0x98(%rbp), %rdi
callq 0x10f20
leaq -0x88(%rbp), %rdi
callq 0x14bb0
testb $0x1, %al
jne 0x4c820
jmp 0x4c85c
movq -0xc0(%rbp), %rdi
leaq -0x88(%rbp), %rsi
callq 0x215e0
movl $0x1, -0x74(%rbp)
jmp 0x4c8ef
movq %rax, %rcx
movl %edx, %eax
movq %rcx, -0x48(%rbp)
movl %eax, -0x4c(%rbp)
leaq -0x98(%rbp), %rdi
callq 0x10f20
jmp 0x4c90b
movq -0xb0(%rbp), %rdi
addq $0x28, %rdi
callq 0x3ece0
movq -0xc8(%rbp), %rsi
movq %rax, -0x108(%rbp)
leaq -0xa8(%rbp), %rdi
movq %rdi, -0x100(%rbp)
callq 0x1b100
movq -0xc0(%rbp), %rdi
movq -0x108(%rbp), %rsi
movq -0x100(%rbp), %rdx
movq (%rsi), %rax
movq 0x30(%rax), %rax
movzbl -0x19(%rbp), %ecx
andl $0x1, %ecx
callq *%rax
jmp 0x4c8b4
leaq -0xa8(%rbp), %rdi
callq 0x10f20
movl $0x1, -0x74(%rbp)
jmp 0x4c8ef
movq %rax, %rcx
movl %edx, %eax
movq %rcx, -0x48(%rbp)
movl %eax, -0x4c(%rbp)
leaq -0xa8(%rbp), %rdi
callq 0x10f20
leaq -0x88(%rbp), %rdi
callq 0x11360
jmp 0x4c90b
leaq -0x88(%rbp), %rdi
callq 0x11360
movq -0xb8(%rbp), %rax
addq $0x110, %rsp            # imm = 0x110
popq %rbp
retq
movq -0x48(%rbp), %rdi
callq 0x84d0
nopw %cs:(%rax,%rax)
nop