Skip to content

Fix array translation and zero-bit edge cases in Bitwuzla translator. - #5555

Draft
copybara-service[bot] wants to merge 1 commit into
mainfrom
test_1026791587
Draft

copybara-service[bot] wants to merge 1 commit into
mainfrom
test_1026791587

Conversation

@copybara-service

@copybara-service copybara-service Bot commented Nov 24, 2026 •

Copy link
Copy Markdown

Fix array translation and zero-bit edge cases in Bitwuzla translator.

Bitwuzla IR translation truncated wide array indices before bounds checks,
compared unreachable SMT array slots, and left zero-bit carriers unconstrained.
Constant arrays and synthetic one-bit indices on singleton dimensions also
triggered unsupported constant-array errors and nested array-solver stalls.

Check array index bounds at full input width before narrowing, and zero-extend
array-slice start offsets before adding element positions. Keep nested SMT array
sorts for multi-element dimensions, elide singleton array wrappers, store valid
elements without constant arrays, and compare only valid indices. Allow equality
and leaf-tree predicates on array-sorted nodes, and clamp zero-bit values,
reductions, and one-hot encodings to exact results.

@copybara-service copybara-service Bot changed the title [solvers] Fix array translation and zero-bit edge cases in Bitwuzla translator. Fix array translation and zero-bit edge cases in Bitwuzla translator. Nov 25, 2026
Bitwuzla IR translation truncated wide array indices before bounds checks,
compared unreachable SMT array slots, and left zero-bit carriers unconstrained.
Constant arrays and synthetic one-bit indices on singleton dimensions also
triggered unsupported constant-array errors and nested array-solver stalls.

Check array index bounds at full input width before narrowing, and zero-extend
array-slice start offsets before adding element positions. Keep nested SMT array
sorts for multi-element dimensions, elide singleton array wrappers, store valid
elements without constant arrays, and compare only valid indices. Allow equality
and leaf-tree predicates on array-sorted nodes, and clamp zero-bit values,
reductions, and one-hot encodings to exact results.

PiperOrigin-RevId: 1026791587

This branch has not been deployed

No deployments
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