-
-
Notifications
You must be signed in to change notification settings - Fork 40
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Support for FunAsSeq #1442
Support for FunAsSeq #1442
Conversation
Codecov Report
@@ Coverage Diff @@
## unstable #1442 +/- ##
============================================
- Coverage 74.57% 74.54% -0.03%
============================================
Files 360 360
Lines 11437 11430 -7
Branches 552 541 -11
============================================
- Hits 8529 8521 -8
- Misses 2908 2909 +1
Continue to review full report at Codecov.
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Looks fine, but I wonder if we couldn't change the interface of FunAsSeq(fn, maxSeqLen)
to FunAsSeq(fn)
instead, and just compute maxSeqLen == FoldSet(MaxOf2, 0, DOMAIN fn)
(at the cost of performance)
*/ | ||
object funAsSeq extends ApalacheOper { | ||
require(false, "This operator is defined in Apalache.tla. Do not construct it.") |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Why not just delete the object, if you're going to add require(false)
?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I also wanted to delete the object. But it is better to keep it as documentation.
That would not help us, as |
However, we should think further. Maybe there is a way to implement |
Closes #569. Instead of translating
FunAsSeq
to SMT, we are simply using its TLA+ definition viaMkSeq
.make fmt-fix
(or had formatting run automatically on all files edited)