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/id.h"
5#include "ir/ir.h"
6#include "ir/solver.h"
7#include "ir/vector.h"
8
9#include "backends/p4tools/modules/testgen/core/externs.h"
10#include "backends/p4tools/modules/testgen/core/program_info.h"
11#include "backends/p4tools/modules/testgen/core/small_step/expr_stepper.h"
12#include "backends/p4tools/modules/testgen/lib/execution_state.h"
13
15
17 private:
18 // Provides implementations of common PNA externs.
19 static const ExternMethodImpls PNA_EXTERN_METHOD_IMPLS;
20
21 public:
24
25 void evalExternMethodCall(const IR::MethodCallExpression *call, const IR::Expression *receiver,
26 IR::ID name, const IR::Vector<IR::Argument> *args,
27 ExecutionState &state) override;
28
29 bool preorder(const IR::P4Table * /*table*/) override;
30};
31} // namespace P4Tools::P4Testgen::Pna
32
33#endif /* BACKENDS_P4TOOLS_MODULES_TESTGEN_TARGETS_PNA_SHARED_EXPR_STEPPER_H_ */
Definition externInstance.h:33
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
AbstractSolver & solver
The solver backing the state being executed.
Definition abstract_stepper.h:52
Represents state of execution after having reached a program point.
Definition execution_state.h:34
Implements small-step operational semantics for expressions.
Definition expr_stepper.h:20
Encapsulates a set of extern method implementations.
Definition externs.h:24
Definition shared_expr_stepper.h:16
void evalExternMethodCall(const IR::MethodCallExpression *call, const IR::Expression *receiver, IR::ID name, const IR::Vector< IR::Argument > *args, ExecutionState &state) override
Definition shared_expr_stepper.cpp:176
Stores target-specific information about a P4 program.
Definition program_info.h:22
Inja.
Definition metadata.cpp:24