-
-
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 #1802 from informalsystems/ro/infinite-sets-bug
Encode infinite sets in the arrays encoding
- Loading branch information
Showing
4 changed files
with
75 additions
and
32 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 with infinite sets in the arrays encoding, see #1802 |
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,16 @@ | ||
----------------------------- MODULE InfDomFun --------------------------- | ||
\* A regression test for functions with infinite domain, see: | ||
\* https://github.com/informalsystems/apalache/issues/1798 | ||
EXTENDS Integers | ||
|
||
VARIABLES | ||
\* @type: Int -> Int; | ||
f | ||
|
||
Init == f = [[i \in Int |-> 0] EXCEPT ![0] = 42] | ||
|
||
Next == UNCHANGED f | ||
|
||
Inv == f[0] = 42 | ||
|
||
========================================================================== |
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