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

Caches consts #221

Merged
merged 2 commits into from
Oct 3, 2024
Merged

Caches consts #221

merged 2 commits into from
Oct 3, 2024

Conversation

filipeom
Copy link
Member

@filipeom filipeom commented Oct 3, 2024

Adds `caches_consts` flag to mappings

Solvers can inform us that they cache constants by setting the flag
`caches_consts = true` in their mappings. This should avoid having a
`Map.find_opt` everytime we call `make_symbol`.

Currently the mappings that behave like this are only Z3

@filipeom
Copy link
Member Author

filipeom commented Oct 3, 2024

@joaomhmpereira I've set cvc5's caches_const=true so this should solve some performance issues?

EDIT: I reverted it as it was not passing the CI.

Solvers can inform us that they cache constants by setting the flag
`caches_consts = true` in their mappings. This should avoid having a
`Map.find_opt` everytime we call `make_symbol`.

Currently the mappings that behave like this are only Z3
@filipeom filipeom enabled auto-merge (rebase) October 3, 2024 11:03
@filipeom
Copy link
Member Author

filipeom commented Oct 3, 2024

Queueing to merge. We can set cvc5's caches_const to true in another PR

@filipeom filipeom merged commit 20dc1de into main Oct 3, 2024
10 checks passed
@filipeom filipeom deleted the caches-consts branch October 3, 2024 11:22
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant