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_2 = var_4_1_inEdges[i_var_5].
node;
24 int cond_level_2 = (var_5 == p_var_5);
30 for(i_var_3 = 0; i_var_3 < in_degree_var_2; i_var_3++)
33 var_3 = var_2_3_inEdges[i_var_3].
property;
35 var_1 = var_2_3_inEdges[i_var_3].
node;
36 int cond_level_4 = (var_3 == p_var_3);
42 for(i_var_9 = 0; i_var_9 < in_degree_var_1; i_var_9++)
45 var_9 = var_1_5_inEdges[i_var_9].
property;
47 var_8 = var_1_5_inEdges[i_var_9].
node;
48 int cond_level_6 = (var_9 == p_var_9);
54 for(i_var_11 = 0; i_var_11 < out_degree_var_8; i_var_11++)
57 var_11 = var_8_7_outEdges[i_var_11].
property;
59 var_10 = var_8_7_outEdges[i_var_11].
node;
60 int cond_level_8 = ((var_11 == p_var_11) & (var_10 == p_var_10));
66 for(i_var_7 = 0; i_var_7 < out_degree_var_1; i_var_7++)
69 var_7 = var_1_9_outEdges[i_var_7].
property;
71 var_6 = var_1_9_outEdges[i_var_7].
node;
72 int cond_level_10 = ((var_7 == p_var_7) & (var_6 == p_var_6));
77 for(i_var_12 = 0; i_var_12 < in_degree_var_2; i_var_12++)
81 var_12 = var_2_11_inEdges[i_var_12].
property;
83 var_8_12 = var_2_11_inEdges[i_var_12].
node;
84 int cond_level_12 = ((var_12 == p_var_12) & (var_8_12 == var_8));
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);
126 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,
137 #if defined(DATASETInVertexFile) && defined(DATASETOutVertexFile) && defined(DATASETInEdgeFile) && \ 138 defined(DATASETOutEdgeFile) 139 loadGraph(DATASETInVertexFile, DATASETOutVertexFile, DATASETInEdgeFile, DATASETOutEdgeFile);
143 loadGraph(
"dataset/1-InVertexFile.bin",
"dataset/1-OutVertexFile.bin",
"dataset/1-InEdgeFile.bin",
144 "dataset/1-OutEdgeFile.bin");
156 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);
158 printf(
"%d\n", ret_value);
167 return test(1685, 14, 10, 1828, 10, 4, 7672, 10, 3) != 0;
static Edge * getInEdges(Graph *graph, NodeId node)
static size_t getInDegree(Graph *graph, NodeId node)
static Edge * getOutEdges(Graph *graph, NodeId node)
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)
__attribute__((noinline))
Convert the given fixedpt number to a decimal string.
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)
void loadGraph(char *InVertexFileName, char *OutVertexFileName, char *InEdgeFileName, char *OutEdgeFileName)
unsigned counter[N_THREADS]