-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathPreferred.h
44 lines (37 loc) · 889 Bytes
/
Preferred.h
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
42
43
44
/*
* Preferred.h
*
* Created on: 10 Jun 2013
* Author: geryo
*/
#ifndef PREFERRED_H_
#define PREFERRED_H_
#include "Labelling.h"
#include "SetArguments.h"
#include <vector>
#include "AF.h"
#include "SATFormulae.h"
#include <iostream>
#include <sstream>
using namespace std;
int precosat_lib(stringstream *the_cnf, int num_var, int num_cl, vector<int> *result);
extern bool debug;
class Preferred
{
SetArguments *A; //!< @brief the set of arguments A
SetArguments *C; //!< @brief the set of arguments C
int encoding;
SATFormulae sat_new_pigreek;
vector<Labelling> labellings;
int compute_new_pigreek();
bool satlab(SATFormulae, Labelling *);
void cleanlabs();
public:
typedef vector<Labelling>::iterator iterator;
Preferred();
virtual ~Preferred();
void prefSAT(SetArguments *, SetArguments *);
iterator begin();
iterator end();
};
#endif /* PREFERRED_H_ */