Add contexts to type checking rules (take 2)#5
Merged
ivg merged 2 commits intoBinaryAnalysisPlatform:masterfrom Jun 1, 2018
Merged
Add contexts to type checking rules (take 2)#5ivg merged 2 commits intoBinaryAnalysisPlatform:masterfrom
ivg merged 2 commits intoBinaryAnalysisPlatform:masterfrom
Conversation
added 2 commits
May 31, 2018 20:45
This makes it simpler to write explanations in the tex file.
Contexts are necessary to rule out programs where one avraible name is used at multiple types. To capture the intution that statement variables are global, we check statements with a fixed context rather than extending it as new variables are encountered.
ivg
approved these changes
Jun 1, 2018
Member
ivg
left a comment
There was a problem hiding this comment.
Great, now it's nice and simple! Thanks!
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.
These contexts are necessary to catch typing errors where variables
are used with different types at different points in the program.
This version uses a fixed context for statements, with a separate
judgement "gamma is ok" to check for repeated variable names.