MCPcopy Create free account
hub / github.com/cortex-js/compute-engine / evaluateNot

Function evaluateNot

src/compute-engine/symbolic/logic-utils.ts:222–230  ·  view source on GitHub ↗
(
  args: ReadonlyArray<Expression>,
  { engine: ce }: { engine: ComputeEngine }
)

Source from the content-addressed store, hash-verified

220 }
221 return true;
222}
223
224export function evaluateAnd(
225 args: ReadonlyArray<Expression>,
226 { engine: ce }: { engine: ComputeEngine }
227): Expression | undefined {
228 if (args.length === 0) return ce.True;
229 args = absentAsFalse(flattenSame(args, 'And'), ce);
230 const ops: Expression[] = [];
231 for (let arg of args) {
232 // Check if an Or operand is a tautology (contains A and Not(A))
233 // For example: Or(A, Not(A)) -> True, and And(..., True, ...) simplifies

Callers

nothing calls this directly

Calls 1

symFunction · 0.90

Tested by

no test coverage detected