-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
also seems like the tsl-api is out of date with the command liner version - still should be correct i think, but the command line version sometimes gives smaller solutions
- Loading branch information
1 parent
2f84fd1
commit d19a66c
Showing
3 changed files
with
28 additions
and
0 deletions.
There are no files selected for viewing
File renamed without changes.
File renamed without changes
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,28 @@ | ||
initially assume{ | ||
! inCave passage; | ||
! inMarket passage; | ||
! inTown passage; | ||
} | ||
|
||
always assume { | ||
//we wont hallucinate a cave, but we might accidentally end up in town or at a market | ||
[passage <- toCave passage] <-> X inCave passage; | ||
[passage <- toMarket passage] -> X inMarket passage; | ||
[passage <- toTown passage] -> X inTown passage; | ||
} | ||
|
||
guarantee { | ||
//you cant go to the cave until you have been to town and the market once | ||
(! (inCave passage)) W (inMarket passage); | ||
(! (inCave passage)) W (inTown passage); | ||
|
||
} | ||
|
||
always guarantee { | ||
//eventually, always visit all the places, and keep summary up to date | ||
[summary <- updateSummary passage]; | ||
F inCave passage; | ||
F inMarket passage; | ||
F inTown passage; | ||
} | ||
|