Skip to content

Preserve frozen ports on Behavior Annex subprogram dispatch triggers 馃 - #3275

Merged
lwrage merged 2 commits into
masterfrom
3264_preserve_frozen_rpc_ports
Sep 20, 2026
Merged

lwrage merged 2 commits into
masterfrom
3264_preserve_frozen_rpc_ports

Conversation

@lwrage

@lwrage lwrage commented Sep 20, 2026

Copy link
Copy Markdown
Contributor

Summary

Fixes #3264.

Behavior Annex strict-model translation now preserves the optional frozen-port list after a provided-subprogram-access dispatch trigger.

Cause and correction

DeclarativeToStrictTranslator.toDispatchCondition represents a single subprogram-access trigger directly as SubprogramAccessHolder, then returned before the shared frozen-port translation ran.

The translator now keeps that direct trigger representation but continues through the common dispatch-condition path. Event and event-data triggers still receive their DispatchTriggerLogicalExpression wrapper, while both forms retain frozen-port ordering and source traces.

Regression

Issue3264Test loads an external AADL model containing on dispatch rpc frozen (incoming) and an event-data-port control using the same frozen port. It asserts zero diagnostics, the expected direct and logical trigger representations, both frozen-port lists, their order, and their declarative trace mappings. Diagnostics, positions, resolved-model, and unparse corpus goldens cover the fixture.

Validation

  • Issue3264Test: 1 test, 0 failures/errors
  • Issue3167Test: 5 tests, 0 failures/errors
  • Full org.osate.ba.tests suite: 222 tests, 0 failures/errors
  • Clean root reactor with -o -T5, -Dtycho.localArtifacts=ignore, and clean install: 143 projects succeeded; 1,758 tests, 0 failures/errors/skips
  • git diff --check: passed

Dependencies and residual risk

There is no semantic dependency on PR #3274, but both PRs touch toDispatchCondition; whichever merges second may need a small rebase.

This change addresses strict-model preservation only. The broader D.4 direction, protocol, and effective-property compatibility matrix remains tracked by #3187.

Model subprogram-access and event-data dispatch triggers with the same frozen input port. Assert that both strict conditions preserve the ordered frozen list and its declarative source trace while validation remains clean.
Keep the direct subprogram-access trigger representation without returning before common dispatch-condition translation completes. This preserves the following frozen-port list and its trace while leaving event triggers in their logical wrapper.
@lwrage
lwrage merged commit 04e54ef into master Sep 20, 2026
1 check passed
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.

Preserve frozen ports on Behavior Annex subprogram dispatch triggers 馃

2 participants