P4C
The P4 Compiler
Loading...
Searching...
No Matches
targets/tofino/tofino2/expr_stepper.h
1/*******************************************************************************
2 * Copyright (C) 2024 Intel Corporation
3 *
4 * Licensed under the Apache License, Version 2.0 (the "License");
5 * you may not use this file except in compliance with the License.
6 * You may obtain a copy of the License at
7 *
8 * http://www.apache.org/licenses/LICENSE-2.0
9 *
10 * Unless required by applicable law or agreed to in writing,
11 * software distributed under the License is distributed on an "AS IS" BASIS,
12 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13 * See the License for the specific language governing permissions
14 * and limitations under the License.
15 *
16 *
17 * SPDX-License-Identifier: Apache-2.0
18 ******************************************************************************/
19
20#ifndef BACKENDS_P4TOOLS_MODULES_TESTGEN_TARGETS_TOFINO_TOFINO2_EXPR_STEPPER_H_
21#define BACKENDS_P4TOOLS_MODULES_TESTGEN_TARGETS_TOFINO_TOFINO2_EXPR_STEPPER_H_
22
23#include <string>
24
25#include "ir/solver.h"
26
27#include "backends/p4tools/modules/testgen/core/program_info.h"
28#include "backends/p4tools/modules/testgen/lib/execution_state.h"
29#include "backends/p4tools/modules/testgen/targets/tofino/shared_expr_stepper.h"
30
31namespace P4::P4Tools::P4Testgen::Tofino {
32
33class JBayExprStepper : public SharedTofinoExprStepper {
34 private:
35 static const ExternMethodImpls<JBayExprStepper> JBAY_EXTERN_METHOD_IMPLS;
36
37 protected:
38 std::string getClassName() override { return "JBayExprStepper"; }
39
40 public:
42
43 void evalExternMethodCall(const ExternInfo &externInfo) override;
44};
45
46} // namespace P4::P4Tools::P4Testgen::Tofino
47
48#endif /* BACKENDS_P4TOOLS_MODULES_TESTGEN_TARGETS_TOFINO_TOFINO2_EXPR_STEPPER_H_ */
Provides a higher-level interface for an SMT solver.
Definition solver.h:24
ExecutionState & state
The state being evaluated.
Definition abstract_stepper.h:49
const ProgramInfo & programInfo
Target-specific information about the P4 program being evaluated.
Definition abstract_stepper.h:46
Represents state of execution after having reached a program point.
Definition execution_state.h:34
Encapsulates a set of extern method implementations.
Definition core/small_step/expr_stepper.h:27
Definition extern_info.h:14
Stores target-specific information about a P4 program.
Definition core/program_info.h:21
Definition targets/tofino/tofino2/expr_stepper.h:33
void evalExternMethodCall(const ExternInfo &externInfo) override
Definition targets/tofino/tofino2/expr_stepper.cpp:39
std::string getClassName() override
Definition targets/tofino/tofino2/expr_stepper.h:38
Definition phv/solver/action_constraint_solver.cpp:33