crashtest.hxsmith.features.arrays
Array
Every array this feature builds is non-empty, so a masked index ((i & 0x7fffffff) % a.length) is always valid.
Growth is capped (length < 6 before push/insert, .slice(0, 8) after concat) so that loops which feed an array
back into itself stay finite and fast.
class Arrays(Feature)
name
name = 'arrays'
summary
summary = 'Array<T>: literals, comprehensions, map/filter/sort, indexed read/write, push/insert'
covers
covers = ('EArrayDecl', 'EArray', 'EFor', 'EFunction', 'ECheckType', 'std:Array')
order
order = 25
types
def types(g: Gen, depth: int)
exprs
def exprs(g: Gen, ty: Ty)
stmts
def stmts(g: Gen)
show
def show(g: Gen, ty: Ty, expr: str)
supported
def supported(ty: Ty) -> bool
Array