angr.angrdb.v2

class angr.angrdb.v2.AngrDbV2

Bases: object

Reader and writer of the angrDb v2-specific CFG layout: one Edge message per CFG edge, addressed by node address (v3 stores the graph as segment blobs instead). Static methods only.

static edge_data(edge_pb2)
Return type:

dict

static parse_cfg_edges(cmsg, model)

Add the per-edge messages of a v2 CFG record to a model whose nodes are already in place.

Return type:

None

Parameters:

model (CFGModel)

static parse_cfg_edges_spilled(cmsg, graph)

Like parse_cfg_edges, for a graph whose nodes were bulk-imported without CFGNode objects.

Return type:

None

Parameters:

graph (SpillingCFG)

static serialize_cfg(model)

Serialize a CFG model in the v2 layout: nodes plus per-edge messages, no graph segments.

Parameters:

model (CFGModel)