PandA-2024.02
Data Structures | Macros | Typedefs | Functions
bfs.h File Reference
#include <stdlib.h>
#include <inttypes.h>
#include <stdio.h>
#include <string.h>
#include "support.h"
Include dependency graph for bfs.h:
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Data Structures

struct  edge_t_struct
 
struct  node_t_struct
 
struct  bench_args_t
 

Macros

#define SCALE   8
 
#define EDGE_FACTOR   16
 
#define N_NODES   (1LL<<SCALE)
 
#define N_EDGES   (N_NODES*EDGE_FACTOR)
 
#define N_LEVELS   10
 
#define MAX_LEVEL   INT8_MAX
 

Typedefs

typedef uint64_t edge_index_t
 
typedef uint64_t node_index_t
 
typedef struct edge_t_struct edge_t
 
typedef struct node_t_struct node_t
 
typedef int8_t level_t
 

Functions

void bfs (node_t nodes[N_NODES], edge_t edges[N_EDGES], node_index_t starting_node, level_t level[N_NODES], edge_index_t level_counts[N_LEVELS])
 

Macro Definition Documentation

◆ EDGE_FACTOR

#define EDGE_FACTOR   16

Definition at line 16 of file bfs.h.

◆ MAX_LEVEL

#define MAX_LEVEL   INT8_MAX

Definition at line 41 of file bfs.h.

Referenced by bfs(), and input_to_data().

◆ N_EDGES

#define N_EDGES   (N_NODES*EDGE_FACTOR)

Definition at line 19 of file bfs.h.

Referenced by data_to_input(), input_to_data(), and main().

◆ N_LEVELS

#define N_LEVELS   10

Definition at line 22 of file bfs.h.

Referenced by bfs(), check_data(), data_to_output(), and output_to_data().

◆ N_NODES

#define N_NODES   (1LL<<SCALE)

Definition at line 18 of file bfs.h.

Referenced by bfs(), data_to_input(), input_to_data(), and main().

◆ SCALE

#define SCALE   8

Definition at line 15 of file bfs.h.

Typedef Documentation

◆ edge_index_t

typedef uint64_t edge_index_t

Definition at line 25 of file bfs.h.

◆ edge_t

typedef struct edge_t_struct edge_t

◆ level_t

typedef int8_t level_t

Definition at line 40 of file bfs.h.

◆ node_index_t

typedef uint64_t node_index_t

Definition at line 26 of file bfs.h.

◆ node_t

typedef struct node_t_struct node_t

Function Documentation

◆ bfs()

void bfs ( node_t  nodes[N_NODES],
edge_t  edges[N_EDGES],
node_index_t  starting_node,
level_t  level[N_NODES],
edge_index_t  level_counts[N_LEVELS] 
)

Definition at line 9 of file bfs.c.


Generated on Mon Feb 12 2024 13:03:10 for PandA-2024.02 by doxygen 1.8.13