Advertisement
Guest User

Untitled

a guest
Mar 3rd, 2015
204
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.06 KB | None | 0 0
  1. documentclass{article}
  2. usepackage{amsmath}
  3. usepackage{framed}
  4. begin{document}
  5.  
  6. begin{figure}
  7. begin{framed}
  8. begin{center}
  9. begin{tabular}{lr@{:space}l}
  10. textbf{in} & $a,b$ & textbf{integer where } $a>0$, $b>0$\
  11. textbf{local} & $y_1,y_2$ & textbf{integer where } $y_1=a$, $y_2=b$\
  12. textbf{out} & $g$ & textbf{integer}
  13. end{tabular}
  14. end{center}
  15. begin{equation*}
  16. left[begin{array}{l}
  17. ell_0: left[ begin{array}{l}
  18. ell_1: textbf{while $y_1ne y_2$ do}\
  19. qquadell_2
  20. left[ begin{array}{l}
  21. {ell_3:textbf{ await }y_2>y_1;ell_4: y_2=y_1-y_2}\
  22. quadtextbf{or}\
  23. {ell_5:textbf{ await }y_2>y_1;ell_6: y_2=y_2-y_1}
  24. end{array}
  25. right]\
  26. ell_7: g:=y_1\
  27. end{array}
  28. right]\
  29. ell_8:
  30. end{array}
  31. right]
  32. end{equation*}
  33. caption{A fully labeled program GCD-F.}
  34. end{framed}
  35. end{figure}
  36.  
  37. end{document}
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement