Skip to main content

WPE_STREAM_MAXK

Constant WPE_STREAM_MAXK 

Source
pub const WPE_STREAM_MAXK: usize = 128;
Expand description

Const-table depth (konst[0:MAXK-1]). The transformer uses 41; a wider straight-line program (the postsynth high-register lock’s 90-value sum) needs 91 distinct constants, so MAXK=128 covers the family. The unchecked image builder skips the konst.len() <= MAXK guard, so an over-MAXK program would silently read a nonexistent const slot — 91 > the old 64 was one of the four caps the high-register lock overflowed.