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

Sui: Add invariant for Bytecode.t #640

Open
clarus opened this issue Dec 18, 2024 · 0 comments
Open

Sui: Add invariant for Bytecode.t #640

clarus opened this issue Dec 18, 2024 · 0 comments
Assignees

Comments

@clarus
Copy link
Collaborator

clarus commented Dec 18, 2024

Add an invariant for the Bytecode.t type in order to make the verify_instr_is_valid works.

It should look like:

Module Bytecode.
  Module Valid.
    Definition t (x : Bytecode.t) : Prop :=
      match x with
      | Bytecode.CastU16 => True
      ... (* most cases with `True` *)
      | Bytecode.VecPack _ z => Integer.Valid.t IntegerKind.U64 z
      (* sometimes with something else like above *)
      ...
      end.
@clarus clarus assigned clarus and 0xMushow and unassigned clarus Dec 18, 2024
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

No branches or pull requests

2 participants