Allocate final tag versions on the go instead of preallocating versions [1 .. N].
authorUlya Trofimovich <skvadrik@gmail.com>
Tue, 31 Jan 2017 18:53:57 +0000 (18:53 +0000)
committerUlya Trofimovich <skvadrik@gmail.com>
Tue, 31 Jan 2017 18:53:57 +0000 (18:53 +0000)
commit5b7de347af2a3bf94e33d00eb7afe1f1580a5940
treed146cf882f6f29b037c1353c7b30bc2c333bb56c
parent5ca85b21e424c412ac7750c9c8393778a2436929
Allocate final tag versions on the go instead of preallocating versions [1 .. N].

One cannot rely the fact that final versions are [1 .. N] anyway (they are renamed
during tag optimization), so this is not convenient as it seems.

Now versions start from 1, which looks better (more logical) on the pictures.
15 files changed:
re2c/src/ir/dfa/determinization.cc
re2c/src/ir/dfa/find_state.cc
re2c/test/tags/bug121_fix_multiple.i--tags--input(custom).c
re2c/test/tags/bug121_var_multiple.i--tags--eager-skip--input(custom).c
re2c/test/tags/bug121_var_multiple.i--tags--eager-skip.c
re2c/test/tags/bug121_var_multiple.i--tags--input(custom).c
re2c/test/tags/bug121_var_multiple.i--tags.c
re2c/test/tags/counter1.i--tags.c
re2c/test/tags/fallback3.i--tags.c
re2c/test/tags/fallback4.i--tags.c
re2c/test/tags/fix5_trail.i--tags--input(custom).c
re2c/test/tags/lost_yybackuptag.i--tags--no-lookahead--input(custom).c
re2c/test/tags/skip_tags_disorder1.i--tags--no-lookahead.c
re2c/test/tags/topsort1.i--tags.c
re2c/test/tags/twopass.i--tags.c