paramtest.tex 1.19 KB
  1
  2
  3
  4
  5
  6
  7
  8
  9
 10
 11
 12
 13
 14
 15
 16
 17
 18
 19
 20
 21
 22
 23
 24
 25
 26
 27
 28
 29
 30
 31
 32
 33
 34
 35
 36
 37
 38
 39
 40
 41
 42
 43
 44
 45
 46
 47
 48
 49
 50
 51
 52
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%TESTA O CASO ESPECIAL DE PARALELISMOS ENTRE PROCESSOS%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%AQUI, NO ENTANTO, OS PROCESSOS DE CHAMADA SÃO PARAMETRIZADOS%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%

\begin{circus}
\circchannel p : \nat
\end{circus}

\begin{circus}
\circchannel a
\end{circus}

\begin{circus}
\circprocess PARAMP \circdef
x : \nat \circspot
\circbegin
\end{circus}
\begin{circusaction}
\circspot p.x \then \Skip
\end{circusaction}
\begin{circus}
\circend
\end{circus}

\begin{circus}
\circprocess NUMP \circdef
\circbegin
\end{circus}
\begin{circusaction}
\circspot p.(2 + 3 - 5 + 7) \then \Skip
\end{circusaction}
\begin{circus}
\circend
\end{circus}

\begin{circus}
\circprocess PARAMPROC \circdef PARAMP (5) \interleave PARAMP (3) \interleave PARAMP (4)
\end{circus}

\begin{circus}
\circprocess PARPARPREFIX \circdef \circbegin
\end{circus}

\begin{circusaction}
\circspot (a \then (a \then \Skip \interleave a \then \Skip)) \interleave (a \then (a \then \Skip \interleave a \then \Skip))
\end{circusaction}

\begin{circus}
\circend
\end{circus}


%%%%%%%%%%%%%%%%%%%%%%%%%%%%%