Skip to content

merge queue: checking #2174 + #2177 + #2183 together on master (80ecc20), stacked on #2181 - #2191

Closed
mergify[bot] wants to merge 8 commits into
masterfrom
mergify/merge-queue/1eef45bb74
Closed

mergify[bot] wants to merge 8 commits into
masterfrom
mergify/merge-queue/1eef45bb74

Conversation

@mergify

@mergify mergify Bot commented Oct 26, 2026 •

Copy link
Copy Markdown
Contributor

Note

This is a merge queue draft opened by Mergify. Nobody needs to act on it.
Mergify opened it for batch encouraging-cantal-vexejk of the changes queue, to test #2174, #2177 and #2183 before they merge into master.

What this draft tests

Mergify checks that #2174, #2177 and #2183 still pass CI once combined with everything queued ahead of them. CI runs on this draft's code, built in this order:

  1. master at 80ecc20
  2. the pull request queued ahead of this batch, listed below, which brings the tip to 6ffd929
  3. #2174 + #2177 + #2183, the pull requests of this batch, tested together as one tip

The check is speculative: it assumes the pull requests ahead will merge, so it starts without waiting for them.

✨ Where it stands: closed

The pull request #2174 has been manually updated.

Follow the changes queue in the dashboard

What happens next

  • Mergify closes this draft.
  • #2177 and #2183 are still in the queue.

Tip

A red check is not necessarily caused by this batch. These checks run on a tip that also carries the commits of the pull request ahead, so a failure here can come from it as much as from #2174 + #2177 + #2183. See only this batch's changes.

Queued ahead of this batch

This pull request entered the queue before this batch and is not part of it.

  • #2181 — shares the scope core
Metadata for CI tooling, read by mergify ci
---
all_scopes: false
checking_base_sha: 6ffd9296e972650ee9d05e4afac52c90e8418a41
previous_check_retries: []
previous_failed_batches: []
pull_requests:
  - number: 2174
    scopes:
      - core
  - number: 2177
    scopes:
      - core
  - number: 2183
    scopes:
      - core
scopes:
  - core
...
1 scope
  • core
Required conditions of queue rule changes for merge
Required conditions to stay in the queue
Queue graph

The diagram is not laid out in queue order, so a node's position says nothing about when it merges.

graph LR
    eb222a626fc84c9497f8070d6e7fa386["progressive-raclette-enwsm4<br/>#2181<br/>scopes: core"]
    c71d06d6ca8b4ed79023ae6dfd35cea0["encouraging-cantal-vexejk<br/>#2174 + #2177 + #2183<br/>scopes: core"]
    eb222a626fc84c9497f8070d6e7fa386 --> c71d06d6ca8b4ed79023ae6dfd35cea0
    style c71d06d6ca8b4ed79023ae6dfd35cea0 fill:#6366f1,color:#fff
Loading

tignear and others added 8 commits October 27, 2026 01:57
Array calls such as values.sum and values.product() now evaluate for
one-dimensional fixed integral arrays, dynamic arrays, queues and associative
arrays. Preserve the element width, signedness, packed query shape and X/Z
propagation (IEEE 1800-2023 7.12.3), including byte overflow when the destination
is wider. Empty containers reduce to zero. Accept ordinary and discarded calls.

Use balanced expression trees for fixed arrays and heap traversal loops for
dynamic containers. Add five shared cases across the native, parallel native,
Cranelift, parallel Cranelift and WASM configurations. with expressions,
iterator arguments, multidimensional unpacked receivers, nonintegral elements
and array expression receivers remain unsupported.

The five unmodified upstream reduction simulation cases pass the official
sv-tests runner in both state modes at revision
db159ad8e9cbbd62036569d240153f753258f640. Update exactly those ten expectations
from fail to pass; preserve the other 3,290 rows. This was a focused upstream
run, not a full-corpus rerun.

Validation:
- Common SV suite: 5,684 passed, 20 existing ignored; latest container suite:
  113 passed, including the 25 new backend registrations.
- Analyzer/frontend units: 832 and 7 passed, with 3 existing analyzer ignores.
- Debug NAPI build and JS integration: 435 passed across 16 files.
- Official upstream reduction cases: 10 simulation passes using the final
  release driver; expectation/runner aggregate tests: 5 passed.
- Affected-crate all-targets Clippy with -D warnings, cargo fmt --all -- --check
  and git diff --check passed.

Independent checks were run without weakening assertions or adding exclusions:
- Verilator 5.052: 2 passed, 1 mismatch, 1 compile error, 1 four-state adapter
  unsupported. Fixed-array arithmetic widens in assignment/comparison context;
  a standalone byte-sum probe gives 400 on assignment despite an 8-bit result
  query. The parser rejects void casts of array reduction calls.
- Icarus 13.0: all 5 cases have compile errors; no independent passes claimed.
- xezim 0.11.3: all 5 compile, 1 passes and 4 mismatch. Standalone probes show
  negative-range fixed-array reduction, X/Z and packed result query differences,
  plus an empty dynamic product of 1 where Celox and Verilator return 0.

BREAKING CHANGE: The public ContainerOp enum adds five reduction variants;
downstream exhaustive matches must handle them.

Change-Id: Iec0f1a95026120fdb95b50e2eccea9cfc86bed6e
Add PreparedQuery::enumerate_cell to enumerate at most a caller-bounded projected cell under temporary predicates. Use one scoped CDCL database, retaining local learning while blocking already-seen projected assignments. Hidden witness multiplicity does not duplicate a projected model. Blocking clauses and their learned consequences never escape into the prepared query or a later cell.

Return Complete, TooLarge, or Unknown distinctly. One extra search distinguishes an exact-size cell from overflow; only Complete exposes models. Work and time budgets cover the entire cell operation, including model replay. Replay source formulas, contexts and predicate assumptions before accepting models or declaring overflow.

Add HashCells to prepare seed-selected affine XOR rows once and query different prefixes/targets without recompilation. Preserve constant and dependent rows, validate projection variables, and bound construction as well as search. These are partitioning/counting primitives, not a uniform sampler: adaptive sizing and a justified cell-acceptance/model-selection policy remain follow-up work. The exhaustive reservoir sampler remains test-only; an empty predicate prefix can still inspect a small whole domain within the explicit cell bound.

Validation: 98 Aplite unit tests and four README doctests. Checked every three-Boolean truth table across XOR cells; verified disjoint/complete partitions across seeds, projected multiplicity, alias/constant bits, exact thresholds, overflow, invalid inputs, budget recovery and no state leakage. A 32-bit domain narrowed by XOR predicates completes a 16-model cell; the unpartitioned query stops at overflow. Lydite IR/solver/kernel tests (38/29/5), affected all-target clippy, formatting, package/version checks and standalone package verification passed. No full RV32I campaign, release build, or production uniformity guarantee is claimed.

Change-Id: I562d30b5a8a1d9c75859358602aa1b3cc9c76455
Dense affine XOR queries exhausted the work budget even for an unconstrained 32-bit projection. Reduce each row against earlier rows before encoding, and transform cell targets by the same operations. Every original prefix and cell remains unchanged, including zero and dependent rows.

Validation: exhaustive original-versus-reduced cell comparison across 32 seeds, all three-bit prefixes and targets; prepared-query tests; Aplite tests and doctests; Aplite and Lydite consumer clippy and tests. The downstream 32-bit sampling regression now completes within the default budget.
Change-Id: I9afa00067cbc3831d331ed9a987982c4f23fb1f1
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