-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathmain.cpp
More file actions
executable file
·65 lines (49 loc) · 1.16 KB
/
main.cpp
File metadata and controls
executable file
·65 lines (49 loc) · 1.16 KB
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
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
/**
* @file SemOpt.cpp
* @brief Main file
* @author Federico Cerutti <f.cerutti@abdn.ac.uk> and
* Mauro Vallati <m.vallati@hud.ac.uk>
* @copyright GNU Public License v2
*/
#include "semopt.h"
#include <time.h>
/**
* @brief Configuration variables
*/
bool debug = false;
bool externalsat = true;
string satsolver;
int labellingconditions = 0;
bool manualopt = false;
string inputfile;
string semantics;
time_t start;
#ifndef UNIT_TEST
int main(int argc, char *argv[]){
//debug = true; // more verbose
debug=false;
inputfile = string("test-input/test5-large.dl");
AF gamma = AF();
if (!gamma.readFile(inputfile))
{
cout << "no input file"<<endl;
return EXIT_FAILURE;
}
SetArguments *A = new SetArguments();
*A=SetArguments(*gamma.get_arguments());
set<SetArguments*> res;
vector<OI_pair> OI_pairs = vector<OI_pair>();
clock_t t;
t=clock();
res=pref(gamma,*A, &OI_pairs);
t=clock()-t;
float T = float(t)/CLOCKS_PER_SEC;
cout<<"---------------fine:"<<T<<endl;
cout <<"risultati: "<<endl;
set<SetArguments*> :: iterator kt;
for( kt = res.begin(); kt != res.end(); kt++ ){
cout << **kt << endl;
}
return EXIT_SUCCESS;
}
#endif