Scala implementation of space logic
- Companion
- object
Value members
Concrete methods
Abstract sealed types, or-types, Boolean and Java enums can be decomposed
Abstract sealed types, or-types, Boolean and Java enums can be decomposed
Numeric literals, while being constant values of unrelated types (e.g. Char and Int),
when used in a case may end up matching at runtime, because their equals may returns true.
Because these are universally available, general purpose types, it would be good to avoid
returning false positive warnings, such as in (c: Char) match { case 67 => ... }
emitting a
reachability warning on the case. So the type ConstantType(Constant(67, IntTag))
is
converted to ConstantType(Constant(67, CharTag))
. #12805
Numeric literals, while being constant values of unrelated types (e.g. Char and Int),
when used in a case may end up matching at runtime, because their equals may returns true.
Because these are universally available, general purpose types, it would be good to avoid
returning false positive warnings, such as in (c: Char) match { case 67 => ... }
emitting a
reachability warning on the case. So the type ConstantType(Constant(67, IntTag))
is
converted to ConstantType(Constant(67, CharTag))
. #12805
Decompose a type into subspaces -- assume the type can be decomposed
Decompose a type into subspaces -- assume the type can be decomposed
Adapt types by performing primitive value boxing. #12805
Adapt types by performing primitive value boxing. #12805
Whether the counterexample is satisfiable. The space is flattened and non-empty.
Whether the counterexample is satisfiable. The space is flattened and non-empty.
Inherited methods
Remove a space if it's a subspace of remaining spaces
Remove a space if it's a subspace of remaining spaces
Note: dedup
will return the same result if the sequence >= 10
- Inherited from
- SpaceLogic
Flatten space to get rid of Or
for pretty print
Flatten space to get rid of Or
for pretty print
- Inherited from
- SpaceLogic
Is a
a subspace of b
? Equivalent to a - b == Empty
, but faster
Is a
a subspace of b
? Equivalent to a - b == Empty
, but faster
- Inherited from
- SpaceLogic
Simplify space such that a space equal to Empty
becomes Empty
Simplify space such that a space equal to Empty
becomes Empty
- Inherited from
- SpaceLogic