-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathSearchingMethod.h
74 lines (57 loc) · 1.55 KB
/
SearchingMethod.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
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
#include "rose.h"
#include "string"
using namespace std;
class persistantAttribute : public AstAttribute{
public:
vector<int> value;
persistantAttribute (vector<int> v): value(v){}
vector<int> get_value() const{
return value;
}
void set_value(vector<int> V){
value = V;
}
};
class AttributeSetter: public AstSimpleProcessing{
public:
virtual void visit(SgNode* n);
void setter(SgNode* n);
AttributeSetter(string filename);
private:
vector<string> InitUQVarName;
vector<string> InitUQFuncName;
};
class FuncPreProcess: public AstSimpleProcessing{
public:
vector<string> UQName;
public:
virtual void visit(SgNode* n);
FuncPreProcess(vector<string> input);
};
class subvisitorTraversal : public AstSimpleProcessing{
public:
virtual void visit(SgNode* n);
subvisitorTraversal();
virtual void atTraversalEnd();
};
class FortranFunctionTraversal : public AstSimpleProcessing{
public:
vector<int> OutputUQType;
bool OutputContainsUQ;
public:
virtual void visit(SgNode* n);
virtual void atTraversalEnd();
FortranFunctionTraversal(SgFunctionCallExp* FuncCall);
private:
SgFunctionCallExp* FunctionCall;
SgName OutputName;
};
class readAttribute: public AstSimpleProcessing{
public:
virtual void visit(SgNode* node);
};
class persistantAttributeFunc: public AstAttribute{
public:
int value;
persistantAttributeFunc (int v): value(v){}
};