identificationdivision. program-id. apt-p129. * aus Apt-Olderog - Programmverifikation author. Jens. date-written. 5.1.2009. date-compiled. datadivision. working-storagesection. linkagesection.
77 x pic 9(4).
77 y pic 9(4). proceduredivisionusing x y. * -------------------------------------- * S1 and S2 should run in parallel * -------------------------------------- perform S1 perform S2 stoprun.
S1. performuntil x<=0 move 0 to y if y=0 thenmove 0 to x elsemove 0 to y end-if end-perform.
S2. performuntil x<=0 move 1 to y if y=1 thenmove 0 to x elsemove 1 to y end-if end-perform. end-program apt-p129.
Messung V0.5
¤ Dauer der Verarbeitung: 0.1 Sekunden
(vorverarbeitet)
¤
Die Informationen auf dieser Webseite wurden
nach bestem Wissen sorgfältig zusammengestellt. Es wird jedoch weder Vollständigkeit, noch Richtigkeit,
noch Qualität der bereit gestellten Informationen zugesichert.
Bemerkung:
Die farbliche Syntaxdarstellung und die Messung sind noch experimentell.