3#include <boost/lexical_cast.hpp>
5#include <nlohmann/json.hpp>
7#include <unordered_map>
14using json = nlohmann::json;
97 InterstateEdge&
operator=(
const InterstateEdge&) =
delete;
Element(size_t element_id, const DebugInfo &debug_info)
size_t element_id() const
const DebugInfo & debug_info() const
virtual ElementType type_id() const =0
Returns the type of the element.
Definition sdfg_builder.h:13
ElementType type_id() const override
Returns the type of the element.
Definition interstate_edge.h:99
static bool classof(const Element &element)
Definition interstate_edge.h:103
InterstateEdge(const InterstateEdge &state)=delete
const control_flow::State & src() const
Returns the source state of this edge.
const control_flow::Assignments & assignments() const
Returns the symbol assignments for this edge.
const control_flow::State & dst() const
Returns the destination state of this edge.
const graph::Edge edge() const
Returns the graph edge representing this interstate edge.
void replace(const symbolic::Expression old_expression, const symbolic::Expression new_expression) override
Replaces symbolic expressions in the edge's condition and assignments.
const symbolic::Condition condition() const
Returns the condition guarding this transition.
void validate(const Function &function) const override
Validates the interstate edge within the context of a function.
InterstateEdge & operator=(const InterstateEdge &)=delete
bool is_unconditional() const
Checks if this edge represents an unconditional transition.
A state in a Stateful DataFlow Graph (SDFG).
Definition state.h:38
SymEngine::RCP< const SymEngine::Basic > Expression
Reference-counted pointer to a symbolic expression (SymEngine Basic).
Definition symbolic.h:83
std::unordered_map< Symbol, Expression, SymEngine::RCPBasicHash, SymEngine::RCPBasicKeyEq > SymbolMap
Map from symbols to expressions.
Definition symbolic.h:98
SymEngine::RCP< const SymEngine::Boolean > Condition
Reference-counted pointer to a boolean condition expression.
Definition symbolic.h:86
nlohmann::json json
Definition interstate_edge.h:14
Definition interstate_edge.h:22
symbolic::SymbolMap Assignments
Type alias for symbol assignments on interstate edges.
Definition interstate_edge.h:30
boost::graph_traits< Graph >::edge_descriptor Edge
Definition graph.h:26
ElementType
Definition element.h:72
@ InterstateEdge
Definition element.h:74
Symbolic system for integer-based symbol analysis.