From 7a741b2fa8c96076f8b05a2d08e4b6b3ba78360b Mon Sep 17 00:00:00 2001 From: Maximilian Szengel Date: Fri, 26 Oct 2012 14:33:59 +0000 Subject: - Added path compression parameter to DFA construction API - Moved NFA construction to internal header - Added regex simulation profiler (for profiling the NFA, that results by merging several DFAs in the DHT, in a database) --- src/regex/test_regex_iterate_api.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'src/regex/test_regex_iterate_api.c') diff --git a/src/regex/test_regex_iterate_api.c b/src/regex/test_regex_iterate_api.c index 72847476be..09abdb7c76 100644 --- a/src/regex/test_regex_iterate_api.c +++ b/src/regex/test_regex_iterate_api.c @@ -188,7 +188,7 @@ main (int argc, char *argv[]) ctx.string_count = rxstr[i].string_count; ctx.strings = rxstr[i].strings; ctx.match_count = 0; - dfa = GNUNET_REGEX_construct_dfa (rxstr[i].regex, strlen (rxstr[i].regex)); + dfa = GNUNET_REGEX_construct_dfa (rxstr[i].regex, strlen (rxstr[i].regex), 0); GNUNET_REGEX_iterate_all_edges (dfa, key_iterator, &ctx); num_transitions = GNUNET_REGEX_get_transition_count (dfa) - dfa->start->transition_count; @@ -234,7 +234,7 @@ main (int argc, char *argv[]) ctx.strings = rxstr[i].strings; ctx.match_count = 0; - dfa = GNUNET_REGEX_construct_dfa (rxstr[i].regex, strlen (rxstr[i].regex)); + dfa = GNUNET_REGEX_construct_dfa (rxstr[i].regex, strlen (rxstr[i].regex), 0); GNUNET_REGEX_dfa_add_multi_strides (NULL, dfa, 2); GNUNET_REGEX_iterate_all_edges (dfa, key_iterator, &ctx); -- cgit v1.2.3-70-g09d2