-
Notifications
You must be signed in to change notification settings - Fork 1
/
function4_R.hpp
53 lines (30 loc) · 2.15 KB
/
function4_R.hpp
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
//
// function4_R.hpp
// 6Tree
//
// Created by Zhizhu Liu on 2019/12/12.
//
#ifndef function4_R_hpp
#define function4_R_hpp
using namespace std;
struct SequenceNode *f4_network_feedback(struct RegionTreeNode **regn_forest, int regn_tree_num, struct SequenceNode *xi_h, int active_addr_num);
int f4_network_scan_feedback(struct SequenceNode *&xi_h, int &budget, ofstream &addr_total_res, ofstream &scan_log);
double f4_calc_thd(struct PreparedSpaceTreeNode *node, double adet_zeta, double adet_pi, int dimensionality);
int f4_calc_TSscale(struct PreparedSpaceTreeNode *node);
bool f4_is_potential(struct PreparedSpaceTreeNode *node, double adet_zeta, double adet_pi, int dimensionality);
struct SequenceNode *f4_takeout_pnode(struct SequenceNode *&xi_h, double adet_zeta, double adet_pi);
string *f4_psurdgen_targets(struct VectorRegion TS, int l_dimension, int ptimes, int &targets_num);
int f4_get_lastdimension(struct DimenStack DS);
int f4_adet_scan_feedback(string *targets, int targets_num, int &budget, ofstream &scan_log);
void f4_adet_replace_descendant(struct SequenceNode *&pnode, struct SequenceNode *&xi, struct SequenceNode *&xi_h);
void f4_insert(struct SequenceNode *&xi, struct SequenceNode *pnode);
void f4_set_aliased(struct PreparedSpaceTreeNode *ptr);
int f4_pnode_analysis(struct SequenceNode *pnode, struct SequenceNode *&xi, struct SequenceNode *&xi_h, int &budget, struct AdetParameters adet_ps, ofstream &addr_total_res, ofstream &scan_log, ofstream &ali_file);
int f4_alias_detection(struct SequenceNode *&xi, struct SequenceNode *&xi_h, int &budget, struct AdetParameters adet_ps, ofstream &addr_total_res, ofstream &scan_log, ofstream &ali_file);
void f4_read_search_parameters(int &budget, int &itn_budget, struct AdetParameters &adet_ps, string treedir_name);
void f4_output_iris(ofstream &iris_res, int node_num, struct PreparedSpaceTreeNode *root);
bool f4_is_aliased(string addr, struct PreparedSpaceTreeNode *root);
void f4_output_da_addrs(ifstream &total, ofstream &da, struct PreparedSpaceTreeNode *root);
void f4_work(int type1, string str2, int type3, string str4);
void f4_access(int argc, const char *argv[]);
#endif /* function4_R_hpp */