Please add static const int DT_MAX_STATES_PER_NODE = 4, comments its' relation to the 2 bits here, and use that instead of 4.