Skip to content
Snippets Groups Projects
Select Git revision
  • a1b2fe56bdab34020835d145e58d6a1cdc3fccf2
  • master default protected
2 results

TwoTrainsMA_Unicode.mch

Blame
  • Code owners
    Assign users and groups as approvers for specific file changes. Learn more.
    button.mch 389 B
    MACHINE button
    DEFINITIONS 
         "LibraryMeta.def";
          VISB_JSON_FILE == "button.json"
    VARIABLES
      button
    INVARIANT
      button:BOOL
    INITIALISATION
      button := FALSE
    OPERATIONS
      press_button = PRE button=FALSE THEN
        button:=TRUE
      END;
      toggle_button = BEGIN
        button:= bool(button=FALSE)
      END;
      set_button(newVal) = PRE newVal:BOOL THEN
         button := bool(newVal=TRUE)
      END
    END