Documentation
¶
Overview ¶
Package vmcompare provides systematic VM opcode verification by comparing go-lua execution output against C Lua 5.5.1 reference output.
For each opcode, a minimal Lua snippet is run on both VMs and stdout is compared.
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func CompareVM ¶
CompareVM runs a test case on both VMs and compares normalized output. Returns (match bool, cOutput string, goOutput string).
func Normalize ¶
Normalize output for comparison: trim trailing whitespace per line, normalize NaN/inf representations, trim trailing newline.
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.