P4C
The P4 Compiler
Loading...
Searching...
No Matches
wordlist.h
1/*
2 * SPDX-FileCopyrightText: 2024 The P4 Language Consortium
3 *
4 * SPDX-License-Identifier: Apache-2.0
5 */
6
7#ifndef BACKENDS_P4TOOLS_MODULES_SMITH_UTIL_WORDLIST_H_
8#define BACKENDS_P4TOOLS_MODULES_SMITH_UTIL_WORDLIST_H_
9#include <array>
10#include <cstddef>
11
12#define WORDLIST_LENGTH 10000
13
14namespace P4::P4Tools::P4Smith {
15
18class Wordlist {
19 public:
20 Wordlist() = default;
21
22 ~Wordlist() = default;
23
26 static const char *getFromWordlist();
27
28 private:
30 static std::size_t counter;
31
33 static const std::array<const char *, WORDLIST_LENGTH> WORDS;
34};
35
36} // namespace P4::P4Tools::P4Smith
37
38#endif /* BACKENDS_P4TOOLS_MODULES_SMITH_UTIL_WORDLIST_H_ */
static const char * getFromWordlist()
Definition wordlist.cpp:700