return this;
}
+ public BitVector set(BitVector bv) {
+ if (immutable) throw new RuntimeException("attempt to modify an immutable BitVector");
+ if (length()!=bv.length()) throw new RuntimeException("attempt to copy between BitVectors of unequal sizes");
+ for(int i=0; i<length(); i++)
+ set(i, bv.get(i));
+ return this;
+ }
+
/** copy the low-order bits of the argument into this BitVector and sign extend; returns <tt>this</tt> */
public BitVector setAndSignExtend(long value) {
if (immutable) throw new RuntimeException("attempt to modify an immutable BitVector");