Metakit / @doeixd/metakit/conformance
checkOpLowerings
function · packages/metakit/src/conformanceLowerings.ts:294
function checkOpLowerings(
op: Node.Op,
options: LoweringOptions,
): Promise<LoweringReport>Hold one operator's SQL lowerings and the solver to evaluation over the
awkward operands checkOpSoundness draws, at most samples choices of
them for each reader. A SQL reader runs the call's value and, for a
boolean, a WHERE: each must be what evaluation gave, a refusal NULL or
an error. The solver is given the fields pinned to their values and a claim
evaluation refutes; proving it fails the check. It is also given, beside the
pins, the claim that the call is what evaluation gave, and must not prove
that nothing keeps them. A lowering may refuse a call and the solver may
leave one undecided: neither counts as an answer.