source: vis_dev/sharpSAT/src/src_sharpSAT/Basics.h @ 104

Last change on this file since 104 was 9, checked in by cecile, 13 years ago

add sharpSat

File size: 1.1 KB
Line 
1#ifndef _BASICS_H
2#define _BASICS_H
3
4
5#include<vector>
6#include<cstdlib>
7#include<iostream>
8
9using namespace std;
10
11
12class CSolverConf 
13{
14public:
15  static bool analyzeConflicts;
16  static bool doNonChronBackTracking;
17   
18  static bool quietMode;
19 
20  static bool allowComponentCaching;
21  static bool allowImplicitBCP;
22 
23  static bool allowPreProcessing;
24 
25  static unsigned int secsTimeBound;   
26 
27  static unsigned int maxCacheSize;   // maximum Cache Size in bytes
28
29  static bool count;
30
31  CSolverConf();
32
33  ~CSolverConf();
34
35};
36
37#ifdef COMPILE_FOR_GUI
38        #define toSTDOUT(X);
39#else
40        #define toSTDOUT(X)     if(!CSolverConf::quietMode) cout << X;
41#endif
42
43
44#ifdef COMPILE_FOR_GUI
45        #define toERROUT(X);
46#else
47        #define toERROUT(X)     if(!CSolverConf::quietMode) cout << X;
48#endif
49 
50#ifdef DEBUG
51        #define toDEBUGOUT(X) if(!CSolverConf::quietMode) cout << X;
52#else
53        #define toDEBUGOUT(X); 
54#endif
55 
56
57enum SOLVER_StateT{
58
59 SUCCESS,
60 TIMEOUT,
61 ABORTED
62}; 
63 
64enum TriValue{
65
66 F = 0,
67 W = 1,
68 X = 2
69 };
70 
71
72 
73extern char TriValuetoChar(TriValue v);
74#endif
Note: See TracBrowser for help on using the repository browser.