Back to table

if-tester1

The following is valid µOCCAM. This sample tests nested if conditonals and variable name correctness and assigment. It is valid as indentation is correct and variable names accepted.

Program file: /public/cs3/web/ipptests-phase-1/if-tester1.accept
IF
  num.a > num.b
    value := big
  num.a < num.b
    value := small
  1
    value := same