1 #include "simple_API.h" 16 unsigned localCounter = 0;
18 var_3 = var_2_1_inEdges[i_var_3].
property;
20 var_1 = var_2_1_inEdges[i_var_3].
node;
21 int cond_level_2 = (var_3 == p_var_3);
27 for(i_var_7 = 0; i_var_7 < in_degree_var_1; i_var_7++)
30 var_7 = var_1_3_inEdges[i_var_7].
property;
32 var_6 = var_1_3_inEdges[i_var_7].
node;
33 int cond_level_4 = (var_7 == p_var_7);
39 for(i_var_9 = 0; i_var_9 < out_degree_var_6; i_var_9++)
42 var_9 = var_6_5_outEdges[i_var_9].
property;
44 var_8 = var_6_5_outEdges[i_var_9].
node;
45 int cond_level_6 = ((var_9 == p_var_9) & (var_8 == p_var_8));
51 for(i_var_5 = 0; i_var_5 < out_degree_var_1; i_var_5++)
54 var_5 = var_1_7_outEdges[i_var_5].
property;
56 var_4 = var_1_7_outEdges[i_var_5].
node;
57 int cond_level_8 = ((var_5 == p_var_5) & (var_4 == p_var_4));
74 size_t in_degree_var_2,
Edge* var_2_1_inEdges)
77 #pragma omp parallel for 78 for(i_var_3 = 0; i_var_3 < in_degree_var_2; i_var_3++)
80 kernel(i_var_3, graph, var_2, p_var_3, p_var_4, p_var_5, p_var_7, p_var_8, p_var_9, in_degree_var_2,
90 printf(
"In degree %d\n", in_degree_var_2);
93 parallel(graph, var_2, p_var_3, p_var_4, p_var_5, p_var_7, p_var_8, p_var_9, in_degree_var_2, var_2_1_inEdges);
102 #if defined(DATASETInVertexFile) && defined(DATASETOutVertexFile) && defined(DATASETInEdgeFile) && \ 103 defined(DATASETOutEdgeFile) 104 loadGraph(DATASETInVertexFile, DATASETOutVertexFile, DATASETInEdgeFile, DATASETOutEdgeFile);
108 loadGraph(
"dataset/1-InVertexFile.bin",
"dataset/1-OutVertexFile.bin",
"dataset/1-InEdgeFile.bin",
109 "dataset/1-OutEdgeFile.bin");
119 int ret_value = search(&
TheGraph, var_2, p_var_3, p_var_4, p_var_5, p_var_7, p_var_8, p_var_9);
122 printf(
"%d\n", ret_value);
130 return test(7293, 14, 1828, 10, 2, 6764, 10) != 125;
static Edge * getInEdges(Graph *graph, NodeId node)
__attribute__((noinline))
Convert the given fixedpt number to a decimal string.
static size_t getInDegree(Graph *graph, NodeId node)
int test(NodeId var_2, PropertyId p_var_3, PropertyId p_var_4, PropertyId p_var_5, PropertyId p_var_7, PropertyId p_var_8, PropertyId p_var_9)
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)
void loadGraph(char *InVertexFileName, char *OutVertexFileName, char *InEdgeFileName, char *OutEdgeFileName)
unsigned counter[N_THREADS]