const size_t ntags = dfa.tags.size();
// all-zero tag configuration must have static number zero
+ ctx.dc_tagvertbl.insert_const(TAGVER_ZERO);
DASSERT(ZERO_TAGS == ctx.dc_tagvertbl.insert_const(TAGVER_ZERO));
// initial tag versions: [1 .. N]
- const uint32_t INITIAL_TAGS = ctx.dc_tagvertbl.insert_succ(1);
+ const tcid_t INITIAL_TAGS = ctx.dc_tagvertbl.insert_succ(1);
// other versions: [ .. -(N + 1)] and [N + 1 .. ]
dfa.maxtagver = static_cast<tagver_t>(ntags);
, index()
{
// empty command must have static number zero
+ insert(NULL);
DASSERT(TCID0 == insert(NULL));
}
uint64_t rule2key(size_t rule, size_t key, size_t def)
{
switch (key) {
- default: DASSERT(false); // shouldn't happen
case 8: return rule2key<uint64_t>(rule, def);
case 4: return rule2key<uint32_t>(rule, def);
case 2: return rule2key<uint16_t>(rule, def);
case 1: return rule2key<uint8_t>(rule, def);
}
+ // shouldn't happen
+ DASSERT(false);
+ return 0;
}
} // namespace re2c