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

Support conditional branching in SE #5308

Closed
pavel-mikula-sonarsource opened this issue Jan 24, 2022 · 0 comments · Fixed by #5472
Closed

Support conditional branching in SE #5308

pavel-mikula-sonarsource opened this issue Jan 24, 2022 · 0 comments · Fixed by #5472
Assignees
Labels
Area: C# C# rules related issues. Area: CFG/SE CFG and SE related issues. Area: VB.NET VB.NET rules related issues.
Milestone

Comments

@pavel-mikula-sonarsource
Copy link
Contributor

pavel-mikula-sonarsource commented Jan 24, 2022

Branch only if block is reachable based on known constraints in the new Symbolic Execution engine.

var b = true;
if(b)
{
    // This should be explored
}
else
{
    // This should not be explored, because b had True constraint
}

Learning constraints on the way is in #5395

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Area: C# C# rules related issues. Area: CFG/SE CFG and SE related issues. Area: VB.NET VB.NET rules related issues.
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants