/** * Reads DIMACS CNF. * @param is input stream to read. */ void load(std::istream& is) { readDimacs(is); sortClauses(); }
bool Formula::readDimacs(const string &filename) { std::ifstream is(filename); return is.is_open() && readDimacs(is); }
bool Formula::readDimacs(const string &filename) { std::ifstream is(filename); if (!is.is_open()) return false; return readDimacs(is); }