Skip to content

Commit

Permalink
save a few bytes by not generating r0
Browse files Browse the repository at this point in the history
  • Loading branch information
joonazan committed Jun 4, 2024
1 parent 3742987 commit 5c58bf2
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions src/single_instruction_test/vm.rs
Original file line number Diff line number Diff line change
Expand Up @@ -42,8 +42,10 @@ impl VirtualMachine {

impl<'a> Arbitrary<'a> for VirtualMachine {
fn arbitrary(u: &mut arbitrary::Unstructured<'a>) -> arbitrary::Result<Self> {
let mut registers: [U256; 16] = u.arbitrary()?;
registers[0] = U256::zero();
let mut registers = [U256::zero(); 16];
for r in &mut registers[1..] {
*r = u.arbitrary()?;
}
let mut register_pointer_flags = u.arbitrary()?;
register_pointer_flags &= !1;

Expand Down

0 comments on commit 5c58bf2

Please sign in to comment.