CodeQL library for C#
codeql/csharp-all 2.0.1-dev (changelog, source)
Search

Class AssertionSplitting::AssertionSplit

A split for assertions. For example, in

void M(int i)
{
    Debug.Assert(i >= 0);
    System.Console.WriteLine("i is positive")
}

we record whether i >= 0 evaluates to true or false, and restrict the edges out of the assertion accordingly.

Import path

import semmle.code.csharp.controlflow.internal.Splitting

Direct supertypes

Indirect supertypes

Fields

Predicates

getAssertion

Gets the assertion.

isSuccess

Holds if this split represents a successful assertion.

toString

Gets a textual representation of this split.

Charpred