compiler: use hash-sets to track visited sets.