We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
Consider the following function:
void do_something(inout bit<8> val) { if (val == 8w0) { val = 8w1; return; } val = 8w2; return; }
After FrontEnd_32_SimplifyDefUse this is turned into
FrontEnd_32_SimplifyDefUse
void do_something(inout bit<8> val) { if (val == 8w0) { ; return; } val = 8w2; return; }
It seems that SimplifyDefUse does not consider the return statement and erroneously removes the assignment.
return_in_function_if.p4.txt return_in_function_if.stf.txt
The text was updated successfully, but these errors were encountered:
out parameters checked in the right context; fixes p4lang#2175
772cee8
c2547cb
307cfe4
8679518
1b53c67
mihaibudiu
No branches or pull requests
Consider the following function:
After
FrontEnd_32_SimplifyDefUse
this is turned intoIt seems that SimplifyDefUse does not consider the return statement and erroneously removes the assignment.
return_in_function_if.p4.txt
return_in_function_if.stf.txt
The text was updated successfully, but these errors were encountered: