Skip to content

bloqade.lanes.bytecode.decode.StackUnderflowError

← Module overview

classStackUnderflowErrorsource

bloqade.lanes.bytecode.decode.StackUnderflowError

Bases: Exception

Raised by ``StackMachineFrame`` when a pop operation would fail.

Signature
class StackUnderflowError(snapshot: tuple[ir.SSAValue, ...], required: int)

Carries a snapshot of the stack at the point of failure and how many values the operation required. The decoder catches this at the _visit dispatcher and rewraps into DecodingError with instruction context (index + opcode name).

Parameters

NameTypeDescription
snapshottuple[ir.SSAValue, ...]
requiredint

Attributes

NameTypeDefaultDescription
snapshot—snapshot
required—required