mirror of
https://github.com/johndoe6345789/tla_visualiser.git
synced 2026-04-25 06:05:03 +00:00
755 B
755 B
Example TLA+ Specifications
This directory contains example TLA+ specifications for testing and demonstrating TLA+ Visualiser.
SimpleCounter.tla
A basic counter specification that demonstrates:
- Simple state variables
- Increment/Decrement actions
- Type invariants
Usage
- Import the spec in TLA+ Visualiser
- Run the model checker
- Explore the state graph (will show counter incrementing/decrementing)
With Command Line TLC
If you have TLC installed:
java -jar tla2tools.jar SimpleCounter.tla -config SimpleCounter.cfg
Adding More Examples
Feel free to add more example specs to demonstrate various TLA+ features:
- Concurrent algorithms
- Distributed systems
- Safety/liveness properties
- Deadlock detection