vpr/src/device/rr_graph_obj.cpp
bool RRGraph::validate_edge_src_nodes() const {
    bool all_valid = true;
    for (size_t id = 0; id < num_edges_; ++id) {
        /* Try to find if this is an invalid id or not */
        if (!valid_edge_id(RREdgeId(id))) {
            /* Skip this id */
            continue;
        }
        if (true == validate_edge_src_node(RREdgeId(id))) {
            continue;
        }
        /* Reach here, it means there is something wrong! 
         * Print a warning  
         */
        VTR_LOG_WARN("Edge %d has a invalid source node %d!\n",
                     id, size_t(edge_src_node(RREdgeId(id))));
        all_valid = false;
    }
    return all_valid;
}
/* Check if source nodes of a edge are all valid */
Check if source nodes of a edge are all valid
Check if source nodes of a edge are all valid
bool RRGraph::validate_edge_src_nodes() const {
    bool all_valid = true;
    for (size_t id = 0; id < num_edges_; ++id) {
        if (!valid_edge_id(RREdgeId(id))) {
            continue;
        }
        if (true == validate_edge_src_node(RREdgeId(id))) {
            continue;
        }
        VTR_LOG_WARN("Edge %d has a invalid source node %d!\n",
                     id, size_t(edge_src_node(RREdgeId(id))));
        all_valid = false;
    }
    return all_valid;
}
bool RRGraph :: validate_edge_src_nodes ( ) const { bool all_valid = true ; for ( size_t id = 0 ; id < num_edges_ ; ++ id ) { if ( ! valid_edge_id ( RREdgeId ( id ) ) ) { continue ; } if ( true == validate_edge_src_node ( RREdgeId ( id ) ) ) { continue ; } VTR_LOG_WARN ( " \n " , id , size_t ( edge_src_node ( RREdgeId ( id ) ) ) ) ; all_valid = false ; } return all_valid ; }
Check if source nodes of a edge are all valid
Check if source nodes of a edge are all valid
/* Try to find if this is an invalid id or not */ /* Skip this id */ /* Reach here, it means there is something wrong! 
         * Print a warning  
         */