* basic operation on PossibleValueSet: determine if a value is contained in the set field of PossibleValueSet */
| 238 | * basic operation on PossibleValueSet: determine if a value is contained in the set field of PossibleValueSet |
| 239 | */ |
| 240 | static bool |
| 241 | ContainsValue(PossibleValueSet *pvs, Const *value) |
| 242 | { |
| 243 | bool found = false; |
| 244 | |
| 245 | Assert(!pvs->isAnyValuePossible); |
| 246 | if (pvs->set != NULL) |
| 247 | hash_search(pvs->set, &value, HASH_FIND, &found); |
| 248 | return found; |
| 249 | } |
| 250 | |
| 251 | /** |
| 252 | * in-place union operation |
no test coverage detected