Skip to content

Add verified_bitflags crate#486

Merged
rikosellic merged 2 commits into
asterinas:mainfrom
rikosellic:verified-bitflags
Jun 1, 2026
Merged

Add verified_bitflags crate#486
rikosellic merged 2 commits into
asterinas:mainfrom
rikosellic:verified-bitflags

Conversation

@rikosellic
Copy link
Copy Markdown
Collaborator

This is a simple Verus-verified version of the bitflags crate.

@rikosellic rikosellic added the AI-assist AI-aided proof or generation label Jun 1, 2026
@rikosellic rikosellic merged commit ef16b5e into asterinas:main Jun 1, 2026
1 of 3 checks passed
@rikosellic rikosellic deleted the verified-bitflags branch June 1, 2026 09:14
@hiroki-chen
Copy link
Copy Markdown
Collaborator

Would it be safer to introduce the "real" semantics of bitflags (i.e., use the set semantics)

@rikosellic
Copy link
Copy Markdown
Collaborator Author

Would it be safer to introduce the "real" semantics of bitflags (i.e., use the set semantics)

Yeah that is absolutly desired. Please feel free to creats PRs if you are availae. The current version is a bare minimum to support its usage in ostd. I'm now focusing on replacing those poorly defined flags and related functions in ostd.

@hiroki-chen
Copy link
Copy Markdown
Collaborator

Sure, I will do it tomorrow.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

AI-assist AI-aided proof or generation

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants