Skip to content

feat: simplify lookups - #2114

Merged
DavePearce merged 1 commit into
mainfrom
2111-feat-simplify-lookup-constraints-to-support-registers-only
Aug 7, 2026
Merged

feat: simplify lookups#2114
DavePearce merged 1 commit into
mainfrom
2111-feat-simplify-lookup-constraints-to-support-registers-only

Conversation

@DavePearce

Copy link
Copy Markdown
Contributor

Lookup sources, targets and selectors must now be column accesses rather than arbitrary expressions, simplifying the parser, resolver and translator since a lookup no longer synthesises computed columns for its operands. Every test which relied on an expression in a deflookup / defclookup has been rewritten to introduce a temporary register holding the value of that expression, defined by an ordinary vanishing constraint, with the corresponding accepts / rejects traces updated to supply the new column; constant selectors (as in valid/lookup_23 and agnostic/lookup_06) become columns with ":padding 1" so that the implicit padding row behaves exactly as before. Each reject trace was checked to still fail because of its lookup, rather than because of the constraint defining its temporary register.

@DavePearce DavePearce linked an issue Aug 6, 2026 that may be closed by this pull request
@DavePearce
DavePearce force-pushed the 2111-feat-simplify-lookup-constraints-to-support-registers-only branch 2 times, most recently from f5bb97f to 5ddbc59 Compare August 6, 2026 22:14
Lookup sources, targets and selectors must now be column accesses rather
than arbitrary expressions, simplifying the parser, resolver and
translator since a lookup no longer synthesises computed columns for its
operands.  Every test which relied on an expression in a deflookup /
defclookup has been rewritten to introduce a temporary register holding
the value of that expression, defined by an ordinary vanishing
constraint, with the corresponding accepts / rejects traces updated to
supply the new column; constant selectors (as in valid/lookup_23 and
agnostic/lookup_06) become columns with ":padding 1" so that the
implicit padding row behaves exactly as before.  Each reject trace was
checked to still fail because of its lookup, rather than because of the
constraint defining its temporary register.

Signed-off-by: DavePearce <dave01001110@gmail.com>
@DavePearce
DavePearce force-pushed the 2111-feat-simplify-lookup-constraints-to-support-registers-only branch from 5ddbc59 to 5d14895 Compare August 6, 2026 23:56

@letypequividelespoubelles letypequividelespoubelles left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

almost blind approval

@DavePearce
DavePearce merged commit f7e6c10 into main Aug 7, 2026
22 checks passed
@DavePearce
DavePearce deleted the 2111-feat-simplify-lookup-constraints-to-support-registers-only branch August 7, 2026 03:47
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.

feat: simplify lookup constraints to support registers only

2 participants