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

Solution for "Non Type_Bits type bool for expression" error #3120

Merged
merged 4 commits into from
Mar 14, 2022
Merged

Solution for "Non Type_Bits type bool for expression" error #3120

merged 4 commits into from
Mar 14, 2022

Conversation

vladyslav-dubina
Copy link
Contributor

@vladyslav-dubina vladyslav-dubina commented Mar 11, 2022

Added a simple test verify_disjunction.p4 to show the need for this change, we can run this test with --loopsUnroll argument
Changes solve the Non Type_Bits type bool for expression error.
Since there are cases when the expression in the setNonConstant function is of type Type_Boolean. This is mainly possible with multiple or in the condition.

midend/interpreter.cpp Outdated Show resolved Hide resolved
midend/interpreter.cpp Outdated Show resolved Hide resolved
@mihaibudiu mihaibudiu merged commit 451b1b2 into p4lang:main Mar 14, 2022
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.

4 participants