Closed Sword-Smith closed 3 weeks ago
I saw this pattern in stark_verify and thought we might as well have the as a helper function in the memory module.
stark_verify
memory
let first_free_address = nondeterminism .ram .keys() .map(|&b| b.value()) .filter(|&b| b < (1u64 << 32)) .max() .map(|m| BFieldElement::new(m + 1)) .unwrap_or(BFieldElement::ZERO);
I saw this pattern in
stark_verify
and thought we might as well have the as a helper function in thememory
module.