Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

use vm_compute instead of Ltac to check instruction bounds #1429

Merged
merged 1 commit into from
Oct 13, 2022

Conversation

samuelgruetter
Copy link
Contributor

@samuelgruetter samuelgruetter commented Oct 13, 2022

Should improve #1427

Closes #1428

Definition good_trace s t s' :=
exists ioh, SPI.mmio_trace_abstraction_relation ioh t /\
bverify.bvalidInstructions Decode.RV32IM garagedoor_insns = true.
Proof. vm_compute. reflexivity. Qed.
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Why not

Suggested change
Proof. vm_compute. reflexivity. Qed.
Proof. vm_cast_no_check (eq_refl true). Qed.

? (Is it slow enough to matter?)

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

? (Is it slow enough to matter?)

It's instantaneous, so the question I asked myself was whether to keep it as a separate lemma at all, not how to optimize it 😉

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants