mirror of
https://github.com/trailofbits/buttercup
synced 2026-06-21 14:11:39 +00:00
f4446543ae
* Add skeleton for api call * Modify encoding and decoding nodes/edges * Add change encoding from base64 to hex * reformat * Target libpng function in example * remove old project name * cli fixes * Add get_function via byte offsets * refactor --------- Co-authored-by: Ian Smith <ian.smith@trailofbits.com>
650 B
650 B
Program Model API
Kythe schema.
Getters
get_function_body(source_path: Path | None, function_name: str) -> List[str]: Get function body(s) by name.
get_distinct_edge_types() -> List[str]: Get distinct edge types.
get_distinct_node_types() -> List[Node]: Get distinct node types.
Setters
set_node_property(node: Node, property_name: str, property_value: str) -> bool: Set a property on a node.
set_edge_property(edge: Edge, property_name: str, property_value: str) -> bool: Set a property on an edge.
Example Usage
cd afc-crs-trail-of-bits/program-model
uv run mock/api.py