Home
last modified time | relevance | path

Searched refs:nfa (Results 1 – 25 of 36) sorted by relevance

12

/external/kernel-headers/original/uapi/linux/netfilter/
Dnfnetlink_compat.h38 #define NFA_OK(nfa,len) ((len) > 0 && (nfa)->nfa_len >= sizeof(struct nfattr) \ argument
39 && (nfa)->nfa_len <= (len))
40 #define NFA_NEXT(nfa,attrlen) ((attrlen) -= NFA_ALIGN((nfa)->nfa_len), \ argument
41 (struct nfattr *)(((char *)(nfa)) + NFA_ALIGN((nfa)->nfa_len)))
44 #define NFA_DATA(nfa) ((void *)(((char *)(nfa)) + NFA_LENGTH(0))) argument
45 #define NFA_PAYLOAD(nfa) ((int)((nfa)->nfa_len) - NFA_LENGTH(0)) argument
/external/libpcap/
Dpcap-netfilter-linux.c271 struct nfattr *nfa = (struct nfattr *) (buf + NLMSG_ALIGN(nlh->nlmsg_len)); in netfilter_send_config_msg() local
273 nfa->nfa_type = mynfa->nfa_type; in netfilter_send_config_msg()
274 nfa->nfa_len = NFA_LENGTH(mynfa->nfa_len); in netfilter_send_config_msg()
275 memcpy(NFA_DATA(nfa), mynfa->data, mynfa->nfa_len); in netfilter_send_config_msg()
276 nlh->nlmsg_len = NLMSG_ALIGN(nlh->nlmsg_len) + NFA_ALIGN(nfa->nfa_len); in netfilter_send_config_msg()
336 struct my_nfattr nfa; in nflog_send_config_cmd() local
340 nfa.data = &msg; in nflog_send_config_cmd()
341 nfa.nfa_type = NFULA_CFG_CMD; in nflog_send_config_cmd()
342 nfa.nfa_len = sizeof(msg); in nflog_send_config_cmd()
344 return nflog_send_config_msg(handle, family, group_id, &nfa); in nflog_send_config_cmd()
[all …]
/external/antlr/antlr-3.4/tool/src/main/java/org/antlr/tool/
DInterpreter.java222 actions.enterRule(s.nfa.grammar.getFileName(), start.enclosingRule.name); in parseEngine()
234 if ( s.getDecisionNumber()>0 && s.nfa.grammar.getNumberOfAltsForDecisionNFA(s)>1 ) { in parseEngine()
236 DFA dfa = s.nfa.grammar.getLookaheadDFA(s.getDecisionNumber()); in parseEngine()
269 if ( parseAlt > s.nfa.grammar.getNumberOfAltsForDecisionNFA(s) ) { in parseEngine()
271 alt = s.nfa.grammar.nfa.getState( s.endOfBlockStateNumber ); in parseEngine()
274 alt = s.nfa.grammar.getNFAStateForAltOfDecision(s, parseAlt); in parseEngine()
283 actions.exitRule(s.nfa.grammar.getFileName(), s.enclosingRule.name); in parseEngine()
319 actions.enterRule(s.nfa.grammar.getFileName(), s.enclosingRule.name); in parseEngine()
322 if ( !s.nfa.grammar.allDecisionDFAHaveBeenCreated() ) { in parseEngine()
323 s.nfa.grammar.createLookaheadDFAs(); in parseEngine()
[all …]
DNFAFactory.java50 NFA nfa = null; field in NFAFactory
62 public NFAFactory(NFA nfa) { in NFAFactory() argument
63 nfa.setFactory(this); in NFAFactory()
64 this.nfa = nfa; in NFAFactory()
68 NFAState n = new NFAState(nfa); in newState()
69 int state = nfa.getNewNFAStateNumber(); in newState()
71 nfa.addState(n); in newState()
89 s = nfa.getState(s.endOfBlockStateNumber); in optimizeAlternative()
129 int tokenType = nfa.grammar.getTokenType(atomAST.getText()); in build_Atom()
198 if ( nfa.grammar.type==Grammar.LEXER ) { in build_StringLiteralAtom()
[all …]
DGrammarUnreachableAltsMessage.java59 String fileName = probe.dfa.nfa.grammar.getFileName(); in toString()
74 probe.dfa.nfa.grammar.getRuleStartState(tokenName); in toString()
DGrammarNonDeterminismMessage.java63 String fileName = probe.dfa.nfa.grammar.getFileName(); in toString()
82 probe.dfa.nfa.grammar.getRuleStartState(tokenName); in toString()
DGrammar.java296 public NFA nfa; field in Grammar
968 if ( nfa!=null ) { in createRuleStartAndStopNFAStates()
971 nfa = new NFA(this); in createRuleStartAndStopNFAStates()
972 factory = new NFAFactory(nfa); in createRuleStartAndStopNFAStates()
991 if ( nfa==null ) { in buildNFA()
994 if ( nfa.complete ) { in buildNFA()
1004 TreeToNFAConverter nfaBuilder = new TreeToNFAConverter(input, this, nfa, factory); in buildNFA()
1013 nfa.complete = true; in buildNFA()
1032 if ( nfa==null ) { in createLookaheadDFAs()
1086 FASerializer serializer = new FASerializer(nfa.grammar); in createLookaheadDFAs()
[all …]
DGrammarAnalysisAbortedMessage.java48 String fileName = probe.dfa.nfa.grammar.getFileName(); in toString()
DNonRegularDecisionMessage.java53 String fileName = probe.dfa.nfa.grammar.getFileName(); in toString()
DGrammarDanglingStateMessage.java57 String fileName = probe.dfa.nfa.grammar.getFileName(); in toString()
DRecursionOverflowMessage.java65 String fileName = probe.dfa.nfa.grammar.getFileName(); in toString()
DGrammarInsufficientPredicatesMessage.java57 String fileName = probe.dfa.nfa.grammar.getFileName(); in toString()
/external/antlr/antlr-3.4/tool/src/main/java/org/antlr/analysis/
DLL1DFA.java54 nfa = decisionStartState.nfa; in LL1DFA()
55 nAlts = nfa.grammar.getNumberOfAltsForDecisionNFA(decisionStartState); in LL1DFA()
80 nfa = decisionStartState.nfa; in LL1DFA()
81 nAlts = nfa.grammar.getNumberOfAltsForDecisionNFA(decisionStartState); in LL1DFA()
158 nfa.grammar.getNFAStateForAltOfDecision(decisionStartState, walkAlt); in getSynPredForAlt()
171 nfa.grammar.synPredUsedInDFA(this, ctx); in getSynPredForAlt()
DNFAState.java57 public NFA nfa = null; field in NFAState
108 public NFAState(NFA nfa) { in NFAState() argument
109 this.nfa = nfa; in NFAState()
195 int nAlts = nfa.grammar.getNumberOfAltsForDecisionNFA(nfaStart); in translateDisplayAltToWalkAlt()
DDFA.java154 public NFA nfa; field in DFA
229 nfa = decisionStartState.nfa; in DFA()
230 nAlts = nfa.grammar.getNumberOfAltsForDecisionNFA(decisionStartState); in DFA()
654 Interpreter interp = new Interpreter(nfa.grammar, input);
734 !nfa.grammar.decisionsWhoseDFAsUsesSemPreds.contains(this) &&
735 !nfa.grammar.decisionsWhoseDFAsUsesSynPreds.contains(this);
746 if ( nfa.grammar.type!=Grammar.LEXER ) {
750 Rule r = nfa.grammar.getLocallyDefinedRule(Grammar.ARTIFICIAL_TOKENS_RULENAME);
765 user_k = nfa.grammar.getUserMaxLookahead(decisionNumber);
770 return nfa.grammar.getAutoBacktrackMode(decisionNumber);
[all …]
DDecisionProbe.java320 Grammar g = dfa.nfa.grammar; in getInputSequenceDisplay()
368 dfa.nfa.grammar.getNFAStateForAltOfDecision(nfaStart,a); in getNFAPathStatesForAlt()
373 NFAState altStart = dfa.nfa.grammar.getNFAStateForAltOfDecision(nfaStart,alt); in getNFAPathStatesForAlt()
430 while ( it.hasNext() && !dfa.nfa.grammar.NFAToDFAConversionExternallyAborted() ) { in issueWarnings()
447 d.dfa.nfa.grammar.getDecisionBlockAST(d.dfa.decisionNumber); in issueWarnings()
481 dfa.nfa.grammar, in issueWarnings()
483 dfa.nfa.grammar.name, in issueWarnings()
507 dfa.nfa.grammar.getDecisionBlockAST(dfa.decisionNumber); in stripWildCardAlts()
576 NFAState ruleInvocationState = dfa.nfa.getState(c.state); in computeAltToProblemMaps()
638 dfa.nfa.grammar.numNonLLStar++; in reportNonLLStarDecision()
[all …]
DNFAToDFAConverter.java84 !dfa.nfa.grammar.NFAToDFAConversionExternallyAborted() ) in convert()
87 if ( dfa.nfa.grammar.composite.watchNFAConversion ) { in convert()
156 int numAltsIncludingExitBranch = dfa.nfa.grammar in computeStartState()
278 label.toString(dfa.nfa.grammar)+"->"+t); in findNewDFAStatesAndAddDFATransitions()
477 closure(dfa.nfa.getState(c.state), in closure()
739 dfa.nfa.grammar.getNFAStateForAltOfDecision(dfa.decisionNFAStartState,walkAlt); in closure()
863 NFAState p = dfa.nfa.getState(c.state); in reach()
923 NFAState p = dfa.nfa.getState(c.state); in convertToEOTAcceptState()
1184 NFAState anyState = dfa.nfa.getState(anyConfig.state); in resolveNonDeterminisms()
1452 dfa.nfa.grammar.synPredUsedInDFA(dfa, semCtx); in tryToResolveWithSemanticPredicates()
[all …]
/external/opencv3/modules/java/src/
Dimgproc+LineSegmentDetector.java23 public void detect(Mat _image, Mat _lines, Mat width, Mat prec, Mat nfa) in detect() argument
26 …t_0(nativeObj, _image.nativeObj, _lines.nativeObj, width.nativeObj, prec.nativeObj, nfa.nativeObj); in detect()
/external/antlr/antlr-3.4/antlr3-maven-plugin/src/main/java/org/antlr/mojo/antlr3/
DAntlr3Mojo.java111 protected boolean nfa; field in Antlr3Mojo
282 log.debug("ANTLR: nfa : " + nfa); in execute()
317 tool.setGenerate_NFA_dot(nfa); in execute()
/external/antlr/antlr-3.4/antlr3-maven-plugin/src/site/apt/
Dusage.apt.vm41 <nfa>false</nfa>
95 *** nfa
97 If set to true then the ANTLR tool will generate a description of the nfa
102 protected boolean nfa;
/external/regex-re2/
Ducs2.diff185 ==== re2/nfa.cc#8 - re2/nfa.cc#9 ====
186 re2/nfa.cc#8:426,432 - re2/nfa.cc#9:426,431
194 re2/nfa.cc#8:492,498 - re2/nfa.cc#9:491,497
203 re2/nfa.cc#8:505,526 - re2/nfa.cc#9:504,514
DAndroid.mk23 re2/nfa.cc \
/external/antlr/antlr-3.4/tool/src/main/antlr3/org/antlr/grammar/v3/
DTreeToNFAConverter.g57 protected NFA nfa = null;
69 public TreeToNFAConverter(TreeNodeStream input, Grammar g, NFA nfa, NFAFactory factory) {
72 this.nfa = nfa;
77 …TreeToNFAConverter other = new TreeToNFAConverter( new CommonTreeNodeStream( t ), grammar, nfa, fa…
91 …TreeToNFAConverter other = new TreeToNFAConverter( new CommonTreeNodeStream( t ), grammar, nfa, fa…
106 …TreeToNFAConverter other = new TreeToNFAConverter( new CommonTreeNodeStream( t ), grammar, nfa, fa…
636 if ( nfa.grammar.type == Grammar.TREE_PARSER
/external/antlr/antlr-3.4/antlr-ant/main/antlr3-task/antlr3-src/org/apache/tools/ant/antlr/
DANTLR3.java103 private boolean nfa; field in ANTLR3
208 this.nfa = enable; in setNfa()
522 if (nfa) { in populateAttributes()
/external/antlr/antlr-3.4/antlr-ant/main/antlr3-task/
Dantlr3.jar ... boolean report private boolean print private boolean profile private boolean nfa private boolean dfa private boolean multiThreaded private boolean nocollapse private ...

12