Skip to content

affeq: optimize sparse affeq join #1773

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

Open
wants to merge 5 commits into
base: master
Choose a base branch
from

Conversation

DrMichaelPetter
Copy link
Collaborator

following #1625 , we can optimize the sparse affeq join even more: During join, we have several occasions where our implementation insists on accessing vectors via nth. By cleverly rewriting the the procedure for disjunction of linear equalities, we can get rid of the harmful instances of this, hopefully making affine equalities an even more viable domain.

@DrMichaelPetter DrMichaelPetter self-assigned this Jul 1, 2025
@DrMichaelPetter DrMichaelPetter added in progress performance Analysis time, memory usage relational Relational analyses (Apron, affeq, lin2var) labels Jul 1, 2025
@DrMichaelPetter
Copy link
Collaborator Author

Next step is the evaluation, whether the changes are sound, and how much this impacts the performance, by running this on SVCOMP.

@DrMichaelPetter
Copy link
Collaborator Author

First tests look rather promising - next up is the svcomp run.
optimizedaffeq
here, the left affeq column is this PR's numbers, the right column is the master's affeq numbers

@DrMichaelPetter
Copy link
Collaborator Author

SV Comp shows no wrong verdicts, this is looking good.

Copy link
Member

@michael-schwarz michael-schwarz left a comment

Choose a reason for hiding this comment

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

I did not really investigate the algorithm, but just left some code style remarks.

DrMichaelPetter and others added 2 commits July 3, 2025 13:03
One big beautiful commit

Co-authored-by: Michael Schwarz <[email protected]>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
in progress performance Analysis time, memory usage relational Relational analyses (Apron, affeq, lin2var)
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants