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

button.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