Rizin
unix-like reverse engineering framework and cli tools
|
#include <rz_core.h>
#include <rz_cons.h>
#include <rz_util/rz_graph_drawable.h>
#include <ht_pu.h>
#include <ctype.h>
#include <limits.h>
#include "core_private.h"
Go to the source code of this file.
Classes | |
struct | len_pos_t |
struct | dist_t |
struct | g_cb |
struct | ascii_edge_t |
struct | layer_t |
struct | agraph_refresh_data |
struct | rz_agraph_location |
struct | tmplayer |
struct | tmpbackedgeinfo |
Macros | |
#define | GRAPH_MERGE_FEATURE 0 |
#define | BORDER 3 |
#define | BORDER_WIDTH 4 |
#define | BORDER_HEIGHT 3 |
#define | MARGIN_TEXT_X 2 |
#define | MARGIN_TEXT_Y 2 |
#define | HORIZONTAL_NODE_SPACING 4 |
#define | VERTICAL_NODE_SPACING 2 |
#define | MIN_NODE_WIDTH 22 |
#define | MIN_NODE_HEIGHT BORDER_HEIGHT |
#define | TITLE_LEN 128 |
#define | DEFAULT_SPEED 1 |
#define | PAGEKEY_SPEED (h / 2) |
#define | MINIGRAPH_NODE_TEXT_CUR "<@@@@@@>" |
#define | MINIGRAPH_NODE_MIN_WIDTH 12 |
#define | MINIGRAPH_NODE_TITLE_LEN 4 |
#define | MINIGRAPH_NODE_CENTER_X 3 |
#define | MININODE_MIN_WIDTH 16 |
#define | ZOOM_STEP 10 |
#define | ZOOM_DEFAULT 100 |
#define | BODY_OFFSETS 0x1 |
#define | BODY_SUMMARY 0x2 |
#define | BODY_COMMENTS 0x4 |
#define | NORMALIZE_MOV(x) ((x) < 0 ? -1 : ((x) > 0 ? 1 : 0)) |
#define | get_anode(gn) ((gn) ? (RzANode *)(gn)->data : NULL) |
#define | graph_foreach_anode(list, it, pos, anode) |
#define | G(x, y) rz_cons_canvas_gotoxy(g->can, x, y) |
#define | W(x) rz_cons_canvas_write(g->can, x) |
#define | F(x, y, x2, y2, c) rz_cons_canvas_fill(g->can, x, y, x2, y2, c) |
Typedefs | |
typedef struct ascii_edge_t | AEdge |
Variables | |
static int | mousemode = 0 |
static int | disMode = 0 |
static int | discroll = 0 |
static bool | graphCursor = false |
static const char * | mousemodes [] |
static HtPPOptions | nodes_opt |
#define MIN_NODE_HEIGHT BORDER_HEIGHT |
typedef struct ascii_edge_t AEdge |
|
static |
Definition at line 649 of file agraph.c.
References rz_graph_visitor_t::data, n, and rz_list_prepend().
Referenced by assign_layers().
|
static |
Definition at line 1047 of file agraph.c.
References adjust_class_val(), c, classes(), cmp_dist(), d, dist_t::dist, g, get_anode, get_sibling(), graph_foreach_anode, hash_get_int(), int, INT_MAX, rz_ascii_node_t::klass, len, rz_graph_all_neighbours(), rz_list_append(), rz_list_free(), rz_list_get_n(), rz_list_length(), rz_list_new(), rz_list_sort(), RZ_MIN, ut64(), v, and rz_ascii_node_t::x.
Referenced by compute_pos().
|
static |
Definition at line 1038 of file agraph.c.
References dist_nodes(), g, and hash_get_int().
Referenced by adjust_class().
Definition at line 1259 of file agraph.c.
References D, d, g, get_anode, hash_get_int(), i, rz_ascii_node_t::is_dummy, k, rz_ascii_node_t::layer, NULL, P, p, rz_ascii_node_t::pos_in_layer, rz_graph_innodes(), rz_graph_nth_neighbour(), rz_list_get_n(), ut64(), v, and w.
Referenced by original_traverse_l().
|
static |
Definition at line 1946 of file agraph.c.
References e, free(), and rz_list_free().
Referenced by set_layout().
|
static |
Definition at line 3325 of file agraph.c.
References agraph_update_seek(), follow_nth(), g, and get_anode.
Referenced by rz_core_visual_graph().
Definition at line 3258 of file agraph.c.
References agraph_get_title(), agraph_update_seek(), count, rz_graph_node_t::data, free(), g, get_anode, rz_ascii_node_t::gnode, in, rz_graph_node_t::in_nodes, list(), NULL, options, rz_graph_node_t::out_nodes, rz_agraph_set_curnode(), rz_cons_enable_mouse(), rz_cons_flush(), rz_cons_gotoxy(), rz_cons_input(), rz_cons_printf(), rz_cons_readchar(), rz_cons_show_cursor(), rz_list_append(), rz_list_free(), rz_list_get_n(), rz_list_length(), rz_list_newf(), and rz_ascii_node_t::title.
Referenced by rz_core_visual_graph().
|
static |
Definition at line 3320 of file agraph.c.
References agraph_update_seek(), follow_nth(), g, and get_anode.
Referenced by rz_core_visual_graph().
|
static |
Definition at line 141 of file agraph.c.
References rz_graph_node_t::data, g, in, n, and NULL.
Referenced by agraph_follow_innodes().
|
static |
Definition at line 3619 of file agraph.c.
References agraph_node_free(), DEFAULT_SPEED, g, nodes_opt, NULL, rz_graph_new(), rz_list_newf(), rz_vector_init(), sdb_new0(), and ZOOM_DEFAULT.
Referenced by rz_agraph_new().
|
static |
Definition at line 3331 of file agraph.c.
References a, agraph_update_seek(), find_near_of(), g, get_anode, and rz_agraph_set_curnode().
Referenced by rz_core_visual_graph().
|
static |
Definition at line 204 of file agraph.c.
Referenced by agraph_init(), free_nodes_kv(), and rz_agraph_reset().
|
static |
Definition at line 3341 of file agraph.c.
References a, agraph_update_seek(), find_near_of(), g, get_anode, and rz_agraph_set_curnode().
Referenced by rz_core_visual_graph().
|
static |
Definition at line 3431 of file agraph.c.
References agraph_print_edges(), agraph_print_nodes(), check_changes(), Color_RESET, rz_core_t::config, free(), G, g, h, rz_config_get(), rz_config_get_i(), rz_config_set_i(), rz_cons_canvas_fill(), rz_cons_canvas_print_region(), rz_cons_canvas_resize(), rz_cons_clear00(), rz_cons_flush(), rz_cons_get_size(), rz_cons_gotoxy(), rz_cons_newline(), rz_cons_strcat(), rz_cons_visual_flush(), rz_core_cmd0(), rz_core_cmd_str(), rz_core_gadget_print(), rz_core_t::scr_gadgets, cmd_descs_generate::str, update_graph_sizes(), W, and w.
Referenced by agraph_refresh(), and rz_agraph_print().
|
static |
Definition at line 2849 of file agraph.c.
References a, agraph_print_edges_simple(), tmpbackedgeinfo::ax, ax, tmpbackedgeinfo::ay, b, tmpbackedgeinfo::bx, tmpbackedgeinfo::by, calloc(), rz_cons_canvas_line_style_t::color, rz_cons_canvas_line_style_t::dot_style, DOT_STYLE_BACKEDGE, DOT_STYLE_CONDITIONAL, DOT_STYLE_NORMAL, tmplayer::edgectr, tmpbackedgeinfo::edgectr, first_x_cmp(), free(), tmpbackedgeinfo::fromlayer, g, get_edge_number(), graph_foreach_anode, rz_list_t::head, if(), in, rz_graph_node_t::in_nodes, tmplayer::layer, rz_list_t::length, LINE_FALSE, LINE_NONE, LINE_NOSYM_HORIZ, LINE_NOSYM_VERT, LINE_TRUE, LINE_UNCJMP, tmplayer::maxx, tmplayer::minx, NULL, rz_graph_node_t::out_nodes, tmplayer::revedgectr, rz_cons_break_pop(), rz_cons_canvas_line(), rz_cons_canvas_line_back_edge(), rz_cons_canvas_line_square_defined(), rz_cons_is_breaked(), RZ_EDGES_X_INC, rz_graph_get_neighbours(), rz_graph_get_nodes(), rz_list_add_sorted(), rz_list_append(), rz_list_first(), rz_list_free(), rz_list_length(), rz_list_new(), rz_list_sort(), RZ_NEW0, rz_list_t::sorted, tmpbackedgeinfo::style, rz_cons_canvas_line_style_t::symbol, autogen_x86imm::tmp, tmplayercmp(), and tmpbackedgeinfo::tolayer.
Referenced by agraph_print().
|
static |
Definition at line 2798 of file agraph.c.
References g, graph_foreach_anode, rz_ascii_node_t::h, rz_ascii_node_t::is_dummy, n, rz_cons_canvas_line(), rz_graph_get_nodes(), rz_ascii_node_t::w, rz_ascii_node_t::x, and rz_ascii_node_t::y.
Referenced by agraph_print_edges().
Definition at line 2743 of file agraph.c.
References g, get_anode, is_mini(), mini_RzANode_print(), n, normal_RzANode_print(), and tiny_RzANode_print().
Referenced by agraph_print_nodes().
Definition at line 2758 of file agraph.c.
References agraph_print_node(), g, get_anode, graph_foreach_anode, n, and rz_graph_get_nodes().
Referenced by agraph_print().
|
static |
Definition at line 3522 of file agraph.c.
References addr, rz_analysis_bb_t::addr, agraph_print(), rz_core_t::analysis, rz_core_t::bin, check_function_modified(), rz_core_t::config, agraph_refresh_data::core, rz_core_t::dbg, rz_cons_t::event_data, f, agraph_refresh_data::fcn, agraph_refresh_data::follow_offset, free(), agraph_refresh_data::fs, agraph_refresh_data::g, g, get_anode, get_title(), rz_core_t::io, rz_bin_t::is_debugger, NULL, rz_core_t::offset, pc, PFMT64x, r, rz_debug_t::reg, rz_analysis_find_most_relevant_block_in(), rz_analysis_get_fcn_in(), rz_config_get_i(), rz_cons_flush(), rz_cons_message(), rz_cons_singleton(), rz_cons_yesno(), rz_core_analysis_function_add(), rz_core_print_scrollbar(), rz_core_seek_to_register(), rz_io_is_valid_offset(), rz_reg_get(), rz_reg_get_name(), rz_reg_get_value(), RZ_REG_NAME_PC, rz_ascii_node_t::title, and ut64().
Referenced by agraph_refresh_oneshot(), agraph_toggle_mini(), agraph_toggle_tiny(), and rz_core_visual_graph().
|
static |
Definition at line 3588 of file agraph.c.
References agraph_refresh(), agraph_refresh_data::core, rz_core_task_enqueue_oneshot(), and rz_core_t::tasks.
Referenced by rz_core_visual_graph().
|
static |
Definition at line 3178 of file agraph.c.
References g, reload_nodes(), and rz_agraph_reset().
Referenced by check_changes().
Definition at line 3669 of file agraph.c.
References rz_cons_t::context, g, rz_cons_printable_palette_t::graph_box, rz_cons_printable_palette_t::graph_box2, rz_cons_printable_palette_t::graph_box3, rz_cons_printable_palette_t::graph_false, rz_cons_printable_palette_t::graph_true, rz_cons_context_t::pal, rz_cons_singleton(), sdb_bool_set(), and sdb_set_enc().
Referenced by rz_agraph_new(), and rz_agraph_reset().
|
static |
Definition at line 2713 of file agraph.c.
References a, g, graph_foreach_anode, k, n, rebase(), rz_graph_get_nodes(), sdb_fmt(), sdb_num_set(), set_layout(), and update_graph_sizes().
Referenced by agraph_toggle_mini(), agraph_toggle_tiny(), and check_changes().
|
static |
Definition at line 3592 of file agraph.c.
References agraph_refresh_data::g, and rz_ascii_graph_t::need_reload_nodes.
Referenced by rz_core_visual_graph().
Definition at line 3152 of file agraph.c.
References g, RZ_AGRAPH_MODE_MINI, RZ_AGRAPH_MODE_NORMAL, RZ_AGRAPH_MODE_TINY, and v.
Referenced by rz_core_visual_graph().
|
static |
|
static |
Definition at line 3248 of file agraph.c.
References agraph_refresh(), agraph_set_layout(), g, get_anode, n, and rz_cons_singleton().
Referenced by rz_core_visual_graph().
Definition at line 3596 of file agraph.c.
References rz_core_t::config, DEFAULT_SPEED, g, and rz_config_get_i().
Referenced by rz_core_visual_graph().
|
static |
Definition at line 3240 of file agraph.c.
References agraph_refresh(), agraph_set_layout(), g, and rz_cons_singleton().
Referenced by rz_core_visual_graph().
Definition at line 2738 of file agraph.c.
Referenced by agraph_follow_false(), agraph_follow_innodes(), agraph_follow_true(), agraph_next_node(), agraph_prev_node(), goto_asmqjmps(), and rz_core_visual_graph().
|
static |
Definition at line 3350 of file agraph.c.
References a, rz_analysis_function_t::addr, free(), g, get_anode, graphCursor, NULL, PFMT64x, rz_agraph_set_title(), rz_core_analysis_function_signature(), RZ_OUTPUT_MODE_STANDARD, and rz_str_newf().
Referenced by check_changes().
Definition at line 253 of file agraph.c.
References Color_RESET, Color_YELLOW, g, sdb_const_get(), and sdb_fmt().
Referenced by mini_RzANode_print(), and normal_RzANode_print().
|
static |
Definition at line 4027 of file agraph.c.
References rz_core_t::config, disMode, and rz_config_set().
Referenced by rz_core_visual_graph().
Definition at line 660 of file agraph.c.
References add_sorted(), rz_graph_visitor_t::data, rz_graph_visitor_t::finish_node, g, graph_foreach_anode, rz_ascii_node_t::layer, n, NULL, rz_graph_dfs(), rz_graph_innodes(), rz_list_free(), and rz_list_new().
Referenced by set_layout().
|
static |
Definition at line 1776 of file agraph.c.
References a, syscall_preprocessing::arr, ax, b, count_edges(), e, err, free(), g, get_anode, graph_foreach_anode, gt, rz_ascii_node_t::h, i, if(), k, max, min, n, NULL, r, RZ_EDGES_X_INC, rz_graph_get_neighbours(), rz_graph_innodes(), rz_list_append(), rz_list_length(), rz_list_new(), RZ_NEW0, RZ_NEWS0, rz_ascii_node_t::w, rz_ascii_node_t::x, and rz_ascii_node_t::y.
Referenced by set_layout().
|
static |
Definition at line 2214 of file agraph.c.
Referenced by get_bbnodes(), and get_bbupdate().
|
static |
Definition at line 3364 of file agraph.c.
References rz_analysis_bb_t::addr, agraph_reload_nodes(), agraph_set_layout(), agraph_update_title(), rz_core_t::analysis, rz_core_t::config, fold_asm_trace(), free(), g, get_anode, get_title(), is_mini(), n, NULL, rz_core_t::offset, rz_agraph_get_node(), rz_agraph_set_curnode(), rz_analysis_find_most_relevant_block_in(), rz_config_get_i(), rz_ascii_node_t::title, update_node_dimension(), and update_seek().
Referenced by agraph_print(), and rz_agraph_get_sdb().
|
static |
Definition at line 3514 of file agraph.c.
References rz_core_t::config, rz_analysis_function_update_analysis(), rz_analysis_function_was_modified(), rz_config_get_i(), and rz_cons_yesno().
Referenced by agraph_refresh(), and rz_core_visual_graph().
|
static |
Definition at line 1364 of file agraph.c.
References b, c, dist_nodes(), e, g, get_anode, graph_foreach_anode, i, INT_MAX, len_pos_t::len, list(), len_pos_t::pos, RM_listcmp(), RP_listcmp(), rz_graph_get_neighbours(), rz_graph_innodes(), rz_list_add_sorted(), RZ_NEW, RZ_NEW0, s, v, and rz_ascii_node_t::x.
Referenced by combine_sequences().
|
static |
Definition at line 1430 of file agraph.c.
References a, collect_changes(), dist_nodes(), rz_list_t::free, free(), g, get_anode, i, len_pos_t::len, regress::m, len_pos_t::pos, r, rp, rz_list_free(), rz_list_new(), rz_list_pop(), RZ_MAX, RZ_MIN, step(), and rz_ascii_node_t::x.
Referenced by place_sequence().
|
static |
Definition at line 967 of file agraph.c.
References c, g, get_anode, graph_foreach_anode, i, rz_ascii_node_t::klass, n, NULL, rz_graph_get_nodes(), rz_list_append(), rz_list_new(), and RZ_NEWS0.
Referenced by compute_pos().
Definition at line 1164 of file agraph.c.
References adjust_class(), classes(), compute_classes(), free(), g, i, NULL, place_nodes(), rz_list_free(), set_p_contains(), and set_p_free().
Referenced by place_dummies().
Definition at line 924 of file agraph.c.
References free_vertical_nodes_kv(), g, get_anode, i, rz_ascii_node_t::is_dummy, NULL, rz_graph_nth_neighbour(), rz_list_append(), and rz_list_new().
Referenced by place_dummies().
Definition at line 1772 of file agraph.c.
References dst, g, get_edge_number(), and src.
Referenced by backedge_info().
Create RzAGraph from generic RzGraph with RzGraphNodeInfo as node data.
graph | <RzGraphNodeInfo> |
Definition at line 4916 of file agraph.c.
References rz_graph_node_t::data, rz_graph_node_t::in_nodes, info(), rz_ascii_graph_t::need_reload_nodes, rz_graph_t::nodes, NULL, rz_agraph_add_edge(), rz_agraph_add_node(), rz_agraph_free(), rz_agraph_new(), rz_cons_canvas_new(), and rz_return_val_if_fail.
Referenced by rz_core_graph_print().
|
static |
Definition at line 699 of file agraph.c.
References rz_graph_visitor_t::data, e, rz_graph_visitor_t::fcross_edge, free(), from, g, get_anode, rz_ascii_node_t::gnode, i, rz_ascii_node_t::is_dummy, is_reversed(), rz_ascii_node_t::is_reversed, rz_ascii_node_t::layer, NULL, RZ_ABS, rz_agraph_add_edge_at(), rz_agraph_add_node(), rz_agraph_del_edge(), rz_graph_add_edge(), rz_graph_dfs(), rz_list_append(), rz_list_newf(), to, rz_graph_visitor_t::tree_edge, view_dummy(), and rz_ascii_node_t::w.
Referenced by set_layout().
|
static |
Definition at line 743 of file agraph.c.
References g, graph_foreach_anode, i, n, rz_graph_get_nodes(), and RZ_NEWS0.
Referenced by set_layout().
|
static |
Definition at line 2295 of file agraph.c.
References a, b, rz_list_iter_t::data, g, n, rz_list_iter_t::n, rz_list_delete(), and rz_list_delete_data().
Referenced by get_bbnodes().
|
static |
Definition at line 825 of file agraph.c.
References a, b, d, dist_t::dist, find_dist(), found, g, get_anode, HORIZONTAL_NODE_SPACING, i, rz_ascii_node_t::is_reversed, rz_list_find(), rz_list_iter_get_data(), and rz_ascii_node_t::w.
Referenced by adjust_class_val(), collect_changes(), combine_sequences(), place_nodes_val(), place_original(), and place_single().
Definition at line 818 of file agraph.c.
Referenced by dist_nodes(), and set_dist_nodes().
|
static |
|
static |
Definition at line 2550 of file agraph.c.
References g, get_anode, graph_foreach_anode, INT_MAX, is_near(), is_near_h(), n, NULL, rz_graph_get_nodes(), rz_ascii_node_t::x, and rz_ascii_node_t::y.
Referenced by agraph_next_node(), agraph_prev_node(), and rz_core_visual_graph().
Definition at line 2829 of file agraph.c.
References a, b, and rz_graph_node_t::data.
Referenced by agraph_print_edges().
Definition at line 1698 of file agraph.c.
References from, g, graph_foreach_anode, i, NULL, rz_graph_del_node(), rz_graph_get_neighbours(), rz_list_first(), rz_return_if_fail, autogen_x86imm::tmp, to, and v.
Referenced by set_layout().
Definition at line 2274 of file agraph.c.
References addr, rz_core_t::dbg, g, get_anode, graph_foreach_anode, n, NULL, rz_debug_trace_get(), rz_graph_get_nodes(), rz_num_get(), and ut64().
Referenced by check_changes().
Definition at line 3183 of file agraph.c.
References a, g, get_anode, rz_agraph_set_curnode(), and rz_graph_nth_neighbour().
Referenced by agraph_follow_false(), and agraph_follow_true().
|
static |
|
static |
Definition at line 916 of file agraph.c.
References rz_list_free().
Referenced by compute_vertical_nodes().
|
static |
Definition at line 2167 of file agraph.c.
References rz_core_t::analysis, b, rz_analysis_bb_t::fcns, get_body(), rz_analysis_t::gp, INT_MAX, rz_analysis_t::last_disasm_reg, NULL, rz_analysis_bb_t::parent_reg_arena, rz_analysis_bb_t::parent_stackptr, rz_analysis_t::reg, rz_analysis_get_block_at(), RZ_FREE, rz_list_contains(), rz_reg_arena_dup(), rz_reg_arena_poke(), rz_reg_getv(), rz_analysis_t::stackptr, ut64(), and UT64_MAX.
Referenced by get_bbnodes(), and get_bbupdate().
|
static |
Definition at line 2331 of file agraph.c.
References rz_analysis_case_obj_t::addr, rz_analysis_bb_t::addr, rz_core_t::analysis, bbcmp(), rz_analysis_function_t::bbs, rz_analysis_switch_obj_t::cases, cleanup(), rz_core_t::config, delete_dup_edges(), rz_analysis_bb_t::fail, free(), g, get_bb_body(), get_title(), rz_analysis_t::gp, isbbfew(), rz_analysis_bb_t::jump, rz_core_t::keep_asmqjmps, mode2opts(), NULL, rz_core_t::offset, rz_analysis_t::reg, rz_agraph_add_edge(), rz_agraph_add_node(), rz_agraph_get_node(), rz_config_get_i(), rz_core_add_asmqjmp(), RZ_FREE, rz_list_sort(), rz_reg_arena_peek(), rz_reg_arena_poke(), sdb_fmt(), sdb_set(), rz_analysis_t::stackptr, rz_analysis_bb_t::switch_op, ut64(), UT64_MAX, and v.
Referenced by reload_nodes().
|
static |
Definition at line 2218 of file agraph.c.
References rz_analysis_bb_t::addr, rz_core_t::analysis, bbcmp(), rz_analysis_function_t::bbs, rz_ascii_node_t::body, rz_core_t::config, free(), g, get_bb_body(), get_title(), rz_analysis_t::gp, rz_core_t::keep_asmqjmps, mode2opts(), NULL, rz_analysis_t::reg, rz_agraph_get_node(), rz_config_get_i(), rz_core_add_asmqjmp(), RZ_FREE, rz_list_sort(), rz_reg_arena_peek(), rz_reg_arena_poke(), sdb_fmt(), sdb_set(), rz_analysis_t::stackptr, ut64(), and UT64_MAX.
Referenced by rz_core_visual_graph().
Definition at line 2104 of file agraph.c.
References addr, BODY_COMMENTS, BODY_OFFSETS, BODY_SUMMARY, cmd, rz_core_t::config, rz_print_t::cur_enabled, make_dist_html::html, NULL, PFMT64x, rz_core_t::print, rz_config_get_i(), rz_config_hold_free(), rz_config_hold_i(), rz_config_hold_new(), rz_config_hold_restore(), rz_config_set_i(), rz_core_cmd_strf(), rz_core_visual_toggle_decompiler_disasm(), rz_str_replace(), rz_str_trim(), and rz_str_trim_lines().
Referenced by get_bb_body(), and get_cgnodes().
|
static |
Definition at line 2446 of file agraph.c.
References rz_analysis_function_t::addr, rz_core_t::analysis, f, free(), g, get_body(), get_title(), mode2opts(), NULL, rz_core_t::offset, rz_agraph_add_edge(), rz_agraph_add_node(), rz_agraph_get_node(), rz_analysis_find_most_relevant_block_in(), rz_analysis_function_get_xrefs_from(), rz_analysis_get_fcn_in(), rz_core_seek(), rz_list_free(), rz_analysis_bb_t::size, rz_analysis_ref_t::to, rz_ascii_node_t::x, and rz_ascii_node_t::y.
Referenced by reload_nodes().
|
static |
Definition at line 433 of file agraph.c.
References eprintf, free(), g, get_anode, graph_foreach_anode, gs, gt, i, rz_ascii_node_t::layer, len, regress::m, layer_t::n_nodes, layer_t::nodes, NULL, rz_ascii_node_t::pos_in_layer, rz_cons_is_breaked(), rz_graph_get_neighbours(), RZ_NEWS0, s, and rz_ascii_node_t::title.
Referenced by layer_sweep().
|
static |
Definition at line 1738 of file agraph.c.
References dst, g, graph_foreach_anode, rz_graph_node_t::idx, in, rz_graph_get_neighbours(), rz_graph_innodes(), rz_list_first(), rz_list_length(), src, and v.
Referenced by agraph_print_edges(), and count_edges().
Definition at line 4052 of file agraph.c.
References c, rz_core_t::config, g, NULL, rz_config_get_i(), rz_config_set_i(), rz_cons_get_buffer_dup(), rz_cons_reset(), rz_core_visual_graph(), and s.
Referenced by nextword().
Definition at line 334 of file agraph.c.
References color, rz_cons_t::context, rz_cons_printable_palette_t::diff_match, rz_cons_printable_palette_t::diff_new, rz_cons_printable_palette_t::diff_unknown, rz_cons_printable_palette_t::diff_unmatch, rz_cons_printable_palette_t::graph_box, rz_cons_printable_palette_t::graph_box2, rz_cons_context_t::pal, RZ_ANALYSIS_DIFF_TYPE_MATCH, RZ_ANALYSIS_DIFF_TYPE_UNMATCH, and rz_cons_singleton().
Referenced by normal_RzANode_print().
|
static |
Definition at line 1238 of file agraph.c.
References g, get_anode, rz_ascii_node_t::is_dummy, k, rz_ascii_node_t::layer, n, NULL, and rz_ascii_node_t::pos_in_layer.
Referenced by original_traverse_l(), and place_original().
|
static |
Definition at line 1013 of file agraph.c.
References g, is_valid_pos(), n, NULL, and pos.
Referenced by adjust_class(), and place_nodes().
|
static |
Definition at line 200 of file agraph.c.
References addr, PFMT64x, and rz_str_newf().
Referenced by agraph_refresh(), check_changes(), get_bbnodes(), get_bbupdate(), get_cgnodes(), goto_asmqjmps(), and seek_to_node().
Definition at line 3954 of file agraph.c.
References addr, agraph_update_seek(), Color_RESET, free(), g, get_title(), h, i, isalpha, islower, obuf, rz_agraph_get_node(), rz_agraph_set_curnode(), rz_cons_clear_line(), rz_cons_flush(), rz_cons_get_size(), rz_cons_gotoxy(), rz_cons_printf(), rz_cons_readchar(), RZ_CORE_ASMQJMPS_LEN_LETTERS, rz_core_get_asmqjmps(), rz_core_seek(), rz_core_seek_and_save(), ut64(), and UT64_MAX.
Referenced by rz_core_visual_graph().
|
static |
Definition at line 4019 of file agraph.c.
References addr, rz_print_t::cur, rz_print_t::cur_enabled, rz_core_t::offset, rz_core_t::print, rz_core_debug_breakpoint_toggle(), and ut64().
Referenced by rz_core_visual_graph().
|
static |
Definition at line 4024 of file agraph.c.
References rz_core_debug_continue().
Referenced by rz_core_visual_graph().
Definition at line 4007 of file agraph.c.
References g, and rz_core_debug_single_step_in().
Referenced by rz_core_visual_graph().
Definition at line 4013 of file agraph.c.
References g, and rz_core_debug_single_step_over().
Referenced by rz_core_visual_graph().
Definition at line 3637 of file agraph.c.
References delta, discroll, g, is_mini(), move_current_node(), NULL, and rz_core_seek_opcode().
Referenced by rz_core_visual_graph().
Definition at line 1029 of file agraph.c.
References found, int, key, and val.
Referenced by adjust_class(), adjust_class_val(), adjust_directions(), original_traverse_l(), place_dummies(), and place_nodes_val().
Definition at line 129 of file agraph.c.
References g, and RZ_AGRAPH_MODE_COMMENTS.
Referenced by mode2opts().
Definition at line 117 of file agraph.c.
References g, and RZ_AGRAPH_MODE_MINI.
Referenced by agraph_print_node(), check_changes(), graphNodeMove(), and update_node_dimension().
Definition at line 113 of file agraph.c.
References g, and RZ_AGRAPH_MODE_OFFSET.
Referenced by mode2opts().
|
static |
Definition at line 694 of file agraph.c.
References e, find_edge(), g, and rz_list_find().
Referenced by create_dummy_nodes().
Definition at line 125 of file agraph.c.
References g, and RZ_AGRAPH_MODE_SUMMARY.
Referenced by mode2opts().
Definition at line 121 of file agraph.c.
References g, and RZ_AGRAPH_MODE_TINY.
Referenced by move_current_node().
Definition at line 912 of file agraph.c.
Referenced by get_sibling(), and original_traverse_l().
|
static |
Definition at line 2313 of file agraph.c.
References rz_analysis_case_obj_t::addr, rz_analysis_bb_t::addr, rz_analysis_switch_obj_t::cases, rz_analysis_bb_t::fail, rz_analysis_bb_t::jump, and rz_analysis_bb_t::switch_op.
Referenced by get_bbnodes().
|
static |
Definition at line 549 of file agraph.c.
References free(), g, get_anode, get_crossing_matrix(), i, len, n, layer_t::n_nodes, layer_t::nodes, rz_ascii_node_t::pos_in_layer, and v.
Referenced by minimize_crossings().
|
static |
Definition at line 265 of file agraph.c.
References append_shortcut(), Color_RESET, discroll, free(), G, g, MINIGRAPH_NODE_CENTER_X, MINIGRAPH_NODE_TEXT_CUR, MINIGRAPH_NODE_TITLE_LEN, n, rz_str_ansi_crop(), snprintf, cmd_descs_generate::str, TITLE_LEN, W, and x.
Referenced by agraph_print_node().
Definition at line 786 of file agraph.c.
References g, i, and layer_sweep().
Referenced by set_layout().
Definition at line 159 of file agraph.c.
References BODY_COMMENTS, BODY_OFFSETS, BODY_SUMMARY, g, is_comments(), is_offset(), and is_summary().
Referenced by get_bbnodes(), get_bbupdate(), and get_cgnodes().
Definition at line 3196 of file agraph.c.
References g, get_anode, is_tiny(), n, and NORMALIZE_MOV.
Referenced by graphNodeMove().
Definition at line 133 of file agraph.c.
References RZ_AGRAPH_MODE_MAX.
Referenced by rz_core_visual_graph().
Definition at line 4065 of file agraph.c.
References a, count, free(), g, get_graph_string(), rz_core_t::graph, rz_cons_canvas_t::h, rz_vector_t::len, NULL, rz_core_graph_hits_t::old_word, pos, rz_cons_clear00(), rz_cons_flush(), rz_return_if_fail, RZ_STR_ISEMPTY, rz_str_str_xy(), rz_vector_clear(), rz_vector_index_ptr(), rz_vector_push(), s, strdup(), rz_cons_canvas_t::sx, rz_cons_canvas_t::sy, rz_cons_canvas_t::w, rz_core_graph_hits_t::word_list, rz_core_graph_hits_t::word_nth, x, and rz_agraph_location::y.
Referenced by rz_core_visual_graph().
Definition at line 345 of file agraph.c.
References append_shortcut(), BORDER_HEIGHT, BORDER_WIDTH, color, Color_RESET, free(), G, g, get_node_color(), MARGIN_TEXT_X, MARGIN_TEXT_Y, n, rz_cons_canvas_box(), RZ_MIN, rz_str_ansi_crop(), snprintf, TITLE_LEN, W, x, zoom, and ZOOM_DEFAULT.
Referenced by agraph_print_node().
Definition at line 1518 of file agraph.c.
References adjust_directions(), D, g, get_anode, get_right_dummy(), hash_get_int(), i, rz_ascii_node_t::is_dummy, is_valid_pos(), k, rz_ascii_node_t::layer, NULL, P, place_sequence(), rz_ascii_node_t::pos_in_layer, and set_dist_nodes().
Referenced by place_original().
Definition at line 1207 of file agraph.c.
References compute_pos(), compute_vertical_nodes(), g, graph_foreach_anode, hash_get_int(), n, and rz_graph_get_nodes().
Referenced by set_layout().
|
static |
Definition at line 1126 of file agraph.c.
References classes(), g, get_anode, get_sibling(), graph_foreach_anode, rz_ascii_node_t::klass, NULL, p, place_nodes_sel_p(), place_nodes_val(), set_p_add(), set_p_contains(), ut64(), and v.
Referenced by compute_pos().
|
static |
Definition at line 1108 of file agraph.c.
References dist_nodes(), g, and hash_get_int().
Referenced by place_nodes().
|
static |
Definition at line 1583 of file agraph.c.
References D, dist_nodes(), free(), g, get_anode, get_right_dummy(), graph_foreach_anode, rz_ascii_node_t::is_dummy, NULL, original_traverse_l(), P, rz_graph_get_nodes(), rz_list_free(), rz_list_newf(), ut64(), and rz_ascii_node_t::x.
Referenced by set_layout().
|
static |
Definition at line 1504 of file agraph.c.
References combine_sequences(), g, and place_single().
Referenced by original_traverse_l().
|
static |
Definition at line 1313 of file agraph.c.
References dist_nodes(), g, get_anode, graph_foreach_anode, rz_ascii_node_t::is_reversed, len, rz_graph_get_neighbours(), rz_graph_innodes(), rz_list_length(), RZ_MAX, RZ_MIN, v, and rz_ascii_node_t::x.
Referenced by place_sequence().
Definition at line 137 of file agraph.c.
References RZ_AGRAPH_MODE_MAX.
Referenced by rz_core_visual_graph().
|
static |
Definition at line 2506 of file agraph.c.
References g, get_bbnodes(), and get_cgnodes().
Referenced by agraph_reload_nodes().
|
static |
Definition at line 627 of file agraph.c.
References rz_graph_visitor_t::back_edge, rz_graph_visitor_t::data, e, free(), from, g, get_anode, NULL, rz_agraph_add_edge_at(), rz_agraph_del_edge(), rz_graph_dfs(), rz_list_newf(), to, and view_cyclic_edge().
Referenced by set_layout().
|
static |
Definition at line 174 of file agraph.c.
References rz_core_t::config, rz_config_get_i(), and rz_config_set().
Referenced by rz_core_visual_graph().
|
static |
Definition at line 4044 of file agraph.c.
References color, rz_core_t::config, rz_config_get_i(), and rz_config_set_i().
Referenced by rz_core_visual_graph().
Definition at line 3862 of file agraph.c.
References a, b, g, k, rz_graph_add_edge(), rz_return_if_fail, sdb_array_add(), and sdb_fmt().
Referenced by create_agraph_from_graph(), get_bbnodes(), get_cgnodes(), print_double_linked_list_bin_graph(), rz_cmd_heap_chunks_print_handler(), and rz_core_agraph_add_edge().
Definition at line 3871 of file agraph.c.
References a, b, g, k, rz_graph_add_edge_at(), rz_return_if_fail, sdb_array_insert(), and sdb_fmt().
Referenced by create_dummy_nodes(), remove_cycles(), and set_layout().
Definition at line 3765 of file agraph.c.
References g, and rz_agraph_add_node_with_color().
Referenced by create_agraph_from_graph(), create_dummy_nodes(), get_bbnodes(), get_cgnodes(), print_double_linked_list_bin_graph(), and rz_cmd_heap_chunks_print_handler().
RZ_API RzANode* rz_agraph_add_node_with_color | ( | const RzAGraph * | g, |
const char * | title, | ||
const char * | body, | ||
int | color | ||
) |
Definition at line 3726 of file agraph.c.
References b, rz_ascii_node_t::body, color, rz_ascii_node_t::difftype, free(), g, rz_ascii_node_t::gnode, rz_ascii_node_t::is_dummy, rz_ascii_node_t::is_reversed, rz_ascii_node_t::klass, rz_ascii_node_t::layer, len, NULL, rz_ascii_node_t::pos_in_layer, rz_agraph_get_node(), rz_graph_add_node(), RZ_NEW0, RZ_STR_ISNOTEMPTY, rz_str_newf(), rz_str_trunc_ellipsis(), s, sdb_array_add(), sdb_encode(), sdb_fmt(), sdb_set_owned(), strdup(), and rz_ascii_node_t::title.
Referenced by rz_agraph_add_node(), and rz_core_agraph_add_node().
Definition at line 3880 of file agraph.c.
References a, b, g, k, rz_graph_del_edge(), rz_return_if_fail, sdb_array_remove(), and sdb_fmt().
Referenced by create_dummy_nodes(), remove_cycles(), rz_core_agraph_del_edge(), and set_layout().
Definition at line 3769 of file agraph.c.
References free(), g, rz_ascii_node_t::gnode, graph_foreach_anode, key, NULL, rz_agraph_get_node(), rz_graph_del_node(), rz_graph_innodes(), rz_str_trunc_ellipsis(), sdb_array_remove(), sdb_fmt(), sdb_set(), and rz_ascii_node_t::title.
Referenced by rz_core_agraph_del_node().
RZ_API void rz_agraph_foreach | ( | RzAGraph * | g, |
RzANodeCallback | cb, | ||
void * | user | ||
) |
Definition at line 3829 of file agraph.c.
References cb, g, g_cb::node_cb, and user_node_cb().
Referenced by rz_core_agraph_print_dot(), rz_core_agraph_print_gml(), and rz_core_agraph_print_rizin().
RZ_API void rz_agraph_foreach_edge | ( | RzAGraph * | g, |
RAEdgeCallback | cb, | ||
void * | user | ||
) |
Definition at line 3837 of file agraph.c.
References cb, g, g_cb::graph, and user_edge_cb().
Referenced by rz_core_agraph_print_dot(), rz_core_agraph_print_gml(), and rz_core_agraph_print_rizin().
Definition at line 3909 of file agraph.c.
References free(), g, NULL, rz_agraph_set_title(), rz_cons_canvas_free(), rz_graph_free(), rz_list_free(), and sdb_free().
Referenced by create_agraph_from_graph(), print_double_linked_list_bin_graph(), rz_core_fini(), and rz_core_visual_graph().
Definition at line 3846 of file agraph.c.
References g, get_anode, rz_graph_get_nodes(), and rz_list_first().
Referenced by rz_core_agraph_print_interactive(), and rz_core_graph_print().
Definition at line 3852 of file agraph.c.
References free(), g, NULL, and rz_str_trunc_ellipsis().
Referenced by check_changes(), get_bbnodes(), get_bbupdate(), get_cgnodes(), goto_asmqjmps(), rz_agraph_add_node_with_color(), rz_agraph_del_node(), rz_core_agraph_add_edge(), and rz_core_agraph_del_edge().
Definition at line 3679 of file agraph.c.
References check_changes(), g, and NULL.
Referenced by rz_core_agraph_print_sdb(), and rz_core_graph_print().
RZ_API RzAGraph* rz_agraph_new | ( | RzConsCanvas * | can | ) |
Definition at line 3922 of file agraph.c.
References agraph_init(), agraph_sdb_init(), g, NULL, and RZ_NEW0.
Referenced by create_agraph_from_graph(), print_double_linked_list_bin_graph(), rz_cmd_heap_chunks_print_handler(), rz_core_init(), and rz_core_visual_graph().
Definition at line 3687 of file agraph.c.
References agraph_print(), g, NULL, and rz_cons_newline().
Referenced by print_double_linked_list_bin_graph(), rz_cmd_heap_chunks_print_handler(), rz_core_agraph_print_ascii(), and rz_core_graph_print().
Definition at line 3694 of file agraph.c.
References rz_ascii_node_t::body, rz_graph_node_t::data, free(), g, rz_ascii_node_t::gnode, rz_graph_node_t::idx, NULL, rz_graph_node_t::out_nodes, pj_a(), pj_end(), pj_i(), pj_k(), pj_ki(), pj_ks(), pj_o(), strdup(), and rz_ascii_node_t::title.
Referenced by rz_core_agraph_print_json().
Definition at line 3889 of file agraph.c.
References agraph_node_free(), agraph_sdb_init(), g, nodes_opt, NULL, rz_agraph_set_title(), rz_graph_reset(), rz_list_free(), rz_list_newf(), rz_list_purge(), and sdb_reset().
Referenced by agraph_reload_nodes(), and rz_core_agraph_reset().
Definition at line 2696 of file agraph.c.
References a, g, and sdb_set().
Referenced by agraph_follow_innodes(), agraph_next_node(), agraph_prev_node(), check_changes(), follow_nth(), goto_asmqjmps(), rz_core_agraph_print_interactive(), and rz_core_graph_print().
Definition at line 3720 of file agraph.c.
References free(), g, NULL, sdb_set(), and strdup().
Referenced by agraph_update_title(), rz_agraph_free(), rz_agraph_reset(), rz_cmd_heap_chunks_print_handler(), rz_core_agraph_print_ascii(), rz_core_agraph_print_interactive(), and rz_core_graph_print().
RZ_API int rz_core_visual_graph | ( | RzCore * | core, |
RzAGraph * | g, | ||
RzAnalysisFunction * | _fcn, | ||
int | is_interactive | ||
) |
Definition at line 4114 of file agraph.c.
References rz_analysis_function_t::addr, rz_analysis_bb_t::addr, agraph_follow_false(), agraph_follow_innodes(), agraph_follow_true(), agraph_next_node(), agraph_prev_node(), agraph_refresh(), agraph_refresh_oneshot(), agraph_set_need_reload_nodes(), agraph_set_zoom(), agraph_toggle_callgraph(), agraph_toggle_mini(), agraph_toggle_speed(), agraph_toggle_tiny(), agraph_update_seek(), rz_core_t::analysis, applyDisMode(), check_function_modified(), cmd, rz_cons_canvas_t::color, rz_core_t::config, rz_core_t::cons, rz_line_t::contents, agraph_refresh_data::core, rz_print_t::cur, rz_print_t::cur_enabled, discroll, disMode, dst, e, eprintf, rz_cons_t::event_data, rz_cons_t::event_resize, agraph_refresh_data::fcn, find_near_of(), agraph_refresh_data::follow_offset, free(), agraph_refresh_data::fs, agraph_refresh_data::g, g, get_anode, get_bbupdate(), goto_asmqjmps(), graph_breakpoint(), graph_continue(), graph_single_step_in(), graph_single_step_over(), graphCursor, graphNodeMove(), h, rz_core_t::is_asmqjmps_letter, rz_core_t::keep_asmqjmps, key, rz_cons_t::line, rz_cons_canvas_t::linemode, rz_cons_t::mouse_event, mousemode, mousemodes, next_mode(), nextword(), NULL, rz_core_t::offset, PAGEKEY_SPEED, rz_core_t::panels_root, prev_mode(), rz_core_t::print, rotateAsmemu(), rotateColor(), rz_agraph_free(), RZ_AGRAPH_MODE_COMMENTS, RZ_AGRAPH_MODE_NORMAL, rz_agraph_new(), rz_analysis_find_most_relevant_block_in(), rz_analysis_get_fcn_in(), rz_config_get(), rz_config_get_i(), rz_config_hold_free(), rz_config_hold_i(), rz_config_hold_new(), rz_config_hold_restore(), rz_config_set(), rz_config_set_i(), rz_config_toggle(), rz_cons_any_key(), rz_cons_arrow_to_hjkl(), rz_cons_break_pop(), rz_cons_break_push(), rz_cons_canvas_free(), rz_cons_canvas_new(), rz_cons_clear00(), rz_cons_fgets(), rz_cons_get_size(), rz_cons_is_breaked(), rz_cons_is_interactive(), RZ_CONS_KEY_F1, RZ_CONS_KEY_F10, RZ_CONS_KEY_F11, RZ_CONS_KEY_F12, RZ_CONS_KEY_F2, RZ_CONS_KEY_F3, RZ_CONS_KEY_F4, RZ_CONS_KEY_F5, RZ_CONS_KEY_F6, RZ_CONS_KEY_F7, RZ_CONS_KEY_F8, RZ_CONS_KEY_F9, rz_cons_less(), rz_cons_newline(), rz_cons_pal_random(), rz_cons_printf(), rz_cons_readchar(), rz_cons_yesno(), rz_core_agraph_print_interactive(), rz_core_agraph_reset(), rz_core_cmd0(), rz_core_hack(), rz_core_reg_set_by_role_or_name(), rz_core_seek(), rz_core_seek_bb_instruction(), rz_core_seek_next(), rz_core_seek_opcode(), rz_core_seek_prev(), rz_core_seek_redo(), rz_core_seek_to_register(), rz_core_seek_undo(), rz_core_theme_nextpal(), rz_core_visual_analysis(), rz_core_visual_browse(), rz_core_visual_define(), rz_core_visual_hudstuff(), rz_core_visual_panels_root(), rz_core_visual_prompt_input(), rz_core_visual_toggle_hints(), rz_core_visual_trackflags(), rz_core_visual_xrefs(), rz_line_readline(), rz_line_set_prompt(), rz_meta_set_string(), RZ_META_TYPE_COMMENT, RZ_NEW0, rz_str_bool(), rz_vector_fini(), seek_to_node(), showcursor(), strdup(), rz_cons_canvas_t::sx, rz_cons_canvas_t::sy, rz_core_t::tmpseek, update_seek(), ut64(), visual_offset(), rz_core_t::vmode, w, ZOOM_DEFAULT, and ZOOM_STEP.
Referenced by __call_visual_graph(), cmd_analysis_graph(), get_graph_string(), rz_core_agraph_print_interactive(), rz_core_agraph_print_tiny(), rz_core_graph_print(), and rz_core_visual_cmd().
Definition at line 3663 of file agraph.c.
References free(), key, sdb_encode(), sdb_set(), and v.
Referenced by agraph_sdb_init().
Definition at line 3991 of file agraph.c.
References rz_analysis_bb_t::addr, rz_core_t::analysis, cmd, free(), get_title(), n, rz_core_t::offset, rz_analysis_find_most_relevant_block_in(), rz_core_cmd0(), and rz_str_newf().
Referenced by rz_core_visual_graph().
Definition at line 885 of file agraph.c.
References d, find_dist(), dist_t::from, g, get_anode, if(), rz_list_find(), rz_list_iter_get_data(), rz_list_push(), RZ_NEW0, dist_t::to, and rz_ascii_node_t::x.
Referenced by original_traverse_l().
|
static |
Definition at line 1645 of file agraph.c.
References a, b, rz_graph_node_t::data, g, graph_foreach_anode, i, if(), and rz_graph_node_t::out_nodes.
Referenced by set_layout().
|
static |
Definition at line 1958 of file agraph.c.
References a, agraph_edge_free(), assign_layers(), backedge_info(), create_dummy_nodes(), create_layers(), e, fix_back_edge_dummy_nodes(), free(), from, g, get_anode, i, if(), k, regress::m, minimize_crossings(), n, NULL, place_dummies(), place_original(), remove_cycles(), rz_agraph_add_edge_at(), rz_agraph_del_edge(), rz_cons_break_end(), rz_cons_break_pop(), rz_cons_is_breaked(), rz_list_free(), rz_list_newf(), set_layer_gap(), to, and VERTICAL_NODE_SPACING.
Referenced by agraph_set_layout().
Definition at line 188 of file agraph.c.
References rz_core_t::config, rz_config_get_i(), rz_cons_enable_mouse(), rz_cons_show_cursor(), and x.
Referenced by rtr_visual(), and rz_core_visual_graph().
Definition at line 323 of file agraph.c.
References G, n, rz_cons_singleton(), rz_cons_t::use_utf8, UTF_CIRCLE, and W.
Referenced by agraph_print_node().
|
static |
Definition at line 2588 of file agraph.c.
References e, g, rz_ascii_node_t::gnode, graph_foreach_anode, rz_ascii_node_t::h, int, INT_MAX, len, NULL, rz_cons_break_pop(), rz_cons_is_breaked(), rz_graph_get_neighbours(), rz_graph_get_nodes(), rz_graph_innodes(), rz_list_length(), sdb_num_set(), v, rz_ascii_node_t::w, x, rz_ascii_node_t::x, and rz_ascii_node_t::y.
Referenced by agraph_print(), and agraph_set_layout().
|
static |
Definition at line 212 of file agraph.c.
References BORDER_HEIGHT, BORDER_WIDTH, g, graph_foreach_anode, INT_MAX, is_mini(), len, MARGIN_TEXT_X, MIN_NODE_HEIGHT, MIN_NODE_WIDTH, MINIGRAPH_NODE_MIN_WIDTH, MININODE_MIN_WIDTH, n, RZ_EDGES_X_INC, rz_graph_get_nodes(), rz_list_length(), RZ_MAX, rz_str_bounds(), and zoom.
Referenced by check_changes().
|
static |
Definition at line 2511 of file agraph.c.
References rz_cons_canvas_t::h, h, n, rz_cons_canvas_t::sx, rz_cons_canvas_t::sy, w, rz_cons_canvas_t::w, and x.
Referenced by check_changes(), rz_core_agraph_print_interactive(), rz_core_graph_print(), and rz_core_visual_graph().
Definition at line 3811 of file agraph.c.
References cb, g_cb::data, g_cb::edge_cb, g, g_cb::graph, graph_foreach_anode, n, rz_graph_get_neighbours(), and v.
Referenced by rz_agraph_foreach_edge().
Definition at line 3801 of file agraph.c.
References cb, g_cb::data, n, g_cb::node_cb, and v.
Referenced by rz_agraph_foreach().
|
static |
Definition at line 594 of file agraph.c.
References rz_graph_visitor_t::data, e, g, rz_list_append(), and RZ_NEW0.
Referenced by remove_cycles().
|
static |
Definition at line 606 of file agraph.c.
References a, b, rz_graph_visitor_t::data, e, rz_graph_edge_t::from, get_anode, if(), rz_graph_edge_t::nth, RZ_ABS, rz_list_append(), RZ_NEW0, and rz_graph_edge_t::to.
Referenced by create_dummy_nodes().
Definition at line 3934 of file agraph.c.
References rz_core_t::cons, rz_cons_t::line, NULL, rz_line_t::prompt_type, rz_cons_fgets(), rz_cons_flush(), rz_cons_get_size(), rz_cons_gotoxy(), rz_core_cmd0(), rz_line_hist_cmd_down(), rz_line_hist_cmd_up(), rz_line_hist_offset_down(), rz_line_hist_offset_up(), RZ_LINE_PROMPT_DEFAULT, RZ_LINE_PROMPT_OFFSET, rz_line_set_hist_callback(), and rz_line_set_prompt().
Referenced by rz_core_visual_graph().
|
static |
Definition at line 15 of file agraph.c.
Referenced by graphNodeMove(), mini_RzANode_print(), and rz_core_visual_graph().
|
static |
Definition at line 14 of file agraph.c.
Referenced by applyDisMode(), and rz_core_visual_graph().
Definition at line 16 of file agraph.c.
Referenced by agraph_update_title(), and rz_core_visual_graph().
|
static |
Definition at line 13 of file agraph.c.
Referenced by rz_core_visual_graph().
|
static |
Definition at line 17 of file agraph.c.
Referenced by rz_core_visual_graph().
|
static |
Definition at line 3608 of file agraph.c.
Referenced by agraph_init(), and rz_agraph_reset().