P4C
The P4 Compiler
Loading...
Searching...
No Matches
shared_expr_stepper.h
1#ifndef BACKENDS_P4TOOLS_MODULES_TESTGEN_TARGETS_PNA_SHARED_EXPR_STEPPER_H_
2#define BACKENDS_P4TOOLS_MODULES_TESTGEN_TARGETS_PNA_SHARED_EXPR_STEPPER_H_
3
4#include "ir/ir.h"
5#include "ir/solver.h"
6
7#include "backends/p4tools/modules/testgen/core/program_info.h"
8#include "backends/p4tools/modules/testgen/core/small_step/expr_stepper.h"
9#include "backends/p4tools/modules/testgen/lib/execution_state.h"
10
12
14 private:
15 // Provides implementations of common PNA externs.
16 static const ExternMethodImpls<SharedPnaExprStepper> PNA_EXTERN_METHOD_IMPLS;
17
18 public:
21
22 void evalExternMethodCall(const ExternInfo &externInfo) override;
23
24 bool preorder(const IR::P4Table * /*table*/) override;
25};
26} // namespace P4::P4Tools::P4Testgen::Pna
27
28#endif /* BACKENDS_P4TOOLS_MODULES_TESTGEN_TARGETS_PNA_SHARED_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
Implements small-step operational semantics for expressions.
Definition core/small_step/expr_stepper.h:20
Definition extern_info.h:14
Definition shared_expr_stepper.h:13
void evalExternMethodCall(const ExternInfo &externInfo) override
Definition shared_expr_stepper.cpp:167
Stores target-specific information about a P4 program.
Definition core/program_info.h:21
Inja.
Definition pna/backend/metadata/metadata.cpp:24
Definition phv/solver/action_constraint_solver.cpp:33