ROSE  0.11.145.0
genericDataflowCommon.h
1 #include <featureTests.h>
2 #ifdef ROSE_ENABLE_SOURCE_ANALYSIS
3 
4 #ifndef ROSE_GENERIC_DATAFLOW_COMMON_H
5 #define ROSE_GENERIC_DATAFLOW_COMMON_H
6 
7 #include <sage3basic.h>
8 #include <list>
9 #include <map>
10 #include <set>
11 #include <vector>
12 #include <string>
13 #include <iostream>
14 #include <sstream>
15 
16 #include "AnalysisDebuggingUtils.h"
17 
18 using std::list;
19 using std::map;
20 using std::pair;
21 using std::make_pair;
22 using std::set;
23 using std::vector;
24 using std::string;
25 using std::ostream;
26 using std::ofstream;
27 using std::stringstream;
28 using std::ostringstream;
29 using std::endl;
30 using std::cout;
31 using std::cerr;
32 
33 
34 using namespace VirtualCFG;
35 
36 const int ZERO = 0;
37 //const int SPECIAL = 1;
38 const int INF = 10101010;
39 const std::string ZEROStr = "0";
40 //const std::string SPECIALStr = "$";
41 
42 inline bool XOR(bool x, bool y) { return x != y; }
43 
44 #define SgDefaultFile Sg_File_Info::generateDefaultFileInfoForTransformationNode()
45 
46 /* #############################
47  ######### T Y P E S #########
48  ############################# */
49 
50 
51 #if !defined(__sun)
52 typedef long long quad;
53 #endif
54 //typedef quad variable;
55 
56 typedef std::map<quad, quad> m_quad2quad;
57 typedef std::map<quad, std::string> m_quad2str;
58 typedef std::map<quad, m_quad2quad> m_quad2map;
59 typedef std::pair<quad, quad> quadpair;
60 typedef std::list<quad> quadlist;
61 typedef std::map<quad, quadpair> m_quad2quadpair;
62 typedef std::map<quad, bool> m_quad2bool;
63 
64 #endif
65 #endif