Skip to content

merge queue: checking #2175 + #2171 together on master (6b3e8b4), stacked on #2168 and #2170 - #2179

Closed
mergify[bot] wants to merge 8 commits into
masterfrom
mergify/merge-queue/2db593a3ea
Closed

mergify[bot] wants to merge 8 commits into
masterfrom
mergify/merge-queue/2db593a3ea

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 monetary-navet-d6u5p4 of the changes queue, to test #2175 and #2171 before they merge into master. Pushing to this branch or closing this pull request removes them from the queue.

What this draft tests

Mergify checks that #2175 and #2171 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 6b3e8b4
  2. the 2 pull requests queued ahead of this batch, listed below, which bring the tip to 2b1faae
  3. #2175 + #2171, 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: checks passed

CI passed on this draft.

Follow the changes queue in the dashboard

What happens next

  • Once the pull requests ahead have merged, Mergify merges #2175 and #2171 into master and closes this draft.
  • If a pull request ahead fails or leaves the queue without merging, this batch is requeued and checked again on a new draft: these checks assumed it would merge.

Tip

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

Queued ahead of this batch

These pull requests entered the queue before this batch and are not part of it.

Metadata for CI tooling, read by mergify ci
---
all_scopes: false
checking_base_sha: 2b1faaee40a98c11c56ea87d8ef8f7d2557ce5da
previous_check_retries: []
previous_failed_batches: []
pull_requests:
  - number: 2175
    scopes:
      - core
  - number: 2171
    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
    f4589e12df3548ffafba74307cac5dbd["monetary-navet-d6u5p4<br/>#2175 + #2171<br/>scopes: core"]
    eb222a626fc84c9497f8070d6e7fa386["progressive-raclette-enwsm4<br/>#2181<br/>scopes: core"]
    f4589e12df3548ffafba74307cac5dbd --> eb222a626fc84c9497f8070d6e7fa386
    style f4589e12df3548ffafba74307cac5dbd fill:#6366f1,color:#fff
Loading

tignear and others added 8 commits October 27, 2026 01:32
Aplite's fixed SAT phases produce the same witness for repeated scalar queries. Add solve_seeded with caller-owned seed-selected initial phases so constrained-randomization consumers can vary witnesses without changing the asserted formula or using global RNG state. Keep the existing proof search paths unchanged and use one bounded CDCL search for seeded queries. Replay all SAT assignments against the original formula and context; unsupported arrays and exhausted budgets return Unknown.

This is a seeded search primitive, not uniform sampling. IEEE 1800-2023 section 18.5.9 requires uniform legal-combination distributions unless ordering changes them. Distribution policy, solve-before, randc and SystemVerilog frontend/runtime integration remain follow-up work; this PR does not claim constrained-randomization conformance.

Validation: all 73 existing Aplite unit tests plus five seeded regressions, two README doctests, exhaustive two-Boolean truth-table oracle across 16 seeds, constrained bit-vector model diversity and replay, seed reproducibility, unique/unsatisfiable inputs and budget/unsupported cases. Lydite IR (38), solver (29) and kernel integration (5) tests passed with Z3 configured. Affected all-target clippy, cargo fmt, diff checks and standalone cargo package verification passed. No full RV32I campaign or release build was run.
Change-Id: Icc9fb9fedd174944495a3cef3d16c9a3b8f1bafb
Add a test-only bounded oracle for projected scalar solution sets. Enumerate distinct projected assignments, verify exact cardinalities on small domains and select a reservoir sample to check projection weighting. Hidden witness multiplicity must not change projected probabilities; incomplete enumeration must not expose a partial sample.

Whole-space enumeration is intentionally excluded from the public API and production build. It is a correctness reference for future scalable constrained-randomization algorithms, not the runtime randomize path. Keep the public solver surface at solve, solve_with_hint and solve_seeded; do not claim uniform production sampling or SystemVerilog constraint support.

Validation: 84 Aplite unit tests and two README doctests passed, including all two-Boolean truth-table counts, hidden-witness multiplicity, deterministic seed/distribution checks, exact model limits, global work exhaustion, zero timeout, empty projections and invalid input. All-target clippy, formatting and diff checks passed. No production solver algorithms were changed and no full RV32I campaign or release build was run.

Change-Id: Ia225f690beff201815b45c973d09d019d82d4b57
Repeated literal arithmetic in aggregate port defaults rediscovered declaration scopes and copied growing scope snapshots. Runtime select lowering also repeatedly attempted constant evaluation of large inlined expressions.

Skip declaration discovery for expression trees composed entirely of literals, reject required unbound runtime operands before constant substitution, reuse binary operands already evaluated for type context, and return width one for identical runtime bit-select bounds. Keep names in unselected query arms on the discovery path and preserve short-circuit evaluation.

Local compile measurements against master ee675d8, using frozen CLI binaries and identical options:
- 128 aggregate-default ports: 20.62 s to 0.69 s.
- 256 aggregate-default ports: 90 s timeout to 0.50 s.
- Original Taxi 32-channel Ethernet configuration: 123.971 s to 99.821 s, about 20% faster.
- VCU108 still exceeds the 300 s compile limit with both binaries. This remains unresolved.

Taxi sources were unchanged at cc70b270b910d369ab1ad7b3855e76399fd461f1. Taxi measurements cover compilation only, with O1 and two-state operation; cocotb runtime tests were not rerun. These are local measurements rather than timing assertions in CI.

Validation:
- Analyzer/frontend unit tests: 846 passed; 2 doctests passed.
- Full SystemVerilog backend suite: 5,664 passed; 20 existing skips.
- Clippy for celox-sv-analyzer, celox-frontend-sv and celox tests with systemverilog, cranelift and wasm-runtime: passed with -D warnings.
- cargo fmt --all -- --check and git diff --check: passed.

Regression tests assert discovery/evaluation counts and width semantics without wall-clock thresholds. Shared executable cases and external adapters are unchanged.

Change-Id: Ia023a992051109e82c9ae3ae147c313b49f70e54
Repeated constraint queries currently validate and bit-blast the same expressions on every solve. Add PreparedQuery to compile a fixed scalar formula, context and Boolean predicate definitions once, then assert chosen predicate polarities per call. Encode assumptions as decision levels rather than permanent unit clauses, reapply them after backjumps, and retain learned clauses after successful searches. Discard mutable search state after UNSAT or interruption while keeping the original encoding reusable.

Share source compilation, phase initialization and model replay with the existing solver. Replay every SAT witness against the original formula, requested context and asserted predicates. Preparation and solve budgets are explicit and separate; invalid predicate indexes or resource exhaustion return Unknown, never UNSAT. The API is a reusable solving primitive, not a uniform sampler or an implementation of SystemVerilog randomize.

Validation: 84 existing Aplite tests plus six prepared-query regressions and three README doctests. Exhaustively checked 4,096 changing assumption queries against all three-Boolean truth tables; tested retained learned clauses, opposite/duplicate/constant assumptions, sort conflicts, invalid input, and recovery after interrupted searches. Lydite IR (38), solver (29), kernel (5), and pipeline/search consumers (7) passed, including finite-only proofs and deliberate fault detection. Affected all-target clippy, formatting, package include/version checks, diff checks and standalone cargo package verification passed. No full RV32I campaign or release build was run.
Change-Id: I80ec43950e64c7fc7a7dfc0c0975848fe51adea2
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