Skip to content

[WIP][gen] Remove locally-order-before in baseline configuration file.#1665

Draft
ShaleXIONG wants to merge 18 commits intoherd:masterfrom
ShaleXIONG:config-remove-local-order-before-dependency
Draft

[WIP][gen] Remove locally-order-before in baseline configuration file.#1665
ShaleXIONG wants to merge 18 commits intoherd:masterfrom
ShaleXIONG:config-remove-local-order-before-dependency

Conversation

@ShaleXIONG
Copy link
Copy Markdown
Collaborator

This pull request revisits the baseline configuration file forbidden.conf given the feedback. The main purpose is to remove some unnecessary locally-order-before relaxation sequences when generating tests from forbidden.conf. For those sequences, we explicitly add external communication edges. For example, DpCtrldW is strengthened to [DpCtrldW Ext]. Those strengthening corresponds to patterns ...; po and ...; po; [M] in suffix, and po;... and [M]; po; ... in prefix.

In separate commits, minor update:

  • update and use more wildcards syntax, esp, * for different and same location.
  • introduce a new wildcard Ext that unfold to Rfe, Fre and Coe.
  • add back [DpAddrdW PosWW] [DpAddrdR PosRW] because it will NOT combined by diy7 due to internal filter.
  • change the mapping of lrs in cat-relation to Rfi, since previous mapping of PosWR will rule out cycles such as DMB.STdWW Rfe DpAddrdW RfiPA PodRRAP Fre due to internal filter.

@ShaleXIONG ShaleXIONG requested a review from relokin January 19, 2026 11:28
@ShaleXIONG ShaleXIONG force-pushed the config-remove-local-order-before-dependency branch 5 times, most recently from 21ddcfc to 1ea6512 Compare January 22, 2026 17:13
@ShaleXIONG ShaleXIONG force-pushed the config-remove-local-order-before-dependency branch 2 times, most recently from 4de268e to 8185218 Compare February 11, 2026 14:36
@ShaleXIONG ShaleXIONG marked this pull request as ready for review February 18, 2026 11:32
@ShaleXIONG ShaleXIONG marked this pull request as draft February 24, 2026 14:56
@ShaleXIONG ShaleXIONG changed the title [gen] Remove locally-order-before in baseline configuration file. [WIP][gen] Remove locally-order-before in baseline configuration file. Feb 24, 2026
@ShaleXIONG ShaleXIONG force-pushed the config-remove-local-order-before-dependency branch from 8185218 to 137bc91 Compare February 25, 2026 17:00
@ShaleXIONG ShaleXIONG force-pushed the config-remove-local-order-before-dependency branch from 137bc91 to 86f56d6 Compare March 27, 2026 15:49
@ShaleXIONG ShaleXIONG force-pushed the config-remove-local-order-before-dependency branch from 5ebe6d2 to 369e881 Compare April 7, 2026 15:02
@ShaleXIONG ShaleXIONG force-pushed the config-remove-local-order-before-dependency branch from 369e881 to 42864ae Compare April 23, 2026 15:06
ShaleXIONG and others added 15 commits April 25, 2026 09:13
Replace the old `LexUtil` split-based relax parser with a proper
lexer/parser pipeline that builds `Ast.t`. This adds support for:
- top-level and grouped choice with `|`. For example `PosWR|DpAddrdW`
  means either `PosWR` or `DpAddrdW`.
- optional relaxations with `?`
  For example `PosWR?`, means either `PosWR` or `` (empty).
- canonical AST normalization plus expansion to concrete sequences

Update `diy7`, `diycross7`, `diyone7`, `norm7`, `readRelax`, `logRelax`,
`edge`, and `relax` to consume the new AST-based parser, and remove the
old `lexUtil.mli` split API.
Add unit tests `gen/tests/test_parser.ml` and `.expected`.
- tests for three parsers
- tests for remove invalid relaxes.
…tests.

For `...;po` and `...;po;[M]` in cat, we append the external
communication edges `Obs` in the translation. Similarly for `po;...` and
`[M];po;...`, we prefix `Obs`.
Add back `Amo.StAdd` and `Amo.LdAdd` as the representation for all other
atomic operation. We also remove `[Q Amo.* ***]` as `Q` cannot apply to
`Amo.*`
@ShaleXIONG ShaleXIONG force-pushed the config-remove-local-order-before-dependency branch 2 times, most recently from 523612c to 315b995 Compare April 27, 2026 15:30
@ShaleXIONG ShaleXIONG force-pushed the config-remove-local-order-before-dependency branch from 315b995 to f5939a7 Compare April 28, 2026 10:15
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