Skip to content

[TS PBT] Preserve bounded integer domains through bitwise coercions - #662

Open
CaelmBleidd wants to merge 1 commit into
caelmbleidd/pbt-live-input-validationfrom
caelmbleidd/pbt-bounded-integer-paths
Open

CaelmBleidd wants to merge 1 commit into
caelmbleidd/pbt-live-input-validationfrom
caelmbleidd/pbt-bounded-integer-paths

Conversation

@CaelmBleidd

Copy link
Copy Markdown
Member

Materialize a manifest integer as a bounded signed bit-vector, then convert it exactly to a JavaScript number. ECMAScript ToUint32 can recover the original bits directly for widths up to 32. At least two signed bits preserve -1 on the narrowest domains.

Stacked on #620 to exercise the public campaign and its native replay receipts. The regression reaches both outcomes of equality after | 0 coercion and checks the original property in Node. Additional tests cover narrow negative domains and the Int extrema.

Twenty scalar-domain and symbolic-replay tests passed locally. Both PBT modules passed Detekt.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant