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.

40 lines
1.2 KiB

  1. ---------------------- MODULE MC_n4_f2_amnesia -------------------------------
  2. EXTENDS Sequences
  3. CONSTANT Proposer \* the proposer function from 0..NRounds to 1..N
  4. \* the variables declared in TendermintAcc3
  5. VARIABLES
  6. round, step, decision, lockedValue, lockedRound, validValue, validRound,
  7. msgsPropose, msgsPrevote, msgsPrecommit, evidence, action
  8. \* the variable declared in TendermintAccTrace3
  9. VARIABLE
  10. toReplay
  11. \* old apalache annotations, fix with the new release
  12. a <: b == a
  13. INSTANCE TendermintAccTrace_004_draft WITH
  14. Corr <- {"c1", "c2"},
  15. Faulty <- {"f3", "f4"},
  16. N <- 4,
  17. T <- 1,
  18. ValidValues <- { "v0", "v1" },
  19. InvalidValues <- {"v2"},
  20. MaxRound <- 2,
  21. Trace <- <<
  22. "UponProposalInPropose",
  23. "UponProposalInPrevoteOrCommitAndPrevote",
  24. "UponProposalInPrecommitNoDecision",
  25. "OnRoundCatchup",
  26. "UponProposalInPropose",
  27. "UponProposalInPrevoteOrCommitAndPrevote",
  28. "UponProposalInPrecommitNoDecision"
  29. >> <: Seq(STRING)
  30. \* run Apalache with --cinit=ConstInit
  31. ConstInit == \* the proposer is arbitrary -- works for safety
  32. Proposer \in [Rounds -> AllProcs]
  33. =============================================================================