Class NullnessNoInitTransfer

All Implemented Interfaces:
ForwardTransferFunction<CFValue,NullnessNoInitStore>, TransferFunction<CFValue,NullnessNoInitStore>, NodeVisitor<TransferResult<CFValue,NullnessNoInitStore>,TransferInput<CFValue,NullnessNoInitStore>>

public class NullnessNoInitTransfer extends CFAbstractTransfer<CFValue,NullnessNoInitStore,NullnessNoInitTransfer>
Transfer function for the non-null type system. Performs the following refinements:
  1. After an expression is compared with the null literal, then that expression can safely be considered NonNull if the result of the comparison is false or Nullable if the result is true.
  2. If an expression is dereferenced, then it can safely be assumed to non-null in the future. If it would not be, then the dereference would have raised a NullPointerException.
  3. Tracks whether the current invocation is known to instantiate PolyNull as Nullable, because a PolyNull expression was found to be null, and if so gives Nullable values the PolyNull form.