samrushing/irken-compiler

edge case with perfect hash.

samrushing opened this issue · 0 comments

Stumbled on an edge case for the perfect hash generator for ambiguous field lookups.
If there are exactly 4 entries (i.e., two pairs of ambiguous fields) the hash function is unable to fulfill its mandate.

This leads to the compiler spinning forever trying every different hash seed.