Guarded Command Language - Guarded Command

Guarded Command

The guarded command is the most important element of the guarded command language. In a guarded command, just as the name says, the command is "guarded". The guard is a proposition, which must be true before the statement is executed. At the start of that statement's execution, one may assume the guard to be true. Also, if the guard is false, the statement will not be executed. The use of guarded commands makes it easier to prove the program meets the specification. The statement is often another guarded command.

Read more about this topic:  Guarded Command Language

Famous quotes containing the words guarded and/or command:

    Home is a place not only of strong affections, but of entire unreserve; it is life’s undress rehearsal, its backroom, its dressing room, from which we go forth to more careful and guarded intercourse, leaving behind us much debris of cast-off and everyday clothing.
    Harriet Beecher Stowe (1811–1896)

    ‘Tis not in mortals to command success,
    But we’ll do more, Sempronius, we’ll deserve it.
    Joseph Addison (1672–1719)