-
Notifications
You must be signed in to change notification settings - Fork 12
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
PTG: Disable controller gen and add new strategy generation
- Loading branch information
Showing
4 changed files
with
188 additions
and
64 deletions.
There are no files selected for viewing
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
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
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
40 changes: 40 additions & 0 deletions
40
tests/testcases/parametric_timed_games/strategy_generation/strategy_generation_1.imi
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,40 @@ | ||
(* Mikael & Baptiste, Aarhus, May 14, 2024 | ||
Strategy generation example, non-trivial | ||
Expected constraint: | ||
*) | ||
|
||
uncontrollable actions: u_1, u_2; | ||
|
||
var | ||
x : clock; | ||
|
||
automaton ptg | ||
|
||
actions: c_1, c_2, c_3, c_4, c_5, u_1, u_2; | ||
|
||
loc l1: invariant True | ||
when True sync u_1 goto l2; | ||
when x > 10 sync c_5 goto goal; | ||
|
||
loc l2: invariant True | ||
when 2 <= x & x <= 4 do {x:=0} sync u_2 goto l2; | ||
when 1 < x & x < 2 sync c_2 goto temp1; | ||
when x > 9 sync c_1 goto goal; | ||
|
||
loc temp1: invariant True | ||
when True sync c_3 goto temp2; | ||
|
||
loc temp2: invariant True | ||
when True sync c_4 goto goal; | ||
|
||
accepting loc goal: invariant True | ||
|
||
|
||
end (* ptg *) | ||
|
||
init := | ||
& loc[ptg] = l1 | ||
& x = 0 | ||
; | ||
|
||
end |