P4C
The P4 Compiler
Loading...
Searching...
No Matches
targets/pna/dpdk/expr_stepper.h
1/*
2 * SPDX-FileCopyrightText: 2023 Intel Corporation
3 *
4 * SPDX-License-Identifier: Apache-2.0
5 */
6
7#ifndef BACKENDS_P4TOOLS_MODULES_TESTGEN_TARGETS_PNA_DPDK_EXPR_STEPPER_H_
8#define BACKENDS_P4TOOLS_MODULES_TESTGEN_TARGETS_PNA_DPDK_EXPR_STEPPER_H_
9
10#include <string>
11
12#include "ir/ir.h"
13#include "ir/solver.h"
14
15#include "backends/p4tools/modules/testgen/core/program_info.h"
16#include "backends/p4tools/modules/testgen/lib/execution_state.h"
17#include "backends/p4tools/modules/testgen/targets/pna/shared_expr_stepper.h"
18
20
21class PnaDpdkExprStepper : public SharedPnaExprStepper {
22 protected:
23 std::string getClassName() override;
24
25 private:
26 // Provides implementations of PNA-DPDK externs.
27 static const ExternMethodImpls<PnaDpdkExprStepper> PNA_DPDK_EXTERN_METHOD_IMPLS;
28
29 public:
30 PnaDpdkExprStepper(ExecutionState &state, AbstractSolver &solver,
32
33 void evalExternMethodCall(const ExternInfo &externInfo) override;
34
35 bool preorder(const IR::P4Table * /*table*/) override;
36};
37} // namespace P4::P4Tools::P4Testgen::Pna
38
39#endif /* BACKENDS_P4TOOLS_MODULES_TESTGEN_TARGETS_PNA_DPDK_EXPR_STEPPER_H_ */
Provides a higher-level interface for an SMT solver.
Definition solver.h:30
ExecutionState & state
The state being evaluated.
Definition abstract_stepper.h:55
const ProgramInfo & programInfo
Target-specific information about the P4 program being evaluated.
Definition abstract_stepper.h:52
Represents state of execution after having reached a program point.
Definition execution_state.h:40
Encapsulates a set of extern method implementations.
Definition core/small_step/expr_stepper.h:33
Definition extern_info.h:20
void evalExternMethodCall(const ExternInfo &externInfo) override
Definition targets/pna/dpdk/expr_stepper.cpp:27
std::string getClassName() override
Definition targets/pna/dpdk/expr_stepper.cpp:16
Stores target-specific information about a P4 program.
Definition core/program_info.h:27
Inja.
Definition pna/backend/metadata/metadata.cpp:28
Definition phv/solver/action_constraint_solver.cpp:33