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

symbolic: Factor stack setup code into its own module #431

Merged
merged 5 commits into from
Sep 3, 2024

Conversation

langston-barrett
Copy link
Contributor

@langston-barrett langston-barrett commented Aug 29, 2024

Factors some code out of Testing into its own module for the sake of clarity and code-sharing. Several downstream projects could benefit from this API, see #430 for examples.

Also, rewrites a comment that I believe to have been misleading.

@langston-barrett langston-barrett self-assigned this Aug 29, 2024
dbb4c83 introduced this stack-pointer-in-the-middle approach, but
the commit message has no further commentary on why it was seen as
necessary. I've written up why *I* believe it to be necessary, and
removed what I see as a misleading comment.

Also, return a pointer to the end of the stack, because that's what
most clients will want.
@langston-barrett langston-barrett changed the title symbolic: Modeling the stack symbolic: Factor stack setup code into its own module Aug 30, 2024
@langston-barrett langston-barrett marked this pull request as ready for review August 30, 2024 20:04
symbolic/src/Data/Macaw/Symbolic/Stack.hs Outdated Show resolved Hide resolved
symbolic/src/Data/Macaw/Symbolic/Stack.hs Outdated Show resolved Hide resolved
symbolic/src/Data/Macaw/Symbolic/Stack.hs Show resolved Hide resolved
@langston-barrett langston-barrett merged commit 897960d into master Sep 3, 2024
3 checks passed
@langston-barrett langston-barrett deleted the lb/stack-model branch September 3, 2024 19:35
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.

2 participants