Repository navigation
s2/flow: constructors allocate in the Region in scope - #11
Merged
Merged
Conversation
Flow.Cx also carries the enums, and Flow.check takes the Cx. A call of an enum case (with args: a
nullary case takes no ()) is an alloc step on the one Region capability in scope, as s1 chkCtor. With
no Region or two, the names check reports it. Not yet: a spec def allocates nothing (the s2 Ast has no
spec marker).
tests/s2/flow: tests/neg/alloc_after_free.srs (stuck at the Cons after r.free()), a constructor in an
open region, tests/neg/call_freed.srs (two {r: Region} needs r Open) and the body of two. Mutant:
constructors not recognized, and alloc_after_free passes.
This file contains hidden or 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
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
FLOW rung (parity F4): a constructor call is an
allocstep on the one Region capability in scope (s1 check.srs:708-716).Flow.Cxalso carries the enums, andFlow.checktakes the Cx.Tests: tests/neg/alloc_after_free.srs (stuck at the
Consafterr.free()), a constructor in an open region, tests/neg/call_freed.srs (two {r: Region}needs r Open) and the body of two. Mutant: constructors not recognized, and alloc_after_free passes. Local tests/run.sh: 182 ok, 0 FAIL.