diff --git a/prism/src/explicit/StateValues.java b/prism/src/explicit/StateValues.java index 4cb60de5..f936d72d 100644 --- a/prism/src/explicit/StateValues.java +++ b/prism/src/explicit/StateValues.java @@ -468,6 +468,18 @@ public class StateValues implements StateVector valuesB.and(sv.valuesB); } + /** + * Complement the (boolean) vector. + */ + public void complement() throws PrismException + { + if (!(type instanceof TypeBool)) { + throw new PrismException("Can only complement Boolean vectors"); + } + + valuesB.flip(0, size); + } + /** * Modify the vector by applying 'equals' with operand {@code sv}. */