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
A sequence of statements in a switch case should be counted similar to a compound statement.
Example:
void path_024_expected_5(int a, int b, int c){ switch (a){ case 0: if (b){ } if (c){ } break; default: break; } }
The if(a), if(b) sequence creates 4 paths + 1 for the default = 5, but ccsm reports 3.
If the if-statements are put into a block, we get the expected path count.
void path_025_expected_5(int a, int b, int c){ switch (a){ case 0: { if (b){ } if (c){ } break; } default: break; } }
The text was updated successfully, but these errors were encountered:
Fixed by merged pull request.
Sorry, something went wrong.
No branches or pull requests
A sequence of statements in a switch case should be counted similar to a compound statement.
Example:
The if(a), if(b) sequence creates 4 paths + 1 for the default = 5, but ccsm reports 3.
If the if-statements are put into a block, we get the expected path count.
The text was updated successfully, but these errors were encountered: