TritonVM / triton-vm

Triton 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.
https://triton-vm.org
Apache License 2.0
247 stars 37 forks source link

Expose constants giving number of constraints #252

Closed Sword-Smith closed 8 months ago

Sword-Smith commented 8 months ago

While integrating AIR constraint evaluation into tasm-lib it would be very convenient if I could just read the number of constraints from Triton VM. Just making these four constants public would suffice: NUM_INITIAL_CONSTRAINTS, NUM_CONSISTENCY_CONSTRAINTS, NUM_TRANSITION_CONSTRAINTS, NUM_TERMINAL_CONSTRAINTS.