Natural Semantics for Repeat

1 / 2

# Natural Semantics for Repeat - PowerPoint PPT Presentation

[ repeat tt ns ] &lt;S, s&gt;  s’ &lt;repeat S until B, s&gt;  s’. if B b s ’= tt. Natural Semantics for Repeat. [ repeat ff ns ] &lt;S , s&gt;  s’, &lt;while b do S, s’&gt;  s’’ &lt;while b do S, s&gt;  s’’ . if B b s ’=ff. Random. If n N. [ random ns ] &lt;random(x) , s&gt;  s[x n].

I am the owner, or an agent authorized to act on behalf of the owner, of the copyrighted work described.

## PowerPoint Slideshow about 'Natural Semantics for Repeat' - rehan

Download Policy: Content on the Website is provided to you AS IS for your information and personal use and may not be sold / licensed / shared on other websites without getting consent from its author.While downloading, if for some reason you are not able to download a presentation, the publisher may have deleted the file from their server.

- - - - - - - - - - - - - - - - - - - - - - - - - - E N D - - - - - - - - - - - - - - - - - - - - - - - - - -
Presentation Transcript

[repeatttns] <S, s>  s’<repeat S until B, s>  s’

if Bbs’=tt

Natural Semantics for Repeat

[repeatffns] <S , s>  s’, <while b do S, s’>  s’’ <while b do S, s>  s’’

if Bbs’=ff

Random

If n N

[randomns] <random(x) , s>  s[x n]

[randomsos] <random(x) , s>  s[x n]

If n N

x :=0 ;

finish := false;

while not finish do (finish := true or x := x +1)