-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathdriver.hpp
More file actions
41 lines (30 loc) · 982 Bytes
/
driver.hpp
File metadata and controls
41 lines (30 loc) · 982 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
// ----------------------------------------------------------------------------
// Header file for the driver class. driver.hpp
// Created by Ferhat Erata <ferhat.erata@yale.edu> on November 26, 2019.
// Copyright (c) 2019 Yale University. All rights reserved.
// -----------------------------------------------------------------------------
#ifndef MICROSAT_DRIVER_HPP
#define MICROSAT_DRIVER_HPP
// Use -DDEBUG on the g++ command line to build the debug version
#ifdef DEBUG
#define P(a) cout << a;
#else
// alternative way to define them:
#define DEBUG 0
#define P(a)
#endif
#include "solver.hpp"
#include <utility>
namespace microsat {
class driver {
private:
const std::string filename;
bool stats;
std::unique_ptr<Solver> solver = nullptr;
int parse();
public:
explicit driver(std::string file, bool stats = false);
static void instructions();
};
} // namespace microsat
#endif // MICROSAT_DRIVER_HPP