int main() { initialize(); test_if(); report_and_exit(); return 0; }
std::ostream& operator<< (std::ostream& os, const ComponentType& type) { switch(type) { case REG: os << "REG"; break; case ADD32: os << "ADD32"; break; case SUB32: os << "SUB32"; break; case MUL32: os << "MUL32"; break; case COMPGT: os << "COMPGT"; break; case COMPLT: os << "COMPLT"; break; case COMPEQ: os << "COMPEQ"; break; case MUX2x1: os << "MUX2x1"; break; case SHR: os << "SHR"; break; case SHL: os << "SHL"; break; default: report_and_exit("This is not a valid Component Type."); } return os; }