Skip to content

Commit d4289e1

Browse files
committed
ooops, wrong file, _this_ one is the entry nodes
1 parent aad3f09 commit d4289e1

File tree

1 file changed

+6
-0
lines changed

1 file changed

+6
-0
lines changed

jingle/src/analysis/cfg/mod.rs

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -267,6 +267,12 @@ impl<N: CfgState, D: ModelTransition<N::Model>> PcodeCfg<N, D> {
267267
.map(move |idx| self.graph.node_weight(idx).unwrap())
268268
}
269269

270+
pub fn entry_nodes(&self) -> impl Iterator<Item = &N> {
271+
self.graph
272+
.externals(Direction::Incoming)
273+
.map(move |idx| self.graph.node_weight(idx).unwrap())
274+
}
275+
270276
pub fn edge_weights(&self) -> impl Iterator<Item = &D> {
271277
self.ops.values()
272278
}

0 commit comments

Comments
 (0)