feat/blase: align parser semantics to parse sext/zext into extended widths from SMT-LIB.#1975
Merged
feat/blase: align parser semantics to parse sext/zext into extended widths from SMT-LIB.#1975
Conversation
…idths from SMT-LIB.
865cbac to
cf1cab3
Compare
bollu
added a commit
that referenced
this pull request
Mar 12, 2026
… precondition checks (#1976) SMT-LIB defines its semantics of PBV over `Int`, and makes zero extend, sign extend, and extract partial functions when the widths are negative. In contract, we define our semantics of PBV over nat. To bridge this gap, we define an interpretation of the SMT-LIB semantics where all subtractions are assumed to not result in negative numbers. That is, for any subterm `(w - v)`, we introduce a width precondition `w >= v`. Under this regime, our naive BMC solver correctly provides UNSAT for all of the PBV Alive dataset, showing that this is a sensible semantics. The PBV solver, leaves the cases when these happen as uninterpreted, one assumes, as per their spec. Moreover, this strategy of adding preconditions. Stacked on #1975.
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.
This fixes our encoding of pzero_extend and psign_extend to align with SMT-LIB standard.