MCPcopy Create free account
hub / github.com/DeusData/codebase-memory-mcp / eval_condition_partial

Function eval_condition_partial

src/cypher/cypher.c:2904–2909  ·  view source on GitHub ↗

A condition whose alias is not bound yet is UNKNOWN; a literal-only LHS * (func condition with no variable arg) has nothing to wait for. */

Source from the content-addressed store, hash-verified

2902/* A condition whose alias is not bound yet is UNKNOWN; a literal-only LHS
2903 * (func condition with no variable arg) has nothing to wait for. */
2904static cyp_partial_t eval_condition_partial(const cbm_condition_t *c, binding_t *b) {
2905 if (c->variable && !binding_get(b, c->variable) && !binding_get_edge(b, c->variable)) {
2906 return CYP_PARTIAL_UNKNOWN;
2907 }
2908 return eval_condition(c, b) ? CYP_PARTIAL_TRUE : CYP_PARTIAL_FALSE;
2909}
2910
2911static cyp_partial_t partial_xor(cyp_partial_t l, cyp_partial_t r) {
2912 if (l == CYP_PARTIAL_UNKNOWN || r == CYP_PARTIAL_UNKNOWN) {

Callers 2

eval_expr_partialFunction · 0.85
eval_where_partialFunction · 0.85

Calls 3

binding_getFunction · 0.85
binding_get_edgeFunction · 0.85
eval_conditionFunction · 0.85

Tested by

no test coverage detected