Skip to content

Commit

Permalink
Add variability rule for multiple return assignment
Browse files Browse the repository at this point in the history
  • Loading branch information
henrikt-ma committed Mar 18, 2022
1 parent 35c70fd commit 5a2b0fe
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions chapters/operatorsandexpressions.tex
Original file line number Diff line number Diff line change
Expand Up @@ -1347,6 +1347,8 @@ \section{Variability of Expressions}\label{variability-of-expressions}
\begin{itemize}
\item
For an assignment \lstinline!v := expr! or binding equation \lstinline!v = expr!, \lstinline!v! must be declared to be at least as variable as \lstinline!expr!.
\item
For multiple return assignment \lstinline!(x1, $\ldots$, xn) := expr! (see \cref{assignments-from-called-functions-with-multiple-results}), all of \lstinline!x1!, \ldots, \lstinline!xn! must be declared to be at least as variable as \lstinline!expr!.
\item
When determining whether an equation can contribute to solving for a variable \lstinline!v! (for instance, when applying the perfect matching rule, see \cref{synchronous-data-flow-principle-and-single-assignment-rule}), the equation can only be considered contributing if the resulting solution would be at most as variable as \lstinline!v!.
\item
Expand Down

0 comments on commit 5a2b0fe

Please sign in to comment.