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

Speed up propsSubset through stAppIndex check #1829

Merged
merged 2 commits into from
Mar 8, 2023

Conversation

pennyannn
Copy link
Contributor

@pennyannn pennyannn commented Mar 2, 2023

This PR change propsSubset to do a two-step check. First, it checks if x from ps1 exists in ps2 by checking term identity using stAppIndex. If it exists, return true, otherwise it does the more expensive convertibility check. This change improves the performance of propsSubset.

@pennyannn pennyannn marked this pull request as ready for review March 2, 2023 20:43
Copy link
Contributor

@chameco chameco left a comment

Choose a reason for hiding this comment

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

Thanks for the patch!

src/SAWScript/Proof.hs Show resolved Hide resolved
Copy link
Contributor

@chameco chameco left a comment

Choose a reason for hiding this comment

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

LGTM!

@chameco chameco merged commit 93ecec5 into GaloisInc:master Mar 8, 2023
@pennyannn pennyannn deleted the yppe/propsSubset branch March 27, 2023 19:34
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