MCPcopy Create free account
hub / github.com/RedisGraph/RedisGraph / ArithmeticOp_ReverseOp

Function ArithmeticOp_ReverseOp

src/arithmetic/arithmetic_op.c:9–22  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

7#include "arithmetic_op.h"
8
9AST_Operator ArithmeticOp_ReverseOp(AST_Operator op) {
10 switch(op) {
11 case OP_LT:
12 return OP_GT;
13 case OP_LE:
14 return OP_GE;
15 case OP_GT:
16 return OP_LT;
17 case OP_GE:
18 return OP_LE;
19 default:
20 return op;
21 }
22}

Callers 2

_normalize_filterFunction · 0.85
_UseIdOptimizationFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected