-
-
Notifications
You must be signed in to change notification settings - Fork 40
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #2813 from informalsystems/ro/fix_function_inclusion
Add support for infinite sets in set inclusion for the (fun)arrays encoding
- Loading branch information
Showing
5 changed files
with
43 additions
and
2 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
fix crash on the arrays encoding when having a subset relation containing infinite sets, see #2810 |
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,22 @@ | ||
--------------- MODULE FunInInfiniteSubset ----------------- | ||
|
||
EXTENDS Integers | ||
|
||
P == {"P1_OF_P"} | ||
|
||
VARIABLE | ||
\* @type: P -> Set(Int); | ||
myVariable | ||
|
||
Init == | ||
myVariable = [p \in P |-> {0}] | ||
|
||
Step(p) == | ||
myVariable' = [q \in P |-> {0}] | ||
|
||
Next == \E p \in P : Step(p) | ||
|
||
TypeOkay == myVariable \in [P -> SUBSET Int] | ||
TypeOkay_ == TypeOkay | ||
|
||
============================================= |
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