The Bevor graph

A deeply annotated program model: calls, state, conditions, and path diffs

The Bevor graph

The graph is how Bevor understands a codebase. It is not a visualization bolted on after the fact — it is the structure findings, analyses, chat, and carry-forward all reason over.

Most "code graphs" are adjacency lists: this function touches that function. That is not enough for security. Bevor's graph is a deeply annotated program model. Edges are typed and carry meaning. Call chains are not a list of names; they render the path, including how state moves, which fields are read or written, which branches are live, and what a call actually does to storage.

That depth is why a finding can stay pinned to an execution path after a refactor, and why a one-line helper change can show you every entrypoint it actually reached.

⌄src/core/ImprintRWA.sol
+2-1
@@ -184,1 +184,2 @@ supportsInterface
184-return super.supportsInterface(interfaceId);
184+return interfaceId == type(IERC721).interfaceId
185+ || super.supportsInterface(interfaceId);
Change one return branch→ 194 affected nodes
⌘   581 nodes   1397 edges
‹/› Code⌘ Graph
Impact of the selected code diff across the product code graphThe selected small diff affects 194 connected code entities. Affected nodes are colored and the rest of the graph is muted.
98%3Findings
supportsInterface()

src/core/ImprintRWA.sol

A small change to supportsInterface() expands to 194 connected nodes before analysis begins.

Select a small diff to see downstream reach. Toggle All code for surrounding context.

Info

The explorer uses a small curated Solidity graph. Production graphs can contain thousands of nodes and edges, clustered by structure and analysis context. The Dashboard rendering of call chains is the full picture; this widget is only blast radius.

Not "this node touches this node"

A touch-graph tells you two symbols are related. It cannot tell you how.

Bevor records, among other things:

  • Calls and external calls — who invokes whom, including unresolved or low-level calls when the target is not a clean symbol.
  • Reads and writes — which storage, fields, and values a node uses or mutates, bound back to the declaration they actually refer to.
  • Uses — data that flows through a path without being a simple storage slot (arguments, aliases, intermediate bindings).
  • Conditional logic — has_condition and related structure so a branch is a first-class part of the path, not a comment on a function node.
  • State propagation — a write is not local. Other nodes that read or write the same state sit on the same story. A change to setVault() is not "that function plus its callees"; it is also every path that later trusts the vault it wrote.
  • Type and structure — inherits, implements, extends, overrides, defines, initializes, instantiates, typed-as, constraints, attributes.
  • Effects — emits, throws, accesses, and similar language-level effects that change what a path can do.

The same relationships show up in call-chain renderings: each hop can carry field names on both sides, resolved storage bindings (read / write / use), whether the hop is an argument, whether the chain cycled, and the edge that justified the hop. That is what "in-depth" means here. You are looking at how execution behaves, not a hairball of identifiers.

Why a diff is not enough

A diff answers "what lines changed." Security questions are usually "what can now happen." Those are different.

A one-line change in a shared helper can alter every entrypoint that reaches it, or only the branch that writes a slot those entrypoints later read. A large diff can be noise on an unused path. Without reads, writes, conditions, and propagation, you cannot tell which.

The graph is how Bevor decides whether two snapshots still share a path, and therefore whether a finding should carry forward, move, or be treated as remediated.

What you can do with it

  • Walk call chains that include state and branch context, not just callee names.
  • Compare execution paths across code versions.
  • Attach findings to a node or to a location reached from an entrypoint, with the path as the tether.
  • Give chat bounded, annotated context instead of a raw checkout.

The Dashboard is built to render this. The CLI, SDK, and API expose the same nodes, edges, and call chains — see those references if you are traversing the graph yourself.

On this page