diff options
| author | Brandon Miller <brandon@vector35.com> | 2025-09-25 08:55:34 -0400 |
|---|---|---|
| committer | Brandon Miller <brandon@vector35.com> | 2025-09-29 07:07:41 -0400 |
| commit | 9a9d7d98c2b49c734771397a8d37aca0279dfa21 (patch) | |
| tree | 7925d31daeeb265e58995bc392f0960a58c7a065 /rust/src/basic_block.rs | |
| parent | 63e37dfb1185552135e397a786e92cd8669880a8 (diff) | |
Rust APIs needed for guided analysis mode
Required for implementing guided analysis mode in custom
implementations of analyze_basic_blocks
Diffstat (limited to 'rust/src/basic_block.rs')
| -rw-r--r-- | rust/src/basic_block.rs | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/rust/src/basic_block.rs b/rust/src/basic_block.rs index da41e712..d415b148 100644 --- a/rust/src/basic_block.rs +++ b/rust/src/basic_block.rs @@ -205,6 +205,10 @@ impl<C: BlockContext> BasicBlock<C> { } } + pub fn has_invalid_instructions(&self) -> bool { + unsafe { BNBasicBlockHasInvalidInstructions(self.handle) } + } + pub fn raw_length(&self) -> u64 { unsafe { BNGetBasicBlockLength(self.handle) } } |
