MCPcopy Create free account
hub / github.com/CodeSentryAI/lockbud / post_dominates

Function post_dominates

src/analysis/postdom/mod.rs:14–24  ·  view source on GitHub ↗
(
    this: Location,
    other: Location,
    post_dominators: &PostDominators<BasicBlock>,
)

Source from the content-addressed store, hash-verified

12mod tests;
13
14pub fn post_dominates(
15 this: Location,
16 other: Location,
17 post_dominators: &PostDominators<BasicBlock>,
18) -> bool {
19 if this.block == other.block {
20 other.statement_index <= this.statement_index
21 } else {
22 post_dominators.is_post_dominated_by(other.block, this.block)
23 }
24}
25
26pub trait WithEndNodes: DirectedGraph {
27 fn end_nodes(&self) -> Vec<Self::Node>;

Callers

nothing calls this directly

Calls 1

is_post_dominated_byMethod · 0.80

Tested by

no test coverage detected