Repository navigation
s2/mono: instances from the roots (B1) - #23
Merged
Merged
Conversation
…ung B1) As s1/mono.srs: the roots are the non-generic defs; each generic call reached from an instance's body, with its type args reified by the final substitution and the instance's binders replaced, is a key (callee + ground args); a new key makes an instance (the El.Fn and its binders' args) to scan. The made set is a 2-3-4 tree from a key hash to a bucket of keys. tests/s2/types: over s2's own sources more than 100 generic instances, none with a var left; a small program reaches exactly Coll.length[I64], Coll.lengthFrom[I64], Coll.rev[I64], Coll.revOnto[I64]. Mutants: binders not replaced, reached instances not scanned: each changes the output.
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.
Self-host rung B1: monomorphization (
s2/mono.srs), as s1/mono.srs.Oracle: over s2's own sources, more than 100 generic instances, none with an unsolved type left. A small program reaches exactly
Coll.length[I64],Coll.lengthFrom[I64],Coll.rev[I64],Coll.revOnto[I64]. Two mutants (binders not replaced, reached instances not scanned) each change the output. Local tests/run.sh: 186 ok, 0 FAIL.