-
Notifications
You must be signed in to change notification settings - Fork 0
/
main.cpp
55 lines (40 loc) · 909 Bytes
/
main.cpp
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
#include "Global.h"
using namespace std;
using namespace reading;
default_random_engine rndGen;
mutex io_mutex;
mutex ct_mutex;
mutex rd_mutex;
condition_variable cv;
mutex mtx;
unique_lock<mutex> lck(mtx);
void testSet()
{
unordered_set<int> set;
set.insert(1);
set.insert(2);
set.insert(1);
for (auto &i: set)
cout << i << endl;
}
int main (int argc, char ** argv)
{
ifstream input;
cout << "zero: " << argv[0] << endl;
cout << "one: " << argv[1] << endl;
input.open(argv[1]);
MemReader reader(&input);
//cout << "### READER TEST ###" << endl;
reader.readDump();
//reader.printTest();
cout << endl;
//cout << "### DepAnalyst TEST ###" << endl;
HashDepAnalyst al(&reader.calls);
al.solveDeps();
//al.printCallDeps();
cout << "### Execution Simulation TEST ###" << endl;
al.simulateExecution(1000000000);
//cout << "### SET TESET ###" << endl;
//testSet();
return 0;
}