pyspec: SpecExpr arithmetic/comparison/boolean vocabulary#1426
Open
julesmt wants to merge 3 commits into
Open
Conversation
…wering Adds the SpecExpr constructors (arithmetic/comparison/boolean/unary/is-membership values incl. pow and neg) with full DDM serialization round-trip and Laurel lowering to the runtime prelude ops (PEq/PNEq/PLt..PGe, PAdd..PPow, PNeg), matching the body translator. No producers yet.
…or/not, unary -, is/in) to the SpecExpr vocabulary transExpr/transCompare producers via a binArith helper; routes == to the normalized PEq term and is/is-not-None and in/not-in through the prelude P-ops, so a contract and a caller agree. Drops the now-obsolete 'unsupported comparison' warning expectation.
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.
Lets contracts use the operators a Python body can, each lowering to the same runtime prelude term the body emits (so a contract and a caller agree):