1#ifndef BACKENDS_P4TOOLS_MODULES_TESTGEN_TARGETS_BMV2_PROGRAM_INFO_H_
2#define BACKENDS_P4TOOLS_MODULES_TESTGEN_TARGETS_BMV2_PROGRAM_INFO_H_
8#include "control-plane/p4RuntimeSerializer.h"
10#include "lib/cstring.h"
11#include "lib/ordered_map.h"
13#include "backends/p4tools/modules/testgen/core/program_info.h"
14#include "backends/p4tools/modules/testgen/lib/continuation.h"
15#include "backends/p4tools/modules/testgen/targets/bmv2/bmv2.h"
26 const std::map<int, int> declIdToGress;
29 static const IR::Type_Bits PARSER_ERR_BITS;
33 std::vector<Continuation::Command> processDeclaration(
const IR::Type_Declaration *typeDecl,
34 size_t blockIdx)
const;
39 std::map<int, int> declIdToGress);
42 int getGress(
const IR::Type_Declaration *)
const;
60 size_t paramIndex)
const;
66 const IR::StateVariable &portVar,
67 const std::vector<std::pair<int, int>> &permittedPortRanges);
71 [[nodiscard]]
const IR::Expression *
dropIsActive()
const override;
73 [[nodiscard]]
const IR::Type_Bits *getParserErrorType()
const override;
82 static const IR::Member *
getParserParamVar(
const IR::P4Parser *parser,
const IR::Type *type,
83 size_t paramIndex,
cstring paramLabel);
Definition ordered_map.h:30
Definition p4RuntimeSerializer.h:53