From 6662b774b37840380c2e2274a4ca01680b72ba90 Mon Sep 17 00:00:00 2001 From: Mason Reed Date: Sat, 28 Jun 2025 18:39:09 -0400 Subject: [Rust] Misc things for WARP - Make LowLevelILFunction::from_raw public" - Add a helper to get lifted il from flow graph --- rust/src/flowgraph.rs | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'rust/src/flowgraph.rs') diff --git a/rust/src/flowgraph.rs b/rust/src/flowgraph.rs index 2d1d986c..4489d950 100644 --- a/rust/src/flowgraph.rs +++ b/rust/src/flowgraph.rs @@ -124,6 +124,10 @@ impl FlowGraph { unsafe { BNSetViewForFlowGraph(self.handle, view_ptr) } } + pub fn lifted_il(&self) -> Option> { + self.function()?.lifted_il().ok() + } + pub fn low_level_il(&self) -> Option> { unsafe { let llil_ptr = BNGetFlowGraphLowLevelILFunction(self.handle); -- cgit v1.3.1