A Boolean split that records the value of a Boolean SSA variable.
For example, in
var b = GetB();
if (b)
Console.WriteLine("b is true");
if (!b)
Console.WriteLine("b is false");
there is a Boolean split on the SSA variable for b at line 1.
Import path
import semmle.code.csharp.controlflow.internal.SplittingDirect supertypes
Indirect supertypes
Predicates
| canReachCorrelatedCondition | Holds if basic block |
| correlatesConditions | Holds if the branch taken by condition |
| getEnclosingCallable | Gets the callable that this Boolean split kind belongs to. |
| getLocation | Gets the location of this Boolean split kind. |
| toString | Gets a textual representation of this Boolean split kind. |
Inherited predicates
| startsSplit | Holds if control flow element | from BooleanSplitSubKind |