You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

46 lines
1.1 KiB

  1. ----------------------------- MODULE MC_n6_f1 -------------------------------
  2. CONSTANT
  3. \* @type: ROUND -> PROCESS;
  4. Proposer
  5. \* the variables declared in TendermintAcc3
  6. VARIABLES
  7. \* @type: PROCESS -> ROUND;
  8. round,
  9. \* @type: PROCESS -> STEP;
  10. step,
  11. \* @type: PROCESS -> VALUE;
  12. decision,
  13. \* @type: PROCESS -> VALUE;
  14. lockedValue,
  15. \* @type: PROCESS -> ROUND;
  16. lockedRound,
  17. \* @type: PROCESS -> VALUE;
  18. validValue,
  19. \* @type: PROCESS -> ROUND;
  20. validRound,
  21. \* @type: ROUND -> Set(PROPMESSAGE);
  22. msgsPropose,
  23. \* @type: ROUND -> Set(PREMESSAGE);
  24. msgsPrevote,
  25. \* @type: ROUND -> Set(PREMESSAGE);
  26. msgsPrecommit,
  27. \* @type: Set(MESSAGE);
  28. evidence,
  29. \* @type: ACTION;
  30. action
  31. INSTANCE TendermintAccDebug_004_draft WITH
  32. Corr <- {"c1", "c2", "c3", "c4", "c5"},
  33. Faulty <- {"f6"},
  34. N <- 4,
  35. T <- 1,
  36. ValidValues <- { "v0", "v1" },
  37. InvalidValues <- {"v2"},
  38. MaxRound <- 2
  39. \* run Apalache with --cinit=ConstInit
  40. ConstInit == \* the proposer is arbitrary -- works for safety
  41. Proposer \in [Rounds -> AllProcs]
  42. =============================================================================