|
PostgreSQL Source Code git master
|

Go to the source code of this file.
Macros | |
| #define | NISERR() VISERR(nfa->v) |
| #define | NERR(e) VERR(nfa->v, (e)) |
| #define | BULK_ARC_OP_USE_SORT(nsrcarcs, ndestarcs) ((nsrcarcs) < 4 ? 0 : ((nsrcarcs) > 32 || (ndestarcs) > 32)) |
| #define | CA(ct, at) (((ct)<<CHAR_BIT) | (at)) |
| #define BULK_ARC_OP_USE_SORT | ( | nsrcarcs, | |
| ndestarcs | |||
| ) | ((nsrcarcs) < 4 ? 0 : ((nsrcarcs) > 32 || (ndestarcs) > 32)) |
Definition at line 758 of file regc_nfa.c.
Definition at line 39 of file regc_nfa.c.
Definition at line 368 of file regc_nfa.c.
References a, arcbatch::a, ARCBATCHSIZE, fb(), FIRSTABSIZE, nfa::freearcs, nfa::lastab, nfa::lastabused, MALLOC, MAXABSIZE, arcbatch::narcs, NERR, REG_ESPACE, REG_ETOOBIG, REG_MAX_COMPILE_SPACE, vars::spaceused, and nfa::v.
Referenced by createarc().
Definition at line 3051 of file regc_nfa.c.
References a, checkmatchall(), fb(), NISERR, state::outs, nfa::post, nfa::pre, REG_UEMPTYMATCH, and REG_UIMPOSSIBLE.
Referenced by ExecVacuum(), GetCommandLogLevel(), and optimize().
Definition at line 2558 of file regc_nfa.c.
References a, assert, clonesuccessorstates(), cparc(), fb(), freearc(), freestate(), isconstraintarc(), newstate(), state::next, NISERR, nfa::nstates, state::outs, nfa::states, and state::tmp.
Referenced by findconstraintloop().
Definition at line 3612 of file regc_nfa.c.
Referenced by carcsort().
Definition at line 3605 of file regc_nfa.c.
References carc_cmp(), and qsort.
Referenced by compact().
Definition at line 489 of file regc_nfa.c.
References a, assert, and fb().
Referenced by moveouts().
Definition at line 3469 of file regc_nfa.c.
References a, assert, fb(), and state::ins.
Referenced by checkmatchall().
Definition at line 3415 of file regc_nfa.c.
References a, assert, fb(), and state::outs.
Referenced by checkmatchall().
Definition at line 3097 of file regc_nfa.c.
References a, assert, nfa::bos, colormap::cd, check_in_colors_match(), check_out_colors_match(), checkmatchall_recurse(), nfa::cm, DUPINF, nfa::eos, fb(), colordesc::flags, nfa::flags, FREE, i, MALLOC, MATCHALL, nfa::maxmatchall, nfa::minmatchall, state::next, state::no, nfa::nstates, state::outs, PLAIN, nfa::post, nfa::pre, PSEUDO, RAINBOW, nfa::states, and state::tmp.
Referenced by analyze().
Definition at line 3277 of file regc_nfa.c.
References a, assert, checkmatchall_recurse(), DUPINF, fb(), i, INTERRUPT, MALLOC, state::no, nfa::nstates, state::outs, nfa::post, RAINBOW, vars::re, STACK_TOO_DEEP, state::tmp, and nfa::v.
Referenced by checkmatchall(), and checkmatchall_recurse().
Definition at line 2964 of file regc_nfa.c.
References assert, cleartraverse(), dropstate(), fb(), state::flag, markcanreach(), markreachable(), state::next, state::nins, NISERR, state::no, nfa::nstates, nfa::post, nfa::pre, nfa::states, and state::tmp.
Definition at line 1488 of file regc_nfa.c.
References a, cleartraverse(), fb(), NERR, state::outs, vars::re, REG_ETOOBIG, STACK_TOO_DEEP, state::tmp, and nfa::v.
Referenced by cleanup(), cleartraverse(), dupnfa(), and removeconstraints().
|
static |
|
static |
Definition at line 2704 of file regc_nfa.c.
References a, a2, assert, clonesuccessorstates(), arc::co, cparc(), dropstate(), fb(), FREE, arc::from, hasconstraintout(), state::ins, isconstraintarc(), MALLOC, NERR, newstate(), state::nins, NISERR, vars::re, REG_ESPACE, REG_ETOOBIG, STACK_TOO_DEEP, state::tmp, arc::type, and nfa::v.
Referenced by breakconstraintloop(), and clonesuccessorstates().
Definition at line 1987 of file regc_nfa.c.
References a, AHEAD, assert, BEHIND, CA, colormap::cd, nfa::cm, arc::co, COMPATIBLE, colordesc::flags, INCOMPATIBLE, LACON, NOTREACHED, PLAIN, PSEUDO, RAINBOW, REPLACEARC, SATISFIED, and arc::type.
Definition at line 3514 of file regc_nfa.c.
References a, cnfa::arcs, assert, nfa::bos, cnfa::bos, carcsort(), nfa::cm, CNFA_NOPROGRESS, carc::co, COLORLESS, nfa::eos, cnfa::eos, fb(), nfa::flags, cnfa::flags, FREE, HASLACONS, LACON, MALLOC, maxcolor(), nfa::maxmatchall, cnfa::maxmatchall, nfa::minmatchall, cnfa::minmatchall, cnfa::ncolors, NERR, state::next, NISERR, state::no, state::nouts, cnfa::nstates, state::outs, PLAIN, nfa::post, cnfa::post, nfa::pre, cnfa::pre, REG_ASSERT, REG_ESPACE, nfa::states, cnfa::states, and cnfa::stflags.
Definition at line 882 of file regc_nfa.c.
References a, assert, BULK_ARC_OP_USE_SORT, cparc(), createarc(), fb(), arc::inchain, INTERRUPT, NISERR, NOTREACHED, vars::re, sortins(), sortins_cmp(), and nfa::v.
Referenced by pull().
Definition at line 1167 of file regc_nfa.c.
References a, assert, BULK_ARC_OP_USE_SORT, cparc(), createarc(), fb(), INTERRUPT, NISERR, NOTREACHED, arc::outchain, vars::re, sortouts(), sortouts_cmp(), and nfa::v.
Referenced by push().
|
static |
Definition at line 608 of file regc_nfa.c.
References fb(), arc::from, newarc(), and arc::to.
Referenced by breakconstraintloop(), clonesuccessorstates(), copyins(), copyouts(), duptraverse(), moveins(), moveouts(), pull(), and push().
|
static |
Definition at line 323 of file regc_nfa.c.
References a, allocarc(), assert, nfa::cm, arc::co, colorchain(), COLORED, fb(), arc::from, arc::inchainRev, state::ins, state::nins, NISERR, state::nouts, arc::outchain, arc::outchainRev, state::outs, nfa::parent, and arc::to.
Referenced by copyins(), copyouts(), mergeins(), moveins(), moveouts(), and newarc().
Definition at line 1281 of file regc_nfa.c.
References assert, deltraverse(), fb(), FREESTATE, and NISERR.
Definition at line 1304 of file regc_nfa.c.
References a, assert, deltraverse(), fb(), freearc(), FREESTATE, freestate(), NERR, state::nins, NISERR, state::no, state::nouts, state::outs, vars::re, REG_ETOOBIG, STACK_TOO_DEEP, state::tmp, and nfa::v.
Referenced by delsub(), and deltraverse().
Definition at line 226 of file regc_nfa.c.
References a, fb(), freearc(), freestate(), state::ins, and state::outs.
Referenced by cleanup(), clonesuccessorstates(), fixconstraintloops(), fixempties(), pullback(), and pushfwd().
Definition at line 3646 of file regc_nfa.c.
References nfa::bos, nfa::cm, COLORLESS, DUPINF, nfa::eos, fb(), nfa::flags, fprintf, HASCANTMATCH, HASLACONS, MATCHALL, nfa::maxmatchall, nfa::minmatchall, state::next, state::no, state::nouts, nfa::parent, nfa::post, nfa::pre, and nfa::states.
Referenced by fixconstraintloops(), fixempties(), optimize(), pullback(), and pushfwd().
|
static |
Definition at line 1355 of file regc_nfa.c.
References cleartraverse(), duptraverse(), EMPTY, fb(), newarc(), start, and state::tmp.
Definition at line 1379 of file regc_nfa.c.
References a, assert, cparc(), duptraverse(), fb(), NERR, newstate(), NISERR, state::outs, vars::re, REG_ETOOBIG, STACK_TOO_DEEP, state::tmp, and nfa::v.
Referenced by dupnfa(), and duptraverse().
|
static |
Definition at line 2303 of file regc_nfa.c.
References a, EMPTY, emptyreachable(), fb(), NERR, state::no, vars::re, REG_ETOOBIG, STACK_TOO_DEEP, state::tmp, and nfa::v.
Referenced by emptyreachable(), and fixempties().
Definition at line 2469 of file regc_nfa.c.
References a, assert, breakconstraintloop(), fb(), findconstraintloop(), isconstraintarc(), NERR, state::outs, vars::re, REG_ETOOBIG, STACK_TOO_DEEP, state::tmp, and nfa::v.
Referenced by findconstraintloop(), and fixconstraintloops().
Definition at line 2370 of file regc_nfa.c.
References a, assert, dropstate(), dumpnfa(), fb(), findconstraintloop(), state::flag, freearc(), isconstraintarc(), state::next, state::nins, NISERR, state::nouts, state::outs, nfa::states, and state::tmp.
Referenced by optimize().
Definition at line 2076 of file regc_nfa.c.
References a, assert, dropstate(), dumpnfa(), EMPTY, emptyreachable(), fb(), state::flag, FREE, freearc(), hasnonemptyout(), arc::inchain, state::ins, MALLOC, mergeins(), moveins(), moveouts(), NERR, state::next, state::nins, NISERR, state::no, state::nouts, nfa::nstates, state::outs, REG_ESPACE, s2, nfa::states, and state::tmp.
Referenced by optimize().
Definition at line 418 of file regc_nfa.c.
References assert, nfa::cm, COLORED, fb(), nfa::freearcs, arc::from, arc::inchain, state::ins, state::nins, state::nouts, arc::outchain, state::outs, nfa::parent, arc::to, and uncolorchain().
Referenced by breakconstraintloop(), deltraverse(), dropstate(), fixconstraintloops(), fixempties(), moveins(), moveouts(), pull(), pullback(), push(), pushfwd(), removecantmatch(), and removetraverse().
Definition at line 3633 of file regc_nfa.c.
References cnfa::arcs, assert, FREE, NULLCNFA, cnfa::states, cnfa::stflags, and ZAPCNFA.
Definition at line 107 of file regc_nfa.c.
References ARCBATCHSIZE, fb(), FREE, nfa::lastab, nfa::lastsb, arcbatch::next, statebatch::next, nfa::nstates, vars::spaceused, STATEBATCHSIZE, and nfa::v.
Referenced by newnfa().
Definition at line 242 of file regc_nfa.c.
References assert, fb(), state::flag, FREESTATE, nfa::freestates, state::next, state::nins, state::no, state::nouts, state::prev, nfa::slast, and nfa::states.
Referenced by breakconstraintloop(), deltraverse(), and dropstate().
Definition at line 2349 of file regc_nfa.c.
References a, fb(), isconstraintarc(), and state::outs.
Referenced by clonesuccessorstates().
Definition at line 2331 of file regc_nfa.c.
References a, AHEAD, BEHIND, and LACON.
Referenced by breakconstraintloop(), clonesuccessorstates(), findconstraintloop(), fixconstraintloops(), and hasconstraintout().
|
static |
Definition at line 3025 of file regc_nfa.c.
References a, fb(), state::ins, markcanreach(), NERR, vars::re, REG_ETOOBIG, STACK_TOO_DEEP, state::tmp, and nfa::v.
Referenced by cleanup(), and markcanreach().
|
static |
Definition at line 2999 of file regc_nfa.c.
References a, fb(), markreachable(), NERR, state::outs, vars::re, REG_ETOOBIG, STACK_TOO_DEEP, state::tmp, and nfa::v.
Referenced by cleanup(), and markreachable().
|
static |
Definition at line 971 of file regc_nfa.c.
References a, assert, createarc(), fb(), i, state::ins, INTERRUPT, j, NISERR, NOTREACHED, qsort, vars::re, sortins(), sortins_cmp(), and nfa::v.
Referenced by fixempties().
Definition at line 778 of file regc_nfa.c.
References a, assert, BULK_ARC_OP_USE_SORT, changearctarget(), cparc(), createarc(), fb(), freearc(), arc::inchain, INTERRUPT, NISERR, NOTREACHED, vars::re, sortins(), sortins_cmp(), and nfa::v.
Referenced by fixempties(), and pull().
Definition at line 1066 of file regc_nfa.c.
References a, assert, BULK_ARC_OP_USE_SORT, changearcsource(), cparc(), createarc(), fb(), freearc(), INTERRUPT, NISERR, NOTREACHED, arc::outchain, vars::re, sortouts(), sortouts_cmp(), and nfa::v.
Referenced by fixempties(), and push().
|
static |
Definition at line 281 of file regc_nfa.c.
References a, assert, arc::co, createarc(), fb(), arc::from, state::ins, INTERRUPT, state::nins, state::nouts, state::outs, vars::re, arc::to, and nfa::v.
Referenced by cloneouts(), colorcomplement(), cparc(), dupnfa(), newnfa(), okcolors(), pull(), pullback(), push(), pushfwd(), rainbow(), removetraverse(), subcolorcvec(), subcoloronechr(), and subcoloronerow().
Definition at line 212 of file regc_nfa.c.
References fb(), state::flag, flag(), and newstate().
Referenced by newnfa().
Definition at line 47 of file regc_nfa.c.
References nfa::bos, nfa::cm, COLORLESS, nfa::eos, ERR, fb(), nfa::final, nfa::flags, nfa::freearcs, freenfa(), nfa::freestates, nfa::init, ISERR, nfa::lastab, nfa::lastabused, nfa::lastsb, nfa::lastsbused, MALLOC, nfa::maxmatchall, nfa::minmatchall, newarc(), newfstate(), newstate(), nfa::nstates, nfa::parent, PLAIN, nfa::post, nfa::pre, rainbow(), REG_ESPACE, nfa::slast, nfa::states, and nfa::v.
Definition at line 137 of file regc_nfa.c.
References assert, fb(), FIRSTSBSIZE, state::flag, nfa::freestates, state::ins, INTERRUPT, nfa::lastsb, nfa::lastsbused, MALLOC, MAXSBSIZE, NERR, state::next, state::nins, state::no, state::nouts, statebatch::nstates, nfa::nstates, state::outs, state::prev, vars::re, REG_ESPACE, REG_ETOOBIG, REG_MAX_COMPILE_SPACE, statebatch::s, nfa::slast, vars::spaceused, STATEBATCHSIZE, nfa::states, state::tmp, and nfa::v.
Referenced by breakconstraintloop(), clonesuccessorstates(), duptraverse(), newfstate(), newnfa(), pull(), push(), and SetMatViewPopulatedState().
Definition at line 1594 of file regc_nfa.c.
References analyze(), cleanup(), dumpnfa(), fb(), fixconstraintloops(), fixempties(), nfa::flags, fprintf, HASCANTMATCH, pullback(), pushfwd(), removecantmatch(), and verbose.
Definition at line 1720 of file regc_nfa.c.
References a, assert, arc::co, combine(), COMPATIBLE, copyins(), cparc(), fb(), state::flag, freearc(), arc::from, INCOMPATIBLE, state::ins, moveins(), newarc(), newstate(), state::nins, NISERR, NOTREACHED, state::nouts, state::outs, REPLACEARC, SATISFIED, state::tmp, and arc::to.
Referenced by pullback().
Definition at line 1640 of file regc_nfa.c.
References a, assert, BEHIND, nfa::bos, dropstate(), dumpnfa(), fb(), state::flag, freearc(), newarc(), state::next, state::nins, NISERR, state::nouts, state::outs, PLAIN, nfa::pre, progress, pull(), nfa::states, and state::tmp.
Referenced by optimize().
Definition at line 1891 of file regc_nfa.c.
References a, assert, arc::co, combine(), COMPATIBLE, copyouts(), cparc(), fb(), state::flag, freearc(), arc::from, INCOMPATIBLE, state::ins, moveouts(), newarc(), newstate(), state::nins, NISERR, NOTREACHED, state::nouts, state::outs, REPLACEARC, SATISFIED, state::tmp, and arc::to.
Referenced by pushfwd().
Definition at line 1811 of file regc_nfa.c.
References a, AHEAD, assert, dropstate(), dumpnfa(), nfa::eos, fb(), state::flag, freearc(), state::ins, newarc(), state::next, state::nins, NISERR, state::nouts, PLAIN, nfa::post, progress, push(), nfa::states, and state::tmp.
Referenced by optimize().
Definition at line 2938 of file regc_nfa.c.
References a, CANTMATCH, fb(), freearc(), state::next, NISERR, arc::outchain, state::outs, and nfa::states.
Referenced by optimize().
|
static |
Definition at line 1419 of file regc_nfa.c.
References cleartraverse(), fb(), removetraverse(), start, and state::tmp.
Definition at line 1438 of file regc_nfa.c.
References a, AHEAD, BEHIND, CANTMATCH, EMPTY, fb(), freearc(), LACON, NERR, newarc(), NISERR, state::outs, PLAIN, vars::re, REG_ASSERT, REG_ETOOBIG, removetraverse(), STACK_TOO_DEEP, state::tmp, and nfa::v.
Referenced by removeconstraints(), and removetraverse().
Definition at line 1525 of file regc_nfa.c.
References a, EMPTY, fb(), arc::from, state::ins, PLAIN, s1, s2, and arc::to.
Definition at line 620 of file regc_nfa.c.
References a, assert, fb(), FREE, i, arc::inchain, arc::inchainRev, state::ins, MALLOC, NERR, state::nins, qsort, REG_ESPACE, and sortins_cmp().
Referenced by copyins(), mergeins(), and moveins().
Definition at line 662 of file regc_nfa.c.
Referenced by copyins(), mergeins(), moveins(), and sortins().
Definition at line 687 of file regc_nfa.c.
References a, assert, fb(), FREE, i, MALLOC, NERR, state::nouts, arc::outchain, arc::outchainRev, state::outs, qsort, REG_ESPACE, and sortouts_cmp().
Referenced by copyouts(), and moveouts().
Definition at line 729 of file regc_nfa.c.
Referenced by copyouts(), moveouts(), and sortouts().
Definition at line 1555 of file regc_nfa.c.
References assert, nfa::bos, nfa::cm, COLORLESS, nfa::eos, fb(), nfa::parent, and pseudocolor().