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

feat: add ite operator and boolean fringe operators to instanciate condition #81

Merged
merged 3 commits into from
Oct 21, 2022

Conversation

nicdard
Copy link
Owner

@nicdard nicdard commented Oct 18, 2022

No description provided.

Comment on lines +323 to +333
def visit_bit_vector_ite(self, operator: BitVectorIte):
if operator in self._size:
operator.size = self._size[operator]
self._size[operator.operator_1] = operator.size
self._size[operator.operator_2] = operator.size
self._visit_ite(operator, BITVECTOR_OPERATOR)
else:
self._visit_ite(operator, BITVECTOR_OPERATOR)
operator.size = max(
[operator.operator_1.size, operator.operator_2.size])
self._is_var[operator] = self._is_var[operator.operator_1] and self._is_var[operator.operator_2]
Copy link
Owner Author

Choose a reason for hiding this comment

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

Not sure here, I am not sure whether we want to enforce that the size of both branches is the same or not, wdyt?

@nicdard nicdard merged commit 763fe49 into main Oct 21, 2022
@nicdard nicdard deleted the feat/if-strategy branch October 21, 2022 13:12
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