-
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.
Merge branch 'master' of https://github.com/Barnard-PL-Labs/CYOA-TSL
- Loading branch information
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; | ||
} | ||
|