You cannot select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
18 lines
312 B
C++
18 lines
312 B
C++
#pragma once
|
|
|
|
#include <string>
|
|
#include <vector>
|
|
|
|
using Clause = std::vector<int>;
|
|
|
|
class CNF {
|
|
public:
|
|
long n = 0;
|
|
std::vector<Clause> clauses;
|
|
|
|
virtual ~CNF() = default;
|
|
|
|
virtual bool write_dimacs(const std::string& filename) const;
|
|
static CNF read_dimacs(const std::string& filename);
|
|
};
|