fuzzgen: Always generate reachable blocks (#5034)

* fuzzgen: Always reachable blocks

* fuzzgen: Rename BlockTerminator

* fuzzgen: Rename `finalize_block`

* fuzzgen: Use `cloned` instead of map clone

Thanks @jameysharp!

Co-authored-by: Jamey Sharp <jamey@minilop.net>

* fuzzgen: `rustfmt`

* fuzzgen: Document paramless targets

* fuzzgen:  Add `BlockTerminatorKind`

* fuzzen: Update BrTable/Switch comment

* fuzzgen: Minor cleanup

Co-authored-by: Jamey Sharp <jamey@minilop.net>
This commit is contained in:
Afonso Bordado
2022-10-17 20:51:20 +01:00
committed by GitHub
parent 1aaea279e5
commit 766ecb561e
3 changed files with 234 additions and 244 deletions

View File

@@ -33,6 +33,10 @@ impl JumpTableData {
table: Vec::with_capacity(capacity),
}
}
/// Create a new jump table with the provided blocks
pub fn with_blocks(table: Vec<Block>) -> Self {
Self { table }
}
/// Get the number of table entries.
pub fn len(&self) -> usize {