| Crates.io | triton-opcodes |
| lib.rs | triton-opcodes |
| version | 0.31.0 |
| created_at | 2022-12-22 11:19:40.762568+00 |
| updated_at | 2023-07-05 09:57:10.811908+00 |
| description | Triton VM instructions and their translations |
| homepage | https://triton-vm.org/ |
| repository | https://github.com/TritonVM/triton-vm |
| max_upload_size | |
| id | 743831 |
| size | 71,931 |
Triton VM (GitHub, Crates.io) is a virtual machine that comes with Algebraic Execution Tables (AET) and Arithmetic Intermediate Representations (AIR) for use in combination with a STARK proof system.
The package triton-opcodes delivers the Instruction type and a parser from assembly like:
// Swap the top two stack elements so they're sorted.
//
// The larger element is at the top.
//
// Before: _ a b
// After: _ min(a, b) max(a, b)
minmax:
dup 1 // _ a b a
dup 1 // _ a b a b
lt // _ a b (b < a)
skiz swap 1 // _ min(a, b) max(a, b)
return
Features:
lt by simple substitution.<name>: and jumping to them looks like call <name>.// ....