-Set *getElementSet(Element *This) {
- switch (This->type) {
- case ELEMSET:
- return ((ElementSet *)This)->set;
- case ELEMCONST:
- return ((ElementConst *)This)->set;
- case ELEMFUNCRETURN: {
- Function *func = ((ElementFunction *)This)->function;
- return func->getRange();
- }
- default:
- ASSERT(0);
- }
- ASSERT(0);
- return NULL;
-}
-