| 196 | pf_text(out->name, name) && pf_text(out->file_path, file) && pf_role(out, role); |
| 197 | } |
| 198 | static bool pf_call(cbm_store_t *store, int64_t from, int64_t to) { |
| 199 | cbm_edge_t *edges = NULL; |
| 200 | int count = 0; |
| 201 | bool read = |
| 202 | cbm_store_find_edges_by_source_type(store, from, "CALLS", &edges, &count) == CBM_STORE_OK; |
| 203 | bool found = false; |
| 204 | if (read) |
| 205 | for (int i = 0; i < count; ++i) |
| 206 | if (edges[i].source_id == from && edges[i].target_id == to && |
| 207 | pf_text(edges[i].type, "CALLS")) |
| 208 | found = true; |
| 209 | cbm_store_free_edges(edges, count); |
| 210 | return read && found; |
| 211 | } |
| 212 | static bool pf_ordinary_graph(const char *path) { |
| 213 | cbm_store_t *store = cbm_store_open_path_query(path); |
| 214 | if (!store) |
no test coverage detected