1 / 2

Natural Semantics for Repeat

[ 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].

rehan
Download Presentation

Natural Semantics for Repeat

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. Content is provided to you AS IS for your information and personal use only. Download presentation by click this link. While downloading, if for some reason you are not able to download a presentation, the publisher may have deleted the file from their server. During download, if you can't get a presentation, the file might be deleted by the publisher.

E N D

Presentation Transcript


  1. [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

  2. 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)

More Related