From: Ulya Trofimovich Date: Thu, 6 Dec 2018 22:01:25 +0000 (+0000) Subject: Correctly identify mapped TDFA state with --dump-dfa-raw option. X-Git-Tag: 1.2~291 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=69e915036529e37207fde1d85cd4ecf473c5e86a;p=re2c Correctly identify mapped TDFA state with --dump-dfa-raw option. --- diff --git a/re2c/src/dfa/dump.cc b/re2c/src/dfa/dump.cc index 08cc78ee..64086081 100644 --- a/re2c/src/dfa/dump.cc +++ b/re2c/src/dfa/dump.cc @@ -108,11 +108,12 @@ void dump_dfa_t::state(const determ_context_t &ctx, bool isnew) // transitions (other states) else { if (!isnew) { + const dfa_state_t *o = dfa.states[origin]; fprintf(stderr, " i%u [style=dotted]\n" " i%u:s -> %u:s [style=dotted label=\"", - state, state, origin); - dump_tcmd(dfa.states[origin]->tcmd[symbol]); + state, state, static_cast(o->arcs[symbol])); + dump_tcmd(o->tcmd[symbol]); fprintf(stderr, "\"]\n"); }