rust-osdev / x86_64

Library to program x86_64 hardware.
https://docs.rs/x86_64
Apache License 2.0
797 stars 132 forks source link

optimize `Step` impl for `VirtAddr` #462

Closed Freax13 closed 8 months ago

Freax13 commented 8 months ago

This PR optimizes the Step methods for VirtAddr.

Some of these optimizations were already present in the PR that introduced the Step implementation but were removed over safety concerns. To address these concerns, this PR also adds some kani proof harnesses to prove the correctness of the implementations. The proof harnesses are run in CI.