1#ifndef BACKENDS_P4TOOLS_MODULES_TESTGEN_TARGETS_BMV2_PROGRAM_INFO_H_
2#define BACKENDS_P4TOOLS_MODULES_TESTGEN_TARGETS_BMV2_PROGRAM_INFO_H_
6#include "control-plane/p4RuntimeSerializer.h"
8#include "lib/cstring.h"
10#include "backends/p4tools/modules/testgen/core/program_info.h"
11#include "backends/p4tools/modules/testgen/targets/bmv2/compiler_result.h"
22 const std::map<int, int> declIdToGress;
25 static const IR::Type_Bits PARSER_ERR_BITS;
29 std::vector<Continuation::Command> processDeclaration(
const IR::Type_Declaration *typeDecl,
30 size_t blockIdx)
const;
35 std::map<int, int> declIdToGress);
38 int getGress(
const IR::Type_Declaration *)
const;
56 size_t paramIndex)
const;
62 const IR::StateVariable &portVar,
63 const std::vector<std::pair<int, int>> &permittedPortRanges);
67 [[nodiscard]]
const IR::Expression *
dropIsActive()
const override;
69 [[nodiscard]]
const IR::Type_Bits *getParserErrorType()
const override;
78 static const IR::Member *
getParserParamVar(
const IR::P4Parser *parser,
const IR::Type *type,
79 size_t paramIndex,
cstring paramLabel);
The Declaration interface, representing objects with names.
Definition declaration.h:26
Definition ordered_map.h:32
Definition p4RuntimeSerializer.h:57