7#ifndef BACKENDS_P4TOOLS_MODULES_TESTGEN_TARGETS_BMV2_PROGRAM_INFO_H_
8#define BACKENDS_P4TOOLS_MODULES_TESTGEN_TARGETS_BMV2_PROGRAM_INFO_H_
12#include "control-plane/p4RuntimeSerializer.h"
14#include "lib/cstring.h"
16#include "backends/p4tools/modules/testgen/core/program_info.h"
17#include "backends/p4tools/modules/testgen/targets/bmv2/compiler_result.h"
28 const std::map<int, int> declIdToGress;
31 static const IR::Type_Bits PARSER_ERR_BITS;
35 std::vector<Continuation::Command> processDeclaration(
const IR::Type_Declaration *typeDecl,
36 size_t blockIdx)
const;
41 std::map<int, int> declIdToGress);
44 int getGress(
const IR::Type_Declaration *)
const;
62 size_t paramIndex)
const;
68 const IR::StateVariable &portVar,
69 const std::vector<std::pair<int, int>> &permittedPortRanges);
73 [[nodiscard]]
const IR::Expression *
dropIsActive()
const override;
75 [[nodiscard]]
const IR::Type_Bits *getParserErrorType()
const override;
84 static const IR::Member *
getParserParamVar(
const IR::P4Parser *parser,
const IR::Type *type,
85 size_t paramIndex,
cstring paramLabel);
The Declaration interface, representing objects with names.
Definition declaration.h:17
Definition ordered_map.h:32
Definition p4RuntimeSerializer.h:48