#include "platform.h"
#include <regex.h>
#include <time.h>
#include "regex_internal_lib.h"
#include "regex_test_lib.h"
Go to the source code of this file.
Functions | |
static void | print_edge (void *cls, const struct GNUNET_HashCode *key, const char *proof, int accepting, unsigned int num_edges, const struct REGEX_BLOCK_Edge *edges) |
Print information about the given node and its edges to stdout. More... | |
int | main (int argc, char *const *argv) |
The main function of the regex performance test. More... | |
|
static |
Print information about the given node and its edges to stdout.
cls | closure, unused. |
key | hash for current state. |
proof | proof for current state. |
accepting | GNUNET_YES if this is an accepting state, GNUNET_NO if not. |
num_edges | number of edges leaving current state. |
edges | edges leaving current state. |
Definition at line 45 of file perf-regex.c.
References GNUNET_h2s(), key, and proof.
Referenced by main().
int main | ( | int | argc, |
char *const * | argv | ||
) |
The main function of the regex performance test.
Read a set of regex from a file, combine them and create a DFA from the resulting combined regex.
argc | number of arguments from the command line |
argv | command line arguments |
Definition at line 76 of file perf-regex.c.
References GNUNET_asprintf(), GNUNET_free, GNUNET_log_setup(), print_edge(), REGEX_INTERNAL_Automaton::regex, REGEX_INTERNAL_automaton_destroy(), REGEX_INTERNAL_construct_dfa(), REGEX_INTERNAL_iterate_all_edges(), REGEX_INTERNAL_iterate_reachable_edges(), REGEX_TEST_combine(), REGEX_TEST_free_from_file(), REGEX_TEST_read_from_file(), and size.