Skip to content

Require a list or set in check-sat-assuming through Python interface#297

Open
makaimann wants to merge 3 commits intomainfrom
check-sat-assuming-req-list
Open

Require a list or set in check-sat-assuming through Python interface#297
makaimann wants to merge 3 commits intomainfrom
check-sat-assuming-req-list

Conversation

@makaimann
Copy link
Copy Markdown
Collaborator

It can be easy to accidentally pass a single term to check_sat_assuming and not get an error. There was no error because terms are iterable, so it adds all the children as assumptions. However, this is typically not the desired behavior and can be very confusing.

Copy link
Copy Markdown
Collaborator

@yoni206 yoni206 left a comment

Choose a reason for hiding this comment

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

Great, thanks for this!

@makaimann
Copy link
Copy Markdown
Collaborator Author

Thanks for the review! The cvc5 tests are failing because I lost my file hosting where it downloaded pre-compiled versions from. I’ll look into fixing this and then will merge.

@yoni206
Copy link
Copy Markdown
Collaborator

yoni206 commented Jan 25, 2022

Cool.
What do you think about blocking the ability to merge when checks are unsuccessful?

@makaimann
Copy link
Copy Markdown
Collaborator Author

Sorry for the slow response! Good idea. I think that branch protection is already on, but it looks like you can still override it. Let me know if there's something else I should change.

@yoni206
Copy link
Copy Markdown
Collaborator

yoni206 commented Feb 1, 2022 via email

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