1 #include "simple_API.h" 17 size_t in_degree_var_4,
Edge* var_4_1_inEdges)
19 unsigned localCounter = 0;
21 var_5 = var_4_1_inEdges[i_var_5].
property;
23 var_1 = var_4_1_inEdges[i_var_5].
node;
24 int cond_level_2 = (var_5 == p_var_5);
30 for(i_var_9 = 0; i_var_9 < in_degree_var_1; i_var_9++)
33 var_9 = var_1_3_inEdges[i_var_9].
property;
35 var_8 = var_1_3_inEdges[i_var_9].
node;
36 int cond_level_4 = (var_9 == p_var_9);
42 for(i_var_11 = 0; i_var_11 < out_degree_var_8; i_var_11++)
45 var_11 = var_8_5_outEdges[i_var_11].
property;
47 var_10 = var_8_5_outEdges[i_var_11].
node;
48 int cond_level_6 = ((var_11 == p_var_11) & (var_10 == p_var_10));
54 for(i_var_3 = 0; i_var_3 < out_degree_var_1; i_var_3++)
57 var_3 = var_1_7_outEdges[i_var_3].
property;
59 var_2 = var_1_7_outEdges[i_var_3].
node;
60 int cond_level_8 = (var_3 == p_var_3);
66 for(i_var_12 = 0; i_var_12 < in_degree_var_2; i_var_12++)
69 var_12 = var_2_9_inEdges[i_var_12].
property;
71 var_8_10 = var_2_9_inEdges[i_var_12].
node;
72 int cond_level_10 = ((var_12 == p_var_12) & (var_8_10 == var_8));
78 for(i_var_7 = 0; i_var_7 < out_degree_var_2; i_var_7++)
81 var_7 = var_2_11_outEdges[i_var_7].
property;
83 var_6 = var_2_11_outEdges[i_var_7].
node;
84 int cond_level_12 = ((var_7 == p_var_7) & (var_6 == p_var_6));
106 Edge* var_4_1_inEdges)
109 #pragma omp parallel for 110 for(i_var_5 = 0; i_var_5 < in_degree_var_4; i_var_5++)
112 kernel(i_var_5, graph, var_4, p_var_3, p_var_5, p_var_6, p_var_7, p_var_9, p_var_10, p_var_11, p_var_12,
113 in_degree_var_4, var_4_1_inEdges);
121 size_t in_degree_var_4 =
getInDegree(graph, var_4);
123 printf(
"In degree %d\n", in_degree_var_4);
127 parallel(graph, var_4, p_var_3, p_var_5, p_var_6, p_var_7, p_var_9, p_var_10, p_var_11, p_var_12, in_degree_var_4,
138 #if defined(DATASETInVertexFile) && defined(DATASETOutVertexFile) && defined(DATASETInEdgeFile) && \ 139 defined(DATASETOutEdgeFile) 140 loadGraph(DATASETInVertexFile, DATASETOutVertexFile, DATASETInEdgeFile, DATASETOutEdgeFile);
144 loadGraph(
"dataset/1-InVertexFile.bin",
"dataset/1-OutVertexFile.bin",
"dataset/1-InEdgeFile.bin",
145 "dataset/1-OutEdgeFile.bin");
157 int ret_value = search(&
TheGraph, var_4, p_var_3, p_var_5, p_var_6, p_var_7, p_var_9, p_var_10, p_var_11, p_var_12);
159 printf(
"%d\n", ret_value);
167 return test(6764, 9, 10, 2473, 10, 1, 25273, 10, 7) != 30;
int test(NodeId var_4, PropertyId p_var_3, PropertyId p_var_5, PropertyId p_var_6, PropertyId p_var_7, PropertyId p_var_9, PropertyId p_var_10, PropertyId p_var_11, PropertyId p_var_12)
static Edge * getInEdges(Graph *graph, NodeId node)
static size_t getInDegree(Graph *graph, NodeId node)
static Edge * getOutEdges(Graph *graph, NodeId node)
__attribute__((noinline))
Convert the given fixedpt number to a decimal string.
void kernel(unsigned vertex, unsigned *p_Qnext, unsigned *Qnext_N, unsigned *map)
General class used to describe a graph in PandA.
static size_t getOutDegree(Graph *graph, NodeId node)
void loadGraph(char *InVertexFileName, char *OutVertexFileName, char *InEdgeFileName, char *OutEdgeFileName)
unsigned counter[N_THREADS]