crashtest.hxsmith
hxsmith: a Csmith-style random Haxe program generator for fuzzing crashlink's decompiler.
generate(seed) -> a deterministic, terminating Haxe program that prints its state
pipeline -> compile, decompile the bytecode back to a project, recompile, run both
quality -> where on the `Quality` ladder the decompilation landed
runner -> many seeds in parallel, with a ladder histogram and failure clusters
Language coverage is split into plug-in Features under features/.
Submodules
crashtest.hxsmith.cli—crashtest hxsmith ...: generate, fuzz, and inspect coverage.crashtest.hxsmith.compare— Opcode-level comparison of the user functions of two images of the same program.crashtest.hxsmith.coverage— Which constructs of the Haxe parser's AST does some feature generate?crashtest.hxsmith.feature— The plug-in contract: oneFeatureper slice of the Haxe language.crashtest.hxsmith.features— Every module in this package defines and registers features; importing the package loads them all.crashtest.hxsmith.gen— The generator core: random choices, scopes, emission, and the typed expression/statement drivers.crashtest.hxsmith.job— One program to evaluate, independent of where it came from (generator, corpus, a file).crashtest.hxsmith.pipeline— Evaluate one program: compile, run, decompile, recompile, run, compare.crashtest.hxsmith.program— Assemble a whole Haxe module from a seed.crashtest.hxsmith.quality— The decompilation-quality ladder.crashtest.hxsmith.runner— Run many programs in parallel worker processes and summarise where they land on the ladder.crashtest.hxsmith.types— The slice of Haxe's type system the generator reasons about.