thesis/src/alg/pfor/conditions/groupdependent.tex

20 lines
592 B
TeX

\begin{algorithmic}
\State entrée : un ensemble d'instructions $P = \{I_1, ..., I_n\}$
\State sortie : l'ensemble des sous-ensembles d'instructions dépendantes
\Function{GrouperInstructionsDépendantes}{$P$}
\State $G \gets \emptyset$
\ForAll{$I_k \in P$}
\State $P_a \gets \{I_k\}$
\State $P_c \gets P_a$
\ForAll{$P_b \in G$}
\If{not \Call{TestBernstein}{$P_a$, $P_b$}}
\State $G \gets G \setminus \{P_b\}$
\State $P_c \gets P_c \cup P_b$
\EndIf
\EndFor
\State $G \gets G \cup \{P_c\}$
\EndFor
\State \Return $G$
\EndFunction
\end{algorithmic}