tweak comments
git-svn-id: https://wala.svn.sourceforge.net/svnroot/wala/trunk@3456 f5eafffb-2e1d-0410-98e4-8ec43c5233c4
This commit is contained in:
parent
5ceb1f22e0
commit
afd2dab14e
|
@ -17,7 +17,7 @@ import com.ibm.wala.util.intset.IntSet;
|
|||
import com.ibm.wala.util.intset.MutableSharedBitVectorIntSet;
|
||||
|
||||
/**
|
||||
* A BitVector variable for dataflow analysis.
|
||||
* A bit vector variable for dataflow analysis.
|
||||
*/
|
||||
public class BitVectorVariable extends AbstractVariable<BitVectorVariable> {
|
||||
|
||||
|
@ -26,6 +26,9 @@ public class BitVectorVariable extends AbstractVariable<BitVectorVariable> {
|
|||
public BitVectorVariable() {
|
||||
}
|
||||
|
||||
/*
|
||||
* @see com.ibm.wala.fixpoint.IVariable#copyState(com.ibm.wala.fixpoint.IVariable)
|
||||
*/
|
||||
public void copyState(BitVectorVariable other) {
|
||||
if (other == null) {
|
||||
throw new IllegalArgumentException("null other");
|
||||
|
@ -43,6 +46,9 @@ public class BitVectorVariable extends AbstractVariable<BitVectorVariable> {
|
|||
}
|
||||
}
|
||||
|
||||
/**
|
||||
* Add all the bits in B to this bit vector
|
||||
*/
|
||||
public void addAll(BitVector B) {
|
||||
if (B == null) {
|
||||
throw new IllegalArgumentException("null B");
|
||||
|
@ -55,6 +61,9 @@ public class BitVectorVariable extends AbstractVariable<BitVectorVariable> {
|
|||
}
|
||||
}
|
||||
|
||||
/**
|
||||
* Add all the bits from other to this bit vector
|
||||
*/
|
||||
public void addAll(BitVectorVariable other) {
|
||||
if (other == null) {
|
||||
throw new IllegalArgumentException("null other");
|
||||
|
@ -68,6 +77,9 @@ public class BitVectorVariable extends AbstractVariable<BitVectorVariable> {
|
|||
}
|
||||
}
|
||||
|
||||
/**
|
||||
* Does this variable have the same value as another?
|
||||
*/
|
||||
public boolean sameValue(BitVectorVariable other) {
|
||||
if (other == null) {
|
||||
throw new IllegalArgumentException("null other");
|
||||
|
@ -83,9 +95,6 @@ public class BitVectorVariable extends AbstractVariable<BitVectorVariable> {
|
|||
}
|
||||
}
|
||||
|
||||
/**
|
||||
* @see java.lang.Object#toString()
|
||||
*/
|
||||
@Override
|
||||
public String toString() {
|
||||
if (V == null) {
|
||||
|
@ -107,6 +116,7 @@ public class BitVectorVariable extends AbstractVariable<BitVectorVariable> {
|
|||
}
|
||||
V.add(b);
|
||||
}
|
||||
|
||||
/**
|
||||
* Is a particular bit set?
|
||||
* @param b the bit to check
|
||||
|
|
Loading…
Reference in New Issue