| 1024 | namespace { |
| 1025 | |
| 1026 | bool IsBinaryAssociativeCommutative(const Expression::Call& call) { |
| 1027 | static std::unordered_set<std::string> binary_associative_commutative{ |
| 1028 | "and", "or", "and_kleene", "or_kleene", "xor", |
| 1029 | "multiply", "add", "multiply_checked", "add_checked"}; |
| 1030 | |
| 1031 | auto it = binary_associative_commutative.find(call.function_name); |
| 1032 | return it != binary_associative_commutative.end(); |
| 1033 | } |
| 1034 | |
| 1035 | Result<Expression> HandleInconsistentTypes(Expression::Call call, |
| 1036 | compute::ExecContext* exec_context) { |
no test coverage detected