P4C
The P4 Compiler
Loading...
Searching...
No Matches
pna/shared_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_SHARED_EXPR_STEPPER_H_
8#define BACKENDS_P4TOOLS_MODULES_TESTGEN_TARGETS_PNA_SHARED_EXPR_STEPPER_H_
9
10#include "ir/ir.h"
11#include "ir/solver.h"
12
13#include "backends/p4tools/modules/testgen/core/program_info.h"
14#include "backends/p4tools/modules/testgen/core/small_step/expr_stepper.h"
15#include "backends/p4tools/modules/testgen/lib/execution_state.h"
16
18
19class SharedPnaExprStepper : public ExprStepper {
20 private:
21 // Provides implementations of common PNA externs.
22 static const ExternMethodImpls<SharedPnaExprStepper> PNA_EXTERN_METHOD_IMPLS;
23
24 public:
25 SharedPnaExprStepper(ExecutionState &state, AbstractSolver &solver,
27
28 void evalExternMethodCall(const ExternInfo &externInfo) override;
29
30 bool preorder(const IR::P4Table * /*table*/) override;
31};
32} // namespace P4::P4Tools::P4Testgen::Pna
33
34#endif /* BACKENDS_P4TOOLS_MODULES_TESTGEN_TARGETS_PNA_SHARED_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 pna/shared_expr_stepper.cpp:171
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