P4C
The P4 Compiler
 
Loading...
Searching...
No Matches
variables.h
1#ifndef BACKENDS_P4TOOLS_COMMON_LIB_VARIABLES_H_
2#define BACKENDS_P4TOOLS_COMMON_LIB_VARIABLES_H_
3
4#include "ir/ir.h"
5#include "lib/cstring.h"
6
10namespace P4Tools {
11
15using ConstraintsVector = std::vector<const IR::Expression *>;
16
17namespace ToolsVariables {
18
22static const cstring VALID = "*valid";
23
28const IR::StateVariable &getStateVariable(const IR::Type *type, cstring name);
29
34const IR::SymbolicVariable *getSymbolicVariable(const IR::Type *type, cstring name);
35
39const IR::TaintExpression *getTaintExpression(const IR::Type *type);
40
45IR::StateVariable getHeaderValidity(const IR::Expression *headerRef);
46
49IR::StateVariable convertReference(const IR::Expression *ref);
50
51} // namespace ToolsVariables
52
53} // namespace P4Tools
54
55#endif /* BACKENDS_P4TOOLS_COMMON_LIB_VARIABLES_H_ */
Definition cstring.h:72
Definition compiler_target.cpp:19
std::vector< const IR::Expression * > ConstraintsVector
Definition variables.h:15