1 / 2

Natural Semantics for Repeat and Random in Programming

Understanding natural semantics for repeat and random functions in programming with relevant examples and explanations.

rehan
Télécharger la présentation

Natural Semantics for Repeat and Random in Programming

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