Skip to content

[pull] main from B-Lang-org:main#184

Merged
pull[bot] merged 2 commits into
chenm001:mainfrom
B-Lang-org:main
Jul 11, 2026
Merged

[pull] main from B-Lang-org:main#184
pull[bot] merged 2 commits into
chenm001:mainfrom
B-Lang-org:main

Conversation

@pull

@pull pull Bot commented Jul 11, 2026

Copy link
Copy Markdown

See Commits and Changes for more details.


Created by pull[bot] (v2.0.0-alpha.4)

Can you help keep this open source service alive? 💖 Please sponsor : )

nanavati and others added 2 commits July 11, 2026 19:34
Merging two mutually exclusive calls to the same Action method in one
rule built a mux over the WHOLE argument.  Since the port-splitting
rework keeps tuple-typed method arguments as real tuple constructions
through ASyntax, a whole-tuple mux def is an internal error in
AVerilog (vDefMpd renders only literal tuple defs).

ILift now distributes the mux over PrimPair structure (looking through
ICValue references) and declines the merge when a side does not expose
a tuple literal; ACleanup then merges those per element at the ASyntax
level, selecting from non-literal sides with ATupleSel -- the form
AState already emits and AVerilog lowers.

Regression tests: SplitIfTuple (conditional calls in one rule, under
the default -lift and under -no-lift) and CrossRule (calls in two
mutually exclusive rules, exercising AState's per-port muxing of
tuple arguments).

Co-Authored-By: Claude Fable 5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_011X4pjSzD37mKTcPUG9Z7Gw
checkPortNames obtained the expected port count by applying the
TTupleSize type function directly in its body, leaving the unreduced
application to flow through to elaboration.  The fix for #890
(expanding type functions when checking explicit type signatures, PR
#916) makes the typechecker surface that application as a TupleSize
predicate, which the declared context must then cover.

Declare the proviso on checkPortNames (using valueOf n in the body)
and thread TupleSize (PortsOf a) n through the three WrapMethod
instances that call it.  This compiles identically today and remains
valid once the #890 fix lands.

Co-Authored-By: Claude Fable 5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_011X4pjSzD37mKTcPUG9Z7Gw
@pull pull Bot locked and limited conversation to collaborators Jul 11, 2026
@pull pull Bot added the ⤵️ pull label Jul 11, 2026
@pull
pull Bot merged commit 578123c into chenm001:main Jul 11, 2026
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant