Module miden_air::stack::u32_ops

source ·

Structs

  • Contains intermediate limbs values required in u32 constraint checks.

Constants

Functions

  • The constraint checks if the top four element in the trace on aggregating forms a valid field element. no not. This constraint is applicable in U32SPLIT, U32MADD and U32MUL.
  • Enforces constraints for the u32 operations.
  • Enforces constraints of the general operation. The constaints checks if the lower 16-bits limbs are aggregated correctly or not. Therefore, the following constraints are enforced:
  • Enforces constraints of the U32ADD3 operation. The U32ADD3 operation adds the top three elements in the current trace of the stack. Therefore, the following constraints are enforced:
  • Enforces constraints of the U32ADD operation. The U32ADD operation adds the top two elements in the current trace of the stack. Therefore, the following constraints are enforced:
  • Enforces constraints of the U32DIV operation. The U32DIV operation divides the second element with the first element in the current trace. Therefore, the following constraints are enforced:
  • Enforces constraints of the U32MADD operation. The U32MADD operation adds the third element to the product of the first two elements in the current trace. Therefore, the following constraints are enforced:
  • Enforces constraints of the U32MUL operation. The U32MUL operation multiplies the top two elements in the current trace of the stack. Therefore, the following constraints are enforced:
  • Enforces constraints of the U32SPLIT operation. The U32SPLIT operation splits the top element into two 32-bit numbers. Therefore, the following constraints are enforced:
  • Enforces constraints of the U32SUB operation. The U32SUB operation subtracts the first element from the second in the current trace of the stack. Therefore, the following constraints are enforced:
  • Returns the number of transition constraints for the u32 operations.
  • Builds the transition constraint degrees for the u32 operations.