1 / 2

# Natural Semantics for Repeat - PowerPoint PPT Presentation

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

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

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

An Image/Link below is provided (as is) to download presentation

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

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)