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

[Feature request] Improve runtime for contains_behavior for PolyhedralIoContractCompound #342

Open
jgraeb opened this issue Nov 29, 2023 · 1 comment
Assignees

Comments

@jgraeb
Copy link
Collaborator

jgraeb commented Nov 29, 2023

Checking whether a behavior satisfies a contract compound takes a significant amount of time, in the case that this behavior is not contained in the contract. Attached is a test where the runtime can be checked for a big polyhedral contract compound in "test_contract.json" and the matching behavior dictionary "test_behavior.json". The test is in "test_evaluate_behavior.py". Loading the contract from the file takes a significant amount of time as well.

To check the runtime of the merge that resulted in that contract the individual contracts are in "test_merge_contracts.json".

test_behavior.json
test_contract.json
test_merge_contracts.json
test_contains_behavior.py.zip

@iincer
Copy link
Collaborator

iincer commented Nov 30, 2023

Thanks @jgraeb!
Per your subsequent findings about the size of these contracts after merging, do we still have to address this issue?

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

No branches or pull requests

2 participants