11namespace expressions {
47 std::optional<uint64_t> automatonIndex = std::nullopt)
const;
Helper class that optionally holds a reference to an object of type T.
void makeVariablesGlobal(Model &model) const
Moves as many variables to the global scope as possible.
void makeVariablesLocal(Model &model, storm::OptionalRef< std::vector< Property > const > properties=storm::NullRef) const
Moves as many variables to a local scope as possible.
void makeVariableGlobal(storm::expressions::Variable const &variable, Model &model) const
Moves the given variable to the global scope.
bool canMakeVariableGlobal(storm::expressions::Variable const &variable, Model const &model) const
Checks whether this variable can be made global without introducing name clashes.
void makeVariableLocal(storm::expressions::Variable const &variable, Model &model, uint64_t automatonIndex) const
Moves the given variable into the local scope of the automaton with the given index.
JaniScopeChanger()=default
std::pair< bool, uint64_t > canMakeVariableLocal(storm::expressions::Variable const &variable, Model const &model, storm::OptionalRef< std::vector< Property > const > properties=storm::NullRef, std::optional< uint64_t > automatonIndex=std::nullopt) const
Checks whether this variable can be made local without introducing out-of-scope accesses.
constexpr NullRefType NullRef