morganstanley / hobbes

A language and an embedded JIT compiler
http://hobbes.readthedocs.io/
Apache License 2.0
1.16k stars 105 forks source link

with a large (>500) match table, variant might cause "not a primitive match table" error #451

Closed mo-xiaoming closed 1 year ago

mo-xiaoming commented 1 year ago

if isPrimSelection is on, and pivoting on a variant like |Close|, it creates a LoadVars state at https://github.com/mo-xiaoming/hobbes/blob/main/lib/hobbes/lang/pat/dfa.C#L93, but LoadVars cannot be handled in a prim table https://github.com/mo-xiaoming/hobbes/blob/main/lib/hobbes/lang/pat/dfa.C#L1471