Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix: Incorrect Trace Construction #208

Merged
merged 3 commits into from
Jun 20, 2024

Conversation

DavePearce
Copy link
Collaborator

This puts through a fix for the construction of Trace (which is used in the CGO API). Specifically, it was not enumerating registers. Rather it was enumerating columns, which lead to mismatches between the trace file and expected columns.

This adds a command-line interface to the `CGO` API.  The purpose of
this is to enable simple testing from the command line.
This puts in place an almost complete fix for #201.  Specifically,
instead of constructing `ComputedColumn`s for columns, it now does a
very similar process for registers.  This is not the most efficient
approach, as it requires searching for the columns allocated to a given
register.  Then, it determines the padding value for all columns and
checks they match.  However, improving this would require more invasive
changes which are out-of-scope at this time.

One issue remains however.  Specicifically, there appear to be registers
which are not associated with any column.  I'm not sure how this could
arise, or what's going on here.
This puts in place a fix for duplicate registers being added during
expression expansion.  Its not clear whether there are any other places
where this can happen, but none are being triggered on our (largish)
example.
@DavePearce DavePearce self-assigned this Jun 20, 2024
@DavePearce DavePearce linked an issue Jun 20, 2024 that may be closed by this pull request
@DavePearce DavePearce merged commit 9559248 into master Jun 20, 2024
1 check passed
@DavePearce DavePearce deleted the 201-incorrect-trace-construction branch June 20, 2024 00:18
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.

Incorrect Trace construction
1 participant